Format shit

This commit is contained in:
MotorTruck1221
2025-05-04 23:57:30 -06:00
parent a78ab8e1b2
commit 5f640d8e06
21 changed files with 338 additions and 298 deletions
+7 -5
View File
@@ -8,12 +8,14 @@ import Input from "@components/ui/Input.astro";
import Button from "@components/ui/Button.astro";
import { type DropdownOptions } from "@utils/types";
const Themes: DropdownOptions[] = [{ name: 'Default', value: 'default' }];
const files = await readdir(pathJoin(import.meta.dirname, '..', '..', 'styles', 'themes'), { encoding: 'utf-8' });
const Themes: DropdownOptions[] = [{ name: "Default", value: "default" }];
const files = await readdir(pathJoin(import.meta.dirname, "..", "..", "styles", "themes"), {
encoding: "utf-8"
});
files.forEach((name) => {
Themes.push({
name: name.toLowerCase().charAt(0).toUpperCase() + name.slice(1).replace('.css', ''),
value: name.toLowerCase().replace('.css', '')
Themes.push({
name: name.toLowerCase().charAt(0).toUpperCase() + name.slice(1).replace(".css", ""),
value: name.toLowerCase().replace(".css", "")
});
});
---
+3 -3
View File
@@ -5,9 +5,9 @@ import Input from "@components/ui/Input.astro";
import Button from "@components/ui/Button.astro";
import { SearchEngines, type DropdownOptions } from "@utils/types";
const SearchEngineOptions: DropdownOptions[] = [];
Object.keys(SearchEngines).forEach((k) => SearchEngineOptions.push(
{ name: k, value: SearchEngines[k] }
));
Object.keys(SearchEngines).forEach((k) =>
SearchEngineOptions.push({ name: k, value: SearchEngines[k] })
);
---
<SettingsLayout active="proxy" title="Proxy">
<div class="w-full flex-grow">
+4 -4
View File
@@ -1,17 +1,17 @@
---
import Layout from '@layouts/Layout.astro';
import { Icon } from 'astro-icon/components'
import Layout from "@layouts/Layout.astro";
import { Icon } from "astro-icon/components";
import splash from "@assets/splash.json";
const genSplash = (): String => {
const idx = Math.floor(Math.random() * splash.length);
return splash[idx].splash;
}
};
const randomSplash = genSplash();
const link = Astro.url.searchParams.get('redir');
const link = Astro.url.searchParams.get("redir");
---
<Layout>