From 7b57b1b12ced14eaa20d69113a5a195dbe9d9ff1 Mon Sep 17 00:00:00 2001 From: Korbs Date: Tue, 3 Sep 2024 03:12:05 -0400 Subject: [PATCH] update --- .minpluto/docs/TODO.md | 58 +++++++++---------- tsconfig.json | 14 ++--- web/astro.js | 16 ++--- web/layouts/Default.astro | 0 web/layouts/Markdown.astro | 0 web/layouts/Settings.astro | 0 web/pages/api/auth/confirm.ts | 0 web/pages/api/auth/login.ts | 0 web/pages/api/auth/logout.ts | 0 web/pages/api/auth/register.ts | 0 web/pages/api/language/en.astro | 0 web/pages/api/language/jp.astro | 0 web/pages/api/player/milieu/disable.astro | 0 web/pages/api/player/milieu/enable.astro | 0 web/pages/api/telemtry/disable.astro | 0 web/pages/api/telemtry/enable.astro | 0 web/pages/api/update/email.ts | 0 web/pages/api/update/name.ts | 0 web/pages/api/update/subscription/add.astro | 0 .../api/update/subscription/remove.astro | 0 web/pages/index.astro | 0 21 files changed, 39 insertions(+), 49 deletions(-) create mode 100644 web/layouts/Default.astro create mode 100644 web/layouts/Markdown.astro create mode 100644 web/layouts/Settings.astro create mode 100644 web/pages/api/auth/confirm.ts create mode 100644 web/pages/api/auth/login.ts create mode 100644 web/pages/api/auth/logout.ts create mode 100644 web/pages/api/auth/register.ts create mode 100644 web/pages/api/language/en.astro create mode 100644 web/pages/api/language/jp.astro create mode 100644 web/pages/api/player/milieu/disable.astro create mode 100644 web/pages/api/player/milieu/enable.astro create mode 100644 web/pages/api/telemtry/disable.astro create mode 100644 web/pages/api/telemtry/enable.astro create mode 100644 web/pages/api/update/email.ts create mode 100644 web/pages/api/update/name.ts create mode 100644 web/pages/api/update/subscription/add.astro create mode 100644 web/pages/api/update/subscription/remove.astro create mode 100644 web/pages/index.astro diff --git a/.minpluto/docs/TODO.md b/.minpluto/docs/TODO.md index e6d01b9..001db1e 100644 --- a/.minpluto/docs/TODO.md +++ b/.minpluto/docs/TODO.md @@ -1,41 +1,41 @@ ## To Do - [ ] i18n - - [x] API + - [ ] API - [ ] Languages - - [x] English + - [ ] English - [ ] Japanese - [ ] French - [ ] Spanish - [ ] Russian - - [x] Data - - [x] Track Events (Users should be opted-out by default, OpenPanel will be used) - - [x] Make privacy policy adaptive - - [x] Mobile Support - - [ ] Server Configuration (.env) + - [ ] Data + - [ ] Track Events + - [ ] Make privacy policy adaptive + - [ ] Mobile Support + - [ ] Server Configuration - [ ] Quality - [ ] Allow 1080p - [ ] Allow 4K - [ ] Allow 8K - - [ ] Account System (Based on [Account System Demo](https://ark.sudovanilla.org/MinPluto/Account-System-Demo)) - - [x] Use Supabase Library + - [ ] Account System + - [ ] Use Supabase Library - [ ] Create Pages: - [ ] Subscription Feed - [ ] History (Maybe, maybe not) - - [x] Login - - [x] Register - - [x] Account + - [ ] Login + - [ ] Register + - [ ] Account - [ ] Preferences - [ ] Delete - [ ] Anomymous Account Creation - - [x] Email Confirmation Code + - [ ] Email Confirmation Code - [ ] Ability to: - [ ] Update Data - - [x] Username + - [ ] Username - [ ] Email - [ ] Pasword - [ ] Delete Account - [ ] API - - [x] `/api/update/name` + - [ ] `/api/update/name` - [ ] `/api/update/email` - [ ] `/api/update/password` - [ ] `/api/update/preference/ui/theme` @@ -48,17 +48,17 @@ - [ ] `/api/update/preference/instance/invidious/data` - [ ] `/api/update/preference/instance/safetwitch/media` - [ ] `/api/update/preference/instance/safetwitch/data` - - [x] `/api/auth/login` - - [x] `/api/auth/register` + - [ ] `/api/auth/login` + - [ ] `/api/auth/register` - [ ] `/api/auth/delete` - - [x] `/api/auth/confirm` - - [x] `/api/auth/logout` + - [ ] `/api/auth/confirm` + - [ ] `/api/auth/logout` - [ ] `/api/anon/create` - [ ] `/api/anon/delete` - [ ] `/api/anon/signout` - [ ] `/api/subscription/add` - [ ] `/api/subscription/remove` - - [ ] Revamp Design and Layout ([UI Library Repo](https://ark.sudovanilla.org/MinPluto/UI-Library/)) + - [ ] Revamp Design and Layout - [ ] Use Header over Sidebar - [ ] Generic - [ ] Dropdown @@ -91,24 +91,24 @@ - [ ] Discovery Pages - [ ] Animation - [ ] Automotive - - [x] Comedy + - [ ] Comedy - [ ] Courses - [ ] Educational - [ ] Family Friendly - [ ] Fashion - [ ] Fitness - [ ] Food - - [x] Games + - [ ] Games - [ ] Music - [ ] News - [ ] Podcasts - [ ] Science - [ ] Sports - - [x] Tech + - [ ] Tech - [ ] Web Series - [ ] Twitch Support - - [x] API - - [x] Video Player HLS Support (Required to play streams) + - [ ] API + - [ ] Video Player HLS Support - [ ] Polycentric Chat - [ ] Categories - [ ] Games @@ -128,12 +128,12 @@ - [ ] Search - [ ] Revamp Experience - [ ] Filters - - [x] Auto Complete + - [ ] Auto Complete - [ ] Video Player - - [x] Dash Format (1080p/4K/8K) + - [ ] Dash Format - [ ] 360° Support - [ ] Mobile Gestures - - [x] Embed Page + - [ ] Embed Page - [ ] Download - [ ] Share - [ ] Report @@ -146,8 +146,6 @@ - [ ] Theater Mode - [ ] Cast - [ ] Video Page - - [ ] ~~Important Infomation Card ([Example](https://img.sudovanilla.org/pXqzT10.png))~~ Controversial, do not proceed - - [ ] Viewers Note (Like Community Notes, in [experimental phase at YouTube](https://blog.youtube/news-and-events/new-ways-to-offer-viewers-more-context/)) - [ ] Toggle: - [ ] Audio Only - [ ] Autoplay diff --git a/tsconfig.json b/tsconfig.json index fa761e4..c02b59c 100755 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,13 +4,13 @@ "baseUrl": ".", "allowSyntheticDefaultImports": true, "paths": { - "@components/*": ["./web/src/components/*"], - "@data/*": ["./web/src/tools/data/*"], - "@layouts/*": ["./web/src/layouts/*"], - "@library/*": ["./web/src/tools/library/*"], - "@player/*": ["./web/src/components/video-player/*"], - "@styles/*": ["./web/src/styles/*"], - "@utils/*": ["./web/src/tools/utilities/*"] + "@components/*": ["./web/components/*"], + "@data/*": ["./web/tools/data/*"], + "@layouts/*": ["./web/layouts/*"], + "@library/*": ["./web/tools/library/*"], + "@player/*": ["./web/components/video-player/*"], + "@styles/*": ["./web/styles/*"], + "@utils/*": ["./web/tools/utilities/*"] } } } \ No newline at end of file diff --git a/web/astro.js b/web/astro.js index 09fae00..8a69af3 100644 --- a/web/astro.js +++ b/web/astro.js @@ -19,8 +19,8 @@ export default defineConfig({ host: true }, // Use Server-Side Rendering - output: 'server', adapter: bun(), + output: 'server', // Experimental experimental: { clientPrerender: true, @@ -32,15 +32,7 @@ export default defineConfig({ defaultStrategy: "viewport" }, // Security and Other Options - devToolbar: { - enabled: false - }, - security: { - checkOrigin: true - }, - vite: { - server: { - hmr: false // Auto Reload - } - } + devToolbar: {enabled: false}, + security: {checkOrigin: true}, + vite: {server: {hmr: false}} }) \ No newline at end of file diff --git a/web/layouts/Default.astro b/web/layouts/Default.astro new file mode 100644 index 0000000..e69de29 diff --git a/web/layouts/Markdown.astro b/web/layouts/Markdown.astro new file mode 100644 index 0000000..e69de29 diff --git a/web/layouts/Settings.astro b/web/layouts/Settings.astro new file mode 100644 index 0000000..e69de29 diff --git a/web/pages/api/auth/confirm.ts b/web/pages/api/auth/confirm.ts new file mode 100644 index 0000000..e69de29 diff --git a/web/pages/api/auth/login.ts b/web/pages/api/auth/login.ts new file mode 100644 index 0000000..e69de29 diff --git a/web/pages/api/auth/logout.ts b/web/pages/api/auth/logout.ts new file mode 100644 index 0000000..e69de29 diff --git a/web/pages/api/auth/register.ts b/web/pages/api/auth/register.ts new file mode 100644 index 0000000..e69de29 diff --git a/web/pages/api/language/en.astro b/web/pages/api/language/en.astro new file mode 100644 index 0000000..e69de29 diff --git a/web/pages/api/language/jp.astro b/web/pages/api/language/jp.astro new file mode 100644 index 0000000..e69de29 diff --git a/web/pages/api/player/milieu/disable.astro b/web/pages/api/player/milieu/disable.astro new file mode 100644 index 0000000..e69de29 diff --git a/web/pages/api/player/milieu/enable.astro b/web/pages/api/player/milieu/enable.astro new file mode 100644 index 0000000..e69de29 diff --git a/web/pages/api/telemtry/disable.astro b/web/pages/api/telemtry/disable.astro new file mode 100644 index 0000000..e69de29 diff --git a/web/pages/api/telemtry/enable.astro b/web/pages/api/telemtry/enable.astro new file mode 100644 index 0000000..e69de29 diff --git a/web/pages/api/update/email.ts b/web/pages/api/update/email.ts new file mode 100644 index 0000000..e69de29 diff --git a/web/pages/api/update/name.ts b/web/pages/api/update/name.ts new file mode 100644 index 0000000..e69de29 diff --git a/web/pages/api/update/subscription/add.astro b/web/pages/api/update/subscription/add.astro new file mode 100644 index 0000000..e69de29 diff --git a/web/pages/api/update/subscription/remove.astro b/web/pages/api/update/subscription/remove.astro new file mode 100644 index 0000000..e69de29 diff --git a/web/pages/index.astro b/web/pages/index.astro new file mode 100644 index 0000000..e69de29