boilerplate

This commit is contained in:
2025-01-06 10:23:20 +01:00
commit 9ed7efa606
4 changed files with 232 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
/* exported app */
let app = {
data() {
return {
title: "Vue-Boilerplate",
content:
"Fill this page with <i>whatever</i> you're going to develop.<br><b>Then enjoy!</b>",
};
},
computed: {
currentYear() {
return new Date().getFullYear();
},
},
methods: {
showApp() {
document.getElementById("app").setAttribute("style", "");
},
},
mounted: function () {
console.log("app mounted");
setTimeout(this.showApp);
},
};
window.onload = () => {
app = Vue.createApp(app);
app.mount("#app");
};