Cleanup before nuxt move
This commit is contained in:
@@ -17,5 +17,6 @@ module.exports = {
|
|||||||
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
||||||
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
||||||
"@typescript-eslint/no-explicit-any": "off",
|
"@typescript-eslint/no-explicit-any": "off",
|
||||||
|
"@vue/no-deprecated-filter": "off",
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -25,14 +25,6 @@ export default defineComponent({
|
|||||||
{
|
{
|
||||||
text: "Astres",
|
text: "Astres",
|
||||||
link: "/astres"
|
link: "/astres"
|
||||||
},
|
|
||||||
{
|
|
||||||
text: "À propos",
|
|
||||||
link: "/a-propos"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: "Profil",
|
|
||||||
link: "/profil"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -106,7 +106,6 @@ export default defineComponent({
|
|||||||
this.filters.others = true;
|
this.filters.others = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Emit filter type
|
|
||||||
this.$emit("filter:celestials", type);
|
this.$emit("filter:celestials", type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
3
src/shims-vue.d.ts
vendored
3
src/shims-vue.d.ts
vendored
@@ -4,5 +4,4 @@ declare module '*.vue' {
|
|||||||
const component: DefineComponent<{}, {}, any>
|
const component: DefineComponent<{}, {}, any>
|
||||||
export default component
|
export default component
|
||||||
}
|
}
|
||||||
|
declare module 'uuid';
|
||||||
declare module 'uuid';
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
<h2>My Profile</h2>
|
<h2>My Profile</h2>
|
||||||
<hr />
|
<hr />
|
||||||
<h2>Profile for {{ user.name }}</h2>
|
<h2>Profile for {{ user.name }}</h2>
|
||||||
|
<p>Inscrit le {{ registerDateFr }}</p>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div v-if="user.avatar">
|
<div v-if="user.avatar">
|
||||||
@@ -79,6 +80,7 @@ export default defineComponent({
|
|||||||
avatar: null,
|
avatar: null,
|
||||||
age: 21,
|
age: 21,
|
||||||
repos: [],
|
repos: [],
|
||||||
|
registerDate: "2020-10-30",
|
||||||
friends: [
|
friends: [
|
||||||
{
|
{
|
||||||
uuid: "91261477-04fb-4052-8ef9-6041ad7afb7e",
|
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: {
|
methods: {
|
||||||
addFriend() {
|
addFriend() {
|
||||||
if (this.inputFriend.name) {
|
if (this.inputFriend.name) {
|
||||||
@@ -118,7 +132,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
created() {
|
||||||
axios
|
axios
|
||||||
.get("https://api.github.com/users/alexisnp")
|
.get("https://api.github.com/users/alexisnp")
|
||||||
.then(res => {
|
.then(res => {
|
||||||
|
|||||||
Reference in New Issue
Block a user