From 678720a74fd0ae784f130d22db8f94e70b4dbe08 Mon Sep 17 00:00:00 2001 From: ivamp Date: Thu, 7 Dec 2023 22:52:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 5 +- src/plugins/api.ts | 2 +- src/router/index.ts | 8 ++- src/views/documents/List.vue | 27 ++++++-- src/views/documents/View.vue | 2 +- src/views/libraries/Query.vue | 122 ++++++++++++++++++++++++++++++++++ yarn.lock | 5 ++ 7 files changed, 159 insertions(+), 12 deletions(-) create mode 100644 src/views/libraries/Query.vue diff --git a/package.json b/package.json index 0af64e9..1e663fa 100644 --- a/package.json +++ b/package.json @@ -11,14 +11,15 @@ "dependencies": { "axios": "^1.6.2", "core-js": "^3.29.0", + "event-source-polyfill": "^1.0.31", + "md-editor-v3": "^4.8.3", "pinia": "^2.0.0", "pinia-plugin-persistedstate": "^3.2.0", "roboto-fontface": "*", "vue": "^3.2.0", "vue-axios": "^3.5.2", "vue-router": "^4.0.0", - "vuetify": "^3.0.0", - "md-editor-v3": "^4.8.3" + "vuetify": "^3.0.0" }, "devDependencies": { "@babel/types": "^7.21.4", diff --git a/src/plugins/api.ts b/src/plugins/api.ts index ac4e784..bc9a2be 100644 --- a/src/plugins/api.ts +++ b/src/plugins/api.ts @@ -54,5 +54,5 @@ const library = new LibrariesApi(conf); export { - document, library + document, library, conf } diff --git a/src/router/index.ts b/src/router/index.ts index 9193429..e69b735 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -30,6 +30,11 @@ const routes = [ name: "library.documents", component: () => import("@/views/documents/List.vue"), }, + { + path: "/library/:LibraryId/query", + name: "library.query", + component: () => import("@/views/libraries/Query.vue"), + }, { path: "/library/:LibraryId/documents/create", name: "library.documents.create", @@ -39,7 +44,8 @@ const routes = [ path: "/library/:LibraryId/documents/:DocumentId", name: "library.documents.view", component: () => import("@/views/documents/View.vue"), - } + }, + ]; const router = createRouter({ diff --git a/src/views/documents/List.vue b/src/views/documents/List.vue index a44639a..c18f17d 100644 --- a/src/views/documents/List.vue +++ b/src/views/documents/List.vue @@ -1,7 +1,7 @@ diff --git a/src/views/libraries/Query.vue b/src/views/libraries/Query.vue new file mode 100644 index 0000000..6754adb --- /dev/null +++ b/src/views/libraries/Query.vue @@ -0,0 +1,122 @@ + + + + + diff --git a/yarn.lock b/yarn.lock index b6eb1b0..e33dfe2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1305,6 +1305,11 @@ esutils@^2.0.2: resolved "https://registry.npmmirror.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== +event-source-polyfill@^1.0.31: + version "1.0.31" + resolved "https://registry.npmmirror.com/event-source-polyfill/-/event-source-polyfill-1.0.31.tgz#45fb0a6fc1375b2ba597361ba4287ffec5bf2e0c" + integrity sha512-4IJSItgS/41IxN5UVAVuAyczwZF7ZIEsM1XAoUzIHA6A+xzusEZUutdXz2Nr+MQPLxfTiCvqE79/C8HT8fKFvA== + fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: version "3.1.3" resolved "https://registry.npmmirror.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"