diff --git a/package-lock.json b/package-lock.json index c5fceeb..61eb0ee 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "contentful-cv2", "version": "0.0.0", "dependencies": { + "axios": "^1.2.2", "contentful": "^9.2.14", "contentful-rich-text-vue-renderer": "^3.0.1", "dayjs": "^1.11.7", @@ -1538,12 +1539,13 @@ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, "node_modules/axios": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz", - "integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.2.2.tgz", + "integrity": "sha512-bz/J4gS2S3I7mpN/YZfGFTqhXTYzRho8Ay38w2otuuDR322KzFIWm/4W2K6gIwvWaws5n+mnb7D1lN9uD+QH6Q==", "dependencies": { - "follow-redirects": "^1.14.9", - "form-data": "^4.0.0" + "follow-redirects": "^1.15.0", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" } }, "node_modules/balanced-match": { @@ -1755,6 +1757,15 @@ "node": ">=12" } }, + "node_modules/contentful/node_modules/axios": { + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz", + "integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==", + "dependencies": { + "follow-redirects": "^1.14.9", + "form-data": "^4.0.0" + } + }, "node_modules/core-util-is": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", @@ -4164,6 +4175,11 @@ "pbts": "bin/pbts" } }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + }, "node_modules/punycode": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", diff --git a/package.json b/package.json index baacda1..543c41c 100644 --- a/package.json +++ b/package.json @@ -8,9 +8,11 @@ "preview": "vite preview", "build-only": "vite build", "type-check": "vue-tsc --noEmit", - "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore" + "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", + "deploy": "firebase deploy --only hosting" }, "dependencies": { + "axios": "^1.2.2", "contentful": "^9.2.14", "contentful-rich-text-vue-renderer": "^3.0.1", "dayjs": "^1.11.7", diff --git a/src/components/CvUpdates.vue b/src/components/CvUpdates.vue new file mode 100644 index 0000000..6cf08b3 --- /dev/null +++ b/src/components/CvUpdates.vue @@ -0,0 +1,107 @@ + + + + + diff --git a/src/main.ts b/src/main.ts index 82415ed..c78903d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -3,6 +3,10 @@ import { createI18n } from "vue-i18n"; import App from "./App.vue"; import router from "./router"; import { messages } from "@/lang/messages"; +import relativeTime from "dayjs/plugin/relativeTime"; +import dayjs from "dayjs"; + +dayjs.extend(relativeTime); const i18n = createI18n({ locale: "en", diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 8efc730..2aec421 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -2,8 +2,10 @@ import { defineComponent } from "vue"; import { auth } from "@/firebase/init"; import type { User } from "@firebase/auth"; +import CvUpdates from "@/components/CvUpdates.vue"; export default defineComponent({ + components: { CvUpdates }, data() { return { email: "", @@ -54,14 +56,16 @@ export default defineComponent({ Consult πŸ‡ΊπŸ‡Έ mini CV +