diff --git a/astro.config.ts b/astro.config.ts index bf40c70..41f9aa1 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -27,8 +27,11 @@ const viteWispServer = (): Plugin => { export default defineConfig({ vite: { plugins: [ + //@ts-ignore tailwindcss(), + //@ts-ignore viteWispServer(), + //@ts-ignore viteStaticCopy({ targets: [ { src: `${uvPath}/**/*`.replace(/\\/g, "/"), dest: "vu", overwrite: false }, diff --git a/biome.jsonc b/biome.jsonc new file mode 100644 index 0000000..ea1ffa6 --- /dev/null +++ b/biome.jsonc @@ -0,0 +1,42 @@ +{ + "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", + "vcs": { + "enabled": false, + "clientKind": "git", + "useIgnoreFile": false + }, + "files": { + "ignore": ["**/dist/**", ".github/**"], + "include": ["**/**", "server/**"] + }, + "formatter": { + "enabled": true, + "indentStyle": "space", + "indendWidth": 4, + "lineWidth": 100, + "ignore": ["pnpm-lock.yaml", "package.json"] + }, + "organizeImports": { + "enabled": true + }, + "linter": { + "enabled": false + }, + "javascript": { + "formatter": { + "trailingCommas": "none" + "quoteStyle": "double", + "semicolons": "always" + } + }, + "json": { + "parser": { + "allowComments": true, + "allowTrailingCommas": true + }, + "formatter": { + "indentSyle": "space", + "trailingCommas": "none" + } + } +} diff --git a/package.json b/package.json index 2a01498..0350563 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ }, "pnpm": { "onlyBuiltDependencies": [ + "@biomejs/biome", "bufferutil", "esbuild", "sharp", @@ -36,6 +37,7 @@ ] }, "devDependencies": { + "@biomejs/biome": "1.9.4", "@iconify-json/lucide": "^1.2.30", "@iconify-json/material-symbols": "^1.2.17", "@mercuryworkshop/bare-mux": "^2.1.7", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index df0915e..ab68b90 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -45,6 +45,9 @@ importers: specifier: ^1.1.7 version: 1.1.7 devDependencies: + '@biomejs/biome': + specifier: 1.9.4 + version: 1.9.4 '@iconify-json/lucide': specifier: ^1.2.30 version: 1.2.30 @@ -147,6 +150,59 @@ packages: resolution: {integrity: sha512-emqcG3vHrpxUKTrxcblR36dcrcoRDvKmnL/dCL6ZsHaShW80qxCAcNhzQZrpeM765VzEos+xOi4s+r4IXzTwdQ==} engines: {node: '>=6.9.0'} + '@biomejs/biome@1.9.4': + resolution: {integrity: sha512-1rkd7G70+o9KkTn5KLmDYXihGoTaIGO9PIIN2ZB7UJxFrWw04CZHPYiMRjYsaDvVV7hP1dYNRLxSANLaBFGpog==} + engines: {node: '>=14.21.3'} + hasBin: true + + '@biomejs/cli-darwin-arm64@1.9.4': + resolution: {integrity: sha512-bFBsPWrNvkdKrNCYeAp+xo2HecOGPAy9WyNyB/jKnnedgzl4W4Hb9ZMzYNbf8dMCGmUdSavlYHiR01QaYR58cw==} + engines: {node: '>=14.21.3'} + cpu: [arm64] + os: [darwin] + + '@biomejs/cli-darwin-x64@1.9.4': + resolution: {integrity: sha512-ngYBh/+bEedqkSevPVhLP4QfVPCpb+4BBe2p7Xs32dBgs7rh9nY2AIYUL6BgLw1JVXV8GlpKmb/hNiuIxfPfZg==} + engines: {node: '>=14.21.3'} + cpu: [x64] + os: [darwin] + + '@biomejs/cli-linux-arm64-musl@1.9.4': + resolution: {integrity: sha512-v665Ct9WCRjGa8+kTr0CzApU0+XXtRgwmzIf1SeKSGAv+2scAlW6JR5PMFo6FzqqZ64Po79cKODKf3/AAmECqA==} + engines: {node: '>=14.21.3'} + cpu: [arm64] + os: [linux] + + '@biomejs/cli-linux-arm64@1.9.4': + resolution: {integrity: sha512-fJIW0+LYujdjUgJJuwesP4EjIBl/N/TcOX3IvIHJQNsAqvV2CHIogsmA94BPG6jZATS4Hi+xv4SkBBQSt1N4/g==} + engines: {node: '>=14.21.3'} + cpu: [arm64] + os: [linux] + + '@biomejs/cli-linux-x64-musl@1.9.4': + resolution: {integrity: sha512-gEhi/jSBhZ2m6wjV530Yy8+fNqG8PAinM3oV7CyO+6c3CEh16Eizm21uHVsyVBEB6RIM8JHIl6AGYCv6Q6Q9Tg==} + engines: {node: '>=14.21.3'} + cpu: [x64] + os: [linux] + + '@biomejs/cli-linux-x64@1.9.4': + resolution: {integrity: sha512-lRCJv/Vi3Vlwmbd6K+oQ0KhLHMAysN8lXoCI7XeHlxaajk06u7G+UsFSO01NAs5iYuWKmVZjmiOzJ0OJmGsMwg==} + engines: {node: '>=14.21.3'} + cpu: [x64] + os: [linux] + + '@biomejs/cli-win32-arm64@1.9.4': + resolution: {integrity: sha512-tlbhLk+WXZmgwoIKwHIHEBZUwxml7bRJgk0X2sPyNR3S93cdRq6XulAZRQJ17FYGGzWne0fgrXBKpl7l4M87Hg==} + engines: {node: '>=14.21.3'} + cpu: [arm64] + os: [win32] + + '@biomejs/cli-win32-x64@1.9.4': + resolution: {integrity: sha512-8Y5wMhVIPaWe6jw2H+KlEm4wP/f7EW3810ZLmDlrEEy5KvBsb9ECEfu/kMWD484ijfQ8+nIi0giMgu9g1UAuuA==} + engines: {node: '>=14.21.3'} + cpu: [x64] + os: [win32] + '@capsizecss/unpack@2.4.0': resolution: {integrity: sha512-GrSU71meACqcmIUxPYOJvGKF0yryjN/L1aCuE9DViCTJI7bfkjgYDPD1zbNDcINJwSSP6UaBZY9GAbYDO7re0Q==} @@ -3111,6 +3167,41 @@ snapshots: '@babel/helper-string-parser': 7.25.9 '@babel/helper-validator-identifier': 7.25.9 + '@biomejs/biome@1.9.4': + optionalDependencies: + '@biomejs/cli-darwin-arm64': 1.9.4 + '@biomejs/cli-darwin-x64': 1.9.4 + '@biomejs/cli-linux-arm64': 1.9.4 + '@biomejs/cli-linux-arm64-musl': 1.9.4 + '@biomejs/cli-linux-x64': 1.9.4 + '@biomejs/cli-linux-x64-musl': 1.9.4 + '@biomejs/cli-win32-arm64': 1.9.4 + '@biomejs/cli-win32-x64': 1.9.4 + + '@biomejs/cli-darwin-arm64@1.9.4': + optional: true + + '@biomejs/cli-darwin-x64@1.9.4': + optional: true + + '@biomejs/cli-linux-arm64-musl@1.9.4': + optional: true + + '@biomejs/cli-linux-arm64@1.9.4': + optional: true + + '@biomejs/cli-linux-x64-musl@1.9.4': + optional: true + + '@biomejs/cli-linux-x64@1.9.4': + optional: true + + '@biomejs/cli-win32-arm64@1.9.4': + optional: true + + '@biomejs/cli-win32-x64@1.9.4': + optional: true + '@capsizecss/unpack@2.4.0': dependencies: blob-to-buffer: 1.2.9 diff --git a/src/components/Header.astro b/src/components/Header.astro index f9f7471..43c4f7f 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -49,9 +49,11 @@ const path = Astro.url.pathname; Home - + {/** This needs to be added later + Games - + + */} Apps diff --git a/src/components/Loader.astro b/src/components/Loader.astro index 377f82c..f2d9651 100644 --- a/src/components/Loader.astro +++ b/src/components/Loader.astro @@ -6,6 +6,7 @@ const init = async () => { settings.searchEngine(); + settings.proxy(); await sw.wispServer(); } diff --git a/src/layouts/SettingsLayout.astro b/src/layouts/SettingsLayout.astro index 469de24..3ab1fa4 100644 --- a/src/layouts/SettingsLayout.astro +++ b/src/layouts/SettingsLayout.astro @@ -9,7 +9,7 @@ const { active, title } = Astro.props;
- +

{title}

diff --git a/src/pages/[...settings]/credits.astro b/src/pages/[...settings]/credits.astro index d72d70b..927d0b3 100644 --- a/src/pages/[...settings]/credits.astro +++ b/src/pages/[...settings]/credits.astro @@ -7,32 +7,32 @@ import SettingsLayout from "@layouts/SettingsLayout.astro";

Thanks to all the wonderful people who have contributed!