From 8bdaf3792a7bb0dfadd1b47bfc873d5a26a5cfd2 Mon Sep 17 00:00:00 2001 From: lizhipeng Date: Tue, 10 Feb 2026 16:56:11 +0800 Subject: [PATCH 1/9] =?UTF-8?q?nuic=20home=E5=8A=A8=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/images/nuic/xiang.png | Bin 0 -> 4246 bytes src/lang/en.ts | 23 +- src/views/404.vue | 73 +++++- src/views/canvas/components/cards/index.vue | 1 - src/views/home/index.vue | 157 +++++++++++- src/views/login/index.vue | 2 +- src/views/nuic/index.vue | 261 ++++++++++++++++++-- src/views/nuic/nuic-2.vue | 18 +- src/views/nuic/nuic-3.vue | 17 +- 9 files changed, 502 insertions(+), 50 deletions(-) create mode 100644 src/assets/images/nuic/xiang.png diff --git a/src/assets/images/nuic/xiang.png b/src/assets/images/nuic/xiang.png new file mode 100644 index 0000000000000000000000000000000000000000..0e42e4a8e3b59a6e258bc90e1b1e0a343d1dfa0c GIT binary patch literal 4246 zcmZ`+cQ_kf_fLr0M73%Yw5XP-plZ{KRV36VN>QPdRPEZMMihxzTM(;NTa8-n*WRl| zYpB<3%RwLp30DJD3~;YsDj-MI$EpB8Wjy`qQz`%e zET;8P)yNyTHM{9y^n{K2PtD-EADo5~=dDVK4ZWdl+pQaC9$u+Y`c?lID>xhAP4SC1 zOcqKv0AHt5%}b>aAtve zB0kgez}inj;BpK9Ut^~V0Yv1Ch5q%BQ=GpoJqNa}FfGG}P07GnR8`b}-o{h2suALo zz>)ivNQyVkxpz7VNnC6W0Q74ii|E5ErLJ8C!S*_1 zdvN5$3HAgF^aUBqS$7V%-MlaN!^;4@6C*@N#q`N=+W#*s8~|igG%LZmjb3T%D?wTD zlTX}u;t2=Md2SL(yyN;|l1Ravr-r?~_$2Kf!;I!^^E*lJvxUjMiiwATf=|p~@g&X6 z?-%I#Ac&FX zn@`s2&nwHnr?l3)W%pd*!%Y>IZ9qjGU>gl17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YuaZ;ssXz?<3FMblB+>DUo< zXj_KXhm+Uy(WYbJCtc}52bkMB?n^naPt<~7aSB%Bj=7IZa0LhS|NDdbKk_@k1@)+| V6Q4BYrvJZ2tw(wfE7WX4{sT$p0dfEU literal 0 HcmV?d00001 diff --git a/src/lang/en.ts b/src/lang/en.ts index 48ff4e1..a42feb3 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}', 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 @@ diff --git a/src/views/home/agent/components/Item.vue b/src/views/home/agent/components/Item.vue index 6a08846..9348607 100644 --- a/src/views/home/agent/components/Item.vue +++ b/src/views/home/agent/components/Item.vue @@ -1,10 +1,10 @@ diff --git a/src/views/home/agent/components/List.vue b/src/views/home/agent/components/List.vue index 50bbddd..83ca229 100644 --- a/src/views/home/agent/components/List.vue +++ b/src/views/home/agent/components/List.vue @@ -8,18 +8,9 @@ import { ref } from 'vue' import Item from './Item.vue' - const messageList = ref([ - { id: 1, text: 'Hello', isUser: true }, - { - id: 2, - text: 'Hey, I am your design assistant FiDA. I noticed that you want to design a yellow sofa. I can help you! Tell me what else you need?' - }, - { - id: 3, - text: 'Please design a vintage-inspired sofa with smooth, flowing lines and a sculptural silhouette. The sofa features a retro aesthetic combined with elegant curves, creating a timeless and refined look.', - isUser: true - } - ]) + const props = defineProps<{ + messageList: Array + }>() diff --git a/src/views/home/agent/components/List.vue b/src/views/home/agent/components/List.vue index 83ca229..ca579e4 100644 --- a/src/views/home/agent/components/List.vue +++ b/src/views/home/agent/components/List.vue @@ -1,20 +1,41 @@ diff --git a/src/views/home/agent/example.vue b/src/views/home/agent/example.vue new file mode 100644 index 0000000..78bc134 --- /dev/null +++ b/src/views/home/agent/example.vue @@ -0,0 +1,317 @@ + + + diff --git a/src/views/home/components/Input.vue b/src/views/home/components/Input.vue index 4d37ea8..652e783 100644 --- a/src/views/home/components/Input.vue +++ b/src/views/home/components/Input.vue @@ -22,6 +22,7 @@ :placeholder="$t('Input.placeholder')" @input="handleEditorInput" @paste="handleEditorPaste" + @keypress="handleKeyPress" >
{ - emits('send', inputValue.value) - // 发送后清空输入框 - if(editorRef.value){ - editorRef.value.innerHTML = '' - } - inputValue.value = '' - } + const handleKeyPress = (e) => { + // 检测回车 + if (e.key === 'Enter' && !e.shiftKey) { + e.preventDefault() + handleSendAgent() + } + } + + const handleSendAgent = () => { + if (!inputValue.value.trim()) return + emits('send', { text: inputValue.value.trim(), images: uploadedImages.value }) + // 发送后清空输入框 + if (editorRef.value) { + editorRef.value.innerHTML = '' + } + inputValue.value = '' + } // 监听 inputValue 外部变化 watch(inputValue, () => { nextTick(() => { @@ -314,7 +324,6 @@ onMounted(() => { autoResizeEditor() }) - const typeValue = ref('') const areaValue = ref('') @@ -598,7 +607,7 @@ .agent { padding: 1.2rem; box-shadow: none; - border-radius: 1.5rem; + border-radius: 1.5rem; border: 0.1rem solid #0000001a; .scroll-content { padding: 0; @@ -611,7 +620,7 @@ min-height: initial; max-height: initial; padding: 0; - height: 100%; + height: 100%; } } .operate { From 6221acfa300a77cdb86a1c0931d06bbaf6e0d3a5 Mon Sep 17 00:00:00 2001 From: zhangyahui Date: Wed, 11 Feb 2026 16:50:46 +0800 Subject: [PATCH 8/9] =?UTF-8?q?chore:=20=E5=88=A0=E9=99=A4=E6=97=A0?= =?UTF-8?q?=E6=95=88=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/agent/example.vue | 317 ------------------------------- 1 file changed, 317 deletions(-) delete mode 100644 src/views/home/agent/example.vue diff --git a/src/views/home/agent/example.vue b/src/views/home/agent/example.vue deleted file mode 100644 index 78bc134..0000000 --- a/src/views/home/agent/example.vue +++ /dev/null @@ -1,317 +0,0 @@ - - - From 73e59919ee66175d2ae6788a12ef0fe5b46ac1dc Mon Sep 17 00:00:00 2001 From: zhangyahui Date: Wed, 11 Feb 2026 17:27:51 +0800 Subject: [PATCH 9/9] =?UTF-8?q?feat:=20sketch=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/assets/images/arrow-top-right.png | Bin 0 -> 212 bytes src/views/home/agent/components/Menu.vue | 22 ++++++ src/views/home/agent/components/Preview.vue | 83 ++++++++++++++++++++ src/views/home/agent/index.vue | 8 +- 5 files changed, 112 insertions(+), 3 deletions(-) create mode 100644 src/assets/images/arrow-top-right.png create mode 100644 src/views/home/agent/components/Menu.vue create mode 100644 src/views/home/agent/components/Preview.vue diff --git a/.env.development b/.env.development index c77c0df..885391e 100644 --- a/.env.development +++ b/.env.development @@ -1,4 +1,4 @@ # VITE_APP_URL = http://192.168.31.82:8771 # VITE_APP_URL = http://18.167.251.121:10095 -VITE_APP_URL = https://www.lc-api.aida.com.hk +VITE_APP_URL = http://192.168.31.118:8080 VITE_GOOGLE_CLIENT_ID = 216037134725-7q8vqp0ohtmohlosltkfg7bd2v29rm5a.apps.googleusercontent.com diff --git a/src/assets/images/arrow-top-right.png b/src/assets/images/arrow-top-right.png new file mode 100644 index 0000000000000000000000000000000000000000..b181e81be17178cba3d89a2d7e5b79a622ed2438 GIT binary patch literal 212 zcmeAS@N?(olHy`uVBq!ia0vp^LLkh+1|-AI^@Rf|&H|6fVg?3oVGw3ym^DWND9BhG ztrHpw{<5 zqi=z=zwZ*uJ9P(DY2SqHm*Qs3FDYo({gd-$+dt*E6HfTZ zS6yWG`qxn@o_nItLApqJ)dUekpC9Wa&+55oE&ae0xl~N%yN_2b&{76ZS3j3^P6 + + + + + + diff --git a/src/views/home/agent/components/Preview.vue b/src/views/home/agent/components/Preview.vue new file mode 100644 index 0000000..e33b305 --- /dev/null +++ b/src/views/home/agent/components/Preview.vue @@ -0,0 +1,83 @@ + + + + + diff --git a/src/views/home/agent/index.vue b/src/views/home/agent/index.vue index f92a8b9..cdd17ae 100644 --- a/src/views/home/agent/index.vue +++ b/src/views/home/agent/index.vue @@ -1,14 +1,19 @@