Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8d5646aeb3 | ||
|
|
07b0e422ff | ||
|
|
35325bfae2 | ||
|
|
c122d286dc | ||
|
|
66208d941d | ||
|
|
9cf6626efb | ||
|
|
69c87228af | ||
|
|
2502eae462 | ||
|
|
b0e0c2d09d | ||
|
|
5982b5a75f | ||
|
|
51966cb33f | ||
|
|
bfe8a3c860 | ||
|
|
ef17ff44af | ||
|
|
826228e939 | ||
|
|
b77519493d | ||
|
|
6a46d4cd09 | ||
|
|
382cbe33d3 |
No files matched your search
@@ -31,6 +31,6 @@ jobs:
|
|||||||
uses: peter-evans/create-pull-request@v5
|
uses: peter-evans/create-pull-request@v5
|
||||||
with:
|
with:
|
||||||
commit-message: "update dependencies"
|
commit-message: "update dependencies"
|
||||||
branch: shore/update-deps
|
branch: chore/update-deps
|
||||||
title: "[shore] update dependencies"
|
title: "[chore] update dependencies"
|
||||||
body: "Weekly pull request to update dependencies."
|
body: "Weekly pull request to update dependencies."
|
||||||
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [0.17.3] - 2023-12-13
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Xmas theme logo
|
||||||
|
|
||||||
|
## [0.17.2] - 2023-12-10
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Loading message
|
||||||
|
|
||||||
## [0.17.1] - 2023-12-08
|
## [0.17.1] - 2023-12-08
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
1090
|
1090
|
||||||
],
|
],
|
||||||
"diagnosticLevel": "error",
|
"diagnosticLevel": "error",
|
||||||
|
// The validation regex rules are validated using the validation-plugin.ts plugin
|
||||||
"validation": [
|
"validation": [
|
||||||
{
|
{
|
||||||
"code": "NO_SET_FOCUS",
|
"code": "NO_SET_FOCUS",
|
||||||
@@ -20,6 +21,12 @@
|
|||||||
"regex": "\\.observeField(scoped)?\\s*\\(\\s*\"\\w+\"\\s*,\\s*\"\\w+\"\\s*\\)",
|
"regex": "\\.observeField(scoped)?\\s*\\(\\s*\"\\w+\"\\s*,\\s*\"\\w+\"\\s*\\)",
|
||||||
"regexFlags": "ig",
|
"regexFlags": "ig",
|
||||||
"message": "observeField(\"field\", \"callback\") is not allowed. Use observeField(\"field\", FuncName(callback)) instead."
|
"message": "observeField(\"field\", \"callback\") is not allowed. Use observeField(\"field\", FuncName(callback)) instead."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "NO_INVALID_CALLFUNC_ARG",
|
||||||
|
"regex": "@\\.\\w+\\(invalid\\)",
|
||||||
|
"regexFlags": "ig",
|
||||||
|
"message": "the arg invalid in @.func(invalid) is not needed. Just use @.func() instead."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"files": [
|
"files": [
|
||||||
@@ -56,10 +63,5 @@
|
|||||||
"require": [
|
"require": [
|
||||||
"ts-node/register"
|
"ts-node/register"
|
||||||
],
|
],
|
||||||
"rokuLog": {
|
|
||||||
"insertPkgPath": true,
|
|
||||||
"removeComments": false,
|
|
||||||
"strip": false
|
|
||||||
},
|
|
||||||
"sourceMap": true
|
"sourceMap": true
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"extends": "bsconfig.base.json",
|
"extends": "bsconfig.base.jsonc",
|
||||||
"files": [
|
"files": [
|
||||||
"source/**",
|
"source/**",
|
||||||
"components/**",
|
"components/**",
|
||||||
+1
-1
@@ -42,7 +42,7 @@ These are mostly the steps when releasing a new version:
|
|||||||
|
|
||||||
For releasing to the store (when needed), this is done following a Playlet lib release:
|
For releasing to the store (when needed), this is done following a Playlet lib release:
|
||||||
|
|
||||||
- Switch to main branch and pull changes - **match commit corresponding to the release.**
|
- Switch to main branch and pull changes, **including tags** - **match commit corresponding to the release.**
|
||||||
- `npm run build:release:ci`
|
- `npm run build:release:ci`
|
||||||
- This makes sure to have a valid app in the staging folder
|
- This makes sure to have a valid app in the staging folder
|
||||||
- `npm run sign-released-package`
|
- `npm run sign-released-package`
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ openapi: 3.0.0
|
|||||||
|
|
||||||
info:
|
info:
|
||||||
title: Playlet Web API
|
title: Playlet Web API
|
||||||
version: 0.17.1
|
version: 0.17.3
|
||||||
description:
|
description:
|
||||||
Playlet Web API is a RESTful API for controlling the Playlet app on
|
Playlet Web API is a RESTful API for controlling the Playlet app on
|
||||||
Roku devices. The API is intended to be used by the Playlet web app, but can
|
Roku devices. The API is intended to be used by the Playlet web app, but can
|
||||||
|
|||||||
+4
-1
@@ -428,7 +428,7 @@ myNode = CreateObject("roSGNode", "MyComponent")
|
|||||||
' Add it to the right parent
|
' Add it to the right parent
|
||||||
myParentNode.appendChild(myNode)
|
myParentNode.appendChild(myNode)
|
||||||
' Trigger the binding manually
|
' Trigger the binding manually
|
||||||
myNode@.BindNode(invalid)
|
myNode@.BindNode()
|
||||||
```
|
```
|
||||||
|
|
||||||
calling `BindNode` will trigger all the binding steps just for this node. But it is expected that all its dependencies are already in the scene and can be found.
|
calling `BindNode` will trigger all the binding steps just for this node. But it is expected that all its dependencies are already in the scene and can be found.
|
||||||
@@ -512,9 +512,11 @@ The logger plugin does some code transformation to log calls, which can add call
|
|||||||
### How
|
### How
|
||||||
|
|
||||||
The logger plugin searches for calls to the predefined functions `LogError`, `LogWarn`, `LogInfo` and `LogDebug`. Once found, it does the following (we take `LogError` as an example):
|
The logger plugin searches for calls to the predefined functions `LogError`, `LogWarn`, `LogInfo` and `LogDebug`. Once found, it does the following (we take `LogError` as an example):
|
||||||
|
|
||||||
- It replaces calls of `LogError` with `LogErrorX` where X is the number of arguments.
|
- It replaces calls of `LogError` with `LogErrorX` where X is the number of arguments.
|
||||||
- For example, it replaces `LogError("Cannot complete operation:", error)` with `LogError2("Cannot complete operation:", error)`
|
- For example, it replaces `LogError("Cannot complete operation:", error)` with `LogError2("Cannot complete operation:", error)`
|
||||||
- Based on usage, it generates `LogErrorX` functions used. Example:
|
- Based on usage, it generates `LogErrorX` functions used. Example:
|
||||||
|
|
||||||
```
|
```
|
||||||
function LogError2(arg0, arg1) as void
|
function LogError2(arg0, arg1) as void
|
||||||
logger = m.global.logger
|
logger = m.global.logger
|
||||||
@@ -524,6 +526,7 @@ function LogError2(arg0, arg1) as void
|
|||||||
m.global.logger.logLine = "[ERROR]" + ToString(arg0) + " " + ToString(arg1)
|
m.global.logger.logLine = "[ERROR]" + ToString(arg0) + " " + ToString(arg1)
|
||||||
end function
|
end function
|
||||||
```
|
```
|
||||||
|
|
||||||
- Finally, it adds the caller file and line number to the args.
|
- Finally, it adds the caller file and line number to the args.
|
||||||
- `LogError("Cannot complete operation:", error)` is replaced with `LogError(CALLER, "Cannot complete operation:", error)`
|
- `LogError("Cannot complete operation:", error)` is replaced with `LogError(CALLER, "Cannot complete operation:", error)`
|
||||||
- `CALLER` would be the full path to the source .bs file and line number, for easier debugging
|
- `CALLER` would be the full path to the source .bs file and line number, for easier debugging
|
||||||
|
|||||||
Generated
+11
-143
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet",
|
"name": "playlet",
|
||||||
"version": "0.17.1",
|
"version": "0.17.3",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet",
|
"name": "playlet",
|
||||||
"version": "0.17.1",
|
"version": "0.17.3",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rokucommunity/bslint": "^0.8.13",
|
"@rokucommunity/bslint": "^0.8.13",
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
"@types/node": "^20.10.4",
|
"@types/node": "^20.10.4",
|
||||||
"@types/xml2js": "^0.4.14",
|
"@types/xml2js": "^0.4.14",
|
||||||
"argparse": "^2.0.1",
|
"argparse": "^2.0.1",
|
||||||
"brighterscript": "0.65.10",
|
"brighterscript": "0.65.13",
|
||||||
"brighterscript-formatter": "^1.6.36",
|
"brighterscript-formatter": "^1.6.36",
|
||||||
"convert-svg-to-png": "^0.6.4",
|
"convert-svg-to-png": "^0.6.4",
|
||||||
"cross-fetch": "^4.0.0",
|
"cross-fetch": "^4.0.0",
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
"rooibos-roku": "^5.8.0",
|
"rooibos-roku": "^5.8.0",
|
||||||
"semver": "^7.5.4",
|
"semver": "^7.5.4",
|
||||||
"shelljs": "^0.8.5",
|
"shelljs": "^0.8.5",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.2",
|
||||||
"typescript": "^5.3.3",
|
"typescript": "^5.3.3",
|
||||||
"xml2js": "^0.6.2",
|
"xml2js": "^0.6.2",
|
||||||
"yaml": "^2.3.4"
|
"yaml": "^2.3.4"
|
||||||
@@ -728,9 +728,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/brighterscript": {
|
"node_modules/brighterscript": {
|
||||||
"version": "0.65.10",
|
"version": "0.65.13",
|
||||||
"resolved": "https://registry.npmjs.org/brighterscript/-/brighterscript-0.65.10.tgz",
|
"resolved": "https://registry.npmjs.org/brighterscript/-/brighterscript-0.65.13.tgz",
|
||||||
"integrity": "sha512-JGBkH6VDgTfwTMHtvauwUeR8XAotuhURbtr3r9+zaWU/KyO0jwSCLUnoNUjSmsz9ddnWe6KOY3NpR5vVG/iraA==",
|
"integrity": "sha512-f2Mvdpl+RRuVGLnwXvydpVjftSJl0n9L0HCBQlLZPQelksGV7n0ahIBcbPavqhXaZj/wB4wOKn2vQwWJI0G+tA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@rokucommunity/bslib": "^0.1.1",
|
"@rokucommunity/bslib": "^0.1.1",
|
||||||
@@ -756,7 +756,7 @@
|
|||||||
"parse-ms": "^2.1.0",
|
"parse-ms": "^2.1.0",
|
||||||
"readline": "^1.3.0",
|
"readline": "^1.3.0",
|
||||||
"require-relative": "^0.8.7",
|
"require-relative": "^0.8.7",
|
||||||
"roku-deploy": "^3.10.5",
|
"roku-deploy": "^3.11.1",
|
||||||
"serialize-error": "^7.0.1",
|
"serialize-error": "^7.0.1",
|
||||||
"source-map": "^0.7.4",
|
"source-map": "^0.7.4",
|
||||||
"vscode-languageserver": "7.0.0",
|
"vscode-languageserver": "7.0.0",
|
||||||
@@ -802,93 +802,6 @@
|
|||||||
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
|
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/brighterscript-formatter/node_modules/brighterscript": {
|
|
||||||
"version": "0.65.12",
|
|
||||||
"resolved": "https://registry.npmjs.org/brighterscript/-/brighterscript-0.65.12.tgz",
|
|
||||||
"integrity": "sha512-sXPLEH2CgjrPLFWi9tp2PXTNjS1S/6Xoa6EmafFauzYJBgXPKJd/ajzRNs5UPIJ4pqG0cst6NDWDHm7y2y4nEw==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"@rokucommunity/bslib": "^0.1.1",
|
|
||||||
"@xml-tools/parser": "^1.0.7",
|
|
||||||
"array-flat-polyfill": "^1.0.1",
|
|
||||||
"chalk": "^2.4.2",
|
|
||||||
"chevrotain": "^7.0.1",
|
|
||||||
"chokidar": "^3.5.1",
|
|
||||||
"clear": "^0.1.0",
|
|
||||||
"coveralls-next": "^4.2.0",
|
|
||||||
"cross-platform-clear-console": "^2.3.0",
|
|
||||||
"debounce-promise": "^3.1.0",
|
|
||||||
"eventemitter3": "^4.0.0",
|
|
||||||
"fast-glob": "^3.2.12",
|
|
||||||
"file-url": "^3.0.0",
|
|
||||||
"fs-extra": "^8.1.0",
|
|
||||||
"jsonc-parser": "^2.3.0",
|
|
||||||
"long": "^3.2.0",
|
|
||||||
"luxon": "^2.5.2",
|
|
||||||
"minimatch": "^3.0.4",
|
|
||||||
"moment": "^2.23.0",
|
|
||||||
"p-settle": "^2.1.0",
|
|
||||||
"parse-ms": "^2.1.0",
|
|
||||||
"readline": "^1.3.0",
|
|
||||||
"require-relative": "^0.8.7",
|
|
||||||
"roku-deploy": "^3.11.1",
|
|
||||||
"serialize-error": "^7.0.1",
|
|
||||||
"source-map": "^0.7.4",
|
|
||||||
"vscode-languageserver": "7.0.0",
|
|
||||||
"vscode-languageserver-protocol": "3.16.0",
|
|
||||||
"vscode-languageserver-textdocument": "^1.0.1",
|
|
||||||
"vscode-uri": "^2.1.1",
|
|
||||||
"xml2js": "^0.5.0",
|
|
||||||
"yargs": "^16.2.0"
|
|
||||||
},
|
|
||||||
"bin": {
|
|
||||||
"bsc": "dist/cli.js"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/brighterscript-formatter/node_modules/brighterscript/node_modules/cliui": {
|
|
||||||
"version": "7.0.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz",
|
|
||||||
"integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"string-width": "^4.2.0",
|
|
||||||
"strip-ansi": "^6.0.0",
|
|
||||||
"wrap-ansi": "^7.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/brighterscript-formatter/node_modules/brighterscript/node_modules/jsonc-parser": {
|
|
||||||
"version": "2.3.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-2.3.1.tgz",
|
|
||||||
"integrity": "sha512-H8jvkz1O50L3dMZCsLqiuB2tA7muqbSg1AtGEkN0leAqGjsUzDJir3Zwr02BhqdcITPg3ei3mZ+HjMocAknhhg==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"node_modules/brighterscript-formatter/node_modules/brighterscript/node_modules/yargs": {
|
|
||||||
"version": "16.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz",
|
|
||||||
"integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"cliui": "^7.0.2",
|
|
||||||
"escalade": "^3.1.1",
|
|
||||||
"get-caller-file": "^2.0.5",
|
|
||||||
"require-directory": "^2.1.1",
|
|
||||||
"string-width": "^4.2.0",
|
|
||||||
"y18n": "^5.0.5",
|
|
||||||
"yargs-parser": "^20.2.2"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=10"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/brighterscript-formatter/node_modules/brighterscript/node_modules/yargs-parser": {
|
|
||||||
"version": "20.2.9",
|
|
||||||
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz",
|
|
||||||
"integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==",
|
|
||||||
"dev": true,
|
|
||||||
"engines": {
|
|
||||||
"node": ">=10"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/brighterscript-formatter/node_modules/cliui": {
|
"node_modules/brighterscript-formatter/node_modules/cliui": {
|
||||||
"version": "8.0.1",
|
"version": "8.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
|
||||||
@@ -921,44 +834,12 @@
|
|||||||
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
|
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/brighterscript-formatter/node_modules/fs-extra": {
|
|
||||||
"version": "8.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz",
|
|
||||||
"integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"graceful-fs": "^4.2.0",
|
|
||||||
"jsonfile": "^4.0.0",
|
|
||||||
"universalify": "^0.1.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=6 <7 || >=8"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/brighterscript-formatter/node_modules/jsonc-parser": {
|
"node_modules/brighterscript-formatter/node_modules/jsonc-parser": {
|
||||||
"version": "3.2.0",
|
"version": "3.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.0.tgz",
|
||||||
"integrity": "sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==",
|
"integrity": "sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/brighterscript-formatter/node_modules/jsonfile": {
|
|
||||||
"version": "4.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",
|
|
||||||
"integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==",
|
|
||||||
"dev": true,
|
|
||||||
"optionalDependencies": {
|
|
||||||
"graceful-fs": "^4.1.6"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/brighterscript-formatter/node_modules/universalify": {
|
|
||||||
"version": "0.1.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",
|
|
||||||
"integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",
|
|
||||||
"dev": true,
|
|
||||||
"engines": {
|
|
||||||
"node": ">= 4.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/brighterscript-formatter/node_modules/wrap-ansi": {
|
"node_modules/brighterscript-formatter/node_modules/wrap-ansi": {
|
||||||
"version": "7.0.0",
|
"version": "7.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
|
||||||
@@ -976,19 +857,6 @@
|
|||||||
"url": "https://github.com/chalk/wrap-ansi?sponsor=1"
|
"url": "https://github.com/chalk/wrap-ansi?sponsor=1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/brighterscript-formatter/node_modules/xml2js": {
|
|
||||||
"version": "0.5.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz",
|
|
||||||
"integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"sax": ">=0.6.0",
|
|
||||||
"xmlbuilder": "~11.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=4.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/brighterscript-formatter/node_modules/y18n": {
|
"node_modules/brighterscript-formatter/node_modules/y18n": {
|
||||||
"version": "5.0.8",
|
"version": "5.0.8",
|
||||||
"resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
|
"resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
|
||||||
@@ -4657,9 +4525,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/ts-node": {
|
"node_modules/ts-node": {
|
||||||
"version": "10.9.1",
|
"version": "10.9.2",
|
||||||
"resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz",
|
"resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz",
|
||||||
"integrity": "sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==",
|
"integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@cspotcode/source-map-support": "^0.8.0",
|
"@cspotcode/source-map-support": "^0.8.0",
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet",
|
"name": "playlet",
|
||||||
"version": "0.17.1",
|
"version": "0.17.3",
|
||||||
"description": "Unofficial Youtube client for Roku",
|
"description": "Unofficial Youtube client for Roku",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rokucommunity/bslint": "^0.8.13",
|
"@rokucommunity/bslint": "^0.8.13",
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
"@types/node": "^20.10.4",
|
"@types/node": "^20.10.4",
|
||||||
"@types/xml2js": "^0.4.14",
|
"@types/xml2js": "^0.4.14",
|
||||||
"argparse": "^2.0.1",
|
"argparse": "^2.0.1",
|
||||||
"brighterscript": "0.65.10",
|
"brighterscript": "0.65.13",
|
||||||
"brighterscript-formatter": "^1.6.36",
|
"brighterscript-formatter": "^1.6.36",
|
||||||
"convert-svg-to-png": "^0.6.4",
|
"convert-svg-to-png": "^0.6.4",
|
||||||
"cross-fetch": "^4.0.0",
|
"cross-fetch": "^4.0.0",
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
"rooibos-roku": "^5.8.0",
|
"rooibos-roku": "^5.8.0",
|
||||||
"semver": "^7.5.4",
|
"semver": "^7.5.4",
|
||||||
"shelljs": "^0.8.5",
|
"shelljs": "^0.8.5",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.2",
|
||||||
"typescript": "^5.3.3",
|
"typescript": "^5.3.3",
|
||||||
"xml2js": "^0.6.2",
|
"xml2js": "^0.6.2",
|
||||||
"yaml": "^2.3.4"
|
"yaml": "^2.3.4"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"extends": "../config/bsconfig.base.json",
|
"extends": "../config/bsconfig.base.jsonc",
|
||||||
"rootDir": "src/",
|
"rootDir": "src/",
|
||||||
"stagingDir": "../build/playlet-app",
|
"stagingDir": "../build/playlet-app",
|
||||||
"outFile": "../dist/playlet-app.zip"
|
"outFile": "../dist/playlet-app.zip"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"extends": "../config/bsconfig.tests.base.json",
|
"extends": "../config/bsconfig.tests.base.jsonc",
|
||||||
"rootDir": "src/",
|
"rootDir": "src/",
|
||||||
"stagingDir": "../build/playlet-app-tests",
|
"stagingDir": "../build/playlet-app-tests",
|
||||||
"outFile": "../build/playlet-app-tests.zip"
|
"outFile": "../build/playlet-app-tests.zip"
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-app",
|
"name": "playlet-app",
|
||||||
"version": "0.17.1",
|
"version": "0.17.3",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet-app",
|
"name": "playlet-app",
|
||||||
"version": "0.17.1"
|
"version": "0.17.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-app",
|
"name": "playlet-app",
|
||||||
"version": "0.17.1",
|
"version": "0.17.3",
|
||||||
"description": "Unofficial Youtube client for Roku",
|
"description": "Unofficial Youtube client for Roku",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prebuild": "rm -rf build/playlet-app",
|
"prebuild": "rm -rf build/playlet-app",
|
||||||
|
|||||||
@@ -1,13 +1,18 @@
|
|||||||
|
import "LoadingMessages.bs"
|
||||||
|
|
||||||
function Init() as void
|
function Init() as void
|
||||||
|
m.scene = m.top.getScene()
|
||||||
m.top.backgroundColor = "0x242424FF"
|
m.top.backgroundColor = "0x242424FF"
|
||||||
m.top.backgroundURI = ""
|
m.top.backgroundURI = ""
|
||||||
|
|
||||||
m.loadingIndicator = m.top.findNode("LoadingIndicator")
|
m.loadingIndicator = m.top.findNode("LoadingIndicator")
|
||||||
m.loadingIndicator.visible = true
|
|
||||||
m.global.addFields({
|
m.global.addFields({
|
||||||
loadingIndicator: m.loadingIndicator
|
loadingIndicator: m.loadingIndicator
|
||||||
})
|
})
|
||||||
|
|
||||||
|
m.loadingIndicator.visible = true
|
||||||
|
m.loadingIndicator.message = GetLoadingMessage()
|
||||||
|
|
||||||
m.playletLibUrls = GetPlayletLibUrls()
|
m.playletLibUrls = GetPlayletLibUrls()
|
||||||
m.playletLibUrlIndex = 0
|
m.playletLibUrlIndex = 0
|
||||||
|
|
||||||
@@ -42,14 +47,8 @@ function LoadPlayletLib() as void
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
RemoveComponentLibrary()
|
RemoveComponentLibrary()
|
||||||
m.lib = m.top.getScene().createChild("ComponentLibrary")
|
|
||||||
' bs:disable-next-line NO_OBSERVE_STRING_CALLBACK
|
|
||||||
m.lib.observeField("loadStatus", "OnLoadStatusChanged")
|
|
||||||
|
|
||||||
uri = m.playletLibUrls[m.playletLibUrlIndex].link
|
uri = m.playletLibUrls[m.playletLibUrlIndex].link
|
||||||
' bs:disable-next-line LINT3012
|
LoadComponentLibrary(uri)
|
||||||
?"Loading Playlet lib from " uri
|
|
||||||
m.lib.uri = uri
|
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OnLoadStatusChanged() as void
|
function OnLoadStatusChanged() as void
|
||||||
@@ -58,9 +57,8 @@ function OnLoadStatusChanged() as void
|
|||||||
RemoveComponentLibrary()
|
RemoveComponentLibrary()
|
||||||
' bs:disable-next-line LINT3012
|
' bs:disable-next-line LINT3012
|
||||||
?"Playlet lib loaded from " libUrl.link
|
?"Playlet lib loaded from " libUrl.link
|
||||||
scene = m.top.getScene()
|
m.scene.playletLibLoadedUrl = libUrl
|
||||||
scene.playletLibLoadedUrl = libUrl
|
container = m.scene.findNode("MainSceneContainer")
|
||||||
container = scene.findNode("MainSceneContainer")
|
|
||||||
container.createChild("PlayletLib:MainScene")
|
container.createChild("PlayletLib:MainScene")
|
||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
@@ -79,11 +77,20 @@ function RemoveComponentLibrary() as void
|
|||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
|
|
||||||
scene = m.top.getScene()
|
m.lib.unobserveField("loadStatus")
|
||||||
scene.removeChild(m.lib)
|
m.scene.removeChild(m.lib)
|
||||||
m.lib = invalid
|
m.lib = invalid
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
function LoadComponentLibrary(uri as string)
|
||||||
|
m.lib = m.scene.createChild("ComponentLibrary")
|
||||||
|
' bs:disable-next-line NO_OBSERVE_STRING_CALLBACK
|
||||||
|
m.lib.observeField("loadStatus", "OnLoadStatusChanged")
|
||||||
|
' bs:disable-next-line LINT3012
|
||||||
|
?"Loading Playlet lib from " uri
|
||||||
|
m.lib.uri = uri
|
||||||
|
end function
|
||||||
|
|
||||||
function ShowPlayletLibLoadErrorDialog()
|
function ShowPlayletLibLoadErrorDialog()
|
||||||
message = [
|
message = [
|
||||||
"Could not load Playlet component library from any of the following urls:",
|
"Could not load Playlet component library from any of the following urls:",
|
||||||
|
|||||||
@@ -0,0 +1,41 @@
|
|||||||
|
function GetLoadingMessage() as string
|
||||||
|
messages = GetLoadingMessagesFromCache()
|
||||||
|
if messages = invalid or messages.count() = 0
|
||||||
|
messages = [
|
||||||
|
"Now loading Playlet...",
|
||||||
|
"One moment please...",
|
||||||
|
"Downloading the internet...",
|
||||||
|
"Unclogging the tubes...",
|
||||||
|
"Warming up the flux capacitor...",
|
||||||
|
"Loading, ehm, stuff...",
|
||||||
|
"Restoring quantum entanglement...",
|
||||||
|
"Searching for kitten videos...",
|
||||||
|
"One Mississippi... two Mississippi...",
|
||||||
|
"Checking the TV's extended warranty...",
|
||||||
|
"Deleting system32...",
|
||||||
|
"Updating: 3 hours 32 minutes remaining...",
|
||||||
|
"Asking ChatGPT for humorous loading messages...",
|
||||||
|
"Loading today's sponsor... NordVPN!",
|
||||||
|
"Don't worry, this is normal...",
|
||||||
|
"Don't forget to like and subscribe...",
|
||||||
|
"Shoveling coal into the server...",
|
||||||
|
"Counting down from infinity...",
|
||||||
|
]
|
||||||
|
end if
|
||||||
|
index = GetRandom(0, messages.count() - 1)
|
||||||
|
return messages[index]
|
||||||
|
end function
|
||||||
|
|
||||||
|
function GetLoadingMessagesFromCache() as object
|
||||||
|
messagesFile = ReadAsciiFile("cachefs:/loading_messages_v1.json")
|
||||||
|
if messagesFile = invalid or messagesFile = ""
|
||||||
|
return invalid
|
||||||
|
end if
|
||||||
|
return ParseJson(messagesFile)
|
||||||
|
end function
|
||||||
|
|
||||||
|
function GetRandom(min as integer, max as integer) as integer
|
||||||
|
dateTime = CreateObject("roDateTime")
|
||||||
|
random = Rnd(max) + dateTime.GetMilliseconds()
|
||||||
|
return min + (random mod (max - min + 1))
|
||||||
|
end function
|
||||||
@@ -1,4 +1,7 @@
|
|||||||
<component name="LoadingIndicator" extends="Group">
|
<component name="LoadingIndicator" extends="Group">
|
||||||
|
<interface>
|
||||||
|
<field id="message" type="string" alias="messageLabel.text" />
|
||||||
|
</interface>
|
||||||
<children>
|
<children>
|
||||||
<Rectangle
|
<Rectangle
|
||||||
width="1280"
|
width="1280"
|
||||||
@@ -9,6 +12,16 @@
|
|||||||
id="busySpinner"
|
id="busySpinner"
|
||||||
inheritParentOpacity="false"
|
inheritParentOpacity="false"
|
||||||
spinInterval="1" />
|
spinInterval="1" />
|
||||||
|
<Label
|
||||||
|
id="messageLabel"
|
||||||
|
inheritParentOpacity="false"
|
||||||
|
width="1280"
|
||||||
|
height="200"
|
||||||
|
horizAlign="center"
|
||||||
|
translation="[0,460]"
|
||||||
|
wrap="true">
|
||||||
|
<Font role="font" uri="font:SystemFontFile" size="28" />
|
||||||
|
</Label>
|
||||||
</Rectangle>
|
</Rectangle>
|
||||||
</children>
|
</children>
|
||||||
</component>
|
</component>
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 89 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 67 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 37 KiB |
@@ -1,26 +1,5 @@
|
|||||||
{
|
{
|
||||||
inputHash: '0536f51fa72c2e4e368ea0e901aadfc1',
|
inputHash: "0536f51fa72c2e4e368ea0e901aadfc1",
|
||||||
outputs: [
|
// Temporarily removed outputs for chrismas theme
|
||||||
{
|
outputs: [],
|
||||||
outputFilePath: 'images/splash-screen_fhd.jpg',
|
|
||||||
outputHash: 'b15f3a3f1ccc459cbca12cb828b78d16',
|
|
||||||
width: 1920,
|
|
||||||
height: 1080,
|
|
||||||
background: '#242424',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
outputFilePath: 'images/splash-screen_hd.jpg',
|
|
||||||
outputHash: '25e9c4220f8a42101d6333e548e33aa8',
|
|
||||||
width: 1280,
|
|
||||||
height: 720,
|
|
||||||
background: '#242424',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
outputFilePath: 'images/splash-screen_sd.jpg',
|
|
||||||
outputHash: 'c54a2f7fa65f443263806962450f2c04',
|
|
||||||
width: 720,
|
|
||||||
height: 480,
|
|
||||||
background: '#242424',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
}
|
}
|
||||||
@@ -3,7 +3,7 @@ title=Playlet
|
|||||||
# Do not update version manually, it is auto updated from package.json
|
# Do not update version manually, it is auto updated from package.json
|
||||||
major_version=0
|
major_version=0
|
||||||
minor_version=17
|
minor_version=17
|
||||||
build_version=00001
|
build_version=00003
|
||||||
|
|
||||||
ui_resolutions=hd
|
ui_resolutions=hd
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
function ShowErrorDialog(message as object, bulletText as object, bottomMessage as object)
|
function ShowErrorDialog(message as object, bulletText as object, bottomMessage as object)
|
||||||
' TODO:P2 a null check on StandardMessageDialog, only available on 10.0 and later
|
' Note: dialog can be null since StandardMessageDialog is only available on 10.0 and later
|
||||||
dialog = CreateObject("roSGNode", "StandardMessageDialog")
|
dialog = CreateObject("roSGNode", "StandardMessageDialog")
|
||||||
dialog.message = message
|
dialog.message = message
|
||||||
dialog.bulletText = bulletText
|
dialog.bulletText = bulletText
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"extends": "../config/bsconfig.base.json",
|
"extends": "../config/bsconfig.base.jsonc",
|
||||||
"rootDir": "src/",
|
"rootDir": "src/",
|
||||||
"stagingDir": "../build/playlet-lib",
|
"stagingDir": "../build/playlet-lib",
|
||||||
"outFile": "../dist/playlet-lib.zip"
|
"outFile": "../dist/playlet-lib.zip"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"extends": "../config/bsconfig.tests.base.json",
|
"extends": "../config/bsconfig.tests.base.jsonc",
|
||||||
"rootDir": "src/",
|
"rootDir": "src/",
|
||||||
"stagingDir": "../build/playlet-lib-tests",
|
"stagingDir": "../build/playlet-lib-tests",
|
||||||
"outFile": "../build/playlet-lib-tests.zip"
|
"outFile": "../build/playlet-lib-tests.zip"
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-lib",
|
"name": "playlet-lib",
|
||||||
"version": "0.17.1",
|
"version": "0.17.3",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet-lib",
|
"name": "playlet-lib",
|
||||||
"version": "0.17.1"
|
"version": "0.17.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-lib",
|
"name": "playlet-lib",
|
||||||
"version": "0.17.1",
|
"version": "0.17.3",
|
||||||
"description": "Unofficial Youtube client for Roku",
|
"description": "Unofficial Youtube client for Roku",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prebuild": "rm -rf build/playlet-lib",
|
"prebuild": "rm -rf build/playlet-lib",
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ function ShowRootScreen(screenName as string) as void
|
|||||||
' insert child at 0 to make sure it is behind the navbar
|
' insert child at 0 to make sure it is behind the navbar
|
||||||
m.root.insertChild(screen, 0)
|
m.root.insertChild(screen, 0)
|
||||||
if screen.hasField("binding_done")
|
if screen.hasField("binding_done")
|
||||||
screen@.BindNode(invalid)
|
screen@.BindNode()
|
||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
screen = m.screens[screenName]
|
screen = m.screens[screenName]
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ namespace ChannelUtils
|
|||||||
appController = m.appController
|
appController = m.appController
|
||||||
end if
|
end if
|
||||||
appController@.PushScreen(channelView)
|
appController@.PushScreen(channelView)
|
||||||
channelView@.BindNode(invalid)
|
channelView@.BindNode()
|
||||||
channelView.content = contentNode
|
channelView.content = contentNode
|
||||||
end function
|
end function
|
||||||
end namespace
|
end namespace
|
||||||
@@ -29,7 +29,7 @@ function Init()
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function OnNodeready()
|
function OnNodeready()
|
||||||
m.rowList@.BindNode(invalid)
|
m.rowList@.BindNode()
|
||||||
|
|
||||||
SetNavigation(m.rowList, "up", m.subscribeButton)
|
SetNavigation(m.rowList, "up", m.subscribeButton)
|
||||||
SetNavigation(m.subscribeButton, "down", m.rowList)
|
SetNavigation(m.subscribeButton, "down", m.rowList)
|
||||||
@@ -115,7 +115,7 @@ function OnkeyEvent(key as string, press as boolean) as boolean
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function Close()
|
function Close()
|
||||||
m.appController@.PopScreen(invalid)
|
m.appController@.PopScreen()
|
||||||
m.top.dispose = true
|
m.top.dispose = true
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ import "pkg:/source/utils/Logging.bs"
|
|||||||
import "pkg:/source/utils/StringUtils.bs"
|
import "pkg:/source/utils/StringUtils.bs"
|
||||||
import "pkg:/source/utils/Types.bs"
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
' TODO:P0 Web app support
|
' TODO:P1 Web app support
|
||||||
' TODO:P0 Web apis and open api spec updates
|
' TODO:P1 Web apis and open api spec updates
|
||||||
'
|
'
|
||||||
' From the main screen:
|
' From the main screen:
|
||||||
' When a video is selected:
|
' When a video is selected:
|
||||||
@@ -167,5 +167,5 @@ function OnkeyEvent(key as string, press as boolean) as boolean
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function Close()
|
function Close()
|
||||||
m.top.appController@.PopScreen(invalid)
|
m.top.appController@.PopScreen()
|
||||||
end function
|
end function
|
||||||
@@ -19,7 +19,7 @@ namespace ContextMenuUtils
|
|||||||
ContextMenuUtils.SetItem(contextMenu, item)
|
ContextMenuUtils.SetItem(contextMenu, item)
|
||||||
contextMenu.options = options
|
contextMenu.options = options
|
||||||
|
|
||||||
contextMenu@.Show(invalid)
|
contextMenu@.Show()
|
||||||
return contextMenu
|
return contextMenu
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ function Init()
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function OnNodeReady()
|
function OnNodeReady()
|
||||||
address = m.webserver@.GetServerAddress(invalid)
|
address = m.webserver@.GetServerAddress()
|
||||||
isValidIp = not StringUtils.IsNullOrEmpty(address)
|
isValidAddress = not StringUtils.IsNullOrEmpty(address)
|
||||||
if isValidIp
|
if isValidAddress
|
||||||
m.top.url = `${address}/invidious/login`
|
m.top.url = `${address}/invidious/login`
|
||||||
else
|
else
|
||||||
m.urlLabel.text = "No IP address found"
|
m.urlLabel.text = "No IP address found"
|
||||||
|
|||||||
@@ -16,9 +16,10 @@ function MainSceneContainerChanged()
|
|||||||
HideLoadingScreen()
|
HideLoadingScreen()
|
||||||
InitEcpArgs()
|
InitEcpArgs()
|
||||||
m.scene.signalBeacon("AppLaunchComplete")
|
m.scene.signalBeacon("AppLaunchComplete")
|
||||||
|
CopyLoadingMessagesToCache()
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function StartWebServer()
|
function StartWebServer()
|
||||||
m.webServer = m.top.findNode("WebServer")
|
m.webServer = m.top.findNode("WebServer")
|
||||||
m.webServer@.StartServer(invalid)
|
m.webServer@.StartServer()
|
||||||
end function
|
end function
|
||||||
@@ -17,6 +17,7 @@ function MainSceneContainerChanged()
|
|||||||
HideLoadingScreen()
|
HideLoadingScreen()
|
||||||
InitEcpArgs()
|
InitEcpArgs()
|
||||||
m.scene.signalBeacon("AppLaunchComplete")
|
m.scene.signalBeacon("AppLaunchComplete")
|
||||||
|
CopyLoadingMessagesToCache()
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function StartWebServer()
|
function StartWebServer()
|
||||||
|
|||||||
@@ -61,11 +61,11 @@ function OnkeyEvent(key as string, press as boolean) as boolean
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function Close()
|
function Close()
|
||||||
m.top.appController@.PopScreen(invalid)
|
m.top.appController@.PopScreen()
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OnClearButtonSelected()
|
function OnClearButtonSelected()
|
||||||
m.top.playQueue@.Clear(invalid)
|
m.top.playQueue@.Clear()
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OnItemSelected() as void
|
function OnItemSelected() as void
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace PlayQueueViewUtils
|
|||||||
playQueueView.jumpToItem = index
|
playQueueView.jumpToItem = index
|
||||||
end if
|
end if
|
||||||
|
|
||||||
playQueueView@.Show(invalid)
|
playQueueView@.Show()
|
||||||
return playQueueView
|
return playQueueView
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ namespace PlaylistUtils
|
|||||||
appController = m.appController
|
appController = m.appController
|
||||||
end if
|
end if
|
||||||
appController@.PushScreen(playlistView)
|
appController@.PushScreen(playlistView)
|
||||||
playlistView@.BindNode(invalid)
|
playlistView@.BindNode()
|
||||||
playlistView.content = contentNode
|
playlistView.content = contentNode
|
||||||
end function
|
end function
|
||||||
end namespace
|
end namespace
|
||||||
@@ -94,7 +94,7 @@ function Close()
|
|||||||
m.playlistLoadTask = invalid
|
m.playlistLoadTask = invalid
|
||||||
end if
|
end if
|
||||||
|
|
||||||
m.appController@.PopScreen(invalid)
|
m.appController@.PopScreen()
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OnItemFocused()
|
function OnItemFocused()
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ function Init()
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function OnNodeReady()
|
function OnNodeReady()
|
||||||
m.appInfo = m.applicationInfo@.GetAppInfo(invalid)
|
m.appInfo = m.applicationInfo@.GetAppInfo()
|
||||||
|
|
||||||
UpdateKeyValueList()
|
UpdateKeyValueList()
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ function OnNodeReady()
|
|||||||
SetNavigation(invalid, "back", m.navBar)
|
SetNavigation(invalid, "back", m.navBar)
|
||||||
SetNavigation(invalid, "left", m.navBar)
|
SetNavigation(invalid, "left", m.navBar)
|
||||||
|
|
||||||
m.rowList@.BindNode(invalid)
|
m.rowList@.BindNode()
|
||||||
|
|
||||||
OnBookmarksChange()
|
OnBookmarksChange()
|
||||||
m.bookmarks.ObserveField("contentChange", FuncName(OnBookmarksChange))
|
m.bookmarks.ObserveField("contentChange", FuncName(OnBookmarksChange))
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ function OnNodeReady()
|
|||||||
SetNavigation(invalid, "back", m.navBar)
|
SetNavigation(invalid, "back", m.navBar)
|
||||||
SetNavigation(invalid, "left", m.navBar)
|
SetNavigation(invalid, "left", m.navBar)
|
||||||
|
|
||||||
m.rowList@.BindNode(invalid)
|
m.rowList@.BindNode()
|
||||||
m.rowList.feeds = ParseJson(ReadAsciiFile(m.top.feedFile))
|
m.rowList.feeds = ParseJson(ReadAsciiFile(m.top.feedFile))
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
|||||||
@@ -266,5 +266,5 @@ function OnkeyEvent(key as string, press as boolean) as boolean
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function Close()
|
function Close()
|
||||||
m.appController@.PopScreen(invalid)
|
m.appController@.PopScreen()
|
||||||
end function
|
end function
|
||||||
@@ -36,7 +36,7 @@ function Init()
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function OnNodeReady()
|
function OnNodeReady()
|
||||||
m.rowlist@.BindNode(invalid)
|
m.rowlist@.BindNode()
|
||||||
m.keyboard.ObserveField("text", FuncName(OnTextChange))
|
m.keyboard.ObserveField("text", FuncName(OnTextChange))
|
||||||
m.suggestions.ObserveField("buttonFocused", FuncName(OnSearchButtonFocused))
|
m.suggestions.ObserveField("buttonFocused", FuncName(OnSearchButtonFocused))
|
||||||
m.suggestions.ObserveField("buttonSelected", FuncName(OnSearchButtonSelected))
|
m.suggestions.ObserveField("buttonSelected", FuncName(OnSearchButtonSelected))
|
||||||
@@ -151,7 +151,7 @@ function OnFiltersButtonSelected()
|
|||||||
searchFilters = CreateObject("roSGNode", "SearchFilters")
|
searchFilters = CreateObject("roSGNode", "SearchFilters")
|
||||||
m.appController@.PushScreen(searchFilters)
|
m.appController@.PushScreen(searchFilters)
|
||||||
searchFilters.searchScreen = m.top
|
searchFilters.searchScreen = m.top
|
||||||
searchFilters@.BindNode(invalid)
|
searchFilters@.BindNode()
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OnSearchButtonSelected()
|
function OnSearchButtonSelected()
|
||||||
|
|||||||
+1
-1
@@ -54,7 +54,7 @@ end function
|
|||||||
function OpenInvidiousInstanceSettings()
|
function OpenInvidiousInstanceSettings()
|
||||||
settings = CreateObject("roSGNode", "InvidiousInstanceSettings")
|
settings = CreateObject("roSGNode", "InvidiousInstanceSettings")
|
||||||
m.appController@.PushScreen(settings)
|
m.appController@.PushScreen(settings)
|
||||||
settings@.BindNode(invalid)
|
settings@.BindNode()
|
||||||
settings.text = m.top.value
|
settings.text = m.top.value
|
||||||
settings.observeField("save", FuncName(OnSaveInvidiousInstance))
|
settings.observeField("save", FuncName(OnSaveInvidiousInstance))
|
||||||
end function
|
end function
|
||||||
|
|||||||
+2
-2
@@ -70,7 +70,7 @@ end function
|
|||||||
function OnTestButtonSelected()
|
function OnTestButtonSelected()
|
||||||
testing = CreateObject("roSGNode", "InvidiousInstanceTesting")
|
testing = CreateObject("roSGNode", "InvidiousInstanceTesting")
|
||||||
m.appController@.PushScreen(testing)
|
m.appController@.PushScreen(testing)
|
||||||
testing@.BindNode(invalid)
|
testing@.BindNode()
|
||||||
testing.instance = m.top.text
|
testing.instance = m.top.text
|
||||||
testing.run = true
|
testing.run = true
|
||||||
end function
|
end function
|
||||||
@@ -103,5 +103,5 @@ function OnSaveButtonSelected()
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function Close()
|
function Close()
|
||||||
m.appController@.PopScreen(invalid)
|
m.appController@.PopScreen()
|
||||||
end function
|
end function
|
||||||
+1
-1
@@ -47,7 +47,7 @@ function Close()
|
|||||||
m.testingTask.cancel = true
|
m.testingTask.cancel = true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
m.appController@.PopScreen(invalid)
|
m.appController@.PopScreen()
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function RunTestsTask()
|
function RunTestsTask()
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ function CreateControl(item as object, container as object, startX as integer, s
|
|||||||
control.id = `preference.${item.key}`
|
control.id = `preference.${item.key}`
|
||||||
control.translation = [startX, startY]
|
control.translation = [startX, startY]
|
||||||
if control.hasField("binding_done")
|
if control.hasField("binding_done")
|
||||||
control@.BindNode(invalid)
|
control@.BindNode()
|
||||||
end if
|
end if
|
||||||
control@.BindPreference(m.preferences, item.key)
|
control@.BindPreference(m.preferences, item.key)
|
||||||
|
|
||||||
|
|||||||
@@ -6,13 +6,13 @@ function Init()
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function OnNodeReady()
|
function OnNodeReady()
|
||||||
address = m.webserver@.GetServerAddress(invalid)
|
address = m.webserver@.GetServerAddress()
|
||||||
isValidIp = not StringUtils.IsNullOrEmpty(address)
|
isValidAddress = not StringUtils.IsNullOrEmpty(address)
|
||||||
if isValidIp
|
if isValidAddress
|
||||||
m.top.url = address
|
m.top.url = address
|
||||||
end if
|
end if
|
||||||
m.top.findNode("noInternet").visible = not isValidIp
|
m.top.findNode("noInternet").visible = not isValidAddress
|
||||||
m.top.findNode("yesInternet").visible = isValidIp
|
m.top.findNode("yesInternet").visible = isValidAddress
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OnUrlSet()
|
function OnUrlSet()
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ namespace Invidious
|
|||||||
|
|
||||||
function DefaultQueryParams() as object
|
function DefaultQueryParams() as object
|
||||||
return {
|
return {
|
||||||
region: m.node.applicationInfo@.GetUserCountryCode(invalid)
|
region: m.node.applicationInfo@.GetUserCountryCode()
|
||||||
}
|
}
|
||||||
end function
|
end function
|
||||||
|
|
||||||
@@ -228,7 +228,7 @@ namespace Invidious
|
|||||||
if queryParam.default <> invalid
|
if queryParam.default <> invalid
|
||||||
if IsString(queryParam.type) and queryParam.type = "#ISO3166"
|
if IsString(queryParam.type) and queryParam.type = "#ISO3166"
|
||||||
if queryParam.default = "GetUserCountryCode"
|
if queryParam.default = "GetUserCountryCode"
|
||||||
request.QueryParam(queryParamKey, m.node.applicationInfo@.GetUserCountryCode(invalid))
|
request.QueryParam(queryParamKey, m.node.applicationInfo@.GetUserCountryCode())
|
||||||
else
|
else
|
||||||
request.QueryParam(queryParamKey, queryParam.default)
|
request.QueryParam(queryParamKey, queryParam.default)
|
||||||
end if
|
end if
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ function OnRowItemSelected(index as object) as void
|
|||||||
else if rowItem.type = "action"
|
else if rowItem.type = "action"
|
||||||
if rowItem.action = "LoginDialog"
|
if rowItem.action = "LoginDialog"
|
||||||
dialog = CreateObject("roSGNode", "LoginDialog")
|
dialog = CreateObject("roSGNode", "LoginDialog")
|
||||||
dialog@.BindNode(invalid)
|
dialog@.BindNode()
|
||||||
m.top.getScene().dialog = dialog
|
m.top.getScene().dialog = dialog
|
||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ function VideoContentTask(input as object) as object
|
|||||||
contentNode = input.content
|
contentNode = input.content
|
||||||
invidiousNode = input.invidious
|
invidiousNode = input.invidious
|
||||||
preferencesNode = input.preferences
|
preferencesNode = input.preferences
|
||||||
playletServerUrl = input.playletServerUrl
|
playletServerPort = input.playletServerPort
|
||||||
|
|
||||||
if m.top.cancel
|
if m.top.cancel
|
||||||
return invalid
|
return invalid
|
||||||
@@ -35,7 +35,7 @@ function VideoContentTask(input as object) as object
|
|||||||
contentNode.title = metadata.title
|
contentNode.title = metadata.title
|
||||||
contentNode.secondaryTitle = metadata.author
|
contentNode.secondaryTitle = metadata.author
|
||||||
|
|
||||||
streamUrls = CreateStreamUrls(metadata, service, preferencesNode, playletServerUrl)
|
streamUrls = CreateStreamUrls(metadata, service, preferencesNode, playletServerPort)
|
||||||
contentNode.url = streamUrls[0]
|
contentNode.url = streamUrls[0]
|
||||||
|
|
||||||
SetCaptions(metadata, service, contentNode)
|
SetCaptions(metadata, service, contentNode)
|
||||||
@@ -52,7 +52,7 @@ function VideoContentTask(input as object) as object
|
|||||||
}
|
}
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function CreateStreamUrls(metadata as object, service as Invidious.InvidiousService, preferences as object, playletServerUrl as string) as object
|
function CreateStreamUrls(metadata as object, service as Invidious.InvidiousService, preferences as object, playletServerPort as integer) as object
|
||||||
instance = service.GetInstance()
|
instance = service.GetInstance()
|
||||||
proxyVideos = preferences["invidious.proxy_videos"]
|
proxyVideos = preferences["invidious.proxy_videos"]
|
||||||
|
|
||||||
@@ -65,9 +65,9 @@ function CreateStreamUrls(metadata as object, service as Invidious.InvidiousServ
|
|||||||
|
|
||||||
if preferredQuality = "720p"
|
if preferredQuality = "720p"
|
||||||
AddStreamUrls(streamUrls, metadata, service, proxyVideos)
|
AddStreamUrls(streamUrls, metadata, service, proxyVideos)
|
||||||
AddDashUrls(streamUrls, metadata, proxyVideos, playletServerUrl)
|
AddDashUrls(streamUrls, metadata, proxyVideos, playletServerPort)
|
||||||
else
|
else
|
||||||
AddDashUrls(streamUrls, metadata, proxyVideos, playletServerUrl)
|
AddDashUrls(streamUrls, metadata, proxyVideos, playletServerPort)
|
||||||
AddStreamUrls(streamUrls, metadata, service, proxyVideos)
|
AddStreamUrls(streamUrls, metadata, service, proxyVideos)
|
||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
@@ -84,11 +84,11 @@ function AddHlsUrls(streamUrls as object, metadata as object, proxyVideos as str
|
|||||||
AddUrls(streamUrls, hlsUrl, hlsUrlLocal, proxyVideos)
|
AddUrls(streamUrls, hlsUrl, hlsUrlLocal, proxyVideos)
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function AddDashUrls(streamUrls as object, metadata as object, proxyVideos as string, playletServerUrl as string) as void
|
function AddDashUrls(streamUrls as object, metadata as object, proxyVideos as string, playletServerPort as integer) as void
|
||||||
#if LOCAL_DASH
|
#if LOCAL_DASH
|
||||||
' Redirect to Playet's local web server, where will will be
|
' Redirect to Playet's local web server, where will will be
|
||||||
' dynamically generating the DASH manifest.
|
' dynamically generating the DASH manifest.
|
||||||
dashUrl = `${playletServerUrl}/api/dash?v=${metadata.videoId}`
|
dashUrl = `http://127.0.0.1:${playletServerPort}/api/dash?v=${metadata.videoId}`
|
||||||
#else
|
#else
|
||||||
if metadata.dashUrl = invalid
|
if metadata.dashUrl = invalid
|
||||||
return
|
return
|
||||||
@@ -168,4 +168,3 @@ function SetCaptions(metadata as object, service as object, contentNode as objec
|
|||||||
contentNode.ClosedCaptions = True
|
contentNode.ClosedCaptions = True
|
||||||
contentNode.SubtitleTracks = subtitleTracks
|
contentNode.SubtitleTracks = subtitleTracks
|
||||||
end function
|
end function
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@ function StartVideoContentTask(videoContentNode as object)
|
|||||||
content: videoContentNode,
|
content: videoContentNode,
|
||||||
invidious: m.top.invidious,
|
invidious: m.top.invidious,
|
||||||
preferences: m.top.preferences,
|
preferences: m.top.preferences,
|
||||||
playletServerUrl: m.top.webServer@.GetServerAddress(invalid)
|
playletServerPort: m.top.webServer.port
|
||||||
}, OnVideoContentTaskResults)
|
}, OnVideoContentTaskResults)
|
||||||
end function
|
end function
|
||||||
|
|
||||||
@@ -186,20 +186,20 @@ function OnVideoPlayerStateChange() as void
|
|||||||
|
|
||||||
if state = "finished"
|
if state = "finished"
|
||||||
if content = invalid
|
if content = invalid
|
||||||
m.container@.watchedVideosClear(invalid)
|
m.container@.watchedVideosClear()
|
||||||
VideoUtils.CloseVideo()
|
VideoUtils.CloseVideo()
|
||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
|
|
||||||
metadata = content.metadata
|
metadata = content.metadata
|
||||||
if metadata = invalid
|
if metadata = invalid
|
||||||
m.container@.watchedVideosClear(invalid)
|
m.container@.watchedVideosClear()
|
||||||
VideoUtils.CloseVideo()
|
VideoUtils.CloseVideo()
|
||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
|
|
||||||
if not PlayNext(metadata.recommendedVideos)
|
if not PlayNext(metadata.recommendedVideos)
|
||||||
m.container@.watchedVideosClear(invalid)
|
m.container@.watchedVideosClear()
|
||||||
VideoUtils.CloseVideo()
|
VideoUtils.CloseVideo()
|
||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
@@ -226,7 +226,7 @@ function OnVideoPlayerStateChange() as void
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function PlayNext(recommendedVideos as object) as boolean
|
function PlayNext(recommendedVideos as object) as boolean
|
||||||
if m.playQueue@.PlayNextItem(invalid)
|
if m.playQueue@.PlayNextItem()
|
||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
@@ -253,7 +253,7 @@ function PlayNextRecommendedVideo(recommendedVideos as object) as boolean
|
|||||||
end if
|
end if
|
||||||
if not m.container@.watchedVideosContain(videoId)
|
if not m.container@.watchedVideosContain(videoId)
|
||||||
LogInfo(`Playing next recommended video (${videoId})`)
|
LogInfo(`Playing next recommended video (${videoId})`)
|
||||||
instance = m.invidious@.GetCurrentInstance(invalid)
|
instance = m.invidious@.GetCurrentInstance()
|
||||||
node = InvidiousContent.ToVideoContentNode(invalid, metadata, instance)
|
node = InvidiousContent.ToVideoContentNode(invalid, metadata, instance)
|
||||||
m.playQueue@.Play(node, -1)
|
m.playQueue@.Play(node, -1)
|
||||||
return true
|
return true
|
||||||
@@ -277,7 +277,7 @@ function OnkeyEvent(key as string, press as boolean) as boolean
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
if key = "back"
|
if key = "back"
|
||||||
m.container@.watchedVideosClear(invalid)
|
m.container@.watchedVideosClear()
|
||||||
VideoUtils.CloseVideo()
|
VideoUtils.CloseVideo()
|
||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
|
|||||||
@@ -13,14 +13,14 @@ namespace VideoUtils
|
|||||||
LogError("VideoContainer not found! Attempting to restore focus to top screen...")
|
LogError("VideoContainer not found! Attempting to restore focus to top screen...")
|
||||||
appController = m.top.getScene().findNode("AppController")
|
appController = m.top.getScene().findNode("AppController")
|
||||||
if appController <> invalid
|
if appController <> invalid
|
||||||
appController@.FocusTopScreen(invalid)
|
appController@.FocusTopScreen()
|
||||||
end if
|
end if
|
||||||
DialogUtils.ShowDialog(`VideoContainer not found!\nPlease try again. If the problem persist, contact Playlet authors.`, "Error playing video")
|
DialogUtils.ShowDialog(`VideoContainer not found!\nPlease try again. If the problem persist, contact Playlet authors.`, "Error playing video")
|
||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
videoPlayer = container.createChild("videoPlayer")
|
videoPlayer = container.createChild("videoPlayer")
|
||||||
videoPlayer.id = "VideoPlayer"
|
videoPlayer.id = "VideoPlayer"
|
||||||
videoPlayer@.BindNode(invalid)
|
videoPlayer@.BindNode()
|
||||||
|
|
||||||
videoPlayer@.PlayWithContent(contentNode)
|
videoPlayer@.PlayWithContent(contentNode)
|
||||||
|
|
||||||
@@ -39,10 +39,10 @@ namespace VideoUtils
|
|||||||
if videoPlayer = invalid
|
if videoPlayer = invalid
|
||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
videoPlayer@.Close(invalid)
|
videoPlayer@.Close()
|
||||||
|
|
||||||
if setFocus
|
if setFocus
|
||||||
videoPlayer.appController@.FocusTopScreen(invalid)
|
videoPlayer.appController@.FocusTopScreen()
|
||||||
end if
|
end if
|
||||||
end function
|
end function
|
||||||
|
|
||||||
@@ -76,7 +76,7 @@ namespace VideoUtils
|
|||||||
if videoContainer.fullscreen
|
if videoContainer.fullscreen
|
||||||
NodeSetFocus(videoPlayer, true)
|
NodeSetFocus(videoPlayer, true)
|
||||||
else
|
else
|
||||||
videoPlayer.appController@.FocusTopScreen(invalid)
|
videoPlayer.appController@.FocusTopScreen()
|
||||||
end if
|
end if
|
||||||
return true
|
return true
|
||||||
end function
|
end function
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ namespace Http
|
|||||||
response = context.response
|
response = context.response
|
||||||
invidiousNode = context.server.task.invidious
|
invidiousNode = context.server.task.invidious
|
||||||
|
|
||||||
authLink = invidiousNode@.GetAuthorizeTokenLink(invalid)
|
authLink = invidiousNode@.GetAuthorizeTokenLink()
|
||||||
response.Redirect(authLink)
|
response.Redirect(authLink)
|
||||||
return true
|
return true
|
||||||
end function)
|
end function)
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ namespace Http
|
|||||||
task = context.server.task
|
task = context.server.task
|
||||||
playQueue = task.playQueue
|
playQueue = task.playQueue
|
||||||
|
|
||||||
queue = playQueue@.GetQueue(invalid)
|
queue = playQueue@.GetQueue()
|
||||||
response.Json(queue)
|
response.Json(queue)
|
||||||
return true
|
return true
|
||||||
end function)
|
end function)
|
||||||
@@ -42,7 +42,7 @@ namespace Http
|
|||||||
contentNode = InvidiousContent.ToRowCellContentNode(payload, invalid)
|
contentNode = InvidiousContent.ToRowCellContentNode(payload, invalid)
|
||||||
playQueue@.AddToQueue(contentNode)
|
playQueue@.AddToQueue(contentNode)
|
||||||
|
|
||||||
queue = playQueue@.GetQueue(invalid)
|
queue = playQueue@.GetQueue()
|
||||||
response.Json(queue)
|
response.Json(queue)
|
||||||
return true
|
return true
|
||||||
end function)
|
end function)
|
||||||
@@ -95,7 +95,7 @@ namespace Http
|
|||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
playQueue@.Clear(invalid)
|
playQueue@.Clear()
|
||||||
response.Default(204, "OK")
|
response.Default(204, "OK")
|
||||||
return true
|
return true
|
||||||
end function)
|
end function)
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace Http
|
|||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
userPrefs = preferences@.GetUserPreferences(invalid)
|
userPrefs = preferences@.GetUserPreferences()
|
||||||
response.Json(userPrefs)
|
response.Json(userPrefs)
|
||||||
return true
|
return true
|
||||||
end function)
|
end function)
|
||||||
@@ -55,7 +55,7 @@ namespace Http
|
|||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
preferences@.ClearUserPreferences(invalid)
|
preferences@.ClearUserPreferences()
|
||||||
response.Default(204, "OK")
|
response.Default(204, "OK")
|
||||||
return true
|
return true
|
||||||
end function)
|
end function)
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ namespace Http
|
|||||||
state = {}
|
state = {}
|
||||||
|
|
||||||
if ArrayUtils.IndexOfString(keys, "app") <> -1
|
if ArrayUtils.IndexOfString(keys, "app") <> -1
|
||||||
appInfo = applicationInfoNode@.GetAppInfo(invalid)
|
appInfo = applicationInfoNode@.GetAppInfo()
|
||||||
|
|
||||||
if appInfo.lib_version_latest = "N/A"
|
if appInfo.lib_version_latest = "N/A"
|
||||||
' If the lib_version_latest field is not available, we can give it a few seconds
|
' If the lib_version_latest field is not available, we can give it a few seconds
|
||||||
@@ -44,15 +44,15 @@ namespace Http
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
if ArrayUtils.IndexOfString(keys, "device") <> -1
|
if ArrayUtils.IndexOfString(keys, "device") <> -1
|
||||||
state["device"] = applicationInfoNode@.GetDeviceInfo(invalid)
|
state["device"] = applicationInfoNode@.GetDeviceInfo()
|
||||||
end if
|
end if
|
||||||
|
|
||||||
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(invalid),
|
current_instance: invidiousNode@.GetCurrentInstance(),
|
||||||
' backup_instances: InvidiousSettings.GetBackupInstances(),
|
' backup_instances: InvidiousSettings.GetBackupInstances(),
|
||||||
auth_url: invidiousNode@.GetAuthorizeTokenLink(invalid),
|
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
|
||||||
@@ -60,7 +60,7 @@ namespace Http
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
if ArrayUtils.IndexOfString(keys, "preferences") <> -1
|
if ArrayUtils.IndexOfString(keys, "preferences") <> -1
|
||||||
state["preferences"] = preferencesNode@.GetUserPreferences(invalid)
|
state["preferences"] = preferencesNode@.GetUserPreferences()
|
||||||
end if
|
end if
|
||||||
|
|
||||||
response.Json(state)
|
response.Json(state)
|
||||||
|
|||||||
@@ -10,11 +10,11 @@ function AutoBindSceneGraph() as void
|
|||||||
m.global.AutoBindNodes = []
|
m.global.AutoBindNodes = []
|
||||||
|
|
||||||
for each node in nodes
|
for each node in nodes
|
||||||
node@.BindNodeFieldsAndProps(invalid)
|
node@.BindNodeFieldsAndProps()
|
||||||
end for
|
end for
|
||||||
|
|
||||||
for each node in nodes
|
for each node in nodes
|
||||||
node@.BindScopeFields(invalid)
|
node@.BindScopeFields()
|
||||||
end for
|
end for
|
||||||
|
|
||||||
for each node in nodes
|
for each node in nodes
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
[
|
||||||
|
"Now loading Playlet...",
|
||||||
|
"One moment please...",
|
||||||
|
"Downloading the internet...",
|
||||||
|
"Unclogging the tubes...",
|
||||||
|
"Warming up the flux capacitor...",
|
||||||
|
"Loading, ehm, stuff...",
|
||||||
|
"Restoring quantum entanglement...",
|
||||||
|
"Searching for kitten videos...",
|
||||||
|
"One Mississippi... two Mississippi...",
|
||||||
|
"Checking the TV's extended warranty...",
|
||||||
|
"Deleting system32...",
|
||||||
|
"Updating: 3 hours 32 minutes remaining...",
|
||||||
|
"Asking ChatGPT for humorous loading messages...",
|
||||||
|
"Loading today's sponsor... NordVPN!",
|
||||||
|
"Don't worry, this is normal...",
|
||||||
|
"Don't forget to like and subscribe...",
|
||||||
|
"Shoveling coal into the server...",
|
||||||
|
"Counting down from infinity...",
|
||||||
|
]
|
||||||
@@ -3,7 +3,7 @@ title=PlayletLib
|
|||||||
# Do not update version manually, it is auto updated from package.json
|
# Do not update version manually, it is auto updated from package.json
|
||||||
major_version=0
|
major_version=0
|
||||||
minor_version=17
|
minor_version=17
|
||||||
build_version=00001
|
build_version=00003
|
||||||
|
|
||||||
ui_resolutions=hd
|
ui_resolutions=hd
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace Tests
|
|||||||
|
|
||||||
@it("Returns a valid local ip address")
|
@it("Returns a valid local ip address")
|
||||||
function _()
|
function _()
|
||||||
ip = m.top@.GetLocalIpAddress(invalid)
|
ip = m.top@.GetLocalIpAddress()
|
||||||
m.assertTrue(m.ipAddressRegex.IsMatch(ip))
|
m.assertTrue(m.ipAddressRegex.IsMatch(ip))
|
||||||
end function
|
end function
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ namespace Tests
|
|||||||
end function
|
end function
|
||||||
}
|
}
|
||||||
|
|
||||||
ip = m.top@.GetLocalIpAddress(invalid)
|
ip = m.top@.GetLocalIpAddress()
|
||||||
m.assertInvalid(ip)
|
m.assertInvalid(ip)
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ namespace Tests
|
|||||||
function _()
|
function _()
|
||||||
m.navBar = CreateObject("roSGNode", "NavBar")
|
m.navBar = CreateObject("roSGNode", "NavBar")
|
||||||
m.navbar.appController = CreateObject("roSGNode", "AppController")
|
m.navbar.appController = CreateObject("roSGNode", "AppController")
|
||||||
m.navBar@.BindNode(invalid)
|
m.navBar@.BindNode()
|
||||||
end function
|
end function
|
||||||
|
|
||||||
@it("Populates the buttons based on content node")
|
@it("Populates the buttons based on content node")
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ class ApplicationInfo
|
|||||||
if not StringUtils.IsNullOrEmpty(m.node.lib_version_latest)
|
if not StringUtils.IsNullOrEmpty(m.node.lib_version_latest)
|
||||||
m.appInfo["lib_version_latest"] = m.node.lib_version_latest
|
m.appInfo["lib_version_latest"] = m.node.lib_version_latest
|
||||||
else
|
else
|
||||||
m.node@.GetLatestPlayletLibVersion(invalid)
|
m.node@.GetLatestPlayletLibVersion()
|
||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
|||||||
@@ -3,5 +3,13 @@ function ShowLoadingScreen()
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function HideLoadingScreen()
|
function HideLoadingScreen()
|
||||||
m.global.loadingIndicator.visible = false
|
loadingIndicator = m.global.loadingIndicator
|
||||||
|
loadingIndicator.visible = false
|
||||||
|
if loadingIndicator.hasField("message")
|
||||||
|
loadingIndicator.message = ""
|
||||||
|
end if
|
||||||
|
end function
|
||||||
|
|
||||||
|
function CopyLoadingMessagesToCache()
|
||||||
|
CopyFile("libpkg:/config/loading-messages.json5", "cachefs:/loading_messages_v1.json")
|
||||||
end function
|
end function
|
||||||
Generated
+6
-6
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-web",
|
"name": "playlet-web",
|
||||||
"version": "0.17.1",
|
"version": "0.17.3",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet-web",
|
"name": "playlet-web",
|
||||||
"version": "0.17.1",
|
"version": "0.17.3",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sveltejs/vite-plugin-svelte": "^3.0.1",
|
"@sveltejs/vite-plugin-svelte": "^3.0.1",
|
||||||
"@tailwindcss/typography": "^0.5.10",
|
"@tailwindcss/typography": "^0.5.10",
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
"tailwindcss": "^3.3.6",
|
"tailwindcss": "^3.3.6",
|
||||||
"tslib": "^2.6.2",
|
"tslib": "^2.6.2",
|
||||||
"typescript": "^5.3.3",
|
"typescript": "^5.3.3",
|
||||||
"vite": "^5.0.6",
|
"vite": "^5.0.7",
|
||||||
"vite-tsconfig-paths": "^4.2.2"
|
"vite-tsconfig-paths": "^4.2.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -2447,9 +2447,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/vite": {
|
"node_modules/vite": {
|
||||||
"version": "5.0.6",
|
"version": "5.0.7",
|
||||||
"resolved": "https://registry.npmjs.org/vite/-/vite-5.0.6.tgz",
|
"resolved": "https://registry.npmjs.org/vite/-/vite-5.0.7.tgz",
|
||||||
"integrity": "sha512-MD3joyAEBtV7QZPl2JVVUai6zHms3YOmLR+BpMzLlX2Yzjfcc4gTgNi09d/Rua3F4EtC8zdwPU8eQYyib4vVMQ==",
|
"integrity": "sha512-B4T4rJCDPihrQo2B+h1MbeGL/k/GMAHzhQ8S0LjQ142s6/+l3hHTT095ORvsshj4QCkoWu3Xtmob5mazvakaOw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"esbuild": "^0.19.3",
|
"esbuild": "^0.19.3",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-web",
|
"name": "playlet-web",
|
||||||
"version": "0.17.1",
|
"version": "0.17.3",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
"tailwindcss": "^3.3.6",
|
"tailwindcss": "^3.3.6",
|
||||||
"tslib": "^2.6.2",
|
"tslib": "^2.6.2",
|
||||||
"typescript": "^5.3.3",
|
"typescript": "^5.3.3",
|
||||||
"vite": "^5.0.6",
|
"vite": "^5.0.7",
|
||||||
"vite-tsconfig-paths": "^4.2.2"
|
"vite-tsconfig-paths": "^4.2.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -247,7 +247,7 @@
|
|||||||
|
|
||||||
<!-- Hide rows that are loaded but have no videos. Typically a
|
<!-- Hide rows that are loaded but have no videos. Typically a
|
||||||
disabled feed (like popular) or unauthenticated.
|
disabled feed (like popular) or unauthenticated.
|
||||||
TODO:P0 show action nodes (action to login)
|
TODO:P1 show action nodes (action to login)
|
||||||
-->
|
-->
|
||||||
{#if feedLoadState !== FeedLoadState.Loaded || videos.length !== 0}
|
{#if feedLoadState !== FeedLoadState.Loaded || videos.length !== 0}
|
||||||
<div class="text-lg font-semibold ml-4">
|
<div class="text-lg font-semibold ml-4">
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
# Playlet Brighterscript Plugins
|
||||||
|
This is the folder containing different [Brighterscript Plugins](https://github.com/rokucommunity/brighterscript/blob/master/docs/plugins.md) used by Playlet. Find their documentation [here](/docs/plugins.md)
|
||||||
@@ -13,16 +13,22 @@ shell.exec('git fetch --tags --force');
|
|||||||
const gitCommitHash = shell.exec('git rev-parse HEAD').stdout.trim();
|
const gitCommitHash = shell.exec('git rev-parse HEAD').stdout.trim();
|
||||||
|
|
||||||
// get current tag
|
// get current tag
|
||||||
const gitTag = shell.exec(`git describe --tags ${gitCommitHash} --abbrev=0`).stdout.trim();
|
const gitTags = shell.exec(`git tag --contains ${gitCommitHash}`)
|
||||||
|
.stdout.trim()
|
||||||
|
.split('\n')
|
||||||
|
.map(tag => tag.trim());
|
||||||
|
|
||||||
const expectedGitTag = `v${require('../package.json').version}`;
|
const expectedGitTag = `v${require('../package.json').version}`;
|
||||||
if (gitTag !== expectedGitTag) {
|
if (gitTags.length === 0) {
|
||||||
console.error(`Expected git tag ${expectedGitTag} but found ${gitTag}. Signing anyway...`);
|
console.error(`No git tag found. Signing anyway...`);
|
||||||
|
}
|
||||||
|
if (!gitTags.includes(expectedGitTag)) {
|
||||||
|
console.error(`Expected git tag ${expectedGitTag} but found [${gitTags.join(",")}]. Signing anyway...`);
|
||||||
}
|
}
|
||||||
|
|
||||||
// download playlet.zip from github
|
// download playlet.zip from github
|
||||||
const zipUrl = `https://github.com/iBicha/playlet/releases/download/${gitTag}/playlet.zip`
|
const zipUrl = `https://github.com/iBicha/playlet/releases/download/${expectedGitTag}/playlet.zip`
|
||||||
shell.exec(`curl -L -o release/playlet.zip "${zipUrl}"`);
|
shell.exec(`curl --fail -L -o release/playlet.zip "${zipUrl}"`);
|
||||||
|
|
||||||
// sign the package
|
// sign the package
|
||||||
shell.exec('node tools/sign-package.js');
|
shell.exec('node tools/sign-package.js');
|
||||||
Reference in new issue
Block a user