From ab452503da2e7009561cf56f12a966192fd292ef Mon Sep 17 00:00:00 2001 From: Germey Date: Fri, 14 Jun 2024 00:49:11 +0800 Subject: [PATCH] Fix mj style and chat conv groups issue (#47) Co-authored-by: Germey --- ...-b7e0c305-5f50-41c6-be30-41dfeb75d122.json | 7 + src/components/chat/SidePanel.vue | 14 +- src/components/midjourney/FinalPrompt.vue | 10 +- src/components/midjourney/IgnoreSelector.vue | 21 ++- src/components/midjourney/PromptInput.vue | 20 ++- .../midjourney/preset/RatioSelector.vue | 4 +- .../1776ecb719c9bbbdc28976a5424f55c5ebefcc99 | 0 .../2155323f1b7b90f7f07989567917ea3cd8de756d | 0 .../342de56638055cb8793a8890ec3ca2d9fd82809c | 0 .../36107a7543b9a116e3c10ef74f22b7b96dc13a19 | 0 .../379fd1ca037f96cb4dcfe2642d038e08ca750895 | 0 .../3c1953f801067cf374878a76affc226c49c6f898 | 0 .../432e60a8526ccc3da70693cf30649fcab242c804 | 0 .../629ef6a6f36dce005119a20816edd11af38a160d | 0 .../7566492a12dd7a632199bc00046881567b6eba82 | 0 .../9376f82037ef5edbcd2fc9d5edc5a4cb71abceff | 0 .../9a4dea95c484ad8175de9c770c25a91ad3b5eb1a | 0 .../a74b66464d6013f2743b71ef369a4f62b778ac72 | 0 .../ace4e412efaa9455e132900afc04176b8ce536fe | 0 .../b9326302b090c526206667e8ce409f088278d6d4 | 0 .../bcd090a7eaed3e00b06391b8cce963ea205e5f05 | 0 .../d0d527c247fd4a31aa7b5e0989d52fb8cc191d12 | 0 .../d54f0f4973ab81a738e71a4a993de9a5a138fc37 | 0 src/i18n/ar/chat.json | 166 ++++++++++-------- src/i18n/de/chat.json | 122 +++++++------ src/i18n/el/chat.json | 82 +++++---- src/i18n/es/chat.json | 132 +++++++------- src/i18n/fi/chat.json | 128 +++++++------- src/i18n/fr/chat.json | 122 +++++++------ src/i18n/it/chat.json | 86 +++++---- src/i18n/ja/chat.json | 140 +++++++-------- src/i18n/ko/chat.json | 162 +++++++++-------- src/i18n/pl/chat.json | 106 ++++++----- src/i18n/pt/chat.json | 136 +++++++------- src/i18n/ru/chat.json | 160 ++++++++--------- src/i18n/sr/chat.json | 154 ++++++++-------- src/i18n/sv/chat.json | 136 +++++++------- src/i18n/uk/chat.json | 154 +++++++++------- src/i18n/zh-CN/chat.json | 116 ++++++------ src/i18n/zh-TW/chat.json | 132 +++++++------- src/pages/midjourney/Index.vue | 3 +- transmart.config.js | 8 +- 42 files changed, 1193 insertions(+), 1128 deletions(-) create mode 100644 change/@acedatacloud-nexior-b7e0c305-5f50-41c6-be30-41dfeb75d122.json create mode 100644 src/i18n/.cache/1776ecb719c9bbbdc28976a5424f55c5ebefcc99 create mode 100644 src/i18n/.cache/2155323f1b7b90f7f07989567917ea3cd8de756d create mode 100644 src/i18n/.cache/342de56638055cb8793a8890ec3ca2d9fd82809c create mode 100644 src/i18n/.cache/36107a7543b9a116e3c10ef74f22b7b96dc13a19 create mode 100644 src/i18n/.cache/379fd1ca037f96cb4dcfe2642d038e08ca750895 create mode 100644 src/i18n/.cache/3c1953f801067cf374878a76affc226c49c6f898 create mode 100644 src/i18n/.cache/432e60a8526ccc3da70693cf30649fcab242c804 create mode 100644 src/i18n/.cache/629ef6a6f36dce005119a20816edd11af38a160d create mode 100644 src/i18n/.cache/7566492a12dd7a632199bc00046881567b6eba82 create mode 100644 src/i18n/.cache/9376f82037ef5edbcd2fc9d5edc5a4cb71abceff create mode 100644 src/i18n/.cache/9a4dea95c484ad8175de9c770c25a91ad3b5eb1a create mode 100644 src/i18n/.cache/a74b66464d6013f2743b71ef369a4f62b778ac72 create mode 100644 src/i18n/.cache/ace4e412efaa9455e132900afc04176b8ce536fe create mode 100644 src/i18n/.cache/b9326302b090c526206667e8ce409f088278d6d4 create mode 100644 src/i18n/.cache/bcd090a7eaed3e00b06391b8cce963ea205e5f05 create mode 100644 src/i18n/.cache/d0d527c247fd4a31aa7b5e0989d52fb8cc191d12 create mode 100644 src/i18n/.cache/d54f0f4973ab81a738e71a4a993de9a5a138fc37 diff --git a/change/@acedatacloud-nexior-b7e0c305-5f50-41c6-be30-41dfeb75d122.json b/change/@acedatacloud-nexior-b7e0c305-5f50-41c6-be30-41dfeb75d122.json new file mode 100644 index 00000000..357365d6 --- /dev/null +++ b/change/@acedatacloud-nexior-b7e0c305-5f50-41c6-be30-41dfeb75d122.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "update mj style and fix chat conv groups", + "packageName": "@acedatacloud/nexior", + "email": "germey@acedata.cloud", + "dependentChangeType": "patch" +} diff --git a/src/components/chat/SidePanel.vue b/src/components/chat/SidePanel.vue index e235de8f..ecfd51fc 100644 --- a/src/components/chat/SidePanel.vue +++ b/src/components/chat/SidePanel.vue @@ -118,10 +118,16 @@ export default defineComponent({ ) as Record; // sort every group by `updated_at` field. return { - today: groups?.today?.sort((a, b) => b.updated_at - a.updated_at), - yesterday: groups?.yesterday?.sort((a, b) => b.updated_at - a.updated_at), - thisWeek: groups?.thisWeek?.sort((a, b) => b.updated_at - a.updated_at), - earlier: groups?.earlier?.sort((a, b) => b.updated_at - a.updated_at) + ...(groups?.today?.length > 0 ? { today: groups?.today?.sort((a, b) => b.updated_at - a.updated_at) } : {}), + ...(groups?.yesterday?.length > 0 + ? { yesterday: groups?.yesterday?.sort((a, b) => b.updated_at - a.updated_at) } + : {}), + ...(groups?.thisWeek?.length > 0 + ? { thisWeek: groups?.thisWeek?.sort((a, b) => b.updated_at - a.updated_at) } + : {}), + ...(groups?.earlier?.length > 0 + ? { earlier: groups?.earlier?.sort((a, b) => b.updated_at - a.updated_at) } + : {}) }; }, application() { diff --git a/src/components/midjourney/FinalPrompt.vue b/src/components/midjourney/FinalPrompt.vue index 8ca628c6..766a5a91 100644 --- a/src/components/midjourney/FinalPrompt.vue +++ b/src/components/midjourney/FinalPrompt.vue @@ -1,7 +1,7 @@ @@ -31,9 +31,11 @@ export default defineComponent({ margin-bottom: 10px; width: 30%; } -.prompt { - color: #333; - font-size: 16px; +.value { + color: var(--el-text-color-regular); + font-size: 14px; + background-color: var(--el-bg-color-page); + border-radius: 15px; flex: 1; } diff --git a/src/components/midjourney/IgnoreSelector.vue b/src/components/midjourney/IgnoreSelector.vue index 009dc0f2..89f5319d 100644 --- a/src/components/midjourney/IgnoreSelector.vue +++ b/src/components/midjourney/IgnoreSelector.vue @@ -1,7 +1,13 @@ @@ -55,3 +61,16 @@ export default defineComponent({ } } + + diff --git a/src/components/midjourney/PromptInput.vue b/src/components/midjourney/PromptInput.vue index b332da3f..f1116791 100644 --- a/src/components/midjourney/PromptInput.vue +++ b/src/components/midjourney/PromptInput.vue @@ -1,7 +1,13 @@