|
| 1 | +<script setup lang="ts"> |
| 2 | +defineProps<{ |
| 3 | + locale?: 'zh' | 'en' |
| 4 | +}>() |
| 5 | +</script> |
| 6 | + |
| 7 | +<template> |
| 8 | + <div class="quickstart-grid" v-if="locale === 'en'"> |
| 9 | + <article class="quickstart-card"> |
| 10 | + <p class="quickstart-kicker">Try Now</p> |
| 11 | + <h3>One-line install</h3> |
| 12 | + <p>Best for visitors who want the fastest path to a working local setup.</p> |
| 13 | + <p><strong>macOS / Linux</strong></p> |
| 14 | + <pre><code>curl -fsSL https://raw.githubusercontent.com/1024XEngineer/neo-code/main/scripts/install.sh | bash</code></pre> |
| 15 | + <p><strong>Windows PowerShell</strong></p> |
| 16 | + <pre><code>irm https://raw.githubusercontent.com/1024XEngineer/neo-code/main/scripts/install.ps1 | iex</code></pre> |
| 17 | + </article> |
| 18 | + |
| 19 | + <article class="quickstart-card"> |
| 20 | + <p class="quickstart-kicker">From Source</p> |
| 21 | + <h3>Run from source</h3> |
| 22 | + <p>Best for contributors who want to inspect the code, debug behavior, or wire new features in directly.</p> |
| 23 | + <pre><code>git clone https://github.com/1024XEngineer/neo-code.git |
| 24 | +cd neo-code |
| 25 | +go run ./cmd/neocode</code></pre> |
| 26 | + <p><strong>Set API keys</strong></p> |
| 27 | + <pre><code>export OPENAI_API_KEY="your_key_here" |
| 28 | +export GEMINI_API_KEY="your_key_here" |
| 29 | +export AI_API_KEY="your_key_here" |
| 30 | +export QINIU_API_KEY="your_key_here"</code></pre> |
| 31 | + </article> |
| 32 | + |
| 33 | + <article class="quickstart-card"> |
| 34 | + <p class="quickstart-kicker">Next Step</p> |
| 35 | + <h3>More setup</h3> |
| 36 | + <p>Go deeper when you need workspace isolation, gateway mode, or the full install and upgrade guide.</p> |
| 37 | + <div class="quickstart-links"> |
| 38 | + <p>Workspace isolation: <code>--workdir</code></p> |
| 39 | + <p>Gateway mode: <code>--runtime-mode gateway</code></p> |
| 40 | + <p><a href="https://github.com/1024XEngineer/neo-code/blob/main/README.md">README</a></p> |
| 41 | + <p><a href="/neo-code/en/docs/">Docs index</a></p> |
| 42 | + </div> |
| 43 | + </article> |
| 44 | + </div> |
| 45 | + |
| 46 | + <div class="quickstart-grid" v-else> |
| 47 | + <article class="quickstart-card"> |
| 48 | + <p class="quickstart-kicker">Try Now</p> |
| 49 | + <h3>一键安装</h3> |
| 50 | + <p>适合想先试用 NeoCode 的访客,直接使用 README 中维护的安装脚本。</p> |
| 51 | + <p><strong>macOS / Linux</strong></p> |
| 52 | + <pre><code>curl -fsSL https://raw.githubusercontent.com/1024XEngineer/neo-code/main/scripts/install.sh | bash</code></pre> |
| 53 | + <p><strong>Windows PowerShell</strong></p> |
| 54 | + <pre><code>irm https://raw.githubusercontent.com/1024XEngineer/neo-code/main/scripts/install.ps1 | iex</code></pre> |
| 55 | + </article> |
| 56 | + |
| 57 | + <article class="quickstart-card"> |
| 58 | + <p class="quickstart-kicker">From Source</p> |
| 59 | + <h3>从源码运行</h3> |
| 60 | + <p>适合准备阅读代码、调试功能或直接参与开发的使用方式。</p> |
| 61 | + <pre><code>git clone https://github.com/1024XEngineer/neo-code.git |
| 62 | +cd neo-code |
| 63 | +go run ./cmd/neocode</code></pre> |
| 64 | + <p><strong>配置 API Key</strong></p> |
| 65 | + <pre><code>export OPENAI_API_KEY="your_key_here" |
| 66 | +export GEMINI_API_KEY="your_key_here" |
| 67 | +export AI_API_KEY="your_key_here" |
| 68 | +export QINIU_API_KEY="your_key_here"</code></pre> |
| 69 | + </article> |
| 70 | + |
| 71 | + <article class="quickstart-card"> |
| 72 | + <p class="quickstart-kicker">Next Step</p> |
| 73 | + <h3>更多配置</h3> |
| 74 | + <p>当你需要工作区隔离、网关模式、升级说明或完整命令列表时,再继续深入。</p> |
| 75 | + <div class="quickstart-links"> |
| 76 | + <p>工作区隔离:<code>--workdir</code></p> |
| 77 | + <p>网关模式:<code>--runtime-mode gateway</code></p> |
| 78 | + <p><a href="https://github.com/1024XEngineer/neo-code/blob/main/README.md">README</a></p> |
| 79 | + <p><a href="/neo-code/docs/">文档入口页</a></p> |
| 80 | + </div> |
| 81 | + </article> |
| 82 | + </div> |
| 83 | +</template> |
0 commit comments