From 74cec8e429b22a6ee6f38950023d840fe8c91a01 Mon Sep 17 00:00:00 2001 From: Germey Date: Fri, 28 Jun 2024 00:35:03 +0800 Subject: [PATCH] Refine Midjourney UX layout (#59) Co-authored-by: Germey Co-authored-by: AceDataCloud --- CHANGELOG.json | 186 +-- ...-95bb71fc-0c34-403a-91ec-8397c62f91fe.json | 7 + src/assets/scss/_markdown.scss | 4 + src/components/chat/Message.vue | 76 +- src/components/midjourney/InputBox.vue | 189 +++ src/components/midjourney/ModeSelector.vue | 113 -- src/components/midjourney/PresetPanel.vue | 8 +- .../midjourney/preset/ModeSelector.vue | 87 + .../midjourney/preset/QualitySelector.vue | 5 +- .../midjourney/tasks/TaskFullList.vue | 172 -- .../tasks/{TaskPreview.vue => TaskItem.vue} | 446 +++-- .../tasks/{TaskBriefList.vue => TaskList.vue} | 92 +- src/constants/midjourney.ts | 23 +- .../29ce70743eaee40517e3bda2c07c5708ed0614d8 | 0 .../445e889c2d72d96b53cc60906cde7a29de3b9d7d | 0 .../4777af27ad2a8a99c4cdb8411c1fa31b181e8c8a | 0 .../8ef9ec1ec870886d530b42a349c8077742cf0db5 | 0 .../c025f9b91058a41a27124c4bbc9171234d25ad84 | 0 .../ee8272073fdc138d58cadadf73237600c5b9f69c | 0 .../f0ff461139a499eab3e9010a8104e70b8a21bf00 | 0 .../f740463159f5184bcc722f24215ff77da78a88b4 | 0 src/i18n/de/midjourney.json | 1234 +++++++------- src/i18n/en/midjourney.json | 1054 ++++++------ src/i18n/en/order.json | 66 +- src/i18n/en/proxy.json | 82 +- src/i18n/en/qrart.json | 176 +- src/i18n/en/service.json | 78 +- src/i18n/en/site.json | 130 +- src/i18n/en/usage.json | 18 +- src/i18n/en/user.json | 2 +- src/i18n/es/midjourney.json | 1366 ++++++++-------- src/i18n/fr/midjourney.json | 1446 +++++++++-------- src/i18n/it/midjourney.json | 1270 ++++++++------- src/i18n/ja/midjourney.json | 1116 ++++++------- src/i18n/ko/midjourney.json | 1412 ++++++++-------- src/i18n/zh-CN/midjourney.json | 22 +- src/i18n/zh-TW/midjourney.json | 388 ++--- src/layouts/Midjourney.vue | 26 +- src/models/midjourney.ts | 16 +- src/operators/chat.ts | 10 +- src/pages/chat/Conversation.vue | 2 +- src/pages/midjourney/History.vue | 138 -- src/pages/midjourney/Index.vue | 124 +- src/plugins/font-awesome.ts | 2 + src/router/midjourney.ts | 7 +- src/store/chat/actions.ts | 2 +- src/store/midjourney/actions.ts | 15 +- src/store/midjourney/models.ts | 11 +- src/store/midjourney/mutations.ts | 7 +- src/store/midjourney/state.ts | 2 - 50 files changed, 5797 insertions(+), 5833 deletions(-) create mode 100644 change/@acedatacloud-nexior-95bb71fc-0c34-403a-91ec-8397c62f91fe.json create mode 100644 src/components/midjourney/InputBox.vue delete mode 100644 src/components/midjourney/ModeSelector.vue create mode 100644 src/components/midjourney/preset/ModeSelector.vue delete mode 100644 src/components/midjourney/tasks/TaskFullList.vue rename src/components/midjourney/tasks/{TaskPreview.vue => TaskItem.vue} (50%) rename src/components/midjourney/tasks/{TaskBriefList.vue => TaskList.vue} (58%) create mode 100644 src/i18n/.cache/29ce70743eaee40517e3bda2c07c5708ed0614d8 create mode 100644 src/i18n/.cache/445e889c2d72d96b53cc60906cde7a29de3b9d7d create mode 100644 src/i18n/.cache/4777af27ad2a8a99c4cdb8411c1fa31b181e8c8a create mode 100644 src/i18n/.cache/8ef9ec1ec870886d530b42a349c8077742cf0db5 create mode 100644 src/i18n/.cache/c025f9b91058a41a27124c4bbc9171234d25ad84 create mode 100644 src/i18n/.cache/ee8272073fdc138d58cadadf73237600c5b9f69c create mode 100644 src/i18n/.cache/f0ff461139a499eab3e9010a8104e70b8a21bf00 create mode 100644 src/i18n/.cache/f740463159f5184bcc722f24215ff77da78a88b4 delete mode 100644 src/pages/midjourney/History.vue diff --git a/CHANGELOG.json b/CHANGELOG.json index 306358d1..175c32ef 100644 --- a/CHANGELOG.json +++ b/CHANGELOG.json @@ -37,7 +37,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/nexior", "commit": "dcc1271606abd603191df92c9d1d92d8ca27e395", "comment": "fix nav width issue" @@ -52,7 +52,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/nexior", "commit": "0008ae243e5b24504977366e7d8a4160ea525204", "comment": "fix the auth init issue" @@ -67,7 +67,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/nexior", "commit": "151c5379bf655cd5af5eaeb241d109464f4f6f8e", "comment": "fix mj custom option" @@ -82,7 +82,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/nexior", "commit": "4a0bd88c89096de138f0ae2055097ba251a69841", "comment": "fix the site sync bug" @@ -97,7 +97,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/nexior", "commit": "56a82af86729f06d90f688e687b68f3928f357b8", "comment": "fix issue for init site" @@ -112,7 +112,7 @@ "comments": { "minor": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/nexior", "commit": "07a100c403fd7b06038a17b1236cddaeab608fa5", "comment": "add config page for site" @@ -127,7 +127,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/nexior", "commit": "b082f52c5d3a10a98c5065e4012192893013d967", "comment": "make adaptation for mobile" @@ -142,7 +142,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/nexior", "commit": "ab452503da2e7009561cf56f12a966192fd292ef", "comment": "update mj style and fix chat conv groups" @@ -157,7 +157,7 @@ "comments": { "minor": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/nexior", "commit": "8ff5ca8d2fb2ee608dae2b12e15e996fff2deda7", "comment": "adapt to latest chatgpt stlye for aichat" @@ -172,7 +172,7 @@ "comments": { "minor": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/nexior", "commit": "beb12aecc0234a33131626d4e9360bd42b048f1f", "comment": "optimize loading speed" @@ -187,7 +187,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/nexior", "commit": "52a1de6a635ac734b9009aba71ae73b0a994a94b", "comment": "add user id support for levels" @@ -202,7 +202,7 @@ "comments": { "minor": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/nexior", "commit": "86f6f5522d01d1a82da0c5c1856811ceca37ffb0", "comment": "Add nexior support" @@ -217,7 +217,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "7efdac3e68824be7e6cfea901982588d21a5f2a6", "comment": "fix conversations reverse" @@ -232,7 +232,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "6b822d0981321ec536be9fcf0c0acf58a3090c2a", "comment": "fix image display issue for vision model" @@ -247,7 +247,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "1c02618f6d66ca23c64085c6be01075fd4d4dd82", "comment": "fix logo dark theme" @@ -262,7 +262,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "b3f722d8fff1c328594329909da650d9d494d735", "comment": "align across site for theme and locale" @@ -277,7 +277,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "c883d490c511b298d18eebff9ee5ee46a5e2965d", "comment": "fix custom style of qrart" @@ -292,7 +292,7 @@ "comments": { "minor": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "b5109a2a907f62ccf8d7227c2878f8cdb634b2a0", "comment": "add new parameter for qrart" @@ -307,7 +307,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "46a08e6c629dc044f55d50aee65ad6e754849f6e", "comment": "fix qrart issues" @@ -322,7 +322,7 @@ "comments": { "major": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "e7e9dbdbdcb11eb3084c5dc1aa3f073e9ddcffb4", "comment": "Add Qrart support" @@ -337,7 +337,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "44e3b8d330df0201650c698c9cb198b10ec626d0", "comment": "remove unnecessary records" @@ -352,7 +352,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "51ad2ad526b82b838eef72867200ce9283779e18", "comment": "fix progress display for mj" @@ -367,7 +367,7 @@ "comments": { "minor": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "0e888589f7eca025aae6eb4caf6a5a4e2bdd5749", "comment": "add support for usage history" @@ -382,7 +382,7 @@ "comments": { "minor": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "dbde4cd56c8451c58103ca52e74eb0864bb292ff", "comment": "add support for usage history" @@ -397,7 +397,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "ba1d2f3bf18139988381e5fc225344a188b9a229", "comment": "fix conversation display issue" @@ -412,7 +412,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "e19b923628782bd1d33829048728ef044660f721", "comment": "fix bug of applying" @@ -427,7 +427,7 @@ "comments": { "minor": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "2a42ff5f760456f66488e399cef8875640d0545e", "comment": "add support for renew credentials" @@ -442,7 +442,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "887865ab6937084ec374d2943b72d8564372a782", "comment": "fix apply dialog display" @@ -457,7 +457,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "aeb68025fc791e631cc599aa1b13b14078010a81", "comment": "fix bugs of not refreshing for mj" @@ -472,7 +472,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "e03176058386ca26380ddf8ffac21ad069dbdde0", "comment": "fix upload issue" @@ -487,7 +487,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "5ae8f0527abc3c6a55c1b3e0971d5b9088a121db", "comment": "fix error json parse for chat" @@ -502,7 +502,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "d0c00b7af7e0cd0738c14317bce8d2d5a36d50d4", "comment": "fix style bugs" @@ -517,7 +517,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "94cd138f5f4302746dbdf43b8fd6dad8f5f80722", "comment": "update translations" @@ -532,7 +532,7 @@ "comments": { "minor": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "de242c810be79ec4e8eaca5a4f5b8d7cff9cc62b", "comment": "add dark mode switch" @@ -547,7 +547,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "a7fcab2256ff27fd931f93e22ee93c56b34aba5a", "comment": "fix chatdoc create issue" @@ -562,7 +562,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "9866a2a8e162ddf5a9f5e3304783f7ff89313b09", "comment": "fix wrong model name" @@ -577,7 +577,7 @@ "comments": { "minor": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "134f44e44f6bc249189498089caf9e7b8925a14a", "comment": "add dark mode support" @@ -592,7 +592,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "bf1969695d24e62d7c02ee29ee7ef01f7ad2afc3", "comment": "fix order style" @@ -607,61 +607,61 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "23362d21552c408d33bd211219b989bb2845d44a", "comment": "bump version manually" }, { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "23362d21552c408d33bd211219b989bb2845d44a", "comment": "migrate to new architecture" }, { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "23362d21552c408d33bd211219b989bb2845d44a", "comment": "fix chatdoc issues" }, { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "23362d21552c408d33bd211219b989bb2845d44a", "comment": "bump version manually" }, { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "23362d21552c408d33bd211219b989bb2845d44a", "comment": "fix experience bugs" }, { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "23362d21552c408d33bd211219b989bb2845d44a", "comment": "add test i18n files" }, { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "23362d21552c408d33bd211219b989bb2845d44a", "comment": "update translations files" }, { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "23362d21552c408d33bd211219b989bb2845d44a", "comment": "fix translate issues" }, { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "23362d21552c408d33bd211219b989bb2845d44a", "comment": "update i18n files" }, { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "23362d21552c408d33bd211219b989bb2845d44a", "comment": "update i18n files" @@ -669,13 +669,13 @@ ], "minor": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "23362d21552c408d33bd211219b989bb2845d44a", "comment": "add i18n support" }, { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "23362d21552c408d33bd211219b989bb2845d44a", "comment": "add localization support" @@ -690,7 +690,7 @@ "comments": { "patch": [ { - "author": "cqc@germey.cn", + "author": "office@acedata.cloud", "package": "@zhishuyun/hub", "commit": "5c925f97128e2fa12efe0e9f8d151419d1203dc3", "comment": "fix chatdoc upload issue" @@ -705,7 +705,7 @@ "comments": { "major": [ { - "author": "cqc@germey.cn", + "author": "office@acedata.cloud", "package": "@zhishuyun/hub", "commit": "1a7fc4a59a1eeb11bbcdd668ff7fc325f940f5f0", "comment": "add chatdoc feature" @@ -720,7 +720,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@zhishuyun/hub", "commit": "1dc324c35c1c9cf9b533a9e75eff8a25fda59f95", "comment": "add docs for docker deploy" @@ -735,7 +735,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "8cadaa341cdd9c98eeb13d78b2dba99bdf7e046c", "comment": "improve mj experience" @@ -750,7 +750,7 @@ "comments": { "minor": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "9a9c9be30b56d40934f115abf658326b59f336a1", "comment": "add support for config title and favicon" @@ -765,7 +765,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "6e14432a4c27933eb386fe70fc23658210fc86c9", "comment": "add auth config support" @@ -780,7 +780,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "9495ba466a28952817e3ee6011cbef092e3ffd0c", "comment": "fix upload image issue" @@ -795,7 +795,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "060521d34cf5af4431c31b0c36a4ec07f0212cc8", "comment": "fix distribution level" @@ -810,7 +810,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "a8d1d6c8bdcfeb397b8156ba35fe0176227da276", "comment": "fix invitee page" @@ -825,7 +825,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "31280b0f5c6d65764bbfa594e68559d3ba4d516e", "comment": "persist floating state when touch" @@ -840,7 +840,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "0af9c9858e2ec7c597bd5e2a40df30e1bcf494ae", "comment": "fix qr show issue" @@ -855,7 +855,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "82d2947dccb054ecd89f25922edc9b18d4f3bf40", "comment": "fix ios scan qr issue" @@ -870,7 +870,7 @@ "comments": { "minor": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "05a638472b9409abe860c828dc3fcd9ebd4676c7", "comment": "move distribution pages" @@ -885,7 +885,7 @@ "comments": { "minor": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "576e0a7b8581ecf9db5b3ce0bfb0871619e768d2", "comment": "add config support global" @@ -900,7 +900,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "0300664fb3283a4d3cf9cb6e015cc378e0afae26", "comment": "fix error message for chat" @@ -915,7 +915,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "4e6c9a9904059565da346cc3fe4d1d86f38f07a8", "comment": "refine styles" @@ -930,7 +930,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "5ee40bd959c9b691b0ecb7e6a8689dce9bbf930d", "comment": "update style of model selector" @@ -945,7 +945,7 @@ "comments": { "minor": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "11868c2de2322aafd72f422670404f96e283536f", "comment": "update onboarding experience " @@ -960,7 +960,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "357151cbca01b06b5cc0a4646108d4941ad4e726", "comment": "add pr pipeline check" @@ -975,7 +975,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "2dcf43ce1e9901893aca5ea03011f8e0635ac353", "comment": "fix block styles" @@ -990,7 +990,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "d7d67e8a99f9cc58befa9a4ed4655545fd92172a", "comment": "split chunks to optimize loading speed" @@ -1005,7 +1005,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "7dbda76452c339c73d859d5dca9603f7f1fb6cc5", "comment": "fix docker build issue" @@ -1020,7 +1020,7 @@ "comments": { "minor": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "0daf32ba3d2bcb1c7e0f50920598957ba868216d", "comment": "upgrade tailwind and add css optimization" @@ -1035,7 +1035,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "abbfc84b2fe7510955a0db9b9eabb534d09fd795", "comment": "fix bug of perist cookie" @@ -1050,7 +1050,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "df621bf87a380c06a6549dbd47babef973c0a3a4", "comment": "fix bug of setting cookie of inviter id" @@ -1065,7 +1065,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "0cdb32d71b910677562310022373647a69262490", "comment": "fix inviter id setting" @@ -1080,7 +1080,7 @@ "comments": { "minor": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "c82f04efcf9b471558164935c4b6781986ebe61f", "comment": "add auth modal" @@ -1095,7 +1095,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "4997334c376727f143e9d0ff849bdd77ea98f461", "comment": "add inviter id cookies persist" @@ -1110,7 +1110,7 @@ "comments": { "minor": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "5e920f1e31b44edee5c3f8485595f9483cf11028", "comment": "adapt for mobile screen" @@ -1125,7 +1125,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "5429cf6ca991e283fb23de2a6fb0a49378346732", "comment": "fix stream event and netlify build" @@ -1140,7 +1140,7 @@ "comments": { "minor": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "783f4de0aef2b45c409a06c8e909de725b1814cf", "comment": "add support for deployment of netlify" @@ -1155,7 +1155,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "04e38cef698bb6ad39309a66af1c7e6637e6b69b", "comment": "fix hub url" @@ -1170,7 +1170,7 @@ "comments": { "minor": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "9e3fc10ac1aed60f7a3c19b64c0ada74469fb27e", "comment": "refine and clean files" @@ -1185,7 +1185,7 @@ "comments": { "minor": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "bf66f4c32540e5a3ba5c4fea887cb4059e0c2afb", "comment": "add vercel deployment support" @@ -1200,7 +1200,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "29dc25be5073f5652ce36e794ae811707bdb2987", "comment": "update readme" @@ -1215,7 +1215,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "9230bc6c69a6365460c96786edfc25c3ed08ffd0", "comment": "fix build number issue" @@ -1230,7 +1230,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "35cbbba1e1461b051e2539309218c9595da0448d", "comment": "update build number" @@ -1245,7 +1245,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "88bf24ffc23941ae6210efc0bd56521121c65ee8", "comment": "update yarn lock" @@ -1260,7 +1260,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "0287b0bb904cfeee43bb8e0387738b346270de24", "comment": "fix github pipelines" @@ -1268,7 +1268,7 @@ ], "minor": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "7f938bc6bfbb076c404519358bff0d2b7e25f2ba", "comment": "add publish pipelines" @@ -1283,7 +1283,7 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "6e12486bfa0fc7ac3cf550e4b5cdd8e435362459", "comment": "change commit info" @@ -1298,13 +1298,13 @@ "comments": { "patch": [ { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "bc96caf20d8a2ccfd3b7f1866a8f4dc4aa2c46fb", "comment": "fix git hooks" }, { - "author": "germey@acedata.cloud", + "author": "office@acedata.cloud", "package": "@acedatacloud/hub", "commit": "e355b8ab50c123aa05bbc0126434943600350731", "comment": "fix invite link" diff --git a/change/@acedatacloud-nexior-95bb71fc-0c34-403a-91ec-8397c62f91fe.json b/change/@acedatacloud-nexior-95bb71fc-0c34-403a-91ec-8397c62f91fe.json new file mode 100644 index 00000000..8430feff --- /dev/null +++ b/change/@acedatacloud-nexior-95bb71fc-0c34-403a-91ec-8397c62f91fe.json @@ -0,0 +1,7 @@ +{ + "type": "minor", + "comment": "Update mj new layout", + "packageName": "@acedatacloud/nexior", + "email": "germey@acedata.cloud", + "dependentChangeType": "patch" +} diff --git a/src/assets/scss/_markdown.scss b/src/assets/scss/_markdown.scss index cecb8d2b..e09066ea 100644 --- a/src/assets/scss/_markdown.scss +++ b/src/assets/scss/_markdown.scss @@ -30,6 +30,10 @@ box-shadow: 0px 0px 3px 0px var(--color-border-muted); } +.markdown-body table tr { + background-color: var(--el-color-info-light-2) !important; +} + pre { position: relative; } diff --git a/src/components/chat/Message.vue b/src/components/chat/Message.vue index 7abdaf12..e2e08581 100644 --- a/src/components/chat/Message.vue +++ b/src/components/chat/Message.vue @@ -7,31 +7,41 @@ }" :role="message.role" > -
- -
-
- - +
+ +
+
+
+ +
+
+ + +
+ +
+
+
- -
-
-
+ + + {{ $t('common.button.buyMore') }} +
- - - {{ $t('common.button.buyMore') }} - + + + + diff --git a/src/components/midjourney/ModeSelector.vue b/src/components/midjourney/ModeSelector.vue deleted file mode 100644 index 03f65d42..00000000 --- a/src/components/midjourney/ModeSelector.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - diff --git a/src/components/midjourney/PresetPanel.vue b/src/components/midjourney/PresetPanel.vue index f5e1335f..840023ea 100644 --- a/src/components/midjourney/PresetPanel.vue +++ b/src/components/midjourney/PresetPanel.vue @@ -2,9 +2,9 @@
+ - @@ -25,13 +25,14 @@ import QualitySelector from './preset/QualitySelector.vue'; import ImageWeightSelector from './preset/ImageWeightSelector.vue'; import WeirdSelector from './preset/WeirdSelector.vue'; import AdvancedSelector from './preset/AdvancedSelector.vue'; -import TranslationSelector from './preset/TranslationSelector.vue'; import StyleSelector from './preset/StyleSelector.vue'; +import ModeSelector from './preset/ModeSelector.vue'; export default defineComponent({ name: 'PresetPanel', components: { ModelSelector, + ModeSelector, StyleSelector, QualitySelector, RatioSelector, @@ -40,8 +41,7 @@ export default defineComponent({ ChaosSelector, WeirdSelector, AdvancedSelector, - ImageWeightSelector, - TranslationSelector + ImageWeightSelector }, computed: { preset() { diff --git a/src/components/midjourney/preset/ModeSelector.vue b/src/components/midjourney/preset/ModeSelector.vue new file mode 100644 index 00000000..2401f255 --- /dev/null +++ b/src/components/midjourney/preset/ModeSelector.vue @@ -0,0 +1,87 @@ + + + + + + + diff --git a/src/components/midjourney/preset/QualitySelector.vue b/src/components/midjourney/preset/QualitySelector.vue index 0547d6bf..794ee354 100644 --- a/src/components/midjourney/preset/QualitySelector.vue +++ b/src/components/midjourney/preset/QualitySelector.vue @@ -12,8 +12,7 @@ - - diff --git a/src/components/midjourney/tasks/TaskPreview.vue b/src/components/midjourney/tasks/TaskItem.vue similarity index 50% rename from src/components/midjourney/tasks/TaskPreview.vue rename to src/components/midjourney/tasks/TaskItem.vue index 79b02b80..4d5212c0 100644 --- a/src/components/midjourney/tasks/TaskPreview.vue +++ b/src/components/midjourney/tasks/TaskItem.vue @@ -1,118 +1,120 @@ diff --git a/src/pages/midjourney/Index.vue b/src/pages/midjourney/Index.vue index cebec10c..6c153e51 100644 --- a/src/pages/midjourney/Index.vue +++ b/src/pages/midjourney/Index.vue @@ -5,7 +5,6 @@ - @@ -37,32 +40,33 @@ import { defineComponent } from 'vue'; import Layout from '@/layouts/Midjourney.vue'; import PresetPanel from '@/components/midjourney/PresetPanel.vue'; -import PromptInput from '@/components/midjourney/PromptInput.vue'; import ElementsSelector from '@/components/midjourney/ElementsSelector.vue'; import IgnoreSelector from '@/components/midjourney/IgnoreSelector.vue'; -import { ElButton, ElMessage } from 'element-plus'; -import ModeSelector from '@/components/midjourney/ModeSelector.vue'; +import { ElMessage, ElCard } from 'element-plus'; import ReferenceImage from '@/components/midjourney/ReferenceImage.vue'; import { applicationOperator, midjourneyOperator } from '@/operators'; import ApplicationStatus from '@/components/application/Status.vue'; -import TaskBriefList from '@/components/midjourney/tasks/TaskBriefList.vue'; +import TaskList from '@/components/midjourney/tasks/TaskList.vue'; import FinalPrompt from '@/components/midjourney/FinalPrompt.vue'; import { ERROR_CODE_DUPLICATION } from '@/constants/errorCode'; -import { MidjourneyImagineMode, Status } from '@/models'; +import { Status } from '@/models'; import { IMidjourneyImagineRequest, IApplicationDetailResponse, MidjourneyImagineAction } from '@/models'; import { MIDJOURNEY_DEFAULT_IMAGE_WEIGHT, MIDJOURNEY_DEFAULT_RATIO, MIDJOURNEY_DEFAULT_STYLIZE, - MIDJOURNEY_DEFAULT_WIRED + MIDJOURNEY_DEFAULT_WIRED, + MIDJOURNEY_DEFAULT_MODE, + MIDJOURNEY_DEFAULT_QUALITY } from '@/constants'; -import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'; +import InputBox from '@/components/midjourney/InputBox.vue'; interface IData { prompt: string; elements: string[]; ignore: string; references: string[]; + operating: boolean; } const CALLBACK_URL = 'https://webhook.acedata.cloud/midjourney'; @@ -70,16 +74,14 @@ const CALLBACK_URL = 'https://webhook.acedata.cloud/midjourney'; export default defineComponent({ name: 'MidjourneyIndex', components: { - ModeSelector, + ElCard, ReferenceImage, - FontAwesomeIcon, PresetPanel, - PromptInput, + InputBox, ElementsSelector, IgnoreSelector, - ElButton, ApplicationStatus, - TaskBriefList, + TaskList, FinalPrompt, Layout }, @@ -88,16 +90,17 @@ export default defineComponent({ prompt: '', elements: [], ignore: '', - references: [] + references: [], + operating: false }; }, computed: { + imagineTasks() { + return this.$store.state.midjourney.imagineTasks; + }, service() { return this.$store.state.midjourney.service; }, - mode() { - return this.$store.state.midjourney.mode; - }, credential() { return this.$store.state.midjourney.credential; }, @@ -133,7 +136,12 @@ export default defineComponent({ if (this.preset?.chaos && this.preset?.advanced && !content.includes(`--chaos `)) { content += ` --chaos ${this.preset.chaos}`; } - if (this.preset?.quality && !content.includes(`--quality `) && !content.includes(`--q `)) { + if ( + this.preset?.quality && + !content.includes(`--quality `) && + !content.includes(`--q `) && + this.preset?.quality !== MIDJOURNEY_DEFAULT_QUALITY + ) { content += ` --quality ${this.preset.quality}`; } if ( @@ -176,9 +184,21 @@ export default defineComponent({ if (this.preset?.style && this.preset?.advanced && !content.includes(`--style`)) { content += ` --style ${this.preset?.style}`; } + // remove `--fast`, `--relax`, `--turbo` + content = content.replace(/--(fast|relax|turbo) /g, ''); return this.prompt || this.references?.length > 0 ? content : ''; } }, + watch: { + imagineTasks: { + handler(val, oldVal) { + if (oldVal === undefined && val) { + this.onScrollDown(); + } + }, + deep: true + } + }, methods: { onApply() { applicationOperator @@ -215,26 +235,48 @@ export default defineComponent({ }) .catch(() => { ElMessage.error(this.$t('midjourney.message.startTaskFailed')); + }) + .finally(async () => { + await this.onSyncTasks(); + await this.onScrollDown(); }); }, async onCustom(payload: { image_id: string; action: MidjourneyImagineAction }) { const request = { image_id: payload.image_id, action: payload.action, - mode: this.mode.name as MidjourneyImagineMode, + mode: this.preset?.mode || MIDJOURNEY_DEFAULT_MODE, callback_url: CALLBACK_URL }; this.onStartTask(request); }, async onGenerate() { const request = { - mode: this.mode.name as MidjourneyImagineMode, + mode: this.preset?.mode || MIDJOURNEY_DEFAULT_MODE, prompt: this.finalPrompt, action: MidjourneyImagineAction.GENERATE, translation: this.preset?.translation, callback_url: CALLBACK_URL }; - this.onStartTask(request); + await this.onStartTask(request); + this.prompt = ''; + this.elements = []; + this.references = []; + }, + async onScrollDown() { + setTimeout(() => { + // scroll to bottom for `.tasks` + const el = document.querySelector('.tasks'); + if (el) { + el.scrollTop = el.scrollHeight; + } + }, 500); + }, + async onSyncTasks() { + await this.$store.dispatch('midjourney/getImagineTasks', { + limit: 50, + offset: 0 + }); } } }); @@ -243,16 +285,26 @@ export default defineComponent({ diff --git a/src/plugins/font-awesome.ts b/src/plugins/font-awesome.ts index c4b0ab66..8a4988b8 100644 --- a/src/plugins/font-awesome.ts +++ b/src/plugins/font-awesome.ts @@ -11,6 +11,7 @@ import { faDiscord as faBrandsDiscord, faWeixin as faBrandsWeixin } from '@forta import { faLaptopCode as faSolidLaptopCode, faOutdent as faSolidOutdent, + faImage as faSolidImage, faChevronRight as faSolidChevronRight, faMoon as faSolidMoon, faFan as faSolidFan, @@ -77,6 +78,7 @@ library.add(faSolidFileLines); library.add(faSolidCompass); library.add(faSolidPaperclip); library.add(faSolidFan); +library.add(faSolidImage); library.add(faSolidXmark); library.add(faSolidFire); library.add(faSolidLaptopCode); diff --git a/src/router/midjourney.ts b/src/router/midjourney.ts index 89d7932b..27ca0f8d 100644 --- a/src/router/midjourney.ts +++ b/src/router/midjourney.ts @@ -1,4 +1,4 @@ -import { ROUTE_MIDJOURNEY_HISTORY, ROUTE_MIDJOURNEY_INDEX } from './constants'; +import { ROUTE_MIDJOURNEY_INDEX } from './constants'; export default { path: '/midjourney', @@ -11,11 +11,6 @@ export default { path: '', name: ROUTE_MIDJOURNEY_INDEX, component: () => import('@/pages/midjourney/Index.vue') - }, - { - path: 'history', - name: ROUTE_MIDJOURNEY_HISTORY, - component: () => import('@/pages/midjourney/History.vue') } ] }; diff --git a/src/store/chat/actions.ts b/src/store/chat/actions.ts index 0fbed877..45293557 100644 --- a/src/store/chat/actions.ts +++ b/src/store/chat/actions.ts @@ -117,7 +117,7 @@ export const getConversations = async ({ } ) .then((response) => { - log(getConversations, 'get conversations success', response.data?.items); + log(getConversations, 'get conversations success', response.data?.items?.length); commit('setConversations', response.data.items); const conversations = response.data.items; resolve(conversations); diff --git a/src/store/midjourney/actions.ts b/src/store/midjourney/actions.ts index bb5f7bf0..46d0e808 100644 --- a/src/store/midjourney/actions.ts +++ b/src/store/midjourney/actions.ts @@ -3,14 +3,7 @@ import { IMidjourneyState } from './models'; import { ActionContext } from 'vuex'; import { log } from '@/utils/log'; import { IRootState } from '../common/models'; -import { - IApplication, - ICredential, - IMidjourneyImagineTask, - IMidjourneyMode, - IMidjourneyPreset, - IService -} from '@/models'; +import { IApplication, ICredential, IMidjourneyImagineTask, IMidjourneyPreset, IService } from '@/models'; import { Status } from '@/models/common'; import { MIDJOURNEY_SERVICE_ID } from '@/constants'; @@ -27,7 +20,7 @@ export const setPreset = ({ commit }: any, payload: IMidjourneyPreset) => { commit('setPreset', payload); }; -export const setMode = ({ commit }: any, payload: IMidjourneyMode) => { +export const setMode = ({ commit }: any, payload: string) => { commit('setMode', payload); }; @@ -105,7 +98,9 @@ export const getImagineTasks = async ( midjourneyOperator .tasks( { - applicationId: state.application?.id + applicationId: state.application?.id, + offset, + limit }, { token diff --git a/src/store/midjourney/models.ts b/src/store/midjourney/models.ts index 992ce57c..4573c128 100644 --- a/src/store/midjourney/models.ts +++ b/src/store/midjourney/models.ts @@ -1,12 +1,4 @@ -import { - IApplication, - ICredential, - IMidjourneyImagineTask, - IMidjourneyMode, - IMidjourneyPreset, - IService, - Status -} from '@/models'; +import { IApplication, ICredential, IMidjourneyImagineTask, IMidjourneyPreset, IService, Status } from '@/models'; export interface IMidjourneyState { service: IService | undefined; @@ -15,7 +7,6 @@ export interface IMidjourneyState { imagineTasksTotal: number | undefined; credential: ICredential | undefined; preset: IMidjourneyPreset; - mode: IMidjourneyMode; status: { getService: Status; getApplication: Status; diff --git a/src/store/midjourney/mutations.ts b/src/store/midjourney/mutations.ts index 1bfb6d86..ba242ad1 100644 --- a/src/store/midjourney/mutations.ts +++ b/src/store/midjourney/mutations.ts @@ -1,4 +1,4 @@ -import { IApplication, ICredential, IMidjourneyMode, IMidjourneyPreset, IService } from '@/models'; +import { IApplication, ICredential, IMidjourneyPreset, IService } from '@/models'; import { IMidjourneyState } from './models'; export const resetAll = (state: IMidjourneyState): void => { @@ -23,10 +23,6 @@ export const setPreset = (state: IMidjourneyState, payload: IMidjourneyPreset): state.preset = payload; }; -export const setMode = (state: IMidjourneyState, payload: IMidjourneyMode): void => { - state.mode = payload; -}; - export const setImagineTasks = (state: IMidjourneyState, payload: any): void => { state.imagineTasks = payload; }; @@ -40,7 +36,6 @@ export default { setPreset, setCredential, setService, - setMode, setImagineTasks, setImagineTasksTotal, resetAll diff --git a/src/store/midjourney/state.ts b/src/store/midjourney/state.ts index c6dc7b3d..10ced306 100644 --- a/src/store/midjourney/state.ts +++ b/src/store/midjourney/state.ts @@ -1,4 +1,3 @@ -import { MIDJOURNEY_MODE_FAST } from '@/constants'; import { IMidjourneyState } from './models'; import { Status } from '@/models'; @@ -10,7 +9,6 @@ export default (): IMidjourneyState => { imagineTasksTotal: undefined, credential: undefined, preset: {}, - mode: MIDJOURNEY_MODE_FAST, status: { getService: Status.None, getApplication: Status.None,