diff --git a/server/server.ts b/server/server.ts index 752a8e0..db8755f 100644 --- a/server/server.ts +++ b/server/server.ts @@ -58,7 +58,7 @@ if (parsedDoc.marketplace.enabled) { await app.register(fastifyMiddie); -app.use(ssrHandler); +//app.use(ssrHandler); const port: number = parseInt(process.env.PORT as string) || parsedDoc.server.server.port || parseInt("8080"); diff --git a/src/components/catalog/InstalledThemes.astro b/src/components/catalog/InstalledThemes.astro index 35b27d5..d0ec3b4 100644 --- a/src/components/catalog/InstalledThemes.astro +++ b/src/components/catalog/InstalledThemes.astro @@ -1,5 +1,5 @@
-
+
Classic nebula
@@ -84,16 +84,13 @@ main.appendChild(click); main.appendChild(info); parent.appendChild(main); - + + Elements.attachEvent(mainTheme, "click", () => { - main.classList.remove("border", "border-2"); - mainTheme.classList.add("border", "border-2"); marketplace.theme({ type: 'remove' }); }); - + Elements.attachEvent(click, "click", async () => { - mainTheme.classList.remove("border", "border-2"); - main.classList.add("border-2", "border"); await marketplace.theme( { type: 'normal', @@ -108,18 +105,10 @@ }); Elements.attachEvent(infoInnerDelete, "click", async () => { - main.classList.remove("border", "border-2"); - mainTheme.classList.add("border-2", "border"); await marketplace.uninstallTheme({ name: item.package_name }); parent.removeChild(main); await marketplace.theme({ type: 'remove' }); }); - - const themeName = await marketplace.getValueFromStore(SettingsVals.marketPlace.appearance.theme.name); - if (themeName !== null && main.dataset.name === themeName) { - mainTheme.classList.remove("border-2", "border"); - main.classList.add("border-2", "border"); - } } const init = async () => { diff --git a/src/pages/[lang]/index.astro b/src/pages/[lang]/index.astro index c98e5f8..54c59f5 100644 --- a/src/pages/[lang]/index.astro +++ b/src/pages/[lang]/index.astro @@ -38,12 +38,12 @@ import { VERSION } from "astro:env/client"; class="flex flex-row w-full absolute bottom-4 pr-4 pl-4 text-text-color h-6 justify-between items-center font-roboto" >

Version: {VERSION}

-

© Nebula Services 2024

diff --git a/src/utils/index.ts b/src/utils/index.ts index bb1c55b..4d797df 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -71,7 +71,7 @@ class Elements { throw new Error(`Something is WRONG. The element doesn't exist!`); } - static attachEvent(item: Element, event: EType, fn: () => unknown) { + static attachEvent(item: Element, event: EType, fn: (event?: Event) => unknown) { item.addEventListener(event, fn); }