workstations and light theme

This commit is contained in:
2026-04-16 16:33:48 +03:00
parent 555e920c18
commit bbfaf5ccc5
37 changed files with 1015 additions and 106 deletions
+7 -2
View File
@@ -1,5 +1,6 @@
let stackList = [];
let projectsList = [];
let workstationsList = [];
let linksList = [];
const fetchJson = async (path) => {
@@ -13,7 +14,7 @@ const fetchJson = async (path) => {
};
const loadIcon = async (key) => {
const response = await fetch(`./icons/${key}.svg`);
const response = await fetch(`./img/icons/${key}.svg`);
if (!response.ok) {
return key;
@@ -25,5 +26,9 @@ const loadIcon = async (key) => {
const formatIndex = (index) => String(index + 1).padStart(2, "0");
document.addEventListener("DOMContentLoaded", () => {
loadStack().then(loadProjects).then(loadLinks).catch(console.error);
loadStack()
.then(loadProjects)
.then(loadWorkstations)
.then(loadLinks)
.catch(console.error);
});