Bookmarks (#153)

* Empty bookmarks screen

* Bookmarks object

* Long press support

* Lint fix

* Context menu v1

* A working context menu

* Basic bookmarks in context menu

* Use a root content node for bookmarks

* context menu animation

* small tweak

* move logger around, adjust animation

* Lint fix

* Restore logger fix

* Cache channel info

* Bookmarks v1

* Added comment

* Adjust "popular" feed error handling

* Progress with bookmarks

* Add todo

* add todo

* handle roDateTime logging

* logger adjustment

* Use yaml for api and layout

* rename requestData to feedSource

* Restructure things

* Lint fix

* remove comment

* introduce feedSource id

* small cleanup

* playlist context menu

* Context menu for the channel view

* changelog

---------

Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
Brahim Hadricheandgithub-action linter authored and GitHub committed 2023-10-19 19:16:27 -04:00
1 parent 620a8a6e2b
commit c740d5e0a0
63 files changed
+1889 -510

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ namespace ErrorUtils
result = `${error.message} (0x${StrI(error.number, 16)}). backtrace:`
for i = error.backtrace.count() - 1 to 0 step -1
backtrace = error.backtrace[i]
result += `\n ${backtrace.function} @ ${backtrace.filename}:${backtrace.line_number}\n`
result += `\n ${backtrace.function} @${backtrace.filename}:${backtrace.line_number}\n`
end for
return result
end if
+19 -7
View File
@@ -5,13 +5,6 @@ enum LogLevel
DEBUG = 3
end enum
function InitializeLogger(logLevel = LogLevel.Info as LogLevel) as void
logger = CreateObject("roSGNode", "Logger")
logger.logLevel = logLevel
m.global.addFields({ logger: logger })
logger.control = "run"
end function
function LogError(arg1 = invalid as dynamic, arg2 = invalid as dynamic, arg3 = invalid as dynamic, arg4 = invalid as dynamic, arg5 = invalid as dynamic, arg6 = invalid as dynamic, arg7 = invalid as dynamic, arg8 = invalid as dynamic, arg9 = invalid as dynamic, arg10 = invalid as dynamic, arg11 = invalid as dynamic, arg12 = invalid as dynamic, arg13 = invalid as dynamic, arg14 = invalid as dynamic, arg15 = invalid as dynamic, arg16 = invalid as dynamic) as void
throw "FATAL: Calling LogError() which is a stub function"
end function
@@ -45,6 +38,10 @@ function ToString(value as dynamic) as string
return "Node(" + value.subType() + ":" + value.id + ")"
else if valueType = "roAssociativeArray"
return AssocArrayToString(value)
else if valueType = "roArray"
return ArrayToString(value)
else if valueType = "roDateTime"
return value.ToISOString()
end if
return "<" + valueType + ">"
@@ -64,3 +61,18 @@ function AssocArrayToString(dict as object) as string
result += "}"
return result
end function
function ArrayToString(array as object) as string
result = "["
count = array.count()
i = 0
for each item in array
result += ToString(item)
if i < count - 1
result += ", "
end if
i++
end for
result += "]"
return result
end function
@@ -6,6 +6,7 @@ namespace RegistryUtils
const SEARCH_HISTORY = "search_history"
const PLAYLET_LIB_URLS = "playlet_lib_urls"
const BOOKMARKS = "bookmarks"
const INVIDIOUS_INSTANCES = "invidious_instances"
const INVIDIOUS_TOKEN = "invidious_token"