Refresh lint rules (#238)

* Lint

* Color rules

* Update sponsorblock config file

* Small tweak

* Color adjustments
This commit is contained in:
Brahim Hadriche authored and GitHub committed 2023-12-22 19:36:36 -05:00
1 parent cbda8dbf9b
commit e53ad785c6
89 files changed
+419 -442

No files matched your search

+21 -12
View File
@@ -5,23 +5,32 @@
"**/bslib.brs" "**/bslib.brs"
], ],
"rules": { "rules": {
"aa-comma-style": "no-dangling", // Code style
"anon-function-style": "no-sub",
"assign-all-paths": "warn",
"block-if-style": "no-then",
"case-sensitivity": "warn",
"condition-style": "no-group",
"consistent-return": "error",
"eol-last": "always",
"inline-if-style": "never", "inline-if-style": "never",
"block-if-style": "no-then",
"condition-style": "no-group",
"named-function-style": "no-sub", "named-function-style": "no-sub",
"anon-function-style": "no-sub",
"aa-comma-style": "never",
"no-print": "warn", "no-print": "warn",
"no-stop": "error",
"no-todo": "off", "no-todo": "off",
"no-stop": "error",
"eol-last": "always",
// Strictness
"type-annotations": "all", "type-annotations": "all",
"unreachable-code": "warn", // Color
"color-format": "hash-hex",
"color-case": "upper",
"color-alpha": "always",
"color-alpha-defaults": "allowed",
"color-cert": "always",
// Code flow
"assign-all-paths": "error",
"unsafe-path-loop": "error",
"unsafe-iterators": "error", "unsafe-iterators": "error",
"unsafe-path-loop": "warn", "unreachable-code": "warn",
"unused-variable": "warn" "case-sensitivity": "error",
"unused-variable": "error",
"consistent-return": "error"
} }
} }
@@ -2,7 +2,7 @@ import "LoadingMessages.bs"
function Init() as void function Init() as void
m.scene = m.top.getScene() m.scene = m.top.getScene()
m.top.backgroundColor = "0x242424FF" m.top.backgroundColor = "#242424FF"
m.top.backgroundURI = "" m.top.backgroundURI = ""
m.loadingIndicator = m.top.findNode("LoadingIndicator") m.loadingIndicator = m.top.findNode("LoadingIndicator")
Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

