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:
Brahim Hadricheandgithub-action linter authored and GitHub committed 2023-10-23 20:39:44 -04:00
1 parent 58ce2d6396
commit 57fa1c5c3f
23 files changed
+510 -192

No files matched your search

@@ -73,16 +73,15 @@ function SetRowListContent(bookmarksContent as object)
feeds = []
for each bookmarkGroupNode in bookmarkGroupNodes
bookmarkNodes = bookmarkGroupNode.getChildren(-1, 0)
feed = {
title: bookmarkGroupNode.title,
feedSources: []
}
feedSources = []
for each bookmarkNode in bookmarkNodes
feed.feedSources.push(bookmarkNode.feedSource)
feedSources.push(bookmarkNode.feedSource)
end for
feeds.push(feed)
feeds.push({
"title": bookmarkGroupNode.title,
"feedSources": feedSources
})
end for
m.rowList.feeds = feeds
@@ -204,12 +204,12 @@ function Search(text as string)
ShowLoadingScreen()
feedSource = {
id: `inv_search_${CryptoUtils.GetMd5(text)}`,
title: `Search - ${text}`,
apiType: "Invidious",
endpoint: "search",
queryParams: {
q: text
"id": `inv_search_${CryptoUtils.GetMd5(text)}`,
"title": `Search - ${text}`,
"apiType": "Invidious",
"endpoint": "search",
"queryParams": {
"q": text
}
}
@@ -229,8 +229,8 @@ function Search(text as string)
end for
m.rowList.feeds = [{
title: `Search - ${text}`,
feedSources: [feedSource]
"title": `Search - ${text}`,
"feedSources": [feedSource]
}]
end function