diff --git a/src/components/common/Navigator.vue b/src/components/common/Navigator.vue
index 4f6cdde8..b500c845 100644
--- a/src/components/common/Navigator.vue
+++ b/src/components/common/Navigator.vue
@@ -15,7 +15,7 @@
import { defineComponent } from 'vue';
import { ElTooltip, ElButton } from 'element-plus';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
-import { ROUTE_CHAT_INDEX, ROUTE_PAINT_INDEX } from '@/router/constants';
+import { ROUTE_CHAT_INDEX, ROUTE_MIDJOURNEY_INDEX } from '@/router/constants';
export default defineComponent({
name: 'Navigator',
@@ -34,7 +34,7 @@ export default defineComponent({
},
{
route: {
- name: ROUTE_PAINT_INDEX
+ name: ROUTE_MIDJOURNEY_INDEX
},
icon: 'fa-solid fa-palette'
}
diff --git a/src/components/midjourney/PresetPanel.vue b/src/components/midjourney/PresetPanel.vue
new file mode 100644
index 00000000..6a2806c3
--- /dev/null
+++ b/src/components/midjourney/PresetPanel.vue
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
diff --git a/src/components/midjourney/RatioSelecor.vue b/src/components/midjourney/RatioSelecor.vue
new file mode 100644
index 00000000..bf213690
--- /dev/null
+++ b/src/components/midjourney/RatioSelecor.vue
@@ -0,0 +1,44 @@
+
+
+
+
+
+ {{ option.label }}
+
+
+
+
+
+
+
+
diff --git a/src/operators/chat/constants.ts b/src/operators/chat/constants.ts
index 7b01ceb4..fc2a5868 100644
--- a/src/operators/chat/constants.ts
+++ b/src/operators/chat/constants.ts
@@ -19,7 +19,7 @@ export const API_ID_CHATGPT4_BROWSING = 'a61de51b-d0d0-48a2-9a17-1d4986d5d497';
export const CHAT_MODEL_CHATGPT: IChatModel = {
apiId: API_ID_CHATGPT,
name: CHAT_MODEL_NAME_CHATGPT,
- displayName: '基础 - 3.5'
+ displayName: '基础 - 4k'
};
export const CHAT_MODEL_CHATGPT_16K: IChatModel = {
diff --git a/src/operators/chat/operator.ts b/src/operators/chat/operator.ts
index 33989c10..d225f2a7 100644
--- a/src/operators/chat/operator.ts
+++ b/src/operators/chat/operator.ts
@@ -1,11 +1,8 @@
-import axios, { AxiosResponse, AxiosRequestConfig } from 'axios';
+import axios, { AxiosResponse } from 'axios';
import {
- IChatHistoryRequest,
- IChatHistoryResponse,
IChatAskOptions,
IChatAskRequest,
IChatAskResponse,
- IChatHistoryOptions,
IChatConversationRequest,
IChatConversationOptions,
IChatConversationResponse
diff --git a/src/pages/midjourney/Index.vue b/src/pages/midjourney/Index.vue
new file mode 100644
index 00000000..070773cf
--- /dev/null
+++ b/src/pages/midjourney/Index.vue
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
diff --git a/src/pages/paint/Index.vue b/src/pages/paint/Index.vue
deleted file mode 100644
index 18acd737..00000000
--- a/src/pages/paint/Index.vue
+++ /dev/null
@@ -1,3 +0,0 @@
-
- hi
-
diff --git a/src/router/constants.ts b/src/router/constants.ts
index 71c6878d..62942602 100644
--- a/src/router/constants.ts
+++ b/src/router/constants.ts
@@ -7,8 +7,8 @@ export const ROUTE_CHAT_INDEX = 'chat-index';
export const ROUTE_CHAT_CONVERSATION = 'chat-conversation';
export const ROUTE_CHAT_CONVERSATION_NEW = 'chat-conversation-new';
-export const ROUTE_PAINT_INDEX = 'paint-index';
-export const ROUTE_PAINT_HISTORY = 'paint-history';
+export const ROUTE_MIDJOURNEY_INDEX = 'midjourney-index';
+// export const ROUTE_MIDJOURNEY_HISTORY = 'paint-history';
export const ROUTE_CONVERSATION_NEW = 'conversation-new';
export const ROUTE_CONVERSATION_DETAIL = 'conversation-detail';
diff --git a/src/router/index.ts b/src/router/index.ts
index 050af5f6..4c017945 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -1,10 +1,7 @@
import { createRouter, createWebHistory } from 'vue-router';
-import auth from './auth';
-import conversation from './conversation';
-import store from '@/store';
import chat from './chat';
-import paint from './paint';
-import { ROUTE_AUTH_LOGIN, ROUTE_CONVERSATION_NEW, ROUTE_INDEX } from './constants';
+import midjourney from './midjourney';
+import { ROUTE_CONVERSATION_NEW, ROUTE_INDEX } from './constants';
const routes = [
{
@@ -15,7 +12,7 @@ const routes = [
}
},
chat,
- paint
+ midjourney
];
const router = createRouter({
diff --git a/src/router/midjourney.ts b/src/router/midjourney.ts
new file mode 100644
index 00000000..19804cda
--- /dev/null
+++ b/src/router/midjourney.ts
@@ -0,0 +1,13 @@
+import { ROUTE_MIDJOURNEY_INDEX } from './constants';
+
+export default {
+ path: '/midjourney',
+ component: () => import('@/layouts/Main.vue'),
+ children: [
+ {
+ path: '',
+ name: ROUTE_MIDJOURNEY_INDEX,
+ component: () => import('@/pages/midjourney/Index.vue')
+ }
+ ]
+};
diff --git a/src/router/paint.ts b/src/router/paint.ts
deleted file mode 100644
index 9ab18f6f..00000000
--- a/src/router/paint.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import { ROUTE_PAINT_INDEX } from './constants';
-
-export default {
- path: '/paint',
- component: () => import('@/layouts/Main.vue'),
- children: [
- {
- path: '',
- name: ROUTE_PAINT_INDEX,
- component: () => import('@/pages/paint/Index.vue')
- }
- ]
-};