@@ -3,24 +3,24 @@
outputs: [ outputs: [
{ {
outputFilePath: 'images/channel-poster_fhd.png', outputFilePath: 'images/channel-poster_fhd.png',
outputHash: 'd644a0db84deed0bcc41a41d08a4ef75', outputHash: '50729b5bdd2a7c0fd4a1d502812117d4',
width: 540, width: 540,
height: 405, height: 405,
background: '#FFFFFF', background: '#EEEEEE',
}, },
{ {
outputFilePath: 'images/channel-poster_hd.png', outputFilePath: 'images/channel-poster_hd.png',
outputHash: 'd07a4ffaa021b55528bee91710f4e9d2', outputHash: '8022dc6fa993ce3194c5aea37d6ea49a',
width: 290, width: 290,
height: 218, height: 218,
background: '#FFFFFF', background: '#EEEEEE',
}, },
{ {
outputFilePath: 'images/channel-poster_sd.png', outputFilePath: 'images/channel-poster_sd.png',
outputHash: '66a311c639f89ff009e4624468282b2f', outputHash: '63b8f12ac155c29b4e85db17a2886817',
width: 246, width: 246,
height: 140, height: 140,
background: '#FFFFFF', background: '#EEEEEE',
}, },
], ],
} }
+6 -6
View File
@@ -19,12 +19,12 @@ end function
function SetPalette(dialog as object) function SetPalette(dialog as object)
palette = createObject("roSGNode", "RSGPalette") palette = createObject("roSGNode", "RSGPalette")
palette.colors = { palette.colors = {
DialogBackgroundColor: "#242424FF", DialogBackgroundColor: "#242424FF"
DialogFocusColor: "#CECECEFF", DialogFocusColor: "#CECECEFF"
DialogFocusItemColor: "#202020FF", DialogFocusItemColor: "#202020FF"
DialogSecondaryTextColor: "#F8F8F8FF", DialogSecondaryTextColor: "#DBDBDBFF"
DialogSecondaryItemColor: "0xFF1C30FF", DialogSecondaryItemColor: "#FF1C30FF"
DialogTextColor: "#EEEEEEFF" DialogTextColor: "#DBDBDBFF"
} }
dialog.palette = palette dialog.palette = palette
end function end function
@@ -135,8 +135,8 @@ function OnSubscribeButtonSelected()
isSubbed = IsSubscribed() isSubbed = IsSubscribed()
m.subscribeTask = StartAsyncTask(SubscribeTask, { m.subscribeTask = StartAsyncTask(SubscribeTask, {
invidious: m.invidious, invidious: m.invidious
ucid: m.authorId, ucid: m.authorId
subscribe: not isSubbed subscribe: not isSubbed
}) })
end function end function
@@ -172,19 +172,19 @@ function InitializeTabs()
m.tabs = { m.tabs = {
videos: function(authorId as string, author as string) as object videos: function(authorId as string, author as string) as object
return CreateChannelFeed("Latest videos", "channel_videos", authorId, author) return CreateChannelFeed("Latest videos", "channel_videos", authorId, author)
end function, end function
shorts: function(authorId as string, author as string) as object shorts: function(authorId as string, author as string) as object
return CreateChannelFeed("Shorts", "channel_shorts", authorId, author) return CreateChannelFeed("Shorts", "channel_shorts", authorId, author)
end function, end function
streams: function(authorId as string, author as string) as object streams: function(authorId as string, author as string) as object
return CreateChannelFeed("Live", "channel_streams", authorId, author) return CreateChannelFeed("Live", "channel_streams", authorId, author)
end function, end function
podcasts: function(authorId as string, author as string) as object podcasts: function(authorId as string, author as string) as object
return CreateChannelFeed("Podcasts", "channel_podcasts", authorId, author) return CreateChannelFeed("Podcasts", "channel_podcasts", authorId, author)
end function, end function
playlists: function(authorId as string, author as string) as object playlists: function(authorId as string, author as string) as object
return CreateChannelFeed("Playlists", "channel_playlists", authorId, author) return CreateChannelFeed("Playlists", "channel_playlists", authorId, author)
end function, end function
channels: function(authorId as string, author as string) as object channels: function(authorId as string, author as string) as object
return CreateChannelFeed("Channels", "channel_channels", authorId, author) return CreateChannelFeed("Channels", "channel_channels", authorId, author)
end function end function
@@ -193,12 +193,12 @@ end function
function CreateChannelFeed(title as string, endpoint as string, ucid as string, author as string) as object function CreateChannelFeed(title as string, endpoint as string, ucid as string, author as string) as object
return { return {
title: title, title: title
feedSources: [{ feedSources: [{
"id": `inv_${endpoint}_${ucid}`, "id": `inv_${endpoint}_${ucid}`
"title": `${author} - ${title}`, "title": `${author} - ${title}`
"apiType": "Invidious", "apiType": "Invidious"
"endpoint": endpoint, "endpoint": endpoint
"pathParams": { "pathParams": {
"ucid": ucid "ucid": ucid
} }
@@ -22,7 +22,7 @@ function SubscribeTask(input as object) as object
error = response.ErrorMessage() error = response.ErrorMessage()
LogError("Failed to subscribe/unsubscribe to channel:", error) LogError("Failed to subscribe/unsubscribe to channel:", error)
return { return {
success: false, success: false
error: error error: error
} }
end if end if
@@ -18,7 +18,7 @@ function LoadChannel(invidiousNode as object) as void
m.top.loadState = FeedLoadState.Loading m.top.loadState = FeedLoadState.Loading
m.contentTask = StartAsyncTask(ChannelContentTask, { m.contentTask = StartAsyncTask(ChannelContentTask, {
content: m.top, content: m.top
invidious: invidiousNode invidious: invidiousNode
}, OnChannelContentTaskResult) }, OnChannelContentTaskResult)
end function end function
@@ -24,7 +24,7 @@ function ChannelContentTask(input as object) as object
if not response.IsSuccess() or metadata = invalid if not response.IsSuccess() or metadata = invalid
contentNode.loadState = FeedLoadState.Error contentNode.loadState = FeedLoadState.Error
return { return {
success: false, success: false
error: response.ErrorMessage() error: response.ErrorMessage()
} }
end if end if
@@ -11,19 +11,19 @@ function OnItemHasFocus()
hasFocus = m.top.itemHasFocus hasFocus = m.top.itemHasFocus
if hasFocus if hasFocus
m.top.font = "font:SmallestBoldSystemFont" m.top.font = "font:SmallestBoldSystemFont"
m.top.color = "0x262626ff" m.top.color = "#262626ff"
else else
m.top.font = "font:SmallestSystemFont" m.top.font = "font:SmallestSystemFont"
m.top.color = "0xddddddff" m.top.color = "#DBDBDBFF"
end if end if
end function end function
function OnFocusPercent() function OnFocusPercent()
if m.top.focusPercent > 0.5 if m.top.focusPercent > 0.5
m.top.font = "font:SmallestBoldSystemFont" m.top.font = "font:SmallestBoldSystemFont"
m.top.color = "0x262626ff" m.top.color = "#262626FF"
else else
m.top.font = "font:SmallestSystemFont" m.top.font = "font:SmallestSystemFont"
m.top.color = "0xddddddff" m.top.color = "#DBDBDBFF"
end if end if
end function end function
@@ -1,12 +1,12 @@
function SetPalette(dialog as object) function SetPalette(dialog as object)
palette = createObject("roSGNode", "RSGPalette") palette = createObject("roSGNode", "RSGPalette")
palette.colors = { palette.colors = {
DialogBackgroundColor: "#242424FF", DialogBackgroundColor: "#242424FF"
DialogFocusColor: "#CECECEFF", DialogFocusColor: "#CECECEFF"
DialogFocusItemColor: "#202020FF", DialogFocusItemColor: "#202020FF"
DialogSecondaryTextColor: "#F8F8F8FF", DialogSecondaryTextColor: "#DBDBDBFF"
DialogSecondaryItemColor: "0xFF1C30FF", DialogSecondaryItemColor: "#FF1C30FF"
DialogTextColor: "#EEEEEEFF" DialogTextColor: "#DBDBDBFF"
} }
dialog.palette = palette dialog.palette = palette
end function end function
@@ -34,9 +34,9 @@ function OnUrlSet()
m.urlLabel.text = url m.urlLabel.text = url
StartAsyncTask(GenerateQrCodeTask, { StartAsyncTask(GenerateQrCodeTask, {
poster: m.qrCode, poster: m.qrCode
text: url, text: url
size: m.qrCode.loadWidth, size: m.qrCode.loadWidth
padding: 10 padding: 10
}) })
end function end function
+2 -3
View File
@@ -1,4 +1,3 @@
import "pkg:/source/utils/ColorUtils.bs"
import "pkg:/source/utils/FocusManagement.bs" import "pkg:/source/utils/FocusManagement.bs"
import "pkg:/source/utils/Types.bs" import "pkg:/source/utils/Types.bs"
@@ -31,8 +30,8 @@ function PopulateButtons() as void
buttons = [] buttons = []
for each item in navBarItems for each item in navBarItems
button = CreateObject("roSGNode", "IconButton") button = CreateObject("roSGNode", "IconButton")
button.background = ColorUtils.HexToInt("242424") button.background = "#242424FF"
button.focusBackground = ColorUtils.HexToInt("FF1C30") button.focusBackground = "#FF1C30FF"
button.padding = 20 button.padding = 20
button.height = 50 button.height = 50
button.width = 90 button.width = 90
@@ -3,7 +3,7 @@ const OPTIONS_LONG_PRESS_KEY = "OPTIONS_LONG_PRESS"
function InitializeLongPress(keys as object, duration = 1.0 as float) function InitializeLongPress(keys as object, duration = 1.0 as float)
longPressKeyMap = { longPressKeyMap = {
"OK": OK_LONG_PRESS_KEY, "OK": OK_LONG_PRESS_KEY
"options": OPTIONS_LONG_PRESS_KEY "options": OPTIONS_LONG_PRESS_KEY
} }
m._longPressKeyMap = {} m._longPressKeyMap = {}
@@ -17,7 +17,7 @@ function InitializeLongPress(keys as object, duration = 1.0 as float)
' - press K to simulate an "OK" long press on the remote. ' - press K to simulate an "OK" long press on the remote.
' - press O to simulate an "options" long press on the remote. ' - press O to simulate an "options" long press on the remote.
simulatedLongPressKeyMap = { simulatedLongPressKeyMap = {
"OK": "Lit_k", "OK": "Lit_k"
"options": "Lit_o" "options": "Lit_o"
} }
@@ -10,8 +10,8 @@ function SetNavigation(fromNode as object, direction as string, toNode as object
end if end if
m._navigation[direction].push({ m._navigation[direction].push({
fromNode: fromNode, fromNode: fromNode
toNode: toNode, toNode: toNode
callback: callback callback: callback
}) })
end function end function
@@ -19,7 +19,7 @@ end function
function NavigationKeyHandler(key as string, press as boolean) as object function NavigationKeyHandler(key as string, press as boolean) as object
if not press if not press
return { return {
handled: false, handled: false
node: invalid node: invalid
} }
end if end if
@@ -27,7 +27,7 @@ function NavigationKeyHandler(key as string, press as boolean) as object
navigations = m._navigation[key] navigations = m._navigation[key]
if navigations = invalid if navigations = invalid
return { return {
handled: false, handled: false
node: invalid node: invalid
} }
end if end if
@@ -41,13 +41,13 @@ function NavigationKeyHandler(key as string, press as boolean) as object
item.callback() item.callback()
end if end if
return { return {
handled: true, handled: true
node: item.toNode node: item.toNode
} }
end if end if
end for end for
return { return {
handled: false, handled: false
node: invalid node: invalid
} }
end function end function
@@ -68,26 +68,26 @@ function GetQueue(_unused as dynamic) as object
nodeType = node.type nodeType = node.type
if nodeType = "video" if nodeType = "video"
items.push({ items.push({
type: nodeType, type: nodeType
videoId: node.videoId, videoId: node.videoId
title: node.title, title: node.title
author: node.author, author: node.author
thumbnail: node.thumbnail thumbnail: node.thumbnail
}) })
else if node.type = "playlist" else if node.type = "playlist"
items.push({ items.push({
type: nodeType, type: nodeType
playlistId: node.playlistId, playlistId: node.playlistId
title: node.title, title: node.title
thumbnail: node.thumbnail, thumbnail: node.thumbnail
videoCountText: node.videoCountText videoCountText: node.videoCountText
}) })
end if end if
end for end for
return { return {
index: m.top.index, index: m.top.index
playlistIndex: m.top.playlistIndex, playlistIndex: m.top.playlistIndex
items: items items: items
} }
end function end function
@@ -189,7 +189,7 @@ function LoadPlaylist(playlist as object) as void
playlist.loadState = FeedLoadState.Loading playlist.loadState = FeedLoadState.Loading
task = StartAsyncTask(PlaylistContentTask, { task = StartAsyncTask(PlaylistContentTask, {
content: playlist, content: playlist
invidious: m.top.invidious invidious: m.top.invidious
}, OnPlaylistContentTaskResult) }, OnPlaylistContentTaskResult)
m.pendingLoadTasks[task.id] = task m.pendingLoadTasks[task.id] = task
@@ -66,6 +66,7 @@ function SetHighlight() as void
index = m.top.index index = m.top.index
if playQueueIndex = index if playQueueIndex = index
' bs:disable-next-line LINT3023
m.top.thumbnailBlendColor = "#FFFFFFFF" m.top.thumbnailBlendColor = "#FFFFFFFF"
m.top.highlightUri = "pkg:/images/focus_grid.9.png" m.top.highlightUri = "pkg:/images/focus_grid.9.png"
else else
@@ -27,7 +27,7 @@ function PlaylistContentTask(input as object) as object
if not response.IsSuccess() or metadata = invalid if not response.IsSuccess() or metadata = invalid
contentNode.loadState = FeedLoadState.Error contentNode.loadState = FeedLoadState.Error
return { return {
success: false, success: false
error: response.ErrorMessage() error: response.ErrorMessage()
} }
end if end if
@@ -223,7 +223,7 @@ function LoadPlaylist() as void
m.top.content.loadState = FeedLoadState.Loading m.top.content.loadState = FeedLoadState.Loading
m.playlistLoadTask = StartAsyncTask(PlaylistContentTask, { m.playlistLoadTask = StartAsyncTask(PlaylistContentTask, {
content: m.top.content, content: m.top.content
invidious: m.top.invidious invidious: m.top.invidious
}, OnPlaylistContentTaskResult) }, OnPlaylistContentTaskResult)
end function end function
@@ -3,28 +3,28 @@ import "pkg:/source/asyncTask/asyncTask.bs"
function Init() function Init()
' TODO:P2 Add tooltip to each field with description of what it means ' TODO:P2 Add tooltip to each field with description of what it means
m.displayNames = [{ m.displayNames = [{
key: "app_version", key: "app_version"
displayText: "Playlet App Version" displayText: "Playlet App Version"
}, { }, {
key: "lib_version", key: "lib_version"
displayText: "Playlet Library Version" displayText: "Playlet Library Version"
}, { }, {
key: "lib_version_latest", key: "lib_version_latest"
displayText: "Playlet Library Latest Version" displayText: "Playlet Library Latest Version"
}, { }, {
key: "lib_url", key: "lib_url"
displayText: "Playlet Library URL" displayText: "Playlet Library URL"
}, { }, {
key: "lib_url_type", key: "lib_url_type"
displayText: "Playlet Library URL Type" displayText: "Playlet Library URL Type"
}, { }, {
key: "app_git_commit_hash", key: "app_git_commit_hash"
displayText: "Playlet App Git Commit Hash" displayText: "Playlet App Git Commit Hash"
}, { }, {
key: "lib_git_commit_hash", key: "lib_git_commit_hash"
displayText: "Playlet Library Git Commit Hash" displayText: "Playlet Library Git Commit Hash"
}, { }, {
key: "id", key: "id"
displayText: "App ID" displayText: "App ID"
}] }]
@@ -79,7 +79,7 @@ function SetRowListContent(bookmarksContent as object)
end for end for
feeds.push({ feeds.push({
"title": bookmarkGroupNode.title, "title": bookmarkGroupNode.title
"feedSources": feedSources "feedSources": feedSources
}) })
end for end for
@@ -5,110 +5,110 @@ import "pkg:/source/utils/Types.bs"
function Init() function Init()
options = { options = {
date: [{ date: [{
title: "Any date", title: "Any date"
value: "" value: ""
}, { }, {
title: "Last hour", title: "Last hour"
value: "hour" value: "hour"
}, { }, {
title: "Today", title: "Today"
value: "today" value: "today"
}, { }, {
title: "This week", title: "This week"
value: "week" value: "week"
}, { }, {
title: "This month", title: "This month"
value: "month" value: "month"
}, { }, {
title: "This year", title: "This year"
value: "year" value: "year"
}], }]
type: [{ type: [{
title: "Any type", title: "Any type"
value: "" value: ""
}, { }, {
title: "Video", title: "Video"
value: "video" value: "video"
}, { }, {
title: "Playlist", title: "Playlist"
value: "playlist" value: "playlist"
}, { }, {
title: "Channel", title: "Channel"
value: "channel" value: "channel"
}, { }, {
title: "Movie", title: "Movie"
value: "movie" value: "movie"
}, { }, {
title: "Show", title: "Show"
value: "show" value: "show"
}], }]
duration: [{ duration: [{
title: "Any duration", title: "Any duration"
value: "" value: ""
}, { }, {
title: "Under 4 minutes", title: "Under 4 minutes"
value: "short" value: "short"
}, { }, {
title: "4 - 20 minutes", title: "4 - 20 minutes"
value: "medium" value: "medium"
}, { }, {
title: "Over 20 minutes", title: "Over 20 minutes"
value: "long" value: "long"
}], }]
features: [{ features: [{
title: "Live", title: "Live"
value: "live" value: "live"
}, { }, {
title: "4K", title: "4K"
value: "4k" value: "4k"
}, { }, {
title: "HD", title: "HD"
value: "hd" value: "hd"
}, { }, {
title: "Subtitles/CC", title: "Subtitles/CC"
value: "subtitles" value: "subtitles"
}, { }, {
title: "Creative Commons", title: "Creative Commons"
value: "creative_commons" value: "creative_commons"
}, { }, {
title: "360°", title: "360°"
value: "360" value: "360"
}, { }, {
title: "VR180", title: "VR180"
value: "vr180" value: "vr180"
}, { }, {
title: "3D", title: "3D"
value: "3d" value: "3d"
}, { }, {
title: "HDR", title: "HDR"
value: "hdr" value: "hdr"
}, { }, {
title: "Purchased", title: "Purchased"
value: "purchased" value: "purchased"
}, { }, {
title: "Location", title: "Location"
value: "location" value: "location"
}], }]
sort_by: [{ sort_by: [{
title: "Relevance", title: "Relevance"
value: "" value: ""
}, { }, {
title: "Upload date", title: "Upload date"
value: "upload_date" value: "upload_date"
}, { }, {
title: "View count", title: "View count"
value: "view_count" value: "view_count"
}, { }, {
title: "Rating", title: "Rating"
value: "rating" value: "rating"
}] }]
} }
m.controls = { m.controls = {
date: m.top.findNode("UploadDateList"), date: m.top.findNode("UploadDateList")
type: m.top.findNode("TypeList"), type: m.top.findNode("TypeList")
duration: m.top.findNode("DurationList"), duration: m.top.findNode("DurationList")
features: m.top.findNode("FeaturesList"), features: m.top.findNode("FeaturesList")
sort_by: m.top.findNode("SortByList") sort_by: m.top.findNode("SortByList")
} }
@@ -118,10 +118,10 @@ function Init()
end for end for
m.contentNodes = { m.contentNodes = {
date: m.controls.date.content, date: m.controls.date.content
type: m.controls.type.content, type: m.controls.type.content
duration: m.controls.duration.content, duration: m.controls.duration.content
features: m.controls.features.content, features: m.controls.features.content
sort_by: m.controls.sort_by.content sort_by: m.controls.sort_by.content
} }
@@ -25,10 +25,10 @@ function Init()
textEditBox.voiceEnabled = true textEditBox.voiceEnabled = true
m.top.filters = { m.top.filters = {
date: "", date: ""
type: "", type: ""
duration: "", duration: ""
features: [], features: []
sort_by: "" sort_by: ""
} }
@@ -99,8 +99,8 @@ function OnTextChange() as void
end if end if
m.searchSuggestionsTask = StartAsyncTask(SearchSuggestionsTask, { m.searchSuggestionsTask = StartAsyncTask(SearchSuggestionsTask, {
q: m.keyboard.text, q: m.keyboard.text
invidious: m.invidious, invidious: m.invidious
preferences: m.preferences preferences: m.preferences
}, OnSearchSuggestionsTaskResults) }, OnSearchSuggestionsTaskResults)
end function end function
@@ -206,10 +206,10 @@ function Search(text as string)
ShowLoadingScreen() ShowLoadingScreen()
feedSource = { feedSource = {
"id": `inv_search_${CryptoUtils.GetMd5(text)}`, "id": `inv_search_${CryptoUtils.GetMd5(text)}`
"title": `Search - ${text}`, "title": `Search - ${text}`
"apiType": "Invidious", "apiType": "Invidious"
"endpoint": "search", "endpoint": "search"
"queryParams": { "queryParams": {
"q": text "q": text
} }
@@ -222,14 +222,14 @@ function Search(text as string)
feedSource.queryParams[filter] = value feedSource.queryParams[filter] = value
else if IsArray(value) and value.Count() > 0 else if IsArray(value) and value.Count() > 0
feedSource.queryParams[filter] = { feedSource.queryParams[filter] = {
value: value, value: value
arrayType: UrlUtils.QueryParamArrayType.CommaSeparated arrayType: UrlUtils.QueryParamArrayType.CommaSeparated
} }
end if end if
end for end for
m.rowList.feeds = [{ m.rowList.feeds = [{
"title": `Search - ${text}`, "title": `Search - ${text}`
"feedSources": [feedSource] "feedSources": [feedSource]
}] }]
end function end function
@@ -26,7 +26,7 @@ function SearchSuggestionsTask(input as object) as object
end if end if
return { return {
q: q, q: q
response: history response: history
} }
end function end function
@@ -58,7 +58,7 @@ function RunTestsTask()
end if end if
m.testingTask = StartAsyncTask(InvidiousInstanceTestingTask, { m.testingTask = StartAsyncTask(InvidiousInstanceTestingTask, {
instance: m.top.instance, instance: m.top.instance
listNode: m.testList listNode: m.testList
}) })
end function end function
@@ -38,9 +38,9 @@ function CreateTestNode(title as string, func as function) as object
testNode = CreateObject("roSGNode", "ContentNode") testNode = CreateObject("roSGNode", "ContentNode")
testNode.title = title testNode.title = title
testNode.AddFields({ testNode.AddFields({
func: FuncName(func), func: FuncName(func)
state: "loading", state: "loading"
details: "", details: ""
duration: 0 duration: 0
}) })
m[testNode.func] = func m[testNode.func] = func
@@ -15,7 +15,7 @@ function InvidiousPublicInstancesTask(input as object) as object
if not response.IsSuccess() or instances = invalid if not response.IsSuccess() or instances = invalid
return { return {
success: false, success: false
error: response.ErrorMessage() error: response.ErrorMessage()
} }
end if end if
@@ -31,14 +31,14 @@ function InvidiousPublicInstancesTask(input as object) as object
for each instance in instances for each instance in instances
item = CreateObject("roSGNode", "InvidiousPublicInstancesListItemContent") item = CreateObject("roSGNode", "InvidiousPublicInstancesListItemContent")
item.setFields({ item.setFields({
name: instance[0], name: instance[0]
version: instance[1].stats.software.version, version: instance[1].stats.software.version
users: instance[1].stats.usage.users.total, users: instance[1].stats.usage.users.total
signup: instance[1].stats.openRegistrations ? "Yes" : "No", signup: instance[1].stats.openRegistrations ? "Yes" : "No"
' Leave 5 spaces for the flag, just to simplify the layout ' Leave 5 spaces for the flag, just to simplify the layout
location: ` ${instance[1].region}`, location: ` ${instance[1].region}`
flag: GetFlagUrl(instance[1].flag), flag: GetFlagUrl(instance[1].flag)
health: instance[1].monitor["30dRatio"].ratio, health: instance[1].monitor["30dRatio"].ratio
uri: instance[1].uri uri: instance[1].uri
}) })
content.AppendChild(item) content.AppendChild(item)
@@ -8,9 +8,9 @@ function Init()
m.scrollAnimation = m.top.findNode("scrollAnimation") m.scrollAnimation = m.top.findNode("scrollAnimation")
m.scrollAnimationInterpolator = m.scrollAnimation.findNode("scrollAnimationInterpolator") m.scrollAnimationInterpolator = m.scrollAnimation.findNode("scrollAnimationInterpolator")
m.viewport = { m.viewport = {
x: 150, x: 150
y: 96, y: 96
width: 1920, width: 1920
height: 550 height: 550
} }
end function end function
@@ -75,7 +75,7 @@ function CreateCategoryNode(item as object, container as object, startX as integ
node.displayText = item.displayText node.displayText = item.displayText
node.description = item.description node.description = item.description
return { return {
node: node, node: node
rect: node.boundingRect() rect: node.boundingRect()
} }
end function end function
@@ -107,11 +107,11 @@ function CreateControls(item as object, container as object, startX as integer,
end for end for
return { return {
nodes: nodes, nodes: nodes
rect: { rect: {
x: x, x: x
y: y, y: y
width: width, width: width
height: height height: height
} }
} }
@@ -142,7 +142,7 @@ function CreateControl(item as object, container as object, startX as integer, s
control@.BindPreference(m.preferences, item.key) control@.BindPreference(m.preferences, item.key)
return { return {
node: control, node: control
rect: control.boundingRect() rect: control.boundingRect()
} }
end function end function
@@ -23,9 +23,9 @@ function OnUrlSet()
qrCodePoster = m.top.findNode("QrCodePoster") qrCodePoster = m.top.findNode("QrCodePoster")
StartAsyncTask(GenerateQrCodeTask, { StartAsyncTask(GenerateQrCodeTask, {
poster: qrCodePoster, poster: qrCodePoster
text: url, text: url
size: qrCodePoster.loadWidth, size: qrCodePoster.loadWidth
padding: 20 padding: 20
}) })
end function end function
@@ -53,18 +53,18 @@ function Save() as void
bookmarkNodes = bookmarkGroupNode.getChildren(-1, 0) bookmarkNodes = bookmarkGroupNode.getChildren(-1, 0)
for each bookmarkNode in bookmarkNodes for each bookmarkNode in bookmarkNodes
bookmarks.push({ bookmarks.push({
"id": bookmarkNode.id, "id": bookmarkNode.id
"feedSource": bookmarkNode.feedSource "feedSource": bookmarkNode.feedSource
}) })
end for end for
groups.push({ groups.push({
"title": bookmarkGroupNode.title, "title": bookmarkGroupNode.title
"bookmarks": bookmarks "bookmarks": bookmarks
}) })
end for end for
bookmarksString = FormatJson({ bookmarksString = FormatJson({
"__version": m.top.__version, "__version": m.top.__version
"groups": groups "groups": groups
}) })
@@ -110,8 +110,8 @@ function AddVideoBookmark(id as string, groupName as string)
bookmarkGroupNode = GetOrCreateBookmarkGroup(groupName) bookmarkGroupNode = GetOrCreateBookmarkGroup(groupName)
feedSource = { feedSource = {
"apiType": "Invidious", "apiType": "Invidious"
"endpoint": "video_info", "endpoint": "video_info"
"pathParams": { "pathParams": {
"id": id "id": id
} }
@@ -123,8 +123,8 @@ function AddPlaylistBookmark(id as string, groupName as string)
bookmarkGroupNode = GetOrCreateBookmarkGroup(groupName) bookmarkGroupNode = GetOrCreateBookmarkGroup(groupName)
feedSource = { feedSource = {
"apiType": "Invidious", "apiType": "Invidious"
"endpoint": "playlist_info", "endpoint": "playlist_info"
"pathParams": { "pathParams": {
"plid": id "plid": id
} }
@@ -136,10 +136,10 @@ function AddPlaylistBookmarkWithSpread(id as string, groupName as string)
bookmarkGroupNode = GetOrCreateBookmarkGroup(groupName) bookmarkGroupNode = GetOrCreateBookmarkGroup(groupName)
feedSource = { feedSource = {
"id": `inv_playlist_${id}`, "id": `inv_playlist_${id}`
"title": `${groupName} videos`, "title": `${groupName} videos`
"apiType": "Invidious", "apiType": "Invidious"
"endpoint": "playlist", "endpoint": "playlist"
"pathParams": { "pathParams": {
"plid": id "plid": id
} }
@@ -147,8 +147,8 @@ function AddPlaylistBookmarkWithSpread(id as string, groupName as string)
AddFeedSourceBookmark(feedSource, `inv_playlist_${id}`, bookmarkGroupNode) AddFeedSourceBookmark(feedSource, `inv_playlist_${id}`, bookmarkGroupNode)
feedSource = { feedSource = {
"apiType": "Invidious", "apiType": "Invidious"
"endpoint": "playlist_info", "endpoint": "playlist_info"
"pathParams": { "pathParams": {
"plid": id "plid": id
} }
@@ -160,8 +160,8 @@ function AddChannelBookmark(id as string, groupName as string)
bookmarkGroupNode = GetOrCreateBookmarkGroup(groupName) bookmarkGroupNode = GetOrCreateBookmarkGroup(groupName)
feedSource = { feedSource = {
"apiType": "Invidious", "apiType": "Invidious"
"endpoint": "channel_info", "endpoint": "channel_info"
"pathParams": { "pathParams": {
"ucid": id "ucid": id
} }
@@ -173,10 +173,10 @@ function AddChannelBookmarkWithSpread(id as string, groupName as string)
bookmarkGroupNode = GetOrCreateBookmarkGroup(groupName) bookmarkGroupNode = GetOrCreateBookmarkGroup(groupName)
feedSource = { feedSource = {
"id": `inv_channel_videos_${id}`, "id": `inv_channel_videos_${id}`
"title": `${groupName} videos`, "title": `${groupName} videos`
"apiType": "Invidious", "apiType": "Invidious"
"endpoint": "channel_videos", "endpoint": "channel_videos"
"pathParams": { "pathParams": {
"ucid": id "ucid": id
} }
@@ -184,8 +184,8 @@ function AddChannelBookmarkWithSpread(id as string, groupName as string)
AddFeedSourceBookmark(feedSource, `inv_channel_videos_${id}`, bookmarkGroupNode) AddFeedSourceBookmark(feedSource, `inv_channel_videos_${id}`, bookmarkGroupNode)
feedSource = { feedSource = {
"apiType": "Invidious", "apiType": "Invidious"
"endpoint": "channel_info", "endpoint": "channel_info"
"pathParams": { "pathParams": {
"ucid": id "ucid": id
} }
@@ -34,10 +34,10 @@ class DashManifest
xml = new XmlObject() xml = new XmlObject()
if xml.Node("MPD", { if xml.Node("MPD", {
"xmlns": "urn:mpeg:dash:schema:mpd:2011", "xmlns": "urn:mpeg:dash:schema:mpd:2011"
"profiles": "urn:mpeg:dash:profile:full:2011", "profiles": "urn:mpeg:dash:profile:full:2011"
"minBufferTime": "PT1.5S", "minBufferTime": "PT1.5S"
"type": "static", "type": "static"
"mediaPresentationDuration": `PT${metadata.lengthSeconds ?? 0}S` "mediaPresentationDuration": `PT${metadata.lengthSeconds ?? 0}S`
}) })
if xml.Node("Period") if xml.Node("Period")
@@ -45,9 +45,9 @@ class DashManifest
id = 0 id = 0
for each audioSet in audioSets for each audioSet in audioSets
adaptationSetAttributes = { adaptationSetAttributes = {
"id": `${id}`, "id": `${id}`
"mimeType": audioSet.mimeType, "mimeType": audioSet.mimeType
"startWithSAP": "1", "startWithSAP": "1"
"subsegmentAlignment": "true" "subsegmentAlignment": "true"
} }
if not StringUtils.IsNullOrEmpty(audioSet.lang) if not StringUtils.IsNullOrEmpty(audioSet.lang)
@@ -56,7 +56,7 @@ class DashManifest
if xml.Node("AdaptationSet", adaptationSetAttributes) if xml.Node("AdaptationSet", adaptationSetAttributes)
xml.Node("Role", { xml.Node("Role", {
"schemeIdUri": "urn:mpeg:dash:role:2011", "schemeIdUri": "urn:mpeg:dash:role:2011"
"value": audioSet.acont = "original" ? "main" : "alternate" "value": audioSet.acont = "original" ? "main" : "alternate"
}) })
xml.End() xml.End()
@@ -77,13 +77,13 @@ class DashManifest
end if end if
if xml.Node("Representation", { if xml.Node("Representation", {
"id": stream.itag, "id": stream.itag
"codecs": codecs, "codecs": codecs
"bandwidth": stream.bitrate "bandwidth": stream.bitrate
}) })
xml.Node("AudioChannelConfiguration", { xml.Node("AudioChannelConfiguration", {
"schemeIdUri": "urn:mpeg:dash:23003:3:audio_channel_configuration:2011", "schemeIdUri": "urn:mpeg:dash:23003:3:audio_channel_configuration:2011"
"value": `${stream.audioChannels}` "value": `${stream.audioChannels}`
}) })
xml.End() xml.End()
@@ -115,9 +115,9 @@ class DashManifest
for each mimeType in videoMimeTypes for each mimeType in videoMimeTypes
if xml.Node("AdaptationSet", { if xml.Node("AdaptationSet", {
"id": `${id}`, "id": `${id}`
"mimeType": mimeType, "mimeType": mimeType
"startWithSAP": "1", "startWithSAP": "1"
"subsegmentAlignment": "true" "subsegmentAlignment": "true"
}) })
@@ -137,10 +137,10 @@ class DashManifest
end if end if
representationAttributes = { representationAttributes = {
"id": stream.itag, "id": stream.itag
"codecs": codecs, "codecs": codecs
"startWithSAP": "1", "startWithSAP": "1"
"maxPlayoutRate": "1", "maxPlayoutRate": "1"
"bandwidth": stream.bitrate "bandwidth": stream.bitrate
} }
if stream.width <> invalid if stream.width <> invalid
@@ -226,26 +226,26 @@ class DashManifest
bandwidth = ((storyboardWidthInPixels * storyboardHeightInPixels * 0.5) / duration) bandwidth = ((storyboardWidthInPixels * storyboardHeightInPixels * 0.5) / duration)
if xml.Node("AdaptationSet", { if xml.Node("AdaptationSet", {
"id": `${id}`, "id": `${id}`
"mimeType": "image/jpeg", "mimeType": "image/jpeg"
"contentType": "image" "contentType": "image"
}) })
xml.Node("SegmentTemplate", { xml.Node("SegmentTemplate", {
"media": url, "media": url
"duration": duration, "duration": duration
"startNumber": 0 "startNumber": 0
}) })
xml.End() xml.End()
if xml.Node("Representation", { if xml.Node("Representation", {
"id": `thumbnails_${id}`, "id": `thumbnails_${id}`
"bandwidth": bandwidth, "bandwidth": bandwidth
"width": storyboardWidthInPixels, "width": storyboardWidthInPixels
"height": storyboardHeightInPixels "height": storyboardHeightInPixels
}) })
xml.Node("EssentialProperty", { xml.Node("EssentialProperty", {
"schemeIdUri": "http://dashif.org/guidelines/thumbnail_tile", "schemeIdUri": "http://dashif.org/guidelines/thumbnail_tile"
"value": `${storyboardWidth}x${storyboardHeight}` "value": `${storyboardWidth}x${storyboardHeight}`
}) })
xml.End() xml.End()
@@ -334,8 +334,8 @@ class DashManifest
stream = streams[i] stream = streams[i]
mimeType = stream.type.Tokenize(";")[0] mimeType = stream.type.Tokenize(";")[0]
types[`${mimeType}-${stream.languageInfo.lang}-${stream.languageInfo.acont}`] = { types[`${mimeType}-${stream.languageInfo.lang}-${stream.languageInfo.acont}`] = {
"mimeType": mimeType, "mimeType": mimeType
"lang": stream.languageInfo.lang, "lang": stream.languageInfo.lang
"acont": stream.languageInfo.acont "acont": stream.languageInfo.acont
} }
end for end for
@@ -45,15 +45,15 @@ namespace Invidious
m.endpoints = node.apiDefinitions m.endpoints = node.apiDefinitions
m.responseHanlders = { m.responseHanlders = {
DefaultHandler: m.DefaultHandler, DefaultHandler: m.DefaultHandler
AuthFeedHandler: m.AuthFeedHandler, AuthFeedHandler: m.AuthFeedHandler
PlaylistHandler: m.PlaylistHandler, PlaylistHandler: m.PlaylistHandler
VideoInfoHandler: m.VideoInfoHandler, VideoInfoHandler: m.VideoInfoHandler
PlaylistInfoHandler: m.PlaylistInfoHandler, PlaylistInfoHandler: m.PlaylistInfoHandler
ChannelInfoHandler: m.ChannelInfoHandler, ChannelInfoHandler: m.ChannelInfoHandler
ChannelVideosHandler: m.ChannelVideosHandler, ChannelVideosHandler: m.ChannelVideosHandler
ChannelPlaylistsHandler: m.ChannelPlaylistsHandler, ChannelPlaylistsHandler: m.ChannelPlaylistsHandler
ChannelRelatedChannelsHandler: m.ChannelRelatedChannelsHandler, ChannelRelatedChannelsHandler: m.ChannelRelatedChannelsHandler
WatchHistoryHandler: m.WatchHistoryHandler WatchHistoryHandler: m.WatchHistoryHandler
} }
end function end function
@@ -209,7 +209,7 @@ namespace Invidious
endpoint = m.endpoints[feedSource.endpoint] endpoint = m.endpoints[feedSource.endpoint]
if endpoint = invalid if endpoint = invalid
return { return {
success: false, success: false
error: `Endpoint ${feedSource.endpoint} not found` error: `Endpoint ${feedSource.endpoint} not found`
} }
end if end if
@@ -222,7 +222,7 @@ namespace Invidious
authToken = m.node.authToken authToken = m.node.authToken
if authToken = invalid if authToken = invalid
return { return {
success: false, success: false
error: ERROR_NOT_AUTHENTICATED error: ERROR_NOT_AUTHENTICATED
} }
end if end if
@@ -283,12 +283,12 @@ namespace Invidious
if response.IsSuccess() and result <> invalid if response.IsSuccess() and result <> invalid
return { return {
success: true, success: true
result: result result: result
} }
else else
return { return {
success: false, success: false
error: response.ErrorMessage() error: response.ErrorMessage()
} }
end if end if
@@ -318,7 +318,7 @@ namespace Invidious
if response.StatusCode() = 200 if response.StatusCode() = 200
json = response.Json() json = response.Json()
return { return {
items: json.videos, items: json.videos
continuation: json.continuation continuation: json.continuation
} }
end if end if
@@ -329,7 +329,7 @@ namespace Invidious
if response.StatusCode() = 200 if response.StatusCode() = 200
json = response.Json() json = response.Json()
return { return {
items: json.playlists, items: json.playlists
continuation: json.continuation continuation: json.continuation
} }
end if end if
@@ -340,7 +340,7 @@ namespace Invidious
if response.StatusCode() = 200 if response.StatusCode() = 200
json = response.Json() json = response.Json()
return { return {
items: json.relatedChannels, items: json.relatedChannels
continuation: json.continuation continuation: json.continuation
} }
end if end if
@@ -422,7 +422,7 @@ namespace Invidious
videos = [] videos = []
for each item in json for each item in json
videos.push({ videos.push({
"type": "video", "type": "video"
"videoId": item "videoId": item
}) })
end for end for
@@ -454,7 +454,7 @@ namespace Invidious
' Right now we're probably in a UI thread, and we can't unregister the token ' Right now we're probably in a UI thread, and we can't unregister the token
' Without a Task ' Without a Task
StartAsyncTask(InvidiousUnregisterTokenTask, { StartAsyncTask(InvidiousUnregisterTokenTask, {
invidious: m.node, invidious: m.node
authToken: authToken authToken: authToken
}) })
RegistryUtils.Delete(RegistryUtils.INVIDIOUS_TOKEN) RegistryUtils.Delete(RegistryUtils.INVIDIOUS_TOKEN)
@@ -470,8 +470,8 @@ We apologize for the inconvenience.`
function SetAuthToken(token as string, instance as string, username as dynamic) function SetAuthToken(token as string, instance as string, username as dynamic)
obj = { obj = {
token: token, token: token
instance: instance, instance: instance
username: username username: username
} }
@@ -20,7 +20,7 @@ function InvidiousSubscriptionsTask(input as object) as object
LogError("Error getting subscriptions:", error) LogError("Error getting subscriptions:", error)
return { return {
success: false, success: false
error: response.ErrorMessage() error: response.ErrorMessage()
} }
end if end if
@@ -6,7 +6,6 @@ namespace SponsorBlock
const SKIP_SEGMENT_ENDPOINT = "/api/skipSegments" const SKIP_SEGMENT_ENDPOINT = "/api/skipSegments"
const VIEWED_SEGMENT_ENDPOINT = "/api/viewedVideoSponsorTime" const VIEWED_SEGMENT_ENDPOINT = "/api/viewedVideoSponsorTime"
class SponsorBlockService class SponsorBlockService
function new() function new()
' TODO:P2 this is being read and parsed on every skipped segment. It should be cached. ' TODO:P2 this is being read and parsed on every skipped segment. It should be cached.
@@ -15,8 +15,8 @@ function SponsorBlockTask(input as object) as object
end if end if
return { return {
videoId: videoId, videoId: videoId
skipSegments: skipSegments, skipSegments: skipSegments
barPath: barPath barPath: barPath
} }
end function end function
@@ -4,18 +4,18 @@ function OnContentSet() as void
content = m.top.itemContent content = m.top.itemContent
visibleProperties = { visibleProperties = {
"video": "videoRowCellVisible", "video": "videoRowCellVisible"
"playlist": "playlistRowCellVisible", "playlist": "playlistRowCellVisible"
"channel": "channelRowCellVisible", "channel": "channelRowCellVisible"
"loading": "loadingRowCellVisible", "loading": "loadingRowCellVisible"
"action": "actionRowCellVisible" "action": "actionRowCellVisible"
} }
contentProperties = { contentProperties = {
"video": "videoRowCellItemContent", "video": "videoRowCellItemContent"
"playlist": "playlistRowCellItemContent", "playlist": "playlistRowCellItemContent"
"channel": "channelRowCellItemContent", "channel": "channelRowCellItemContent"
"loading": "loadingRowCellItemContent", "loading": "loadingRowCellItemContent"
"action": "actionRowCellItemContent" "action": "actionRowCellItemContent"
} }
@@ -209,7 +209,7 @@ function InitContent() as void
end if end if
task = StartAsyncTask(VideoRowListContentTask, { task = StartAsyncTask(VideoRowListContentTask, {
node: m.top, node: m.top
feeds: m.top.feeds feeds: m.top.feeds
}, OnVideoRowListContentTaskResult) }, OnVideoRowListContentTaskResult)
m.pendingLoadTasks[task.id] = task m.pendingLoadTasks[task.id] = task
@@ -282,8 +282,8 @@ function LoadRowContent(contentNode as object)
contentNode.loadState = FeedLoadState.Loading contentNode.loadState = FeedLoadState.Loading
task = StartAsyncTask(VideoRowListRowContentTask, { task = StartAsyncTask(VideoRowListRowContentTask, {
rowList: m.top, rowList: m.top
feedContentNode: contentNode, feedContentNode: contentNode
invidious: m.invidious invidious: m.invidious
}, OnVideoRowListRowContentTaskResult) }, OnVideoRowListRowContentTaskResult)
m.pendingLoadTasks[task.id] = task m.pendingLoadTasks[task.id] = task
@@ -143,7 +143,7 @@ function VideoRowListRowContentTask(input as object) as object
catch error catch error
HandleFeedLoadErrorDialog(error, rowList) HandleFeedLoadErrorDialog(error, rowList)
return { return {
success: false, success: false
error: error error: error
} }
end try end try
@@ -110,7 +110,7 @@ namespace SponsorBlock
barPath = output.result.barPath barPath = output.result.barPath
if barPath <> invalid if barPath <> invalid
m.top.trickPlayBar.trackImageUri = barPath m.top.trickPlayBar.trackImageUri = barPath
m.top.trickPlayBar.filledBarBlendColor = "0xFF000080" m.top.trickPlayBar.filledBarBlendColor = "#FF000080"
end if end if
m.top.UnobserveFieldScoped("position") m.top.UnobserveFieldScoped("position")
@@ -27,7 +27,7 @@ function VideoContentTask(input as object) as object
if not response.IsSuccess() or metadata = invalid if not response.IsSuccess() or metadata = invalid
return { return {
success: false, success: false
error: response.ErrorMessage() error: response.ErrorMessage()
} }
end if end if
@@ -41,9 +41,9 @@ function VideoContentTask(input as object) as object
SetCaptions(metadata, service, contentNode) SetCaptions(metadata, service, contentNode)
contentNode.addFields({ contentNode.addFields({
metadata: metadata, metadata: metadata
' StreamUrls is taken ' StreamUrls is taken
playletStreamUrls: streamUrls, playletStreamUrls: streamUrls
playletStreamUrlIndex: 0 playletStreamUrlIndex: 0
}) })
@@ -104,11 +104,11 @@ function AddStreamUrls(streamUrls as object, metadata as object, service as Invi
' These are roughly the itags for 360p and 480p ' These are roughly the itags for 360p and 480p
' Most videos will hit 18, which is 360p ' Most videos will hit 18, which is 360p
mediumItags = { mediumItags = {
"18": true, "18": true
"43": true, "43": true
"44": true, "44": true
"82": true, "82": true
"83": true, "83": true
"101": true "101": true
} }
for each formatStream in metadata.formatStreams for each formatStream in metadata.formatStreams
@@ -172,8 +172,8 @@ function SetCaptions(metadata as object, service as object, contentNode as objec
for each caption in metadata.captions for each caption in metadata.captions
subtitleTracks.Push({ subtitleTracks.Push({
Description: caption.label, Description: caption.label
Language: isoLanguageList[caption.language_code] ?? caption.language_code, Language: isoLanguageList[caption.language_code] ?? caption.language_code
TrackName: instance + caption.url TrackName: instance + caption.url
}) })
end for end for
@@ -69,9 +69,9 @@ function StartVideoContentTask(videoContentNode as object)
m.top.content = videoContentNode m.top.content = videoContentNode
m.videoContentTask = StartAsyncTask(VideoContentTask, { m.videoContentTask = StartAsyncTask(VideoContentTask, {
content: videoContentNode, content: videoContentNode
invidious: m.top.invidious, invidious: m.top.invidious
preferences: m.top.preferences, preferences: m.top.preferences
playletServerPort: m.top.webServer.port playletServerPort: m.top.webServer.port
}, OnVideoContentTaskResults) }, OnVideoContentTaskResults)
end function end function
@@ -110,7 +110,7 @@ end function
function MarkVideoWatched(videoId as string) function MarkVideoWatched(videoId as string)
if m.top.invidious.authToken <> invalid if m.top.invidious.authToken <> invalid
StartAsyncTask(MarkVideoWatchedTask, { StartAsyncTask(MarkVideoWatchedTask, {
videoId: videoId, videoId: videoId
invidious: m.top.invidious invidious: m.top.invidious
}) })
end if end if
@@ -1,12 +1,12 @@
function SetPlayerStyle() function SetPlayerStyle()
m.top.trickPlayBar.filledBarBlendColor = "0xFF1C30FF" m.top.trickPlayBar.filledBarBlendColor = "#FF1C30FF"
m.top.bufferingBar.filledBarBlendColor = "0xFF1C30FF" m.top.bufferingBar.filledBarBlendColor = "#FF1C30FF"
m.top.retrievingBar.filledBarBlendColor = "0xFF1C30FF" m.top.retrievingBar.filledBarBlendColor = "#FF1C30FF"
' Find the BusySpinner built into the Video node ' Find the BusySpinner built into the Video node
busySpinner = FindChildNodeOfType(m.top, "BusySpinner") busySpinner = FindChildNodeOfType(m.top, "BusySpinner")
if busySpinner <> invalid if busySpinner <> invalid
busySpinner.poster.blendColor = "0xFF1C30FF" busySpinner.poster.blendColor = "#FF1C30FF"
end if end if
end function end function
@@ -52,7 +52,7 @@ namespace Http
end for end for
feeds.push({ feeds.push({
"title": bookmarkGroupNode.title, "title": bookmarkGroupNode.title
"feedSources": feedSources "feedSources": feedSources
}) })
end for end for
@@ -18,7 +18,7 @@ namespace Http
end if end if
response.Json({ response.Json({
loaded: scene.playletLibLoadedUrl, loaded: scene.playletLibLoadedUrl
saved: saved saved: saved
}) })
return true return true
@@ -50,11 +50,10 @@ namespace Http
if ArrayUtils.IndexOfString(keys, "invidious") <> -1 if ArrayUtils.IndexOfString(keys, "invidious") <> -1
authToken = invidiousNode.authToken authToken = invidiousNode.authToken
state["invidious"] = { state["invidious"] = {
current_instance: invidiousNode@.GetCurrentInstance(), current_instance: invidiousNode@.GetCurrentInstance()
' backup_instances: InvidiousSettings.GetBackupInstances(), auth_url: invidiousNode@.GetAuthorizeTokenLink()
auth_url: invidiousNode@.GetAuthorizeTokenLink(), logged_in: authToken <> invalid
logged_in: authToken <> invalid, logged_in_instance: authToken <> invalid ? authToken.instance : invalid
logged_in_instance: authToken <> invalid ? authToken.instance : invalid,
logged_in_username: authToken <> invalid ? authToken.username : invalid logged_in_username: authToken <> invalid ? authToken.username : invalid
} }
end if end if
@@ -36,10 +36,10 @@ namespace Http
for each route in m.routes for each route in m.routes
if m.RouteMatchesRequest(route, request) if m.RouteMatchesRequest(route, request)
if route.handler({ if route.handler({
router: m, router: m
request: request, request: request
response: response, response: response
connection: connection, connection: connection
server: response.server server: response.server
}) = true }) = true
return true return true
@@ -25,7 +25,7 @@ namespace Http
if not StringUtils.IsNullOrEmpty(path) if not StringUtils.IsNullOrEmpty(path)
m.pathToEtags[path] = { m.pathToEtags[path] = {
etag: response.headers["ETag"], etag: response.headers["ETag"]
size: body.count() size: body.count()
} }
end if end if
@@ -41,7 +41,7 @@ namespace Web
LogInfo("on connect") LogInfo("on connect")
for each listener in m.onConnectListeners for each listener in m.onConnectListeners
listener({ listener({
server: m, server: m
connection: connection connection: connection
}) })
end for end for
@@ -51,7 +51,7 @@ namespace Web
LogInfo("on disconnect") LogInfo("on disconnect")
for each listener in m.onDisconnectListeners for each listener in m.onDisconnectListeners
listener({ listener({
server: m, server: m
connection: connection connection: connection
}) })
end for end for
@@ -60,8 +60,8 @@ namespace Web
function TriggerOnMessage(connection as Web.WebSocketConnection, message as string) function TriggerOnMessage(connection as Web.WebSocketConnection, message as string)
for each listener in m.onMessageListeners for each listener in m.onMessageListeners
listener({ listener({
server: m, server: m
connection: connection, connection: connection
message: message message: message
}) })
end for end for
@@ -22,7 +22,7 @@
'mute', 'mute',
'full', 'full',
], ],
color: '#00d400B3', color: '#00D400B3',
}, },
selfpromo: { selfpromo: {
title: 'Unpaid/Self Promotion', title: 'Unpaid/Self Promotion',
@@ -32,7 +32,7 @@
'mute', 'mute',
'full', 'full',
], ],
color: '#ffff00B3', color: '#FFFF00B3',
}, },
exclusive_access: { exclusive_access: {
title: 'Exclusive Access', title: 'Exclusive Access',
@@ -40,7 +40,7 @@
categorySupport: [ categorySupport: [
'full', 'full',
], ],
color: '#008a5cB3', color: '#008A5CB3',
}, },
interaction: { interaction: {
title: 'Interaction Reminder (Subscribe)', title: 'Interaction Reminder (Subscribe)',
@@ -49,7 +49,7 @@
'skip', 'skip',
'mute', 'mute',
], ],
color: '#cc00ffB3', color: '#CC00FFB3',
}, },
poi_highlight: { poi_highlight: {
title: 'Highlight', title: 'Highlight',
@@ -57,7 +57,7 @@
categorySupport: [ categorySupport: [
'poi', 'poi',
], ],
color: '#ff1684B3', color: '#FF1684B3',
}, },
intro: { intro: {
title: 'Intermission/Intro Animation', title: 'Intermission/Intro Animation',
@@ -66,7 +66,7 @@
'skip', 'skip',
'mute', 'mute',
], ],
color: '#00ffffB3', color: '#00FFFFB3',
}, },
outro: { outro: {
title: 'Endcards/Credits', title: 'Endcards/Credits',
@@ -75,16 +75,16 @@
'skip', 'skip',
'mute', 'mute',
], ],
color: '#0202edB3', color: '#0202EDB3',
}, },
preview: { preview: {
title: 'Preview/Recap', title: 'Preview/Recap/Hook',
short_title: 'Preview/Recap', short_title: 'Preview/Recap/Hook',
categorySupport: [ categorySupport: [
'skip', 'skip',
'mute', 'mute',
], ],
color: '#008fd6B3', color: '#008FD6B3',
}, },
filler: { filler: {
title: 'Filler Tangent/Jokes', title: 'Filler Tangent/Jokes',
@@ -109,7 +109,7 @@
categorySupport: [ categorySupport: [
'skip', 'skip',
], ],
color: '#ff9900B3', color: '#FF9900B3',
}, },
}, },
} }
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 316 B

After

Width:  |  Height:  |  Size: 364 B

@@ -1,3 +1,3 @@
<svg enable-background="new 0 0 24 24" height="24" viewBox="0 0 24 24" width="24" focusable="false" style="pointer-events: none; display: block; width: 100%; height: 100%;"> <svg enable-background="new 0 0 24 24" height="24" viewBox="0 0 24 24" width="24" focusable="false" style="pointer-events: none; display: block; width: 100%; height: 100%;">
<path fill="#000000" d="M15 17h6v1h-6v-1zm-4 0H3v1h8v2h1v-5h-1v2zm3-9h1V3h-1v2H3v1h11v2zm4-3v1h3V5h-3zM6 14h1V9H6v2H3v1h3v2zm4-2h11v-1H10v1z"></path> <path fill="#161616" d="M15 17h6v1h-6v-1zm-4 0H3v1h8v2h1v-5h-1v2zm3-9h1V3h-1v2H3v1h11v2zm4-3v1h3V5h-3zM6 14h1V9H6v2H3v1h3v2zm4-2h11v-1H10v1z"></path>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 334 B

After

Width:  |  Height:  |  Size: 334 B

@@ -1,9 +1,9 @@
{ {
inputHash: 'b88a05052cd01cb7a89bd6802418d79e', inputHash: 'ed4c9f819d239f42552388b35703d49d',
outputs: [ outputs: [
{ {
outputFilePath: 'images/icons/filters-black.png', outputFilePath: 'images/icons/filters-black.png',
outputHash: 'f0a7539ae840c00a2d91292f993bb75e', outputHash: 'b468f7bd2996a1c1f0acbfdc6512b1a5',
width: 64, width: 64,
height: 64, height: 64,
}, },
Binary file not shown.

Before

Width:  |  Height:  |  Size: 321 B

After

Width:  |  Height:  |  Size: 343 B

@@ -1,3 +1,3 @@
<svg enable-background="new 0 0 24 24" height="24" viewBox="0 0 24 24" width="24" focusable="false" style="pointer-events: none; display: block; width: 100%; height: 100%;"> <svg enable-background="new 0 0 24 24" height="24" viewBox="0 0 24 24" width="24" focusable="false" style="pointer-events: none; display: block; width: 100%; height: 100%;">
<path fill="#FFFFFF" d="M15 17h6v1h-6v-1zm-4 0H3v1h8v2h1v-5h-1v2zm3-9h1V3h-1v2H3v1h11v2zm4-3v1h3V5h-3zM6 14h1V9H6v2H3v1h3v2zm4-2h11v-1H10v1z"></path> <path fill="#DBDBDB" d="M15 17h6v1h-6v-1zm-4 0H3v1h8v2h1v-5h-1v2zm3-9h1V3h-1v2H3v1h11v2zm4-3v1h3V5h-3zM6 14h1V9H6v2H3v1h3v2zm4-2h11v-1H10v1z"></path>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 334 B

After

Width:  |  Height:  |  Size: 334 B

@@ -1,9 +1,9 @@
{ {
inputHash: 'df7918a3b43642f707cc0d9fcfd2d9ee', inputHash: 'a213d2aa04eb7063f173e6a75ed466de',
outputs: [ outputs: [
{ {
outputFilePath: 'images/icons/filters-white.png', outputFilePath: 'images/icons/filters-white.png',
outputHash: '914e2c8da9772c23c24bebbd39c918f2', outputHash: '1a9c02d5597920100003614d70d54c0f',
width: 64, width: 64,
height: 64, height: 64,
}, },
Binary file not shown.

Before

Width:  |  Height:  |  Size: 277 B

After

Width:  |  Height:  |  Size: 373 B

+1 -1
View File
@@ -1,5 +1,5 @@
<svg viewBox="0 0 24 24" preserveAspectRatio="xMidYMid meet" focusable="false" class="style-scope yt-icon" style="pointer-events: none; display: block; width: 100%; height: 100%;"> <svg viewBox="0 0 24 24" preserveAspectRatio="xMidYMid meet" focusable="false" class="style-scope yt-icon" style="pointer-events: none; display: block; width: 100%; height: 100%;">
<g class="style-scope yt-icon"> <g class="style-scope yt-icon">
<path fill="#FFFFFF" d="M4,10V21h6V15h4v6h6V10L12,3Z" class="style-scope yt-icon"></path> <path fill="#DBDBDB" d="M4,10V21h6V15h4v6h6V10L12,3Z" class="style-scope yt-icon"></path>
</g> </g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 330 B

After

Width:  |  Height:  |  Size: 330 B

@@ -1,9 +1,9 @@
{ {
inputHash: '788d5e9ddc5a26953392afa17a85a05c', inputHash: '095d37a85c2c612e2cd361b3e9ade2cd',
outputs: [ outputs: [
{ {
outputFilePath: 'images/icons/home.png', outputFilePath: 'images/icons/home.png',
outputHash: '55f237e441ea693c152fbf0fd52a98d2', outputHash: '930a8bde6f292ca4b8fb7a43adb53a5f',
width: 48, width: 48,
height: 48, height: 48,
}, },
Binary file not shown.

Before

Width:  |  Height:  |  Size: 940 B

After

Width:  |  Height:  |  Size: 1.3 KiB

+1 -1
View File
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 122.88 122.88" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 122.88 122.88"
style="enable-background:new 0 0 122.88 122.88" xml:space="preserve"><g><path fill="#FFFFFF" d="M61.44,9.23c-1.85,0-3.64,0.08-5.35,0.25c-1.71,0.17-3.44,0.42-5.17,0.77c-1.72,0.34-3.39,0.77-5,1.26 c-1.59,0.49-3.16,1.07-4.7,1.72l-0.1,0.05l0,0c-1.63,0.7-3.18,1.45-4.67,2.25c-1.5,0.81-2.94,1.68-4.31,2.6 c-1.38,0.93-2.72,1.92-3.99,2.97c-1.27,1.05-2.5,2.16-3.68,3.35l-0.04,0.04c-1.18,1.18-2.29,2.4-3.33,3.66 c-1.05,1.28-2.04,2.61-2.97,3.99c-0.92,1.36-1.78,2.8-2.59,4.3c-0.8,1.49-1.56,3.05-2.26,4.67l-0.05,0.11l0,0l-0.07,0.14 c-0.63,1.5-1.19,3.04-1.67,4.61c-0.49,1.59-0.9,3.23-1.24,4.93c-0.35,1.73-0.6,3.45-0.77,5.17c-0.17,1.72-0.25,3.5-0.25,5.35 c0,1.85,0.08,3.64,0.25,5.35c0.17,1.71,0.42,3.44,0.77,5.17c0.35,1.72,0.77,3.39,1.27,5c0.49,1.57,1.05,3.13,1.7,4.66 c0.04,0.07,0.07,0.14,0.1,0.21c0.69,1.6,1.43,3.13,2.23,4.6c0.81,1.5,1.68,2.94,2.59,4.3c0.93,1.39,1.92,2.72,2.98,4 c1.02,1.24,2.11,2.44,3.26,3.59c0.07,0.06,0.13,0.12,0.19,0.19c1.16,1.16,2.36,2.24,3.59,3.26c1.28,1.05,2.61,2.04,3.99,2.97 c1.36,0.92,2.8,1.78,4.3,2.59c1.49,0.8,3.05,1.56,4.67,2.26l0.21,0.1c1.52,0.64,3.07,1.2,4.67,1.69c1.58,0.49,3.23,0.9,4.92,1.24 c1.73,0.35,3.45,0.6,5.17,0.77c1.72,0.17,3.5,0.25,5.35,0.25c1.85,0,3.64-0.08,5.35-0.25c1.71-0.17,3.44-0.42,5.17-0.77 c1.72-0.35,3.39-0.77,5-1.27c1.59-0.49,3.16-1.07,4.71-1.73l0.09-0.04l0-0.01c1.63-0.7,3.18-1.45,4.67-2.25 c1.5-0.81,2.94-1.68,4.31-2.6c1.38-0.93,2.72-1.92,3.99-2.97c1.25-1.03,2.45-2.12,3.62-3.29c0.06-0.06,0.11-0.12,0.18-0.18 c1.15-1.15,2.23-2.35,3.25-3.58c1.05-1.28,2.05-2.61,2.98-4c0.92-1.36,1.78-2.8,2.59-4.3c0.8-1.49,1.56-3.04,2.26-4.67l0.1-0.22 c0.64-1.51,1.2-3.06,1.69-4.65c0.49-1.59,0.9-3.23,1.24-4.93c0.35-1.73,0.6-3.45,0.77-5.17c0.17-1.72,0.25-3.5,0.25-5.35 c0-1.85-0.08-3.64-0.25-5.35c-0.17-1.71-0.42-3.44-0.77-5.17c-0.35-1.72-0.77-3.39-1.27-5c-0.49-1.59-1.07-3.16-1.73-4.71 l-0.04-0.09l0,0c-0.7-1.63-1.45-3.18-2.25-4.67c-0.81-1.5-1.68-2.94-2.59-4.3c-0.93-1.38-1.92-2.72-2.97-3.99 c-1.02-1.24-2.12-2.45-3.28-3.61c-0.07-0.06-0.13-0.12-0.18-0.18c-1.16-1.16-2.35-2.24-3.59-3.26c-1.28-1.05-2.61-2.04-3.99-2.97 c-1.37-0.92-2.8-1.78-4.3-2.59c-1.49-0.8-3.04-1.56-4.67-2.25l-0.19-0.09c-1.52-0.64-3.08-1.21-4.68-1.7 c-1.58-0.49-3.23-0.9-4.93-1.24c-1.73-0.35-3.45-0.6-5.17-0.77C65.08,9.31,63.29,9.23,61.44,9.23L61.44,9.23z M63.34,31.17 c2.19,0,3.91,0.63,5.16,1.88c1.24,1.25,1.87,2.96,1.87,5.17c0,2.24-1.07,4.22-3.21,5.97c-2.16,1.74-4.66,2.62-7.52,2.62 c-2.14,0-3.85-0.6-5.16-1.8c-1.31-1.22-1.96-2.79-1.96-4.75c0-2.47,1.07-4.59,3.19-6.4C57.82,32.06,60.37,31.17,63.34,31.17 L63.34,31.17L63.34,31.17z M75.55,91.71H47.33v-4.75h5.3V57.95h-5.3v-3.78h13.19c3.33,0,6.61-0.4,9.85-1.22v34.01h5.18L75.55,91.71 L75.55,91.71L75.55,91.71z M49.12,1.2c1.96-0.39,3.99-0.69,6.08-0.89C57.29,0.1,59.37,0,61.44,0c2.07,0,4.15,0.1,6.24,0.31 c2.09,0.2,4.12,0.5,6.08,0.89c1.94,0.39,3.88,0.88,5.82,1.48c1.88,0.58,3.74,1.26,5.58,2.04l0.19,0.07l0,0l0.06,0.02 c1.85,0.8,3.65,1.67,5.38,2.61c1.71,0.93,3.4,1.95,5.07,3.07c1.63,1.1,3.21,2.27,4.73,3.52c1.52,1.25,2.97,2.56,4.34,3.95 c1.38,1.38,2.7,2.83,3.95,4.34c1.25,1.52,2.42,3.09,3.52,4.73c1.09,1.63,2.11,3.32,3.06,5.06l0,0l0.01,0 c0.94,1.74,1.82,3.54,2.61,5.39c0.02,0.05,0.04,0.1,0.06,0.15c0.78,1.83,1.46,3.7,2.05,5.6c0.61,1.96,1.11,3.92,1.5,5.89 c0.39,1.96,0.69,3.99,0.89,6.08c0.2,2.09,0.3,4.17,0.3,6.24c0,2.07-0.1,4.15-0.31,6.24c-0.2,2.09-0.5,4.12-0.89,6.08 c-0.39,1.94-0.88,3.88-1.48,5.82c-0.58,1.89-1.27,3.76-2.05,5.62l-0.04,0.09l0,0l-0.05,0.11c-0.8,1.85-1.67,3.65-2.61,5.38 c-0.93,1.71-1.95,3.4-3.07,5.07c-1.1,1.63-2.27,3.21-3.52,4.73c-1.25,1.52-2.56,2.96-3.95,4.34c-1.38,1.38-2.83,2.7-4.35,3.95 c-1.52,1.25-3.09,2.42-4.72,3.51c-1.63,1.09-3.32,2.11-5.06,3.06c-1.78,0.96-3.57,1.84-5.39,2.62c-0.05,0.02-0.1,0.04-0.16,0.06 c-1.83,0.78-3.7,1.46-5.6,2.05c-1.96,0.61-3.92,1.11-5.88,1.5c-1.96,0.39-3.99,0.69-6.08,0.89c-2.09,0.2-4.17,0.3-6.24,0.3 s-4.15-0.1-6.24-0.3c-2.09-0.2-4.12-0.5-6.08-0.89c-1.94-0.39-3.88-0.88-5.82-1.48c-1.89-0.58-3.76-1.27-5.61-2.05l-0.2-0.08l0,0 c-1.85-0.8-3.65-1.67-5.38-2.61c-1.71-0.93-3.4-1.95-5.07-3.07c-1.63-1.09-3.21-2.27-4.72-3.51c-1.52-1.25-2.97-2.57-4.35-3.95 c-1.38-1.38-2.7-2.83-3.95-4.34c-1.25-1.52-2.42-3.1-3.52-4.73c-1.09-1.63-2.11-3.32-3.06-5.06c-0.97-1.78-1.84-3.58-2.62-5.4 c-0.02-0.05-0.04-0.1-0.06-0.15c-0.78-1.83-1.46-3.7-2.05-5.6c-0.61-1.96-1.11-3.93-1.5-5.89c-0.39-1.96-0.69-3.99-0.89-6.08 C0.1,65.59,0,63.51,0,61.44c0-2.07,0.1-4.15,0.31-6.24c0.2-2.09,0.5-4.12,0.89-6.08c0.39-1.94,0.88-3.88,1.48-5.82 c0.58-1.88,1.26-3.74,2.04-5.59l0.09-0.23l0,0c0.8-1.85,1.67-3.65,2.61-5.38c0.93-1.71,1.95-3.4,3.07-5.07 c1.1-1.63,2.27-3.21,3.52-4.73c1.25-1.52,2.56-2.96,3.95-4.34c1.38-1.38,2.83-2.7,4.34-3.95c1.52-1.25,3.09-2.42,4.73-3.52 c1.67-1.12,3.36-2.14,5.07-3.07l0.13-0.06c1.73-0.94,3.48-1.78,5.26-2.55c0.05-0.02,0.1-0.04,0.15-0.06 c1.83-0.78,3.7-1.46,5.6-2.05C45.19,2.09,47.15,1.59,49.12,1.2L49.12,1.2z"/></g></svg> style="enable-background:new 0 0 122.88 122.88" xml:space="preserve"><g><path fill="#DBDBDB" d="M61.44,9.23c-1.85,0-3.64,0.08-5.35,0.25c-1.71,0.17-3.44,0.42-5.17,0.77c-1.72,0.34-3.39,0.77-5,1.26 c-1.59,0.49-3.16,1.07-4.7,1.72l-0.1,0.05l0,0c-1.63,0.7-3.18,1.45-4.67,2.25c-1.5,0.81-2.94,1.68-4.31,2.6 c-1.38,0.93-2.72,1.92-3.99,2.97c-1.27,1.05-2.5,2.16-3.68,3.35l-0.04,0.04c-1.18,1.18-2.29,2.4-3.33,3.66 c-1.05,1.28-2.04,2.61-2.97,3.99c-0.92,1.36-1.78,2.8-2.59,4.3c-0.8,1.49-1.56,3.05-2.26,4.67l-0.05,0.11l0,0l-0.07,0.14 c-0.63,1.5-1.19,3.04-1.67,4.61c-0.49,1.59-0.9,3.23-1.24,4.93c-0.35,1.73-0.6,3.45-0.77,5.17c-0.17,1.72-0.25,3.5-0.25,5.35 c0,1.85,0.08,3.64,0.25,5.35c0.17,1.71,0.42,3.44,0.77,5.17c0.35,1.72,0.77,3.39,1.27,5c0.49,1.57,1.05,3.13,1.7,4.66 c0.04,0.07,0.07,0.14,0.1,0.21c0.69,1.6,1.43,3.13,2.23,4.6c0.81,1.5,1.68,2.94,2.59,4.3c0.93,1.39,1.92,2.72,2.98,4 c1.02,1.24,2.11,2.44,3.26,3.59c0.07,0.06,0.13,0.12,0.19,0.19c1.16,1.16,2.36,2.24,3.59,3.26c1.28,1.05,2.61,2.04,3.99,2.97 c1.36,0.92,2.8,1.78,4.3,2.59c1.49,0.8,3.05,1.56,4.67,2.26l0.21,0.1c1.52,0.64,3.07,1.2,4.67,1.69c1.58,0.49,3.23,0.9,4.92,1.24 c1.73,0.35,3.45,0.6,5.17,0.77c1.72,0.17,3.5,0.25,5.35,0.25c1.85,0,3.64-0.08,5.35-0.25c1.71-0.17,3.44-0.42,5.17-0.77 c1.72-0.35,3.39-0.77,5-1.27c1.59-0.49,3.16-1.07,4.71-1.73l0.09-0.04l0-0.01c1.63-0.7,3.18-1.45,4.67-2.25 c1.5-0.81,2.94-1.68,4.31-2.6c1.38-0.93,2.72-1.92,3.99-2.97c1.25-1.03,2.45-2.12,3.62-3.29c0.06-0.06,0.11-0.12,0.18-0.18 c1.15-1.15,2.23-2.35,3.25-3.58c1.05-1.28,2.05-2.61,2.98-4c0.92-1.36,1.78-2.8,2.59-4.3c0.8-1.49,1.56-3.04,2.26-4.67l0.1-0.22 c0.64-1.51,1.2-3.06,1.69-4.65c0.49-1.59,0.9-3.23,1.24-4.93c0.35-1.73,0.6-3.45,0.77-5.17c0.17-1.72,0.25-3.5,0.25-5.35 c0-1.85-0.08-3.64-0.25-5.35c-0.17-1.71-0.42-3.44-0.77-5.17c-0.35-1.72-0.77-3.39-1.27-5c-0.49-1.59-1.07-3.16-1.73-4.71 l-0.04-0.09l0,0c-0.7-1.63-1.45-3.18-2.25-4.67c-0.81-1.5-1.68-2.94-2.59-4.3c-0.93-1.38-1.92-2.72-2.97-3.99 c-1.02-1.24-2.12-2.45-3.28-3.61c-0.07-0.06-0.13-0.12-0.18-0.18c-1.16-1.16-2.35-2.24-3.59-3.26c-1.28-1.05-2.61-2.04-3.99-2.97 c-1.37-0.92-2.8-1.78-4.3-2.59c-1.49-0.8-3.04-1.56-4.67-2.25l-0.19-0.09c-1.52-0.64-3.08-1.21-4.68-1.7 c-1.58-0.49-3.23-0.9-4.93-1.24c-1.73-0.35-3.45-0.6-5.17-0.77C65.08,9.31,63.29,9.23,61.44,9.23L61.44,9.23z M63.34,31.17 c2.19,0,3.91,0.63,5.16,1.88c1.24,1.25,1.87,2.96,1.87,5.17c0,2.24-1.07,4.22-3.21,5.97c-2.16,1.74-4.66,2.62-7.52,2.62 c-2.14,0-3.85-0.6-5.16-1.8c-1.31-1.22-1.96-2.79-1.96-4.75c0-2.47,1.07-4.59,3.19-6.4C57.82,32.06,60.37,31.17,63.34,31.17 L63.34,31.17L63.34,31.17z M75.55,91.71H47.33v-4.75h5.3V57.95h-5.3v-3.78h13.19c3.33,0,6.61-0.4,9.85-1.22v34.01h5.18L75.55,91.71 L75.55,91.71L75.55,91.71z M49.12,1.2c1.96-0.39,3.99-0.69,6.08-0.89C57.29,0.1,59.37,0,61.44,0c2.07,0,4.15,0.1,6.24,0.31 c2.09,0.2,4.12,0.5,6.08,0.89c1.94,0.39,3.88,0.88,5.82,1.48c1.88,0.58,3.74,1.26,5.58,2.04l0.19,0.07l0,0l0.06,0.02 c1.85,0.8,3.65,1.67,5.38,2.61c1.71,0.93,3.4,1.95,5.07,3.07c1.63,1.1,3.21,2.27,4.73,3.52c1.52,1.25,2.97,2.56,4.34,3.95 c1.38,1.38,2.7,2.83,3.95,4.34c1.25,1.52,2.42,3.09,3.52,4.73c1.09,1.63,2.11,3.32,3.06,5.06l0,0l0.01,0 c0.94,1.74,1.82,3.54,2.61,5.39c0.02,0.05,0.04,0.1,0.06,0.15c0.78,1.83,1.46,3.7,2.05,5.6c0.61,1.96,1.11,3.92,1.5,5.89 c0.39,1.96,0.69,3.99,0.89,6.08c0.2,2.09,0.3,4.17,0.3,6.24c0,2.07-0.1,4.15-0.31,6.24c-0.2,2.09-0.5,4.12-0.89,6.08 c-0.39,1.94-0.88,3.88-1.48,5.82c-0.58,1.89-1.27,3.76-2.05,5.62l-0.04,0.09l0,0l-0.05,0.11c-0.8,1.85-1.67,3.65-2.61,5.38 c-0.93,1.71-1.95,3.4-3.07,5.07c-1.1,1.63-2.27,3.21-3.52,4.73c-1.25,1.52-2.56,2.96-3.95,4.34c-1.38,1.38-2.83,2.7-4.35,3.95 c-1.52,1.25-3.09,2.42-4.72,3.51c-1.63,1.09-3.32,2.11-5.06,3.06c-1.78,0.96-3.57,1.84-5.39,2.62c-0.05,0.02-0.1,0.04-0.16,0.06 c-1.83,0.78-3.7,1.46-5.6,2.05c-1.96,0.61-3.92,1.11-5.88,1.5c-1.96,0.39-3.99,0.69-6.08,0.89c-2.09,0.2-4.17,0.3-6.24,0.3 s-4.15-0.1-6.24-0.3c-2.09-0.2-4.12-0.5-6.08-0.89c-1.94-0.39-3.88-0.88-5.82-1.48c-1.89-0.58-3.76-1.27-5.61-2.05l-0.2-0.08l0,0 c-1.85-0.8-3.65-1.67-5.38-2.61c-1.71-0.93-3.4-1.95-5.07-3.07c-1.63-1.09-3.21-2.27-4.72-3.51c-1.52-1.25-2.97-2.57-4.35-3.95 c-1.38-1.38-2.7-2.83-3.95-4.34c-1.25-1.52-2.42-3.1-3.52-4.73c-1.09-1.63-2.11-3.32-3.06-5.06c-0.97-1.78-1.84-3.58-2.62-5.4 c-0.02-0.05-0.04-0.1-0.06-0.15c-0.78-1.83-1.46-3.7-2.05-5.6c-0.61-1.96-1.11-3.93-1.5-5.89c-0.39-1.96-0.69-3.99-0.89-6.08 C0.1,65.59,0,63.51,0,61.44c0-2.07,0.1-4.15,0.31-6.24c0.2-2.09,0.5-4.12,0.89-6.08c0.39-1.94,0.88-3.88,1.48-5.82 c0.58-1.88,1.26-3.74,2.04-5.59l0.09-0.23l0,0c0.8-1.85,1.67-3.65,2.61-5.38c0.93-1.71,1.95-3.4,3.07-5.07 c1.1-1.63,2.27-3.21,3.52-4.73c1.25-1.52,2.56-2.96,3.95-4.34c1.38-1.38,2.83-2.7,4.34-3.95c1.52-1.25,3.09-2.42,4.73-3.52 c1.67-1.12,3.36-2.14,5.07-3.07l0.13-0.06c1.73-0.94,3.48-1.78,5.26-2.55c0.05-0.02,0.1-0.04,0.15-0.06 c1.83-0.78,3.7-1.46,5.6-2.05C45.19,2.09,47.15,1.59,49.12,1.2L49.12,1.2z"/></g></svg>

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

@@ -1,9 +1,9 @@
{ {
inputHash: '92a5720049ca36c38c695969534c2bb5', inputHash: 'd25e6795ca6071843960c2c5271bb94e',
outputs: [ outputs: [
{ {
outputFilePath: 'images/icons/info.png', outputFilePath: 'images/icons/info.png',
outputHash: '4362586ae18f53144b5921d318634d31', outputHash: '30a6659ef33d02857fb80d07683d25cb',
width: 48, width: 48,
height: 48, height: 48,
}, },
Binary file not shown.

Before

Width:  |  Height:  |  Size: 369 B

After

Width:  |  Height:  |  Size: 451 B

+1 -31
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools --> <!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg fill="#FFFFFF" height="800px" width="800px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" <svg fill="#DBDBDB" height="800px" width="800px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 27.442 27.442" xml:space="preserve"> viewBox="0 0 27.442 27.442" xml:space="preserve">
<g> <g>
<path d="M19.494,0H7.948C6.843,0,5.951,0.896,5.951,1.999v23.446c0,1.102,0.892,1.997,1.997,1.997h11.546 <path d="M19.494,0H7.948C6.843,0,5.951,0.896,5.951,1.999v23.446c0,1.102,0.892,1.997,1.997,1.997h11.546
@@ -8,35 +8,5 @@
s-0.117,0.482-0.261,0.482h-5.7c-0.145,0-0.26-0.216-0.26-0.482C10.612,1.429,10.727,1.214,10.872,1.214z M13.722,25.469 s-0.117,0.482-0.261,0.482h-5.7c-0.145,0-0.26-0.216-0.26-0.482C10.612,1.429,10.727,1.214,10.872,1.214z M13.722,25.469
c-0.703,0-1.275-0.572-1.275-1.276s0.572-1.274,1.275-1.274c0.701,0,1.273,0.57,1.273,1.274S14.423,25.469,13.722,25.469z c-0.703,0-1.275-0.572-1.275-1.276s0.572-1.274,1.275-1.274c0.701,0,1.273,0.57,1.273,1.274S14.423,25.469,13.722,25.469z
M19.995,21.1H7.448V3.373h12.547V21.1z"/> M19.995,21.1H7.448V3.373h12.547V21.1z"/>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
</g> </g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1021 B

After

Width:  |  Height:  |  Size: 854 B

@@ -1,9 +1,9 @@
{ {
inputHash: 'e6318f56ce4c0cc637cf0cc3180a2013', inputHash: 'f684b19a8b10a485f4d878e052805c74',
outputs: [ outputs: [
{ {
outputFilePath: 'images/icons/phone.png', outputFilePath: 'images/icons/phone.png',
outputHash: '0492b3133fc6475224bae712e1129471', outputHash: 'd51aaf82ba70b964f40dd364a72f4240',
width: 48, width: 48,
height: 48, height: 48,
}, },
Binary file not shown.

Before

Width:  |  Height:  |  Size: 730 B

After

Width:  |  Height:  |  Size: 1.0 KiB

+1 -1
View File
@@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<!--! Font Awesome Pro 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --> <!--! Font Awesome Pro 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. -->
<path fill="#FFFFFF" d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352c79.5 0 144-64.5 144-144s-64.5-144-144-144S64 128.5 64 208s64.5 144 144 144z" /> <path fill="#DBDBDB" d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352c79.5 0 144-64.5 144-144s-64.5-144-144-144S64 128.5 64 208s64.5 144 144 144z" />
</svg> </svg>

Before

Width:  |  Height:  |  Size: 542 B

After

Width:  |  Height:  |  Size: 542 B

@@ -1,9 +1,9 @@
{ {
inputHash: 'dede98d4bf3c835836c82c485600108c', inputHash: '050f0c067e484901f96312da575a2cd6',
outputs: [ outputs: [
{ {
outputFilePath: 'images/icons/search.png', outputFilePath: 'images/icons/search.png',
outputHash: 'da7de20ee8700756ff8ab6c806682853', outputHash: '20246ba2da61c2a47af4e49a45845fd2',
width: 48, width: 48,
height: 48, height: 48,
}, },
Binary file not shown.

Before

Width:  |  Height:  |  Size: 687 B

After

Width:  |  Height:  |  Size: 934 B

+1 -1
View File
@@ -35,7 +35,7 @@
inkscape:window-maximized="1" inkscape:window-maximized="1"
inkscape:current-layer="svg6" /> inkscape:current-layer="svg6" />
<path <path
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.109841;stroke-linejoin:round;stroke-opacity:1" style="fill:#DBDBDB;fill-opacity:1;stroke:none;stroke-width:0.109841;stroke-linejoin:round;stroke-opacity:1"
d="m 15.714836,21.162285 c -0.04775,-0.04749 -0.527468,-0.542802 -1.065938,-1.100714 l -0.979041,-1.014393 -0.401626,0.07171 c -0.798456,0.142554 -1.580726,0.147794 -2.503447,0.01686 -0.364348,-0.05169 -0.444733,-0.05071 -0.504209,0.0063 -0.03895,0.03725 -0.5144649,0.526951 -1.0567701,1.088029 C 8.4680071,20.991356 8.203688,21.246191 8.162186,21.234332 8.081135,21.211112 5.9341972,19.95012 5.9128502,19.913146 c -0.00993,-0.0172 0.016734,-0.142872 0.059234,-0.279317 0.042496,-0.136422 0.2299991,-0.793515 0.4166734,-1.46018 L 6.7281551,16.961524 6.4320785,16.592865 C 5.862289,15.883396 5.5132974,15.266256 5.1993639,14.412999 L 5.0846579,14.101224 3.5992283,13.719846 C 2.7822408,13.510091 2.1094745,13.329756 2.1041891,13.319102 2.0919131,13.294362 2.0925311,10.757317 2.104804,10.708556 2.109834,10.688526 2.7786769,10.50587 3.5910878,10.302655 L 5.0682014,9.9331788 5.2345008,9.49992 C 5.5668964,8.6339312 5.8969037,8.0666765 6.4513094,7.4083326 L 6.7557649,7.046799 6.324366,5.5632096 5.892967,4.0796189 7.0480999,3.4126974 l 1.1551364,-0.666923 1.03413,1.0724325 c 0.5687708,0.5898369 1.0572367,1.0875367 1.0854787,1.1059973 0.02829,0.018417 0.21134,0.00474 0.406889,-0.030492 0.790829,-0.1424909 1.589383,-0.157455 2.38967,-0.044773 0.239703,0.033751 0.467774,0.062471 0.506828,0.063827 0.05368,0.0019 0.310948,-0.2443599 1.058958,-1.0138065 0.543376,-0.5589475 1.017625,-1.0497633 1.053889,-1.0907012 0.06474,-0.073076 0.08731,-0.062128 1.218007,0.5894222 l 1.152073,0.6638555 -0.414336,1.4812102 -0.414341,1.4812129 0.332573,0.4139806 c 0.457518,0.5695045 0.878631,1.3000551 1.134089,1.9672118 l 0.184326,0.4815741 1.492081,0.3814192 1.492073,0.381423 -0.0011,1.331172 c -9.6e-4,1.018585 -0.01526,1.334289 -0.06085,1.344453 -0.03215,0.0084 -0.699811,0.174229 -1.482307,0.370848 l -1.422738,0.357586 -0.184484,0.459619 c -0.347827,0.866592 -0.697041,1.456493 -1.234554,2.085471 -0.128966,0.150781 -0.241407,0.300395 -0.249955,0.332304 -0.0086,0.03194 0.176103,0.715813 0.410391,1.519776 l 0.425965,1.461751 -1.157043,0.667928 -1.157041,0.66793 z M 14.817887,15.430457 C 16.1088,14.392165 16.715634,12.590505 16.315859,10.983087 16.194833,10.496685 16.090431,10.239913 15.829488,9.7876861 15.227049,8.7438292 14.328202,8.05216 13.161621,7.7349075 12.310631,7.5034832 11.465346,7.5225017 10.621102,7.7920677 10.222996,7.9191817 9.5504789,8.2883743 9.212051,8.5655933 8.6840063,8.9981312 8.1829691,9.6573062 7.9340178,10.246988 c -0.1411802,0.334411 -0.2932223,0.906302 -0.337672,1.270119 -0.075243,0.615864 0.032489,1.443823 0.2696245,2.072115 0.1544825,0.409292 0.5523051,1.06528 0.8335102,1.374421 0.9394316,1.03272 2.2157115,1.545738 3.6158285,1.453426 0.931821,-0.06141 1.75658,-0.386598 2.502582,-0.986616 z" d="m 15.714836,21.162285 c -0.04775,-0.04749 -0.527468,-0.542802 -1.065938,-1.100714 l -0.979041,-1.014393 -0.401626,0.07171 c -0.798456,0.142554 -1.580726,0.147794 -2.503447,0.01686 -0.364348,-0.05169 -0.444733,-0.05071 -0.504209,0.0063 -0.03895,0.03725 -0.5144649,0.526951 -1.0567701,1.088029 C 8.4680071,20.991356 8.203688,21.246191 8.162186,21.234332 8.081135,21.211112 5.9341972,19.95012 5.9128502,19.913146 c -0.00993,-0.0172 0.016734,-0.142872 0.059234,-0.279317 0.042496,-0.136422 0.2299991,-0.793515 0.4166734,-1.46018 L 6.7281551,16.961524 6.4320785,16.592865 C 5.862289,15.883396 5.5132974,15.266256 5.1993639,14.412999 L 5.0846579,14.101224 3.5992283,13.719846 C 2.7822408,13.510091 2.1094745,13.329756 2.1041891,13.319102 2.0919131,13.294362 2.0925311,10.757317 2.104804,10.708556 2.109834,10.688526 2.7786769,10.50587 3.5910878,10.302655 L 5.0682014,9.9331788 5.2345008,9.49992 C 5.5668964,8.6339312 5.8969037,8.0666765 6.4513094,7.4083326 L 6.7557649,7.046799 6.324366,5.5632096 5.892967,4.0796189 7.0480999,3.4126974 l 1.1551364,-0.666923 1.03413,1.0724325 c 0.5687708,0.5898369 1.0572367,1.0875367 1.0854787,1.1059973 0.02829,0.018417 0.21134,0.00474 0.406889,-0.030492 0.790829,-0.1424909 1.589383,-0.157455 2.38967,-0.044773 0.239703,0.033751 0.467774,0.062471 0.506828,0.063827 0.05368,0.0019 0.310948,-0.2443599 1.058958,-1.0138065 0.543376,-0.5589475 1.017625,-1.0497633 1.053889,-1.0907012 0.06474,-0.073076 0.08731,-0.062128 1.218007,0.5894222 l 1.152073,0.6638555 -0.414336,1.4812102 -0.414341,1.4812129 0.332573,0.4139806 c 0.457518,0.5695045 0.878631,1.3000551 1.134089,1.9672118 l 0.184326,0.4815741 1.492081,0.3814192 1.492073,0.381423 -0.0011,1.331172 c -9.6e-4,1.018585 -0.01526,1.334289 -0.06085,1.344453 -0.03215,0.0084 -0.699811,0.174229 -1.482307,0.370848 l -1.422738,0.357586 -0.184484,0.459619 c -0.347827,0.866592 -0.697041,1.456493 -1.234554,2.085471 -0.128966,0.150781 -0.241407,0.300395 -0.249955,0.332304 -0.0086,0.03194 0.176103,0.715813 0.410391,1.519776 l 0.425965,1.461751 -1.157043,0.667928 -1.157041,0.66793 z M 14.817887,15.430457 C 16.1088,14.392165 16.715634,12.590505 16.315859,10.983087 16.194833,10.496685 16.090431,10.239913 15.829488,9.7876861 15.227049,8.7438292 14.328202,8.05216 13.161621,7.7349075 12.310631,7.5034832 11.465346,7.5225017 10.621102,7.7920677 10.222996,7.9191817 9.5504789,8.2883743 9.212051,8.5655933 8.6840063,8.9981312 8.1829691,9.6573062 7.9340178,10.246988 c -0.1411802,0.334411 -0.2932223,0.906302 -0.337672,1.270119 -0.075243,0.615864 0.032489,1.443823 0.2696245,2.072115 0.1544825,0.409292 0.5523051,1.06528 0.8335102,1.374421 0.9394316,1.03272 2.2157115,1.545738 3.6158285,1.453426 0.931821,-0.06141 1.75658,-0.386598 2.502582,-0.986616 z"
id="path1194" /> id="path1194" />
</svg> </svg>

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

@@ -1,9 +1,9 @@
{ {
inputHash: '4a523fd829e2c489df85d5db106889a2', inputHash: 'ca987d3d31f4ec1d3cf9f4e9622a546f',
outputs: [ outputs: [
{ {
outputFilePath: 'images/icons/settings.png', outputFilePath: 'images/icons/settings.png',
outputHash: '07b98411ee36a3ccf3004e727d53d4f8', outputHash: 'ed76df0b00cf8d419f413859170c6120',
width: 48, width: 48,
height: 48, height: 48,
}, },
Binary file not shown.

Before

Width:  |  Height:  |  Size: 499 B

After

Width:  |  Height:  |  Size: 694 B

+1 -1
View File
@@ -1,5 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" viewBox="0 0 24 24" id="star"> <svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" viewBox="0 0 24 24" id="star">
<path fill="#FFFFFF" d="M22,10.1c0.1-0.5-0.3-1.1-0.8-1.1l-5.7-0.8L12.9,3c-0.1-0.2-0.2-0.3-0.4-0.4C12,2.3,11.4,2.5,11.1,3L8.6,8.2L2.9,9 <path fill="#DBDBDB" d="M22,10.1c0.1-0.5-0.3-1.1-0.8-1.1l-5.7-0.8L12.9,3c-0.1-0.2-0.2-0.3-0.4-0.4C12,2.3,11.4,2.5,11.1,3L8.6,8.2L2.9,9
C2.6,9,2.4,9.1,2.3,9.3c-0.4,0.4-0.4,1,0,1.4l4.1,4l-1,5.7c0,0.2,0,0.4,0.1,0.6c0.3,0.5,0.9,0.7,1.4,0.4l5.1-2.7l5.1,2.7 C2.6,9,2.4,9.1,2.3,9.3c-0.4,0.4-0.4,1,0,1.4l4.1,4l-1,5.7c0,0.2,0,0.4,0.1,0.6c0.3,0.5,0.9,0.7,1.4,0.4l5.1-2.7l5.1,2.7
c0.1,0.1,0.3,0.1,0.5,0.1l0,0c0.1,0,0.1,0,0.2,0c0.5-0.1,0.9-0.6,0.8-1.2l-1-5.7l4.1-4C21.9,10.5,22,10.3,22,10.1z"></path> c0.1,0.1,0.3,0.1,0.5,0.1l0,0c0.1,0,0.1,0,0.2,0c0.5-0.1,0.9-0.6,0.8-1.2l-1-5.7l4.1-4C21.9,10.5,22,10.3,22,10.1z"></path>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 486 B

After

Width:  |  Height:  |  Size: 486 B

@@ -1,9 +1,9 @@
{ {
inputHash: '74103c34870ccaeae6d5b3282fabdc98', inputHash: 'c2960b9197693b44f1e2816d31c15021',
outputs: [ outputs: [
{ {
outputFilePath: 'images/icons/star.png', outputFilePath: 'images/icons/star.png',
outputHash: '18773e4f645b0b92e8eb91524b3ac278', outputHash: '4e34693fe0b241c10d281f1189820209',
width: 48, width: 48,
height: 48, height: 48,
}, },
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

@@ -17,9 +17,9 @@ namespace QrCode
function QRErrorCorrectionLevel() as object function QRErrorCorrectionLevel() as object
return { return {
L: 1, L: 1
M: 0, M: 0
Q: 3, Q: 3
H: 2 H: 2
} }
end function end function
@@ -6,50 +6,50 @@ namespace QrCode
m.mode = QrCode.QRMode.AlphaNumeric m.mode = QrCode.QRMode.AlphaNumeric
m.CHAR_TABLE = { m.CHAR_TABLE = {
"0": 0, "0": 0
"1": 1, "1": 1
"2": 2, "2": 2
"3": 3, "3": 3
"4": 4, "4": 4
"5": 5, "5": 5
"6": 6, "6": 6
"7": 7, "7": 7
"8": 8, "8": 8
"9": 9, "9": 9
"A": 10, "A": 10
"B": 11, "B": 11
"C": 12, "C": 12
"D": 13, "D": 13
"E": 14, "E": 14
"F": 15, "F": 15
"G": 16, "G": 16
"H": 17, "H": 17
"I": 18, "I": 18
"J": 19, "J": 19
"K": 20, "K": 20
"L": 21, "L": 21
"M": 22, "M": 22
"N": 23, "N": 23
"O": 24, "O": 24
"P": 25, "P": 25
"Q": 26, "Q": 26
"R": 27, "R": 27
"S": 28, "S": 28
"T": 29, "T": 29
"U": 30, "U": 30
"V": 31, "V": 31
"W": 32, "W": 32
"X": 33, "X": 33
"Y": 34, "Y": 34
"Z": 35, "Z": 35
" ": 36, " ": 36
"$": 37, "$": 37
"%": 38, "%": 38
"*": 39, "*": 39
"+": 40, "+": 40
"-": 41, "-": 41
".": 42, ".": 42
"/": 43, "/": 43
":": 44 ":": 44
} }
end function end function
@@ -6,15 +6,15 @@ namespace QrCode
m.mode = QrCode.QRMode.Numeric m.mode = QrCode.QRMode.Numeric
m.CHAR_TABLE = { m.CHAR_TABLE = {
"0": 0, "0": 0
"1": 1, "1": 1
"2": 2, "2": 2
"3": 3, "3": 3
"4": 4, "4": 4
"5": 5, "5": 5
"6": 6, "6": 6
"7": 7, "7": 7
"8": 8, "8": 8
"9": 9 "9": 9
} }
end function end function
+4 -4
View File
@@ -4,9 +4,9 @@ namespace QrCode
function new() function new()
m.ERROR_CORRECTION_LEVEL_OFFSETS = { m.ERROR_CORRECTION_LEVEL_OFFSETS = {
L: 0, L: 0
M: 1, M: 1
Q: 2, Q: 2
H: 3 H: 3
} }
@@ -284,7 +284,7 @@ namespace QrCode
dataCount = rsBlock[index + 2] dataCount = rsBlock[index + 2]
for j = 0 to count - 1 step 1 for j = 0 to count - 1 step 1
result.push({ result.push({
totalCount: totalCount, totalCount: totalCount
dataCount: dataCount dataCount: dataCount
}) })
end for end for
+2 -2
View File
@@ -54,8 +54,8 @@ namespace QrCode
black = &H000000ff black = &H000000ff
bitmap = createObject("roBitmap", { bitmap = createObject("roBitmap", {
width: qrSize, width: qrSize
height: qrSize, height: qrSize
AlphaEnable: false AlphaEnable: false
}) })
bitmap.clear(white) bitmap.clear(white)
@@ -32,10 +32,10 @@ class ApplicationInfo
function GetAppInfo() as object function GetAppInfo() as object
if m.appInfo = invalid if m.appInfo = invalid
m.appInfo = { m.appInfo = {
id: m.roAppInfo.GetID(), id: m.roAppInfo.GetID()
app_version: m.roAppInfo.GetVersion(), app_version: m.roAppInfo.GetVersion()
app_git_commit_hash: m.roAppInfo.GetValue("git_commit_sha"), app_git_commit_hash: m.roAppInfo.GetValue("git_commit_sha")
lib_version: m.GetLibVersion(), lib_version: m.GetLibVersion()
lib_git_commit_hash: m.GetLibGitCommitHash() lib_git_commit_hash: m.GetLibGitCommitHash()
} }
@@ -64,20 +64,20 @@ class ApplicationInfo
function GetDeviceInfo() as object function GetDeviceInfo() as object
if m.deviceInfo = invalid if m.deviceInfo = invalid
m.deviceInfo = { m.deviceInfo = {
model: m.roDeviceInfo.GetModel(), model: m.roDeviceInfo.GetModel()
model_display_name: m.roDeviceInfo.GetModelDisplayName(), model_display_name: m.roDeviceInfo.GetModelDisplayName()
model_type: m.roDeviceInfo.GetModelType(), model_type: m.roDeviceInfo.GetModelType()
model_details: m.roDeviceInfo.GetModelDetails(), model_details: m.roDeviceInfo.GetModelDetails()
os_version: m.roDeviceInfo.GetOSVersion(), os_version: m.roDeviceInfo.GetOSVersion()
display_type: m.roDeviceInfo.GetDisplayType(), display_type: m.roDeviceInfo.GetDisplayType()
display_mode: m.roDeviceInfo.GetDisplayMode(), display_mode: m.roDeviceInfo.GetDisplayMode()
display_aspect_ratio: m.roDeviceInfo.GetDisplayAspectRatio(), display_aspect_ratio: m.roDeviceInfo.GetDisplayAspectRatio()
display_size: m.roDeviceInfo.GetDisplaySize(), display_size: m.roDeviceInfo.GetDisplaySize()
video_mode: m.roDeviceInfo.GetVideoMode(), video_mode: m.roDeviceInfo.GetVideoMode()
ui_resolution: m.roDeviceInfo.GetUIResolution(), ui_resolution: m.roDeviceInfo.GetUIResolution()
graphics_platform: m.roDeviceInfo.GetGraphicsPlatform(), graphics_platform: m.roDeviceInfo.GetGraphicsPlatform()
internet_status: m.roDeviceInfo.GetInternetStatus(), internet_status: m.roDeviceInfo.GetInternetStatus()
user_country_code: m.roDeviceInfo.GetUserCountryCode(), user_country_code: m.roDeviceInfo.GetUserCountryCode()
friendly_name: m.roDeviceInfo.GetFriendlyName() friendly_name: m.roDeviceInfo.GetFriendlyName()
} }
end if end if
@@ -90,7 +90,7 @@ namespace HttpClient
end if end if
m._queryParams[key] = { m._queryParams[key] = {
value: valueArray, value: valueArray
arrayType: arrayType arrayType: arrayType
} }
@@ -624,8 +624,8 @@ namespace HttpClientCache
end if end if
return { return {
statusCode: metadata.statusCode, statusCode: metadata.statusCode
headers: headers, headers: headers
body: body body: body
} }
end function end function
@@ -672,9 +672,9 @@ namespace HttpClientCache
body = ValidString(response.Text()) body = ValidString(response.Text())
cacheMetadata = { cacheMetadata = {
timestamp: timestamp, timestamp: timestamp
statusCode: response.StatusCode(), statusCode: response.StatusCode()
headers: jsonHeaders.Len(), headers: jsonHeaders.Len()
body: body.Len() body: body.Len()
} }
+2 -2
View File
@@ -18,8 +18,8 @@ class XmlObject
function Node(name as string, attributes = invalid as object) as boolean function Node(name as string, attributes = invalid as object) as boolean
newNode = { newNode = {
name: name, name: name
attributes: attributes, attributes: attributes
children: [] children: []
} }
@@ -5,7 +5,7 @@ function DisposableObserveField(node as object, field as string, callback as str
m._disposableObserveFields = [] m._disposableObserveFields = []
end if end if
m._disposableObserveFields.push({ m._disposableObserveFields.push({
node: node, node: node
field: field field: field
}) })
end function end function
@@ -17,7 +17,7 @@ function DisposableObserveFieldScoped(node as object, field as string, callback
m._disposableObserveFieldsScoped = [] m._disposableObserveFieldsScoped = []
end if end if
m._disposableObserveFieldsScoped.push({ m._disposableObserveFieldsScoped.push({
node: node, node: node
field: field field: field
}) })
end function end function
+1 -1
View File
@@ -133,7 +133,7 @@ playletConfig.categoryList.forEach(categoryId => {
category.title = englishLocale[`category_${categoryId}`].message category.title = englishLocale[`category_${categoryId}`].message
category.short_title = englishLocale[`category_${categoryId}_short`]?.message ?? category.title; category.short_title = englishLocale[`category_${categoryId}_short`]?.message ?? category.title;
category.categorySupport = configExample.categorySupport[categoryId]; category.categorySupport = configExample.categorySupport[categoryId];
category.color = getColor(barTypes[categoryId]); category.color = getColor(barTypes[categoryId]).toUpperCase();
playletConfig.categories[categoryId] = category; playletConfig.categories[categoryId] = category;
}); });