Bookmarks in web app (#177)
* Bookmarks api * Lint fix * first pass * Lint fix * comment * bookmarks, loading feedSources, and pagination * comment * null check --------- Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
1 parent
58ce2d6396
commit
57fa1c5c3f
23 files changed
+510
-192
No files matched your search
@@ -4,6 +4,7 @@
|
||||
import { PlayletApi } from "lib/Api/PlayletApi";
|
||||
import {
|
||||
appStateStore,
|
||||
bookmarksStore,
|
||||
homeLayoutFileStore,
|
||||
invidiousVideoApiStore,
|
||||
playletStateStore,
|
||||
@@ -18,6 +19,7 @@
|
||||
import SettingsScreen from "lib/Screens/SettingsScreen.svelte";
|
||||
import InfoScreen from "lib/Screens/InfoScreen.svelte";
|
||||
import LinkDragDrop from "lib/LinkDragDrop.svelte";
|
||||
import BookmarksScreen from "lib/Screens/BookmarksScreen.svelte";
|
||||
|
||||
onMount(async () => {
|
||||
PlayletApi.getState().then((value) => {
|
||||
@@ -43,6 +45,10 @@
|
||||
PlayletApi.getSearchHistory().then((value) => {
|
||||
searchHistoryStore.set(value);
|
||||
});
|
||||
|
||||
PlayletApi.getBookmarkFeeds().then((value) => {
|
||||
bookmarksStore.set(value);
|
||||
});
|
||||
});
|
||||
|
||||
let currentScreen: AppState["screen"];
|
||||
@@ -61,6 +67,8 @@
|
||||
|
||||
<HomeScreen visibility={currentScreen == "home"} />
|
||||
|
||||
<BookmarksScreen visibility={currentScreen == "bookmarks"} />
|
||||
|
||||
<SettingsScreen visibility={currentScreen == "settings"} />
|
||||
|
||||
<InfoScreen visibility={currentScreen == "info"} />
|
||||
|
||||
Reference in new issue
Block a user