Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7ce3b2636c | ||
|
|
a75ce42373 | ||
|
|
fd8b61ad44 | ||
|
|
3391e3d787 | ||
|
|
862fea74e7 | ||
|
|
de4f64d38f | ||
|
|
aab99b2a2e | ||
|
|
51eb7bdfa2 | ||
|
|
3d52d00bde | ||
|
|
bd26e727c1 | ||
|
|
3b622f65f3 | ||
|
|
615439650e | ||
|
|
25330a6494 | ||
|
|
37e429f648 | ||
|
|
6e6ea94544 | ||
|
|
42dadec020 | ||
|
|
019fde1e67 | ||
|
|
fb0b1b8894 | ||
|
|
66df27cf0b | ||
|
|
feb968a72e | ||
|
|
9061275d6f | ||
|
|
059167ac56 | ||
|
|
7330b321a5 | ||
|
|
9a7db6aab2 | ||
|
|
48993dd9f5 | ||
|
|
7d9817994c | ||
|
|
403ed94e97 | ||
|
|
67252cd5d5 | ||
|
|
e4efc6832f | ||
|
|
13138740fb | ||
|
|
b37b89bffc | ||
|
|
888f7da214 | ||
|
|
750e24f724 | ||
|
|
bfd4f3e298 | ||
|
|
7b7801d7a5 | ||
|
|
ffb84d1c89 | ||
|
|
d29e51c7f2 | ||
|
|
b72a6d4614 | ||
|
|
289b845876 | ||
|
|
910d57795a | ||
|
|
ef733d8d88 | ||
|
|
6ad42f3fcd | ||
|
|
1ba5184d95 | ||
|
|
26ed985ecc | ||
|
|
6b47440cb5 | ||
|
|
ee3312763d | ||
|
|
7bb73e0fb6 | ||
|
|
f71ad7b873 | ||
|
|
0f6329997d | ||
|
|
58918f68fb | ||
|
|
8a63bc848d | ||
|
|
9315fa6cf7 | ||
|
|
15841cf5bf | ||
|
|
9c7de8f41f | ||
|
|
405e1aa703 | ||
|
|
79d9e0f069 | ||
|
|
d8bfd8859e | ||
|
|
1c8d075e87 | ||
|
|
13bb21c1f7 | ||
|
|
394dd23999 | ||
|
|
8e03ca0ea6 | ||
|
|
aebdc579a9 | ||
|
|
87e7d91169 | ||
|
|
c334736325 | ||
|
|
bb0a0725d6 | ||
|
|
f2ffb42876 | ||
|
|
edbfc86e56 | ||
|
|
b25eaafc82 | ||
|
|
ef9c653ad7 | ||
|
|
e9f015bb19 | ||
|
|
544671f246 | ||
|
|
f45ba30979 | ||
|
|
4953e4481f | ||
|
|
c7b0815768 | ||
|
|
4ab7f74a4e | ||
|
|
96916f6c37 | ||
|
|
eafad684b6 | ||
|
|
14d3e38aeb | ||
|
|
afe281c094 | ||
|
|
436078bdf8 | ||
|
|
20120538e4 | ||
|
|
eec4101d29 | ||
|
|
b135ba2a0a | ||
|
|
9c9f24cb39 | ||
|
|
6aeb4bc8b9 | ||
|
|
4beb7fbf3c | ||
|
|
4f3512023f | ||
|
|
f38115171b | ||
|
|
7456917cec | ||
|
|
4482d3333f | ||
|
|
1112070f63 | ||
|
|
37dde57c67 | ||
|
|
b52cd6f01b | ||
|
|
aa5be75e06 | ||
|
|
188463c6a7 | ||
|
|
793842f4dd | ||
|
|
7ca98e7ef2 | ||
|
|
77204c4449 | ||
|
|
190548245a | ||
|
|
71f9820ed6 | ||
|
|
87e50e713f | ||
|
|
2d55569614 | ||
|
|
83a59a5e9c | ||
|
|
7d1ba07286 | ||
|
|
ec9178d687 | ||
|
|
84c6d822e2 | ||
|
|
7503c2dbd6 | ||
|
|
ca3cad4058 | ||
|
|
c7f14dfc38 | ||
|
|
ac3d1cea17 |
No files matched your search
@@ -24,10 +24,10 @@ jobs:
|
|||||||
git config --local user.email "githubaction@githubaction.com"
|
git config --local user.email "githubaction@githubaction.com"
|
||||||
git config --local user.name "github-action linter"
|
git config --local user.name "github-action linter"
|
||||||
|
|
||||||
- name: Use Node.js 18.x
|
- name: Use Node.js 20.x
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 18.x
|
node-version: 20.x
|
||||||
cache: "npm"
|
cache: "npm"
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|||||||
@@ -17,10 +17,10 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Use Node.js 18.x
|
- name: Use Node.js 20.x
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 18.x
|
node-version: 20.x
|
||||||
cache: "npm"
|
cache: "npm"
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
@@ -32,11 +32,11 @@ jobs:
|
|||||||
- name: Build Playlet
|
- name: Build Playlet
|
||||||
run: npm run build:release:ci
|
run: npm run build:release:ci
|
||||||
|
|
||||||
- name: Use Java 17
|
- name: Use Java 21
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: "temurin"
|
distribution: "temurin"
|
||||||
java-version: "17"
|
java-version: "21"
|
||||||
|
|
||||||
- name: Download the Static Channel Analysis CLI
|
- name: Download the Static Channel Analysis CLI
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -24,10 +24,10 @@ jobs:
|
|||||||
git config --local user.name "github-action wiki updater"
|
git config --local user.name "github-action wiki updater"
|
||||||
working-directory: ./playlet.wiki
|
working-directory: ./playlet.wiki
|
||||||
|
|
||||||
- name: Use Node.js 18.x
|
- name: Use Node.js 20.x
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 18.x
|
node-version: 20.x
|
||||||
cache: "npm"
|
cache: "npm"
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|||||||
@@ -12,10 +12,10 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Use Node.js 18.x
|
- name: Use Node.js 20.x
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 18.x
|
node-version: 20.x
|
||||||
cache: "npm"
|
cache: "npm"
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
{
|
{
|
||||||
|
"files.associations": {
|
||||||
|
"**/locale/**/*.ts": "xml"
|
||||||
|
},
|
||||||
"brightscript.output.clearConsoleOnChannelStart": false,
|
"brightscript.output.clearConsoleOnChannelStart": false,
|
||||||
"brightscript.bsdk": "node_modules/brighterscript",
|
"brightscript.bsdk": "node_modules/brighterscript",
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
|
|||||||
@@ -2,9 +2,110 @@
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file.
|
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.1.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.22.0] - 2024-03-24
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Context menu sort options for channel videos and playlists
|
||||||
|
- Localization support and French translations
|
||||||
|
- Channel releases
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Colors to be more broadcast safe
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- A bug where instance testing is not immediately cancelled when the testing page is closed
|
||||||
|
- A bug in the web app where "upcoming" videos show up as "live"
|
||||||
|
- Search sort filters
|
||||||
|
|
||||||
|
## [0.21.2] - 2024-03-10
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Deeplinking required for certification
|
||||||
|
|
||||||
|
## [0.21.1] - 2024-03-09
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Subscriber count in the channel page
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- A bug where videos that did not premiere yet would error with a playback error
|
||||||
|
- A bug where a playback error dialog is dismissed too fast before playing the next video
|
||||||
|
|
||||||
|
## [0.21.0] - 2024-03-07
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Support for multiple profiles. You can now use multiple Invidious accounts.
|
||||||
|
- When a video error dialog shows, a timer with 10 seconds starts to play the next video
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- A bug where the loading screen does not disappear if search results are empty.
|
||||||
|
- Empty invidious instance in preferences when default instance is being used
|
||||||
|
|
||||||
|
## [0.20.2] - 2024-02-26
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Small improvement in the context menu of the Playlist view
|
||||||
|
- Videos can be paused and resumed using the `OK` remote button
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- `Device connected` notification only show once every 30 minutes per device to avoid spam
|
||||||
|
- SponsorBlock category "highlight" was not visible in chapter label
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- UI focus images are now with rounded corners, and with a slight glow
|
||||||
|
|
||||||
|
## [0.20.1] - 2024-02-23
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- `Device connected` notification showing repeatedly
|
||||||
|
|
||||||
|
## [0.20.0] - 2024-02-21
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Support for casting from the YouTube app (also known as Lounge API, or LeanBack)
|
||||||
|
- Connect to Playlet from the YouTube mobile app or from certain browsers (such as Chrome)
|
||||||
|
- Connect to Playlet from local network, or through the TV code.
|
||||||
|
- On the cast dialog in your YouTube mobile app, you might see two listings for the same device. E.g. `Roku TV` and `Playlet on Roku TV`. Use the `Playlet on` one to cast to Playlet, and the other one to cast to the regular YouTube TV app.
|
||||||
|
- The functionality is still experiemntal, and has some limitations. To name a few:
|
||||||
|
- The queue does not perfectly sync between the mobile app and Playlet, espeically if it gets modified by the web app or in Playlet.
|
||||||
|
- Many functions (such as d-pad controls or setting the volume) are not working due to OS limitations
|
||||||
|
- Many functions (such as changing the subtitle settings) are not currently implemented
|
||||||
|
- **ATTENTION**: This feature is not very privacy friendly. When connected to a lounge, all network traffic (videos played, queued, etc) go through YouTube servers. For this reason, certain measures are taken:
|
||||||
|
- While Playlet broadcasts its casting capabilities to the local network, it does not connect to a lounge for the first time until:
|
||||||
|
- A device connects to Playlet (using DIAL/Connect using Wi-Fi)
|
||||||
|
- A `Link with TV code` is generated, by visiting the `Remote` -> `Link with TV code` tab.
|
||||||
|
- Playlet disconnects from previous lounge sessions on start, and joins a new one instead of one continous session. In other words, restarting Playlet will disconnect your second device. This is a feature, not a bug.
|
||||||
|
- Playlet does not expose device details, and uses a randomly generated id on each start, instead of consistent device id.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- The queue no longer contains playlists. When a playlist is added to the queue, the entire playlist is loaded.
|
||||||
|
- It can take a few seconds to load large playlist before it can be added to the queue
|
||||||
|
- This is done to be more compatible more the lounge, which does not contain "Playlists in the queue" concept.
|
||||||
|
- The `Web App` tab is now called `Remote`. It can be used to open the web app, or connect using Lounge (cast from YouTube)
|
||||||
|
- Removed `fields` from Invidious requests, as per [https://github.com/iv-org/invidious/pull/4276](https://github.com/iv-org/invidious/pull/4276)
|
||||||
|
- The `POST /api/queue/` no longer returns the current queue. Instead it returns a 204.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- [Perf] improved some caching of videos in the queue
|
||||||
|
|
||||||
## [0.19.2] - 2024-02-11
|
## [0.19.2] - 2024-02-11
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
@@ -58,7 +159,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- If you like to add these two feeds to your bookmarks:
|
- If you like to add these two feeds to your bookmarks:
|
||||||
- Search for `Funny` (or `News`)
|
- Search for `Funny` (or `News`)
|
||||||
- Set the `Sort by` filter to `Upload date`
|
- Set the `Sort by` filter to `Upload date`
|
||||||
- Press and hold the `Ok` button while a video from the search result is selected
|
- Press and hold the `OK` button while a video from the search result is selected
|
||||||
- Choose the `Add to "Search - Funny"` option
|
- Choose the `Add to "Search - Funny"` option
|
||||||
|
|
||||||
## [0.18.0] - 2023-12-28
|
## [0.18.0] - 2023-12-28
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
# PRIVACY POLICY
|
# PRIVACY POLICY
|
||||||
|
|
||||||
## Playlet
|
## Playlet
|
||||||
|
|
||||||
Playlet, the Roku app, does not collect any user information whatsoever.
|
Playlet, the Roku app, does not collect any user information whatsoever.
|
||||||
In fact, it does not have any servers capable of collecting any form of data.
|
In fact, it does not have any servers capable of collecting any form of data.
|
||||||
|
|
||||||
Playlet does not show advertising, whether personalized or non personalized.
|
Playlet does not show advertising, whether personalized or non personalized.
|
||||||
|
|
||||||
## Invidious
|
## Invidious
|
||||||
|
|
||||||
Playlet may request information from one or more [Invidious](https://invidious.io/)
|
Playlet may request information from one or more [Invidious](https://invidious.io/)
|
||||||
servers, depending on user configuration. With these requests, absolutely no
|
servers, depending on user configuration. With these requests, absolutely no
|
||||||
user data is collected, and only the bare minimum and necessary information
|
user data is collected, and only the bare minimum and necessary information
|
||||||
@@ -23,6 +25,7 @@ keywords. In case the user has privacy concerns, they can host their own
|
|||||||
Invidious instance and use it from Playlet.
|
Invidious instance and use it from Playlet.
|
||||||
|
|
||||||
## SponsorBlock
|
## SponsorBlock
|
||||||
|
|
||||||
Playlet may request information from a [SponsorBlock](https://github.com/ajayyy/SponsorBlock)
|
Playlet may request information from a [SponsorBlock](https://github.com/ajayyy/SponsorBlock)
|
||||||
server, in order to get sponsor sections for requested videos to watch.
|
server, in order to get sponsor sections for requested videos to watch.
|
||||||
With these requests, absolutely no
|
With these requests, absolutely no
|
||||||
@@ -37,3 +40,13 @@ Additionally, Playlet may send a "skipped" event to SponsorBlock, to indicate
|
|||||||
that a section of a video has been skipped. This event does not have any
|
that a section of a video has been skipped. This event does not have any
|
||||||
tracking information attached to it, and it is anonymous. It is merely to
|
tracking information attached to it, and it is anonymous. It is merely to
|
||||||
indicate to contributers how much their contributions are being used in the wild.
|
indicate to contributers how much their contributions are being used in the wild.
|
||||||
|
|
||||||
|
## LeanBack
|
||||||
|
|
||||||
|
LeanBack, also known as Lounge API, also known as "cast from phone". Is a feature that Playlet implmements as a convenience to allow users to use a separate device to browse and cast videos.
|
||||||
|
When this feature is used, all traffic related to the videos being watched, added to the queue, and the video player state is routed through YouTube servers.
|
||||||
|
|
||||||
|
Playlet tries to preserve user privacy, to the best of its ability, by implementing several techniques, such as randomizing device id, using a fresh session on each start, and only providing necessary fields for the feature to function.
|
||||||
|
Additionally, Playlet does not join a session/lounge, until a device is attempting to connect using DIAL (**DI**scovery **A**nd **L**aunch spec), or when a `Link with TV code` is generated, by visiting the appropriate settings page.
|
||||||
|
|
||||||
|
If you have privacy concerns and do not wish to use this functionality, simply do not connect from a local network using the YouTube app or the browser, and do not visit the `Link with TV code` tab.
|
||||||
@@ -9,6 +9,9 @@
|
|||||||
<img alt="Current Release" src="https://img.shields.io/github/release/iBicha/playlet.svg"/>
|
<img alt="Current Release" src="https://img.shields.io/github/release/iBicha/playlet.svg"/>
|
||||||
<img alt="Total Downloads" src="https://img.shields.io/github/downloads/iBicha/playlet/latest/playlet-lib.zip.svg"/>
|
<img alt="Total Downloads" src="https://img.shields.io/github/downloads/iBicha/playlet/latest/playlet-lib.zip.svg"/>
|
||||||
</a>
|
</a>
|
||||||
|
<a href="https://hosted.weblate.org/engage/playlet/">
|
||||||
|
<img src="https://hosted.weblate.org/widget/playlet/svg-badge.svg" alt="Translation status" />
|
||||||
|
</a>
|
||||||
<a href="/LICENSE">
|
<a href="/LICENSE">
|
||||||
<img alt="AGPL-3.0 license" src="https://img.shields.io/github/license/iBicha/playlet.svg"/>
|
<img alt="AGPL-3.0 license" src="https://img.shields.io/github/license/iBicha/playlet.svg"/>
|
||||||
</a>
|
</a>
|
||||||
@@ -42,16 +45,16 @@ More under [Screenshots](./docs/screenshots/README.md)
|
|||||||
- 🕵️ No Tracking
|
- 🕵️ No Tracking
|
||||||
- 🛡️ Privacy driven (uses Invidious backend)
|
- 🛡️ Privacy driven (uses Invidious backend)
|
||||||
- ⚔️ SponsorBlock integration (skips undesirable sections in videos)
|
- ⚔️ SponsorBlock integration (skips undesirable sections in videos)
|
||||||
- 📱 Browse, search, and cast from phone using the web app
|
- 📱 Browse, search, and cast from phone using the YouTube app or the browser
|
||||||
- 🔮 Picture-in-picture mode
|
- 🔮 Picture-in-picture mode
|
||||||
- ⚡ Fast! [Check out how we compare with the official YouTube app](https://youtu.be/qmSvA-QQW20)
|
- ⚡ Fast! [Check out how we compare with the official YouTube app](https://youtu.be/qmSvA-QQW20)
|
||||||
|
|
||||||
### Cast from phone
|
### Cast from phone
|
||||||
|
|
||||||
1. Open "Web app" tab in Playlet
|
- Open "Remote" tab in Playlet
|
||||||
1. Scan QR Code with Phone
|
- Scan QR Code with Phone, and use the browser; OR
|
||||||
1. Browse or search videos
|
- Use the YouTube app to connect using the same Wi-Fi; OR
|
||||||
1. Click the video and choose the "Play on TV" option
|
- Use the `Link with TV code` to connect
|
||||||
|
|
||||||
### Picture-in-picture
|
### Picture-in-picture
|
||||||
|
|
||||||
@@ -63,7 +66,7 @@ More under [Screenshots](./docs/screenshots/README.md)
|
|||||||
|
|
||||||
1. Open settings in Playlet
|
1. Open settings in Playlet
|
||||||
1. Select Invidious -> Instance
|
1. Select Invidious -> Instance
|
||||||
1. Set a custom instance, or choose a public one hosted by volunteers (from https://api.invidious.io/)
|
1. Set a custom instance, or choose a public one hosted by volunteers (from [api.invidious.io](https://api.invidious.io/))
|
||||||
1. Optionally, Select `Test instance` to make sure it works
|
1. Optionally, Select `Test instance` to make sure it works
|
||||||
1. Hit save
|
1. Hit save
|
||||||
|
|
||||||
|
|||||||
@@ -40,6 +40,18 @@
|
|||||||
"regex": "\\b(?!_unused)unused\\b",
|
"regex": "\\b(?!_unused)unused\\b",
|
||||||
"regexFlags": "ig",
|
"regexFlags": "ig",
|
||||||
"message": "unused args should start with _ (e.g. _unused)"
|
"message": "unused args should start with _ (e.g. _unused)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "NO_OPTIONAL_CHAINING",
|
||||||
|
"regex": "\\?[\\.|\\[|\\(|@]",
|
||||||
|
"regexFlags": "ig",
|
||||||
|
"message": "No optional chaning (var1?.property). Do a type check instead."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"code": "NO_TRANSLATE_STRING_LITERAL",
|
||||||
|
"regex": "\\bTr\\s*\\(\\s*\"[^\\\"]*\"\\s*\\)",
|
||||||
|
"regexFlags": "ig",
|
||||||
|
"message": "Tr(\"String\") is not allowed. Use Tr(Locale.Key) instead."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"files": [
|
"files": [
|
||||||
@@ -50,6 +62,7 @@
|
|||||||
"!**/*.psd",
|
"!**/*.psd",
|
||||||
"!**/*.svg",
|
"!**/*.svg",
|
||||||
"!**/*.svg.meta.json5",
|
"!**/*.svg.meta.json5",
|
||||||
|
"locale/**",
|
||||||
"config/**",
|
"config/**",
|
||||||
"lib/**",
|
"lib/**",
|
||||||
"www/**",
|
"www/**",
|
||||||
@@ -73,7 +86,8 @@
|
|||||||
"../tools/bs-plugins/logger-plugin.ts",
|
"../tools/bs-plugins/logger-plugin.ts",
|
||||||
"../tools/bs-plugins/image-gen-plugin.ts",
|
"../tools/bs-plugins/image-gen-plugin.ts",
|
||||||
"../tools/bs-plugins/type-gen-plugin.ts",
|
"../tools/bs-plugins/type-gen-plugin.ts",
|
||||||
"../tools/bs-plugins/web-server-plugin.ts"
|
"../tools/bs-plugins/web-server-plugin.ts",
|
||||||
|
"../tools/bs-plugins/locale-validation-plugin.ts"
|
||||||
],
|
],
|
||||||
"retainStagingDir": true,
|
"retainStagingDir": true,
|
||||||
"require": [
|
"require": [
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
"!**/*.psd",
|
"!**/*.psd",
|
||||||
"!**/*.svg",
|
"!**/*.svg",
|
||||||
"!**/*.svg.meta.json5",
|
"!**/*.svg.meta.json5",
|
||||||
|
"locale/**",
|
||||||
"config/**",
|
"config/**",
|
||||||
"lib/**",
|
"lib/**",
|
||||||
"www/**",
|
"www/**",
|
||||||
@@ -29,7 +30,8 @@
|
|||||||
"../tools/bs-plugins/logger-plugin.ts",
|
"../tools/bs-plugins/logger-plugin.ts",
|
||||||
"../tools/bs-plugins/image-gen-plugin.ts",
|
"../tools/bs-plugins/image-gen-plugin.ts",
|
||||||
"../tools/bs-plugins/type-gen-plugin.ts",
|
"../tools/bs-plugins/type-gen-plugin.ts",
|
||||||
"../tools/bs-plugins/web-server-plugin.ts"
|
"../tools/bs-plugins/web-server-plugin.ts",
|
||||||
|
"../tools/bs-plugins/locale-validation-plugin.ts"
|
||||||
],
|
],
|
||||||
"rooibos": {
|
"rooibos": {
|
||||||
"logLevel": 2,
|
"logLevel": 2,
|
||||||
|
|||||||
@@ -294,14 +294,20 @@ This is mostly useful to QA the `canary` release (see [Canary release](https://e
|
|||||||
|
|
||||||
#### In case of a softlock
|
#### In case of a softlock
|
||||||
|
|
||||||
If the dev menu is used to load a custom Playlet lib url, but the lib does not have a functionality to revert back:
|
If the dev menu is used to load a custom Playlet lib url, but you couldn't revert back:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -d '' "http://$ROKU_DEV_TARGET:8060/launch/dev?clearPlayletLibUrls=true"
|
curl -d '' "http://$ROKU_DEV_TARGET:8060/launch/693751?clearPlayletLibUrls=true"
|
||||||
```
|
```
|
||||||
|
|
||||||
This will remove the custom lib, and revert to using default (latest release from Github).
|
This will remove the custom lib, and revert to using default (latest release from Github).
|
||||||
|
|
||||||
|
If you need to clear all the data from the registry, use
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl -d '' "http://$ROKU_DEV_TARGET:8060/launch/693751?clearRegistry=true"
|
||||||
|
```
|
||||||
|
|
||||||
## CI/CD
|
## CI/CD
|
||||||
|
|
||||||
On pull requests, a Github action will run `lint:fix` and `format:fix` and push changes to the PR branch, to keep things tidy.
|
On pull requests, a Github action will run `lint:fix` and `format:fix` and push changes to the PR branch, to keep things tidy.
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ openapi: 3.0.0
|
|||||||
|
|
||||||
info:
|
info:
|
||||||
title: Playlet Web API
|
title: Playlet Web API
|
||||||
version: 0.19.2
|
version: 0.22.0
|
||||||
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
|
||||||
@@ -140,9 +140,9 @@ paths:
|
|||||||
description: No Content
|
description: No Content
|
||||||
/api/queue:
|
/api/queue:
|
||||||
get:
|
get:
|
||||||
summary: Get play queue
|
summary: Get video queue
|
||||||
description: Get the current videos in the queue.
|
description: Get the current videos in the queue.
|
||||||
operationId: getPlayQueue
|
operationId: getVideoQueue
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: OK
|
description: OK
|
||||||
@@ -151,56 +151,43 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
index:
|
|
||||||
type: integer
|
|
||||||
playlistIndex:
|
|
||||||
type: integer
|
|
||||||
items:
|
items:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: "#/components/schemas/PlayQueueObject"
|
$ref: "#/components/schemas/VideoQueueObject"
|
||||||
|
index:
|
||||||
|
type: integer
|
||||||
|
nowPlaying:
|
||||||
|
$ref: "#/components/schemas/VideoQueueObject"
|
||||||
post:
|
post:
|
||||||
summary: Add to play queue
|
summary: Add to video queue
|
||||||
description: Add a video or a playlist to the queue.
|
description: Add a video or a playlist to the queue.
|
||||||
operationId: addToPlayQueue
|
operationId: addToVideoQueue
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/PlayQueueObject"
|
$ref: "#/components/schemas/VideoQueueObject"
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"204":
|
||||||
description: OK
|
description: No Content
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
index:
|
|
||||||
type: integer
|
|
||||||
playlistIndex:
|
|
||||||
type: integer
|
|
||||||
items:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
$ref: "#/components/schemas/PlayQueueObject"
|
|
||||||
delete:
|
delete:
|
||||||
summary: Clear play queue
|
summary: Clear video queue
|
||||||
description: Clear the play queue.
|
description: Clear the video queue.
|
||||||
operationId: clearPlayQueue
|
operationId: clearVideoQueue
|
||||||
responses:
|
responses:
|
||||||
"204":
|
"204":
|
||||||
description: No Content
|
description: No Content
|
||||||
/api/queue/play:
|
/api/queue/play:
|
||||||
post:
|
post:
|
||||||
summary: Play video or playlist
|
summary: Play video
|
||||||
description: Play a video or playlist. This adds the video or playlist to the current position in the queue and plays it.
|
description: Play a video or playlist. This adds the video or playlist to the current position in the queue and plays it.
|
||||||
operationId: playPlayQueue
|
operationId: playVideoQueue
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/PlayQueueObject"
|
$ref: "#/components/schemas/VideoQueueObject"
|
||||||
responses:
|
responses:
|
||||||
"204":
|
"204":
|
||||||
description: No Content
|
description: No Content
|
||||||
@@ -335,14 +322,63 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
format: uri
|
format: uri
|
||||||
/invidious/logout:
|
/api/profiles:
|
||||||
get:
|
get:
|
||||||
summary: Logout from Invidious
|
summary: Get profiles
|
||||||
description: Logout from Invidious, and invalidate the token if any.
|
description: Get the logged profiles, and the currently active profile.
|
||||||
operationId: invidiousLogout
|
operationId: getProfiles
|
||||||
responses:
|
responses:
|
||||||
"204":
|
"200":
|
||||||
description: No Content
|
description: OK
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
currentProfile:
|
||||||
|
type: string
|
||||||
|
profiles:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: "#/components/schemas/ProfileObject"
|
||||||
|
delete:
|
||||||
|
summary: Logout from a profile
|
||||||
|
description: Logout from a profile. This will remove the profile from the list of logged profiles.
|
||||||
|
operationId: logoutProfile
|
||||||
|
parameters:
|
||||||
|
- name: id
|
||||||
|
in: query
|
||||||
|
description: The ID of the profile to logout
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: OK
|
||||||
|
"400":
|
||||||
|
description: Bad Request
|
||||||
|
"404":
|
||||||
|
description: Not Found
|
||||||
|
/api/profiles/activate:
|
||||||
|
post:
|
||||||
|
summary: Activate a profile
|
||||||
|
description: Activate a profile. This will set the profile as the active profile.
|
||||||
|
operationId: activateProfile
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: OK
|
||||||
|
"400":
|
||||||
|
description: Bad Request
|
||||||
|
"404":
|
||||||
|
description: Not Found
|
||||||
|
|
||||||
# Roku External Control Protocol (ECP)
|
# Roku External Control Protocol (ECP)
|
||||||
/input/{appId}:
|
/input/{appId}:
|
||||||
@@ -536,6 +572,8 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
friendly_name:
|
friendly_name:
|
||||||
type: string
|
type: string
|
||||||
|
current_locale:
|
||||||
|
type: string
|
||||||
invidious:
|
invidious:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@@ -543,14 +581,17 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
auth_url:
|
auth_url:
|
||||||
type: string
|
type: string
|
||||||
logged_in:
|
|
||||||
type: boolean
|
|
||||||
logged_in_instance:
|
|
||||||
type: string
|
|
||||||
logged_in_username:
|
|
||||||
type: string
|
|
||||||
preferences:
|
preferences:
|
||||||
$ref: "#/components/schemas/PreferencesObject"
|
$ref: "#/components/schemas/PreferencesObject"
|
||||||
|
profiles:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
currentProfile:
|
||||||
|
type: string
|
||||||
|
profiles:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: "#/components/schemas/ProfileObject"
|
||||||
PreferencesObject:
|
PreferencesObject:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@@ -573,8 +614,19 @@ components:
|
|||||||
type: boolean
|
type: boolean
|
||||||
sponsorblock.show_notifications:
|
sponsorblock.show_notifications:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
ProfileObject:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
username:
|
||||||
|
type: string
|
||||||
|
serverUrl:
|
||||||
|
type: string
|
||||||
# TODO:P1 add the rest of properties
|
# TODO:P1 add the rest of properties
|
||||||
PlayQueueObject:
|
VideoQueueObject:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
videoId:
|
videoId:
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
- [Logger](#logger)
|
- [Logger](#logger)
|
||||||
- [Type Gen](#type-gen)
|
- [Type Gen](#type-gen)
|
||||||
- [Web Server](#web-server)
|
- [Web Server](#web-server)
|
||||||
|
- [Locale validation](#locale-validation)
|
||||||
|
|
||||||
Playlet implements a few [Brighterscript Plugins](https://github.com/rokucommunity/brighterscript/blob/master/docs/plugins.md). The plugins inject themselves in the compilation process, allowing the modification of bs scripts, xml components, and even assets or the app manifest. Let's start with a simple one:
|
Playlet implements a few [Brighterscript Plugins](https://github.com/rokucommunity/brighterscript/blob/master/docs/plugins.md). The plugins inject themselves in the compilation process, allowing the modification of bs scripts, xml components, and even assets or the app manifest. Let's start with a simple one:
|
||||||
|
|
||||||
@@ -602,3 +603,23 @@ There one special annotation, and one special route:
|
|||||||
- `*` matches all paths
|
- `*` matches all paths
|
||||||
|
|
||||||
So `@all(*)` would be a middleware that will be matched with any request.
|
So `@all(*)` would be a middleware that will be matched with any request.
|
||||||
|
|
||||||
|
## Locale validation
|
||||||
|
|
||||||
|
**[Source](/tools/bs-plugins/locale-validation-plugin.ts)**
|
||||||
|
|
||||||
|
### Why
|
||||||
|
|
||||||
|
Roku's built-in localization system has some undesired side effects: for example, it might translate node ids, which would break the relationship between the nodes.
|
||||||
|
This plugin enforces some rules to ensure translation files are kept up to date with code implementation.
|
||||||
|
See the next section for the validation rules.
|
||||||
|
|
||||||
|
### How
|
||||||
|
|
||||||
|
The plugin checks for the following:
|
||||||
|
|
||||||
|
- Translated words and sentenses are defined in an enum annotated with `@locale`
|
||||||
|
- All the values in the `@locale` enums must be provided in the English (`en_US`) translation. This is because `en_US` is the fallback translation when the current localte translations are not complete.
|
||||||
|
- `en_US` must have matching source and translation values, so it can act as a fallback translation.
|
||||||
|
- All `source` translations from all languages must be present in the `@locale` enums. This is to prevent renaming the values in the code without updating translation files.
|
||||||
|
- Translation `source` keys can't be used except for certain fields such as `"text"` and `"title"`. This is to prevent the accidental localization of non-display fields, such as node ids.
|
||||||
@@ -14,13 +14,17 @@
|
|||||||
| ------------------------- | --------------------------- |
|
| ------------------------- | --------------------------- |
|
||||||
|  |  |
|
|  |  |
|
||||||
|
|
||||||
| Settings | Invidious instances | Invidious testing |
|
| Profiles | Settings |
|
||||||
| --------------------------- | ------------------------------------------------ | --------------------------------------------- |
|
| --------------------------- | --------------------------- |
|
||||||
|  |  |  |
|
|  |  |
|
||||||
|
|
||||||
| Link to web app | App info |
|
| Invidious instances | Invidious testing |
|
||||||
| ----------------------------------- | --------------------------- |
|
| ------------------------------------------------ | --------------------------------------------- |
|
||||||
|  |  |
|
|  |  |
|
||||||
|
|
||||||
|
| Remote | Info |
|
||||||
|
| ----------------------- | ------------------- |
|
||||||
|
|  |  |
|
||||||
|
|
||||||
## Playlet web app
|
## Playlet web app
|
||||||
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 98 KiB |
|
Before Width: | Height: | Size: 123 KiB After Width: | Height: | Size: 122 KiB |
|
Before Width: | Height: | Size: 124 KiB After Width: | Height: | Size: 109 KiB |
|
After Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 63 KiB |
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 52 KiB |
|
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 75 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 67 KiB |
|
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 87 KiB |
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 52 KiB |
@@ -1,44 +1,45 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet",
|
"name": "playlet",
|
||||||
"version": "0.19.2",
|
"version": "0.22.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet",
|
"name": "playlet",
|
||||||
"version": "0.19.2",
|
"version": "0.22.0",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rokucommunity/bslint": "^0.8.17",
|
"@rokucommunity/bslint": "^0.8.19",
|
||||||
"@types/crypto-js": "^4.2.2",
|
"@types/crypto-js": "^4.2.2",
|
||||||
"@types/fs-extra": "^11.0.4",
|
"@types/fs-extra": "^11.0.4",
|
||||||
"@types/node": "^20.11.17",
|
"@types/node": "^20.11.30",
|
||||||
"@types/xml2js": "^0.4.14",
|
"@types/xml2js": "^0.4.14",
|
||||||
"argparse": "^2.0.1",
|
"argparse": "^2.0.1",
|
||||||
"brighterscript": "0.65.22",
|
"brighterscript": "0.65.26",
|
||||||
"brighterscript-formatter": "^1.6.40",
|
"brighterscript-formatter": "^1.7.0",
|
||||||
"convert-svg-to-png": "^0.6.4",
|
"convert-svg-to-png": "^0.6.4",
|
||||||
"cross-fetch": "^4.0.0",
|
"cross-fetch": "^4.0.0",
|
||||||
"crypto-js": "^4.2.0",
|
"crypto-js": "^4.2.0",
|
||||||
"dotenv": "^16.4.1",
|
"dotenv": "^16.4.5",
|
||||||
"express": "^4.18.2",
|
"express": "^4.19.1",
|
||||||
"fs-extra": "^11.2.0",
|
"fs-extra": "^11.2.0",
|
||||||
"glob": "^10.3.10",
|
"glob": "^10.3.10",
|
||||||
"imap": "^0.8.19",
|
"imap": "^0.8.19",
|
||||||
"ip": "^1.1.8",
|
"ip": "^2.0.1",
|
||||||
"json5": "^2.2.3",
|
"json5": "^2.2.3",
|
||||||
"mailparser": "^3.6.7",
|
"mailparser": "^3.6.9",
|
||||||
"roku-deploy": "^3.11.2",
|
"roku-deploy": "^3.12.0",
|
||||||
"rooibos-roku": "^5.11.0",
|
"rooibos-roku": "5.12.0",
|
||||||
|
"rounded-rect-9patch": "^1.0.1",
|
||||||
"semver": "^7.6.0",
|
"semver": "^7.6.0",
|
||||||
"shelljs": "^0.8.5",
|
"shelljs": "^0.8.5",
|
||||||
"ts-node": "^10.9.2",
|
"ts-node": "^10.9.2",
|
||||||
"typescript": "^5.3.3",
|
"typescript": "^5.4.3",
|
||||||
"xml2js": "^0.6.2",
|
"xml2js": "^0.6.2",
|
||||||
"yaml": "^2.3.4"
|
"yaml": "^2.4.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "18"
|
"node": "20"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@cspotcode/source-map-support": {
|
"node_modules/@cspotcode/source-map-support": {
|
||||||
@@ -276,9 +277,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@rokucommunity/bslint": {
|
"node_modules/@rokucommunity/bslint": {
|
||||||
"version": "0.8.17",
|
"version": "0.8.19",
|
||||||
"resolved": "https://registry.npmjs.org/@rokucommunity/bslint/-/bslint-0.8.17.tgz",
|
"resolved": "https://registry.npmjs.org/@rokucommunity/bslint/-/bslint-0.8.19.tgz",
|
||||||
"integrity": "sha512-e0ksPVYnN+QkhzuV97yPTf1NxSkBQZNMJRhlCFnMJf6gfps+VdY1HwYn3IlqDz3XJxfYcRSDa3v3fQ5dQynVEA==",
|
"integrity": "sha512-2vQasjH5nZdgJJzxAOwYzA8gtjvvO5MtxfqjK10shE1G8XmLpqguT5qHzLz+HxvdRbFZ7OSOOyBAqQHgZRpO1Q==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"fs-extra": "^10.0.0",
|
"fs-extra": "^10.0.0",
|
||||||
@@ -369,10 +370,16 @@
|
|||||||
"@types/node": "*"
|
"@types/node": "*"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@types/mime-types": {
|
||||||
|
"version": "2.1.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/mime-types/-/mime-types-2.1.4.tgz",
|
||||||
|
"integrity": "sha512-lfU4b34HOri+kAY5UheuFMWPDOI+OPceBSHZKp69gEyTL/mmJ4cnU6Y/rlme3UL3GyOn6Y42hyIEw0/q8sWx5w==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "20.11.17",
|
"version": "20.11.30",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.17.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.30.tgz",
|
||||||
"integrity": "sha512-QmgQZGWu1Yw9TDyAP9ZzpFJKynYNeOvwMJmaxABfieQoVoiVOS6MN1WSpqpRcbeA5+RW82kraAVxCCJg+780Qw==",
|
"integrity": "sha512-dHM6ZxwlmuZaRmUPfv1p+KrdD1Dci04FbdEm/9wEMouFqxYoFl5aMkt0VMAUtYRQDyYvD41WJLukhq/ha3YuTw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"undici-types": "~5.26.4"
|
"undici-types": "~5.26.4"
|
||||||
@@ -579,12 +586,27 @@
|
|||||||
"node": ">=0.8"
|
"node": ">=0.8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/async-limiter": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz",
|
||||||
|
"integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"node_modules/asynckit": {
|
"node_modules/asynckit": {
|
||||||
"version": "0.4.0",
|
"version": "0.4.0",
|
||||||
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
|
||||||
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
|
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"node_modules/at-least-node": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz",
|
||||||
|
"integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==",
|
||||||
|
"dev": true,
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 4.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/aws-sign2": {
|
"node_modules/aws-sign2": {
|
||||||
"version": "0.7.0",
|
"version": "0.7.0",
|
||||||
"resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz",
|
||||||
@@ -676,13 +698,13 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/body-parser": {
|
"node_modules/body-parser": {
|
||||||
"version": "1.20.1",
|
"version": "1.20.2",
|
||||||
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz",
|
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz",
|
||||||
"integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==",
|
"integrity": "sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bytes": "3.1.2",
|
"bytes": "3.1.2",
|
||||||
"content-type": "~1.0.4",
|
"content-type": "~1.0.5",
|
||||||
"debug": "2.6.9",
|
"debug": "2.6.9",
|
||||||
"depd": "2.0.0",
|
"depd": "2.0.0",
|
||||||
"destroy": "1.2.0",
|
"destroy": "1.2.0",
|
||||||
@@ -690,7 +712,7 @@
|
|||||||
"iconv-lite": "0.4.24",
|
"iconv-lite": "0.4.24",
|
||||||
"on-finished": "2.4.1",
|
"on-finished": "2.4.1",
|
||||||
"qs": "6.11.0",
|
"qs": "6.11.0",
|
||||||
"raw-body": "2.5.1",
|
"raw-body": "2.5.2",
|
||||||
"type-is": "~1.6.18",
|
"type-is": "~1.6.18",
|
||||||
"unpipe": "1.0.0"
|
"unpipe": "1.0.0"
|
||||||
},
|
},
|
||||||
@@ -728,9 +750,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/brighterscript": {
|
"node_modules/brighterscript": {
|
||||||
"version": "0.65.22",
|
"version": "0.65.26",
|
||||||
"resolved": "https://registry.npmjs.org/brighterscript/-/brighterscript-0.65.22.tgz",
|
"resolved": "https://registry.npmjs.org/brighterscript/-/brighterscript-0.65.26.tgz",
|
||||||
"integrity": "sha512-rDSdO33xRnFGB9nr54awTUucpd4oZpZmDMvVUSAb6jmFU1jz+SYhwV9ezc8U5m3Kswap7uV+BmS1O69QZ9MuSw==",
|
"integrity": "sha512-VT1Dzj0K4A1vcmsmv63mcI4hD7W8yQ3ZPF0LLxpgSGj27UCxUquz99w1qCkgzhvLk0jIdV7wGj7vnH3kttrJKQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@rokucommunity/bslib": "^0.1.1",
|
"@rokucommunity/bslib": "^0.1.1",
|
||||||
@@ -755,7 +777,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.11.2",
|
"roku-deploy": "^3.12.0",
|
||||||
"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",
|
||||||
@@ -770,12 +792,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/brighterscript-formatter": {
|
"node_modules/brighterscript-formatter": {
|
||||||
"version": "1.6.40",
|
"version": "1.7.0",
|
||||||
"resolved": "https://registry.npmjs.org/brighterscript-formatter/-/brighterscript-formatter-1.6.40.tgz",
|
"resolved": "https://registry.npmjs.org/brighterscript-formatter/-/brighterscript-formatter-1.7.0.tgz",
|
||||||
"integrity": "sha512-cxvGGluNfxy6p3khtcMt/3AschwqEnERjLRIEt3XVU0R0l2QgwXelDp8ViqgnQ2hQYa8LnfnOiV1u7OCqbiZPA==",
|
"integrity": "sha512-LKnUeAgNX3eKqK0J1Z55YteRlR/+DFuCbMf6/5DHdlCI7VVkOf+EWErruSfuol6+T2eImM0LY79CLT854VTE5g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"brighterscript": "^0.65.19",
|
"brighterscript": "^0.65.25",
|
||||||
"glob-all": "^3.3.0",
|
"glob-all": "^3.3.0",
|
||||||
"jsonc-parser": "^3.0.0",
|
"jsonc-parser": "^3.0.0",
|
||||||
"source-map": "^0.7.3",
|
"source-map": "^0.7.3",
|
||||||
@@ -1076,6 +1098,12 @@
|
|||||||
"node": "*"
|
"node": "*"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/buffer-from": {
|
||||||
|
"version": "1.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
|
||||||
|
"integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"node_modules/bytes": {
|
"node_modules/bytes": {
|
||||||
"version": "3.1.2",
|
"version": "3.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
|
||||||
@@ -1086,13 +1114,19 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/call-bind": {
|
"node_modules/call-bind": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.7",
|
||||||
"resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz",
|
||||||
"integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==",
|
"integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"function-bind": "^1.1.1",
|
"es-define-property": "^1.0.0",
|
||||||
"get-intrinsic": "^1.0.2"
|
"es-errors": "^1.3.0",
|
||||||
|
"function-bind": "^1.1.2",
|
||||||
|
"get-intrinsic": "^1.2.4",
|
||||||
|
"set-function-length": "^1.2.1"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/ljharb"
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
@@ -1269,6 +1303,21 @@
|
|||||||
"integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
|
"integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"node_modules/concat-stream": {
|
||||||
|
"version": "1.6.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz",
|
||||||
|
"integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==",
|
||||||
|
"dev": true,
|
||||||
|
"engines": [
|
||||||
|
"node >= 0.8"
|
||||||
|
],
|
||||||
|
"dependencies": {
|
||||||
|
"buffer-from": "^1.0.0",
|
||||||
|
"inherits": "^2.0.3",
|
||||||
|
"readable-stream": "^2.2.2",
|
||||||
|
"typedarray": "^0.0.6"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/content-disposition": {
|
"node_modules/content-disposition": {
|
||||||
"version": "0.5.4",
|
"version": "0.5.4",
|
||||||
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
|
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
|
||||||
@@ -1458,9 +1507,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/cookie": {
|
"node_modules/cookie": {
|
||||||
"version": "0.5.0",
|
"version": "0.6.0",
|
||||||
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz",
|
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz",
|
||||||
"integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==",
|
"integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.6"
|
"node": ">= 0.6"
|
||||||
@@ -1607,6 +1656,23 @@
|
|||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/define-data-property": {
|
||||||
|
"version": "1.1.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",
|
||||||
|
"integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"es-define-property": "^1.0.0",
|
||||||
|
"es-errors": "^1.3.0",
|
||||||
|
"gopd": "^1.0.1"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/delayed-stream": {
|
"node_modules/delayed-stream": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
|
||||||
@@ -1706,15 +1772,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/dotenv": {
|
"node_modules/dotenv": {
|
||||||
"version": "16.4.1",
|
"version": "16.4.5",
|
||||||
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.1.tgz",
|
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz",
|
||||||
"integrity": "sha512-CjA3y+Dr3FyFDOAMnxZEGtnW9KBR2M0JvvUtXNW+dYJL5ROWxP9DUHCwgFqpMk0OXCc0ljhaNTr2w/kutYIcHQ==",
|
"integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12"
|
"node": ">=12"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/motdotla/dotenv?sponsor=1"
|
"url": "https://dotenvx.com"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/eastasianwidth": {
|
"node_modules/eastasianwidth": {
|
||||||
@@ -1809,6 +1875,27 @@
|
|||||||
"url": "https://github.com/fb55/entities?sponsor=1"
|
"url": "https://github.com/fb55/entities?sponsor=1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/es-define-property": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz",
|
||||||
|
"integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"get-intrinsic": "^1.2.4"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/es-errors": {
|
||||||
|
"version": "1.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
|
||||||
|
"integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
|
||||||
|
"dev": true,
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/escalade": {
|
"node_modules/escalade": {
|
||||||
"version": "3.1.1",
|
"version": "3.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz",
|
||||||
@@ -1849,17 +1936,17 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/express": {
|
"node_modules/express": {
|
||||||
"version": "4.18.2",
|
"version": "4.19.1",
|
||||||
"resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz",
|
"resolved": "https://registry.npmjs.org/express/-/express-4.19.1.tgz",
|
||||||
"integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==",
|
"integrity": "sha512-K4w1/Bp7y8iSiVObmCrtq8Cs79XjJc/RU2YYkZQ7wpUu5ZyZ7MtPHkqoMz4pf+mgXfNvo2qft8D9OnrH2ABk9w==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"accepts": "~1.3.8",
|
"accepts": "~1.3.8",
|
||||||
"array-flatten": "1.1.1",
|
"array-flatten": "1.1.1",
|
||||||
"body-parser": "1.20.1",
|
"body-parser": "1.20.2",
|
||||||
"content-disposition": "0.5.4",
|
"content-disposition": "0.5.4",
|
||||||
"content-type": "~1.0.4",
|
"content-type": "~1.0.4",
|
||||||
"cookie": "0.5.0",
|
"cookie": "0.6.0",
|
||||||
"cookie-signature": "1.0.6",
|
"cookie-signature": "1.0.6",
|
||||||
"debug": "2.6.9",
|
"debug": "2.6.9",
|
||||||
"depd": "2.0.0",
|
"depd": "2.0.0",
|
||||||
@@ -1977,9 +2064,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/fastq": {
|
"node_modules/fastq": {
|
||||||
"version": "1.16.0",
|
"version": "1.17.1",
|
||||||
"resolved": "https://registry.npmjs.org/fastq/-/fastq-1.16.0.tgz",
|
"resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz",
|
||||||
"integrity": "sha512-ifCoaXsDrsdkWTtiNJX5uzHDsrck5TzfKKDcuFFTIrrc/BS076qgEIfoIy1VeZqViznfKiysPYTh/QeHtnIsYA==",
|
"integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"reusify": "^1.0.4"
|
"reusify": "^1.0.4"
|
||||||
@@ -2142,10 +2229,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/function-bind": {
|
"node_modules/function-bind": {
|
||||||
"version": "1.1.1",
|
"version": "1.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
|
||||||
"integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==",
|
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
|
||||||
"dev": true
|
"dev": true,
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"node_modules/get-caller-file": {
|
"node_modules/get-caller-file": {
|
||||||
"version": "2.0.5",
|
"version": "2.0.5",
|
||||||
@@ -2157,15 +2247,19 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/get-intrinsic": {
|
"node_modules/get-intrinsic": {
|
||||||
"version": "1.2.1",
|
"version": "1.2.4",
|
||||||
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz",
|
||||||
"integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==",
|
"integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"function-bind": "^1.1.1",
|
"es-errors": "^1.3.0",
|
||||||
"has": "^1.0.3",
|
"function-bind": "^1.1.2",
|
||||||
"has-proto": "^1.0.1",
|
"has-proto": "^1.0.1",
|
||||||
"has-symbols": "^1.0.3"
|
"has-symbols": "^1.0.3",
|
||||||
|
"hasown": "^2.0.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/ljharb"
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
@@ -2307,12 +2401,54 @@
|
|||||||
"node": ">=16 || 14 >=14.17"
|
"node": ">=16 || 14 >=14.17"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/gopd": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",
|
||||||
|
"integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"get-intrinsic": "^1.1.3"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/graceful-fs": {
|
"node_modules/graceful-fs": {
|
||||||
"version": "4.2.11",
|
"version": "4.2.11",
|
||||||
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
|
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
|
||||||
"integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
|
"integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"node_modules/handlebars": {
|
||||||
|
"version": "4.7.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz",
|
||||||
|
"integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"minimist": "^1.2.5",
|
||||||
|
"neo-async": "^2.6.2",
|
||||||
|
"source-map": "^0.6.1",
|
||||||
|
"wordwrap": "^1.0.0"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"handlebars": "bin/handlebars"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.4.7"
|
||||||
|
},
|
||||||
|
"optionalDependencies": {
|
||||||
|
"uglify-js": "^3.1.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/handlebars/node_modules/source-map": {
|
||||||
|
"version": "0.6.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
|
||||||
|
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
|
||||||
|
"dev": true,
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.10.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/har-schema": {
|
"node_modules/har-schema": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz",
|
||||||
@@ -2357,10 +2493,22 @@
|
|||||||
"node": ">=4"
|
"node": ">=4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/has-property-descriptors": {
|
||||||
|
"version": "1.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",
|
||||||
|
"integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"es-define-property": "^1.0.0"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/has-proto": {
|
"node_modules/has-proto": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz",
|
||||||
"integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==",
|
"integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 0.4"
|
"node": ">= 0.4"
|
||||||
@@ -2381,6 +2529,18 @@
|
|||||||
"url": "https://github.com/sponsors/ljharb"
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/hasown": {
|
||||||
|
"version": "2.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.1.tgz",
|
||||||
|
"integrity": "sha512-1/th4MHjnwncwXsIW6QMzlvYL9kG5e/CpVvLRZe4XPa8TOUNbCELqmvhDmnkNsAjwaG4+I8gJJL0JBvTTLO9qA==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"function-bind": "^1.1.2"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/he": {
|
"node_modules/he": {
|
||||||
"version": "1.2.0",
|
"version": "1.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz",
|
||||||
@@ -2592,9 +2752,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/ip": {
|
"node_modules/ip": {
|
||||||
"version": "1.1.8",
|
"version": "2.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz",
|
"resolved": "https://registry.npmjs.org/ip/-/ip-2.0.1.tgz",
|
||||||
"integrity": "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==",
|
"integrity": "sha512-lJUL9imLTNi1ZfXT+DU6rBBdbiKGBuay9B6xGSPVjUeQwaH1RIGqef8RZkUtHioLmSNpPR5M4HVKJGm1j8FWVQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/ipaddr.js": {
|
"node_modules/ipaddr.js": {
|
||||||
@@ -2808,15 +2968,15 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/libmime": {
|
"node_modules/libmime": {
|
||||||
"version": "5.2.1",
|
"version": "5.3.4",
|
||||||
"resolved": "https://registry.npmjs.org/libmime/-/libmime-5.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/libmime/-/libmime-5.3.4.tgz",
|
||||||
"integrity": "sha512-A0z9O4+5q+ZTj7QwNe/Juy1KARNb4WaviO4mYeFC4b8dBT2EEqK2pkM+GC8MVnkOjqhl5nYQxRgnPYRRTNmuSQ==",
|
"integrity": "sha512-TsqPdercr6DHrnoQx1F0nS2Y4yPT+fWuOjEP2rqzvV77hMYWomTe/rpm0u9JORQ/FavEXybAGcBJsQbLr9+hjA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"encoding-japanese": "2.0.0",
|
"encoding-japanese": "2.0.0",
|
||||||
"iconv-lite": "0.6.3",
|
"iconv-lite": "0.6.3",
|
||||||
"libbase64": "1.2.1",
|
"libbase64": "1.3.0",
|
||||||
"libqp": "2.0.1"
|
"libqp": "2.1.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/libmime/node_modules/iconv-lite": {
|
"node_modules/libmime/node_modules/iconv-lite": {
|
||||||
@@ -2831,6 +2991,18 @@
|
|||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/libmime/node_modules/libbase64": {
|
||||||
|
"version": "1.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/libbase64/-/libbase64-1.3.0.tgz",
|
||||||
|
"integrity": "sha512-GgOXd0Eo6phYgh0DJtjQ2tO8dc0IVINtZJeARPeiIJqge+HdsWSuaDTe8ztQ7j/cONByDZ3zeB325AHiv5O0dg==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"node_modules/libmime/node_modules/libqp": {
|
||||||
|
"version": "2.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/libqp/-/libqp-2.1.0.tgz",
|
||||||
|
"integrity": "sha512-O6O6/fsG5jiUVbvdgT7YX3xY3uIadR6wEZ7+vy9u7PKHAlSEB6blvC1o5pHBjgsi95Uo0aiBBdkyFecj6jtb7A==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"node_modules/libqp": {
|
"node_modules/libqp": {
|
||||||
"version": "2.0.1",
|
"version": "2.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/libqp/-/libqp-2.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/libqp/-/libqp-2.0.1.tgz",
|
||||||
@@ -2916,20 +3088,21 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/mailparser": {
|
"node_modules/mailparser": {
|
||||||
"version": "3.6.7",
|
"version": "3.6.9",
|
||||||
"resolved": "https://registry.npmjs.org/mailparser/-/mailparser-3.6.7.tgz",
|
"resolved": "https://registry.npmjs.org/mailparser/-/mailparser-3.6.9.tgz",
|
||||||
"integrity": "sha512-/3x8HW70DNehw+3vdOPKdlLuxOHoWcGB5jfx5vJ5XUbY9/2jUJbrrhda5Si8Dj/3w08U0y5uGAkqs5+SPTPKoA==",
|
"integrity": "sha512-1fIDZlgN1NnuzmTSEUxkaViquXYkw5NbQehVc+kz55QRy98QgLdTtRSKv289Jy4NrCiDchRx6zAijB4HrPsvkA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"encoding-japanese": "2.0.0",
|
"encoding-japanese": "2.0.0",
|
||||||
"he": "1.2.0",
|
"he": "1.2.0",
|
||||||
"html-to-text": "9.0.5",
|
"html-to-text": "9.0.5",
|
||||||
"iconv-lite": "0.6.3",
|
"iconv-lite": "0.6.3",
|
||||||
"libmime": "5.2.1",
|
"libmime": "5.3.4",
|
||||||
"linkify-it": "5.0.0",
|
"linkify-it": "5.0.0",
|
||||||
"mailsplit": "5.4.0",
|
"mailsplit": "5.4.0",
|
||||||
"nodemailer": "6.9.9",
|
"nodemailer": "6.9.11",
|
||||||
"tlds": "1.248.0"
|
"punycode": "2.3.1",
|
||||||
|
"tlds": "1.250.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/mailparser/node_modules/iconv-lite": {
|
"node_modules/mailparser/node_modules/iconv-lite": {
|
||||||
@@ -3076,6 +3249,27 @@
|
|||||||
"node": "*"
|
"node": "*"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/minimist": {
|
||||||
|
"version": "1.2.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
|
||||||
|
"integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
|
||||||
|
"dev": true,
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/mkdirp": {
|
||||||
|
"version": "0.5.6",
|
||||||
|
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz",
|
||||||
|
"integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"minimist": "^1.2.6"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"mkdirp": "bin/cmd.js"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/mkdirp-classic": {
|
"node_modules/mkdirp-classic": {
|
||||||
"version": "0.5.3",
|
"version": "0.5.3",
|
||||||
"resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz",
|
"resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz",
|
||||||
@@ -3083,9 +3277,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/moment": {
|
"node_modules/moment": {
|
||||||
"version": "2.29.4",
|
"version": "2.30.1",
|
||||||
"resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz",
|
"resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz",
|
||||||
"integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==",
|
"integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "*"
|
"node": "*"
|
||||||
@@ -3106,6 +3300,12 @@
|
|||||||
"node": ">= 0.6"
|
"node": ">= 0.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/neo-async": {
|
||||||
|
"version": "2.6.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz",
|
||||||
|
"integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"node_modules/node-fetch": {
|
"node_modules/node-fetch": {
|
||||||
"version": "2.6.12",
|
"version": "2.6.12",
|
||||||
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.12.tgz",
|
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.12.tgz",
|
||||||
@@ -3126,10 +3326,171 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/node-html-to-image": {
|
||||||
|
"version": "1.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/node-html-to-image/-/node-html-to-image-1.2.0.tgz",
|
||||||
|
"integrity": "sha512-Z+YvvY2PSc9xULWd2NtqfO4x9rNzEiNOjA1QjOdB/BShVA7ULMJ3YKaFbn0wVuFqYJ6WSaY7ruw9frcJpXQNVQ==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"handlebars": "^4.5.3",
|
||||||
|
"puppeteer": "^2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/node-html-to-image/node_modules/agent-base": {
|
||||||
|
"version": "5.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/agent-base/-/agent-base-5.1.1.tgz",
|
||||||
|
"integrity": "sha512-TMeqbNl2fMW0nMjTEPOwe3J/PRFP4vqeoNuQMG0HlMrtm5QxKqdvAkZ1pRBQ/ulIyDD5Yq0nJ7YbdD8ey0TO3g==",
|
||||||
|
"dev": true,
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 6.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/node-html-to-image/node_modules/debug": {
|
||||||
|
"version": "4.3.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
|
||||||
|
"integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"ms": "2.1.2"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6.0"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"supports-color": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/node-html-to-image/node_modules/extract-zip": {
|
||||||
|
"version": "1.7.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.7.0.tgz",
|
||||||
|
"integrity": "sha512-xoh5G1W/PB0/27lXgMQyIhP5DSY/LhoCsOyZgb+6iMmRtCwVBo55uKaMoEYrDCKQhWvqEip5ZPKAc6eFNyf/MA==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"concat-stream": "^1.6.2",
|
||||||
|
"debug": "^2.6.9",
|
||||||
|
"mkdirp": "^0.5.4",
|
||||||
|
"yauzl": "^2.10.0"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"extract-zip": "cli.js"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/node-html-to-image/node_modules/extract-zip/node_modules/debug": {
|
||||||
|
"version": "2.6.9",
|
||||||
|
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
|
||||||
|
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"ms": "2.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/node-html-to-image/node_modules/extract-zip/node_modules/ms": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
|
||||||
|
"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"node_modules/node-html-to-image/node_modules/glob": {
|
||||||
|
"version": "7.2.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
|
||||||
|
"integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"fs.realpath": "^1.0.0",
|
||||||
|
"inflight": "^1.0.4",
|
||||||
|
"inherits": "2",
|
||||||
|
"minimatch": "^3.1.1",
|
||||||
|
"once": "^1.3.0",
|
||||||
|
"path-is-absolute": "^1.0.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "*"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/isaacs"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/node-html-to-image/node_modules/https-proxy-agent": {
|
||||||
|
"version": "4.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-4.0.0.tgz",
|
||||||
|
"integrity": "sha512-zoDhWrkR3of1l9QAL8/scJZyLu8j/gBkcwcaQOZh7Gyh/+uJQzGVETdgT30akuwkpL8HTRfssqI3BZuV18teDg==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"agent-base": "5",
|
||||||
|
"debug": "4"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 6.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/node-html-to-image/node_modules/mime": {
|
||||||
|
"version": "2.6.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz",
|
||||||
|
"integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==",
|
||||||
|
"dev": true,
|
||||||
|
"bin": {
|
||||||
|
"mime": "cli.js"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=4.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/node-html-to-image/node_modules/ms": {
|
||||||
|
"version": "2.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
||||||
|
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"node_modules/node-html-to-image/node_modules/puppeteer": {
|
||||||
|
"version": "2.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-2.1.1.tgz",
|
||||||
|
"integrity": "sha512-LWzaDVQkk1EPiuYeTOj+CZRIjda4k2s5w4MK4xoH2+kgWV/SDlkYHmxatDdtYrciHUKSXTsGgPgPP8ILVdBsxg==",
|
||||||
|
"deprecated": "< 21.5.0 is no longer supported",
|
||||||
|
"dev": true,
|
||||||
|
"hasInstallScript": true,
|
||||||
|
"dependencies": {
|
||||||
|
"@types/mime-types": "^2.1.0",
|
||||||
|
"debug": "^4.1.0",
|
||||||
|
"extract-zip": "^1.6.6",
|
||||||
|
"https-proxy-agent": "^4.0.0",
|
||||||
|
"mime": "^2.0.3",
|
||||||
|
"mime-types": "^2.1.25",
|
||||||
|
"progress": "^2.0.1",
|
||||||
|
"proxy-from-env": "^1.0.0",
|
||||||
|
"rimraf": "^2.6.1",
|
||||||
|
"ws": "^6.1.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=8.16.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/node-html-to-image/node_modules/rimraf": {
|
||||||
|
"version": "2.7.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz",
|
||||||
|
"integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"glob": "^7.1.3"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"rimraf": "bin.js"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/node-html-to-image/node_modules/ws": {
|
||||||
|
"version": "6.2.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/ws/-/ws-6.2.2.tgz",
|
||||||
|
"integrity": "sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"async-limiter": "~1.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/nodemailer": {
|
"node_modules/nodemailer": {
|
||||||
"version": "6.9.9",
|
"version": "6.9.11",
|
||||||
"resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.9.9.tgz",
|
"resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.9.11.tgz",
|
||||||
"integrity": "sha512-dexTll8zqQoVJEZPwQAKzxxtFn0qTnjdQTchoU6Re9BUUGBJiOy3YMn/0ShTW6J5M0dfQ1NeDeRTTl4oIWgQMA==",
|
"integrity": "sha512-UiAkgiERuG94kl/3bKfE8o10epvDnl0vokNEtZDPTq9BWzIl6EFT9336SbIT4oaTBD8NmmUTLsQyXHV82eXSWg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.0.0"
|
"node": ">=6.0.0"
|
||||||
@@ -3166,9 +3527,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/object-inspect": {
|
"node_modules/object-inspect": {
|
||||||
"version": "1.12.3",
|
"version": "1.13.1",
|
||||||
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz",
|
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz",
|
||||||
"integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==",
|
"integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/ljharb"
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
@@ -3689,9 +4050,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/raw-body": {
|
"node_modules/raw-body": {
|
||||||
"version": "2.5.1",
|
"version": "2.5.2",
|
||||||
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz",
|
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz",
|
||||||
"integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==",
|
"integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bytes": "3.1.2",
|
"bytes": "3.1.2",
|
||||||
@@ -3850,9 +4211,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/roku-deploy": {
|
"node_modules/roku-deploy": {
|
||||||
"version": "3.11.2",
|
"version": "3.12.0",
|
||||||
"resolved": "https://registry.npmjs.org/roku-deploy/-/roku-deploy-3.11.2.tgz",
|
"resolved": "https://registry.npmjs.org/roku-deploy/-/roku-deploy-3.12.0.tgz",
|
||||||
"integrity": "sha512-3JDlnbTxv6Xk5GVolQoA3+d34MLZXXwZWMySprHwazZoWLP3LvulYHP92YvFOJAo/aI4IZp/TFA8kR82IrmHKA==",
|
"integrity": "sha512-YiCZeQ+sEmFW9ZfXtMNH+/CBSHQ5deNZYWONM+s6gCEQsrz7kCMFPj5YEdgfqW+d2b8G1ve9GELHcSt2FsfM8g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chalk": "^2.4.2",
|
"chalk": "^2.4.2",
|
||||||
@@ -3921,9 +4282,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/rooibos-roku": {
|
"node_modules/rooibos-roku": {
|
||||||
"version": "5.11.0",
|
"version": "5.12.0",
|
||||||
"resolved": "https://registry.npmjs.org/rooibos-roku/-/rooibos-roku-5.11.0.tgz",
|
"resolved": "https://registry.npmjs.org/rooibos-roku/-/rooibos-roku-5.12.0.tgz",
|
||||||
"integrity": "sha512-qxTYwsyp6Ihb6B8tmFm+24DE/s2gMCxagvdABElGWgqL834M+kZtmwrQXvSrMkM+0gkmQfIDuw1M4v484gycYQ==",
|
"integrity": "sha512-fJofEoaD2fNGK7zurdwSBVIQQAbc0jo0Q8TKbJbip0FGPt+inMerFhsWyp7dgXiUaw4mX+S95g74NgHbll9O/g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"source-map": "^0.7.3",
|
"source-map": "^0.7.3",
|
||||||
@@ -3969,6 +4330,35 @@
|
|||||||
"integrity": "sha512-+a9MPUQrNGRrGU630OGbYVQ+11iOIovjCkqxajPa9w57Sd5ruK8WQNsslzpa0x/QJqC8kRc2DUxWjIFwoNm4ZQ==",
|
"integrity": "sha512-+a9MPUQrNGRrGU630OGbYVQ+11iOIovjCkqxajPa9w57Sd5ruK8WQNsslzpa0x/QJqC8kRc2DUxWjIFwoNm4ZQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"node_modules/rounded-rect-9patch": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/rounded-rect-9patch/-/rounded-rect-9patch-1.0.1.tgz",
|
||||||
|
"integrity": "sha512-5sNv0pg8+QRd9DgnzD7alGJt/9UnJs+5xv4dLAT6CKfT6h4WMcGcyTIWoRuJminJ3T/4yo7tFwnJ8cOPGiBWMw==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"fs-extra": "^9.0.0",
|
||||||
|
"minimist": "^1.2.5",
|
||||||
|
"node-html-to-image": "^1.2.0"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"rounded-rect-9patch": "cli.js"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/rounded-rect-9patch/node_modules/fs-extra": {
|
||||||
|
"version": "9.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz",
|
||||||
|
"integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"at-least-node": "^1.0.0",
|
||||||
|
"graceful-fs": "^4.2.0",
|
||||||
|
"jsonfile": "^6.0.1",
|
||||||
|
"universalify": "^2.0.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=10"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/run-parallel": {
|
"node_modules/run-parallel": {
|
||||||
"version": "1.2.0",
|
"version": "1.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
|
||||||
@@ -4117,6 +4507,23 @@
|
|||||||
"integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==",
|
"integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"node_modules/set-function-length": {
|
||||||
|
"version": "1.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.1.tgz",
|
||||||
|
"integrity": "sha512-j4t6ccc+VsKwYHso+kElc5neZpjtq9EnRICFZtWyBsLojhmeF/ZBd/elqm22WJh/BziDe/SBiOeAt0m2mfLD0g==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"define-data-property": "^1.1.2",
|
||||||
|
"es-errors": "^1.3.0",
|
||||||
|
"function-bind": "^1.1.2",
|
||||||
|
"get-intrinsic": "^1.2.3",
|
||||||
|
"gopd": "^1.0.1",
|
||||||
|
"has-property-descriptors": "^1.0.1"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/setimmediate": {
|
"node_modules/setimmediate": {
|
||||||
"version": "1.0.5",
|
"version": "1.0.5",
|
||||||
"resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz",
|
"resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz",
|
||||||
@@ -4188,14 +4595,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/side-channel": {
|
"node_modules/side-channel": {
|
||||||
"version": "1.0.4",
|
"version": "1.0.6",
|
||||||
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz",
|
||||||
"integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==",
|
"integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"call-bind": "^1.0.0",
|
"call-bind": "^1.0.7",
|
||||||
"get-intrinsic": "^1.0.2",
|
"es-errors": "^1.3.0",
|
||||||
"object-inspect": "^1.9.0"
|
"get-intrinsic": "^1.2.4",
|
||||||
|
"object-inspect": "^1.13.1"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.4"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/ljharb"
|
"url": "https://github.com/sponsors/ljharb"
|
||||||
@@ -4404,9 +4815,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/tlds": {
|
"node_modules/tlds": {
|
||||||
"version": "1.248.0",
|
"version": "1.250.0",
|
||||||
"resolved": "https://registry.npmjs.org/tlds/-/tlds-1.248.0.tgz",
|
"resolved": "https://registry.npmjs.org/tlds/-/tlds-1.250.0.tgz",
|
||||||
"integrity": "sha512-noj0KdpWTBhwsKxMOXk0rN9otg4kTgLm4WohERRHbJ9IY+kSDKr3RmjitaQ3JFzny+DyvBOQKlFZhp0G0qNSfg==",
|
"integrity": "sha512-rWsBfFCWKrjM/o2Q1TTUeYQv6tHSd/umUutDjVs6taTuEgRDIreVYIBgWRWW4ot7jp6n0UVUuxhTLWBtUmPu/w==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"tlds": "bin.js"
|
"tlds": "bin.js"
|
||||||
@@ -4525,10 +4936,16 @@
|
|||||||
"node": ">= 0.6"
|
"node": ">= 0.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/typedarray": {
|
||||||
|
"version": "0.0.6",
|
||||||
|
"resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz",
|
||||||
|
"integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"node_modules/typescript": {
|
"node_modules/typescript": {
|
||||||
"version": "5.3.3",
|
"version": "5.4.3",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.3.tgz",
|
||||||
"integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==",
|
"integrity": "sha512-KrPd3PKaCLr78MalgiwJnA25Nm8HAmdwN3mYUYZgG/wizIo9EainNVQI9/yDavtVFRN2h3k8uf3GLHuhDMgEHg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"tsc": "bin/tsc",
|
"tsc": "bin/tsc",
|
||||||
@@ -4544,6 +4961,19 @@
|
|||||||
"integrity": "sha512-DffL94LsNOccVn4hyfRe5rdKa273swqeA5DJpMOeFmEn1wCDc7nAbbB0gXlgBCL7TNzeTv6G7XVWzan7iJtfig==",
|
"integrity": "sha512-DffL94LsNOccVn4hyfRe5rdKa273swqeA5DJpMOeFmEn1wCDc7nAbbB0gXlgBCL7TNzeTv6G7XVWzan7iJtfig==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"node_modules/uglify-js": {
|
||||||
|
"version": "3.17.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz",
|
||||||
|
"integrity": "sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true,
|
||||||
|
"bin": {
|
||||||
|
"uglifyjs": "bin/uglifyjs"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.8.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/unbzip2-stream": {
|
"node_modules/unbzip2-stream": {
|
||||||
"version": "1.4.3",
|
"version": "1.4.3",
|
||||||
"resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz",
|
"resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz",
|
||||||
@@ -4766,6 +5196,12 @@
|
|||||||
"integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==",
|
"integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"node_modules/wordwrap": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz",
|
||||||
|
"integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"node_modules/wrap-ansi": {
|
"node_modules/wrap-ansi": {
|
||||||
"version": "6.2.0",
|
"version": "6.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
|
||||||
@@ -4926,10 +5362,13 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/yaml": {
|
"node_modules/yaml": {
|
||||||
"version": "2.3.4",
|
"version": "2.4.1",
|
||||||
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.4.tgz",
|
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.1.tgz",
|
||||||
"integrity": "sha512-8aAvwVUSHpfEqTQ4w/KMlf3HcRdt50E5ODIQJBw1fQ5RL34xabzxtUlzTXVqc4rkZsPbvrXKWnABCD7kWSmocA==",
|
"integrity": "sha512-pIXzoImaqmfOrL7teGUBt/T7ZDnyeGBWyXQBvOVhLkWLN37GXv8NMLK406UY6dS51JfcQHsmcW5cJ441bHg6Lg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
|
"bin": {
|
||||||
|
"yaml": "bin.mjs"
|
||||||
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 14"
|
"node": ">= 14"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,38 +1,39 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet",
|
"name": "playlet",
|
||||||
"version": "0.19.2",
|
"version": "0.22.0",
|
||||||
"description": "Unofficial YouTube client for Roku",
|
"description": "Unofficial YouTube client for Roku",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rokucommunity/bslint": "^0.8.17",
|
"@rokucommunity/bslint": "^0.8.19",
|
||||||
"@types/crypto-js": "^4.2.2",
|
"@types/crypto-js": "^4.2.2",
|
||||||
"@types/fs-extra": "^11.0.4",
|
"@types/fs-extra": "^11.0.4",
|
||||||
"@types/node": "^20.11.17",
|
"@types/node": "^20.11.30",
|
||||||
"@types/xml2js": "^0.4.14",
|
"@types/xml2js": "^0.4.14",
|
||||||
"argparse": "^2.0.1",
|
"argparse": "^2.0.1",
|
||||||
"brighterscript": "0.65.22",
|
"brighterscript": "0.65.26",
|
||||||
"brighterscript-formatter": "^1.6.40",
|
"brighterscript-formatter": "^1.7.0",
|
||||||
"convert-svg-to-png": "^0.6.4",
|
"convert-svg-to-png": "^0.6.4",
|
||||||
"cross-fetch": "^4.0.0",
|
"cross-fetch": "^4.0.0",
|
||||||
"crypto-js": "^4.2.0",
|
"crypto-js": "^4.2.0",
|
||||||
"dotenv": "^16.4.1",
|
"dotenv": "^16.4.5",
|
||||||
"express": "^4.18.2",
|
"express": "^4.19.1",
|
||||||
"fs-extra": "^11.2.0",
|
"fs-extra": "^11.2.0",
|
||||||
"glob": "^10.3.10",
|
"glob": "^10.3.10",
|
||||||
"imap": "^0.8.19",
|
"imap": "^0.8.19",
|
||||||
"ip": "^1.1.8",
|
"ip": "^2.0.1",
|
||||||
"json5": "^2.2.3",
|
"json5": "^2.2.3",
|
||||||
"mailparser": "^3.6.7",
|
"mailparser": "^3.6.9",
|
||||||
"roku-deploy": "^3.11.2",
|
"roku-deploy": "^3.12.0",
|
||||||
"rooibos-roku": "^5.11.0",
|
"rooibos-roku": "5.12.0",
|
||||||
|
"rounded-rect-9patch": "^1.0.1",
|
||||||
"semver": "^7.6.0",
|
"semver": "^7.6.0",
|
||||||
"shelljs": "^0.8.5",
|
"shelljs": "^0.8.5",
|
||||||
"ts-node": "^10.9.2",
|
"ts-node": "^10.9.2",
|
||||||
"typescript": "^5.3.3",
|
"typescript": "^5.4.3",
|
||||||
"xml2js": "^0.6.2",
|
"xml2js": "^0.6.2",
|
||||||
"yaml": "^2.3.4"
|
"yaml": "^2.4.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "18"
|
"node": "20"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev:web": "cd playlet-web && npm run dev",
|
"dev:web": "cd playlet-web && npm run dev",
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-app",
|
"name": "playlet-app",
|
||||||
"version": "0.19.2",
|
"version": "0.22.0",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet-app",
|
"name": "playlet-app",
|
||||||
"version": "0.19.2"
|
"version": "0.22.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-app",
|
"name": "playlet-app",
|
||||||
"version": "0.19.2",
|
"version": "0.22.0",
|
||||||
"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",
|
||||||
|
|||||||
@@ -23,7 +23,12 @@ end function
|
|||||||
function GetPlayletLibUrls() as object
|
function GetPlayletLibUrls() as object
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
debug = { type: "debug", link: Manifest.ReadValue("playlet_lib_debug_url") }
|
debug = { type: "debug", link: Manifest.ReadValue("playlet_lib_debug_url") }
|
||||||
|
embedded = { type: "embedded", link: Manifest.ReadValue("playlet_lib_embedded_url") }
|
||||||
|
#if DEBUG_FALLBACK_TO_EMBEDDED
|
||||||
|
return [debug, embedded]
|
||||||
|
#else
|
||||||
return [debug]
|
return [debug]
|
||||||
|
#end if
|
||||||
#else
|
#else
|
||||||
savedUrls = Registry.GetPlayletLibUrlsFromRegistry()
|
savedUrls = Registry.GetPlayletLibUrlsFromRegistry()
|
||||||
if savedUrls <> invalid
|
if savedUrls <> invalid
|
||||||
|
|||||||
@@ -20,6 +20,11 @@ function GetLoadingMessage() as string
|
|||||||
"Don't forget to like and subscribe...",
|
"Don't forget to like and subscribe...",
|
||||||
"Shoveling coal into the server...",
|
"Shoveling coal into the server...",
|
||||||
"Counting down from infinity...",
|
"Counting down from infinity...",
|
||||||
|
"Unfortunately, the internet is closed today...",
|
||||||
|
"Unfortunately, we have no ads to show you...",
|
||||||
|
"Looking for the remote...",
|
||||||
|
"Finding that song that goes 'La la lala la'...",
|
||||||
|
"Waiting for the spinny thing to finish...",
|
||||||
]
|
]
|
||||||
end if
|
end if
|
||||||
index = GetRandom(0, messages.count() - 1)
|
index = GetRandom(0, messages.count() - 1)
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 9.9 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.2 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
@@ -3,24 +3,24 @@
|
|||||||
outputs: [
|
outputs: [
|
||||||
{
|
{
|
||||||
outputFilePath: 'images/channel-poster_fhd.png',
|
outputFilePath: 'images/channel-poster_fhd.png',
|
||||||
outputHash: '50729b5bdd2a7c0fd4a1d502812117d4',
|
outputHash: '49c39d7f33e37a8214bf05d7db016e97',
|
||||||
width: 540,
|
width: 540,
|
||||||
height: 405,
|
height: 405,
|
||||||
background: '#EEEEEE',
|
background: '#EBEBEB',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
outputFilePath: 'images/channel-poster_hd.png',
|
outputFilePath: 'images/channel-poster_hd.png',
|
||||||
outputHash: '8022dc6fa993ce3194c5aea37d6ea49a',
|
outputHash: '4968cb52fca911be47fa17e61f0af4a5',
|
||||||
width: 290,
|
width: 290,
|
||||||
height: 218,
|
height: 218,
|
||||||
background: '#EEEEEE',
|
background: '#EBEBEB',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
outputFilePath: 'images/channel-poster_sd.png',
|
outputFilePath: 'images/channel-poster_sd.png',
|
||||||
outputHash: '63b8f12ac155c29b4e85db17a2886817',
|
outputHash: 'e976889af6743044db344219ec44514c',
|
||||||
width: 246,
|
width: 246,
|
||||||
height: 140,
|
height: 140,
|
||||||
background: '#EEEEEE',
|
background: '#EBEBEB',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
@@ -2,8 +2,8 @@ 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=19
|
minor_version=22
|
||||||
build_version=00002
|
build_version=00000
|
||||||
|
|
||||||
ui_resolutions=hd
|
ui_resolutions=hd
|
||||||
|
|
||||||
@@ -33,4 +33,4 @@ playlet_lib_debug_url=http://DEBUG_HOST_IP_ADDRESS:8086/playlet-lib.zip
|
|||||||
|
|
||||||
git_commit_sha=unknown
|
git_commit_sha=unknown
|
||||||
|
|
||||||
bs_const=DEBUG=false
|
bs_const=DEBUG=false;DEBUG_FALLBACK_TO_EMBEDDED=true
|
||||||
@@ -22,9 +22,11 @@ function DialogSetPalette(msgDialog as object)
|
|||||||
DialogBackgroundColor: "#242424FF"
|
DialogBackgroundColor: "#242424FF"
|
||||||
DialogFocusColor: "#CECECEFF"
|
DialogFocusColor: "#CECECEFF"
|
||||||
DialogFocusItemColor: "#202020FF"
|
DialogFocusItemColor: "#202020FF"
|
||||||
DialogSecondaryTextColor: "#DBDBDBFF"
|
' bs:disable-next-line LINT3023
|
||||||
|
DialogSecondaryTextColor: "#EBEBEBFF"
|
||||||
DialogSecondaryItemColor: "#FF1C30FF"
|
DialogSecondaryItemColor: "#FF1C30FF"
|
||||||
DialogTextColor: "#DBDBDBFF"
|
' bs:disable-next-line LINT3023
|
||||||
|
DialogTextColor: "#EBEBEBFF"
|
||||||
}
|
}
|
||||||
msgDialog.palette = palette
|
msgDialog.palette = palette
|
||||||
end function
|
end function
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ function Main(args as object) as void
|
|||||||
Logger.Init()
|
Logger.Init()
|
||||||
|
|
||||||
Registry.ClearPlayletLibUrlsIfNeeded(args)
|
Registry.ClearPlayletLibUrlsIfNeeded(args)
|
||||||
|
Registry.ClearRegistryIfNeeded(args)
|
||||||
|
|
||||||
scene = screen.CreateScene("BootstrapScene")
|
scene = screen.CreateScene("BootstrapScene")
|
||||||
screen.show()
|
screen.show()
|
||||||
@@ -33,9 +34,9 @@ function Main(args as object) as void
|
|||||||
' These vars are needed to pass certification.
|
' These vars are needed to pass certification.
|
||||||
' The actual work is done in Playlet Lib
|
' The actual work is done in Playlet Lib
|
||||||
' bs:disable-next-line LINT1005
|
' bs:disable-next-line LINT1005
|
||||||
contentId = args.contentId
|
_contentId = args.contentId
|
||||||
' bs:disable-next-line LINT1005
|
' bs:disable-next-line LINT1005
|
||||||
mediaType = args.mediaType
|
_mediaType = args.mediaType
|
||||||
|
|
||||||
' Do not signal app launch complete here, we're doing it over at Playlet Lib
|
' Do not signal app launch complete here, we're doing it over at Playlet Lib
|
||||||
' This is needed to pass cetification
|
' This is needed to pass cetification
|
||||||
|
|||||||
@@ -14,6 +14,15 @@ namespace Registry
|
|||||||
sec.Flush()
|
sec.Flush()
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
function DeleteAll()
|
||||||
|
reg = CreateObject("roRegistry")
|
||||||
|
sectionNames = reg.GetSectionList()
|
||||||
|
for each sectionName in sectionNames
|
||||||
|
reg.Delete(sectionName)
|
||||||
|
end for
|
||||||
|
reg.Flush()
|
||||||
|
end function
|
||||||
|
|
||||||
function GetPlayletLibUrlsFromRegistry() as object
|
function GetPlayletLibUrlsFromRegistry() as object
|
||||||
urlsJson = ReadKey("playlet_lib_urls", "Playlet")
|
urlsJson = ReadKey("playlet_lib_urls", "Playlet")
|
||||||
if urlsJson = invalid
|
if urlsJson = invalid
|
||||||
@@ -31,4 +40,12 @@ namespace Registry
|
|||||||
Logger.Log("Cleared key playlet_lib_urls from registry")
|
Logger.Log("Cleared key playlet_lib_urls from registry")
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
function ClearRegistryIfNeeded(launchArgs as object) as void
|
||||||
|
if launchArgs = invalid or launchArgs.clearRegistry = invalid
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
DeleteAll()
|
||||||
|
Logger.Log("Cleared all data from registry")
|
||||||
|
end function
|
||||||
|
|
||||||
end namespace
|
end namespace
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-lib",
|
"name": "playlet-lib",
|
||||||
"version": "0.19.2",
|
"version": "0.22.0",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet-lib",
|
"name": "playlet-lib",
|
||||||
"version": "0.19.2"
|
"version": "0.22.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-lib",
|
"name": "playlet-lib",
|
||||||
"version": "0.19.2",
|
"version": "0.22.0",
|
||||||
"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",
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import "pkg:/components/Dialog/DialogUtils.bs"
|
import "pkg:/components/Dialog/DialogUtils.bs"
|
||||||
import "pkg:/components/Navigation/LongPress.bs"
|
import "pkg:/components/Navigation/LongPress.bs"
|
||||||
import "pkg:/components/PlayQueue/PlayQueueViewUtils.bs"
|
import "pkg:/components/VideoQueue/VideoQueueUtils.bs"
|
||||||
import "pkg:/components/VideoPlayer/VideoUtils.bs"
|
import "pkg:/components/VideoQueue/VideoQueueViewUtils.bs"
|
||||||
import "pkg:/source/utils/FocusManagement.bs"
|
import "pkg:/source/utils/FocusManagement.bs"
|
||||||
|
import "pkg:/source/utils/Locale.bs"
|
||||||
import "pkg:/source/utils/Logging.bs"
|
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"
|
||||||
@@ -86,13 +87,13 @@ function onKeyEvent(key as string, press as boolean) as boolean
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
if key = OPTIONS_LONG_PRESS_KEY and press
|
if key = OPTIONS_LONG_PRESS_KEY and press
|
||||||
LogInfo("Opening PlayQueueView")
|
LogInfo("Opening VideoQueueView")
|
||||||
PlayQueueViewUtils.Open(m.top.playQueue, m.top)
|
VideoQueueViewUtils.Open(m.top.videoQueue, m.top)
|
||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
if key = "options" and not press
|
if key = "options" and not press
|
||||||
if VideoUtils.ToggleVideoPictureInPicture()
|
if VideoQueueUtils.ToggleVideoPictureInPicture(m.top.videoQueue)
|
||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
@@ -102,30 +103,30 @@ function onKeyEvent(key as string, press as boolean) as boolean
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
if key = "play"
|
if key = "play"
|
||||||
if VideoUtils.TogglePause()
|
if VideoQueueUtils.TogglePause(m.top.videoQueue)
|
||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
|
|
||||||
if key = "pause"
|
if key = "pause"
|
||||||
if VideoUtils.PauseVideo()
|
if VideoQueueUtils.Pause(m.top.videoQueue)
|
||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
|
|
||||||
if key = "playonly"
|
if key = "playonly"
|
||||||
if VideoUtils.ResumeVideo()
|
if VideoQueueUtils.Play(m.top.videoQueue)
|
||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
|
|
||||||
if key = "back"
|
if key = "back"
|
||||||
if VideoUtils.IsVideoPlayerOpen() and not VideoUtils.IsVideoPlayerFullScreen()
|
if VideoQueueUtils.IsVideoPlayerOpen(m.top.videoQueue) and not VideoQueueUtils.IsVideoPlayerFullScreen(m.top.videoQueue)
|
||||||
if VideoUtils.ToggleVideoPictureInPicture()
|
if VideoQueueUtils.ToggleVideoPictureInPicture(m.top.videoQueue)
|
||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
dialog = DialogUtils.ShowDialogButtons("Do you want to exit Playlet?", "Exit", ["Exit", "Cancel"])
|
dialog = DialogUtils.ShowDialogButtons(Tr(Locale.Dialogs.ExitPlayletQuestion), Tr(Locale.Buttons.exit), [Tr(Locale.Buttons.exit), Tr(Locale.Buttons.Cancel)])
|
||||||
dialog.observeField("buttonSelected", FuncName(OnExitDialog), ["buttonSelected"])
|
dialog.observeField("buttonSelected", FuncName(OnExitDialog), ["buttonSelected"])
|
||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<interface>
|
<interface>
|
||||||
<field id="root" type="node" />
|
<field id="root" type="node" />
|
||||||
<field id="stack" type="node" />
|
<field id="stack" type="node" />
|
||||||
<field id="playQueue" type="node" />
|
<field id="videoQueue" type="node" />
|
||||||
<function name="PushScreen" />
|
<function name="PushScreen" />
|
||||||
<function name="PopScreen" />
|
<function name="PopScreen" />
|
||||||
<function name="FocusTopScreen" />
|
<function name="FocusTopScreen" />
|
||||||
|
|||||||
@@ -0,0 +1,146 @@
|
|||||||
|
import "pkg:/source/utils/MathUtils.bs"
|
||||||
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
|
function Init()
|
||||||
|
m.backgroundNode = m.top.findNode("background")
|
||||||
|
m.labelNode = m.top.findNode("label")
|
||||||
|
m.iconNode = m.top.findNode("icon")
|
||||||
|
m.anchorNode = m.top.findNode("anchor")
|
||||||
|
m.focusAnimation = m.top.findNode("focusAnimation")
|
||||||
|
m.normalFont = m.top.findNode("normalFont")
|
||||||
|
m.boldFont = m.top.findNode("boldFont")
|
||||||
|
|
||||||
|
DoLayout()
|
||||||
|
OnDisabledChange()
|
||||||
|
m.top.observeField("focusedChild", FuncName(OnFocusedChild))
|
||||||
|
end function
|
||||||
|
|
||||||
|
function DoLayout() as void
|
||||||
|
minWidth = m.top.minWidth
|
||||||
|
height = m.top.height
|
||||||
|
padding = m.top.padding
|
||||||
|
textVisible = m.top.textVisible
|
||||||
|
iconVisible = m.top.iconVisible
|
||||||
|
|
||||||
|
if not textVisible and not iconVisible
|
||||||
|
m.top.width = minWidth
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
|
||||||
|
contentWidth = 0
|
||||||
|
iconWidth = 0
|
||||||
|
iconHeight = 0
|
||||||
|
textWidth = 0
|
||||||
|
iconTextSpacing = 0
|
||||||
|
|
||||||
|
if iconVisible
|
||||||
|
iconWidth = m.top.iconWidth
|
||||||
|
iconHeight = m.top.iconHeight
|
||||||
|
contentWidth += iconWidth
|
||||||
|
end if
|
||||||
|
|
||||||
|
if textVisible
|
||||||
|
labelRect = m.labelNode.boundingRect()
|
||||||
|
textWidth = labelRect.width
|
||||||
|
contentWidth += textWidth
|
||||||
|
end if
|
||||||
|
|
||||||
|
if iconVisible and textVisible
|
||||||
|
iconTextSpacing = m.top.iconTextSpacing
|
||||||
|
contentWidth += iconTextSpacing
|
||||||
|
end if
|
||||||
|
|
||||||
|
contentWidth += padding[0] + padding[1]
|
||||||
|
|
||||||
|
width = MathUtils.Max(contentWidth, minWidth)
|
||||||
|
m.top.width = width
|
||||||
|
|
||||||
|
if iconVisible
|
||||||
|
x = (width - contentWidth) / 2 + padding[0]
|
||||||
|
y = (height - iconHeight) / 2
|
||||||
|
m.iconNode.translation = [x, y]
|
||||||
|
end if
|
||||||
|
|
||||||
|
if textVisible
|
||||||
|
x = (width - contentWidth) / 2 + padding[0] + iconWidth + iconTextSpacing
|
||||||
|
m.labelNode.height = height
|
||||||
|
m.labelNode.translation = [x, 0]
|
||||||
|
end if
|
||||||
|
|
||||||
|
OnAnchorChange()
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnAnchorChange()
|
||||||
|
width = m.top.width
|
||||||
|
height = m.top.height
|
||||||
|
anchor = m.top.anchor
|
||||||
|
|
||||||
|
m.anchorNode.scaleRotateCenter = [width / 2, height / 2]
|
||||||
|
m.anchorNode.translation = [-width * anchor[0], -height * anchor[1]]
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnDisabledChange()
|
||||||
|
disabled = m.top.disabled
|
||||||
|
|
||||||
|
if disabled
|
||||||
|
if m.top.textVisible
|
||||||
|
m.labelNode.color = m.top.disabledTextColor
|
||||||
|
m.labelNode.font = m.normalFont
|
||||||
|
end if
|
||||||
|
if m.top.iconVisible
|
||||||
|
m.iconNode.blendColor = m.top.disabledIconColor
|
||||||
|
end if
|
||||||
|
m.backgroundNode.blendColor = m.top.disabledBackgroundColor
|
||||||
|
else
|
||||||
|
OnButtonFocused()
|
||||||
|
end if
|
||||||
|
m.top.focusable = not disabled
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnFocusedChild()
|
||||||
|
m.top.buttonFocused = m.top.hasFocus()
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnButtonFocused()
|
||||||
|
buttonFocused = m.top.buttonFocused
|
||||||
|
textVisible = m.top.textVisible
|
||||||
|
iconVisible = m.top.iconVisible
|
||||||
|
|
||||||
|
if buttonFocused
|
||||||
|
if textVisible
|
||||||
|
m.labelNode.color = m.top.focusedTextColor
|
||||||
|
m.labelNode.font = m.boldFont
|
||||||
|
end if
|
||||||
|
if iconVisible
|
||||||
|
m.iconNode.blendColor = m.top.focusedIconColor
|
||||||
|
end if
|
||||||
|
m.backgroundNode.blendColor = m.top.focusedBackgroundColor
|
||||||
|
|
||||||
|
m.focusAnimation.control = "start"
|
||||||
|
else
|
||||||
|
if textVisible
|
||||||
|
m.labelNode.color = m.top.textColor
|
||||||
|
m.labelNode.font = m.normalFont
|
||||||
|
end if
|
||||||
|
if iconVisible
|
||||||
|
m.iconNode.blendColor = m.top.iconColor
|
||||||
|
end if
|
||||||
|
m.backgroundNode.blendColor = m.top.backgroundColor
|
||||||
|
end if
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnkeyEvent(key as string, press as boolean) as boolean
|
||||||
|
if not press
|
||||||
|
return false
|
||||||
|
end if
|
||||||
|
|
||||||
|
if key = "OK"
|
||||||
|
disabled = m.top.disabled
|
||||||
|
if not disabled
|
||||||
|
m.top.buttonSelected = true
|
||||||
|
end if
|
||||||
|
return true
|
||||||
|
end if
|
||||||
|
|
||||||
|
return false
|
||||||
|
end function
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
<component name="ButtonEx" extends="Group">
|
||||||
|
<interface>
|
||||||
|
<field id="text" type="string" alias="label.text" onChange="DoLayout" />
|
||||||
|
<field id="textVisible" type="boolean" alias="label.visible" onChange="DoLayout" />
|
||||||
|
<field id="textColor" type="color" value="#DDDDDD" />
|
||||||
|
<field id="focusedTextColor" type="color" value="#262626" />
|
||||||
|
<field id="disabledTextColor" type="color" value="#606060" />
|
||||||
|
<field id="normalFontSize" type="integer" alias="normalFont.size" onChange="DoLayout" />
|
||||||
|
<field id="boldFontSize" type="integer" alias="boldFont.size" onChange="DoLayout" />
|
||||||
|
|
||||||
|
<field id="iconTextSpacing" type="float" value="10" onChange="DoLayout" />
|
||||||
|
|
||||||
|
<field id="iconUri" type="uri" alias="icon.uri" />
|
||||||
|
<field id="iconVisible" type="boolean" alias="icon.visible" onChange="DoLayout" />
|
||||||
|
<field id="iconWidth" type="float" alias="icon.width" value="42" onChange="DoLayout" />
|
||||||
|
<field id="iconHeight" type="float" alias="icon.height" value="42" onChange="DoLayout" />
|
||||||
|
<field id="iconColor" type="color" value="#DDDDDD" />
|
||||||
|
<field id="focusedIconColor" type="color" value="#262626" />
|
||||||
|
<field id="disabledIconColor" type="color" value="#606060" />
|
||||||
|
|
||||||
|
<field id="backgroundColor" type="color" value="#3C3C3C" />
|
||||||
|
<field id="focusedBackgroundColor" type="color" value="#DDDDDD" />
|
||||||
|
<field id="disabledBackgroundColor" type="color" value="#292929" />
|
||||||
|
|
||||||
|
<field id="width" type="float" alias="background.width" onChange="DoLayout" />
|
||||||
|
<field id="minWidth" type="float" onChange="DoLayout" />
|
||||||
|
<field id="height" type="float" alias="background.height" onChange="DoLayout" value="58" />
|
||||||
|
<field id="padding" type="vector2d" value="[20,20]" onChange="DoLayout" />
|
||||||
|
<field id="anchor" type="vector2d" onChange="OnAnchorChange" />
|
||||||
|
<field id="disabled" type="boolean" onChange="OnDisabledChange" />
|
||||||
|
|
||||||
|
<field id="buttonSelected" type="boolean" alwaysNotify="true" />
|
||||||
|
<field id="buttonFocused" type="boolean" onChange="OnButtonFocused" />
|
||||||
|
</interface>
|
||||||
|
<children>
|
||||||
|
<Font id="normalFont" uri="font:SystemFontFile" size="24" />
|
||||||
|
<Font id="boldFont" uri="font:BoldSystemFontFile" size="24" />
|
||||||
|
<Group id="anchor">
|
||||||
|
<Poster
|
||||||
|
id="background"
|
||||||
|
uri="pkg:/images/button-ex.9.png">
|
||||||
|
<Poster id="icon" />
|
||||||
|
<Label
|
||||||
|
id="label"
|
||||||
|
horizAlign="center"
|
||||||
|
vertAlign="center" />
|
||||||
|
</Poster>
|
||||||
|
</Group>
|
||||||
|
<Animation
|
||||||
|
id="focusAnimation"
|
||||||
|
optional="true"
|
||||||
|
duration="0.15">
|
||||||
|
<Vector2DFieldInterpolator
|
||||||
|
id="scale"
|
||||||
|
key="[ 0.0, 0.5, 1.0 ]"
|
||||||
|
keyValue="[ [ 1.0, 1.0 ], [ 1.05, 1.05 ], [ 1.0, 1.0 ] ]"
|
||||||
|
fieldToInterp="anchor.scale" />
|
||||||
|
</Animation>
|
||||||
|
</children>
|
||||||
|
</component>
|
||||||
@@ -1,8 +1,11 @@
|
|||||||
|
import "pkg:/components/ContextMenu/ContextMenuUtils.bs"
|
||||||
|
import "pkg:/components/Dialog/DialogUtils.bs"
|
||||||
import "pkg:/components/Navigation/Navigation.bs"
|
import "pkg:/components/Navigation/Navigation.bs"
|
||||||
import "pkg:/source/AsyncTask/AsyncTask.bs"
|
import "pkg:/source/AsyncTask/AsyncTask.bs"
|
||||||
import "pkg:/source/AsyncTask/Tasks.bs"
|
import "pkg:/source/AsyncTask/Tasks.bs"
|
||||||
import "pkg:/source/utils/DisposableObserve.bs"
|
import "pkg:/source/utils/DisposableObserve.bs"
|
||||||
import "pkg:/source/utils/FocusManagement.bs"
|
import "pkg:/source/utils/FocusManagement.bs"
|
||||||
|
import "pkg:/source/utils/Locale.bs"
|
||||||
import "pkg:/source/utils/Logging.bs"
|
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"
|
||||||
@@ -16,6 +19,7 @@ function Init()
|
|||||||
m.banner = m.top.findNode("banner")
|
m.banner = m.top.findNode("banner")
|
||||||
m.thumbnail = m.top.findNode("thumbnail")
|
m.thumbnail = m.top.findNode("thumbnail")
|
||||||
m.authorLabel = m.top.findNode("authorLabel")
|
m.authorLabel = m.top.findNode("authorLabel")
|
||||||
|
m.subCountLabel = m.top.findNode("subCountLabel")
|
||||||
m.subscribeButton = m.top.findNode("subscribeButton")
|
m.subscribeButton = m.top.findNode("subscribeButton")
|
||||||
m.rowList = m.top.FindNode("rowList")
|
m.rowList = m.top.FindNode("rowList")
|
||||||
m.rowList.focusable = true
|
m.rowList.focusable = true
|
||||||
@@ -26,6 +30,7 @@ function Init()
|
|||||||
m.authorId = ""
|
m.authorId = ""
|
||||||
|
|
||||||
InitializeTabs()
|
InitializeTabs()
|
||||||
|
InitializeSortOptions()
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OnNodeready()
|
function OnNodeready()
|
||||||
@@ -34,7 +39,7 @@ function OnNodeready()
|
|||||||
SetNavigation(m.rowList, "up", m.subscribeButton)
|
SetNavigation(m.rowList, "up", m.subscribeButton)
|
||||||
SetNavigation(m.subscribeButton, "down", m.rowList)
|
SetNavigation(m.subscribeButton, "down", m.rowList)
|
||||||
|
|
||||||
m.subscribeButton.text = "Subscribe"
|
m.subscribeButton.text = Tr(Locale.Buttons.Subscribe)
|
||||||
DisposableObserveFieldScoped(m.subscribeButton, "buttonSelected", FuncName(OnSubscribeButtonSelected))
|
DisposableObserveFieldScoped(m.subscribeButton, "buttonSelected", FuncName(OnSubscribeButtonSelected))
|
||||||
|
|
||||||
SetSubscribeButtonVisibility()
|
SetSubscribeButtonVisibility()
|
||||||
@@ -60,6 +65,7 @@ function OnContentSet() as void
|
|||||||
|
|
||||||
' NOTE: "_author" not "author". See PlaylistContentNode.xml for explanation.
|
' NOTE: "_author" not "author". See PlaylistContentNode.xml for explanation.
|
||||||
m.authorLabel.text = content._author
|
m.authorLabel.text = content._author
|
||||||
|
m.subCountLabel.text = content.subCountText
|
||||||
m.banner.uri = content.banner
|
m.banner.uri = content.banner
|
||||||
if StringUtils.IsNullOrEmpty(content.thumbnail)
|
if StringUtils.IsNullOrEmpty(content.thumbnail)
|
||||||
m.thumbnail.uri = ""
|
m.thumbnail.uri = ""
|
||||||
@@ -170,25 +176,51 @@ end function
|
|||||||
|
|
||||||
function InitializeTabs()
|
function InitializeTabs()
|
||||||
m.tabs = {
|
m.tabs = {
|
||||||
videos: function(authorId as string, author as string) as object
|
"videos": function(authorId as string, author as string) as object
|
||||||
return CreateChannelFeed("Latest videos", "channel_videos", authorId, author)
|
return CreateChannelFeed("Videos", "channel_videos", authorId, author)
|
||||||
end function
|
end function
|
||||||
shorts: function(authorId as string, author as string) as object
|
"shorts": function(authorId as string, author as string) as object
|
||||||
return CreateChannelFeed("Shorts", "channel_shorts", authorId, author)
|
return CreateChannelFeed("Shorts", "channel_shorts", authorId, author)
|
||||||
end function
|
end function
|
||||||
streams: function(authorId as string, author as string) as object
|
"streams": function(authorId as string, author as string) as object
|
||||||
return CreateChannelFeed("Live", "channel_streams", authorId, author)
|
return CreateChannelFeed("Live", "channel_streams", authorId, author)
|
||||||
end function
|
end function
|
||||||
podcasts: function(authorId as string, author as string) as object
|
"releases": function(authorId as string, author as string) as object
|
||||||
|
return CreateChannelFeed("Releases", "channel_releases", authorId, author)
|
||||||
|
end function
|
||||||
|
"podcasts": function(authorId as string, author as string) as object
|
||||||
return CreateChannelFeed("Podcasts", "channel_podcasts", authorId, author)
|
return CreateChannelFeed("Podcasts", "channel_podcasts", authorId, author)
|
||||||
end function
|
end function
|
||||||
playlists: function(authorId as string, author as string) as object
|
"playlists": function(authorId as string, author as string) as object
|
||||||
return CreateChannelFeed("Playlists", "channel_playlists", authorId, author)
|
return CreateChannelFeed("Playlists", "channel_playlists", authorId, author)
|
||||||
end function
|
end function
|
||||||
}
|
}
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
function InitializeSortOptions()
|
||||||
|
m.sortOptions = {
|
||||||
|
"channel_videos": [{
|
||||||
|
"id": "newest"
|
||||||
|
"title": "Latest"
|
||||||
|
}, {
|
||||||
|
"id": "popular"
|
||||||
|
"title": "Popular"
|
||||||
|
}, {
|
||||||
|
"id": "oldest"
|
||||||
|
"title": "Oldest"
|
||||||
|
}]
|
||||||
|
"channel_playlists": [{
|
||||||
|
"id": "newest"
|
||||||
|
"title": "Date added (newest)"
|
||||||
|
}, {
|
||||||
|
"id": "last"
|
||||||
|
"title": "Last video added"
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
end function
|
||||||
|
|
||||||
function CreateChannelFeed(title as string, endpoint as string, ucid as string, author as string) as object
|
function CreateChannelFeed(title as string, endpoint as string, ucid as string, author as string) as object
|
||||||
|
title = Tr(title)
|
||||||
return {
|
return {
|
||||||
title: title
|
title: title
|
||||||
feedSources: [{
|
feedSources: [{
|
||||||
@@ -207,7 +239,32 @@ function GetContextMenuOptionsForItem(video as object) as object
|
|||||||
if StringUtils.IsNullOrEmpty(m.top.authorId)
|
if StringUtils.IsNullOrEmpty(m.top.authorId)
|
||||||
return []
|
return []
|
||||||
end if
|
end if
|
||||||
return m.bookmarks@.GetMenuForChannel(m.top.content)
|
options = m.bookmarksService@.GetMenuForChannel(m.top.content)
|
||||||
|
options.Append(GetSortingContextMenuOptionsForItem(video))
|
||||||
|
return options
|
||||||
|
end function
|
||||||
|
|
||||||
|
function GetSortingContextMenuOptionsForItem(video as object) as object
|
||||||
|
feedContentNode = video.getParent()
|
||||||
|
if feedContentNode = invalid or not feedContentNode.hasField("feedSources")
|
||||||
|
return []
|
||||||
|
end if
|
||||||
|
|
||||||
|
feedSources = feedContentNode.feedSources
|
||||||
|
if feedSources = invalid or feedSources.Count() = 0
|
||||||
|
return []
|
||||||
|
end if
|
||||||
|
|
||||||
|
feedSource = feedSources[0]
|
||||||
|
endpoint = feedSource.endpoint
|
||||||
|
if not m.sortOptions.DoesExist(endpoint)
|
||||||
|
return []
|
||||||
|
end if
|
||||||
|
|
||||||
|
title = Tr(Locale.Dialogs.SortFeedBy).replace("%1", `"${feedSource.title}"`)
|
||||||
|
sortOptions = m.sortOptions[endpoint]
|
||||||
|
|
||||||
|
return [ContextMenuUtils.CreateOption(title + "...", m.top, "ShowSortDialog", [title, sortOptions, feedContentNode])]
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function IsLoggedIn() as boolean
|
function IsLoggedIn() as boolean
|
||||||
@@ -236,10 +293,10 @@ function OnAuthorIdChange()
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function SetSubscribeButtonVisibility()
|
function SetSubscribeButtonVisibility()
|
||||||
isLogged = IsLoggedIn()
|
isEnabled = IsLoggedIn() and not StringUtils.IsNullOrEmpty(m.top.authorId)
|
||||||
m.subscribeButton.visible = isLogged and not StringUtils.IsNullOrEmpty(m.top.authorId)
|
m.subscribeButton.visible = isEnabled
|
||||||
m.subscribeButton.focusable = m.subscribeButton.visible
|
m.subscribeButton.focusable = isEnabled
|
||||||
if not m.subscribeButton.visible and m.subscribeButton.hasFocus()
|
if not isEnabled and m.subscribeButton.hasFocus()
|
||||||
NodeSetFocus(m.rowList, true)
|
NodeSetFocus(m.rowList, true)
|
||||||
end if
|
end if
|
||||||
end function
|
end function
|
||||||
@@ -247,8 +304,56 @@ end function
|
|||||||
function OnSubscriptionChanged()
|
function OnSubscriptionChanged()
|
||||||
isSubbed = IsSubscribed()
|
isSubbed = IsSubscribed()
|
||||||
if isSubbed
|
if isSubbed
|
||||||
m.subscribeButton.text = "Unsubscribe"
|
m.subscribeButton.text = Tr(Locale.Buttons.Unsubscribe)
|
||||||
else
|
else
|
||||||
m.subscribeButton.text = "Subscribe"
|
m.subscribeButton.text = Tr(Locale.Buttons.Subscribe)
|
||||||
end if
|
end if
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
function ShowSortDialog(title as string, sortOptions as object, feedContentNode as object)
|
||||||
|
buttons = []
|
||||||
|
for i = 0 to sortOptions.Count() - 1
|
||||||
|
buttons.Push(Tr(sortOptions[i].title))
|
||||||
|
end for
|
||||||
|
|
||||||
|
dialog = DialogUtils.ShowDialogButtons("", title, buttons)
|
||||||
|
dialog.addFields({
|
||||||
|
"feedContentNode": feedContentNode
|
||||||
|
"sortOptions": sortOptions
|
||||||
|
})
|
||||||
|
dialog.observeField("buttonSelected", FuncName(OnSortDialogResult), ["buttonSelected"])
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnSortDialogResult(event as object) as void
|
||||||
|
dialog = event.getRoSGNode()
|
||||||
|
sortOptions = dialog.sortOptions
|
||||||
|
buttonIndex = event.GetData()
|
||||||
|
|
||||||
|
if not IsInt(buttonIndex) or buttonIndex < 0 or buttonIndex >= sortOptions.Count()
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
|
||||||
|
selected = sortOptions[buttonIndex]
|
||||||
|
|
||||||
|
feedContentNode = dialog.feedContentNode
|
||||||
|
feedSources = feedContentNode.feedSources
|
||||||
|
if feedSources = invalid or feedSources.Count() = 0
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
selectedFeedSource = feedSources[0]
|
||||||
|
|
||||||
|
currentFeeds = m.rowList.feeds
|
||||||
|
for i = 0 to currentFeeds.Count() - 1
|
||||||
|
feed = currentFeeds[i]
|
||||||
|
feedSource = feed.feedSources[0]
|
||||||
|
if feedSource.id = selectedFeedSource.id
|
||||||
|
if feedSource.queryParams = invalid
|
||||||
|
feedSource.queryParams = {}
|
||||||
|
end if
|
||||||
|
|
||||||
|
feedSource.queryParams["sort_by"] = selected.id
|
||||||
|
m.rowList.feeds = currentFeeds
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
end for
|
||||||
|
end function
|
||||||
@@ -4,7 +4,8 @@
|
|||||||
<field id="authorId" type="string" onChange="OnAuthorIdChange" />
|
<field id="authorId" type="string" onChange="OnAuthorIdChange" />
|
||||||
<field id="appController" type="node" bind="/AppController" />
|
<field id="appController" type="node" bind="/AppController" />
|
||||||
<field id="invidious" type="node" bind="/Invidious" />
|
<field id="invidious" type="node" bind="/Invidious" />
|
||||||
<field id="bookmarks" type="node" bind="/Bookmarks" />
|
<field id="bookmarksService" type="node" bind="/BookmarksService" />
|
||||||
|
<function name="ShowSortDialog" />
|
||||||
</interface>
|
</interface>
|
||||||
<children>
|
<children>
|
||||||
<Rectangle
|
<Rectangle
|
||||||
@@ -23,6 +24,7 @@
|
|||||||
translation="[115,20]"
|
translation="[115,20]"
|
||||||
width="104"
|
width="104"
|
||||||
height="104"
|
height="104"
|
||||||
|
blendColor="#DDDDDDFF"
|
||||||
uri="pkg:/images/white-circle.png">
|
uri="pkg:/images/white-circle.png">
|
||||||
|
|
||||||
<CirclePoster
|
<CirclePoster
|
||||||
@@ -36,15 +38,18 @@
|
|||||||
id="authorLabel"
|
id="authorLabel"
|
||||||
translation="[115,40]"
|
translation="[115,40]"
|
||||||
font="font:MediumBoldSystemFont" />
|
font="font:MediumBoldSystemFont" />
|
||||||
|
<Label
|
||||||
|
id="subCountLabel"
|
||||||
|
translation="[115,70]"
|
||||||
|
font="font:SmallestSystemFont" />
|
||||||
</Poster>
|
</Poster>
|
||||||
|
|
||||||
<Button
|
<ButtonEx
|
||||||
id="subscribeButton"
|
id="subscribeButton"
|
||||||
iconUri=""
|
iconVisible="false"
|
||||||
focusedIconUri=""
|
anchor="[0.5,0.5]"
|
||||||
showFocusFootprint="true"
|
padding="[30,30]"
|
||||||
minWidth="200"
|
translation="[1050,90]" />
|
||||||
translation="[930,64]" />
|
|
||||||
|
|
||||||
<VideoRowList
|
<VideoRowList
|
||||||
itemComponentName="RowCell"
|
itemComponentName="RowCell"
|
||||||
@@ -61,7 +66,7 @@
|
|||||||
showRowLabel="[true]"
|
showRowLabel="[true]"
|
||||||
rowFocusAnimationStyle="floatingfocus"
|
rowFocusAnimationStyle="floatingfocus"
|
||||||
variableWidthItems="true"
|
variableWidthItems="true"
|
||||||
focusBitmapUri="pkg:/images/focus_grid.9.png" />
|
focusBitmapUri="pkg:/images/focus-glow-padding-19.9.png" />
|
||||||
|
|
||||||
<Animation
|
<Animation
|
||||||
id="scrollAnimation"
|
id="scrollAnimation"
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
<component name="ActionContentNode" extends="ContentNode">
|
|
||||||
<interface>
|
|
||||||
<field id="type" type="string" value="action" />
|
|
||||||
<field id="action" type="string" />
|
|
||||||
</interface>
|
|
||||||
</component>
|
|
||||||
@@ -3,11 +3,9 @@ import "pkg:/components/VideoFeed/FeedLoadState.bs"
|
|||||||
import "pkg:/source/AsyncTask/AsyncTask.bs"
|
import "pkg:/source/AsyncTask/AsyncTask.bs"
|
||||||
import "pkg:/source/AsyncTask/Tasks.bs"
|
import "pkg:/source/AsyncTask/Tasks.bs"
|
||||||
import "pkg:/source/utils/ErrorUtils.bs"
|
import "pkg:/source/utils/ErrorUtils.bs"
|
||||||
|
import "pkg:/source/utils/Locale.bs"
|
||||||
import "pkg:/source/utils/Logging.bs"
|
import "pkg:/source/utils/Logging.bs"
|
||||||
|
|
||||||
function Init()
|
|
||||||
end function
|
|
||||||
|
|
||||||
function LoadChannel(invidiousNode as object) as void
|
function LoadChannel(invidiousNode as object) as void
|
||||||
if m.contentTask <> invalid
|
if m.contentTask <> invalid
|
||||||
m.contentTask.cancel = true
|
m.contentTask.cancel = true
|
||||||
@@ -42,8 +40,8 @@ function OnChannelContentTaskResult(output as object) as void
|
|||||||
error = ErrorUtils.Format(error)
|
error = ErrorUtils.Format(error)
|
||||||
LogError(error)
|
LogError(error)
|
||||||
authorId = output.task.input.content.authorId
|
authorId = output.task.input.content.authorId
|
||||||
message = `Failed to load channel ${authorId}\n${error}`
|
message = Tr(Locale.Dialogs.FailedToLoadChannel).Replace("%1", authorId) + `\n${error}`
|
||||||
DialogUtils.ShowDialog(message, "Channel load fail", true)
|
DialogUtils.ShowDialog(message, Tr(Locale.Dialogs.ChannelLoadError), true)
|
||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
end function
|
end function
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
import "pkg:/components/Dialog/DialogUtils.bs"
|
||||||
|
import "pkg:/components/VideoFeed/FeedLoadState.bs"
|
||||||
|
import "pkg:/source/AsyncTask/AsyncTask.bs"
|
||||||
|
import "pkg:/source/AsyncTask/Tasks.bs"
|
||||||
|
import "pkg:/source/utils/ErrorUtils.bs"
|
||||||
|
import "pkg:/source/utils/Locale.bs"
|
||||||
|
import "pkg:/source/utils/Logging.bs"
|
||||||
|
|
||||||
|
function LoadPlaylistPage(invidiousNode as object) as void
|
||||||
|
LoadPlaylist(invidiousNode, true)
|
||||||
|
end function
|
||||||
|
|
||||||
|
function LoadPlaylistAll(invidiousNode as object) as void
|
||||||
|
LoadPlaylist(invidiousNode, false)
|
||||||
|
end function
|
||||||
|
|
||||||
|
function LoadPlaylist(invidiousNode as object, singlePage as boolean) as void
|
||||||
|
if m.contentTask <> invalid
|
||||||
|
m.contentTask.cancel = true
|
||||||
|
end if
|
||||||
|
|
||||||
|
loadState = m.top.loadState
|
||||||
|
if loadState = FeedLoadState.Loading or loadState = FeedLoadState.Loaded
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
|
||||||
|
m.top.loadState = FeedLoadState.Loading
|
||||||
|
m.contentTask = AsyncTask.Start(Tasks.PlaylistContentTask, {
|
||||||
|
content: m.top
|
||||||
|
invidious: invidiousNode
|
||||||
|
singlePage: singlePage
|
||||||
|
}, OnPlaylistContentTaskResult)
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnPlaylistContentTaskResult(output as object) as void
|
||||||
|
m.contentTask = invalid
|
||||||
|
|
||||||
|
if output.cancelled
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
|
||||||
|
if not output.success or not output.result.success
|
||||||
|
' output.error for unhandled exception
|
||||||
|
error = output.error
|
||||||
|
if error = invalid
|
||||||
|
' output.result.error for network errors
|
||||||
|
error = output.result.error
|
||||||
|
end if
|
||||||
|
error = ErrorUtils.Format(error)
|
||||||
|
LogError(error)
|
||||||
|
playlistId = output.task.input.content.playlistId
|
||||||
|
message = Tr(Locale.Dialogs.FailedToLoadPlaylist).Replace("%1", playlistId) + `\n${error}`
|
||||||
|
DialogUtils.ShowDialog(message, Tr(Locale.Dialogs.PlaylistLoadError), true)
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
end function
|
||||||
@@ -1,5 +1,8 @@
|
|||||||
<component name="PlaylistContentNode" extends="ContentNode">
|
<component name="PlaylistContentNode" extends="ContentNode">
|
||||||
<interface>
|
<interface>
|
||||||
|
<function name="LoadPlaylistPage" />
|
||||||
|
<function name="LoadPlaylistAll" />
|
||||||
|
|
||||||
<field id="type" type="string" value="playlist" />
|
<field id="type" type="string" value="playlist" />
|
||||||
<field id="loadState" type="string" />
|
<field id="loadState" type="string" />
|
||||||
<!-- index in a feed -->
|
<!-- index in a feed -->
|
||||||
|
|||||||
@@ -0,0 +1,57 @@
|
|||||||
|
import "pkg:/components/Services/Invidious/InvidiousService.bs"
|
||||||
|
import "pkg:/components/Services/Invidious/InvidiousToContentNode.bs"
|
||||||
|
import "pkg:/components/VideoFeed/FeedLoadState.bs"
|
||||||
|
|
||||||
|
@asynctask
|
||||||
|
function PlaylistContentTask(input as object) as object
|
||||||
|
contentNode = input.content
|
||||||
|
invidiousNode = input.invidious
|
||||||
|
singlePage = input.singlePage
|
||||||
|
|
||||||
|
if m.top.cancel
|
||||||
|
contentNode.loadState = FeedLoadState.None
|
||||||
|
return invalid
|
||||||
|
end if
|
||||||
|
|
||||||
|
service = new Invidious.InvidiousService(invidiousNode)
|
||||||
|
instance = service.GetInstance()
|
||||||
|
|
||||||
|
while true
|
||||||
|
index = contentNode.getChildCount()
|
||||||
|
response = service.GetPlaylist(contentNode.playlistId, index, m.top.cancellation)
|
||||||
|
|
||||||
|
if m.top.cancel
|
||||||
|
contentNode.loadState = FeedLoadState.None
|
||||||
|
return invalid
|
||||||
|
end if
|
||||||
|
|
||||||
|
metadata = response.Json()
|
||||||
|
|
||||||
|
if not response.IsSuccess() or metadata = invalid
|
||||||
|
contentNode.loadState = FeedLoadState.Error
|
||||||
|
return {
|
||||||
|
success: false
|
||||||
|
error: response.ErrorMessage()
|
||||||
|
}
|
||||||
|
end if
|
||||||
|
|
||||||
|
InvidiousContent.ToPlaylistContentNode(contentNode, metadata, instance)
|
||||||
|
childCount = contentNode.getChildCount()
|
||||||
|
|
||||||
|
if metadata.videos.Count() = 0 or childCount >= metadata.videoCount
|
||||||
|
contentNode.loadState = FeedLoadState.Loaded
|
||||||
|
return {
|
||||||
|
success: true
|
||||||
|
}
|
||||||
|
else
|
||||||
|
contentNode.loadState = FeedLoadState.LoadedPage
|
||||||
|
if singlePage
|
||||||
|
return {
|
||||||
|
success: true
|
||||||
|
}
|
||||||
|
end if
|
||||||
|
end if
|
||||||
|
end while
|
||||||
|
|
||||||
|
return invalid
|
||||||
|
end function
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
<component name="ProfileContentNode" extends="ContentNode">
|
||||||
|
<interface>
|
||||||
|
<field id="type" type="string" value="invidious" />
|
||||||
|
<field id="isSelected" type="boolean" alwaysNotify="true" />
|
||||||
|
|
||||||
|
<field id="username" type="string" />
|
||||||
|
<field id="serverUrl" type="string" />
|
||||||
|
<field id="accessToken" type="string" />
|
||||||
|
|
||||||
|
<field id="color" type="color" />
|
||||||
|
</interface>
|
||||||
|
</component>
|
||||||
@@ -5,8 +5,11 @@
|
|||||||
<field id="index" type="integer" value="-1" />
|
<field id="index" type="integer" value="-1" />
|
||||||
<!-- index in a feed -->
|
<!-- index in a feed -->
|
||||||
<field id="feedSourcesIndex" type="integer" value="-1" />
|
<field id="feedSourcesIndex" type="integer" value="-1" />
|
||||||
|
<!-- index in the queue -->
|
||||||
|
<field id="queueIndex" type="integer" value="-1" />
|
||||||
|
|
||||||
<field id="author" type="string" />
|
<!-- NOTE: "_author" not "author". See PlaylistContentNode.xml for explanation -->
|
||||||
|
<field id="_author" type="string" />
|
||||||
<field id="authorId" type="string" />
|
<field id="authorId" type="string" />
|
||||||
<field id="isUpcoming" type="boolean" />
|
<field id="isUpcoming" type="boolean" />
|
||||||
<field id="lengthSeconds" type="integer" />
|
<field id="lengthSeconds" type="integer" />
|
||||||
|
|||||||
@@ -71,8 +71,6 @@ import "pkg:/source/utils/Types.bs"
|
|||||||
' - "Remove group from Bookmarks"
|
' - "Remove group from Bookmarks"
|
||||||
' - "Reload bookmarks" - DONE
|
' - "Reload bookmarks" - DONE
|
||||||
'
|
'
|
||||||
' TODO:P1 Playlist item seletected from the bookmarks need to play as a playlist, not as a single video
|
|
||||||
' TODO:P1 Context menu might need to be scrollable (both horizontally and vertically)
|
|
||||||
' TODO:P1 Context menu might need sections. Example:
|
' TODO:P1 Context menu might need sections. Example:
|
||||||
' In a Channel view, while selecting a playlist:
|
' In a Channel view, while selecting a playlist:
|
||||||
' - Channel
|
' - Channel
|
||||||
|
|||||||
@@ -14,7 +14,8 @@ function OnItemHasFocus()
|
|||||||
m.top.color = "#262626ff"
|
m.top.color = "#262626ff"
|
||||||
else
|
else
|
||||||
m.top.font = "font:SmallestSystemFont"
|
m.top.font = "font:SmallestSystemFont"
|
||||||
m.top.color = "#DBDBDBFF"
|
' bs:disable-next-line LINT3023
|
||||||
|
m.top.color = "#EBEBEBFF"
|
||||||
end if
|
end if
|
||||||
end function
|
end function
|
||||||
|
|
||||||
@@ -24,6 +25,7 @@ function OnFocusPercent()
|
|||||||
m.top.color = "#262626FF"
|
m.top.color = "#262626FF"
|
||||||
else
|
else
|
||||||
m.top.font = "font:SmallestSystemFont"
|
m.top.font = "font:SmallestSystemFont"
|
||||||
m.top.color = "#DBDBDBFF"
|
' bs:disable-next-line LINT3023
|
||||||
|
m.top.color = "#EBEBEBFF"
|
||||||
end if
|
end if
|
||||||
end function
|
end function
|
||||||
@@ -31,7 +31,7 @@ namespace ContextMenuUtils
|
|||||||
if item.type = "video"
|
if item.type = "video"
|
||||||
LogInfo("Opening context menu for video:", item.videoId)
|
LogInfo("Opening context menu for video:", item.videoId)
|
||||||
title = item.title
|
title = item.title
|
||||||
subtitle = item.author
|
subtitle = item._author
|
||||||
thumbnail = item.thumbnail
|
thumbnail = item.thumbnail
|
||||||
else if item.type = "playlist"
|
else if item.type = "playlist"
|
||||||
LogInfo("Opening context menu for playlist:", item.playlistId)
|
LogInfo("Opening context menu for playlist:", item.playlistId)
|
||||||
|
|||||||
@@ -4,9 +4,11 @@ function SetPalette(dialog as object)
|
|||||||
DialogBackgroundColor: "#242424FF"
|
DialogBackgroundColor: "#242424FF"
|
||||||
DialogFocusColor: "#CECECEFF"
|
DialogFocusColor: "#CECECEFF"
|
||||||
DialogFocusItemColor: "#202020FF"
|
DialogFocusItemColor: "#202020FF"
|
||||||
DialogSecondaryTextColor: "#DBDBDBFF"
|
' bs:disable-next-line LINT3023
|
||||||
|
DialogSecondaryTextColor: "#EBEBEBFF"
|
||||||
DialogSecondaryItemColor: "#FF1C30FF"
|
DialogSecondaryItemColor: "#FF1C30FF"
|
||||||
DialogTextColor: "#DBDBDBFF"
|
' bs:disable-next-line LINT3023
|
||||||
|
DialogTextColor: "#EBEBEBFF"
|
||||||
}
|
}
|
||||||
dialog.palette = palette
|
dialog.palette = palette
|
||||||
end function
|
end function
|
||||||
@@ -1,6 +1,8 @@
|
|||||||
|
import "pkg:/source/utils/Locale.bs"
|
||||||
|
|
||||||
namespace DialogUtils
|
namespace DialogUtils
|
||||||
function ShowDialog(message as dynamic, title as string, large = false as boolean) as object
|
function ShowDialog(message as dynamic, title as string, large = false as boolean) as object
|
||||||
return ShowDialogButtons(message, title, ["Ok"], large)
|
return ShowDialogButtons(message, title, [Tr(Locale.Buttons.OK)], large)
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function ShowDialogButtons(message as dynamic, title as string, buttons as object, large = false as boolean) as object
|
function ShowDialogButtons(message as dynamic, title as string, buttons as object, large = false as boolean) as object
|
||||||
@@ -22,4 +24,31 @@ namespace DialogUtils
|
|||||||
m.top.getScene().dialog = dialog
|
m.top.getScene().dialog = dialog
|
||||||
return dialog
|
return dialog
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
function ShowTimedDialogButtons(message as dynamic, title as string, buttons as object, defaultButton as integer, timeoutSeconds as integer, large = false as boolean) as object
|
||||||
|
dialog = CreateObject("roSGNode", "TimedDialog")
|
||||||
|
if GetInterface(message, "ifArray") = invalid
|
||||||
|
message = message.Tokenize(`\n`).ToArray()
|
||||||
|
end if
|
||||||
|
dialog.message = message
|
||||||
|
dialog.title = title
|
||||||
|
dialog.actualButtons = buttons
|
||||||
|
|
||||||
|
if large
|
||||||
|
if m._deviceDisplayWidth = invalid
|
||||||
|
deviceInfo = CreateObject("roDeviceInfo")
|
||||||
|
displaySize = deviceInfo.GetDisplaySize()
|
||||||
|
m._deviceDisplayWidth = displaySize.w
|
||||||
|
end if
|
||||||
|
dialog.width = m._deviceDisplayWidth - 100
|
||||||
|
end if
|
||||||
|
|
||||||
|
dialog.defaultButtonIndex = defaultButton
|
||||||
|
dialog.defaultActionTimeoutSeconds = timeoutSeconds
|
||||||
|
dialog.startCountdown = true
|
||||||
|
|
||||||
|
m.top.getScene().dialog = dialog
|
||||||
|
|
||||||
|
return dialog
|
||||||
|
end function
|
||||||
end namespace
|
end namespace
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
import "DialogPalette.bs"
|
import "DialogPalette.bs"
|
||||||
import "pkg:/source/AsyncTask/AsyncTask.bs"
|
import "pkg:/source/utils/Locale.bs"
|
||||||
import "pkg:/source/AsyncTask/Tasks.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"
|
||||||
|
|
||||||
@@ -11,6 +10,9 @@ function Init()
|
|||||||
|
|
||||||
m.top.width = "920"
|
m.top.width = "920"
|
||||||
m.top.observeFieldScoped("buttonSelected", FuncName(Close))
|
m.top.observeFieldScoped("buttonSelected", FuncName(Close))
|
||||||
|
|
||||||
|
scanLabel = m.top.findNode("scanLabel")
|
||||||
|
scanLabel.text = Tr(Locale.Dialogs.ScanTheQrCode)
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OnNodeReady()
|
function OnNodeReady()
|
||||||
@@ -19,7 +21,7 @@ function OnNodeReady()
|
|||||||
if isValidAddress
|
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 = Tr(Locale.Dialogs.IpAddressNotAvailable)
|
||||||
end if
|
end if
|
||||||
|
|
||||||
m.invidious.observeFieldScoped("authToken", FuncName(OnAuthTokenChange))
|
m.invidious.observeFieldScoped("authToken", FuncName(OnAuthTokenChange))
|
||||||
@@ -33,14 +35,10 @@ function OnUrlSet()
|
|||||||
url = m.top.url
|
url = m.top.url
|
||||||
|
|
||||||
m.urlLabel.text = url
|
m.urlLabel.text = url
|
||||||
AsyncTask.Start(Tasks.GenerateQrCodeTask, {
|
m.qrCode.text = url
|
||||||
poster: m.qrCode
|
|
||||||
text: url
|
|
||||||
size: m.qrCode.loadWidth
|
|
||||||
padding: 10
|
|
||||||
})
|
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OnAuthTokenChange()
|
function OnAuthTokenChange()
|
||||||
|
m.invidious.unobserveFieldScoped("authToken")
|
||||||
Close()
|
Close()
|
||||||
end function
|
end function
|
||||||
@@ -7,8 +7,8 @@
|
|||||||
<children>
|
<children>
|
||||||
<StdDlgTitleArea primaryTitle="Login to Invidious" />
|
<StdDlgTitleArea primaryTitle="Login to Invidious" />
|
||||||
<StdDlgContentArea>
|
<StdDlgContentArea>
|
||||||
<StdDlgTextItem
|
<StdDlgTextItem text="Login to Invidious in order to view Subscriptions, Playlists, and use the Watch history." />
|
||||||
text="Login to Invidious in order to view Subscriptions, Playlists, and use the Watch history.

Please note that an Invidious account is different from a YouTube account." />
|
<StdDlgTextItem text="Please note that an Invidious account is different from a YouTube account." />
|
||||||
</StdDlgContentArea>
|
</StdDlgContentArea>
|
||||||
<StdDlgButtonArea id="buttonArea">
|
<StdDlgButtonArea id="buttonArea">
|
||||||
<StdDlgButton text="OK" />
|
<StdDlgButton text="OK" />
|
||||||
@@ -20,17 +20,19 @@
|
|||||||
extendToDialogEdge="false"
|
extendToDialogEdge="false"
|
||||||
showDivider="false">
|
showDivider="false">
|
||||||
<Label
|
<Label
|
||||||
|
id="scanLabel"
|
||||||
text="Scan the QR Code"
|
text="Scan the QR Code"
|
||||||
horizAlign="center"
|
horizAlign="center"
|
||||||
wrap="true" width="400">
|
wrap="true" width="400">
|
||||||
<Font role="font" uri="font:SystemFontFile" size="24" />
|
<Font role="font" uri="font:SystemFontFile" size="24" />
|
||||||
</Label>
|
</Label>
|
||||||
<Poster
|
<QrCodePoster
|
||||||
id="QrCodePoster"
|
id="QrCodePoster"
|
||||||
width="300"
|
width="300"
|
||||||
height="300"
|
height="300"
|
||||||
loadWidth="300"
|
loadWidth="300"
|
||||||
loadHeight="300"
|
loadHeight="300"
|
||||||
|
padding="10"
|
||||||
translation="[50, 50]" />
|
translation="[50, 50]" />
|
||||||
<Label
|
<Label
|
||||||
id="urlLabel"
|
id="urlLabel"
|
||||||
|
|||||||
@@ -0,0 +1,98 @@
|
|||||||
|
import "DialogPalette.bs"
|
||||||
|
import "pkg:/source/utils/Logging.bs"
|
||||||
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
|
function Init()
|
||||||
|
SetPalette(m.top)
|
||||||
|
m.top.observeField("buttonSelected", FuncName(OnButtonSelected))
|
||||||
|
m.top.observeField("wasClosed", FuncName(OnDialogClosed))
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnStartCountdown()
|
||||||
|
actualButtons = m.top.actualButtons
|
||||||
|
defaultButtonIndex = m.top.defaultButtonIndex
|
||||||
|
defaultActionTimeoutSeconds = m.top.defaultActionTimeoutSeconds
|
||||||
|
|
||||||
|
buttons = []
|
||||||
|
for i = 0 to actualButtons.Count() - 1
|
||||||
|
if i = defaultButtonIndex
|
||||||
|
buttons.push(`${actualButtons[i]} (${defaultActionTimeoutSeconds})`)
|
||||||
|
else
|
||||||
|
buttons.push(actualButtons[i])
|
||||||
|
end if
|
||||||
|
end for
|
||||||
|
m.top.buttons = buttons
|
||||||
|
|
||||||
|
CancelTimer()
|
||||||
|
m.timer = CreateObject("roSGNode", "Timer")
|
||||||
|
m.timer.repeat = true
|
||||||
|
m.timer.observeFieldScoped("fire", FuncName(TimerUpdateButtons))
|
||||||
|
m.currentCountDown = defaultActionTimeoutSeconds
|
||||||
|
m.timer.control = "start"
|
||||||
|
end function
|
||||||
|
|
||||||
|
function TimerUpdateButtons() as void
|
||||||
|
m.currentCountDown -= 1
|
||||||
|
if m.currentCountDown <= 0
|
||||||
|
m.top.actualButtonSelected = m.top.defaultButtonIndex
|
||||||
|
m.top.close = true
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
|
||||||
|
FindButtonComponents()
|
||||||
|
if m.buttonComponents = invalid
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
|
||||||
|
defaultButtonIndex = m.top.defaultButtonIndex
|
||||||
|
m.buttonComponents[defaultButtonIndex].text = `${m.top.actualButtons[defaultButtonIndex]} (${m.currentCountDown})`
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnButtonSelected()
|
||||||
|
m.top.actualButtonSelected = m.top.buttonSelected
|
||||||
|
m.top.close = true
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnDialogClosed()
|
||||||
|
CancelTimer()
|
||||||
|
end function
|
||||||
|
|
||||||
|
function onKeyEvent(key as string, press as boolean) as boolean
|
||||||
|
if m.timer = invalid
|
||||||
|
return false
|
||||||
|
end if
|
||||||
|
|
||||||
|
CancelTimer()
|
||||||
|
|
||||||
|
FindButtonComponents()
|
||||||
|
if m.buttonComponents = invalid
|
||||||
|
return false
|
||||||
|
end if
|
||||||
|
|
||||||
|
defaultButtonIndex = m.top.defaultButtonIndex
|
||||||
|
m.buttonComponents[defaultButtonIndex].text = m.top.actualButtons[defaultButtonIndex]
|
||||||
|
return false
|
||||||
|
end function
|
||||||
|
|
||||||
|
function CancelTimer()
|
||||||
|
if m.timer <> invalid
|
||||||
|
m.timer.control = "stop"
|
||||||
|
m.timer.unobserveFieldScoped("fire")
|
||||||
|
m.timer = invalid
|
||||||
|
end if
|
||||||
|
end function
|
||||||
|
|
||||||
|
function FindButtonComponents() as void
|
||||||
|
if m.buttonComponents <> invalid
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
|
||||||
|
areas = m.top.getChildren(-1, 0)
|
||||||
|
for each area in areas
|
||||||
|
if area.subtype() = "StdDlgButtonArea"
|
||||||
|
m.buttonComponents = area.getChildren(-1, 0)
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
end for
|
||||||
|
LogWarn("No buttons found in dialog")
|
||||||
|
end function
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
<component name="TimedDialog" extends="StandardMessageDialog">
|
||||||
|
<interface>
|
||||||
|
<field id="actualButtons" type="stringarray" />
|
||||||
|
<field id="defaultButtonIndex" type="integer" value="-1" />
|
||||||
|
<field id="defaultActionTimeoutSeconds" type="integer" value="10" />
|
||||||
|
<!-- Use actualButtonSelected because buttonSelected is read only and defaults to 0 -->
|
||||||
|
<field id="actualButtonSelected" type="integer" value="-1" />
|
||||||
|
<field id="startCountdown" type="boolean" alwaysNotify="true" onChange="OnStartCountdown" />
|
||||||
|
</interface>
|
||||||
|
</component>
|
||||||
@@ -1,10 +1,9 @@
|
|||||||
import "pkg:/components/VideoPlayer/VideoUtils.bs"
|
|
||||||
import "pkg:/source/utils/Logging.bs"
|
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"
|
||||||
|
|
||||||
function InitEcpArgs()
|
function InitEcpArgs()
|
||||||
m.playQueue = m.top.findNode("PlayQueue")
|
m.videoQueue = m.top.findNode("VideoQueue")
|
||||||
LaunchArgumentsReceived()
|
LaunchArgumentsReceived()
|
||||||
|
|
||||||
m.scene.ObserveField("inputArgs", FuncName(InputArgumentsReceived))
|
m.scene.ObserveField("inputArgs", FuncName(InputArgumentsReceived))
|
||||||
@@ -30,11 +29,9 @@ function ProcessArguments(args as object) as void
|
|||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
|
|
||||||
if not StringUtils.IsNullOrEmpty(args.contentId) and args.mediaType = "video"
|
if not StringUtils.IsNullOrEmpty(args.contentId) and StringUtils.IsNullOrEmpty(args.videoId)
|
||||||
if StringUtils.IsNullOrEmpty(args.videoId)
|
|
||||||
args.videoId = args.contentId
|
args.videoId = args.contentId
|
||||||
end if
|
end if
|
||||||
end if
|
|
||||||
|
|
||||||
if args.timestamp <> invalid
|
if args.timestamp <> invalid
|
||||||
args.timestamp = args.timestamp.ToInt()
|
args.timestamp = args.timestamp.ToInt()
|
||||||
@@ -46,6 +43,6 @@ function ProcessArguments(args as object) as void
|
|||||||
if args.timestamp <> invalid
|
if args.timestamp <> invalid
|
||||||
node.timestamp = args.timestamp
|
node.timestamp = args.timestamp
|
||||||
end if
|
end if
|
||||||
m.playQueue@.Play(node, -1)
|
m.videoQueue.playVideo = node
|
||||||
end if
|
end if
|
||||||
end function
|
end function
|
||||||
@@ -21,6 +21,12 @@ function MainSceneContainerChanged()
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function StartWebServer()
|
function StartWebServer()
|
||||||
|
m.loungeService = m.top.findNode("LoungeService")
|
||||||
|
m.loungeService@.StartService()
|
||||||
|
|
||||||
m.webServer = m.top.findNode("WebServer")
|
m.webServer = m.top.findNode("WebServer")
|
||||||
m.webServer@.StartServer()
|
m.webServer@.StartServer()
|
||||||
|
|
||||||
|
m.dialServer = m.top.findNode("DialServer")
|
||||||
|
m.dialServer@.StartServer()
|
||||||
end function
|
end function
|
||||||
@@ -22,7 +22,11 @@ function MainSceneContainerChanged()
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function StartWebServer()
|
function StartWebServer()
|
||||||
|
m.loungeService = m.top.findNode("LoungeService")
|
||||||
|
m.loungeService.callfunc("StartService", invalid)
|
||||||
m.webServer = m.top.findNode("WebServer")
|
m.webServer = m.top.findNode("WebServer")
|
||||||
m.webServer.callfunc("StartServer", invalid)
|
m.webServer.callfunc("StartServer", invalid)
|
||||||
|
m.dialServer = m.top.findNode("DialServer")
|
||||||
|
m.dialServer.callfunc("StartServer", invalid)
|
||||||
end function
|
end function
|
||||||
'//# sourceMappingURL=./MainScene.brs.map
|
'//# sourceMappingURL=./MainScene.brs.map
|
||||||
@@ -16,22 +16,20 @@
|
|||||||
<script type="text/brightscript" uri="pkg:/source/utils/Types.brs" />
|
<script type="text/brightscript" uri="pkg:/source/utils/Types.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/source/utils/StringUtils.brs" />
|
<script type="text/brightscript" uri="pkg:/source/utils/StringUtils.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/source/utils/Logging.brs" />
|
<script type="text/brightscript" uri="pkg:/source/utils/Logging.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/components/VideoPlayer/VideoUtils.brs" />
|
|
||||||
<script type="text/brightscript" uri="pkg:/source/utils/FocusManagement.brs" />
|
|
||||||
<script type="text/brightscript" uri="pkg:/components/Dialog/DialogUtils.brs" />
|
|
||||||
<script type="text/brightscript" uri="pkg:/source/bslib.brs" />
|
<script type="text/brightscript" uri="pkg:/source/bslib.brs" />
|
||||||
<children>
|
<children>
|
||||||
<Logger id="Logger" />
|
<Logger id="Logger" />
|
||||||
<AppController id="AppController">
|
<AppController id="AppController">
|
||||||
<Group id="Stack">
|
<Group id="Stack">
|
||||||
<AppRoot id="AppRoot">
|
<AppRoot id="AppRoot">
|
||||||
<NavBar id="NavBar" focusIndex="1">
|
<NavBar id="NavBar" focusIndex="2">
|
||||||
<ContentNode role="items">
|
<ContentNode role="items">
|
||||||
|
<NavBarItem screen="ProfileScreen" text="Profile" icon="pkg:/images/icons/user.png" padding="10" componentName="ProfileIconButton" />
|
||||||
<NavBarItem screen="SearchScreen" text="Search" icon="pkg:/images/icons/search.png" />
|
<NavBarItem screen="SearchScreen" text="Search" icon="pkg:/images/icons/search.png" />
|
||||||
<NavBarItem screen="HomeScreen" text="Home" icon="pkg:/images/icons/home.png" />
|
<NavBarItem screen="HomeScreen" text="Home" icon="pkg:/images/icons/home.png" />
|
||||||
<NavBarItem screen="BookmarksScreen" text="Bookmarks" icon="pkg:/images/icons/star.png" />
|
<NavBarItem screen="BookmarksScreen" text="Bookmarks" icon="pkg:/images/icons/star.png" />
|
||||||
<NavBarItem screen="SettingsScreen" text="Settings" icon="pkg:/images/icons/settings.png" />
|
<NavBarItem screen="SettingsScreen" text="Settings" icon="pkg:/images/icons/settings.png" />
|
||||||
<NavBarItem screen="WebAppScreen" text="Web App" icon="pkg:/images/icons/phone.png" />
|
<NavBarItem screen="RemoteScreen" text="Remote" icon="pkg:/images/icons/phone.png" />
|
||||||
<NavBarItem screen="AppInfoScreen" text="Info" icon="pkg:/images/icons/info.png" />
|
<NavBarItem screen="AppInfoScreen" text="Info" icon="pkg:/images/icons/info.png" />
|
||||||
</ContentNode>
|
</ContentNode>
|
||||||
</NavBar>
|
</NavBar>
|
||||||
@@ -39,13 +37,16 @@
|
|||||||
</Group>
|
</Group>
|
||||||
<VideoContainer id="VideoContainer" />
|
<VideoContainer id="VideoContainer" />
|
||||||
<Group id="Notifications" />
|
<Group id="Notifications" />
|
||||||
<PlayQueue id="PlayQueue" />
|
<VideoQueue id="VideoQueue" />
|
||||||
<ApplicationInfo id="ApplicationInfo" />
|
<ApplicationInfo id="ApplicationInfo" />
|
||||||
<Preferences id="Preferences" />
|
<Preferences id="Preferences" />
|
||||||
<Bookmarks id="Bookmarks" />
|
<BookmarksService id="BookmarksService" />
|
||||||
<SearchHistory id="SearchHistory" />
|
<SearchHistory id="SearchHistory" />
|
||||||
|
<ProfilesService id="ProfilesService" />
|
||||||
<Invidious id="Invidious" />
|
<Invidious id="Invidious" />
|
||||||
<PlayletWebServer id="WebServer" port="8888" />
|
<PlayletWebServer id="WebServer" port="8888" />
|
||||||
|
<DialServer id="DialServer" />
|
||||||
|
<LoungeService id="LoungeService" />
|
||||||
</AppController>
|
</AppController>
|
||||||
</children>
|
</children>
|
||||||
</component>
|
</component>
|
||||||
|
|||||||
@@ -5,11 +5,18 @@
|
|||||||
<AppController id="AppController"
|
<AppController id="AppController"
|
||||||
root="bind:./AppRoot"
|
root="bind:./AppRoot"
|
||||||
stack="bind:./Stack"
|
stack="bind:./Stack"
|
||||||
playQueue="bind:./PlayQueue">
|
videoQueue="bind:./VideoQueue">
|
||||||
<Group id="Stack">
|
<Group id="Stack">
|
||||||
<AppRoot id="AppRoot">
|
<AppRoot id="AppRoot">
|
||||||
<NavBar id="NavBar" focusIndex="1" appController="bind:/AppController">
|
<NavBar id="NavBar" focusIndex="2" appController="bind:/AppController">
|
||||||
<ContentNode role="items">
|
<ContentNode role="items">
|
||||||
|
<NavBarItem
|
||||||
|
screen="ProfileScreen"
|
||||||
|
text="Profile"
|
||||||
|
icon="pkg:/images/icons/user.png"
|
||||||
|
padding="10"
|
||||||
|
componentName="ProfileIconButton">
|
||||||
|
</NavBarItem>
|
||||||
<NavBarItem
|
<NavBarItem
|
||||||
screen="SearchScreen"
|
screen="SearchScreen"
|
||||||
text="Search"
|
text="Search"
|
||||||
@@ -31,8 +38,8 @@
|
|||||||
icon="pkg:/images/icons/settings.png">
|
icon="pkg:/images/icons/settings.png">
|
||||||
</NavBarItem>
|
</NavBarItem>
|
||||||
<NavBarItem
|
<NavBarItem
|
||||||
screen="WebAppScreen"
|
screen="RemoteScreen"
|
||||||
text="Web App"
|
text="Remote"
|
||||||
icon="pkg:/images/icons/phone.png">
|
icon="pkg:/images/icons/phone.png">
|
||||||
</NavBarItem>
|
</NavBarItem>
|
||||||
<NavBarItem
|
<NavBarItem
|
||||||
@@ -49,30 +56,47 @@
|
|||||||
<Group id="Notifications" />
|
<Group id="Notifications" />
|
||||||
|
|
||||||
<!-- No render nodes -->
|
<!-- No render nodes -->
|
||||||
<PlayQueue id="PlayQueue"
|
<VideoQueue id="VideoQueue"
|
||||||
|
appController="bind:/AppController"
|
||||||
|
videoContainer="bind:../VideoContainer"
|
||||||
invidious="bind:../Invidious"
|
invidious="bind:../Invidious"
|
||||||
notifications="bind:../Notifications"
|
notifications="bind:../Notifications"
|
||||||
preferences="bind:../Preferences" />
|
preferences="bind:../Preferences"
|
||||||
|
loungeService="bind:../LoungeService" />
|
||||||
|
|
||||||
<ApplicationInfo id="ApplicationInfo" />
|
<ApplicationInfo id="ApplicationInfo" />
|
||||||
<Preferences id="Preferences" />
|
<Preferences id="Preferences" />
|
||||||
<Bookmarks id="Bookmarks" />
|
<BookmarksService id="BookmarksService" />
|
||||||
<SearchHistory id="SearchHistory"
|
<SearchHistory id="SearchHistory"
|
||||||
preferences="bind:../Preferences" />
|
preferences="bind:../Preferences" />
|
||||||
|
|
||||||
|
<ProfilesService id="ProfilesService"
|
||||||
|
invidious="bind:../Invidious" />
|
||||||
|
|
||||||
<Invidious id="Invidious"
|
<Invidious id="Invidious"
|
||||||
webServer="bind:../WebServer"
|
webServer="bind:../WebServer"
|
||||||
applicationInfo="bind:../ApplicationInfo"
|
applicationInfo="bind:../ApplicationInfo"
|
||||||
preferences="bind:../Preferences" />
|
preferences="bind:../Preferences"
|
||||||
|
profilesService="bind:../ProfilesService" />
|
||||||
|
|
||||||
<PlayletWebServer
|
<!-- Tasks -->
|
||||||
id="WebServer"
|
<PlayletWebServer id="WebServer"
|
||||||
port="8888"
|
port="8888"
|
||||||
appController="bind:/AppController"
|
appController="bind:/AppController"
|
||||||
applicationInfo="bind:../ApplicationInfo"
|
applicationInfo="bind:../ApplicationInfo"
|
||||||
invidious="bind:../Invidious"
|
invidious="bind:../Invidious"
|
||||||
|
profilesService="bind:../ProfilesService"
|
||||||
preferences="bind:../Preferences"
|
preferences="bind:../Preferences"
|
||||||
playQueue="bind:../PlayQueue"
|
videoQueue="bind:../VideoQueue"
|
||||||
bookmarks="bind:../Bookmarks" />
|
bookmarksService="bind:../BookmarksService"
|
||||||
|
loungeService="bind:../LoungeService" />
|
||||||
|
<DialServer id="DialServer"
|
||||||
|
webServer="bind:../WebServer"
|
||||||
|
loungeService="bind:../LoungeService" />
|
||||||
|
<LoungeService id="LoungeService"
|
||||||
|
videoQueue="bind:../VideoQueue"
|
||||||
|
notifications="bind:../Notifications"
|
||||||
|
invidious="bind:../Invidious" />
|
||||||
</AppController>
|
</AppController>
|
||||||
</children>
|
</children>
|
||||||
</component>
|
</component>
|
||||||
@@ -8,31 +8,49 @@ function InitializeBindings()
|
|||||||
"AppController": {
|
"AppController": {
|
||||||
"root": "./AppRoot",
|
"root": "./AppRoot",
|
||||||
"stack": "./Stack",
|
"stack": "./Stack",
|
||||||
"playQueue": "./PlayQueue"
|
"videoQueue": "./VideoQueue"
|
||||||
},
|
},
|
||||||
"NavBar": {
|
"NavBar": {
|
||||||
"appController": "/AppController"
|
"appController": "/AppController"
|
||||||
},
|
},
|
||||||
"PlayQueue": {
|
"VideoQueue": {
|
||||||
|
"appController": "/AppController",
|
||||||
|
"videoContainer": "../VideoContainer",
|
||||||
"invidious": "../Invidious",
|
"invidious": "../Invidious",
|
||||||
"notifications": "../Notifications",
|
"notifications": "../Notifications",
|
||||||
"preferences": "../Preferences"
|
"preferences": "../Preferences",
|
||||||
|
"loungeService": "../LoungeService"
|
||||||
},
|
},
|
||||||
"SearchHistory": {
|
"SearchHistory": {
|
||||||
"preferences": "../Preferences"
|
"preferences": "../Preferences"
|
||||||
},
|
},
|
||||||
|
"ProfilesService": {
|
||||||
|
"invidious": "../Invidious"
|
||||||
|
},
|
||||||
"Invidious": {
|
"Invidious": {
|
||||||
"webServer": "../WebServer",
|
"webServer": "../WebServer",
|
||||||
"applicationInfo": "../ApplicationInfo",
|
"applicationInfo": "../ApplicationInfo",
|
||||||
"preferences": "../Preferences"
|
"preferences": "../Preferences",
|
||||||
|
"profilesService": "../ProfilesService"
|
||||||
},
|
},
|
||||||
"WebServer": {
|
"WebServer": {
|
||||||
"appController": "/AppController",
|
"appController": "/AppController",
|
||||||
"applicationInfo": "../ApplicationInfo",
|
"applicationInfo": "../ApplicationInfo",
|
||||||
"invidious": "../Invidious",
|
"invidious": "../Invidious",
|
||||||
|
"profilesService": "../ProfilesService",
|
||||||
"preferences": "../Preferences",
|
"preferences": "../Preferences",
|
||||||
"playQueue": "../PlayQueue",
|
"videoQueue": "../VideoQueue",
|
||||||
"bookmarks": "../Bookmarks"
|
"bookmarksService": "../BookmarksService",
|
||||||
|
"loungeService": "../LoungeService"
|
||||||
|
},
|
||||||
|
"DialServer": {
|
||||||
|
"webServer": "../WebServer",
|
||||||
|
"loungeService": "../LoungeService"
|
||||||
|
},
|
||||||
|
"LoungeService": {
|
||||||
|
"videoQueue": "../VideoQueue",
|
||||||
|
"notifications": "../Notifications",
|
||||||
|
"invidious": "../Invidious"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
|
import "pkg:/source/utils/MathUtils.bs"
|
||||||
import "pkg:/source/utils/Types.bs"
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
' Based on https://github.com/jellyfin/jellyfin-roku/blob/unstable/components/IconButton.brs
|
' Based on https://github.com/jellyfin/jellyfin-roku/blob/unstable/components/IconButton.brs
|
||||||
function init()
|
function Init()
|
||||||
m.buttonBackground = m.top.findNode("buttonBackground")
|
m.buttonBackground = m.top.findNode("buttonBackground")
|
||||||
m.buttonIcon = m.top.findNode("buttonIcon")
|
m.buttonIcon = m.top.findNode("buttonIcon")
|
||||||
m.buttonText = m.top.findNode("buttonText")
|
m.buttonText = m.top.findNode("buttonText")
|
||||||
@@ -40,17 +41,12 @@ function setIconSize()
|
|||||||
height = m.top.height
|
height = m.top.height
|
||||||
width = m.top.width
|
width = m.top.width
|
||||||
if height > 0 and width > 0
|
if height > 0 and width > 0
|
||||||
' TODO: Use smallest number between them
|
iconSize = MathUtils.Min(height, width) - m.top.padding
|
||||||
m.buttonIcon.height = m.top.height
|
m.buttonIcon.height = iconSize
|
||||||
|
m.buttonIcon.width = iconSize
|
||||||
|
|
||||||
if m.top.padding > 0
|
m.buttonIcon.translation = [((width - iconSize) / 2), ((height - iconSize) / 2)]
|
||||||
m.buttonIcon.height = m.buttonIcon.height - m.top.padding
|
m.buttonText.translation = [-5, height + 2]
|
||||||
end if
|
|
||||||
|
|
||||||
m.buttonIcon.width = m.buttonIcon.height
|
|
||||||
|
|
||||||
m.buttonIcon.translation = [((width - m.buttonIcon.width) / 2), ((height - m.buttonIcon.height) / 2)]
|
|
||||||
m.buttonText.translation = [-5, height]
|
|
||||||
m.buttonText.width = width + 10
|
m.buttonText.width = width + 10
|
||||||
end if
|
end if
|
||||||
end function
|
end function
|
||||||
|
|||||||
@@ -29,15 +29,15 @@ function PopulateButtons() as void
|
|||||||
|
|
||||||
buttons = []
|
buttons = []
|
||||||
for each item in navBarItems
|
for each item in navBarItems
|
||||||
button = CreateObject("roSGNode", "IconButton")
|
button = CreateObject("roSGNode", item.componentName)
|
||||||
button.background = "#242424FF"
|
button.background = "#242424FF"
|
||||||
button.focusBackground = "#FF1C30FF"
|
button.focusBackground = "#FF1C30FF"
|
||||||
button.padding = 20
|
|
||||||
button.height = 50
|
button.height = 50
|
||||||
button.width = 90
|
button.width = 90
|
||||||
|
|
||||||
button.icon = item.icon
|
button.icon = item.icon
|
||||||
button.text = item.text
|
button.text = Tr(item.text)
|
||||||
|
button.padding = item.padding
|
||||||
|
|
||||||
buttons.push(button)
|
buttons.push(button)
|
||||||
end for
|
end for
|
||||||
|
|||||||
@@ -3,5 +3,7 @@
|
|||||||
<field id="screen" type="string" />
|
<field id="screen" type="string" />
|
||||||
<field id="icon" type="string" />
|
<field id="icon" type="string" />
|
||||||
<field id="text" type="string" />
|
<field id="text" type="string" />
|
||||||
|
<field id="padding" type="integer" value="20" />
|
||||||
|
<field id="componentName" type="string" value="IconButton" />
|
||||||
</interface>
|
</interface>
|
||||||
</component>
|
</component>
|
||||||
@@ -0,0 +1,111 @@
|
|||||||
|
import "pkg:/source/utils/Logging.bs"
|
||||||
|
import "pkg:/source/utils/MathUtils.bs"
|
||||||
|
import "pkg:/source/utils/StringUtils.bs"
|
||||||
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
|
' TODO:P1 this file is a copy paste of IconButton. It should be refactored.
|
||||||
|
function Init()
|
||||||
|
m.buttonBackground = m.top.findNode("buttonBackground")
|
||||||
|
m.buttonIcon = m.top.findNode("buttonIcon")
|
||||||
|
m.buttonText = m.top.findNode("buttonText")
|
||||||
|
|
||||||
|
m.circlePoster = m.top.findNode("circlePoster")
|
||||||
|
m.circlePosterInner = m.top.findNode("circlePosterInner")
|
||||||
|
m.letterLabel = m.top.findNode("LetterLabel")
|
||||||
|
|
||||||
|
m.top.observeField("background", FuncName(onBackgroundChanged))
|
||||||
|
m.top.observeField("icon", FuncName(onIconChanged))
|
||||||
|
m.top.observeField("text", FuncName(onTextChanged))
|
||||||
|
m.top.observeField("height", FuncName(onHeightChanged))
|
||||||
|
m.top.observeField("width", FuncName(onWidthChanged))
|
||||||
|
m.top.observeField("padding", FuncName(onPaddingChanged))
|
||||||
|
|
||||||
|
profilesService = m.top.getScene().findNode("ProfilesService")
|
||||||
|
if profilesService <> invalid
|
||||||
|
m.profilesService = profilesService
|
||||||
|
profilesService.observeField("currentProfile", FuncName(OnCurrentProfile))
|
||||||
|
OnCurrentProfile()
|
||||||
|
end if
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnFocusChange()
|
||||||
|
if m.top.focus
|
||||||
|
m.buttonBackground.blendColor = m.top.focusBackground
|
||||||
|
else
|
||||||
|
m.buttonBackground.blendColor = m.top.background
|
||||||
|
end if
|
||||||
|
m.buttonBackground.visible = m.top.focus
|
||||||
|
m.buttonText.visible = m.top.focus
|
||||||
|
end function
|
||||||
|
|
||||||
|
function onBackgroundChanged()
|
||||||
|
m.buttonBackground.blendColor = m.top.background
|
||||||
|
end function
|
||||||
|
|
||||||
|
function onIconChanged()
|
||||||
|
m.buttonIcon.uri = m.top.icon
|
||||||
|
end function
|
||||||
|
|
||||||
|
function onTextChanged()
|
||||||
|
m.buttonText.text = m.top.text
|
||||||
|
end function
|
||||||
|
|
||||||
|
function setIconSize()
|
||||||
|
height = m.top.height
|
||||||
|
width = m.top.width
|
||||||
|
if height > 0 and width > 0
|
||||||
|
iconSize = MathUtils.Min(height, width) - m.top.padding
|
||||||
|
m.buttonIcon.height = iconSize
|
||||||
|
m.buttonIcon.width = iconSize
|
||||||
|
|
||||||
|
iconTranslation = [((width - iconSize) / 2), ((height - iconSize) / 2)]
|
||||||
|
m.buttonIcon.translation = iconTranslation
|
||||||
|
m.buttonText.translation = [-5, height + 2]
|
||||||
|
m.buttonText.width = width + 10
|
||||||
|
|
||||||
|
m.circlePoster.width = iconSize
|
||||||
|
m.circlePoster.height = iconSize
|
||||||
|
m.circlePoster.translation = iconTranslation
|
||||||
|
|
||||||
|
m.circlePosterInner.width = iconSize - 4
|
||||||
|
m.circlePosterInner.height = iconSize - 4
|
||||||
|
|
||||||
|
m.letterLabel.width = iconSize - 4
|
||||||
|
m.letterLabel.height = iconSize - 4
|
||||||
|
end if
|
||||||
|
end function
|
||||||
|
|
||||||
|
function onHeightChanged()
|
||||||
|
m.buttonBackground.height = m.top.height
|
||||||
|
setIconSize()
|
||||||
|
end function
|
||||||
|
|
||||||
|
function onWidthChanged()
|
||||||
|
m.buttonBackground.width = m.top.width - 10
|
||||||
|
m.buttonBackground.translation = [5, 0]
|
||||||
|
setIconSize()
|
||||||
|
end function
|
||||||
|
|
||||||
|
function onPaddingChanged()
|
||||||
|
setIconSize()
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnCurrentProfile() as void
|
||||||
|
currentProfile = m.profilesService.currentProfile
|
||||||
|
if currentProfile = invalid
|
||||||
|
m.circlePoster.visible = false
|
||||||
|
m.buttonIcon.visible = true
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
|
||||||
|
username = currentProfile.username
|
||||||
|
if not StringUtils.IsNullOrEmpty(username)
|
||||||
|
m.LetterLabel.text = UCase(username.Left(1))
|
||||||
|
else
|
||||||
|
m.LetterLabel.text = ""
|
||||||
|
end if
|
||||||
|
m.circlePosterInner.blendColor = currentProfile.color
|
||||||
|
|
||||||
|
m.circlePoster.visible = true
|
||||||
|
m.buttonIcon.visible = false
|
||||||
|
end function
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
<component name="ProfileIconButton" extends="Group" includes="Focus">
|
||||||
|
<interface>
|
||||||
|
<field id="background" type="color" value="" />
|
||||||
|
<field id="focusBackground" type="color" value="" />
|
||||||
|
<field id="text" type="string" value="" />
|
||||||
|
<field id="padding" type="integer" value="-1" />
|
||||||
|
<field id="height" type="integer" value="" />
|
||||||
|
<field id="width" type="integer" value="" />
|
||||||
|
<field id="icon" type="string" value="" />
|
||||||
|
</interface>
|
||||||
|
<children>
|
||||||
|
<Poster id="buttonBackground" uri="pkg:/images/white.9.png" visible="false" />
|
||||||
|
<Poster id="buttonIcon" />
|
||||||
|
<Poster
|
||||||
|
id="circlePoster"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
blendColor="#DDDDDDFF"
|
||||||
|
uri="pkg:/images/white-circle.png">
|
||||||
|
<Poster
|
||||||
|
id="circlePosterInner"
|
||||||
|
width="36"
|
||||||
|
height="36"
|
||||||
|
blendColor="#9696C8"
|
||||||
|
uri="pkg:/images/white-circle.png"
|
||||||
|
translation="[2,2]">
|
||||||
|
<Label
|
||||||
|
id="LetterLabel"
|
||||||
|
width="40"
|
||||||
|
height="40"
|
||||||
|
vertAlign="center"
|
||||||
|
horizAlign="center">
|
||||||
|
<Font role="font" uri="font:SystemFontFile" size="24" />
|
||||||
|
</Label>
|
||||||
|
</Poster>
|
||||||
|
</Poster>
|
||||||
|
|
||||||
|
<Label id="buttonText" color="#aaaaaa" font="font:SmallestSystemFont" vertAlign="center" horizAlign="center" visible="false" />
|
||||||
|
</children>
|
||||||
|
|
||||||
|
</component>
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<component name="ContentNodeReference" extends="ContentNode">
|
|
||||||
<interface>
|
|
||||||
<field id="refNode" type="node" />
|
|
||||||
</interface>
|
|
||||||
</component>
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
' NodeByRef: these functions provides the ability to "wrap" a node in
|
|
||||||
' another node, so it can be passed by reference. This is useful for
|
|
||||||
' when a node is required to be a child of multiple nodes at once,
|
|
||||||
' which is not possible.
|
|
||||||
' Instead, the node is wrapped, passed around, and unwrapped when needed.
|
|
||||||
import "pkg:/source/utils/StringUtils.bs"
|
|
||||||
|
|
||||||
namespace NodeByRef
|
|
||||||
|
|
||||||
function Wrap(node as object) as object
|
|
||||||
if node = invalid
|
|
||||||
return invalid
|
|
||||||
end if
|
|
||||||
|
|
||||||
if node.refNode <> invalid
|
|
||||||
return node
|
|
||||||
end if
|
|
||||||
|
|
||||||
ref = CreateObject("roSGNode", "ContentNodeReference")
|
|
||||||
ref.refNode = node
|
|
||||||
if not StringUtils.IsNullOrEmpty(node.id)
|
|
||||||
ref.id = node.id + "-ref"
|
|
||||||
end if
|
|
||||||
return ref
|
|
||||||
end function
|
|
||||||
|
|
||||||
function Unwrap(node as object) as object
|
|
||||||
if node = invalid
|
|
||||||
return invalid
|
|
||||||
end if
|
|
||||||
|
|
||||||
loopGuard = 0
|
|
||||||
while node.refNode <> invalid and loopGuard < 10
|
|
||||||
node = node.refNode
|
|
||||||
loopGuard += 1
|
|
||||||
end while
|
|
||||||
|
|
||||||
return node
|
|
||||||
end function
|
|
||||||
|
|
||||||
end namespace
|
|
||||||
@@ -1,241 +0,0 @@
|
|||||||
import "pkg:/components/Dialog/DialogUtils.bs"
|
|
||||||
import "pkg:/components/NodeByRef/NodeByRef.bs"
|
|
||||||
import "pkg:/components/PlayQueue/Notifications/PlayQueueNotificationUtils.bs"
|
|
||||||
import "pkg:/components/VideoFeed/FeedLoadState.bs"
|
|
||||||
import "pkg:/components/VideoPlayer/VideoUtils.bs"
|
|
||||||
import "pkg:/source/AsyncTask/AsyncTask.bs"
|
|
||||||
import "pkg:/source/AsyncTask/Tasks.bs"
|
|
||||||
import "pkg:/source/utils/ArrayUtils.bs"
|
|
||||||
import "pkg:/source/utils/ErrorUtils.bs"
|
|
||||||
import "pkg:/source/utils/Logging.bs"
|
|
||||||
import "pkg:/source/utils/RingBuffer.bs"
|
|
||||||
import "pkg:/source/utils/Types.bs"
|
|
||||||
|
|
||||||
' TODO:P1 prevent adding duplicates of the same video/playlist
|
|
||||||
function Init()
|
|
||||||
m.pendingLoadTasks = {}
|
|
||||||
m.content = m.top.findNode("Content")
|
|
||||||
m.top.content = m.content
|
|
||||||
m.content.addField("index", "integer", false)
|
|
||||||
m.content.index = m.top.index
|
|
||||||
' TODO:P2 use actual queue nodes instead of internal buffer
|
|
||||||
m.watchedVideos = new RingBuffer(100)
|
|
||||||
end function
|
|
||||||
|
|
||||||
function Play(node as object, playlistIndex as integer)
|
|
||||||
m.top.index += 1
|
|
||||||
m.top.playlistIndex = playlistIndex
|
|
||||||
|
|
||||||
node = WrapWithIndexField(node)
|
|
||||||
if m.top.index >= m.content.getChildCount()
|
|
||||||
m.content.appendChild(node)
|
|
||||||
m.top.index = m.content.getChildCount() - 1
|
|
||||||
else
|
|
||||||
m.content.insertChild(node, m.top.index)
|
|
||||||
end if
|
|
||||||
|
|
||||||
PlayItemAtCurrentIndex()
|
|
||||||
end function
|
|
||||||
|
|
||||||
function AddToQueue(node as object)
|
|
||||||
node = WrapWithIndexField(node)
|
|
||||||
m.content.appendChild(node)
|
|
||||||
queueNotifications = m.top.preferences["misc.queue_notifications"]
|
|
||||||
if queueNotifications
|
|
||||||
hintVisible = VideoUtils.GetVideoPlayer() = invalid or not VideoUtils.IsVideoPlayerFullScreen()
|
|
||||||
PlayQueue.ShowNotifcation(m.top.notifications, node, hintVisible)
|
|
||||||
end if
|
|
||||||
end function
|
|
||||||
|
|
||||||
function WrapWithIndexField(node as object) as object
|
|
||||||
node = NodeByRef.Wrap(node)
|
|
||||||
if not node.hasField("index")
|
|
||||||
node.addField("index", "integer", false)
|
|
||||||
end if
|
|
||||||
node.index = m.top.index
|
|
||||||
return node
|
|
||||||
end function
|
|
||||||
|
|
||||||
' TODO:P0 better model of the queue (Now playing, etc)
|
|
||||||
function GetQueue(_unused as dynamic) as object
|
|
||||||
queueNodes = m.content.getChildren(-1, 0)
|
|
||||||
items = []
|
|
||||||
for each node in queueNodes
|
|
||||||
node = NodeByRef.Unwrap(node)
|
|
||||||
if node = invalid
|
|
||||||
continue for
|
|
||||||
end if
|
|
||||||
|
|
||||||
nodeType = node.type
|
|
||||||
if nodeType = "video"
|
|
||||||
items.push({
|
|
||||||
type: nodeType
|
|
||||||
videoId: node.videoId
|
|
||||||
title: node.title
|
|
||||||
author: node.author
|
|
||||||
thumbnail: node.thumbnail
|
|
||||||
})
|
|
||||||
else if node.type = "playlist"
|
|
||||||
items.push({
|
|
||||||
type: nodeType
|
|
||||||
playlistId: node.playlistId
|
|
||||||
title: node.title
|
|
||||||
thumbnail: node.thumbnail
|
|
||||||
videoCountText: node.videoCountText
|
|
||||||
})
|
|
||||||
end if
|
|
||||||
end for
|
|
||||||
|
|
||||||
return {
|
|
||||||
index: m.top.index
|
|
||||||
playlistIndex: m.top.playlistIndex
|
|
||||||
items: items
|
|
||||||
}
|
|
||||||
end function
|
|
||||||
|
|
||||||
function Clear(_unused as dynamic)
|
|
||||||
m.content.removeChildrenIndex(m.content.getChildCount(), 0)
|
|
||||||
m.top.index = -1
|
|
||||||
m.top.playlistIndex = -1
|
|
||||||
end function
|
|
||||||
|
|
||||||
function PlayNextItem(_unused as dynamic) as boolean
|
|
||||||
childCount = m.content.getChildCount()
|
|
||||||
if childCount = 0
|
|
||||||
return false
|
|
||||||
end if
|
|
||||||
|
|
||||||
index = m.top.index
|
|
||||||
if index <> -1
|
|
||||||
if index >= childCount
|
|
||||||
return false
|
|
||||||
end if
|
|
||||||
node = m.content.getChild(index)
|
|
||||||
node = NodeByRef.Unwrap(node)
|
|
||||||
if node.type = "playlist"
|
|
||||||
m.top.playlistIndex += 1
|
|
||||||
if PlayPlaylistAtCurrentIndex(node)
|
|
||||||
return true
|
|
||||||
end if
|
|
||||||
end if
|
|
||||||
end if
|
|
||||||
|
|
||||||
m.top.index += 1
|
|
||||||
m.top.playlistIndex = -1
|
|
||||||
if m.top.index >= childCount
|
|
||||||
return false
|
|
||||||
end if
|
|
||||||
|
|
||||||
return PlayItemAtCurrentIndex()
|
|
||||||
end function
|
|
||||||
|
|
||||||
function PlayItemAtIndex(index as integer) as boolean
|
|
||||||
m.top.index = index
|
|
||||||
m.top.playlistIndex = -1
|
|
||||||
return PlayItemAtCurrentIndex()
|
|
||||||
end function
|
|
||||||
|
|
||||||
function PlayItemAtCurrentIndex() as boolean
|
|
||||||
node = m.content.getChild(m.top.index)
|
|
||||||
node = NodeByRef.Unwrap(node)
|
|
||||||
if node = invalid
|
|
||||||
return false
|
|
||||||
end if
|
|
||||||
if node.type = "video"
|
|
||||||
PlayVideo(node)
|
|
||||||
return true
|
|
||||||
else if node.type = "playlist"
|
|
||||||
if m.top.playlistIndex = -1
|
|
||||||
m.top.playlistIndex = 0
|
|
||||||
end if
|
|
||||||
return PlayPlaylistAtCurrentIndex(node)
|
|
||||||
end if
|
|
||||||
return false
|
|
||||||
end function
|
|
||||||
|
|
||||||
function PlayPlaylistAtCurrentIndex(playlist as object) as boolean
|
|
||||||
playlist = NodeByRef.Unwrap(playlist)
|
|
||||||
if playlist.videoCount < 0
|
|
||||||
LoadPlaylist(playlist)
|
|
||||||
return true
|
|
||||||
end if
|
|
||||||
playlistIndex = m.top.playlistIndex
|
|
||||||
if playlistIndex < 0 or playlistIndex >= playlist.videoCount
|
|
||||||
return false
|
|
||||||
end if
|
|
||||||
|
|
||||||
if playlistIndex < playlist.getChildCount()
|
|
||||||
child = playlist.getChild(playlistIndex)
|
|
||||||
PlayVideo(child)
|
|
||||||
return true
|
|
||||||
end if
|
|
||||||
|
|
||||||
LoadPlaylist(playlist)
|
|
||||||
return true
|
|
||||||
end function
|
|
||||||
|
|
||||||
function PlayVideo(node as object)
|
|
||||||
videoId = node.videoId
|
|
||||||
if not m.watchedVideos.Contains(videoId)
|
|
||||||
m.watchedVideos.Push(videoId)
|
|
||||||
end if
|
|
||||||
VideoUtils.PlayVideo(node)
|
|
||||||
end function
|
|
||||||
|
|
||||||
function LoadPlaylist(playlist as object) as void
|
|
||||||
if playlist.loadState = FeedLoadState.Loading
|
|
||||||
return
|
|
||||||
end if
|
|
||||||
|
|
||||||
playlist.loadState = FeedLoadState.Loading
|
|
||||||
|
|
||||||
task = AsyncTask.Start(Tasks.PlaylistContentTask, {
|
|
||||||
content: playlist
|
|
||||||
invidious: m.top.invidious
|
|
||||||
}, OnPlaylistContentTaskResult)
|
|
||||||
m.pendingLoadTasks[task.id] = task
|
|
||||||
end function
|
|
||||||
|
|
||||||
function OnPlaylistContentTaskResult(output as object) as void
|
|
||||||
m.pendingLoadTasks.Delete(output.task.id)
|
|
||||||
|
|
||||||
if output.cancelled
|
|
||||||
return
|
|
||||||
end if
|
|
||||||
|
|
||||||
playlist = output.task.input.content
|
|
||||||
if not output.success or not output.result.success
|
|
||||||
' output.error for unhandled exception
|
|
||||||
error = output.error
|
|
||||||
if error = invalid
|
|
||||||
' output.result.error for network errors
|
|
||||||
error = output.result.error
|
|
||||||
end if
|
|
||||||
error = ErrorUtils.Format(error)
|
|
||||||
LogError(error)
|
|
||||||
playlistId = playlist.playlistId
|
|
||||||
message = `Failed to load playlist ${playlistId}\n${error}`
|
|
||||||
' TODO:P1 play next upon closing the dialog
|
|
||||||
DialogUtils.ShowDialog(message, "Playlist load fail", true)
|
|
||||||
return
|
|
||||||
end if
|
|
||||||
|
|
||||||
PlayPlaylistAtCurrentIndex(playlist)
|
|
||||||
end function
|
|
||||||
|
|
||||||
function OnIndexChange()
|
|
||||||
index = m.top.index
|
|
||||||
m.content.index = index
|
|
||||||
children = m.top.content.getChildren(-1, 0)
|
|
||||||
for each child in children
|
|
||||||
child.index = index
|
|
||||||
end for
|
|
||||||
end function
|
|
||||||
|
|
||||||
function watchedVideosContain(videoId as string) as boolean
|
|
||||||
return m.watchedVideos.Contains(videoId)
|
|
||||||
end function
|
|
||||||
|
|
||||||
function watchedVideosClear(_unused as dynamic)
|
|
||||||
m.watchedVideos = new RingBuffer(100)
|
|
||||||
end function
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
<component name="PlayQueue" extends="Node">
|
|
||||||
<interface>
|
|
||||||
<field id="content" type="node" />
|
|
||||||
<field id="index" type="integer" value="-1" onChange="OnIndexChange" />
|
|
||||||
<field id="playlistIndex" type="integer" value="-1" />
|
|
||||||
<field id="invidious" type="node" />
|
|
||||||
<field id="notifications" type="node" />
|
|
||||||
<field id="preferences" type="node" />
|
|
||||||
<function name="Play" />
|
|
||||||
<function name="AddToQueue" />
|
|
||||||
<function name="GetQueue" />
|
|
||||||
<function name="Clear" />
|
|
||||||
<function name="PlayNextItem" />
|
|
||||||
<function name="PlayItemAtIndex" />
|
|
||||||
<function name="watchedVideosContain" />
|
|
||||||
<function name="watchedVideosClear" />
|
|
||||||
</interface>
|
|
||||||
<children>
|
|
||||||
<ContentNode id="Content" />
|
|
||||||
</children>
|
|
||||||
</component>
|
|
||||||
@@ -1,83 +0,0 @@
|
|||||||
import "pkg:/components/Navigation/Navigation.bs"
|
|
||||||
import "pkg:/source/utils/FocusManagement.bs"
|
|
||||||
import "pkg:/source/utils/Types.bs"
|
|
||||||
|
|
||||||
function Init()
|
|
||||||
m.queueList = m.top.findNode("queueList")
|
|
||||||
m.queueLabel = m.top.findNode("queueLabel")
|
|
||||||
m.clearButton = m.top.findNode("clearButton")
|
|
||||||
m.showAnimation = m.top.findNode("showAnimation")
|
|
||||||
|
|
||||||
m.clearButton.ObserveField("buttonSelected", FuncName(OnClearButtonSelected))
|
|
||||||
m.queueList.ObserveField("itemSelected", FuncName(OnItemSelected))
|
|
||||||
|
|
||||||
SetNavigation(m.queueList, "up", m.clearButton)
|
|
||||||
SetNavigation(m.clearButton, "down", m.queueList)
|
|
||||||
end function
|
|
||||||
|
|
||||||
function Show(unsued as dynamic)
|
|
||||||
m.showAnimation.control = "start"
|
|
||||||
end function
|
|
||||||
|
|
||||||
function OnFocusChange() as void
|
|
||||||
if not m.top.focus
|
|
||||||
return
|
|
||||||
end if
|
|
||||||
NodeSetFocus(m.queueList, true)
|
|
||||||
end function
|
|
||||||
|
|
||||||
function OnContentSet() as void
|
|
||||||
content = m.top.content
|
|
||||||
if content = invalid
|
|
||||||
return
|
|
||||||
end if
|
|
||||||
|
|
||||||
if not content.isSameNode(m.queueList.content)
|
|
||||||
m.queueList.content = content
|
|
||||||
end if
|
|
||||||
|
|
||||||
index = content.index
|
|
||||||
if IsInt(index) and index <> -1
|
|
||||||
m.queueLabel.text = `Queue (${index + 1}/${content.getChildCount()})`
|
|
||||||
else
|
|
||||||
m.queueLabel.text = `Queue (${content.getChildCount()})`
|
|
||||||
end if
|
|
||||||
end function
|
|
||||||
|
|
||||||
function OnkeyEvent(key as string, press as boolean) as boolean
|
|
||||||
if NavigationKeyHandler(key, press).handled
|
|
||||||
return true
|
|
||||||
end if
|
|
||||||
|
|
||||||
if press = false
|
|
||||||
return false
|
|
||||||
end if
|
|
||||||
|
|
||||||
if key = "back"
|
|
||||||
Close()
|
|
||||||
return true
|
|
||||||
end if
|
|
||||||
return false
|
|
||||||
end function
|
|
||||||
|
|
||||||
function Close()
|
|
||||||
m.top.appController@.PopScreen()
|
|
||||||
end function
|
|
||||||
|
|
||||||
function OnClearButtonSelected()
|
|
||||||
m.top.playQueue@.Clear()
|
|
||||||
end function
|
|
||||||
|
|
||||||
function OnItemSelected() as void
|
|
||||||
content = m.queueList.content
|
|
||||||
if content = invalid
|
|
||||||
return
|
|
||||||
end if
|
|
||||||
|
|
||||||
index = m.queueList.itemSelected
|
|
||||||
if index < 0 or index >= content.getChildCount()
|
|
||||||
return
|
|
||||||
end if
|
|
||||||
|
|
||||||
m.top.playQueue@.PlayItemAtIndex(index)
|
|
||||||
end function
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
import "pkg:/components/Services/Invidious/InvidiousToContentNode.bs"
|
|
||||||
|
|
||||||
namespace PlayQueueViewUtils
|
|
||||||
|
|
||||||
function Open(playQueue as object, appController as object) as object
|
|
||||||
playQueueView = CreateObject("roSGNode", "PlayQueueView")
|
|
||||||
playQueueView.appController = appController
|
|
||||||
playQueueView.playQueue = playQueue
|
|
||||||
appController@.PushScreen(playQueueView)
|
|
||||||
|
|
||||||
content = playQueue.content
|
|
||||||
index = playQueue.index
|
|
||||||
|
|
||||||
playQueueView.content = content
|
|
||||||
if index > -1 and index < content.GetChildCount()
|
|
||||||
playQueueView.jumpToItem = index
|
|
||||||
end if
|
|
||||||
|
|
||||||
playQueueView@.Show()
|
|
||||||
return playQueueView
|
|
||||||
end function
|
|
||||||
|
|
||||||
end namespace
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
import "pkg:/components/Services/Invidious/InvidiousService.bs"
|
|
||||||
import "pkg:/components/Services/Invidious/InvidiousToContentNode.bs"
|
|
||||||
|
|
||||||
' TODO:P1 this should only be called from PlaylistContentNode.bs
|
|
||||||
@asynctask
|
|
||||||
function PlaylistContentTask(input as object) as object
|
|
||||||
contentNode = input.content
|
|
||||||
invidiousNode = input.invidious
|
|
||||||
|
|
||||||
if m.top.cancel
|
|
||||||
contentNode.loadState = FeedLoadState.None
|
|
||||||
return invalid
|
|
||||||
end if
|
|
||||||
|
|
||||||
service = new Invidious.InvidiousService(invidiousNode)
|
|
||||||
|
|
||||||
index = contentNode.getChildCount()
|
|
||||||
response = service.GetPlaylist(contentNode.playlistId, index, m.top.cancellation)
|
|
||||||
|
|
||||||
if m.top.cancel
|
|
||||||
contentNode.loadState = FeedLoadState.None
|
|
||||||
return invalid
|
|
||||||
end if
|
|
||||||
|
|
||||||
metadata = response.Json()
|
|
||||||
|
|
||||||
if not response.IsSuccess() or metadata = invalid
|
|
||||||
contentNode.loadState = FeedLoadState.Error
|
|
||||||
return {
|
|
||||||
success: false
|
|
||||||
error: response.ErrorMessage()
|
|
||||||
}
|
|
||||||
end if
|
|
||||||
|
|
||||||
instance = service.GetInstance()
|
|
||||||
InvidiousContent.ToPlaylistContentNode(contentNode, metadata, instance)
|
|
||||||
|
|
||||||
childCount = contentNode.getChildCount()
|
|
||||||
if metadata.videos.Count() > 0 or childCount < metadata.videoCount
|
|
||||||
contentNode.loadState = FeedLoadState.LoadedPage
|
|
||||||
else
|
|
||||||
contentNode.loadState = FeedLoadState.Loaded
|
|
||||||
end if
|
|
||||||
|
|
||||||
return {
|
|
||||||
success: true
|
|
||||||
}
|
|
||||||
end function
|
|
||||||
@@ -1,10 +1,8 @@
|
|||||||
import "pkg:/components/ChannelView/ChannelUtils.bs"
|
import "pkg:/components/ChannelView/ChannelUtils.bs"
|
||||||
import "pkg:/components/ContextMenu/ContextMenuUtils.bs"
|
import "pkg:/components/ContextMenu/ContextMenuUtils.bs"
|
||||||
import "pkg:/components/Dialog/DialogUtils.bs"
|
|
||||||
import "pkg:/components/Navigation/LongPress.bs"
|
import "pkg:/components/Navigation/LongPress.bs"
|
||||||
import "pkg:/components/Services/Invidious/InvidiousToContentNode.bs"
|
import "pkg:/components/Services/Invidious/InvidiousToContentNode.bs"
|
||||||
import "pkg:/components/VideoFeed/FeedLoadState.bs"
|
import "pkg:/components/VideoFeed/FeedLoadState.bs"
|
||||||
import "pkg:/components/VideoPlayer/VideoUtils.bs"
|
|
||||||
import "pkg:/source/AsyncTask/AsyncTask.bs"
|
import "pkg:/source/AsyncTask/AsyncTask.bs"
|
||||||
import "pkg:/source/AsyncTask/Tasks.bs"
|
import "pkg:/source/AsyncTask/Tasks.bs"
|
||||||
import "pkg:/source/utils/ErrorUtils.bs"
|
import "pkg:/source/utils/ErrorUtils.bs"
|
||||||
@@ -117,7 +115,10 @@ function OnItemSelected(index as integer) as void
|
|||||||
videoId = video.videoId
|
videoId = video.videoId
|
||||||
if not StringUtils.IsNullOrEmpty(videoId)
|
if not StringUtils.IsNullOrEmpty(videoId)
|
||||||
LogInfo("Play playlist:", playlistId, "video:", videoId)
|
LogInfo("Play playlist:", playlistId, "video:", videoId)
|
||||||
m.playQueue@.Play(playlist, index)
|
m.videoQueue.playPlaylist = {
|
||||||
|
playlistNode: playlist
|
||||||
|
playlistIndex: index
|
||||||
|
}
|
||||||
end if
|
end if
|
||||||
end function
|
end function
|
||||||
|
|
||||||
@@ -141,9 +142,6 @@ function OnItemLongPressed(index as integer) as void
|
|||||||
|
|
||||||
LogInfo("Long press: playlist:", playlistId, "video:", videoId)
|
LogInfo("Long press: playlist:", playlistId, "video:", videoId)
|
||||||
|
|
||||||
' TODO:P1 handle case of opening the channel
|
|
||||||
' - Owner of a video
|
|
||||||
' - Owner of a playlist
|
|
||||||
contextMenuProviders = [m.top]
|
contextMenuProviders = [m.top]
|
||||||
ContextMenuUtils.Open(contextMenuProviders, m.appController, video)
|
ContextMenuUtils.Open(contextMenuProviders, m.appController, video)
|
||||||
end function
|
end function
|
||||||
@@ -165,18 +163,30 @@ function GetContextMenuOptionsForItem(video as object) as object
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
options = [
|
options = [
|
||||||
ContextMenuUtils.CreateOption("Play", m.playQueue, "Play", [playlist, index]),
|
ContextMenuUtils.CreateOption(Tr(Locale.ContextMenu.PlayPlaylist), m.videoQueue, "FuncPlayPlaylist", [playlist, index]),
|
||||||
ContextMenuUtils.CreateOption("Queue", m.playQueue, "AddToQueue", [playlist])
|
ContextMenuUtils.CreateOption(Tr(Locale.ContextMenu.QueuePlaylist), m.videoQueue, "FuncAddToQueuePlaylist", [playlist])
|
||||||
ContextMenuUtils.CreateOption("Play video", m.playQueue, "Play", [video, -1]),
|
ContextMenuUtils.CreateOption(Tr(Locale.ContextMenu.PlayVideo), m.videoQueue, "FuncPlayVideo", [video]),
|
||||||
ContextMenuUtils.CreateOption("Queue video", m.playQueue, "AddToQueue", [video]),
|
ContextMenuUtils.CreateOption(Tr(Locale.ContextMenu.QueueVideo), m.videoQueue, "FuncAddToQueueVideo", [video]),
|
||||||
]
|
]
|
||||||
|
|
||||||
if not StringUtils.IsNullOrEmpty(playlist.authorId)
|
playlistAuthorId = playlist.authorId
|
||||||
options.push(ContextMenuUtils.CreateOption("Open channel", m.top, "OpenPlaylistChannel", [playlist]))
|
videoAuthorId = video.authorId
|
||||||
|
|
||||||
|
if not StringUtils.IsNullOrEmpty(playlistAuthorId) or not StringUtils.IsNullOrEmpty(videoAuthorId)
|
||||||
|
if playlistAuthorId = videoAuthorId
|
||||||
|
options.push(ContextMenuUtils.CreateOption(Tr(Locale.ContextMenu.OpenChannel), m.top, "OpenPlaylistChannel", [playlist]))
|
||||||
|
else
|
||||||
|
if not StringUtils.IsNullOrEmpty(playlistAuthorId)
|
||||||
|
options.push(ContextMenuUtils.CreateOption(Tr(Locale.ContextMenu.OpenPlaylistChannel), m.top, "OpenPlaylistChannel", [playlist]))
|
||||||
|
end if
|
||||||
|
if not StringUtils.IsNullOrEmpty(videoAuthorId)
|
||||||
|
options.push(ContextMenuUtils.CreateOption(Tr(Locale.ContextMenu.OpenVideoChannel), m.top, "OpenVideoChannel", [video]))
|
||||||
|
end if
|
||||||
|
end if
|
||||||
end if
|
end if
|
||||||
|
|
||||||
options.append(m.bookmarks@.GetMenuForPlaylist(playlist))
|
options.append(m.bookmarksService@.GetMenuForPlaylist(playlist))
|
||||||
options.append(m.bookmarks@.GetMenuForVideo(video))
|
options.append(m.bookmarksService@.GetMenuForVideo(video))
|
||||||
|
|
||||||
return options
|
return options
|
||||||
end function
|
end function
|
||||||
@@ -191,6 +201,16 @@ function OpenPlaylistChannel(playlist as object) as void
|
|||||||
ChannelUtils.Open(channel)
|
ChannelUtils.Open(channel)
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
function OpenVideoChannel(video as object) as void
|
||||||
|
authorId = video.authorId
|
||||||
|
if StringUtils.IsNullOrEmpty(authorId)
|
||||||
|
LogWarn("Invalid authorId:", authorId)
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
channel = InvidiousContent.ToChannelContentNode(invalid, { authorId: authorId }, invalid)
|
||||||
|
ChannelUtils.Open(channel)
|
||||||
|
end function
|
||||||
|
|
||||||
'TODO:P1 a playlist could have been opened from the bookmarks, which can be as old as 3 days
|
'TODO:P1 a playlist could have been opened from the bookmarks, which can be as old as 3 days
|
||||||
' We should make a request in this case, and let the cache handle freshness.
|
' We should make a request in this case, and let the cache handle freshness.
|
||||||
function LoadPlaylistIfNeeded() as void
|
function LoadPlaylistIfNeeded() as void
|
||||||
@@ -214,42 +234,5 @@ function LoadPlaylistIfNeeded() as void
|
|||||||
return
|
return
|
||||||
end if
|
end if
|
||||||
|
|
||||||
LoadPlaylist()
|
m.top.content@.LoadPlaylistPage(m.top.invidious)
|
||||||
end function
|
|
||||||
|
|
||||||
function LoadPlaylist() as void
|
|
||||||
if m.playlistLoadTask <> invalid
|
|
||||||
m.playlistLoadTask.cancel = true
|
|
||||||
end if
|
|
||||||
|
|
||||||
m.top.content.loadState = FeedLoadState.Loading
|
|
||||||
m.playlistLoadTask = AsyncTask.Start(Tasks.PlaylistContentTask, {
|
|
||||||
content: m.top.content
|
|
||||||
invidious: m.top.invidious
|
|
||||||
}, OnPlaylistContentTaskResult)
|
|
||||||
end function
|
|
||||||
|
|
||||||
function OnPlaylistContentTaskResult(output as object) as void
|
|
||||||
m.playlistLoadTask = invalid
|
|
||||||
|
|
||||||
if output.cancelled
|
|
||||||
return
|
|
||||||
end if
|
|
||||||
|
|
||||||
if not output.success or not output.result.success
|
|
||||||
' output.error for unhandled exception
|
|
||||||
error = output.error
|
|
||||||
if error = invalid
|
|
||||||
' output.result.error for network errors
|
|
||||||
error = output.result.error
|
|
||||||
end if
|
|
||||||
error = ErrorUtils.Format(error)
|
|
||||||
LogError(error)
|
|
||||||
playlistId = output.task.input.content.playlistId
|
|
||||||
message = `Failed to load playlist ${playlistId}\n${error}`
|
|
||||||
DialogUtils.ShowDialog(message, "Playlist load fail", true)
|
|
||||||
return
|
|
||||||
end if
|
|
||||||
|
|
||||||
LoadPlaylistIfNeeded()
|
|
||||||
end function
|
end function
|
||||||
@@ -3,9 +3,10 @@
|
|||||||
<field id="content" type="node" onChange="OnContentSet" />
|
<field id="content" type="node" onChange="OnContentSet" />
|
||||||
<field id="appController" type="node" bind="/AppController" />
|
<field id="appController" type="node" bind="/AppController" />
|
||||||
<field id="invidious" type="node" bind="/Invidious" />
|
<field id="invidious" type="node" bind="/Invidious" />
|
||||||
<field id="playQueue" type="node" bind="/PlayQueue" />
|
<field id="videoQueue" type="node" bind="/VideoQueue" />
|
||||||
<field id="bookmarks" type="node" bind="/Bookmarks" />
|
<field id="bookmarksService" type="node" bind="/BookmarksService" />
|
||||||
<function name="OpenPlaylistChannel" />
|
<function name="OpenPlaylistChannel" />
|
||||||
|
<function name="OpenVideoChannel" />
|
||||||
</interface>
|
</interface>
|
||||||
<children>
|
<children>
|
||||||
<Rectangle
|
<Rectangle
|
||||||
@@ -56,8 +57,8 @@
|
|||||||
numColumns="1"
|
numColumns="1"
|
||||||
numRows="5"
|
numRows="5"
|
||||||
vertFocusAnimationStyle="floatingFocus"
|
vertFocusAnimationStyle="floatingFocus"
|
||||||
translation="[620,90]" />
|
translation="[620,90]"
|
||||||
|
focusBitmapUri="pkg:/images/focus-glow-padding-27.9.png" />
|
||||||
</Poster>
|
</Poster>
|
||||||
</children>
|
</children>
|
||||||
</component>
|
</component>
|
||||||
@@ -14,7 +14,8 @@ function OnContentSet() as void
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
m.top.title = content.title
|
m.top.title = content.title
|
||||||
m.top.author = content.author
|
' NOTE: "_author" not "author". See PlaylistContentNode.xml for explanation.
|
||||||
|
m.top.author = content._author
|
||||||
m.top.thumbnailUri = content.thumbnail
|
m.top.thumbnailUri = content.thumbnail
|
||||||
|
|
||||||
if ValidInt(content.lengthSeconds) <> 0
|
if ValidInt(content.lengthSeconds) <> 0
|
||||||
|
|||||||
@@ -0,0 +1,153 @@
|
|||||||
|
import "pkg:/components/Navigation/Navigation.bs"
|
||||||
|
import "pkg:/source/utils/DisposableObserve.bs"
|
||||||
|
import "pkg:/source/utils/FocusManagement.bs"
|
||||||
|
import "pkg:/source/utils/Locale.bs"
|
||||||
|
import "pkg:/source/utils/StringUtils.bs"
|
||||||
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
|
function Init()
|
||||||
|
m.activateButton = m.top.findNode("activateButton")
|
||||||
|
m.logoutButton = m.top.findNode("logoutButton")
|
||||||
|
m.closeButton = m.top.findNode("closeButton")
|
||||||
|
|
||||||
|
DisposableObserveField(m.activateButton, "buttonSelected", FuncName(Activate))
|
||||||
|
DisposableObserveField(m.logoutButton, "buttonSelected", FuncName(Logout))
|
||||||
|
DisposableObserveField(m.closeButton, "buttonSelected", FuncName(Close))
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnNodeReady()
|
||||||
|
SetNavigation(m.activateButton, "down", m.logoutButton)
|
||||||
|
SetNavigation(m.logoutButton, "down", m.closeButton)
|
||||||
|
SetNavigation(m.closeButton, "up", m.logoutButton)
|
||||||
|
SetNavigation(m.logoutButton, "up", m.activateButton)
|
||||||
|
|
||||||
|
DisposableObserveFieldScoped(m.profilesService, "currentProfile", FuncName(OnCunrrentProfileChanged))
|
||||||
|
DisposableObserveFieldScoped(m.profilesService, "onProfileLogout", FuncName(OnProfileLogout))
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnContentSet() as void
|
||||||
|
content = m.top.content
|
||||||
|
if content = invalid
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
|
||||||
|
m.top.circlePosterInnerUri = "pkg:/images/white-circle.png"
|
||||||
|
m.top.circlePosterInnerBlendColor = content.color
|
||||||
|
username = content.username
|
||||||
|
m.top.username = username
|
||||||
|
if not StringUtils.IsNullOrEmpty(username)
|
||||||
|
m.top.letter = UCase(username.Left(1))
|
||||||
|
else
|
||||||
|
m.top.letter = ""
|
||||||
|
end if
|
||||||
|
m.top.serverUrl = content.serverUrl
|
||||||
|
m.top.crownVisible = content.isSelected
|
||||||
|
UpdateActivateButton()
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnFocusChange() as void
|
||||||
|
if not m.top.focus
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
|
||||||
|
if m.activateButton.focusable
|
||||||
|
NodeSetFocus(m.activateButton, true)
|
||||||
|
else
|
||||||
|
NodeSetFocus(m.logoutButton, true)
|
||||||
|
end if
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnkeyEvent(key as string, press as boolean) as boolean
|
||||||
|
if NavigationKeyHandler(key, press).handled
|
||||||
|
return true
|
||||||
|
end if
|
||||||
|
|
||||||
|
if key = "options"
|
||||||
|
' A pass-through to the app controller, so it can toggle picture-in-picture
|
||||||
|
return false
|
||||||
|
end if
|
||||||
|
|
||||||
|
if key = "back" and press
|
||||||
|
Close()
|
||||||
|
return true
|
||||||
|
end if
|
||||||
|
|
||||||
|
return true
|
||||||
|
end function
|
||||||
|
|
||||||
|
function Activate() as void
|
||||||
|
content = m.top.content
|
||||||
|
if content = invalid
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
|
||||||
|
profile = m.profilesService.content.getChild(0).findNode(content.id)
|
||||||
|
if profile = invalid
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
|
||||||
|
m.top.content = invalid
|
||||||
|
m.profilesService@.SetCurrentProfile(profile)
|
||||||
|
Close()
|
||||||
|
end function
|
||||||
|
|
||||||
|
function Logout() as void
|
||||||
|
content = m.top.content
|
||||||
|
if content = invalid
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
|
||||||
|
m.top.content = invalid
|
||||||
|
m.profilesService@.LogoutWithProfile(content)
|
||||||
|
Close()
|
||||||
|
end function
|
||||||
|
|
||||||
|
function Close()
|
||||||
|
m.top.appController@.PopScreen()
|
||||||
|
m.top.dispose = true
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnDispose()
|
||||||
|
DisposeObservers()
|
||||||
|
m.top.content = invalid
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnCunrrentProfileChanged() as void
|
||||||
|
content = m.top.content
|
||||||
|
if content = invalid
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
m.top.crownVisible = content.isSelected
|
||||||
|
UpdateActivateButton()
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnProfileLogout() as void
|
||||||
|
content = m.top.content
|
||||||
|
if content = invalid
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
|
||||||
|
profile = m.profilesService.content.getChild(0).findNode(content.id)
|
||||||
|
if profile = invalid
|
||||||
|
Close()
|
||||||
|
end if
|
||||||
|
end function
|
||||||
|
|
||||||
|
function UpdateActivateButton() as void
|
||||||
|
content = m.top.content
|
||||||
|
if content = invalid
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
|
||||||
|
isSelected = content.isSelected
|
||||||
|
if isSelected
|
||||||
|
if m.activateButton.hasFocus()
|
||||||
|
NodeSetFocus(m.logoutButton, true)
|
||||||
|
end if
|
||||||
|
m.activateButton.text = Tr(Locale.Buttons.InUse)
|
||||||
|
m.activateButton.disabled = true
|
||||||
|
else
|
||||||
|
m.activateButton.text = Tr(Locale.Buttons.Activate)
|
||||||
|
m.activateButton.disabled = false
|
||||||
|
end if
|
||||||
|
end function
|
||||||
@@ -0,0 +1,100 @@
|
|||||||
|
<component name="ProfileView" extends="Group" includes="AutoBind,Focus,Disposable">
|
||||||
|
<interface>
|
||||||
|
<field id="content" type="node" onChange="OnContentSet" />
|
||||||
|
<field id="letter" type="string" alias="LetterLabel.text" />
|
||||||
|
<field id="username" type="string" alias="UsernameLabel.text" />
|
||||||
|
<field id="serverUrl" type="string" alias="ServerLabel.text" />
|
||||||
|
<field id="circlePosterInnerUri" type="uri" alias="circlePosterInner.uri" />
|
||||||
|
<field id="circlePosterInnerBlendColor" type="uri" alias="circlePosterInner.blendColor" />
|
||||||
|
<field id="crownVisible" type="boolean" alias="CrownPoster.visible" />
|
||||||
|
|
||||||
|
<field id="appController" type="node" bind="/AppController" />
|
||||||
|
<field id="profilesService" type="node" bind="/ProfilesService" />
|
||||||
|
</interface>
|
||||||
|
<children>
|
||||||
|
<Rectangle
|
||||||
|
width="1280"
|
||||||
|
height="720"
|
||||||
|
color="#000000"
|
||||||
|
opacity="0.5">
|
||||||
|
</Rectangle>
|
||||||
|
<Rectangle
|
||||||
|
width="720"
|
||||||
|
height="420"
|
||||||
|
translation="[280,150]"
|
||||||
|
color="#242424">
|
||||||
|
|
||||||
|
<Group translation="[100,90]">
|
||||||
|
<Poster
|
||||||
|
id="circlePoster"
|
||||||
|
width="160"
|
||||||
|
height="160"
|
||||||
|
translation="[20,20]"
|
||||||
|
blendColor="#DDDDDDFF"
|
||||||
|
uri="pkg:/images/white-circle.png">
|
||||||
|
<Poster
|
||||||
|
id="circlePosterInner"
|
||||||
|
width="152"
|
||||||
|
height="152"
|
||||||
|
blendColor="#9696C8"
|
||||||
|
uri="pkg:/images/white-circle.png"
|
||||||
|
translation="[4,4]">
|
||||||
|
<Label
|
||||||
|
id="LetterLabel"
|
||||||
|
width="152"
|
||||||
|
height="152"
|
||||||
|
vertAlign="center"
|
||||||
|
horizAlign="center">
|
||||||
|
<Font role="font" uri="font:SystemFontFile" size="120" />
|
||||||
|
</Label>
|
||||||
|
</Poster>
|
||||||
|
<Poster
|
||||||
|
id="CrownPoster"
|
||||||
|
width="60"
|
||||||
|
height="60"
|
||||||
|
translation="[50,-60]"
|
||||||
|
uri="pkg:/images/icons/crown.png"
|
||||||
|
visible="false">
|
||||||
|
</Poster>
|
||||||
|
</Poster>
|
||||||
|
<Label
|
||||||
|
id="UsernameLabel"
|
||||||
|
width="200"
|
||||||
|
horizAlign="center"
|
||||||
|
translation="[0,210]">
|
||||||
|
<Font role="font" uri="font:BoldSystemFontFile" size="26" />
|
||||||
|
</Label>
|
||||||
|
<Label
|
||||||
|
id="ServerLabel"
|
||||||
|
width="400"
|
||||||
|
horizAlign="center"
|
||||||
|
translation="[-100,250]">
|
||||||
|
<Font role="font" uri="font:SystemFontFile" size="18" />
|
||||||
|
</Label>
|
||||||
|
</Group>
|
||||||
|
|
||||||
|
<ButtonEx
|
||||||
|
id="activateButton"
|
||||||
|
iconVisible="false"
|
||||||
|
anchor="[0.5,0.5]"
|
||||||
|
text="Activate"
|
||||||
|
minWidth="200"
|
||||||
|
translation="[520,132]" />
|
||||||
|
<ButtonEx
|
||||||
|
id="logoutButton"
|
||||||
|
iconVisible="false"
|
||||||
|
anchor="[0.5,0.5]"
|
||||||
|
text="Logout"
|
||||||
|
minWidth="200"
|
||||||
|
translation="[520,210]" />
|
||||||
|
<ButtonEx
|
||||||
|
id="closeButton"
|
||||||
|
iconVisible="false"
|
||||||
|
anchor="[0.5,0.5]"
|
||||||
|
text="Close"
|
||||||
|
minWidth="200"
|
||||||
|
translation="[520,288]" />
|
||||||
|
|
||||||
|
</Rectangle>
|
||||||
|
</children>
|
||||||
|
</component>
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
namespace ProfileViewUtils
|
||||||
|
|
||||||
|
function Open(profile as object, appController as object)
|
||||||
|
profileView = CreateObject("roSGNode", "ProfileView")
|
||||||
|
|
||||||
|
appController@.PushScreen(profileView)
|
||||||
|
profileView@.BindNode()
|
||||||
|
profileView.content = profile
|
||||||
|
end function
|
||||||
|
|
||||||
|
end namespace
|
||||||
@@ -2,7 +2,7 @@ import "pkg:/source/QrCode/QrImage.bs"
|
|||||||
import "pkg:/source/utils/StringUtils.bs"
|
import "pkg:/source/utils/StringUtils.bs"
|
||||||
|
|
||||||
@asynctask
|
@asynctask
|
||||||
function GenerateQrCodeTask(input as object)
|
function GenerateQrCodeTask(input as object) as object
|
||||||
poster = input.poster
|
poster = input.poster
|
||||||
mode = input.mode
|
mode = input.mode
|
||||||
text = input.text
|
text = input.text
|
||||||
@@ -24,7 +24,13 @@ function GenerateQrCodeTask(input as object)
|
|||||||
qr = new QrCode.QRImage()
|
qr = new QrCode.QRImage()
|
||||||
imagePath = qr.Generate(text, size, padding, mode)
|
imagePath = qr.Generate(text, size, padding, mode)
|
||||||
|
|
||||||
|
if m.top.cancel
|
||||||
|
return invalid
|
||||||
|
end if
|
||||||
|
|
||||||
if not StringUtils.IsNullOrEmpty(imagePath)
|
if not StringUtils.IsNullOrEmpty(imagePath)
|
||||||
poster.uri = imagePath
|
poster.uri = imagePath
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
return invalid
|
||||||
end function
|
end function
|
||||||
@@ -0,0 +1,65 @@
|
|||||||
|
import "pkg:/source/AsyncTask/AsyncTask.bs"
|
||||||
|
import "pkg:/source/AsyncTask/Tasks.bs"
|
||||||
|
import "pkg:/source/utils/StringUtils.bs"
|
||||||
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
|
function Init()
|
||||||
|
m.busySpinner = m.top.findNode("busySpinner")
|
||||||
|
m.busySpinnerPoster = m.busySpinner.poster
|
||||||
|
|
||||||
|
m.busySpinnerPoster.uri = "pkg:/images/spinner.png"
|
||||||
|
|
||||||
|
m.top.observeField("width", FuncName(OnSizeChange))
|
||||||
|
m.top.observeField("height", FuncName(OnSizeChange))
|
||||||
|
OnSizeChange()
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnSizeChange()
|
||||||
|
width = m.top.width
|
||||||
|
height = m.top.height
|
||||||
|
|
||||||
|
m.busySpinnerPoster.width = width / 2
|
||||||
|
m.busySpinnerPoster.height = height / 2
|
||||||
|
m.busySpinner.translation = [width / 4, height / 4]
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnTextChange() as void
|
||||||
|
if m.qrCodeGenTask <> invalid
|
||||||
|
m.qrCodeGenTask.cancel = true
|
||||||
|
end if
|
||||||
|
|
||||||
|
text = m.top.text
|
||||||
|
|
||||||
|
width = m.top.loadWidth
|
||||||
|
if width = 0
|
||||||
|
width = m.top.width
|
||||||
|
end if
|
||||||
|
|
||||||
|
m.top.uri = ""
|
||||||
|
|
||||||
|
if StringUtils.IsNullOrEmpty(text)
|
||||||
|
m.busySpinner.control = "stop"
|
||||||
|
m.busySpinner.visible = false
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
|
||||||
|
m.busySpinnerPoster.rotation = 0
|
||||||
|
m.busySpinner.visible = true
|
||||||
|
m.busySpinner.control = "start"
|
||||||
|
|
||||||
|
m.qrCodeGenTask = AsyncTask.Start(Tasks.GenerateQrCodeTask, {
|
||||||
|
poster: m.top
|
||||||
|
text: text
|
||||||
|
size: width
|
||||||
|
padding: m.top.padding
|
||||||
|
}, OnGenerateQrCodeTaskResult)
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnGenerateQrCodeTaskResult(output as object) as void
|
||||||
|
if output.cancelled
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
|
||||||
|
m.busySpinner.control = "stop"
|
||||||
|
m.busySpinner.visible = false
|
||||||
|
end function
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
<component name="QrCodePoster" extends="Poster">
|
||||||
|
<interface>
|
||||||
|
<field id="text" type="string" onChange="OnTextChange" />
|
||||||
|
<field id="padding" type="integer" />
|
||||||
|
</interface>
|
||||||
|
<children>
|
||||||
|
<BusySpinner
|
||||||
|
id="busySpinner"
|
||||||
|
spinInterval="1"
|
||||||
|
visible="false" />
|
||||||
|
</children>
|
||||||
|
</component>
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
import "pkg:/components/ContextMenu/ContextMenuUtils.bs"
|
import "pkg:/components/ContextMenu/ContextMenuUtils.bs"
|
||||||
import "pkg:/components/Navigation/Navigation.bs"
|
import "pkg:/components/Navigation/Navigation.bs"
|
||||||
import "pkg:/source/utils/FocusManagement.bs"
|
import "pkg:/source/utils/FocusManagement.bs"
|
||||||
|
import "pkg:/source/utils/Locale.bs"
|
||||||
import "pkg:/source/utils/Types.bs"
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
@@ -20,7 +21,7 @@ function OnNodeReady()
|
|||||||
m.rowList@.BindNode()
|
m.rowList@.BindNode()
|
||||||
|
|
||||||
OnBookmarksChange()
|
OnBookmarksChange()
|
||||||
m.bookmarks.ObserveField("contentChange", FuncName(OnBookmarksChange))
|
m.bookmarksService.ObserveField("contentChange", FuncName(OnBookmarksChange))
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OnFocusChange() as void
|
function OnFocusChange() as void
|
||||||
@@ -53,13 +54,13 @@ function OnBookmarksChange() as void
|
|||||||
end if
|
end if
|
||||||
m.isDirty = false
|
m.isDirty = false
|
||||||
|
|
||||||
hasBookmarks = m.bookmarks.content.getChildCount() > 0
|
hasBookmarks = m.bookmarksService.content.getChildCount() > 0
|
||||||
m.noBookmarks.visible = not hasBookmarks
|
m.noBookmarks.visible = not hasBookmarks
|
||||||
m.yesBookmarks.visible = hasBookmarks
|
m.yesBookmarks.visible = hasBookmarks
|
||||||
m.top.focusable = hasBookmarks
|
m.top.focusable = hasBookmarks
|
||||||
|
|
||||||
if hasBookmarks
|
if hasBookmarks
|
||||||
SetRowListContent(m.bookmarks.content)
|
SetRowListContent(m.bookmarksService.content)
|
||||||
else
|
else
|
||||||
if m.rowList.hasFocus()
|
if m.rowList.hasFocus()
|
||||||
NodeSetFocus(m.navBar, true)
|
NodeSetFocus(m.navBar, true)
|
||||||
@@ -95,6 +96,6 @@ function OnkeyEvent(key as string, press as boolean) as boolean
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function GetContextMenuOptionsForItem(rowItem as object) as object
|
function GetContextMenuOptionsForItem(rowItem as object) as object
|
||||||
refreshItem = ContextMenuUtils.CreateOption("Refresh Bookmarks", m.top, "Refresh", [invalid])
|
refreshItem = ContextMenuUtils.CreateOption(Tr(Locale.ContextMenu.RefreshBookmarks), m.top, "Refresh", [invalid])
|
||||||
return [refreshItem]
|
return [refreshItem]
|
||||||
end function
|
end function
|
||||||
@@ -2,19 +2,31 @@
|
|||||||
<interface>
|
<interface>
|
||||||
<field id="navBar" type="node" bind="/NavBar" />
|
<field id="navBar" type="node" bind="/NavBar" />
|
||||||
<field id="applicationInfo" type="node" bind="/ApplicationInfo" />
|
<field id="applicationInfo" type="node" bind="/ApplicationInfo" />
|
||||||
<field id="bookmarks" type="node" bind="/Bookmarks" />
|
<field id="bookmarksService" type="node" bind="/BookmarksService" />
|
||||||
<function name="Refresh" />
|
<function name="Refresh" />
|
||||||
</interface>
|
</interface>
|
||||||
<children>
|
<children>
|
||||||
<Group id="noBookmarks" visible="false">
|
<Group id="noBookmarks" visible="false">
|
||||||
|
<LayoutGroup vertAlignment="center" itemSpacings="[25,25]" translation="[180,360]">
|
||||||
<Label
|
<Label
|
||||||
height="720"
|
width="920"
|
||||||
width="1280"
|
|
||||||
font="font:MediumBoldSystemFont"
|
|
||||||
horizAlign="center"
|
horizAlign="center"
|
||||||
vertAlign="center"
|
font="font:SmallSystemFont"
|
||||||
text="You currently have no bookmarks.

To add bookmarks, long-press 'OK' on a video, playlist or channel.

Please note that Bookmarks is an experimental feature."
|
text="You currently have no bookmarks."
|
||||||
wrap="true" />
|
wrap="true" />
|
||||||
|
<Label
|
||||||
|
width="920"
|
||||||
|
horizAlign="center"
|
||||||
|
font="font:SmallSystemFont"
|
||||||
|
text="To add bookmarks, long-press 'OK' on a video, playlist or channel."
|
||||||
|
wrap="true" />
|
||||||
|
<Label
|
||||||
|
width="920"
|
||||||
|
horizAlign="center"
|
||||||
|
font="font:SmallSystemFont"
|
||||||
|
text="Please note that Bookmarks is an experimental feature."
|
||||||
|
wrap="true" />
|
||||||
|
</LayoutGroup>
|
||||||
</Group>
|
</Group>
|
||||||
<Group id="yesBookmarks" visible="false">
|
<Group id="yesBookmarks" visible="false">
|
||||||
<VideoRowList
|
<VideoRowList
|
||||||
@@ -31,7 +43,7 @@
|
|||||||
showRowLabel="[true]"
|
showRowLabel="[true]"
|
||||||
rowFocusAnimationStyle="floatingfocus"
|
rowFocusAnimationStyle="floatingfocus"
|
||||||
variableWidthItems="true"
|
variableWidthItems="true"
|
||||||
focusBitmapUri="pkg:/images/focus_grid.9.png"
|
focusBitmapUri="pkg:/images/focus-glow-padding-19.9.png"
|
||||||
/>
|
/>
|
||||||
</Group>
|
</Group>
|
||||||
</children>
|
</children>
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import "HomeScreenUtils.bs"
|
|||||||
import "pkg:/components/ContextMenu/ContextMenuUtils.bs"
|
import "pkg:/components/ContextMenu/ContextMenuUtils.bs"
|
||||||
import "pkg:/components/Navigation/Navigation.bs"
|
import "pkg:/components/Navigation/Navigation.bs"
|
||||||
import "pkg:/source/utils/FocusManagement.bs"
|
import "pkg:/source/utils/FocusManagement.bs"
|
||||||
|
import "pkg:/source/utils/Locale.bs"
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
m.top.focusable = true
|
m.top.focusable = true
|
||||||
@@ -41,6 +42,6 @@ function OnkeyEvent(key as string, press as boolean) as boolean
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function GetContextMenuOptionsForItem(rowItem as object) as object
|
function GetContextMenuOptionsForItem(rowItem as object) as object
|
||||||
refresh = ContextMenuUtils.CreateOption("Refresh Home", m.rowList, "Refresh", [invalid])
|
refresh = ContextMenuUtils.CreateOption(Tr(Locale.ContextMenu.RefreshHome), m.rowList, "Refresh", [invalid])
|
||||||
return [refresh]
|
return [refresh]
|
||||||
end function
|
end function
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
showRowLabel="[true]"
|
showRowLabel="[true]"
|
||||||
rowFocusAnimationStyle="floatingfocus"
|
rowFocusAnimationStyle="floatingfocus"
|
||||||
variableWidthItems="true"
|
variableWidthItems="true"
|
||||||
focusBitmapUri="pkg:/images/focus_grid.9.png"
|
focusBitmapUri="pkg:/images/focus-glow-padding-19.9.png"
|
||||||
/>
|
/>
|
||||||
</children>
|
</children>
|
||||||
</component>
|
</component>
|
||||||
@@ -4,6 +4,13 @@ namespace HomeScreenUtils
|
|||||||
|
|
||||||
function GetFeed(feedFileName as string, preferences as object) as object
|
function GetFeed(feedFileName as string, preferences as object) as object
|
||||||
feed = ParseJson(ReadAsciiFile(feedFileName))
|
feed = ParseJson(ReadAsciiFile(feedFileName))
|
||||||
|
for each item in feed
|
||||||
|
item.title = Tr(item.title)
|
||||||
|
|
||||||
|
for each feedSource in item.feedSources
|
||||||
|
feedSource.title = Tr(feedSource.title)
|
||||||
|
end for
|
||||||
|
end for
|
||||||
|
|
||||||
homeLayout = preferences["misc.home_screen_layout"]
|
homeLayout = preferences["misc.home_screen_layout"]
|
||||||
if not IsArray(homeLayout) or homeLayout.Count() = 0
|
if not IsArray(homeLayout) or homeLayout.Count() = 0
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<component name="ProfileRowList" extends="RowList">
|
||||||
|
</component>
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
import "pkg:/source/utils/Locale.bs"
|
||||||
|
import "pkg:/source/utils/StringUtils.bs"
|
||||||
|
|
||||||
|
function Init()
|
||||||
|
m.normalFont = m.top.findNode("normalFont")
|
||||||
|
m.boldFont = m.top.findNode("boldFont")
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnContentSet() as void
|
||||||
|
content = m.top.itemContent
|
||||||
|
if content = invalid
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
|
||||||
|
if content.type = "login"
|
||||||
|
m.top.circlePosterInnerUri = "pkg:/images/icons/user-200.png"
|
||||||
|
' bs:disable-next-line LINT3023
|
||||||
|
m.top.circlePosterInnerBlendColor = "#FFFFFFFF"
|
||||||
|
m.top.letter = ""
|
||||||
|
m.top.username = Tr(Locale.Buttons.Login)
|
||||||
|
m.top.serverUrl = ""
|
||||||
|
m.top.crownVisible = false
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
|
||||||
|
m.top.circlePosterInnerUri = "pkg:/images/white-circle.png"
|
||||||
|
m.top.circlePosterInnerBlendColor = content.color
|
||||||
|
username = content.username
|
||||||
|
m.top.username = username
|
||||||
|
if not StringUtils.IsNullOrEmpty(username)
|
||||||
|
m.top.letter = UCase(username.Left(1))
|
||||||
|
else
|
||||||
|
m.top.letter = ""
|
||||||
|
end if
|
||||||
|
m.top.serverUrl = content.serverUrl
|
||||||
|
m.top.crownVisible = content.isSelected
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnRowListHasFocus()
|
||||||
|
if not m.top.rowListHasFocus
|
||||||
|
m.top.animate = false
|
||||||
|
end if
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnItemHasFocus()
|
||||||
|
m.top.animate = (m.top.itemHasFocus or m.top.focusPercent > 0.5) and m.top.rowListHasFocus
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnFocusPercent()
|
||||||
|
if m.top.focusPercent > 0.5 and m.top.rowListHasFocus
|
||||||
|
m.top.animate = true
|
||||||
|
else
|
||||||
|
m.top.animate = false
|
||||||
|
end if
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnAnimate()
|
||||||
|
animate = m.top.animate
|
||||||
|
m.top.shadowVisible = animate
|
||||||
|
m.top.serverLabelVisible = animate
|
||||||
|
m.top.circlePosterTranslation = [20, 20]
|
||||||
|
if animate
|
||||||
|
m.top.UsernameLabelFont = m.boldFont
|
||||||
|
m.top.animationControl = "start"
|
||||||
|
else
|
||||||
|
m.top.UsernameLabelFont = m.normalFont
|
||||||
|
m.top.animationControl = "stop"
|
||||||
|
end if
|
||||||
|
end function
|
||||||
@@ -0,0 +1,107 @@
|
|||||||
|
<component name="ProfileRowListCell" extends="Group">
|
||||||
|
<interface>
|
||||||
|
<field id="itemContent" type="node" onChange="OnContentSet" />
|
||||||
|
<field id="letter" type="string" alias="LetterLabel.text" />
|
||||||
|
<field id="username" type="string" alias="UsernameLabel.text" />
|
||||||
|
<field id="serverUrl" type="string" alias="ServerLabel.text" />
|
||||||
|
<field id="circlePosterInnerUri" type="uri" alias="circlePosterInner.uri" />
|
||||||
|
<field id="circlePosterInnerBlendColor" type="uri" alias="circlePosterInner.blendColor" />
|
||||||
|
<field id="UsernameLabelFont" type="boolean" alias="UsernameLabel.font" />
|
||||||
|
<field id="rowListHasFocus" type="boolean" onChange="OnRowListHasFocus" />
|
||||||
|
<field id="itemHasFocus" type="boolean" onChange="OnItemHasFocus" />
|
||||||
|
<field id="focusPercent" type="float" onChange="OnFocusPercent" />
|
||||||
|
<field id="circlePosterTranslation" type="vector2d" alias="circlePoster.translation" />
|
||||||
|
<field id="animate" type="boolean" onChange="OnAnimate" />
|
||||||
|
<field id="animationControl" type="string" alias="floatAnimation.control" />
|
||||||
|
<field id="shadowVisible" type="boolean" alias="shadowPoster.visible" />
|
||||||
|
<field id="crownVisible" type="boolean" alias="CrownPoster.visible" />
|
||||||
|
<field id="serverLabelVisible" type="boolean" alias="ServerLabel.visible" />
|
||||||
|
</interface>
|
||||||
|
<children>
|
||||||
|
<Font id="normalFont" uri="font:SystemFontFile" size="24" />
|
||||||
|
<Font id="boldFont" uri="font:BoldSystemFontFile" size="26" />
|
||||||
|
|
||||||
|
<Group translation="[20,50]">
|
||||||
|
<Group
|
||||||
|
id="shadowScaler"
|
||||||
|
translation="[100,20]">
|
||||||
|
<Group translation="[-100,-20]">
|
||||||
|
<Poster
|
||||||
|
id="shadowPoster"
|
||||||
|
uri="pkg:/images/white-circle.png"
|
||||||
|
blendColor="#000000"
|
||||||
|
width="200"
|
||||||
|
height="40"
|
||||||
|
translation="[0,200]"
|
||||||
|
visible="false">
|
||||||
|
</Poster>
|
||||||
|
</Group>
|
||||||
|
</Group>
|
||||||
|
|
||||||
|
<Poster
|
||||||
|
id="circlePoster"
|
||||||
|
width="160"
|
||||||
|
height="160"
|
||||||
|
translation="[20,20]"
|
||||||
|
blendColor="#DDDDDDFF"
|
||||||
|
uri="pkg:/images/white-circle.png">
|
||||||
|
<Poster
|
||||||
|
id="circlePosterInner"
|
||||||
|
width="152"
|
||||||
|
height="152"
|
||||||
|
blendColor="#9696C8"
|
||||||
|
uri="pkg:/images/white-circle.png"
|
||||||
|
translation="[4,4]">
|
||||||
|
<Label
|
||||||
|
id="LetterLabel"
|
||||||
|
width="152"
|
||||||
|
height="152"
|
||||||
|
vertAlign="center"
|
||||||
|
horizAlign="center">
|
||||||
|
<Font role="font" uri="font:SystemFontFile" size="120" />
|
||||||
|
</Label>
|
||||||
|
</Poster>
|
||||||
|
<Poster
|
||||||
|
id="CrownPoster"
|
||||||
|
width="60"
|
||||||
|
height="60"
|
||||||
|
translation="[50,-60]"
|
||||||
|
uri="pkg:/images/icons/crown.png"
|
||||||
|
visible="false">
|
||||||
|
</Poster>
|
||||||
|
</Poster>
|
||||||
|
<Label
|
||||||
|
id="UsernameLabel"
|
||||||
|
width="200"
|
||||||
|
horizAlign="center"
|
||||||
|
translation="[0,250]">
|
||||||
|
</Label>
|
||||||
|
<Label
|
||||||
|
id="ServerLabel"
|
||||||
|
width="400"
|
||||||
|
horizAlign="center"
|
||||||
|
translation="[-100,310]"
|
||||||
|
visible="false">
|
||||||
|
<Font role="font" uri="font:SystemFontFile" size="18" />
|
||||||
|
</Label>
|
||||||
|
</Group>
|
||||||
|
<Animation
|
||||||
|
id="floatAnimation"
|
||||||
|
repeat="true"
|
||||||
|
duration="4"
|
||||||
|
easeFunction="inOutQuad">
|
||||||
|
<Vector2DFieldInterpolator
|
||||||
|
key="[ 0.0, 0.5, 0.55, 1.0 ]"
|
||||||
|
keyValue="[ [20,40], [20,10], [20,10], [20,40]]"
|
||||||
|
fieldToInterp="circlePoster.translation" />
|
||||||
|
<Vector2DFieldInterpolator
|
||||||
|
key="[ 0.0, 0.5, 0.55, 1.0 ]"
|
||||||
|
keyValue="[ [0.7,1], [1.05,1],[1.05,1] , [0.7,1] ]"
|
||||||
|
fieldToInterp="shadowScaler.scale" />
|
||||||
|
<FloatFieldInterpolator
|
||||||
|
key="[ 0.0, 0.5, 0.55, 1.0 ]"
|
||||||
|
keyValue="[0.3, 0.05 ,0.05, 0.3 ]"
|
||||||
|
fieldToInterp="shadowPoster.opacity" />
|
||||||
|
</Animation>
|
||||||
|
</children>
|
||||||
|
</component>
|
||||||