Bye bye spot.js

This commit is contained in:
2026-04-25 23:55:11 +02:00
parent 7dc2b28c44
commit b339d6d068
13 changed files with 270 additions and 470 deletions
+17
View File
@@ -0,0 +1,17 @@
export default class Projects {
constructor(asProjects = {}) {
Object.assign(this, asProjects);
}
getDefaultCodeName() {
for(const [sCodeName, asProject] of Object.entries(this)) {
if(asProject.default) return sCodeName;
}
}
getDefaultProject() {
const sCodeName = this.getDefaultCodeName();
return this[this.getDefaultCodeName()];
}
}