diff --git a/.env b/.env deleted file mode 100644 index 8c5724e..0000000 --- a/.env +++ /dev/null @@ -1 +0,0 @@ -VUE_APP_URL_ROOT='/' \ No newline at end of file diff --git a/public/categories/.gitkeep b/public/categories/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/public/categories/computer/gdb.pdf b/public/categories/computer/gdb.pdf deleted file mode 100644 index 5798bb8..0000000 Binary files a/public/categories/computer/gdb.pdf and /dev/null differ diff --git a/public/db.json b/public/db.json deleted file mode 100644 index ccc0db2..0000000 --- a/public/db.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "categories": [ - { - "name": "computer", - "files": ["modern-full-stack.pdf", "gdb.pdf"] - } - ] -} diff --git a/src/App.vue b/src/App.vue index 1ffea5f..576e2fc 100644 --- a/src/App.vue +++ b/src/App.vue @@ -75,7 +75,7 @@ export default defineComponent({ }, async created() { const { data } = await axios.get(`${this.url_root}db.json`); - this.categories = data.categories; + this.categories = data; }, }); diff --git a/vue.config.js b/vue.config.js new file mode 100644 index 0000000..c44899e --- /dev/null +++ b/vue.config.js @@ -0,0 +1,3 @@ +module.exports = { + publicPath: process.env.VUE_APP_URL_ROOT, +};