+
@@ -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}
-
- Having problems?
+
+
Having problems?
-
+
© 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