diff --git a/config/bsfmt.jsonc b/config/bsfmt.jsonc index 689c204f..6fc1240b 100644 --- a/config/bsfmt.jsonc +++ b/config/bsfmt.jsonc @@ -17,5 +17,7 @@ // Enforces all keywords and types to be lowercase. "keywordCase": "lower", // Remove trailing whitespace at the end of each line. - "removeTrailingWhiteSpace": true + "removeTrailingWhiteSpace": true, + // Sort imports alphabetically. + "sortImports": true } \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index c59df2c7..bef6a7df 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,19 +9,19 @@ "version": "0.12.1", "hasInstallScript": true, "devDependencies": { - "@rokucommunity/bslint": "^0.8.9", - "@types/fs-extra": "^11.0.1", - "@types/node": "^20.5.9", + "@rokucommunity/bslint": "^0.8.10", + "@types/fs-extra": "^11.0.2", + "@types/node": "^20.7.2", "@types/xml2js": "^0.4.12", "argparse": "^2.0.1", - "brighterscript": "^0.65.5", - "brighterscript-formatter": "^1.6.31", + "brighterscript": "^0.65.7", + "brighterscript-formatter": "^1.6.33", "convert-svg-to-png": "^0.6.4", "cross-fetch": "^4.0.0", "dotenv": "^16.3.1", "express": "^4.18.2", "fs-extra": "^11.1.1", - "glob": "^10.3.4", + "glob": "^10.3.10", "ip": "^1.1.8", "json5": "^2.2.3", "roku-deploy": "^3.10.3", @@ -272,9 +272,9 @@ "dev": true }, "node_modules/@rokucommunity/bslint": { - "version": "0.8.9", - "resolved": "https://registry.npmjs.org/@rokucommunity/bslint/-/bslint-0.8.9.tgz", - "integrity": "sha512-7rXHcGL8XVguqzjKtsUoRvnm/g6ySJwV+xGO9n8Mc1r1zNIvjMi9Spfz1Kh8zJTXwfxOkG1X68lMAtp9bk/gxA==", + "version": "0.8.10", + "resolved": "https://registry.npmjs.org/@rokucommunity/bslint/-/bslint-0.8.10.tgz", + "integrity": "sha512-2aaWPtt5xACm7sIaKR5ctF7f3HrjKGfTVSAT6ZGdojDsXPQanHK2+XyYX20fQVdjJFVn414UCfVkUiaO0PTtog==", "dev": true, "dependencies": { "fs-extra": "^10.0.0", @@ -328,9 +328,9 @@ "dev": true }, "node_modules/@types/fs-extra": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-11.0.1.tgz", - "integrity": "sha512-MxObHvNl4A69ofaTRU8DFqvgzzv8s9yRtaPPm5gud9HDNvpB3GPQFvNuTWAI59B9huVGV5jXYJwbCsmBsOGYWA==", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-11.0.2.tgz", + "integrity": "sha512-c0hrgAOVYr21EX8J0jBMXGLMgJqVf/v6yxi0dLaJboW9aQPh16Id+z6w2Tx1hm+piJOLv8xPfVKZCLfjPw/IMQ==", "dev": true, "dependencies": { "@types/jsonfile": "*", @@ -347,9 +347,9 @@ } }, "node_modules/@types/node": { - "version": "20.5.9", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.5.9.tgz", - "integrity": "sha512-PcGNd//40kHAS3sTlzKB9C9XL4K0sTup8nbG5lC14kzEteTNuAFh9u5nA0o5TWnSG2r/JNPRXFVcHJIIeRlmqQ==", + "version": "20.7.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.7.2.tgz", + "integrity": "sha512-RcdC3hOBOauLP+r/kRt27NrByYtDjsXyAuSbR87O6xpsvi763WI+5fbSIvYJrXnt9w4RuxhV6eAXfIs7aaf/FQ==", "dev": true }, "node_modules/@types/xml2js": { @@ -702,9 +702,9 @@ } }, "node_modules/brighterscript": { - "version": "0.65.5", - "resolved": "https://registry.npmjs.org/brighterscript/-/brighterscript-0.65.5.tgz", - "integrity": "sha512-xDkWIZhjTLhp6dVZ6lX7zWRyNvjdiAwZncJRnErSbqRhteNJFL7ic2UDJew9zCOYTQDrG7B85lpPpXc/1JlV+Q==", + "version": "0.65.7", + "resolved": "https://registry.npmjs.org/brighterscript/-/brighterscript-0.65.7.tgz", + "integrity": "sha512-cmV0JzlYuKIKkMsbHR2FyaD2YugHeHESdMmUOtK61EsEUS895Y6yXftDVnFUwij7beLiZR6s1oRpMfiS7MJ40g==", "dev": true, "dependencies": { "@rokucommunity/bslib": "^0.1.1", @@ -745,12 +745,12 @@ } }, "node_modules/brighterscript-formatter": { - "version": "1.6.31", - "resolved": "https://registry.npmjs.org/brighterscript-formatter/-/brighterscript-formatter-1.6.31.tgz", - "integrity": "sha512-XOc1LVAUXrWtCwAZeOUS/7gH5TbiEqZ0IwyAJcM7J5CxrFpMrw6NKg/Yox1oKaH1m11kcLR7KgckK5CTha0eYQ==", + "version": "1.6.33", + "resolved": "https://registry.npmjs.org/brighterscript-formatter/-/brighterscript-formatter-1.6.33.tgz", + "integrity": "sha512-XmirSAOBBHsprJvLOuh8nzXNiPQJXQa2NJ581OZdQrofFdBNPGH+yFhV6XXUZ+pA6fVLSxMxXA0toF83jtKjrA==", "dev": true, "dependencies": { - "brighterscript": "^0.65.4", + "brighterscript": "^0.65.7", "glob-all": "^3.3.0", "jsonc-parser": "^3.0.0", "source-map": "^0.7.3", @@ -2192,19 +2192,19 @@ } }, "node_modules/glob": { - "version": "10.3.4", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.4.tgz", - "integrity": "sha512-6LFElP3A+i/Q8XQKEvZjkEWEOTgAIALR9AO2rwT8bgPhDd1anmqDJDZ6lLddI4ehxxxR1S5RIqKe1uapMQfYaQ==", + "version": "10.3.10", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", + "integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==", "dev": true, "dependencies": { "foreground-child": "^3.1.0", - "jackspeak": "^2.0.3", + "jackspeak": "^2.3.5", "minimatch": "^9.0.1", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", "path-scurry": "^1.10.1" }, "bin": { - "glob": "dist/cjs/src/bin.js" + "glob": "dist/esm/bin.mjs" }, "engines": { "node": ">=16 || 14 >=14.17" @@ -2616,9 +2616,9 @@ "dev": true }, "node_modules/jackspeak": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.2.1.tgz", - "integrity": "sha512-MXbxovZ/Pm42f6cDIDkl3xpwv1AGwObKwfmjs2nQePiy85tP3fatofl3FC1aBsOtP/6fq5SbtgHwWcMsLP+bDw==", + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", + "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", "dev": true, "dependencies": { "@isaacs/cliui": "^8.0.2" diff --git a/package.json b/package.json index 179b8d21..de0247e8 100644 --- a/package.json +++ b/package.json @@ -3,19 +3,19 @@ "version": "0.12.1", "description": "Unofficial Youtube client for Roku", "devDependencies": { - "@rokucommunity/bslint": "^0.8.9", - "@types/fs-extra": "^11.0.1", - "@types/node": "^20.5.9", + "@rokucommunity/bslint": "^0.8.10", + "@types/fs-extra": "^11.0.2", + "@types/node": "^20.7.2", "@types/xml2js": "^0.4.12", "argparse": "^2.0.1", - "brighterscript": "^0.65.5", - "brighterscript-formatter": "^1.6.31", + "brighterscript": "^0.65.7", + "brighterscript-formatter": "^1.6.33", "convert-svg-to-png": "^0.6.4", "cross-fetch": "^4.0.0", "dotenv": "^16.3.1", "express": "^4.18.2", "fs-extra": "^11.1.1", - "glob": "^10.3.4", + "glob": "^10.3.10", "ip": "^1.1.8", "json5": "^2.2.3", "roku-deploy": "^3.10.3", diff --git a/playlet-lib/src/components/AppController/AppController.bs b/playlet-lib/src/components/AppController/AppController.bs index e02bebda..2b8fca5d 100644 --- a/playlet-lib/src/components/AppController/AppController.bs +++ b/playlet-lib/src/components/AppController/AppController.bs @@ -1,9 +1,9 @@ -import "pkg:/source/utils/Types.bs" -import "pkg:/source/utils/StringUtils.bs" -import "pkg:/source/utils/FocusManagement.bs" import "pkg:/components/Dialog/DialogUtils.bs" -import "pkg:/source/utils/Logging.bs" import "pkg:/components/VideoPlayer/VideoUtils.bs" +import "pkg:/source/utils/FocusManagement.bs" +import "pkg:/source/utils/Logging.bs" +import "pkg:/source/utils/StringUtils.bs" +import "pkg:/source/utils/Types.bs" function Init() m.screens = {} diff --git a/playlet-lib/src/components/ChannelView/ChannelView.bs b/playlet-lib/src/components/ChannelView/ChannelView.bs index 7fa03d4a..aac5176d 100644 --- a/playlet-lib/src/components/ChannelView/ChannelView.bs +++ b/playlet-lib/src/components/ChannelView/ChannelView.bs @@ -1,6 +1,6 @@ import "pkg:/source/utils/FocusManagement.bs" -import "pkg:/source/utils/Types.bs" import "pkg:/source/utils/StringUtils.bs" +import "pkg:/source/utils/Types.bs" function Init() m.container = m.top.findNode("container") diff --git a/playlet-lib/src/components/ContentNode/ChannelContentNode.bs b/playlet-lib/src/components/ContentNode/ChannelContentNode.bs index 5c965c6b..65c28978 100644 --- a/playlet-lib/src/components/ContentNode/ChannelContentNode.bs +++ b/playlet-lib/src/components/ContentNode/ChannelContentNode.bs @@ -1,7 +1,7 @@ -import "pkg:/source/asyncTask/asyncTask.bs" import "pkg:/components/ContentNode/ChannelContentTask.bs" -import "pkg:/source/utils/ErrorUtils.bs" import "pkg:/components/Dialog/DialogUtils.bs" +import "pkg:/source/asyncTask/asyncTask.bs" +import "pkg:/source/utils/ErrorUtils.bs" function Init() end function diff --git a/playlet-lib/src/components/Dialog/LoginDialog.bs b/playlet-lib/src/components/Dialog/LoginDialog.bs index 04317131..3805b586 100644 --- a/playlet-lib/src/components/Dialog/LoginDialog.bs +++ b/playlet-lib/src/components/Dialog/LoginDialog.bs @@ -1,7 +1,7 @@ -import "pkg:/source/utils/Types.bs" -import "pkg:/source/asyncTask/asyncTask.bs" import "pkg:/components/Screens/WebAppScreen/GenerateQrCodeTask.bs" +import "pkg:/source/asyncTask/asyncTask.bs" import "pkg:/source/utils/StringUtils.bs" +import "pkg:/source/utils/Types.bs" function Init() m.urlLabel = m.top.findNode("urlLabel") diff --git a/playlet-lib/src/components/EcpArgs.bs b/playlet-lib/src/components/EcpArgs.bs index c4933b16..57208e49 100644 --- a/playlet-lib/src/components/EcpArgs.bs +++ b/playlet-lib/src/components/EcpArgs.bs @@ -1,5 +1,5 @@ -import "pkg:/source/utils/StringUtils.bs" import "pkg:/components/VideoPlayer/VideoUtils.bs" +import "pkg:/source/utils/StringUtils.bs" import "pkg:/source/utils/Types.bs" function InitEcpArgs() diff --git a/playlet-lib/src/components/MainScene.bs b/playlet-lib/src/components/MainScene.bs index fbaa4ded..c854608d 100644 --- a/playlet-lib/src/components/MainScene.bs +++ b/playlet-lib/src/components/MainScene.bs @@ -1,7 +1,7 @@ +import "pkg:/components/EcpArgs.bs" import "pkg:/components/parts/AutoBind/AutoBind.part.bs" import "pkg:/source/utils/LoadingScreen.bs" import "pkg:/source/utils/Logging.bs" -import "pkg:/components/EcpArgs.bs" function Init() InitializeLogger() diff --git a/playlet-lib/src/components/MainScene.transpiled.brs b/playlet-lib/src/components/MainScene.transpiled.brs index 6a3e001a..fa932e3a 100644 --- a/playlet-lib/src/components/MainScene.transpiled.brs +++ b/playlet-lib/src/components/MainScene.transpiled.brs @@ -1,7 +1,7 @@ +'import "pkg:/components/EcpArgs.bs" 'import "pkg:/components/parts/AutoBind/AutoBind.part.bs" 'import "pkg:/source/utils/LoadingScreen.bs" 'import "pkg:/source/utils/Logging.bs" -'import "pkg:/components/EcpArgs.bs" function Init() InitializeBindings() ' auto-generated! diff --git a/playlet-lib/src/components/PlayQueue/PlayQueue.bs b/playlet-lib/src/components/PlayQueue/PlayQueue.bs index 19cdc88a..f28694a0 100644 --- a/playlet-lib/src/components/PlayQueue/PlayQueue.bs +++ b/playlet-lib/src/components/PlayQueue/PlayQueue.bs @@ -1,12 +1,12 @@ -import "pkg:/source/utils/Types.bs" +import "pkg:/components/Dialog/DialogUtils.bs" +import "pkg:/components/PlaylistView/PlaylistContentTask.bs" +import "pkg:/components/VideoFeed/FeedLoadState.bs" import "pkg:/components/VideoPlayer/VideoUtils.bs" import "pkg:/source/asyncTask/asyncTask.bs" -import "pkg:/components/VideoFeed/FeedLoadState.bs" -import "pkg:/components/PlaylistView/PlaylistContentTask.bs" -import "pkg:/source/utils/Logging.bs" -import "pkg:/source/utils/ErrorUtils.bs" -import "pkg:/components/Dialog/DialogUtils.bs" import "pkg:/source/utils/ArrayUtils.bs" +import "pkg:/source/utils/ErrorUtils.bs" +import "pkg:/source/utils/Logging.bs" +import "pkg:/source/utils/Types.bs" function Init() m.pendingLoadTasks = {} diff --git a/playlet-lib/src/components/PlaylistView/PlaylistView.bs b/playlet-lib/src/components/PlaylistView/PlaylistView.bs index 4f3c2403..0f7d5930 100644 --- a/playlet-lib/src/components/PlaylistView/PlaylistView.bs +++ b/playlet-lib/src/components/PlaylistView/PlaylistView.bs @@ -1,13 +1,13 @@ -import "pkg:/source/utils/FocusManagement.bs" -import "pkg:/source/utils/Types.bs" -import "pkg:/source/utils/StringUtils.bs" -import "pkg:/components/VideoPlayer/VideoUtils.bs" -import "pkg:/source/utils/Logging.bs" -import "pkg:/source/asyncTask/asyncTask.bs" +import "pkg:/components/Dialog/DialogUtils.bs" import "pkg:/components/PlaylistView/PlaylistContentTask.bs" import "pkg:/components/VideoFeed/FeedLoadState.bs" +import "pkg:/components/VideoPlayer/VideoUtils.bs" +import "pkg:/source/asyncTask/asyncTask.bs" import "pkg:/source/utils/ErrorUtils.bs" -import "pkg:/components/Dialog/DialogUtils.bs" +import "pkg:/source/utils/FocusManagement.bs" +import "pkg:/source/utils/Logging.bs" +import "pkg:/source/utils/StringUtils.bs" +import "pkg:/source/utils/Types.bs" function Init() m.background = m.top.findNode("background") diff --git a/playlet-lib/src/components/PlaylistView/PlaylistViewCell.bs b/playlet-lib/src/components/PlaylistView/PlaylistViewCell.bs index 433b57b8..7627e58b 100644 --- a/playlet-lib/src/components/PlaylistView/PlaylistViewCell.bs +++ b/playlet-lib/src/components/PlaylistView/PlaylistViewCell.bs @@ -1,5 +1,5 @@ -import "pkg:/source/utils/Types.bs" import "pkg:/source/utils/TimeUtils.bs" +import "pkg:/source/utils/Types.bs" function Init() m.titleLabel = m.top.findNode("titleLabel") diff --git a/playlet-lib/src/components/Screens/HomeScreen/HomeScreen.bs b/playlet-lib/src/components/Screens/HomeScreen/HomeScreen.bs index 2ea87fbe..a8df34e2 100644 --- a/playlet-lib/src/components/Screens/HomeScreen/HomeScreen.bs +++ b/playlet-lib/src/components/Screens/HomeScreen/HomeScreen.bs @@ -1,5 +1,5 @@ -import "pkg:/source/utils/FocusManagement.bs" import "pkg:/components/Navigation/Navigation.bs" +import "pkg:/source/utils/FocusManagement.bs" function Init() m.rowList = m.top.FindNode("rowList") diff --git a/playlet-lib/src/components/Screens/SearchScreen/SearchFilters/SearchFilters.bs b/playlet-lib/src/components/Screens/SearchScreen/SearchFilters/SearchFilters.bs index f5b8d797..9487b457 100644 --- a/playlet-lib/src/components/Screens/SearchScreen/SearchFilters/SearchFilters.bs +++ b/playlet-lib/src/components/Screens/SearchScreen/SearchFilters/SearchFilters.bs @@ -1,6 +1,6 @@ import "pkg:/components/Navigation/Navigation.bs" -import "pkg:/source/utils/Types.bs" import "pkg:/source/utils/ArrayUtils.bs" +import "pkg:/source/utils/Types.bs" function Init() options = { diff --git a/playlet-lib/src/components/Screens/SearchScreen/SearchScreen.bs b/playlet-lib/src/components/Screens/SearchScreen/SearchScreen.bs index 07a7c565..7e14eddb 100644 --- a/playlet-lib/src/components/Screens/SearchScreen/SearchScreen.bs +++ b/playlet-lib/src/components/Screens/SearchScreen/SearchScreen.bs @@ -2,10 +2,10 @@ import "pkg:/components/Navigation/Navigation.bs" import "pkg:/components/Screens/SearchScreen/SearchSuggestionsTask.bs" import "pkg:/source/asyncTask/asyncTask.bs" import "pkg:/source/services/SearchHistory.bs" -import "pkg:/source/utils/LoadingScreen.bs" -import "pkg:/source/utils/FocusManagement.bs" -import "pkg:/source/utils/Logging.bs" import "pkg:/source/utils/ErrorUtils.bs" +import "pkg:/source/utils/FocusManagement.bs" +import "pkg:/source/utils/LoadingScreen.bs" +import "pkg:/source/utils/Logging.bs" function Init() m.container = m.top.FindNode("container") diff --git a/playlet-lib/src/components/Screens/SearchScreen/SearchSuggestionsTask.bs b/playlet-lib/src/components/Screens/SearchScreen/SearchSuggestionsTask.bs index 06c4522b..0d18aac0 100644 --- a/playlet-lib/src/components/Screens/SearchScreen/SearchSuggestionsTask.bs +++ b/playlet-lib/src/components/Screens/SearchScreen/SearchSuggestionsTask.bs @@ -1,5 +1,5 @@ -import "pkg:/source/services/SearchHistory.bs" import "pkg:/components/Services/Invidious/InvidiousService.bs" +import "pkg:/source/services/SearchHistory.bs" @asynctask function SearchSuggestionsTask(input as object) as object diff --git a/playlet-lib/src/components/Screens/SettingsScreen/ClearSearchHistoryControl.bs b/playlet-lib/src/components/Screens/SettingsScreen/ClearSearchHistoryControl.bs index a4b60f3f..7454e2fc 100644 --- a/playlet-lib/src/components/Screens/SettingsScreen/ClearSearchHistoryControl.bs +++ b/playlet-lib/src/components/Screens/SettingsScreen/ClearSearchHistoryControl.bs @@ -1,6 +1,6 @@ +import "pkg:/components/Dialog/DialogUtils.bs" import "pkg:/source/services/SearchHistory.bs" import "pkg:/source/utils/FocusManagement.bs" -import "pkg:/components/Dialog/DialogUtils.bs" function Init() m.top.focusable = true diff --git a/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceControl.bs b/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceControl.bs index 9ce1fc54..9a992ca1 100644 --- a/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceControl.bs +++ b/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceControl.bs @@ -1,5 +1,5 @@ -import "pkg:/source/utils/Types.bs" import "pkg:/source/utils/FocusManagement.bs" +import "pkg:/source/utils/Types.bs" function Init() m.top.focusable = true diff --git a/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceTesting/InvidiousInstanceTesting.bs b/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceTesting/InvidiousInstanceTesting.bs index 6cc548f0..98f28a96 100644 --- a/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceTesting/InvidiousInstanceTesting.bs +++ b/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceTesting/InvidiousInstanceTesting.bs @@ -1,9 +1,9 @@ +import "pkg:/components/Dialog/DialogUtils.bs" +import "pkg:/components/Navigation/Navigation.bs" +import "pkg:/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceTesting/InvidiousInstanceTestingTask.bs" +import "pkg:/source/asyncTask/asyncTask.bs" import "pkg:/source/utils/FocusManagement.bs" import "pkg:/source/utils/Types.bs" -import "pkg:/source/asyncTask/asyncTask.bs" -import "pkg:/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceTesting/InvidiousInstanceTestingTask.bs" -import "pkg:/components/Navigation/Navigation.bs" -import "pkg:/components/Dialog/DialogUtils.bs" function Init() m.titleLabel = m.top.findNode("titleLabel") diff --git a/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousPublicInstances/InvidiousPublicInstances.bs b/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousPublicInstances/InvidiousPublicInstances.bs index f999bbf5..8d81a94f 100644 --- a/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousPublicInstances/InvidiousPublicInstances.bs +++ b/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousPublicInstances/InvidiousPublicInstances.bs @@ -1,9 +1,9 @@ -import "pkg:/source/asyncTask/asyncTask.bs" +import "pkg:/components/Dialog/DialogUtils.bs" import "pkg:/components/Screens/SettingsScreen/InvidiousInstance/InvidiousPublicInstances/InvidiousPublicInstancesTask.bs" +import "pkg:/source/asyncTask/asyncTask.bs" +import "pkg:/source/utils/ErrorUtils.bs" import "pkg:/source/utils/FocusManagement.bs" import "pkg:/source/utils/Logging.bs" -import "pkg:/source/utils/ErrorUtils.bs" -import "pkg:/components/Dialog/DialogUtils.bs" function Init() m.failedLabel = m.top.findNode("failedLabel") diff --git a/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousPublicInstances/InvidiousPublicInstancesTask.bs b/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousPublicInstances/InvidiousPublicInstancesTask.bs index cf4bcd92..74eee752 100644 --- a/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousPublicInstances/InvidiousPublicInstancesTask.bs +++ b/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousPublicInstances/InvidiousPublicInstancesTask.bs @@ -1,5 +1,5 @@ -import "pkg:/source/services/HttpClient.bs" import "pkg:/components/Services/Invidious/InvidiousService.bs" +import "pkg:/source/services/HttpClient.bs" @asynctask function InvidiousPublicInstancesTask(input as object) as object diff --git a/playlet-lib/src/components/Screens/SettingsScreen/SettingsScreen.bs b/playlet-lib/src/components/Screens/SettingsScreen/SettingsScreen.bs index e7d07c6a..f4dab286 100644 --- a/playlet-lib/src/components/Screens/SettingsScreen/SettingsScreen.bs +++ b/playlet-lib/src/components/Screens/SettingsScreen/SettingsScreen.bs @@ -1,6 +1,6 @@ import "pkg:/components/Navigation/Navigation.bs" -import "pkg:/source/utils/FocusManagement.bs" import "pkg:/components/Navigation/ScrollTo.bs" +import "pkg:/source/utils/FocusManagement.bs" function Init() m.container = m.top.findNode("Container") diff --git a/playlet-lib/src/components/Screens/WebAppScreen/WebAppScreen.bs b/playlet-lib/src/components/Screens/WebAppScreen/WebAppScreen.bs index 743dbdc2..8483a81a 100644 --- a/playlet-lib/src/components/Screens/WebAppScreen/WebAppScreen.bs +++ b/playlet-lib/src/components/Screens/WebAppScreen/WebAppScreen.bs @@ -1,6 +1,6 @@ -import "pkg:/source/utils/StringUtils.bs" -import "pkg:/source/asyncTask/asyncTask.bs" import "pkg:/components/Screens/WebAppScreen/GenerateQrCodeTask.bs" +import "pkg:/source/asyncTask/asyncTask.bs" +import "pkg:/source/utils/StringUtils.bs" function Init() end function diff --git a/playlet-lib/src/components/Services/ApplicationInfo/ApplicationInfo.bs b/playlet-lib/src/components/Services/ApplicationInfo/ApplicationInfo.bs index 453a3f4a..d2e597c5 100644 --- a/playlet-lib/src/components/Services/ApplicationInfo/ApplicationInfo.bs +++ b/playlet-lib/src/components/Services/ApplicationInfo/ApplicationInfo.bs @@ -1,5 +1,5 @@ -import "pkg:/source/asyncTask/asyncTask.bs" import "LatestLibVersionTask.bs" +import "pkg:/source/asyncTask/asyncTask.bs" import "pkg:/source/services/ApplicationInfo.bs" diff --git a/playlet-lib/src/components/Services/Invidious/InvidiousService.bs b/playlet-lib/src/components/Services/Invidious/InvidiousService.bs index fd472fc1..eae3dd7b 100644 --- a/playlet-lib/src/components/Services/Invidious/InvidiousService.bs +++ b/playlet-lib/src/components/Services/Invidious/InvidiousService.bs @@ -1,10 +1,10 @@ +import "pkg:/components/VideoFeed/PaginationType.bs" +import "pkg:/source/services/HttpClient.bs" +import "pkg:/source/utils/CryptoUtils.bs" +import "pkg:/source/utils/Logging.bs" import "pkg:/source/utils/RegistryUtils.bs" import "pkg:/source/utils/StringUtils.bs" import "pkg:/source/utils/TimeUtils.bs" -import "pkg:/source/utils/CryptoUtils.bs" -import "pkg:/source/services/HttpClient.bs" -import "pkg:/source/utils/Logging.bs" -import "pkg:/components/VideoFeed/PaginationType.bs" namespace Invidious const INSTANCES_API = "https://api.invidious.io/instances.json?sort_by=type,users" diff --git a/playlet-lib/src/components/Services/Invidious/InvidiousToContentNode.bs b/playlet-lib/src/components/Services/Invidious/InvidiousToContentNode.bs index f2fee3eb..a3ab30ef 100644 --- a/playlet-lib/src/components/Services/Invidious/InvidiousToContentNode.bs +++ b/playlet-lib/src/components/Services/Invidious/InvidiousToContentNode.bs @@ -1,5 +1,5 @@ -import "pkg:/source/utils/TimeUtils.bs" import "pkg:/components/VideoFeed/FeedLoadState.bs" +import "pkg:/source/utils/TimeUtils.bs" namespace InvidiousContent diff --git a/playlet-lib/src/components/Services/SponsorBlock/SponsorBlockService.bs b/playlet-lib/src/components/Services/SponsorBlock/SponsorBlockService.bs index a6776860..bbdfb336 100644 --- a/playlet-lib/src/components/Services/SponsorBlock/SponsorBlockService.bs +++ b/playlet-lib/src/components/Services/SponsorBlock/SponsorBlockService.bs @@ -1,6 +1,6 @@ +import "pkg:/source/services/HttpClient.bs" import "pkg:/source/utils/ColorUtils.bs" import "pkg:/source/utils/CryptoUtils.bs" -import "pkg:/source/services/HttpClient.bs" namespace SponsorBlock const SKIP_SEGMENT_ENDPOINT = "/api/skipSegments" diff --git a/playlet-lib/src/components/VideoFeed/VideoRowCell/VideoRowCell.bs b/playlet-lib/src/components/VideoFeed/VideoRowCell/VideoRowCell.bs index 5f5d3c7b..ad83a7ef 100644 --- a/playlet-lib/src/components/VideoFeed/VideoRowCell/VideoRowCell.bs +++ b/playlet-lib/src/components/VideoFeed/VideoRowCell/VideoRowCell.bs @@ -1,6 +1,6 @@ +import "pkg:/source/utils/StringUtils.bs" import "pkg:/source/utils/TimeUtils.bs" import "pkg:/source/utils/Types.bs" -import "pkg:/source/utils/StringUtils.bs" function Init() m.titleLabel = m.top.FindNode("titleLabel") diff --git a/playlet-lib/src/components/VideoFeed/VideoRowList.bs b/playlet-lib/src/components/VideoFeed/VideoRowList.bs index 022bf4fe..68a5ef60 100644 --- a/playlet-lib/src/components/VideoFeed/VideoRowList.bs +++ b/playlet-lib/src/components/VideoFeed/VideoRowList.bs @@ -1,13 +1,13 @@ -import "pkg:/source/utils/Types.bs" -import "pkg:/source/utils/Logging.bs" -import "pkg:/source/asyncTask/asyncTask.bs" +import "pkg:/components/ChannelView/ChannelUtils.bs" +import "pkg:/components/Dialog/DialogUtils.bs" +import "pkg:/components/PlaylistView/PlaylistUtils.bs" import "pkg:/components/VideoFeed/VideoRowListContentTask.bs" import "pkg:/components/VideoFeed/VideoRowListRowContentTask.bs" -import "pkg:/source/utils/ErrorUtils.bs" -import "pkg:/components/Dialog/DialogUtils.bs" import "pkg:/components/VideoPlayer/VideoUtils.bs" -import "pkg:/components/PlaylistView/PlaylistUtils.bs" -import "pkg:/components/ChannelView/ChannelUtils.bs" +import "pkg:/source/asyncTask/asyncTask.bs" +import "pkg:/source/utils/ErrorUtils.bs" +import "pkg:/source/utils/Logging.bs" +import "pkg:/source/utils/Types.bs" ' TODO:P1 add the option to remove a row if it does not have any content ' E.g. NBC News does not return any related chnanels diff --git a/playlet-lib/src/components/VideoPlayer/SponsorBlock.bs b/playlet-lib/src/components/VideoPlayer/SponsorBlock.bs index d1672b9b..637d3e7e 100644 --- a/playlet-lib/src/components/VideoPlayer/SponsorBlock.bs +++ b/playlet-lib/src/components/VideoPlayer/SponsorBlock.bs @@ -1,7 +1,7 @@ -import "pkg:/source/asyncTask/asyncTask.bs" -import "pkg:/components/Services/SponsorBlock/SponsorBlockTask.bs" -import "pkg:/components/Services/SponsorBlock/SponsorBlockSegmentViewedTask.bs" import "pkg:/components/Services/SponsorBlock/Notifications/SponsorBlockNotificationUtils.bs" +import "pkg:/components/Services/SponsorBlock/SponsorBlockSegmentViewedTask.bs" +import "pkg:/components/Services/SponsorBlock/SponsorBlockTask.bs" +import "pkg:/source/asyncTask/asyncTask.bs" namespace SponsorBlock diff --git a/playlet-lib/src/components/VideoPlayer/VideoPlayer.bs b/playlet-lib/src/components/VideoPlayer/VideoPlayer.bs index a8b0dc7e..0991bb12 100644 --- a/playlet-lib/src/components/VideoPlayer/VideoPlayer.bs +++ b/playlet-lib/src/components/VideoPlayer/VideoPlayer.bs @@ -1,13 +1,13 @@ -import "pkg:/source/asyncTask/asyncTask.bs" +import "pkg:/components/Dialog/DialogUtils.bs" +import "pkg:/components/Services/Invidious/InvidiousToContentNode.bs" +import "pkg:/components/VideoPlayer/MarkVideoWatchedTask.bs" +import "pkg:/components/VideoPlayer/SponsorBlock.bs" import "pkg:/components/VideoPlayer/VideoContentTask.bs" import "pkg:/components/VideoPlayer/VideoPlayerStyle.bs" -import "pkg:/source/utils/Logging.bs" import "pkg:/components/VideoPlayer/VideoUtils.bs" -import "pkg:/components/VideoPlayer/MarkVideoWatchedTask.bs" -import "pkg:/components/Dialog/DialogUtils.bs" +import "pkg:/source/asyncTask/asyncTask.bs" import "pkg:/source/utils/ErrorUtils.bs" -import "pkg:/components/VideoPlayer/SponsorBlock.bs" -import "pkg:/components/Services/Invidious/InvidiousToContentNode.bs" +import "pkg:/source/utils/Logging.bs" function Init() SetPlayerStyle() diff --git a/playlet-lib/src/components/Web/PlayletWebServer/Middleware/PlayQueueRouter.bs b/playlet-lib/src/components/Web/PlayletWebServer/Middleware/PlayQueueRouter.bs index 7fa11be0..de6ca00a 100644 --- a/playlet-lib/src/components/Web/PlayletWebServer/Middleware/PlayQueueRouter.bs +++ b/playlet-lib/src/components/Web/PlayletWebServer/Middleware/PlayQueueRouter.bs @@ -1,5 +1,5 @@ -import "pkg:/components/VideoPlayer/VideoUtils.bs" import "pkg:/components/Services/Invidious/InvidiousToContentNode.bs" +import "pkg:/components/VideoPlayer/VideoUtils.bs" namespace Http diff --git a/playlet-lib/src/components/Web/PlayletWebServer/PlayletWebServer.bs b/playlet-lib/src/components/Web/PlayletWebServer/PlayletWebServer.bs index e571f771..7b9fc00f 100644 --- a/playlet-lib/src/components/Web/PlayletWebServer/PlayletWebServer.bs +++ b/playlet-lib/src/components/Web/PlayletWebServer/PlayletWebServer.bs @@ -1,12 +1,12 @@ +import "pkg:/components/Web/PlayletWebServer/Middleware/InvidiousRouter.bs" +import "pkg:/components/Web/PlayletWebServer/Middleware/PlayletLibUrlsRouter.bs" +import "pkg:/components/Web/PlayletWebServer/Middleware/PlayQueueRouter.bs" +import "pkg:/components/Web/PlayletWebServer/Middleware/PreferencesRouter.bs" import "pkg:/components/Web/PlayletWebServer/Middleware/SearchHistoryRouter.bs" import "pkg:/components/Web/PlayletWebServer/Middleware/StateApiRouter.bs" -import "pkg:/components/Web/PlayletWebServer/Middleware/PreferencesRouter.bs" -import "pkg:/components/Web/PlayletWebServer/Middleware/InvidiousRouter.bs" -import "pkg:/components/Web/PlayletWebServer/Middleware/PlayQueueRouter.bs" import "pkg:/components/Web/WebServer/Middleware/CorsMiddleware.bs" -import "pkg:/components/Web/WebServer/Middleware/HttpStaticFilesRouter.bs" -import "pkg:/components/Web/PlayletWebServer/Middleware/PlayletLibUrlsRouter.bs" import "pkg:/components/Web/WebServer/Middleware/EtagMiddleware.bs" +import "pkg:/components/Web/WebServer/Middleware/HttpStaticFilesRouter.bs" function Init() m.top.packageName = "Playlet" diff --git a/playlet-lib/src/components/Web/WebServer/Http/HttpConnection.bs b/playlet-lib/src/components/Web/WebServer/Http/HttpConnection.bs index b5b36919..5bfaa845 100644 --- a/playlet-lib/src/components/Web/WebServer/Http/HttpConnection.bs +++ b/playlet-lib/src/components/Web/WebServer/Http/HttpConnection.bs @@ -1,9 +1,9 @@ -import "HttpSettings.bs" import "HttpRequest.bs" import "HttpResponse.bs" -import "pkg:/source/utils/Types.bs" -import "pkg:/source/utils/StringUtils.bs" +import "HttpSettings.bs" import "pkg:/source/utils/Logging.bs" +import "pkg:/source/utils/StringUtils.bs" +import "pkg:/source/utils/Types.bs" namespace Http const BUFSIZE = 65536 diff --git a/playlet-lib/src/components/Web/WebServer/Http/HttpRequest.bs b/playlet-lib/src/components/Web/WebServer/Http/HttpRequest.bs index b0b16d51..37d9432b 100644 --- a/playlet-lib/src/components/Web/WebServer/Http/HttpRequest.bs +++ b/playlet-lib/src/components/Web/WebServer/Http/HttpRequest.bs @@ -1,6 +1,6 @@ import "HttpRequestState.bs" -import "pkg:/source/utils/Types.bs" import "pkg:/components/Web/WebServer/Http/HttpUtils.bs" +import "pkg:/source/utils/Types.bs" namespace Http diff --git a/playlet-lib/src/components/Web/WebServer/Http/HttpResponse.bs b/playlet-lib/src/components/Web/WebServer/Http/HttpResponse.bs index d77dd54d..7dfd6dbc 100644 --- a/playlet-lib/src/components/Web/WebServer/Http/HttpResponse.bs +++ b/playlet-lib/src/components/Web/WebServer/Http/HttpResponse.bs @@ -1,5 +1,5 @@ -import "pkg:/source/utils/TimeUtils.bs" import "pkg:/source/utils/StringUtils.bs" +import "pkg:/source/utils/TimeUtils.bs" namespace Http function GetHttpResponseId() as integer diff --git a/playlet-lib/src/components/Web/WebServer/Http/HttpServer.bs b/playlet-lib/src/components/Web/WebServer/Http/HttpServer.bs index 2c08b308..677474d9 100644 --- a/playlet-lib/src/components/Web/WebServer/Http/HttpServer.bs +++ b/playlet-lib/src/components/Web/WebServer/Http/HttpServer.bs @@ -1,8 +1,8 @@ -import "HttpUtils.bs" -import "HttpSettings.bs" -import "HttpRouter.bs" -import "HttpConnectionState.bs" import "HttpConnection.bs" +import "HttpConnectionState.bs" +import "HttpRouter.bs" +import "HttpSettings.bs" +import "HttpUtils.bs" namespace Http diff --git a/playlet-lib/src/components/Web/WebServer/Middleware/EtagMiddleware.bs b/playlet-lib/src/components/Web/WebServer/Middleware/EtagMiddleware.bs index 2dc82e72..45e06108 100644 --- a/playlet-lib/src/components/Web/WebServer/Middleware/EtagMiddleware.bs +++ b/playlet-lib/src/components/Web/WebServer/Middleware/EtagMiddleware.bs @@ -1,7 +1,7 @@ -import "pkg:/source/utils/StringUtils.bs" -import "pkg:/source/utils/CryptoUtils.bs" -import "pkg:/source/utils/Types.bs" import "EtagUtils.bs" +import "pkg:/source/utils/CryptoUtils.bs" +import "pkg:/source/utils/StringUtils.bs" +import "pkg:/source/utils/Types.bs" namespace Http diff --git a/playlet-lib/src/source/QrCode/QRCode.bs b/playlet-lib/src/source/QrCode/QRCode.bs index 19c1c86e..fa92afe0 100644 --- a/playlet-lib/src/source/QrCode/QRCode.bs +++ b/playlet-lib/src/source/QrCode/QRCode.bs @@ -1,13 +1,13 @@ -import "QRMath.bs" -import "QRUtil.bs" -import "QRRSBlock.bs" -import "QRCode.exports.bs" -import "QRPolynomial.bs" import "QRBitBuffer.bs" -import "QrMode.bs" +import "QRCode.exports.bs" import "QRData_AlphaNumeric.bs" -import "QRData_Numeric.bs" import "QRData_Byte.bs" +import "QRData_Numeric.bs" +import "QRMath.bs" +import "QrMode.bs" +import "QRPolynomial.bs" +import "QRRSBlock.bs" +import "QRUtil.bs" namespace QrCode diff --git a/playlet-lib/src/source/services/HttpClient.bs b/playlet-lib/src/source/services/HttpClient.bs index d9ca93c5..8174bbc9 100644 --- a/playlet-lib/src/source/services/HttpClient.bs +++ b/playlet-lib/src/source/services/HttpClient.bs @@ -1,7 +1,7 @@ #const DISABLE_CACHE = false -import "pkg:/source/utils/Logging.bs" import "pkg:/source/utils/CryptoUtils.bs" +import "pkg:/source/utils/Logging.bs" import "pkg:/source/utils/StringUtils.bs" import "pkg:/source/utils/Types.bs"