first commit

This commit is contained in:
2025-09-14 23:05:30 -04:00
commit 2866d74b32
122 changed files with 95474 additions and 0 deletions
+94
View File
@@ -0,0 +1,94 @@
import { Routes } from '@angular/router';
export const APP_ROUTES: Routes = [
{ path: '', pathMatch: 'full', redirectTo: 't/trending' },
// Theme pages
{
path: 't/:theme',
loadComponent: () => import('./components/themes/theme-page.component').then(m => m.ThemePageComponent),
title: 'NewTube - Theme'
},
{
path: 'p/:provider/t/:theme',
loadComponent: () => import('./components/themes/provider-theme-page.component').then(m => m.ProviderThemePageComponent),
title: 'NewTube - Provider Theme'
},
{
path: 'search',
loadComponent: () => import('./components/search/search.component').then(m => m.SearchComponent),
title: 'NewTube - Search'
},
{
path: 'shorts',
loadComponent: () => import('./components/shorts/watch-short.component').then(m => m.WatchShortComponent),
title: 'NewTube - Shorts'
},
{
path: 'watch/:id',
loadComponent: () => import('./components/watch/watch.component').then(m => m.WatchComponent),
title: 'NewTube - Watch'
},
// Alias supporting provider in path: /watch/:provider/:id
{
path: 'watch/:provider/:id',
loadComponent: () => import('./components/watch/watch.component').then(m => m.WatchComponent),
title: 'NewTube - Watch'
},
{
path: 'library',
pathMatch: 'full',
redirectTo: 'library/playlists'
},
{
path: 'library/playlists',
loadComponent: () => import('./components/library/playlists/playlists.component').then(m => m.PlaylistsComponent),
title: 'NewTube - Playlists'
},
{
path: 'library/liked',
loadComponent: () => import('./components/library/liked/liked.component').then(m => m.LikedComponent),
title: 'NewTube - Liked'
},
{
path: 'library/subscriptions',
loadComponent: () => import('./components/library/subscriptions/subscriptions.component').then(m => m.SubscriptionsComponent),
title: 'NewTube - Subscriptions'
},
{
path: 'account',
pathMatch: 'full',
redirectTo: 'account/preferences'
},
{
path: 'account/preferences',
loadComponent: () => import('./components/account/preferences/preferences.component').then(m => m.PreferencesComponent),
title: 'NewTube - Preferences'
},
{
path: 'account/history',
loadComponent: () => import('./components/account/history/history.component').then(m => m.HistoryComponent),
title: 'NewTube - History'
},
{
path: 'account/sessions',
loadComponent: () => import('./components/account/sessions/sessions.component').then(m => m.SessionsComponent),
title: 'NewTube - Sessions'
},
{
path: 'auth/login',
loadComponent: () => import('./components/auth/login/login.component').then(m => m.LoginComponent),
title: 'NewTube - Login'
},
{
path: 'auth/register',
loadComponent: () => import('./components/auth/register/register.component').then(m => m.RegisterComponent),
title: 'NewTube - Register'
},
{
path: 'info/utilisation',
loadComponent: () => import('./components/info/utilisation/utilisation.component').then(m => m.UtilisationComponent),
title: 'NewTube - Utilisation'
},
{ path: '**', redirectTo: '' }
];