Format shit
This commit is contained in:
@@ -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", "")
|
||||
});
|
||||
});
|
||||
---
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user