forked from vixalien/muzika
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathendpoints.ts
110 lines (108 loc) · 3.07 KB
/
endpoints.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
import { Endpoint, MuzikaComponent } from "./navigation.js";
import { LibraryPage } from "./pages/library/index.js";
import { HomePage } from "./pages/home.js";
import { PlaylistPage } from "./pages/playlist.js";
import { ArtistPage } from "./pages/artist.js";
import { SearchPage } from "./pages/search.js";
import { AlbumPage } from "./pages/album.js";
import { LibraryPlaylistsPage } from "./pages/library/playlists.js";
import { LibraryAlbumsPage } from "./pages/library/albums.js";
import { LibraryArtistsPage } from "./pages/library/artists.js";
import { LibrarySubscriptionsPage } from "./pages/library/subscriptions.js";
import { LibrarySongsPage } from "./pages/library/songs.js";
import { HistoryPage } from "./pages/library/history.js";
import { ArtistAlbumsPage } from "./pages/artist-albums.js";
import { ChannelPage } from "./pages/channel.js";
import { ChannelPlaylistsPage } from "./pages/channel-playlists.js";
export const endpoints: Endpoint<MuzikaComponent<unknown, unknown>>[] = [
{
uri: "home",
title: _("Home"),
component: () => new HomePage(),
load: HomePage.load,
},
{
uri: "playlist/:playlistId",
title: _("Playlist"),
component: () => new PlaylistPage(),
load: PlaylistPage.load,
},
{
uri: "album/:albumId",
title: _("Album"),
component: () => new AlbumPage(),
load: AlbumPage.load,
},
{
uri: "artist/:channelId",
title: _("Artist"),
component: () => new ArtistPage(),
load: ArtistPage.load,
},
{
uri: "search/:query",
title: _("Search Results"),
component: () => new SearchPage(),
load: SearchPage.load,
},
{
uri: "library",
title: _("Library"),
component: () => new LibraryPage(),
load: LibraryPage.load,
},
{
uri: "library/playlists",
title: _("Library Playlists"),
component: () => new LibraryPlaylistsPage(),
load: LibraryPlaylistsPage.load,
},
{
uri: "library/albums",
title: _("Library Albums"),
component: () => new LibraryAlbumsPage(),
load: LibraryAlbumsPage.load,
},
{
uri: "library/artists",
title: _("Library Artists"),
component: () => new LibraryArtistsPage(),
load: LibraryArtistsPage.load,
},
{
uri: "library/subscriptions",
title: _("Library Subscriptions"),
component: () => new LibrarySubscriptionsPage(),
load: LibrarySubscriptionsPage.load,
},
{
uri: "library/songs",
title: _("Library Songs"),
component: () => new LibrarySongsPage(),
load: LibrarySongsPage.load,
},
{
uri: "history",
title: _("History"),
component: () => new HistoryPage(),
load: HistoryPage.load,
},
{
uri: "artist-albums/:channelId/:params",
title: _("Artist Albums"),
component: () => new ArtistAlbumsPage(),
load: ArtistAlbumsPage.load,
},
{
uri: "channel/:channelId",
title: _("Channel"),
component: () => new ChannelPage(),
load: ChannelPage.load,
},
{
uri: "channel-playlists/:channelId/:params",
title: _("Channel Playlists"),
component: () => new ChannelPlaylistsPage(),
load: ChannelPlaylistsPage.load,
},
];