From 23d900b0ffb804138debbf6dfaade00f3cfe4b01 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Tue, 24 Nov 2020 19:26:34 +0100 Subject: [PATCH] Importing blog --- .gitignore | 2 +- config/Axios.ts | 4 +- package.json | 2 +- src/assets/css/tailwind.css | 1 - src/components/Post.vue | 43 ++++++++---- src/tailwind.config.js | 1 + src/templates/pages/blog/_id.vue | 107 ++++++++++++++++++----------- src/templates/pages/blog/index.vue | 54 ++++++++++++--- src/templates/pages/index.vue | 7 ++ 9 files changed, 150 insertions(+), 71 deletions(-) diff --git a/.gitignore b/.gitignore index 6ab80f3..a0e8b9c 100644 --- a/.gitignore +++ b/.gitignore @@ -60,7 +60,7 @@ typings/ .yarn-integrity # dotenv environment variables file -.env +src/.env # parcel-bundler cache (https://parceljs.org/) .cache diff --git a/config/Axios.ts b/config/Axios.ts index 156551c..bd08472 100644 --- a/config/Axios.ts +++ b/config/Axios.ts @@ -1,4 +1,4 @@ export default { - baseUrl: 'http://localhost:3333', - credentials: true + credentials: true, + baseURL: 'http://localhost:5555/' } diff --git a/package.json b/package.json index 29a56b5..be13530 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@nuxt/typescript-runtime": "^2.0.0", - "@nuxtjs/axios": "^5.12.2", + "@nuxtjs/axios": "5.12.1", "core-js": "^3.7.0", "nuxt": "^2.14.6", "sass": "^1.29.0", diff --git a/src/assets/css/tailwind.css b/src/assets/css/tailwind.css index 954f084..38191fb 100644 --- a/src/assets/css/tailwind.css +++ b/src/assets/css/tailwind.css @@ -4,4 +4,3 @@ @tailwind base; @tailwind components; @tailwind utilities; - diff --git a/src/components/Post.vue b/src/components/Post.vue index 6f143d4..bb07f9b 100644 --- a/src/components/Post.vue +++ b/src/components/Post.vue @@ -1,16 +1,20 @@