From 6de7a8bae7a955849b7d5b0c581a4248808d0e61 Mon Sep 17 00:00:00 2001 From: Zhao Zuohong <1040110848@qq.com> Date: Tue, 2 Nov 2021 02:16:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BF=E9=97=AEjson=E5=BE=97=E5=88=B0pdf?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 1 + package.json | 1 + public/{ => Computer}/gdb.pdf | Bin public/db.json | 8 ++++++++ src/App.vue | 28 ++++++++++++++++++---------- yarn.lock | 9 ++++++++- 6 files changed, 36 insertions(+), 11 deletions(-) create mode 100644 .env rename public/{ => Computer}/gdb.pdf (100%) create mode 100644 public/db.json diff --git a/.env b/.env new file mode 100644 index 0000000..8c5724e --- /dev/null +++ b/.env @@ -0,0 +1 @@ +VUE_APP_URL_ROOT='/' \ No newline at end of file diff --git a/package.json b/package.json index 9a630d1..3c163e6 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "lint": "vue-cli-service lint" }, "dependencies": { + "axios": "^0.24.0", "bootstrap": "^5.1.3", "bootstrap-icons": "^1.6.1", "core-js": "^3.6.5", diff --git a/public/gdb.pdf b/public/Computer/gdb.pdf similarity index 100% rename from public/gdb.pdf rename to public/Computer/gdb.pdf diff --git a/public/db.json b/public/db.json new file mode 100644 index 0000000..24c501a --- /dev/null +++ b/public/db.json @@ -0,0 +1,8 @@ +{ + "categories": [ + { + "name": "Computer", + "files": ["modern-full-stack.pdf", "gdb.pdf"] + } + ] +} diff --git a/src/App.vue b/src/App.vue index 6ecf838..5dbe5cb 100644 --- a/src/App.vue +++ b/src/App.vue @@ -29,13 +29,22 @@