overall refactoring

This commit is contained in:
Klemek
2025-03-13 17:12:58 +01:00
parent 8e01f4f274
commit a53cc0ad08
13 changed files with 4097 additions and 30 deletions
+24 -9
View File
@@ -1,8 +1,20 @@
/* exported app */
let app = {
import { createApp } from "vue";
const utils = {
updateIcons() {
lucide.createIcons({
nameAttr: "icon",
attrs: {
width: "1.1em",
height: "1.1em",
},
});
},
};
const app = createApp({
data() {
return {
title: "Vue-Boilerplate",
content:
"Fill this page with <i>whatever</i> you're going to develop.<br><b>Then enjoy!</b>",
};
@@ -12,18 +24,21 @@ let app = {
return new Date().getFullYear();
},
},
watch: {},
updated() {
utils.updateIcons();
},
mounted() {
setTimeout(this.showApp);
utils.updateIcons();
},
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");
};