Multiple profiles (#312)

* Navbar user profile

* profiles stuff

* fix profile

* Lint fix

* Some ui experiments

* More ui work

* progress

* Lint fix

* migration, web api, wip

* profile view and web app

* web app and apis

* Invidious and profiles

* Lint fix

* bug fix

* Remove ActionContentNode

* Profile icon button, profile color

* Lint fix

* reset server url

* href that doesn't work

* remove activate button on active profile

* TODO

* Fin.

* Final touches

---------

Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
Brahim Hadricheandgithub-action linter authored and GitHub committed 2024-03-04 09:04:34 -05:00
1 parent 8e03ca0ea6
commit 394dd23999
60 files changed
+1725 -311

No files matched your search

+11 -2
View File
@@ -45,8 +45,17 @@ export class PlayletApi {
return await response;
}
static async logout() {
await fetch(`${PlayletApi.host()}/invidious/logout`);
static async getProfiles() {
const response = await fetch(`${PlayletApi.host()}/api/profiles`);
return await response.json();
}
static async activateProfile(profileId) {
await this.postJson(`${PlayletApi.host()}/api/profiles/activate`, { id: profileId });
}
static async logout(profileId) {
return await fetch(`${PlayletApi.host()}/api/profiles?id=${profileId}`, { method: "DELETE" });
}
static async playVideo(args) {