diff --git a/client/nginx.conf b/client/nginx.conf index eda38eb..b626f1e 100644 --- a/client/nginx.conf +++ b/client/nginx.conf @@ -7,7 +7,6 @@ events { } http { include /etc/nginx/mime.types; - default_type application/octet-stream; types { application/javascript mjs; } diff --git a/client/src/App.vue b/client/src/App.vue deleted file mode 100644 index a903e65..0000000 --- a/client/src/App.vue +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - diff --git a/client/src/assets/logo.png b/client/src/assets/logo.png deleted file mode 100644 index f3d2503..0000000 Binary files a/client/src/assets/logo.png and /dev/null differ diff --git a/client/src/components/AboutMe.vue b/client/src/components/AboutMe.vue deleted file mode 100644 index 14533b4..0000000 --- a/client/src/components/AboutMe.vue +++ /dev/null @@ -1,40 +0,0 @@ - - - - - diff --git a/client/src/components/Answer.vue b/client/src/components/Answer.vue deleted file mode 100644 index 5ba2ff5..0000000 --- a/client/src/components/Answer.vue +++ /dev/null @@ -1,18 +0,0 @@ - - - - diff --git a/client/src/components/QA.vue b/client/src/components/QA.vue deleted file mode 100644 index d93afb1..0000000 --- a/client/src/components/QA.vue +++ /dev/null @@ -1,38 +0,0 @@ - - - - - diff --git a/client/src/components/Question.vue b/client/src/components/Question.vue deleted file mode 100644 index cee01a0..0000000 --- a/client/src/components/Question.vue +++ /dev/null @@ -1,27 +0,0 @@ - - - - - diff --git a/client/src/main.js b/client/src/main.js deleted file mode 100644 index ca5c0fc..0000000 --- a/client/src/main.js +++ /dev/null @@ -1,14 +0,0 @@ -import Vue from 'vue' -import VueResource from 'vue-resource' - -import App from './App.vue' -import router from './router' - -Vue.config.productionTip = false - -Vue.use(VueResource) - -new Vue({ - render: h => h(App), - router, -}).$mount('#app') diff --git a/client/src/remote.js b/client/src/remote.js deleted file mode 100644 index 2d025a1..0000000 --- a/client/src/remote.js +++ /dev/null @@ -1,23 +0,0 @@ -module.exports = { - getPosts: function(id) { - const BASE_URL = '/api/posts' - const URL = BASE_URL + (id ? `/${id}` : '?sort=-1') - - this.$http - .get(URL) - .then(res => { - if (id) { - if (res.body.length === 0) { - throw Error("Response body empty") - } - this.post = res.body - } - else { - this.posts = res.body - } - }) - .catch(err => { - console.log(`Error: ${err}`) - }) - }, -} diff --git a/client/src/router/index.js b/client/src/router/index.js deleted file mode 100644 index 56af24d..0000000 --- a/client/src/router/index.js +++ /dev/null @@ -1,46 +0,0 @@ -import Vue from 'vue' -import VueRouter from 'vue-router' -import Home from '../views/Home.vue' -import Posts from '../views/Posts.vue' -import Post from '../views/Post.vue' -import QAPage from '../views/QAPage' - -Vue.use(VueRouter) - -const routes = [ - { - path: "/", - name: "Home", - component: Home, - }, - { - path: "/posts", - name: "Posts", - component: Posts, - }, - { - path: "/posts/:id", - name: "Post", - component: Post, - props: true, - }, - { - path: "/qa", - name: "QA", - component: QAPage - }, -] - -const exclude_routes = [ - { - path: "/api" - } -] - -const router = new VueRouter({ - mode: "history", - base: process.env.BASE_URL, - routes: routes.concat(exclude_routes), -}) - -export default router diff --git a/client/src/views/Home.vue b/client/src/views/Home.vue deleted file mode 100644 index 17fed09..0000000 --- a/client/src/views/Home.vue +++ /dev/null @@ -1,19 +0,0 @@ - - - - - diff --git a/client/src/views/Post.vue b/client/src/views/Post.vue deleted file mode 100644 index 0cad746..0000000 --- a/client/src/views/Post.vue +++ /dev/null @@ -1,45 +0,0 @@ - - - - - \ No newline at end of file diff --git a/client/src/views/Posts.vue b/client/src/views/Posts.vue deleted file mode 100644 index b46ce22..0000000 --- a/client/src/views/Posts.vue +++ /dev/null @@ -1,68 +0,0 @@ - - - - - \ No newline at end of file diff --git a/client/src/views/QAPage.vue b/client/src/views/QAPage.vue deleted file mode 100644 index 685ef77..0000000 --- a/client/src/views/QAPage.vue +++ /dev/null @@ -1,25 +0,0 @@ - - - - - \ No newline at end of file