diff --git a/.gitea/workflows/prod_build_manual.yaml b/.gitea/workflows/prod_build_manual.yaml new file mode 100644 index 0000000..c4d656d --- /dev/null +++ b/.gitea/workflows/prod_build_manual.yaml @@ -0,0 +1,56 @@ +name: 手动触发 FiDA WEB-Node.js 生产分支构建部署 +on: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [ 18.18.0 ] + env: + REMOTE_DEPLOY_PATH: /workspace/workspace_fida/Web_Workspace_Server/Prod + + steps: + - name: 0.记录开始时间 + id: build_start_time + run: echo "current_time=$(TZ='Asia/Hong_Kong' date '+%Y-%m-%d %H:%M:%S %Z')" >> $GITHUB_OUTPUT + + - name: 1.检出代码 + uses: actions/checkout@v4 + with: + ref: main + + - name: 2.设置 Node.js 环境 + uses: actions/setup-node@v6 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm run build + - run: ls -l + + - name: 3.同步文件到远程服务器 + uses: appleboy/scp-action@v0.1.7 + with: + host: ${{ secrets.SERVER_HOST }} + username: ${{ secrets.SERVER_USER }} + key: ${{ secrets.SSH_KEY }} + source: "./dist/*" + target: ${{ env.REMOTE_DEPLOY_PATH }} + ssh_options: "-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" + strip_components: 0 + + - name: 4. 远程重载 Nginx 配置 + uses: appleboy/ssh-action@v1.0.3 + with: + host: ${{ secrets.SERVER_HOST }} + username: ${{ secrets.SERVER_USER }} + key: ${{ secrets.SSH_KEY }} + # 核心:执行 Nginx 重载命令 + script: | + echo "尝试重载 Nginx 服务..." + # 💡 注意:执行此命令需要服务器用户具有 sudo 权限,并且配置了 NOPASSWD。 + # 否则工作流可能会因为权限不足而失败。 + sudo systemctl reload nginx + echo "Nginx 重载命令已发送。" \ No newline at end of file diff --git a/package.json b/package.json index 005b6d2..b0fb71e 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "furniture", "version": "0.0.0", "private": true, + "type": "module", "scripts": { "dev": "vite", "build": "vite build", diff --git a/src/App.vue b/src/App.vue index 5c66772..c595bc0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,6 @@ diff --git a/src/assets/css/style.css b/src/assets/css/style.css index 93df8f9..b693fdf 100644 --- a/src/assets/css/style.css +++ b/src/assets/css/style.css @@ -29,8 +29,28 @@ body, transform: rotate(360deg); } } -.background-pink { - background-color: #f8f7f5; - background-image: url('@/assets/images/home-bg.png'); - background-size: 100% 100%; +.flex { + display: flex; +} +.flex-center { + justify-content: center; + align-items: center; +} +.flex-1 { + flex: 1; +} +.flex-col { + flex-direction: column; +} +.align-center { + align-items: center; +} +.space-between { + justify-content: space-between; +} +.justify-center { + justify-content: center; +} +.relative { + position: relative; } diff --git a/src/assets/css/style.less b/src/assets/css/style.less index ea5effa..56bdf41 100644 --- a/src/assets/css/style.less +++ b/src/assets/css/style.less @@ -34,12 +34,6 @@ body, } } -.background-pink { - background-color: rgba(248, 247, 245, 1); - background-image: url('@/assets/images/home-bg.png'); - background-size: 100% 100%; -} - .flex{ display: flex; } diff --git a/src/assets/images/home-bg.png b/src/assets/images/home-bg.png deleted file mode 100644 index 2437377..0000000 Binary files a/src/assets/images/home-bg.png and /dev/null differ diff --git a/src/assets/images/nuic/loading.png b/src/assets/images/nuic/loading.png deleted file mode 100644 index 2dfc479..0000000 Binary files a/src/assets/images/nuic/loading.png and /dev/null differ diff --git a/src/assets/images/nuic/xiang.png b/src/assets/images/nuic/xiang.png new file mode 100644 index 0000000..0e42e4a Binary files /dev/null and b/src/assets/images/nuic/xiang.png differ diff --git a/src/lang/en.ts b/src/lang/en.ts index 09d659e..35681f3 100644 --- a/src/lang/en.ts +++ b/src/lang/en.ts @@ -1,8 +1,9 @@ export default { + AlphaVersion: '2026 Alpha Version', Login: { - Login: 'Log in', - SignUp: 'Sign up', - LoginTo: 'Log on to', + login: 'Log in', + register: 'Register', + loginTo: 'Log on to FiDA', LoginTitle: 'A multi-agent canvas for rapid, trend driven design iteration.', name: 'Name', email: 'Email', @@ -21,7 +22,7 @@ export default { agreeTermsPolicy: 'I agree to the Terms, Policy and Fees.', noAccountToSignUp: `Don't have an account? Sign up`, - registerFor: 'Register for', + signUpFor: 'Sign up for FiDA', registerTip: 'A multi-agent canvas for rapid, trend driven design iteration.', havenAccountToLogin: `Already have an account? Log in`, verifyEmail: 'Verify your email address', @@ -31,21 +32,23 @@ export default { resendCodeIn: 'Resend Code in {time}', orContinueWith: 'or continue with', googleLogin: 'Sign in with Google', - wechatLogin: 'Sign in with Wechat' + wechatLogin: 'Sign in with Wechat', + indexTip: 'A multi-agent canvas for rapid, trend driven design iteration.', }, Nuic: { - hiName: 'Hi, {name}.', - nuic1Title: `Help Fiphant discover the 'YOU' in your space.`, + hiName: 'Hi, {name}. This is Fiphant.', + nuic1Title: `Help him discover the "YOU" in your space.`, nuic1Tip: `Let's set up your profile. A few quick details will help Fiphant understand
your needs and find exactly what you're looking for.`, letsGo: 'Let’s go, Fiphant!', skip: 'Skip', next: 'Next', - nuic2Title: `What's your dream home vibe ?`, + nuic2Title: `What vibe do you usually go for?`, loadMore: 'Load more', - nuic3Title: `Where are you based? What do you do ?`, + nuic3Title: `Where are you based? What do you do?`, basedIn: 'Based in', role: 'Role', - allSet: 'All set!' + allSet: 'All set!', + loadingTip: 'We’re customizing your dashboard.', }, Home: { creditsNum: 'Credits: {num}', @@ -118,7 +121,13 @@ export default { branchingNodeTree: 'Branching Node Tree', restore: 'Restore', newChat: 'New Chat', - delete: 'Delete' + delete: 'Delete', + deleteChat:'Delete chat?', + deleteHint:'Once deleted, you won’t be able to view this conversation again.', + restoreChat:'Restore chat?', + restoreHint:'Once deleted, you won’t be able to view this conversation again.', + cancel: 'cancel', + Confirm: 'Confirm', }, //generateSketch generateSketch: { diff --git a/src/lang/zh-cn.ts b/src/lang/zh-cn.ts index 0fd6e70..4f31f70 100644 --- a/src/lang/zh-cn.ts +++ b/src/lang/zh-cn.ts @@ -103,5 +103,31 @@ export default { copySuccess: '文本已复制到剪贴板', copyFaild: '复制失败。您的浏览器可能限制了剪贴板访问,请允许浏览器访问剪贴板或尝试手动复制。' + }, + + // Version Tree + VersionTree: { + versionInformation: '版本信息', + input: '用户请求', + userRequest: '用户请求', + sketch: '设计草图', + generateResult: '生成结果', + linearNodeTree: '线性节点树', + branchingNodeTree: '分支节点树', + restore: '恢复', + newChat: '新建对话', + delete: '删除', + deleteChat:'删除对话?', + deleteHint:'删除后将无法恢复该对话。', + restoreChat:'恢复对话?', + restoreHint:'恢复后将显示该对话。', + cancel: '取消', + Confirm: '确认', + }, + //generateSketch + generateSketch: { + restore: '恢复', + delete: '删除', + edit: '编辑' } } diff --git a/src/router/index.ts b/src/router/index.ts index b76e886..4a4cf55 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -48,7 +48,7 @@ const router = createRouter({ { path: '/home/versionTree', name: 'versionTree', - component: () => import('../views/home/versionTree.vue'), + component: () => import('../views/home/VersionTree.vue'), meta: { topNavStyle: '2' } }, { diff --git a/src/views/404.vue b/src/views/404.vue index 58f3a8c..aece768 100644 --- a/src/views/404.vue +++ b/src/views/404.vue @@ -1,6 +1,12 @@ @@ -10,6 +16,8 @@ diff --git a/src/views/canvas/components/cards/index.vue b/src/views/canvas/components/cards/index.vue index 5bbe685..a82e11f 100644 --- a/src/views/canvas/components/cards/index.vue +++ b/src/views/canvas/components/cards/index.vue @@ -26,7 +26,6 @@ import To3DModel from './to-3d-model.vue' import AddPrint from './add-print.vue' import ToCAD from './to-cad.vue' - import EditMaterial from './edit-material.vue' const components = [ { diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 7577dbf..2fc1e2d 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -1,5 +1,14 @@