-
-
+
+
+
+
+
+
+
+
+
+
@@ -137,20 +772,35 @@ _This is italic text_
-
+
-
+
+
+ {{ state.pointCost }}
+
+
+
-
+ :disabled="state.conversationLoading || state.formMessage.length === 0 || state.pointCostLoading">
+
发送
+
+
+
+
+
@@ -173,6 +823,23 @@ _This is italic text_
text-decoration: none;
}
+.message-chunk {
+ border-top: 1px solid rgba(var(--ion-text-color-rgb), 0.1);
+
+ &:first-of-type {
+ border-top: none;
+ }
+
+ :deep(.message-container) {
+ border-top: 1px solid rgba(var(--ion-text-color-rgb), 0.1);
+ width: 100%;
+
+ &:first-of-type {
+ border-top: none;
+ }
+ }
+}
+
.message-input-container {
display: flex;
gap: 4px;
@@ -201,7 +868,8 @@ _This is italic text_
.message-action-btn-container {
flex-wrap: wrap;
- align-content: start;
+ align-content: center;
+ margin-top: 1px;
}
.message-action-btn {
@@ -213,4 +881,42 @@ _This is italic text_
height: 35px;
margin: 0 0 0 8px;
}
+
+.message-send-btn-mobile {
+ height: 35px;
+ margin: 0 0 0 8px;
+ display: none;
+ --padding-start: 4px;
+ --padding-end: 4px;
+}
+
+@media (max-width: 767px) {
+ .message-send-btn {
+ display: none;
+ }
+
+ .message-send-btn-mobile {
+ display: block;
+ }
+}
+
+.point-cost {
+ flex: 0 0 auto;
+ min-width: 68px;
+ margin-top: 2px;
+ margin-right: 4px;
+ margin-bottom: 1px;
+ margin-left: 0;
+
+ ion-spinner {
+ width: 20px;
+ height: 20px;
+ }
+}
+
+@media (max-width: 767px) {
+ .full-title-popover {
+ --width: 80vw;
+ }
+}
\ No newline at end of file
diff --git a/src/views/Index.vue b/src/views/Index.vue
index a247f71..b2b0346 100644
--- a/src/views/Index.vue
+++ b/src/views/Index.vue
@@ -1,10 +1,16 @@
+
+
diff --git a/src/views/Login.vue b/src/views/Login.vue
index afb68fd..7cb547f 100644
--- a/src/views/Login.vue
+++ b/src/views/Login.vue
@@ -1,7 +1,10 @@
-
-const store = useStore()
+
@@ -17,7 +20,7 @@ const store = useStore()
-
+
正在登录
diff --git a/src/views/ToolkitIndex.vue b/src/views/ToolboxIndex.vue
similarity index 56%
rename from src/views/ToolkitIndex.vue
rename to src/views/ToolboxIndex.vue
index c2af7ef..26102dd 100644
--- a/src/views/ToolkitIndex.vue
+++ b/src/views/ToolboxIndex.vue
@@ -1,12 +1,41 @@
+
+
@@ -17,23 +46,28 @@ onMounted(() => {
-
异世界写作助手
+
{{ appName }}
-
功能表
+
工具列表
-
+
对话
- 写作助手
+
+ 写作助手
+ (需要登录)
+ (需要选择页面)
+
- 与写作助手对话,获得更多的灵感吧!
+ 与写作助手对话,获得更多的灵感吧!
diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts
index 11f02fe..0686a7f 100644
--- a/src/vite-env.d.ts
+++ b/src/vite-env.d.ts
@@ -1 +1,9 @@
///
+///
+
+declare module "*.vue" {
+ import type { DefineComponent } from "vue";
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
+ const component: DefineComponent<{}, {}, any>;
+ export default component;
+}
\ No newline at end of file
diff --git a/tsconfig.json b/tsconfig.json
index 4880269..811c64b 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -2,6 +2,7 @@
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
+ "composite": true,
"module": "ESNext",
"moduleResolution": "Node",
"strict": true,
@@ -12,10 +13,10 @@
"lib": ["ESNext", "DOM"],
"skipLibCheck": true,
"noEmit": true,
+ "allowSyntheticDefaultImports": true,
"paths": {
"@/*": ["./src/*"]
}
},
- "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
- "references": [{ "path": "./tsconfig.node.json" }]
+ "include": ["vite.config.ts", "src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"]
}
\ No newline at end of file
diff --git a/tsconfig.node.json b/tsconfig.node.json
deleted file mode 100644
index 9d31e2a..0000000
--- a/tsconfig.node.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "compilerOptions": {
- "composite": true,
- "module": "ESNext",
- "moduleResolution": "Node",
- "allowSyntheticDefaultImports": true
- },
- "include": ["vite.config.ts"]
-}
diff --git a/tsconfig.tsbuildinfo b/tsconfig.tsbuildinfo
new file mode 100644
index 0000000..8f732e3
--- /dev/null
+++ b/tsconfig.tsbuildinfo
@@ -0,0 +1 @@
+{"version":"5.1.3"}
\ No newline at end of file
diff --git a/vite.config.ts b/vite.config.ts
index 725897d..8c4968b 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -14,7 +14,7 @@ export default defineConfig({
imports: [
'vue',
],
- dts: 'src/auto-imports.d.ts',
+ dts: './src/auto-imports.d.ts'
}),
Components({
dirs: [
@@ -23,7 +23,7 @@ export default defineConfig({
resolvers: [
IonicResolver(),
],
- dts: 'src/components.d.ts',
+ dts: './src/components.d.ts'
}),
],
resolve: {
@@ -31,17 +31,28 @@ export default defineConfig({
'@': path.resolve(__dirname, './src'),
},
},
+ build: {
+ rollupOptions: {
+ output: {
+ manualChunks: {
+ 'ionicons': ['ionicons'],
+ 'markdown-it': ['markdown-it'],
+ 'highlight-js': ['highlight.js'],
+ }
+ },
+ }
+ },
server: {
host: '0.0.0.0',
- port: env.VITE_PORT as unknown as number,
- open: env.VITE_OPEN,
- proxy: {
- '/api': {
- target: 'http://192.168.0.14:8144',
- ws: true,
- changeOrigin: true,
- rewrite: (path) => path.replace(/^\/api/, ''),
- },
- },
+ port: env.VITE_PORT as unknown as number || 5174,
+ open: env.VITE_OPEN,
+ proxy: {
+ '/api/toolkit': {
+ target: 'http://127.0.0.1:8144/',
+ ws: true,
+ changeOrigin: true,
+ rewrite: (path) => path.replace(/^\/api\/toolkit/, ''),
+ },
+ },
}
})