feat(assets): new assets loading system (currently only for images)

This commit is contained in:
2025-12-17 12:28:48 +01:00
parent a31f72f41d
commit 2f16f382e5
106 changed files with 359 additions and 366 deletions

View File

@@ -38,7 +38,9 @@ export const useProjectsStore = defineStore("projects", {
if (!projects.value) throw "Cannot load projects";
this.projects = projects.value.map((project) => ({
...project,
id: project.id.split("/")[2]!,
id: project.id
.split("/")[2]!
.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase()),
}));
console.log(this.projects);