diff --git a/.eslintrc.js b/.eslintrc.js index aa55bd0..b85d772 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -17,5 +17,6 @@ module.exports = { "no-console": process.env.NODE_ENV === "production" ? "warn" : "off", "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off", "@typescript-eslint/no-explicit-any": "off", + "@vue/no-deprecated-filter": "off", } }; diff --git a/src/components/Navbar.vue b/src/components/Navbar.vue index aaada17..6ea9b50 100644 --- a/src/components/Navbar.vue +++ b/src/components/Navbar.vue @@ -25,14 +25,6 @@ export default defineComponent({ { text: "Astres", link: "/astres" - }, - { - text: "À propos", - link: "/a-propos" - }, - { - text: "Profil", - link: "/profil" } ] }; diff --git a/src/components/celestials/CelestialFilters.vue b/src/components/celestials/CelestialFilters.vue index d3f3050..11b29d6 100644 --- a/src/components/celestials/CelestialFilters.vue +++ b/src/components/celestials/CelestialFilters.vue @@ -106,7 +106,6 @@ export default defineComponent({ this.filters.others = true; } - // Emit filter type this.$emit("filter:celestials", type); } } diff --git a/src/shims-vue.d.ts b/src/shims-vue.d.ts index f001839..60e7c14 100644 --- a/src/shims-vue.d.ts +++ b/src/shims-vue.d.ts @@ -4,5 +4,4 @@ declare module '*.vue' { const component: DefineComponent<{}, {}, any> export default component } - -declare module 'uuid'; \ No newline at end of file +declare module 'uuid'; diff --git a/src/views/Profile.vue b/src/views/Profile.vue index d61f568..1d91b78 100644 --- a/src/views/Profile.vue +++ b/src/views/Profile.vue @@ -4,6 +4,7 @@

My Profile


Profile for {{ user.name }}

+

Inscrit le {{ registerDateFr }}

@@ -79,6 +80,7 @@ export default defineComponent({ avatar: null, age: 21, repos: [], + registerDate: "2020-10-30", friends: [ { uuid: "91261477-04fb-4052-8ef9-6041ad7afb7e", @@ -101,6 +103,18 @@ export default defineComponent({ }; }, + computed: { + registerDateFr(): any { + const data = new Date(this.user.registerDate); + const date = { + day: data.getDate(), + month: data.getUTCMonth() + 1, + year: data.getFullYear() + }; + return `${date.day}/${date.month}/${date.year}`; + } + }, + methods: { addFriend() { if (this.inputFriend.name) { @@ -118,7 +132,7 @@ export default defineComponent({ } }, - mounted() { + created() { axios .get("https://api.github.com/users/alexisnp") .then(res => {