Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
93ea822f27 | ||
|
|
d73a03d3bf | ||
|
|
45736dd8ec | ||
|
|
90565ccb07 | ||
|
|
b72173f588 | ||
|
|
2d759c1c39 | ||
|
|
11fb644fc6 | ||
|
|
b076517c1b | ||
|
|
74082f406a | ||
|
|
f3aeb58b38 | ||
|
|
44ee6681c5 | ||
|
|
85e30c8b22 | ||
|
|
80d3d24e39 | ||
|
|
a7bdab30bc | ||
|
|
3858681b80 | ||
|
|
e0cf59d90f | ||
|
|
d9b8aaa222 | ||
|
|
b1a373f98d | ||
|
|
1078459eb7 | ||
|
|
14cc537032 | ||
|
|
db755c4158 | ||
|
|
ed068f6599 | ||
|
|
45011a54f0 | ||
|
|
8c71a5be88 | ||
|
|
d059fced58 | ||
|
|
ea2be153b0 | ||
|
|
7e5b2246fa | ||
|
|
a710a23444 | ||
|
|
a3b3a143a5 |
No files matched your search
+12
-3
@@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [0.19.2] - 2024-02-11
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- [Attempt #2] to fix a crash caused by execution timeout when stopping a video takes too long
|
||||||
|
- Wrong hint on the "added to queue" notification when in fullscreen
|
||||||
|
- A rare crash when listing Invidious public instances
|
||||||
|
- Restoring video to full screen not working when on certain screens
|
||||||
|
|
||||||
## [0.19.1] - 2024-01-13
|
## [0.19.1] - 2024-01-13
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
@@ -348,7 +357,7 @@ This version went through a major refactor, which resulted in a different arcite
|
|||||||
- Dark mode
|
- Dark mode
|
||||||
- Also includes a dev menu
|
- Also includes a dev menu
|
||||||
- Hidden by default, use `dev=1` in the browser to show it
|
- Hidden by default, use `dev=1` in the browser to show it
|
||||||
- Improved drag and drop functionality (drag and drop a link from Youtube into the web app)
|
- Improved drag and drop functionality (drag and drop a link from YouTube into the web app)
|
||||||
- New settings page, available on TV and web app
|
- New settings page, available on TV and web app
|
||||||
- New preferences system
|
- New preferences system
|
||||||
- Unified settings between TV and web app
|
- Unified settings between TV and web app
|
||||||
@@ -405,7 +414,7 @@ This version went through a major refactor, which resulted in a different arcite
|
|||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- A script to sync between Youtube profile and and Invidious profile
|
- A script to sync between YouTube profile and and Invidious profile
|
||||||
- Moved most of Playlet logic to Playlet Lib
|
- Moved most of Playlet logic to Playlet Lib
|
||||||
- Support for multiple caption languages
|
- Support for multiple caption languages
|
||||||
|
|
||||||
@@ -453,7 +462,7 @@ This version went through a major refactor, which resulted in a different arcite
|
|||||||
- Loading spinner
|
- Loading spinner
|
||||||
- Picture in picture support
|
- Picture in picture support
|
||||||
- [Deep linking support](https://developer.roku.com/en-ca/docs/developer-program/discovery/implementing-deep-linking.md)
|
- [Deep linking support](https://developer.roku.com/en-ca/docs/developer-program/discovery/implementing-deep-linking.md)
|
||||||
- Both Launch arguments and Input arguments are supported, using the "contentId" key as the Youtube video id
|
- Both Launch arguments and Input arguments are supported, using the "contentId" key as the YouTube video id
|
||||||
- Error and Exit dialogs
|
- Error and Exit dialogs
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
# Playlet
|
# Playlet
|
||||||
|
|
||||||
Playlet is an unofficial Youtube client for Roku 📺
|
Playlet is an unofficial YouTube client for Roku 📺
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@ More under [Screenshots](./docs/screenshots/README.md)
|
|||||||
- ⚔️ 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 web app
|
||||||
- 🔮 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
|
||||||
|
|
||||||
@@ -89,10 +89,10 @@ play•let /ˈplālət/
|
|||||||
: a short play
|
: a short play
|
||||||
```
|
```
|
||||||
|
|
||||||
**Playlet** is about keeping the time you spend on Youtube short and useful. It values your time, so it does not show you ads, and allows you to skip sponsored sections and other irrelevant information that's designed to monitize you and/or waste your time.
|
**Playlet** is about keeping the time you spend on YouTube short and useful. It values your time, so it does not show you ads, and allows you to skip sponsored sections and other irrelevant information that's designed to monitize you and/or waste your time.
|
||||||
|
|
||||||
There's a cliché about how a lot of open source software is **`"Made with ♡"`**. This project in particular is **not**.<br/>
|
There's a cliché about how a lot of open source software is **`"Made with ♡"`**. This project in particular is **not**.<br/>
|
||||||
**Playlet** was created out of **spite**, because I believe I have watched enough back-to-back, unskippable Youtube ads for a lifetime.
|
**Playlet** was created out of **spite**, because I believe I have watched enough back-to-back, unskippable YouTube ads for a lifetime.
|
||||||
|
|
||||||
By removing all the bloat, the ads, the tracking, we could end up with an even faster app than the official one.
|
By removing all the bloat, the ads, the tracking, we could end up with an even faster app than the official one.
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"createPackage": false,
|
"createPackage": false,
|
||||||
"diagnosticFilters": [
|
"diagnosticFilters": [
|
||||||
{
|
{
|
||||||
"src": "**/*.part.xml",
|
"src": "components/**/*.part.xml",
|
||||||
"codes": [
|
"codes": [
|
||||||
// 1067 - Cannot find function with name '${name}' in component scope
|
// 1067 - Cannot find function with name '${name}' in component scope
|
||||||
// This is to prevent errors where the onChange function is not found in the component scope
|
// This is to prevent errors where the onChange function is not found in the component scope
|
||||||
@@ -45,10 +45,11 @@
|
|||||||
"files": [
|
"files": [
|
||||||
"source/**",
|
"source/**",
|
||||||
"components/**",
|
"components/**",
|
||||||
|
"!components/**/*.part.xml",
|
||||||
"images/**",
|
"images/**",
|
||||||
|
"!**/*.psd",
|
||||||
"!**/*.svg",
|
"!**/*.svg",
|
||||||
"!**/*.svg.meta.json5",
|
"!**/*.svg.meta.json5",
|
||||||
"fonts/**",
|
|
||||||
"config/**",
|
"config/**",
|
||||||
"lib/**",
|
"lib/**",
|
||||||
"www/**",
|
"www/**",
|
||||||
@@ -71,7 +72,8 @@
|
|||||||
"../tools/bs-plugins/validation-plugin.ts",
|
"../tools/bs-plugins/validation-plugin.ts",
|
||||||
"../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"
|
||||||
],
|
],
|
||||||
"retainStagingDir": true,
|
"retainStagingDir": true,
|
||||||
"require": [
|
"require": [
|
||||||
|
|||||||
@@ -3,10 +3,11 @@
|
|||||||
"files": [
|
"files": [
|
||||||
"source/**",
|
"source/**",
|
||||||
"components/**",
|
"components/**",
|
||||||
|
"!components/**/*.part.xml",
|
||||||
"images/**",
|
"images/**",
|
||||||
|
"!**/*.psd",
|
||||||
"!**/*.svg",
|
"!**/*.svg",
|
||||||
"!**/*.svg.meta.json5",
|
"!**/*.svg.meta.json5",
|
||||||
"fonts/**",
|
|
||||||
"config/**",
|
"config/**",
|
||||||
"lib/**",
|
"lib/**",
|
||||||
"www/**",
|
"www/**",
|
||||||
@@ -27,7 +28,8 @@
|
|||||||
"../tools/bs-plugins/validation-plugin.ts",
|
"../tools/bs-plugins/validation-plugin.ts",
|
||||||
"../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"
|
||||||
],
|
],
|
||||||
"rooibos": {
|
"rooibos": {
|
||||||
"logLevel": 2,
|
"logLevel": 2,
|
||||||
|
|||||||
+1
-1
@@ -142,7 +142,7 @@ That's pretty much it.
|
|||||||
|
|
||||||
There are a few reasons we made this separation:
|
There are a few reasons we made this separation:
|
||||||
|
|
||||||
- Playlet relies on [Invidious](https://github.com/iv-org/invidious). Invidious tries to keep up with Youtube making changes to their platform, but sometimes, a breaking change happens that requires Playlet to react quickly. Releasing through the Roku Channel store can take days, or a week. During this time, Playlet would be not functional, and that's not acceptable.
|
- Playlet relies on [Invidious](https://github.com/iv-org/invidious). Invidious tries to keep up with YouTube making changes to their platform, but sometimes, a breaking change happens that requires Playlet to react quickly. Releasing through the Roku Channel store can take days, or a week. During this time, Playlet would be not functional, and that's not acceptable.
|
||||||
- The ability to roll back: Sometimes an app breaking bug gets released. Allowing users to choose a seperate version is a flexible way to keep things working. For example, it's possible to choose a different verrsion from the developer settings in the web app.
|
- The ability to roll back: Sometimes an app breaking bug gets released. Allowing users to choose a seperate version is a flexible way to keep things working. For example, it's possible to choose a different verrsion from the developer settings in the web app.
|
||||||
- It is simply easier to release: Releasing Playlet Lib on Github, and everyone receives the latest version immediately, is very conveninct and less of a hassle, than going through the Roku Channel store.
|
- It is simply easier to release: Releasing Playlet Lib on Github, and everyone receives the latest version immediately, is very conveninct and less of a hassle, than going through the Roku Channel store.
|
||||||
- I've had instances where I was trying to pass the certfication for Playlet to publish it. One of the criterias is to pass a some automated tests. But the tests were failing because their system could not connect to their Roku test devices (connection keeps timing out). My only option was to keep trying over and over until it worked.
|
- I've had instances where I was trying to pass the certfication for Playlet to publish it. One of the criterias is to pass a some automated tests. But the tests were failing because their system could not connect to their Roku test devices (connection keeps timing out). My only option was to keep trying over and over until it worked.
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ openapi: 3.0.0
|
|||||||
|
|
||||||
info:
|
info:
|
||||||
title: Playlet Web API
|
title: Playlet Web API
|
||||||
version: 0.19.1
|
version: 0.19.2
|
||||||
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
|
||||||
@@ -106,7 +106,7 @@ paths:
|
|||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
put:
|
post:
|
||||||
summary: Add to search history
|
summary: Add to search history
|
||||||
description: |
|
description: |
|
||||||
Add a query to the search history.
|
Add a query to the search history.
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
- [Tracking transpilied files](#tracking-transpilied-files)
|
- [Tracking transpilied files](#tracking-transpilied-files)
|
||||||
- [Logger](#logger)
|
- [Logger](#logger)
|
||||||
- [Type Gen](#type-gen)
|
- [Type Gen](#type-gen)
|
||||||
|
- [Web Server](#web-server)
|
||||||
|
|
||||||
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:
|
||||||
|
|
||||||
@@ -571,3 +572,33 @@ function ValidBool(obj as dynamic) as boolean
|
|||||||
end if
|
end if
|
||||||
end function
|
end function
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Web Server
|
||||||
|
|
||||||
|
**[Source](/tools/bs-plugins/web-server-plugin.ts)**
|
||||||
|
|
||||||
|
### Why
|
||||||
|
|
||||||
|
Handles routing annotations (e.g. `@get("/api/something")) so that they are handled by the routers/middlewares. It's nicer than having to register things by hand.
|
||||||
|
|
||||||
|
### How
|
||||||
|
|
||||||
|
Routers need to inherit from `Http.HttpRouter`. Then, once a request handled is annotated, e.g.
|
||||||
|
|
||||||
|
```bs
|
||||||
|
@get("/")
|
||||||
|
function GoHome(context as object) as boolean
|
||||||
|
response = context.response
|
||||||
|
response.Redirect("/index.html")
|
||||||
|
return true
|
||||||
|
end function
|
||||||
|
```
|
||||||
|
|
||||||
|
The route and the handler are added to the router. In this example, the `/` route redirects to `index/html`.
|
||||||
|
|
||||||
|
There one special annotation, and one special route:
|
||||||
|
|
||||||
|
- `@all` matches all methods
|
||||||
|
- `*` matches all paths
|
||||||
|
|
||||||
|
So `@all(*)` would be a middleware that will be matched with any request.
|
||||||
Generated
+43
-116
@@ -1,36 +1,36 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet",
|
"name": "playlet",
|
||||||
"version": "0.19.1",
|
"version": "0.19.2",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet",
|
"name": "playlet",
|
||||||
"version": "0.19.1",
|
"version": "0.19.2",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rokucommunity/bslint": "^0.8.14",
|
"@rokucommunity/bslint": "^0.8.17",
|
||||||
"@types/crypto-js": "^4.2.1",
|
"@types/crypto-js": "^4.2.2",
|
||||||
"@types/fs-extra": "^11.0.4",
|
"@types/fs-extra": "^11.0.4",
|
||||||
"@types/node": "^20.11.0",
|
"@types/node": "^20.11.17",
|
||||||
"@types/xml2js": "^0.4.14",
|
"@types/xml2js": "^0.4.14",
|
||||||
"argparse": "^2.0.1",
|
"argparse": "^2.0.1",
|
||||||
"brighterscript": "0.65.16",
|
"brighterscript": "0.65.22",
|
||||||
"brighterscript-formatter": "^1.6.37",
|
"brighterscript-formatter": "^1.6.40",
|
||||||
"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.3.1",
|
"dotenv": "^16.4.1",
|
||||||
"express": "^4.18.2",
|
"express": "^4.18.2",
|
||||||
"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": "^1.1.8",
|
||||||
"json5": "^2.2.3",
|
"json5": "^2.2.3",
|
||||||
"mailparser": "^3.6.6",
|
"mailparser": "^3.6.7",
|
||||||
"roku-deploy": "^3.11.2",
|
"roku-deploy": "^3.11.2",
|
||||||
"rooibos-roku": "^5.10.0",
|
"rooibos-roku": "^5.11.0",
|
||||||
"semver": "^7.5.4",
|
"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.3.3",
|
||||||
@@ -276,9 +276,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@rokucommunity/bslint": {
|
"node_modules/@rokucommunity/bslint": {
|
||||||
"version": "0.8.14",
|
"version": "0.8.17",
|
||||||
"resolved": "https://registry.npmjs.org/@rokucommunity/bslint/-/bslint-0.8.14.tgz",
|
"resolved": "https://registry.npmjs.org/@rokucommunity/bslint/-/bslint-0.8.17.tgz",
|
||||||
"integrity": "sha512-vKD2weW5I8jOXe+2xHN9FZ9GUCkbE/FOTbWcziLXrObraXJZcNRqk+fWDvi7go79ourQ/9DmYfmFH0bocjOMqg==",
|
"integrity": "sha512-e0ksPVYnN+QkhzuV97yPTf1NxSkBQZNMJRhlCFnMJf6gfps+VdY1HwYn3IlqDz3XJxfYcRSDa3v3fQ5dQynVEA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"fs-extra": "^10.0.0",
|
"fs-extra": "^10.0.0",
|
||||||
@@ -345,9 +345,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@types/crypto-js": {
|
"node_modules/@types/crypto-js": {
|
||||||
"version": "4.2.1",
|
"version": "4.2.2",
|
||||||
"resolved": "https://registry.npmjs.org/@types/crypto-js/-/crypto-js-4.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/@types/crypto-js/-/crypto-js-4.2.2.tgz",
|
||||||
"integrity": "sha512-FSPGd9+OcSok3RsM0UZ/9fcvMOXJ1ENE/ZbLfOPlBWj7BgXtEAM8VYfTtT760GiLbQIMoVozwVuisjvsVwqYWw==",
|
"integrity": "sha512-sDOLlVbHhXpAUAL0YHDUUwDZf3iN4Bwi4W6a0W0b+QcAezUbRtH4FVb+9J4h+XFPW7l/gQ9F8qC7P+Ec4k8QVQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@types/fs-extra": {
|
"node_modules/@types/fs-extra": {
|
||||||
@@ -370,9 +370,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "20.11.0",
|
"version": "20.11.17",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.0.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.17.tgz",
|
||||||
"integrity": "sha512-o9bjXmDNcF7GbM4CNQpmi+TutCgap/K3w1JyKgxAjqx41zp9qlIAVFi0IhCNsJcXolEqLWhbFbEeL0PvYm4pcQ==",
|
"integrity": "sha512-QmgQZGWu1Yw9TDyAP9ZzpFJKynYNeOvwMJmaxABfieQoVoiVOS6MN1WSpqpRcbeA5+RW82kraAVxCCJg+780Qw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"undici-types": "~5.26.4"
|
"undici-types": "~5.26.4"
|
||||||
@@ -728,9 +728,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/brighterscript": {
|
"node_modules/brighterscript": {
|
||||||
"version": "0.65.16",
|
"version": "0.65.22",
|
||||||
"resolved": "https://registry.npmjs.org/brighterscript/-/brighterscript-0.65.16.tgz",
|
"resolved": "https://registry.npmjs.org/brighterscript/-/brighterscript-0.65.22.tgz",
|
||||||
"integrity": "sha512-2RJMF8itkrPXtZ92JkJf3emvzcCl5ETXGVyPsdO/hMKbUGinEGMRFG07FR0bzjRotbALzsozGE/Hjzw412Sjww==",
|
"integrity": "sha512-rDSdO33xRnFGB9nr54awTUucpd4oZpZmDMvVUSAb6jmFU1jz+SYhwV9ezc8U5m3Kswap7uV+BmS1O69QZ9MuSw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@rokucommunity/bslib": "^0.1.1",
|
"@rokucommunity/bslib": "^0.1.1",
|
||||||
@@ -740,7 +740,6 @@
|
|||||||
"chevrotain": "^7.0.1",
|
"chevrotain": "^7.0.1",
|
||||||
"chokidar": "^3.5.1",
|
"chokidar": "^3.5.1",
|
||||||
"clear": "^0.1.0",
|
"clear": "^0.1.0",
|
||||||
"coveralls-next": "^4.2.0",
|
|
||||||
"cross-platform-clear-console": "^2.3.0",
|
"cross-platform-clear-console": "^2.3.0",
|
||||||
"debounce-promise": "^3.1.0",
|
"debounce-promise": "^3.1.0",
|
||||||
"eventemitter3": "^4.0.0",
|
"eventemitter3": "^4.0.0",
|
||||||
@@ -771,12 +770,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/brighterscript-formatter": {
|
"node_modules/brighterscript-formatter": {
|
||||||
"version": "1.6.37",
|
"version": "1.6.40",
|
||||||
"resolved": "https://registry.npmjs.org/brighterscript-formatter/-/brighterscript-formatter-1.6.37.tgz",
|
"resolved": "https://registry.npmjs.org/brighterscript-formatter/-/brighterscript-formatter-1.6.40.tgz",
|
||||||
"integrity": "sha512-jIlqRjPVIp2WwB9Pe0YwK4KU4G3WqhRsqRluuOFY1sTDVW0R/AKXMvCfTsu99L2W7CbpeWA4UjOPzl9JOqN5hw==",
|
"integrity": "sha512-cxvGGluNfxy6p3khtcMt/3AschwqEnERjLRIEt3XVU0R0l2QgwXelDp8ViqgnQ2hQYa8LnfnOiV1u7OCqbiZPA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"brighterscript": "^0.65.16",
|
"brighterscript": "^0.65.19",
|
||||||
"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",
|
||||||
@@ -1479,25 +1478,6 @@
|
|||||||
"integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==",
|
"integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/coveralls-next": {
|
|
||||||
"version": "4.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/coveralls-next/-/coveralls-next-4.2.0.tgz",
|
|
||||||
"integrity": "sha512-zg41a/4QDSASPtlV6gp+6owoU43U5CguxuPZR3nPZ26M5ZYdEK3MdUe7HwE+AnCZPkucudfhqqJZehCNkz2rYg==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"form-data": "4.0.0",
|
|
||||||
"js-yaml": "4.1.0",
|
|
||||||
"lcov-parse": "1.0.0",
|
|
||||||
"log-driver": "1.2.7",
|
|
||||||
"minimist": "1.2.7"
|
|
||||||
},
|
|
||||||
"bin": {
|
|
||||||
"coveralls": "bin/coveralls.js"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=14"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/create-require": {
|
"node_modules/create-require": {
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz",
|
||||||
@@ -1726,9 +1706,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/dotenv": {
|
"node_modules/dotenv": {
|
||||||
"version": "16.3.1",
|
"version": "16.4.1",
|
||||||
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.1.tgz",
|
||||||
"integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==",
|
"integrity": "sha512-CjA3y+Dr3FyFDOAMnxZEGtnW9KBR2M0JvvUtXNW+dYJL5ROWxP9DUHCwgFqpMk0OXCc0ljhaNTr2w/kutYIcHQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12"
|
"node": ">=12"
|
||||||
@@ -2103,20 +2083,6 @@
|
|||||||
"node": "*"
|
"node": "*"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/form-data": {
|
|
||||||
"version": "4.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
|
|
||||||
"integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"asynckit": "^0.4.0",
|
|
||||||
"combined-stream": "^1.0.8",
|
|
||||||
"mime-types": "^2.1.12"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">= 6"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/forwarded": {
|
"node_modules/forwarded": {
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
|
||||||
@@ -2745,18 +2711,6 @@
|
|||||||
"@pkgjs/parseargs": "^0.11.0"
|
"@pkgjs/parseargs": "^0.11.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/js-yaml": {
|
|
||||||
"version": "4.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
|
|
||||||
"integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"argparse": "^2.0.1"
|
|
||||||
},
|
|
||||||
"bin": {
|
|
||||||
"js-yaml": "bin/js-yaml.js"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/jsbn": {
|
"node_modules/jsbn": {
|
||||||
"version": "0.1.1",
|
"version": "0.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
|
||||||
@@ -2838,15 +2792,6 @@
|
|||||||
"setimmediate": "^1.0.5"
|
"setimmediate": "^1.0.5"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/lcov-parse": {
|
|
||||||
"version": "1.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/lcov-parse/-/lcov-parse-1.0.0.tgz",
|
|
||||||
"integrity": "sha512-aprLII/vPzuQvYZnDRU78Fns9I2Ag3gi4Ipga/hxnVMCZC8DnR2nI7XBqrPoywGfxqIx/DgarGvDJZAD3YBTgQ==",
|
|
||||||
"dev": true,
|
|
||||||
"bin": {
|
|
||||||
"lcov-parse": "bin/cli.js"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/leac": {
|
"node_modules/leac": {
|
||||||
"version": "0.6.0",
|
"version": "0.6.0",
|
||||||
"resolved": "https://registry.npmjs.org/leac/-/leac-0.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/leac/-/leac-0.6.0.tgz",
|
||||||
@@ -2940,15 +2885,6 @@
|
|||||||
"integrity": "sha512-hXt6Ul/5yWjfklSGvLQl8vM//l3FtyHZeuelpzK6mm99pNvN9yTDruNZPEJZD1oWrqo+izBmB7oUfWgcCX7s4Q==",
|
"integrity": "sha512-hXt6Ul/5yWjfklSGvLQl8vM//l3FtyHZeuelpzK6mm99pNvN9yTDruNZPEJZD1oWrqo+izBmB7oUfWgcCX7s4Q==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/log-driver": {
|
|
||||||
"version": "1.2.7",
|
|
||||||
"resolved": "https://registry.npmjs.org/log-driver/-/log-driver-1.2.7.tgz",
|
|
||||||
"integrity": "sha512-U7KCmLdqsGHBLeWqYlFA0V0Sl6P08EE1ZrmA9cxjUE0WVqT9qnyVDPz1kzpFEP0jdJuFnasWIfSd7fsaNXkpbg==",
|
|
||||||
"dev": true,
|
|
||||||
"engines": {
|
|
||||||
"node": ">=0.8.6"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/long": {
|
"node_modules/long": {
|
||||||
"version": "3.2.0",
|
"version": "3.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/long/-/long-3.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/long/-/long-3.2.0.tgz",
|
||||||
@@ -2980,9 +2916,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/mailparser": {
|
"node_modules/mailparser": {
|
||||||
"version": "3.6.6",
|
"version": "3.6.7",
|
||||||
"resolved": "https://registry.npmjs.org/mailparser/-/mailparser-3.6.6.tgz",
|
"resolved": "https://registry.npmjs.org/mailparser/-/mailparser-3.6.7.tgz",
|
||||||
"integrity": "sha512-noCjBl3FToxmqTP2fp7z17hQsiCroWNntfTd8O+UejOAF59xeN5WGZK27ilexXV2e2X/cbUhG3L8sfEKaz0/sw==",
|
"integrity": "sha512-/3x8HW70DNehw+3vdOPKdlLuxOHoWcGB5jfx5vJ5XUbY9/2jUJbrrhda5Si8Dj/3w08U0y5uGAkqs5+SPTPKoA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"encoding-japanese": "2.0.0",
|
"encoding-japanese": "2.0.0",
|
||||||
@@ -2992,7 +2928,7 @@
|
|||||||
"libmime": "5.2.1",
|
"libmime": "5.2.1",
|
||||||
"linkify-it": "5.0.0",
|
"linkify-it": "5.0.0",
|
||||||
"mailsplit": "5.4.0",
|
"mailsplit": "5.4.0",
|
||||||
"nodemailer": "6.9.8",
|
"nodemailer": "6.9.9",
|
||||||
"tlds": "1.248.0"
|
"tlds": "1.248.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -3140,15 +3076,6 @@
|
|||||||
"node": "*"
|
"node": "*"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/minimist": {
|
|
||||||
"version": "1.2.7",
|
|
||||||
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz",
|
|
||||||
"integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==",
|
|
||||||
"dev": true,
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/ljharb"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"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",
|
||||||
@@ -3200,9 +3127,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/nodemailer": {
|
"node_modules/nodemailer": {
|
||||||
"version": "6.9.8",
|
"version": "6.9.9",
|
||||||
"resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.9.8.tgz",
|
"resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.9.9.tgz",
|
||||||
"integrity": "sha512-cfrYUk16e67Ks051i4CntM9kshRYei1/o/Gi8K1d+R34OIs21xdFnW7Pt7EucmVKA0LKtqUGNcjMZ7ehjl49mQ==",
|
"integrity": "sha512-dexTll8zqQoVJEZPwQAKzxxtFn0qTnjdQTchoU6Re9BUUGBJiOy3YMn/0ShTW6J5M0dfQ1NeDeRTTl4oIWgQMA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.0.0"
|
"node": ">=6.0.0"
|
||||||
@@ -3994,9 +3921,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/rooibos-roku": {
|
"node_modules/rooibos-roku": {
|
||||||
"version": "5.10.0",
|
"version": "5.11.0",
|
||||||
"resolved": "https://registry.npmjs.org/rooibos-roku/-/rooibos-roku-5.10.0.tgz",
|
"resolved": "https://registry.npmjs.org/rooibos-roku/-/rooibos-roku-5.11.0.tgz",
|
||||||
"integrity": "sha512-Idiv3nWQOEr5V8z8oHcIovjcoBffgqRtTQ5B6K+x/cGAouKxyVJp0fsZ80xQvUul9IwHQ0XIPUYbNWCR3RQ3sA==",
|
"integrity": "sha512-qxTYwsyp6Ihb6B8tmFm+24DE/s2gMCxagvdABElGWgqL834M+kZtmwrQXvSrMkM+0gkmQfIDuw1M4v484gycYQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"source-map": "^0.7.3",
|
"source-map": "^0.7.3",
|
||||||
@@ -4110,9 +4037,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/semver": {
|
"node_modules/semver": {
|
||||||
"version": "7.5.4",
|
"version": "7.6.0",
|
||||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz",
|
"resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz",
|
||||||
"integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==",
|
"integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"lru-cache": "^6.0.0"
|
"lru-cache": "^6.0.0"
|
||||||
|
|||||||
+15
-12
@@ -1,30 +1,30 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet",
|
"name": "playlet",
|
||||||
"version": "0.19.1",
|
"version": "0.19.2",
|
||||||
"description": "Unofficial Youtube client for Roku",
|
"description": "Unofficial YouTube client for Roku",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rokucommunity/bslint": "^0.8.14",
|
"@rokucommunity/bslint": "^0.8.17",
|
||||||
"@types/crypto-js": "^4.2.1",
|
"@types/crypto-js": "^4.2.2",
|
||||||
"@types/fs-extra": "^11.0.4",
|
"@types/fs-extra": "^11.0.4",
|
||||||
"@types/node": "^20.11.0",
|
"@types/node": "^20.11.17",
|
||||||
"@types/xml2js": "^0.4.14",
|
"@types/xml2js": "^0.4.14",
|
||||||
"argparse": "^2.0.1",
|
"argparse": "^2.0.1",
|
||||||
"brighterscript": "0.65.16",
|
"brighterscript": "0.65.22",
|
||||||
"brighterscript-formatter": "^1.6.37",
|
"brighterscript-formatter": "^1.6.40",
|
||||||
"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.3.1",
|
"dotenv": "^16.4.1",
|
||||||
"express": "^4.18.2",
|
"express": "^4.18.2",
|
||||||
"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": "^1.1.8",
|
||||||
"json5": "^2.2.3",
|
"json5": "^2.2.3",
|
||||||
"mailparser": "^3.6.6",
|
"mailparser": "^3.6.7",
|
||||||
"roku-deploy": "^3.11.2",
|
"roku-deploy": "^3.11.2",
|
||||||
"rooibos-roku": "^5.10.0",
|
"rooibos-roku": "^5.11.0",
|
||||||
"semver": "^7.5.4",
|
"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.3.3",
|
||||||
@@ -65,6 +65,9 @@
|
|||||||
"generate-sponsorblock-config": "node tools/generate-sponsorblock-config.js",
|
"generate-sponsorblock-config": "node tools/generate-sponsorblock-config.js",
|
||||||
"update-rale-component": "cd tools/RALE && rm TrackerTask.xml && curl -o TrackerTask.zip https://devtools.web.roku.com/roku-advanced-layout-editor/app/TrackerTask.zip && unzip TrackerTask.zip && rm TrackerTask.zip",
|
"update-rale-component": "cd tools/RALE && rm TrackerTask.xml && curl -o TrackerTask.zip https://devtools.web.roku.com/roku-advanced-layout-editor/app/TrackerTask.zip && unzip TrackerTask.zip && rm TrackerTask.zip",
|
||||||
"postinstall": "cd playlet-lib && npm install && cd ../playlet-app && npm install && cd ../playlet-web && npm install",
|
"postinstall": "cd playlet-lib && npm install && cd ../playlet-app && npm install && cd ../playlet-web && npm install",
|
||||||
"update-deps": "npx npm-check-updates -u && cd playlet-app && npx npm-check-updates -u && cd ../playlet-lib && npx npm-check-updates -u && cd ../playlet-web && npx npm-check-updates -u"
|
"update-deps": "npx npm-check-updates -u && cd playlet-app && npx npm-check-updates -u && cd ../playlet-lib && npx npm-check-updates -u && cd ../playlet-web && npx npm-check-updates -u",
|
||||||
|
"registry:write": "node tools/registry.js --input registry.json",
|
||||||
|
"registry:read": "node tools/registry.js --output registry.json",
|
||||||
|
"registry:clear": "node tools/registry.js --clear"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-app",
|
"name": "playlet-app",
|
||||||
"version": "0.19.1",
|
"version": "0.19.2",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet-app",
|
"name": "playlet-app",
|
||||||
"version": "0.19.1"
|
"version": "0.19.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-app",
|
"name": "playlet-app",
|
||||||
"version": "0.19.1",
|
"version": "0.19.2",
|
||||||
"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",
|
||||||
"prebuild:dev": "npm run prebuild",
|
"prebuild:dev": "npm run prebuild",
|
||||||
|
|||||||
@@ -109,5 +109,5 @@ function ShowPlayletLibLoadErrorDialog()
|
|||||||
"If the problem persist, contact Playlet authors."
|
"If the problem persist, contact Playlet authors."
|
||||||
]
|
]
|
||||||
|
|
||||||
Dialog.ShowError(message, bulletText, bottomText)
|
DialogShowError(message, bulletText, bottomText)
|
||||||
end function
|
end function
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 76 KiB |
Binary file not shown.
@@ -3,7 +3,7 @@ title=Playlet
|
|||||||
# Do not update version manually, it is auto updated from package.json
|
# Do not update version manually, it is auto updated from package.json
|
||||||
major_version=0
|
major_version=0
|
||||||
minor_version=19
|
minor_version=19
|
||||||
build_version=00001
|
build_version=00002
|
||||||
|
|
||||||
ui_resolutions=hd
|
ui_resolutions=hd
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
namespace Dialog
|
function DialogShowError(message as object, bulletText as object, bottomMessage as object)
|
||||||
|
|
||||||
function ShowError(message as object, bulletText as object, bottomMessage as object)
|
|
||||||
' Note: dialog can be null since StandardMessageDialog is only available on 10.0 and later
|
' Note: dialog can be null since StandardMessageDialog is only available on 10.0 and later
|
||||||
msgDialog = CreateObject("roSGNode", "StandardMessageDialog")
|
msgDialog = CreateObject("roSGNode", "StandardMessageDialog")
|
||||||
SetPalette(msgDialog)
|
DialogSetPalette(msgDialog)
|
||||||
msgDialog.message = message
|
msgDialog.message = message
|
||||||
msgDialog.bulletText = bulletText
|
msgDialog.bulletText = bulletText
|
||||||
msgDialog.bottomMessage = bottomMessage
|
msgDialog.bottomMessage = bottomMessage
|
||||||
@@ -11,14 +9,14 @@ namespace Dialog
|
|||||||
msgDialog.buttons = ["Exit"]
|
msgDialog.buttons = ["Exit"]
|
||||||
|
|
||||||
' bs:disable-next-line NO_OBSERVE_STRING_CALLBACK
|
' bs:disable-next-line NO_OBSERVE_STRING_CALLBACK
|
||||||
msgDialog.observeField("buttonSelected", "OnButtonSelected")
|
msgDialog.observeField("buttonSelected", "DialogOnButtonSelected")
|
||||||
' bs:disable-next-line NO_OBSERVE_STRING_CALLBACK
|
' bs:disable-next-line NO_OBSERVE_STRING_CALLBACK
|
||||||
msgDialog.observeField("wasClosed", "OnDialogClosed")
|
msgDialog.observeField("wasClosed", "DialogOnClosed")
|
||||||
|
|
||||||
m.top.getScene().dialog = msgDialog
|
m.top.getScene().dialog = msgDialog
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function SetPalette(msgDialog as object)
|
function DialogSetPalette(msgDialog as object)
|
||||||
palette = createObject("roSGNode", "RSGPalette")
|
palette = createObject("roSGNode", "RSGPalette")
|
||||||
palette.colors = {
|
palette.colors = {
|
||||||
DialogBackgroundColor: "#242424FF"
|
DialogBackgroundColor: "#242424FF"
|
||||||
@@ -31,15 +29,10 @@ namespace Dialog
|
|||||||
msgDialog.palette = palette
|
msgDialog.palette = palette
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OnButtonSelected()
|
function DialogOnButtonSelected()
|
||||||
m.top.getScene().dialog.close = true
|
m.top.getScene().dialog.close = true
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OnDialogClosed()
|
function DialogOnClosed()
|
||||||
' TODO:P1 throw an exception to cause a crash report to be generated
|
|
||||||
' Should include which playlet lib failed to load
|
|
||||||
m.top.getScene().exitChannel = true
|
m.top.getScene().exitChannel = true
|
||||||
end function
|
end function
|
||||||
|
|
||||||
end namespace
|
|
||||||
|
|
||||||
@@ -45,7 +45,7 @@ function Main(args as object) as void
|
|||||||
input = CreateObject("roInput")
|
input = CreateObject("roInput")
|
||||||
input.setMessagePort(port)
|
input.setMessagePort(port)
|
||||||
|
|
||||||
' TODO:P1 follow up on bug where roSystemLog does not fire for a video player in ComponentLibrary
|
' TODO:P2 follow up on bug where roSystemLog does not fire for a video player in ComponentLibrary
|
||||||
' https://community.roku.com/t5/Roku-Developer-Program/BUG-roSystemLog-not-firing-with-ComponentLibrary/td-p/906075
|
' https://community.roku.com/t5/Roku-Developer-Program/BUG-roSystemLog-not-firing-with-ComponentLibrary/td-p/906075
|
||||||
systemLog = CreateObject("roSystemLog")
|
systemLog = CreateObject("roSystemLog")
|
||||||
systemLog.SetMessagePort(port)
|
systemLog.SetMessagePort(port)
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-lib",
|
"name": "playlet-lib",
|
||||||
"version": "0.19.1",
|
"version": "0.19.2",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet-lib",
|
"name": "playlet-lib",
|
||||||
"version": "0.19.1"
|
"version": "0.19.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-lib",
|
"name": "playlet-lib",
|
||||||
"version": "0.19.1",
|
"version": "0.19.2",
|
||||||
"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",
|
||||||
"prebuild:dev": "npm run prebuild",
|
"prebuild:dev": "npm run prebuild",
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
translation="[115,20]"
|
translation="[115,20]"
|
||||||
width="104"
|
width="104"
|
||||||
height="104"
|
height="104"
|
||||||
uri="pkg:/images/circle-mask-500.png">
|
uri="pkg:/images/white-circle.png">
|
||||||
|
|
||||||
<CirclePoster
|
<CirclePoster
|
||||||
id="thumbnail"
|
id="thumbnail"
|
||||||
|
|||||||
@@ -10,13 +10,13 @@
|
|||||||
<field id="failedBitmapUri" type="uri" alias="Poster.failedBitmapUri" />
|
<field id="failedBitmapUri" type="uri" alias="Poster.failedBitmapUri" />
|
||||||
<field id="loadStatus" type="string" alias="Poster.loadStatus" />
|
<field id="loadStatus" type="string" alias="Poster.loadStatus" />
|
||||||
|
|
||||||
<field id="maskUri" type="uri" value="pkg:/images/circle-mask-500.png" alias="MaskGroup.maskuri" />
|
<field id="maskUri" type="uri" value="pkg:/images/white-circle.png" alias="MaskGroup.maskuri" />
|
||||||
<field id="maskSize" type="vector2d" alias="MaskGroup.maskSize" />
|
<field id="maskSize" type="vector2d" alias="MaskGroup.maskSize" />
|
||||||
</interface>
|
</interface>
|
||||||
<children>
|
<children>
|
||||||
<MaskGroup
|
<MaskGroup
|
||||||
id="MaskGroup"
|
id="MaskGroup"
|
||||||
maskuri="pkg:/images/circle-mask-500.png">
|
maskuri="pkg:/images/white-circle.png">
|
||||||
<Poster
|
<Poster
|
||||||
id="Poster" />
|
id="Poster" />
|
||||||
</MaskGroup>
|
</MaskGroup>
|
||||||
|
|||||||
@@ -163,6 +163,17 @@ function OnkeyEvent(key as string, press as boolean) as boolean
|
|||||||
Close()
|
Close()
|
||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
if key = "up"
|
||||||
|
m.optionsList.jumpToItem = m.optionsList.content.getChildCount() - 1
|
||||||
|
return true
|
||||||
|
end if
|
||||||
|
|
||||||
|
if key = "down"
|
||||||
|
m.optionsList.jumpToItem = 0
|
||||||
|
return true
|
||||||
|
end if
|
||||||
|
|
||||||
return false
|
return false
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<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." />
|
||||||
</StdDlgContentArea>
|
</StdDlgContentArea>
|
||||||
<StdDlgButtonArea id="buttonArea">
|
<StdDlgButtonArea id="buttonArea">
|
||||||
<StdDlgButton text="OK" />
|
<StdDlgButton text="OK" />
|
||||||
|
|||||||
@@ -15,7 +15,11 @@ function Init()
|
|||||||
|
|
||||||
m.port = port
|
m.port = port
|
||||||
|
|
||||||
StartLogger(m.top)
|
#if DEBUG
|
||||||
|
StartLogger(m.top, LogLevel.Debug)
|
||||||
|
#else
|
||||||
|
StartLogger(m.top, LogLevel.Info)
|
||||||
|
#end if
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function StartLogger(logger as object, logLevel = LogLevel.Info as LogLevel) as void
|
function StartLogger(logger as object, logLevel = LogLevel.Info as LogLevel) as void
|
||||||
|
|||||||
@@ -24,4 +24,5 @@ end function
|
|||||||
function StartWebServer()
|
function StartWebServer()
|
||||||
m.webServer = m.top.findNode("WebServer")
|
m.webServer = m.top.findNode("WebServer")
|
||||||
m.webServer.callfunc("StartServer", invalid)
|
m.webServer.callfunc("StartServer", invalid)
|
||||||
end function'//# sourceMappingURL=./MainScene.bs.map
|
end function
|
||||||
|
'//# sourceMappingURL=./MainScene.brs.map
|
||||||
@@ -8,6 +8,7 @@
|
|||||||
</interface>
|
</interface>
|
||||||
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/AutoBind.part.brs" />
|
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/AutoBind.part.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/components/MainScene_bindings.brs" />
|
<script type="text/brightscript" uri="pkg:/components/MainScene_bindings.brs" />
|
||||||
|
<script type="text/brightscript" uri="pkg:/source/utils/NodePathUtils.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/components/MainScene.brs" />
|
<script type="text/brightscript" uri="pkg:/components/MainScene.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/source/utils/LoadingScreen.brs" />
|
<script type="text/brightscript" uri="pkg:/source/utils/LoadingScreen.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/OnNodeReadyNoOp.brs" />
|
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/OnNodeReadyNoOp.brs" />
|
||||||
|
|||||||
@@ -36,4 +36,5 @@ function InitializeBindings()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
end function'//# sourceMappingURL=./MainScene_bindings.bs.map
|
end function
|
||||||
|
'//# sourceMappingURL=./MainScene_bindings.brs.map
|
||||||
@@ -3,6 +3,7 @@
|
|||||||
<field id="content" type="node" onChange="OnContentSet" />
|
<field id="content" type="node" onChange="OnContentSet" />
|
||||||
<field id="thumbnail" type="uri" alias="thumbnailPoster.uri" />
|
<field id="thumbnail" type="uri" alias="thumbnailPoster.uri" />
|
||||||
<field id="line1" type="string" alias="line1Label.text" />
|
<field id="line1" type="string" alias="line1Label.text" />
|
||||||
|
<field id="hintVisible" type="boolean" alias="hintLabel.visible" />
|
||||||
<field id="show" type="boolean" alwaysNotify="true" onChange="OnShow" />
|
<field id="show" type="boolean" alwaysNotify="true" onChange="OnShow" />
|
||||||
</interface>
|
</interface>
|
||||||
<children>
|
<children>
|
||||||
@@ -41,6 +42,7 @@
|
|||||||
wrap="true" />
|
wrap="true" />
|
||||||
</LayoutGroup>
|
</LayoutGroup>
|
||||||
<Label
|
<Label
|
||||||
|
id="hintLabel"
|
||||||
width="480"
|
width="480"
|
||||||
font="font:SmallestSystemFont"
|
font="font:SmallestSystemFont"
|
||||||
color="0x262626ff"
|
color="0x262626ff"
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
namespace PlayQueue
|
namespace PlayQueue
|
||||||
const NOTIFICATION_NODE_ID = "PlayQueueNotification"
|
const NOTIFICATION_NODE_ID = "PlayQueueNotification"
|
||||||
|
|
||||||
function ShowNotifcation(notifications as object, contentNode as object) as void
|
function ShowNotifcation(notifications as object, contentNode as object, hintVisible as boolean) as void
|
||||||
notification = notifications.findNode(NOTIFICATION_NODE_ID)
|
notification = notifications.findNode(NOTIFICATION_NODE_ID)
|
||||||
if notification = invalid
|
if notification = invalid
|
||||||
notification = notifications.createChild("PlayQueueNotification")
|
notification = notifications.createChild("PlayQueueNotification")
|
||||||
notification.id = NOTIFICATION_NODE_ID
|
notification.id = NOTIFICATION_NODE_ID
|
||||||
end if
|
end if
|
||||||
notification.content = contentNode
|
notification.content = contentNode
|
||||||
|
notification.hintVisible = hintVisible
|
||||||
notification.show = true
|
notification.show = true
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,8 @@ function AddToQueue(node as object)
|
|||||||
m.content.appendChild(node)
|
m.content.appendChild(node)
|
||||||
queueNotifications = m.top.preferences["misc.queue_notifications"]
|
queueNotifications = m.top.preferences["misc.queue_notifications"]
|
||||||
if queueNotifications
|
if queueNotifications
|
||||||
PlayQueue.ShowNotifcation(m.top.notifications, node)
|
hintVisible = VideoUtils.GetVideoPlayer() = invalid or not VideoUtils.IsVideoPlayerFullScreen()
|
||||||
|
PlayQueue.ShowNotifcation(m.top.notifications, node, hintVisible)
|
||||||
end if
|
end if
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
|||||||
@@ -252,7 +252,7 @@ function OnkeyEvent(key as string, press as boolean) as boolean
|
|||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
if key = "options" and press
|
if key = "options"
|
||||||
' A pass-through to the app controller, so it can toggle picture-in-picture
|
' A pass-through to the app controller, so it can toggle picture-in-picture
|
||||||
return false
|
return false
|
||||||
end if
|
end if
|
||||||
|
|||||||
+9
-3
@@ -1,5 +1,6 @@
|
|||||||
import "pkg:/components/Navigation/Navigation.bs"
|
import "pkg:/components/Navigation/Navigation.bs"
|
||||||
import "pkg:/components/parts/AutoBind/OnNodeReadyNoOp.bs"
|
import "pkg:/components/parts/AutoBind/OnNodeReadyNoOp.bs"
|
||||||
|
import "pkg:/source/utils/Logging.bs"
|
||||||
import "pkg:/source/utils/MathUtils.bs"
|
import "pkg:/source/utils/MathUtils.bs"
|
||||||
import "pkg:/source/utils/Types.bs"
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
@@ -49,7 +50,7 @@ function OnkeyEvent(key as string, press as boolean) as boolean
|
|||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
if key = "options" and press
|
if key = "options"
|
||||||
' A pass-through to the app controller, so it can toggle picture-in-picture
|
' A pass-through to the app controller, so it can toggle picture-in-picture
|
||||||
return false
|
return false
|
||||||
end if
|
end if
|
||||||
@@ -69,9 +70,14 @@ function OnValueChange()
|
|||||||
nodes = []
|
nodes = []
|
||||||
checkedState = []
|
checkedState = []
|
||||||
for each item in value
|
for each item in value
|
||||||
|
feed = m.homeLayout[item.id]
|
||||||
|
if feed = invalid
|
||||||
|
LogWarn("unknown feed id:", item.id)
|
||||||
|
continue for
|
||||||
|
end if
|
||||||
node = CreateObject("roSGNode", "ContentNode")
|
node = CreateObject("roSGNode", "ContentNode")
|
||||||
node.id = item.id
|
node.id = feed.id
|
||||||
node.title = m.homeLayout[item.id].title
|
node.title = feed.title
|
||||||
nodes.push(node)
|
nodes.push(node)
|
||||||
checkedState.push(item.enabled)
|
checkedState.push(item.enabled)
|
||||||
end for
|
end for
|
||||||
|
|||||||
+1
-1
@@ -50,7 +50,7 @@ function OnkeyEvent(key as string, press as boolean) as boolean
|
|||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
if key = "options" and press
|
if key = "options"
|
||||||
' A pass-through to the app controller, so it can toggle picture-in-picture
|
' A pass-through to the app controller, so it can toggle picture-in-picture
|
||||||
return false
|
return false
|
||||||
end if
|
end if
|
||||||
|
|||||||
+1
-1
@@ -31,7 +31,7 @@ function OnkeyEvent(key as string, press as boolean) as boolean
|
|||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
if key = "options" and press
|
if key = "options"
|
||||||
' A pass-through to the app controller, so it can toggle picture-in-picture
|
' A pass-through to the app controller, so it can toggle picture-in-picture
|
||||||
return false
|
return false
|
||||||
end if
|
end if
|
||||||
|
|||||||
+7
-18
@@ -1,22 +1,11 @@
|
|||||||
function Init()
|
|
||||||
m.nameLabel = m.top.findNode("nameLabel")
|
|
||||||
m.versionLabel = m.top.findNode("versionLabel")
|
|
||||||
m.usersLabel = m.top.findNode("usersLabel")
|
|
||||||
m.signupLabel = m.top.findNode("signupLabel")
|
|
||||||
m.locationLabel = m.top.findNode("locationLabel")
|
|
||||||
m.flagEmoji = m.top.findNode("flagEmoji")
|
|
||||||
m.healthLabel = m.top.findNode("healthLabel")
|
|
||||||
|
|
||||||
end function
|
|
||||||
|
|
||||||
function OnContentSet() as void
|
function OnContentSet() as void
|
||||||
content = m.top.itemContent
|
content = m.top.itemContent
|
||||||
|
|
||||||
m.nameLabel.text = content.name
|
m.top.name = content.name
|
||||||
m.versionLabel.text = content.version
|
m.top.version = content.version
|
||||||
m.usersLabel.text = content.users
|
m.top.users = content.users
|
||||||
m.signupLabel.text = content.signup
|
m.top.signup = content.signup
|
||||||
m.locationLabel.text = content.location
|
m.top.location = content.location
|
||||||
m.flagEmoji.uri = content.flag
|
m.top.flag = content.flag
|
||||||
m.healthLabel.text = content.health
|
m.top.health = content.health
|
||||||
end function
|
end function
|
||||||
+7
@@ -1,6 +1,13 @@
|
|||||||
<component name="InvidiousPublicInstancesListItem" extends="Group">
|
<component name="InvidiousPublicInstancesListItem" extends="Group">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="itemContent" type="node" onChange="OnContentSet" />
|
<field id="itemContent" type="node" onChange="OnContentSet" />
|
||||||
|
<field id="name" type="string" alias="nameLabel.text" />
|
||||||
|
<field id="version" type="string" alias="versionLabel.text" />
|
||||||
|
<field id="users" type="string" alias="usersLabel.text" />
|
||||||
|
<field id="signup" type="string" alias="signupLabel.text" />
|
||||||
|
<field id="location" type="string" alias="locationLabel.text" />
|
||||||
|
<field id="flag" type="string" alias="flagEmoji.uri" />
|
||||||
|
<field id="health" type="string" alias="healthLabel.text" />
|
||||||
</interface>
|
</interface>
|
||||||
<children>
|
<children>
|
||||||
<Label
|
<Label
|
||||||
|
|||||||
@@ -0,0 +1,71 @@
|
|||||||
|
import "pkg:/components/Navigation/Navigation.bs"
|
||||||
|
import "pkg:/source/utils/FocusManagement.bs"
|
||||||
|
import "pkg:/source/utils/MathUtils.bs"
|
||||||
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
|
function Init()
|
||||||
|
m.top.focusable = true
|
||||||
|
m.top.itemSpacings = [10]
|
||||||
|
|
||||||
|
m.minusButton = m.top.findNode("MinusButton")
|
||||||
|
m.numberButton = m.top.findNode("NumberButton")
|
||||||
|
m.plusButton = m.top.findNode("PlusButton")
|
||||||
|
|
||||||
|
m.minusButton.observeFieldScoped("buttonSelected", FuncName(OnMinusSelected))
|
||||||
|
m.plusButton.observeFieldScoped("buttonSelected", FuncName(OnPlusSelected))
|
||||||
|
|
||||||
|
SetNavigation(m.minusButton, "right", m.numberButton)
|
||||||
|
SetNavigation(m.numberButton, "left", m.minusButton)
|
||||||
|
SetNavigation(m.numberButton, "right", m.plusButton)
|
||||||
|
SetNavigation(m.plusButton, "left", m.numberButton)
|
||||||
|
end function
|
||||||
|
|
||||||
|
function BindPreference(preferences as object, key as string)
|
||||||
|
if m.preferences <> invalid and m.key <> invalid
|
||||||
|
m.preferences.unobserveFieldScoped(m.key)
|
||||||
|
end if
|
||||||
|
|
||||||
|
m.preferences = preferences
|
||||||
|
m.key = key
|
||||||
|
|
||||||
|
if preferences <> invalid and key <> invalid
|
||||||
|
preferences.observeFieldScoped(key, FuncName(OnPreferenceChange))
|
||||||
|
OnPreferenceChange()
|
||||||
|
end if
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnPreferenceChange()
|
||||||
|
m.top.value = MathUtils.Max(MathUtils.Min(m.preferences[m.key], m.top.max), m.top.min)
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnValueChange() as void
|
||||||
|
m.numberButton.text = `${m.top.value}`
|
||||||
|
if m.preferences = invalid or m.key = invalid
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
|
||||||
|
m.preferences[m.key] = m.top.value
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnFocusChange() as void
|
||||||
|
if not m.top.focus
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
|
||||||
|
NodeSetFocus(m.numberButton, true)
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnkeyEvent(key as string, press as boolean) as boolean
|
||||||
|
if NavigationKeyHandler(key, press).handled
|
||||||
|
return true
|
||||||
|
end if
|
||||||
|
return false
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnMinusSelected()
|
||||||
|
m.top.value = MathUtils.Max(m.top.value - 1, m.top.min)
|
||||||
|
end function
|
||||||
|
|
||||||
|
function OnPlusSelected()
|
||||||
|
m.top.value = MathUtils.Min(m.top.value + 1, m.top.max)
|
||||||
|
end function
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
<component name="NumberControl" extends="LayoutGroup" includes="Focus">
|
||||||
|
<interface>
|
||||||
|
<field id="displayText" type="string" alias="DisplayTextLabel.text" />
|
||||||
|
<field id="description" type="string" alias="DescriptionLabel.text" />
|
||||||
|
<field id="min" type="integer" value="-999999" />
|
||||||
|
<field id="max" type="integer" value="999999" />
|
||||||
|
<field id="value" type="integer" onChange="OnValueChange" />
|
||||||
|
<function name="BindPreference" />
|
||||||
|
</interface>
|
||||||
|
<children>
|
||||||
|
<Label id="DisplayTextLabel" width="450" />
|
||||||
|
<Label id="DescriptionLabel"
|
||||||
|
width="450"
|
||||||
|
color="0xb4b4b4ff"
|
||||||
|
wrap="true">
|
||||||
|
<Font role="font" uri="font:SystemFontFile" size="18" />
|
||||||
|
</Label>
|
||||||
|
<LayoutGroup layoutDirection="horiz">
|
||||||
|
<Button
|
||||||
|
id="MinusButton"
|
||||||
|
iconUri=""
|
||||||
|
focusedIconUri=""
|
||||||
|
minWidth="64"
|
||||||
|
maxWidth="64"
|
||||||
|
showFocusFootprint="true"
|
||||||
|
text="-" />
|
||||||
|
<Button
|
||||||
|
id="NumberButton"
|
||||||
|
iconUri=""
|
||||||
|
focusedIconUri=""
|
||||||
|
minWidth="150"
|
||||||
|
showFocusFootprint="true"
|
||||||
|
text="0" />
|
||||||
|
<Button
|
||||||
|
id="PlusButton"
|
||||||
|
iconUri=""
|
||||||
|
focusedIconUri=""
|
||||||
|
minWidth="64"
|
||||||
|
maxWidth="64"
|
||||||
|
showFocusFootprint="true"
|
||||||
|
text="+" />
|
||||||
|
</LayoutGroup>
|
||||||
|
</children>
|
||||||
|
</component>
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<component name="SettingCategory" extends="Button">
|
<component name="SettingCategory" extends="Button">
|
||||||
<interface>
|
<interface>
|
||||||
<field id="padding" type="integer" value="10" onChange="Resize" />
|
<field id="padding" type="integer" value="15" onChange="Resize" />
|
||||||
<field id="minimumWidth" type="integer" value="280" onChange="Resize" />
|
<field id="minimumWidth" type="integer" value="280" onChange="Resize" />
|
||||||
<field id="displayText" type="string" alias="DisplayTextLabel.text" onChange="Resize" />
|
<field id="displayText" type="string" alias="DisplayTextLabel.text" onChange="Resize" />
|
||||||
<field id="description" type="string" alias="DescriptionLabel.text" onChange="Resize" />
|
<field id="description" type="string" alias="DescriptionLabel.text" onChange="Resize" />
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import "pkg:/components/Navigation/Navigation.bs"
|
import "pkg:/components/Navigation/Navigation.bs"
|
||||||
import "pkg:/components/Navigation/ScrollTo.bs"
|
import "pkg:/components/Navigation/ScrollTo.bs"
|
||||||
import "pkg:/source/utils/FocusManagement.bs"
|
import "pkg:/source/utils/FocusManagement.bs"
|
||||||
|
import "pkg:/source/utils/Types.bs"
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
m.top.focusable = true
|
m.top.focusable = true
|
||||||
@@ -9,9 +10,9 @@ function Init()
|
|||||||
m.scrollAnimationInterpolator = m.scrollAnimation.findNode("scrollAnimationInterpolator")
|
m.scrollAnimationInterpolator = m.scrollAnimation.findNode("scrollAnimationInterpolator")
|
||||||
m.viewport = {
|
m.viewport = {
|
||||||
x: 150
|
x: 150
|
||||||
y: 96
|
y: 50
|
||||||
width: 1920
|
width: 1920
|
||||||
height: 550
|
height: 620
|
||||||
}
|
}
|
||||||
end function
|
end function
|
||||||
|
|
||||||
@@ -126,6 +127,8 @@ function CreateControl(item as object, container as object, startX as integer, s
|
|||||||
control = CreateRadioControl(item, container)
|
control = CreateRadioControl(item, container)
|
||||||
else if item.type = "string"
|
else if item.type = "string"
|
||||||
control = CreateStringControl(item, container)
|
control = CreateStringControl(item, container)
|
||||||
|
else if item.type = "number"
|
||||||
|
control = CreateNumberComponent(item, container)
|
||||||
else if item.rokuComponent <> invalid
|
else if item.rokuComponent <> invalid
|
||||||
control = CreateRokuComponent(item, container)
|
control = CreateRokuComponent(item, container)
|
||||||
end if
|
end if
|
||||||
@@ -169,6 +172,19 @@ function CreateStringControl(item as object, container as object) as object
|
|||||||
return node
|
return node
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
function CreateNumberComponent(item as object, container as object) as object
|
||||||
|
node = container.createChild("NumberControl")
|
||||||
|
node.displayText = item.displayText
|
||||||
|
node.description = item.description
|
||||||
|
if IsInt(item.min)
|
||||||
|
node.min = item.min
|
||||||
|
end if
|
||||||
|
if IsInt(item.max)
|
||||||
|
node.max = item.max
|
||||||
|
end if
|
||||||
|
return node
|
||||||
|
end function
|
||||||
|
|
||||||
function CreateRokuComponent(item as object, container as object) as object
|
function CreateRokuComponent(item as object, container as object) as object
|
||||||
node = container.createChild(item.rokuComponent)
|
node = container.createChild(item.rokuComponent)
|
||||||
if node.hasField("displayText")
|
if node.hasField("displayText")
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ function GetLatestPlayletLibVersionFromGithubReleases() as string
|
|||||||
if response.StatusCode() = 200
|
if response.StatusCode() = 200
|
||||||
headers = response.Headers()
|
headers = response.Headers()
|
||||||
if headers.location <> invalid
|
if headers.location <> invalid
|
||||||
regex = CreateObject("roRegex", "/v?(\d+\.\d+\.\d+)", "")
|
regex = /\/v?(\d+\.\d+\.\d+)/
|
||||||
match = regex.match(headers.location)
|
match = regex.match(headers.location)
|
||||||
if match.Count() = 2
|
if match.Count() = 2
|
||||||
return match[1]
|
return match[1]
|
||||||
|
|||||||
@@ -8,8 +8,28 @@ class DashManifest
|
|||||||
public invidiousInstance as dynamic
|
public invidiousInstance as dynamic
|
||||||
|
|
||||||
function new(invidiousInstance as string)
|
function new(invidiousInstance as string)
|
||||||
m.utils = new Http.Utils()
|
|
||||||
m.invidiousInstance = invidiousInstance
|
m.invidiousInstance = invidiousInstance
|
||||||
|
|
||||||
|
m.utils = new Http.Utils()
|
||||||
|
m.urlRegex = /https?:\/\/\S+(\/\S+)/i
|
||||||
|
|
||||||
|
' https://github.com/LuanRT/YouTube.js/blob/6082b4a52ee07a622735e6e9128a0531a5ae3bfb/src/utils/StreamingInfo.ts#L332-L349
|
||||||
|
m.colorInfo = {
|
||||||
|
primaries: {
|
||||||
|
"COLOR_PRIMARIES_BT709": "1"
|
||||||
|
"COLOR_PRIMARIES_BT2020": "9"
|
||||||
|
}
|
||||||
|
transferCharacteristics: {
|
||||||
|
"COLOR_TRANSFER_CHARACTERISTICS_BT709": "1"
|
||||||
|
"COLOR_TRANSFER_CHARACTERISTICS_BT2020_10": "14"
|
||||||
|
"COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084": "16"
|
||||||
|
"COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67": "18"
|
||||||
|
}
|
||||||
|
matrixCoefficients: {
|
||||||
|
"COLOR_MATRIX_COEFFICIENTS_BT709": "1"
|
||||||
|
"COLOR_MATRIX_COEFFICIENTS_BT2020_NCL": "14"
|
||||||
|
}
|
||||||
|
}
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function fromVideoMetadata(metadata as object, local as boolean) as string
|
function fromVideoMetadata(metadata as object, local as boolean) as string
|
||||||
@@ -17,10 +37,8 @@ class DashManifest
|
|||||||
adaptiveFormats.Append (metadata.adaptiveFormats)
|
adaptiveFormats.Append (metadata.adaptiveFormats)
|
||||||
|
|
||||||
if local
|
if local
|
||||||
urlRegex = CreateObject("roRegex", "https?:\/\/\S+(\/\S+)", "i")
|
|
||||||
|
|
||||||
for i = 0 to adaptiveFormats.Count() - 1
|
for i = 0 to adaptiveFormats.Count() - 1
|
||||||
adaptiveFormats[i].url = urlRegex.replace(adaptiveFormats[i].url, m.invidiousInstance + "\1")
|
adaptiveFormats[i].url = m.urlRegex.replace(adaptiveFormats[i].url, m.invidiousInstance + "\1")
|
||||||
end for
|
end for
|
||||||
end if
|
end if
|
||||||
|
|
||||||
@@ -55,11 +73,10 @@ class DashManifest
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
if xml.Node("AdaptationSet", adaptationSetAttributes)
|
if xml.Node("AdaptationSet", adaptationSetAttributes)
|
||||||
xml.Node("Role", {
|
xml.EmptyNode("Role", {
|
||||||
"schemeIdUri": "urn:mpeg:dash:role:2011"
|
"schemeIdUri": "urn:mpeg:dash:role:2011"
|
||||||
"value": audioSet.acont = "original" ? "main" : "alternate"
|
"value": audioSet.acont = "original" ? "main" : "alternate"
|
||||||
})
|
})
|
||||||
xml.End()
|
|
||||||
|
|
||||||
for i = 0 to audioStreams.Count() - 1
|
for i = 0 to audioStreams.Count() - 1
|
||||||
stream = audioStreams[i]
|
stream = audioStreams[i]
|
||||||
@@ -82,31 +99,23 @@ class DashManifest
|
|||||||
"bandwidth": stream.bitrate
|
"bandwidth": stream.bitrate
|
||||||
})
|
})
|
||||||
|
|
||||||
xml.Node("AudioChannelConfiguration", {
|
xml.EmptyNode("AudioChannelConfiguration", {
|
||||||
"schemeIdUri": "urn:mpeg:dash:23003:3:audio_channel_configuration:2011"
|
"schemeIdUri": "urn:mpeg:dash:23003:3:audio_channel_configuration:2011"
|
||||||
"value": `${stream.audioChannels}`
|
"value": `${stream.audioChannels}`
|
||||||
})
|
})
|
||||||
xml.End()
|
|
||||||
|
|
||||||
if xml.Node("BaseURL")
|
xml.TextNode("BaseURL", stream.url)
|
||||||
xml.Text(stream.url)
|
|
||||||
xml.End()
|
if xml.Node("SegmentBase", { "indexRange": stream.index })
|
||||||
end if
|
xml.EmptyNode("Initialization", { "range": stream.init })
|
||||||
|
|
||||||
if xml.Node("SegmentBase", {
|
|
||||||
"indexRange": stream.index
|
|
||||||
})
|
|
||||||
if xml.Node("Initialization", {
|
|
||||||
"range": stream.init
|
|
||||||
})
|
|
||||||
xml.End()
|
|
||||||
end if
|
|
||||||
xml.End()
|
xml.End()
|
||||||
end if
|
end if
|
||||||
|
|
||||||
xml.End()
|
xml.End()
|
||||||
end if
|
end if
|
||||||
end for
|
end for
|
||||||
|
|
||||||
xml.End()
|
xml.End()
|
||||||
end if
|
end if
|
||||||
|
|
||||||
@@ -154,19 +163,15 @@ class DashManifest
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
if xml.Node("Representation", representationAttributes)
|
if xml.Node("Representation", representationAttributes)
|
||||||
|
m.AddColorInfo(stream, xml)
|
||||||
if xml.Node("BaseURL")
|
if xml.Node("BaseURL")
|
||||||
xml.Text(stream.url)
|
xml.Text(stream.url)
|
||||||
xml.End()
|
xml.End()
|
||||||
end if
|
end if
|
||||||
|
|
||||||
if xml.Node("SegmentBase", {
|
if xml.Node("SegmentBase", { "indexRange": stream.index })
|
||||||
"indexRange": stream.index
|
xml.EmptyNode("Initialization", { "range": stream.init })
|
||||||
})
|
|
||||||
if xml.Node("Initialization", {
|
|
||||||
"range": stream.init
|
|
||||||
})
|
|
||||||
xml.End()
|
|
||||||
end if
|
|
||||||
xml.End()
|
xml.End()
|
||||||
end if
|
end if
|
||||||
|
|
||||||
@@ -184,7 +189,7 @@ class DashManifest
|
|||||||
for each storyboard in storyboards
|
for each storyboard in storyboards
|
||||||
interval = ValidInt(storyboard.interval)
|
interval = ValidInt(storyboard.interval)
|
||||||
if interval = 0
|
if interval = 0
|
||||||
LogWarn("Invalid storyboard interval=0")
|
LogWarn("Invalid storyboard interval:", storyboard.interval)
|
||||||
continue for
|
continue for
|
||||||
end if
|
end if
|
||||||
|
|
||||||
@@ -211,7 +216,7 @@ class DashManifest
|
|||||||
|
|
||||||
intervalInSeconds = interval \ 1000
|
intervalInSeconds = interval \ 1000
|
||||||
|
|
||||||
' Youtube template uses the var $M for tile pages
|
' YouTube template uses the var $M for tile pages
|
||||||
' DASH-IF uses $Number$ in the SegmentTemplate
|
' DASH-IF uses $Number$ in the SegmentTemplate
|
||||||
' https://dashif.org/docs/DASH-IF-IOP-v4.3.pdf
|
' https://dashif.org/docs/DASH-IF-IOP-v4.3.pdf
|
||||||
url = templateUrl.replace("$M", "$Number$")
|
url = templateUrl.replace("$M", "$Number$")
|
||||||
@@ -230,12 +235,11 @@ class DashManifest
|
|||||||
"mimeType": "image/jpeg"
|
"mimeType": "image/jpeg"
|
||||||
"contentType": "image"
|
"contentType": "image"
|
||||||
})
|
})
|
||||||
xml.Node("SegmentTemplate", {
|
xml.EmptyNode("SegmentTemplate", {
|
||||||
"media": url
|
"media": url
|
||||||
"duration": duration
|
"duration": duration
|
||||||
"startNumber": 0
|
"startNumber": 0
|
||||||
})
|
})
|
||||||
xml.End()
|
|
||||||
|
|
||||||
if xml.Node("Representation", {
|
if xml.Node("Representation", {
|
||||||
"id": `thumbnails_${id}`
|
"id": `thumbnails_${id}`
|
||||||
@@ -244,11 +248,10 @@ class DashManifest
|
|||||||
"height": storyboardHeightInPixels
|
"height": storyboardHeightInPixels
|
||||||
})
|
})
|
||||||
|
|
||||||
xml.Node("EssentialProperty", {
|
xml.EmptyNode("EssentialProperty", {
|
||||||
"schemeIdUri": "http://dashif.org/guidelines/thumbnail_tile"
|
"schemeIdUri": "http://dashif.org/guidelines/thumbnail_tile"
|
||||||
"value": `${storyboardWidth}x${storyboardHeight}`
|
"value": `${storyboardWidth}x${storyboardHeight}`
|
||||||
})
|
})
|
||||||
xml.End()
|
|
||||||
|
|
||||||
xml.End()
|
xml.End()
|
||||||
end if
|
end if
|
||||||
@@ -371,4 +374,47 @@ class DashManifest
|
|||||||
end for
|
end for
|
||||||
return result
|
return result
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
function AddColorInfo(videoStream as object, xml as object) as void
|
||||||
|
if videoStream.colorInfo = invalid
|
||||||
|
return
|
||||||
|
end if
|
||||||
|
|
||||||
|
if videoStream.colorInfo.primaries <> invalid
|
||||||
|
primaries = m.colorInfo.primaries[videoStream.colorInfo.primaries]
|
||||||
|
if primaries <> invalid
|
||||||
|
xml.EmptyNode("EssentialProperty", {
|
||||||
|
"schemeIdUri": "urn:mpeg:mpegB:cicp:ColourPrimaries"
|
||||||
|
"value": primaries
|
||||||
|
})
|
||||||
|
else
|
||||||
|
LogWarn("Unknown colorInfo.primaries:", videoStream.colorInfo.primaries)
|
||||||
|
end if
|
||||||
|
end if
|
||||||
|
|
||||||
|
if videoStream.colorInfo.transferCharacteristics <> invalid
|
||||||
|
transferCharacteristics = m.colorInfo.transferCharacteristics[videoStream.colorInfo.transferCharacteristics]
|
||||||
|
if transferCharacteristics <> invalid
|
||||||
|
xml.EmptyNode("EssentialProperty", {
|
||||||
|
"schemeIdUri": "urn:mpeg:mpegB:cicp:TransferCharacteristics"
|
||||||
|
"value": transferCharacteristics
|
||||||
|
})
|
||||||
|
else
|
||||||
|
LogWarn("Unknown colorInfo.transferCharacteristics:", videoStream.colorInfo.transferCharacteristics)
|
||||||
|
end if
|
||||||
|
end if
|
||||||
|
|
||||||
|
if videoStream.colorInfo.matrixCoefficients <> invalid
|
||||||
|
matrixCoefficients = m.colorInfo.matrixCoefficients[videoStream.colorInfo.matrixCoefficients]
|
||||||
|
if matrixCoefficients <> invalid
|
||||||
|
xml.EmptyNode("EssentialProperty", {
|
||||||
|
"schemeIdUri": "urn:mpeg:mpegB:cicp:MatrixCoefficients"
|
||||||
|
"value": matrixCoefficients
|
||||||
|
})
|
||||||
|
else
|
||||||
|
LogWarn("Unknown colorInfo.matrixCoefficients:", videoStream.colorInfo.matrixCoefficients)
|
||||||
|
end if
|
||||||
|
end if
|
||||||
|
end function
|
||||||
|
|
||||||
end class
|
end class
|
||||||
@@ -505,14 +505,22 @@ We apologize for the inconvenience.`
|
|||||||
function VerifyTokenScope(token as string) as boolean
|
function VerifyTokenScope(token as string) as boolean
|
||||||
tokenObject = ParseJson(token)
|
tokenObject = ParseJson(token)
|
||||||
if tokenObject = invalid
|
if tokenObject = invalid
|
||||||
|
LogWarn("Failed to json parse token:", token)
|
||||||
return false
|
return false
|
||||||
end if
|
end if
|
||||||
if not IsArray(tokenObject.scopes)
|
if not IsArray(tokenObject.scopes)
|
||||||
|
LogWarn("Token scopes are not an array:", tokenObject.scopes)
|
||||||
return false
|
return false
|
||||||
end if
|
end if
|
||||||
|
|
||||||
scopes = tokenObject.scopes.join(",")
|
scopes = tokenObject.scopes.join(",")
|
||||||
return scopes = Invidious.AUTH_SCOPES
|
expectedScopes = Invidious.AUTH_SCOPES
|
||||||
|
validScopes = expectedScopes = scopes
|
||||||
|
|
||||||
|
if not validScopes
|
||||||
|
LogWarn(`Token scopes do not match expected scopes. Expected: "${expectedScopes}", got: "${scopes}"`)
|
||||||
|
end if
|
||||||
|
return validScopes
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function DeleteAuthToken()
|
function DeleteAuthToken()
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ function Init()
|
|||||||
m.typeMapping = {
|
m.typeMapping = {
|
||||||
"boolean": "boolean"
|
"boolean": "boolean"
|
||||||
"string": "string"
|
"string": "string"
|
||||||
|
"number": "integer"
|
||||||
"radio": "string"
|
"radio": "string"
|
||||||
"array": "array"
|
"array": "array"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
<component name="Preferences" extends="Node">
|
<component name="Preferences" extends="Node">
|
||||||
<interface>
|
<interface>
|
||||||
|
<!--
|
||||||
|
The version of the preferences model. This is used to determine if the
|
||||||
|
user prefs saved need to be migrated. If the version is less than the
|
||||||
|
current version, a migration is needed.
|
||||||
|
-->
|
||||||
<field id="__version" type="integer" value="1" />
|
<field id="__version" type="integer" value="1" />
|
||||||
<field id="prefsModel" type="array" />
|
<field id="prefsModel" type="array" />
|
||||||
<field id="preferenceFields" type="assocarray" />
|
<field id="preferenceFields" type="assocarray" />
|
||||||
|
|||||||
@@ -144,13 +144,20 @@ function Close(_unused as dynamic)
|
|||||||
m.sponsorBlockTask = invalid
|
m.sponsorBlockTask = invalid
|
||||||
end if
|
end if
|
||||||
|
|
||||||
m.top.control = "stop"
|
|
||||||
m.top.content = invalid
|
|
||||||
parent = m.top.getParent()
|
parent = m.top.getParent()
|
||||||
if parent <> invalid
|
if parent <> invalid
|
||||||
parent.RemoveChild(m.top)
|
parent.RemoveChild(m.top)
|
||||||
end if
|
end if
|
||||||
SponsorBlock.RemoveNotifcation(m.notifications)
|
SponsorBlock.RemoveNotifcation(m.notifications)
|
||||||
|
|
||||||
|
' Stopping a video is slow and synchronous, and can lead to execution timeout crashes.
|
||||||
|
try
|
||||||
|
m.top.control = "stop"
|
||||||
|
catch error
|
||||||
|
DialogUtils.ShowDialog(ErrorUtils.Format(error), "Error closing video", true)
|
||||||
|
end try
|
||||||
|
|
||||||
|
m.top.content = invalid
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function OnVideoPlayerStateChange() as void
|
function OnVideoPlayerStateChange() as void
|
||||||
|
|||||||
@@ -4,10 +4,14 @@ namespace Http
|
|||||||
|
|
||||||
class BookmarksRouter extends HttpRouter
|
class BookmarksRouter extends HttpRouter
|
||||||
|
|
||||||
function new()
|
function new(server as object)
|
||||||
super()
|
super()
|
||||||
|
|
||||||
m.Get("/api/bookmarks", function(context as object) as boolean
|
m.bookmarksNode = server.task.bookmarks
|
||||||
|
end function
|
||||||
|
|
||||||
|
@get("/api/bookmarks")
|
||||||
|
function GetBookmarks(context as object) as boolean
|
||||||
response = context.response
|
response = context.response
|
||||||
|
|
||||||
bookmarksString = RegistryUtils.Read(RegistryUtils.BOOKMARKS)
|
bookmarksString = RegistryUtils.Read(RegistryUtils.BOOKMARKS)
|
||||||
@@ -23,19 +27,17 @@ namespace Http
|
|||||||
response.http_code = 200
|
response.http_code = 200
|
||||||
|
|
||||||
return true
|
return true
|
||||||
end function)
|
end function
|
||||||
|
|
||||||
m.Get("/api/bookmarks/feeds", function(context as object) as boolean
|
@get("/api/bookmarks/feeds")
|
||||||
|
function GetBookmarksFeeds(context as object) as boolean
|
||||||
response = context.response
|
response = context.response
|
||||||
router = context.router
|
|
||||||
bookmarks = context.server.task.bookmarks
|
|
||||||
|
|
||||||
feeds = router.BookmarksContentToFeeds(bookmarks.content)
|
feeds = m.BookmarksContentToFeeds(m.bookmarksNode.content)
|
||||||
|
|
||||||
response.Json(feeds)
|
response.Json(feeds)
|
||||||
|
|
||||||
return true
|
return true
|
||||||
end function)
|
|
||||||
end function
|
end function
|
||||||
|
|
||||||
' TODO:P1 refactor to share code with Bookmarks screen
|
' TODO:P1 refactor to share code with Bookmarks screen
|
||||||
|
|||||||
@@ -5,15 +5,20 @@ import "pkg:/source/utils/Types.bs"
|
|||||||
namespace Http
|
namespace Http
|
||||||
|
|
||||||
class DashRouter extends HttpRouter
|
class DashRouter extends HttpRouter
|
||||||
|
function new(server as object)
|
||||||
function new()
|
|
||||||
super()
|
super()
|
||||||
|
|
||||||
m.Get("/api/dash", function(context as object) as boolean
|
m.invidiousNode = server.task.invidious
|
||||||
|
m.invidiousService = new Invidious.InvidiousService(m.invidiousNode)
|
||||||
|
' No need to pass the invidious instance here, we will refresh it for
|
||||||
|
' each request to make sure we are using the latest one
|
||||||
|
m.dashManifest = new DashManifest("")
|
||||||
|
end function
|
||||||
|
|
||||||
|
@get("/api/dash")
|
||||||
|
function GenerateDashManifest(context as object) as boolean
|
||||||
request = context.request
|
request = context.request
|
||||||
response = context.response
|
response = context.response
|
||||||
task = context.server.task
|
|
||||||
invidiousNode = task.invidious
|
|
||||||
|
|
||||||
v = request.query.v
|
v = request.query.v
|
||||||
local = request.query.local
|
local = request.query.local
|
||||||
@@ -23,25 +28,22 @@ namespace Http
|
|||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
service = new Invidious.InvidiousService(invidiousNode)
|
metadataRequest = m.invidiousService.GetVideoMetadata(v)
|
||||||
metadataRequest = service.GetVideoMetadata(v)
|
|
||||||
if not metadataRequest.IsSuccess()
|
if not metadataRequest.IsSuccess()
|
||||||
response.Default(metadataRequest.StatusCode(), metadataRequest.ErrorMessage())
|
response.Default(metadataRequest.StatusCode(), metadataRequest.ErrorMessage())
|
||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
metadata = metadataRequest.Json()
|
metadata = metadataRequest.Json()
|
||||||
instance = service.GetInstance()
|
m.dashManifest.invidiousInstance = m.invidiousService.GetInstance()
|
||||||
|
|
||||||
dash = new DashManifest(instance)
|
xmlContent = m.dashManifest.fromVideoMetadata(metadata, ValidString(local) = "true")
|
||||||
xmlContent = dash.fromVideoMetadata(metadata, ValidString(local) = "true")
|
|
||||||
|
|
||||||
response.http_code = 200
|
response.http_code = 200
|
||||||
response.SetBodyDataString(xmlContent)
|
response.SetBodyDataString(xmlContent)
|
||||||
response.ContentType("application/dash+xml")
|
response.ContentType("application/dash+xml")
|
||||||
|
|
||||||
return true
|
return true
|
||||||
end function)
|
|
||||||
end function
|
end function
|
||||||
|
|
||||||
end class
|
end class
|
||||||
|
|||||||
@@ -4,20 +4,20 @@ namespace Http
|
|||||||
|
|
||||||
class HomeLayoutRouter extends HttpRouter
|
class HomeLayoutRouter extends HttpRouter
|
||||||
|
|
||||||
function new()
|
function new(server as object)
|
||||||
super()
|
super()
|
||||||
|
|
||||||
m.Get("/api/home-layout", function(context as object) as boolean
|
m.preferencesNode = server.task.preferences
|
||||||
response = context.response
|
end function
|
||||||
task = context.server.task
|
|
||||||
preferences = task.preferences
|
|
||||||
|
|
||||||
feed = HomeScreenUtils.GetFeed("libpkg:/config/default_home_layout.yaml", preferences)
|
@get("/api/home-layout")
|
||||||
|
function GetHomeLayout(context as object) as boolean
|
||||||
|
response = context.response
|
||||||
|
|
||||||
|
feed = HomeScreenUtils.GetFeed("libpkg:/config/default_home_layout.yaml", m.preferencesNode)
|
||||||
response.Json(feed)
|
response.Json(feed)
|
||||||
|
|
||||||
return true
|
return true
|
||||||
end function)
|
|
||||||
|
|
||||||
end function
|
end function
|
||||||
|
|
||||||
end class
|
end class
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
namespace Http
|
||||||
|
|
||||||
|
class HomeRouter extends HttpRouter
|
||||||
|
|
||||||
|
function new()
|
||||||
|
super()
|
||||||
|
end function
|
||||||
|
|
||||||
|
@get("/")
|
||||||
|
function GoHome(context as object) as boolean
|
||||||
|
response = context.response
|
||||||
|
response.Redirect("/index.html")
|
||||||
|
return true
|
||||||
|
end function
|
||||||
|
|
||||||
|
end class
|
||||||
|
|
||||||
|
end namespace
|
||||||
@@ -5,33 +5,36 @@ namespace Http
|
|||||||
|
|
||||||
class InvidiousRouter extends HttpRouter
|
class InvidiousRouter extends HttpRouter
|
||||||
|
|
||||||
function new()
|
function new(server as object)
|
||||||
super()
|
super()
|
||||||
|
|
||||||
m.Get("/invidious/login", function(context as object) as boolean
|
m.invidiousNode = server.task.invidious
|
||||||
response = context.response
|
m.invidiousService = new Invidious.InvidiousService(m.invidiousNode)
|
||||||
invidiousNode = context.server.task.invidious
|
end function
|
||||||
|
|
||||||
authLink = invidiousNode@.GetAuthorizeTokenLink()
|
@get("/invidious/login")
|
||||||
|
function Login(context as object) as boolean
|
||||||
|
response = context.response
|
||||||
|
|
||||||
|
authLink = m.invidiousNode@.GetAuthorizeTokenLink()
|
||||||
response.Redirect(authLink)
|
response.Redirect(authLink)
|
||||||
return true
|
return true
|
||||||
end function)
|
end function
|
||||||
|
|
||||||
m.Get("/invidious/logout", function(context as object) as boolean
|
@get("/invidious/logout")
|
||||||
|
function Logout(context as object) as boolean
|
||||||
response = context.response
|
response = context.response
|
||||||
invidiousNode = context.server.task.invidious
|
|
||||||
|
|
||||||
service = new Invidious.InvidiousService(invidiousNode)
|
m.invidiousService.Logout()
|
||||||
service.Logout()
|
|
||||||
|
|
||||||
response.Default(204, "OK")
|
response.Default(204, "OK")
|
||||||
return true
|
return true
|
||||||
end function)
|
end function
|
||||||
|
|
||||||
m.Get(Invidious.TOKEN_CALLBACK, function(context as object) as boolean
|
@get("/invidious/token_callback")
|
||||||
|
function OnTokenReceived(context as object) as boolean
|
||||||
request = context.request
|
request = context.request
|
||||||
response = context.response
|
response = context.response
|
||||||
invidiousNode = context.server.task.invidious
|
|
||||||
|
|
||||||
if request.query["token"] <> invalid and request.query["ref"] <> invalid
|
if request.query["token"] <> invalid and request.query["ref"] <> invalid
|
||||||
' Invidious encodes token and username twice
|
' Invidious encodes token and username twice
|
||||||
@@ -39,21 +42,21 @@ namespace Http
|
|||||||
username = request.query["username"].DecodeUriComponent().DecodeUriComponent()
|
username = request.query["username"].DecodeUriComponent().DecodeUriComponent()
|
||||||
referer = request.query["ref"].DecodeUriComponent()
|
referer = request.query["ref"].DecodeUriComponent()
|
||||||
|
|
||||||
invidiousNode@.SetAuthToken(token, referer, username)
|
m.invidiousNode@.SetAuthToken(token, referer, username)
|
||||||
end if
|
end if
|
||||||
response.Redirect("/")
|
response.Redirect("/")
|
||||||
return true
|
return true
|
||||||
end function)
|
end function
|
||||||
|
|
||||||
' This is an endpoint allowing the web app to make an authenticated request
|
' This is an endpoint allowing the web app to make an authenticated request
|
||||||
' without needing the Invidious token
|
' without needing the Invidious token
|
||||||
' This is a GET not a POST for better caching
|
' This is a GET not a POST for better caching
|
||||||
m.Get("/invidious/authenticated-request", function(context as object) as boolean
|
@get("/invidious/authenticated-request")
|
||||||
|
function AuthRequestProxy(context as object) as boolean
|
||||||
request = context.request
|
request = context.request
|
||||||
response = context.response
|
response = context.response
|
||||||
invidiousNode = context.server.task.invidious
|
|
||||||
|
|
||||||
token = invidiousNode.authToken
|
token = m.invidiousNode.authToken
|
||||||
if token = invalid
|
if token = invalid
|
||||||
response.Default(403, "No token, not logged in")
|
response.Default(403, "No token, not logged in")
|
||||||
return true
|
return true
|
||||||
@@ -71,14 +74,12 @@ namespace Http
|
|||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
invService = new Invidious.InvidiousService(invidiousNode)
|
|
||||||
|
|
||||||
additionalQueryParams = invalid
|
additionalQueryParams = invalid
|
||||||
if feedSource.state <> invalid and feedSource.state.queryParams <> invalid
|
if feedSource.state <> invalid and feedSource.state.queryParams <> invalid
|
||||||
additionalQueryParams = feedSource.state.queryParams
|
additionalQueryParams = feedSource.state.queryParams
|
||||||
end if
|
end if
|
||||||
|
|
||||||
invResponse = invService.MakeRequest(feedSource, additionalQueryParams)
|
invResponse = m.invidiousService.MakeRequest(feedSource, additionalQueryParams)
|
||||||
if not invResponse.success
|
if not invResponse.success
|
||||||
response.Default(500, `Failed to make request: ${invResponse.error}`)
|
response.Default(500, `Failed to make request: ${invResponse.error}`)
|
||||||
return true
|
return true
|
||||||
@@ -86,8 +87,6 @@ namespace Http
|
|||||||
|
|
||||||
response.Json(invResponse.result)
|
response.Json(invResponse.result)
|
||||||
return true
|
return true
|
||||||
end function)
|
|
||||||
|
|
||||||
end function
|
end function
|
||||||
|
|
||||||
end class
|
end class
|
||||||
|
|||||||
@@ -5,27 +5,28 @@ namespace Http
|
|||||||
|
|
||||||
class PlayQueueRouter extends HttpRouter
|
class PlayQueueRouter extends HttpRouter
|
||||||
|
|
||||||
function new()
|
function new(server as object)
|
||||||
super()
|
super()
|
||||||
|
|
||||||
' Get queue
|
task = server.task
|
||||||
m.Get("/api/queue", function(context as object) as boolean
|
m.playQueueNode = task.playQueue
|
||||||
response = context.response
|
m.invidiousNode = task.invidious
|
||||||
task = context.server.task
|
m.invidiousService = new Invidious.InvidiousService(m.invidiousNode)
|
||||||
playQueue = task.playQueue
|
end function
|
||||||
|
|
||||||
queue = playQueue@.GetQueue()
|
@get("/api/queue")
|
||||||
|
function GetQueue(context as object) as boolean
|
||||||
|
response = context.response
|
||||||
|
|
||||||
|
queue = m.playQueueNode@.GetQueue()
|
||||||
response.Json(queue)
|
response.Json(queue)
|
||||||
return true
|
return true
|
||||||
end function)
|
end function
|
||||||
|
|
||||||
' Add to queue
|
@post("/api/queue")
|
||||||
m.Post("/api/queue", function(context as object) as boolean
|
function AddToQueue(context as object) as boolean
|
||||||
request = context.request
|
request = context.request
|
||||||
response = context.response
|
response = context.response
|
||||||
task = context.server.task
|
|
||||||
playQueue = task.playQueue
|
|
||||||
invidiousNode = task.invidious
|
|
||||||
|
|
||||||
payload = request.Json()
|
payload = request.Json()
|
||||||
if payload = invalid
|
if payload = invalid
|
||||||
@@ -40,24 +41,20 @@ namespace Http
|
|||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
service = new Invidious.InvidiousService(invidiousNode)
|
instance = m.invidiousService.GetInstance()
|
||||||
instance = service.GetInstance()
|
|
||||||
|
|
||||||
contentNode = InvidiousContent.ToRowCellContentNode(payload, instance)
|
contentNode = InvidiousContent.ToRowCellContentNode(payload, instance)
|
||||||
playQueue@.AddToQueue(contentNode)
|
m.playQueueNode@.AddToQueue(contentNode)
|
||||||
|
|
||||||
queue = playQueue@.GetQueue()
|
queue = m.playQueueNode@.GetQueue()
|
||||||
response.Json(queue)
|
response.Json(queue)
|
||||||
return true
|
return true
|
||||||
end function)
|
end function
|
||||||
|
|
||||||
' Play a video
|
@post("/api/queue/play")
|
||||||
m.Post("/api/queue/play", function(context as object) as boolean
|
function Play(context as object) as boolean
|
||||||
request = context.request
|
request = context.request
|
||||||
response = context.response
|
response = context.response
|
||||||
task = context.server.task
|
|
||||||
playQueue = task.playQueue
|
|
||||||
invidiousNode = task.invidious
|
|
||||||
|
|
||||||
payload = request.Json()
|
payload = request.Json()
|
||||||
if payload = invalid
|
if payload = invalid
|
||||||
@@ -76,8 +73,7 @@ namespace Http
|
|||||||
payload.timestamp = payload.timestamp.toInt()
|
payload.timestamp = payload.timestamp.toInt()
|
||||||
end if
|
end if
|
||||||
|
|
||||||
service = new Invidious.InvidiousService(invidiousNode)
|
instance = m.invidiousService.GetInstance()
|
||||||
instance = service.GetInstance()
|
|
||||||
|
|
||||||
contentNode = InvidiousContent.ToRowCellContentNode(payload, instance)
|
contentNode = InvidiousContent.ToRowCellContentNode(payload, instance)
|
||||||
playlistIndex = IsInt(payload.playlistIndex) ? payload.playlistIndex : -1
|
playlistIndex = IsInt(payload.playlistIndex) ? payload.playlistIndex : -1
|
||||||
@@ -86,28 +82,19 @@ namespace Http
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
'TODO:P1 play existing item by index instead of new item inserted
|
'TODO:P1 play existing item by index instead of new item inserted
|
||||||
playQueue@.Play(contentNode, playlistIndex)
|
m.playQueueNode@.Play(contentNode, playlistIndex)
|
||||||
|
|
||||||
response.Default(204, "OK")
|
response.Default(204, "OK")
|
||||||
return true
|
return true
|
||||||
end function)
|
end function
|
||||||
|
|
||||||
' clear queue
|
@delete("/api/queue")
|
||||||
m.Delete("/api/queue", function(context as object) as boolean
|
function ClearQueue(context as object) as boolean
|
||||||
response = context.response
|
response = context.response
|
||||||
task = context.server.task
|
|
||||||
playQueue = task.playQueue
|
|
||||||
|
|
||||||
if playQueue = invalid
|
m.playQueueNode@.Clear()
|
||||||
response.Default(500, `Reference to "playQueue" object was invalid`)
|
|
||||||
return true
|
|
||||||
end if
|
|
||||||
|
|
||||||
playQueue@.Clear()
|
|
||||||
response.Default(204, "OK")
|
response.Default(204, "OK")
|
||||||
return true
|
return true
|
||||||
end function)
|
|
||||||
|
|
||||||
end function
|
end function
|
||||||
|
|
||||||
end class
|
end class
|
||||||
|
|||||||
+14
-12
@@ -4,13 +4,16 @@ namespace Http
|
|||||||
|
|
||||||
class PlayletLibUrlsRouter extends HttpRouter
|
class PlayletLibUrlsRouter extends HttpRouter
|
||||||
|
|
||||||
function new()
|
function new(server as object)
|
||||||
super()
|
super()
|
||||||
|
|
||||||
m.Get("/api/playlet-lib-urls", function(context as object) as boolean
|
task = server.task
|
||||||
|
m.scene = task.getScene()
|
||||||
|
end function
|
||||||
|
|
||||||
|
@get("/api/playlet-lib-urls")
|
||||||
|
function GetPlayletLibUrls(context as object) as boolean
|
||||||
response = context.response
|
response = context.response
|
||||||
task = context.server.task
|
|
||||||
scene = task.getScene()
|
|
||||||
|
|
||||||
saved = RegistryUtils.Read(RegistryUtils.PLAYLET_LIB_URLS)
|
saved = RegistryUtils.Read(RegistryUtils.PLAYLET_LIB_URLS)
|
||||||
if saved <> invalid
|
if saved <> invalid
|
||||||
@@ -18,13 +21,14 @@ namespace Http
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
response.Json({
|
response.Json({
|
||||||
loaded: scene.playletLibLoadedUrl
|
loaded: m.scene.playletLibLoadedUrl
|
||||||
saved: saved
|
saved: saved
|
||||||
})
|
})
|
||||||
return true
|
return true
|
||||||
end function)
|
end function
|
||||||
|
|
||||||
m.Post("/api/playlet-lib-urls", function(context as object) as boolean
|
@post("/api/playlet-lib-urls")
|
||||||
|
function SetPlayletLibUrls(context as object) as boolean
|
||||||
request = context.request
|
request = context.request
|
||||||
response = context.response
|
response = context.response
|
||||||
|
|
||||||
@@ -50,19 +54,17 @@ namespace Http
|
|||||||
|
|
||||||
response.Default(204, "OK")
|
response.Default(204, "OK")
|
||||||
return true
|
return true
|
||||||
end function)
|
end function
|
||||||
|
|
||||||
m.Delete("/api/playlet-lib-urls", function(context as object) as boolean
|
@delete("/api/playlet-lib-urls")
|
||||||
|
function DeletePlayletLibUrls(context as object) as boolean
|
||||||
response = context.response
|
response = context.response
|
||||||
|
|
||||||
RegistryUtils.Delete(RegistryUtils.PLAYLET_LIB_URLS)
|
RegistryUtils.Delete(RegistryUtils.PLAYLET_LIB_URLS)
|
||||||
|
|
||||||
response.Default(204, "OK")
|
response.Default(204, "OK")
|
||||||
return true
|
return true
|
||||||
end function)
|
|
||||||
|
|
||||||
end function
|
end function
|
||||||
|
|
||||||
end class
|
end class
|
||||||
|
|
||||||
end namespace
|
end namespace
|
||||||
@@ -2,31 +2,25 @@ namespace Http
|
|||||||
|
|
||||||
class PreferencesRouter extends HttpRouter
|
class PreferencesRouter extends HttpRouter
|
||||||
|
|
||||||
function new()
|
function new(server as object)
|
||||||
super()
|
super()
|
||||||
|
|
||||||
' Get preferences
|
m.preferencesNode = server.task.preferences
|
||||||
m.Get("/api/preferences", function(context as object) as boolean
|
end function
|
||||||
|
|
||||||
|
@get("/api/preferences")
|
||||||
|
function GetPreferences(context as object) as boolean
|
||||||
response = context.response
|
response = context.response
|
||||||
task = context.server.task
|
|
||||||
preferences = task.preferences
|
|
||||||
|
|
||||||
if preferences = invalid
|
userPrefs = m.preferencesNode@.GetUserPreferences()
|
||||||
response.Default(500, `Reference to "preferences" object was invalid`)
|
|
||||||
return true
|
|
||||||
end if
|
|
||||||
|
|
||||||
userPrefs = preferences@.GetUserPreferences()
|
|
||||||
response.Json(userPrefs)
|
response.Json(userPrefs)
|
||||||
return true
|
return true
|
||||||
end function)
|
end function
|
||||||
|
|
||||||
' Update preferences
|
@put("/api/preferences")
|
||||||
m.Put("/api/preferences", function(context as object) as boolean
|
function UpdatePreferences(context as object) as boolean
|
||||||
request = context.request
|
request = context.request
|
||||||
response = context.response
|
response = context.response
|
||||||
task = context.server.task
|
|
||||||
preferences = task.preferences
|
|
||||||
|
|
||||||
payload = request.Json()
|
payload = request.Json()
|
||||||
if payload = invalid
|
if payload = invalid
|
||||||
@@ -34,32 +28,18 @@ namespace Http
|
|||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
if preferences = invalid
|
m.preferencesNode@.ApplyUserPreferences(payload)
|
||||||
response.Default(500, `Reference to "preferences" object was invalid`)
|
|
||||||
return true
|
|
||||||
end if
|
|
||||||
|
|
||||||
preferences@.ApplyUserPreferences(payload)
|
|
||||||
response.Default(204, "OK")
|
response.Default(204, "OK")
|
||||||
return true
|
return true
|
||||||
end function)
|
end function
|
||||||
|
|
||||||
' Reset default preferences
|
@delete("/api/preferences")
|
||||||
m.Delete("/api/preferences", function(context as object) as boolean
|
function ResetPreferences(context as object) as boolean
|
||||||
response = context.response
|
response = context.response
|
||||||
task = context.server.task
|
|
||||||
preferences = task.preferences
|
|
||||||
|
|
||||||
if preferences = invalid
|
m.preferencesNode@.ClearUserPreferences()
|
||||||
response.Default(500, `Reference to "preferences" object was invalid`)
|
|
||||||
return true
|
|
||||||
end if
|
|
||||||
|
|
||||||
preferences@.ClearUserPreferences()
|
|
||||||
response.Default(204, "OK")
|
response.Default(204, "OK")
|
||||||
return true
|
return true
|
||||||
end function)
|
|
||||||
|
|
||||||
end function
|
end function
|
||||||
|
|
||||||
end class
|
end class
|
||||||
|
|||||||
@@ -0,0 +1,49 @@
|
|||||||
|
#if DEBUG
|
||||||
|
import "pkg:/source/utils/RegistryUtils.bs"
|
||||||
|
|
||||||
|
namespace Http
|
||||||
|
|
||||||
|
class RegistryRouter extends HttpRouter
|
||||||
|
|
||||||
|
function new()
|
||||||
|
super()
|
||||||
|
end function
|
||||||
|
|
||||||
|
@get("/debug/registry")
|
||||||
|
function GetRegistry(context as object) as boolean
|
||||||
|
response = context.response
|
||||||
|
|
||||||
|
registryValues = RegistryUtils.ReadAll()
|
||||||
|
response.Json(registryValues)
|
||||||
|
return true
|
||||||
|
end function
|
||||||
|
|
||||||
|
@post("/debug/registry")
|
||||||
|
function SetRegistry(context as object) as boolean
|
||||||
|
request = context.request
|
||||||
|
response = context.response
|
||||||
|
|
||||||
|
payload = request.Json()
|
||||||
|
if payload = invalid
|
||||||
|
response.Default(400, "Invalid JSON")
|
||||||
|
return true
|
||||||
|
end if
|
||||||
|
|
||||||
|
RegistryUtils.WriteAll(payload)
|
||||||
|
response.Default(204, "OK")
|
||||||
|
return true
|
||||||
|
end function
|
||||||
|
|
||||||
|
@delete("/debug/registry")
|
||||||
|
function ClearRegistry(context as object) as boolean
|
||||||
|
response = context.response
|
||||||
|
|
||||||
|
RegistryUtils.DeleteAll()
|
||||||
|
response.Default(204, "OK")
|
||||||
|
return true
|
||||||
|
end function
|
||||||
|
|
||||||
|
end class
|
||||||
|
|
||||||
|
end namespace
|
||||||
|
#end if
|
||||||
@@ -4,23 +4,24 @@ namespace Http
|
|||||||
|
|
||||||
class SearchHistoryRouter extends HttpRouter
|
class SearchHistoryRouter extends HttpRouter
|
||||||
|
|
||||||
function new()
|
function new(server as object)
|
||||||
super()
|
super()
|
||||||
|
|
||||||
m.Get("/api/search-history", function(context as object) as boolean
|
m.preferencesNode = server.task.preferences
|
||||||
|
end function
|
||||||
|
|
||||||
|
@get("/api/search-history")
|
||||||
|
function GetSearchHistory(context as object) as boolean
|
||||||
response = context.response
|
response = context.response
|
||||||
task = context.server.task
|
|
||||||
preferences = task.preferences
|
|
||||||
|
|
||||||
response.Json(SearchHistoryUtils.GetAllSaved(preferences))
|
response.Json(SearchHistoryUtils.GetAllSaved(m.preferencesNode))
|
||||||
return true
|
return true
|
||||||
end function)
|
end function
|
||||||
|
|
||||||
m.Put("/api/search-history", function(context as object) as boolean
|
@post("/api/search-history")
|
||||||
|
function AddSearchHistory(context as object) as boolean
|
||||||
request = context.request
|
request = context.request
|
||||||
response = context.response
|
response = context.response
|
||||||
task = context.server.task
|
|
||||||
preferences = task.preferences
|
|
||||||
|
|
||||||
payload = request.Json()
|
payload = request.Json()
|
||||||
if payload = invalid
|
if payload = invalid
|
||||||
@@ -34,19 +35,18 @@ namespace Http
|
|||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
SearchHistoryUtils.Save(preferences, query)
|
SearchHistoryUtils.Save(m.preferencesNode, query)
|
||||||
response.Json(SearchHistoryUtils.GetAllSaved(preferences))
|
response.Json(SearchHistoryUtils.GetAllSaved(m.preferencesNode))
|
||||||
return true
|
return true
|
||||||
end function)
|
end function
|
||||||
|
|
||||||
m.Delete("/api/search-history", function(context as object) as boolean
|
@delete("/api/search-history")
|
||||||
|
function ClearSearchHistory(context as object) as boolean
|
||||||
response = context.response
|
response = context.response
|
||||||
|
|
||||||
SearchHistoryUtils.Clear()
|
SearchHistoryUtils.Clear()
|
||||||
response.Default(204, "OK")
|
response.Default(204, "OK")
|
||||||
return true
|
return true
|
||||||
end function)
|
|
||||||
|
|
||||||
end function
|
end function
|
||||||
|
|
||||||
end class
|
end class
|
||||||
|
|||||||
@@ -4,16 +4,19 @@ namespace Http
|
|||||||
|
|
||||||
class StateApiRouter extends HttpRouter
|
class StateApiRouter extends HttpRouter
|
||||||
|
|
||||||
function new()
|
function new(server as object)
|
||||||
super()
|
super()
|
||||||
|
|
||||||
m.Get("/api/state", function(context as object) as boolean
|
task = server.task
|
||||||
|
m.applicationInfoNode = task.applicationInfo
|
||||||
|
m.invidiousNode = task.invidious
|
||||||
|
m.preferencesNode = task.preferences
|
||||||
|
end function
|
||||||
|
|
||||||
|
@get("/api/state")
|
||||||
|
function GetState(context as object) as boolean
|
||||||
request = context.request
|
request = context.request
|
||||||
response = context.response
|
response = context.response
|
||||||
task = context.server.task
|
|
||||||
applicationInfoNode = task.applicationInfo
|
|
||||||
preferencesNode = task.preferences
|
|
||||||
invidiousNode = task.invidious
|
|
||||||
|
|
||||||
keys = ["app", "device", "invidious", "preferences"]
|
keys = ["app", "device", "invidious", "preferences"]
|
||||||
|
|
||||||
@@ -27,31 +30,31 @@ namespace Http
|
|||||||
state = {}
|
state = {}
|
||||||
|
|
||||||
if ArrayUtils.IndexOfString(keys, "app") <> -1
|
if ArrayUtils.IndexOfString(keys, "app") <> -1
|
||||||
appInfo = applicationInfoNode@.GetAppInfo()
|
appInfo = m.applicationInfoNode@.GetAppInfo()
|
||||||
|
|
||||||
if appInfo.lib_version_latest = "N/A"
|
if appInfo.lib_version_latest = "N/A"
|
||||||
' If the lib_version_latest field is not available, we can give it a few seconds
|
' If the lib_version_latest field is not available, we can give it a few seconds
|
||||||
' To make a request to Github to get the latest version.
|
' To make a request to Github to get the latest version.
|
||||||
msgPort = CreateObject("roMessagePort")
|
msgPort = CreateObject("roMessagePort")
|
||||||
applicationInfoNode.observeFieldScoped("lib_version_latest", msgPort)
|
m.applicationInfoNode.observeFieldScoped("lib_version_latest", msgPort)
|
||||||
wait(5000, msgPort)
|
wait(5000, msgPort)
|
||||||
applicationInfoNode.unobserveFieldScoped("lib_version_latest")
|
m.applicationInfoNode.unobserveFieldScoped("lib_version_latest")
|
||||||
|
|
||||||
appInfo.lib_version_latest = applicationInfoNode.lib_version_latest
|
appInfo.lib_version_latest = m.applicationInfoNode.lib_version_latest
|
||||||
end if
|
end if
|
||||||
|
|
||||||
state["app"] = appInfo
|
state["app"] = appInfo
|
||||||
end if
|
end if
|
||||||
|
|
||||||
if ArrayUtils.IndexOfString(keys, "device") <> -1
|
if ArrayUtils.IndexOfString(keys, "device") <> -1
|
||||||
state["device"] = applicationInfoNode@.GetDeviceInfo()
|
state["device"] = m.applicationInfoNode@.GetDeviceInfo()
|
||||||
end if
|
end if
|
||||||
|
|
||||||
if ArrayUtils.IndexOfString(keys, "invidious") <> -1
|
if ArrayUtils.IndexOfString(keys, "invidious") <> -1
|
||||||
authToken = invidiousNode.authToken
|
authToken = m.invidiousNode.authToken
|
||||||
state["invidious"] = {
|
state["invidious"] = {
|
||||||
current_instance: invidiousNode@.GetCurrentInstance()
|
current_instance: m.invidiousNode@.GetCurrentInstance()
|
||||||
auth_url: invidiousNode@.GetAuthorizeTokenLink()
|
auth_url: m.invidiousNode@.GetAuthorizeTokenLink()
|
||||||
logged_in: authToken <> invalid
|
logged_in: authToken <> invalid
|
||||||
logged_in_instance: authToken <> invalid ? authToken.instance : invalid
|
logged_in_instance: authToken <> invalid ? authToken.instance : invalid
|
||||||
logged_in_username: authToken <> invalid ? authToken.username : invalid
|
logged_in_username: authToken <> invalid ? authToken.username : invalid
|
||||||
@@ -59,12 +62,11 @@ namespace Http
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
if ArrayUtils.IndexOfString(keys, "preferences") <> -1
|
if ArrayUtils.IndexOfString(keys, "preferences") <> -1
|
||||||
state["preferences"] = preferencesNode@.GetUserPreferences()
|
state["preferences"] = m.preferencesNode@.GetUserPreferences()
|
||||||
end if
|
end if
|
||||||
|
|
||||||
response.Json(state)
|
response.Json(state)
|
||||||
return true
|
return true
|
||||||
end function)
|
|
||||||
end function
|
end function
|
||||||
|
|
||||||
end class
|
end class
|
||||||
|
|||||||
@@ -6,27 +6,30 @@ namespace Http
|
|||||||
|
|
||||||
class ViewRouter extends HttpRouter
|
class ViewRouter extends HttpRouter
|
||||||
|
|
||||||
function new()
|
function new(server as object)
|
||||||
super()
|
super()
|
||||||
|
|
||||||
m.Get("/api/view/open", function(context as object) as boolean
|
m.appController = server.task.appController
|
||||||
|
end function
|
||||||
|
|
||||||
|
@get("/api/view/open")
|
||||||
|
function OpenView(context as object) as boolean
|
||||||
request = context.request
|
request = context.request
|
||||||
response = context.response
|
response = context.response
|
||||||
appController = context.server.task.appController
|
|
||||||
|
|
||||||
playlistId = request.query.playlistId
|
playlistId = request.query.playlistId
|
||||||
authorId = request.query.authorId
|
authorId = request.query.authorId
|
||||||
|
|
||||||
if not StringUtils.IsNullOrEmpty(playlistId)
|
if not StringUtils.IsNullOrEmpty(playlistId)
|
||||||
contentNode = InvidiousContent.ToPlaylistContentNode(invalid, { playlistId: playlistId }, invalid)
|
contentNode = InvidiousContent.ToPlaylistContentNode(invalid, { playlistId: playlistId }, invalid)
|
||||||
PlaylistUtils.Open(contentNode, appController)
|
PlaylistUtils.Open(contentNode, m.appController)
|
||||||
if VideoUtils.IsVideoPlayerOpen() and VideoUtils.IsVideoPlayerFullScreen()
|
if VideoUtils.IsVideoPlayerOpen() and VideoUtils.IsVideoPlayerFullScreen()
|
||||||
VideoUtils.ToggleVideoPictureInPicture()
|
VideoUtils.ToggleVideoPictureInPicture()
|
||||||
end if
|
end if
|
||||||
response.Default(204, "OK")
|
response.Default(204, "OK")
|
||||||
else if not StringUtils.IsNullOrEmpty(authorId)
|
else if not StringUtils.IsNullOrEmpty(authorId)
|
||||||
contentNode = InvidiousContent.ToChannelContentNode(invalid, { authorId: authorId }, invalid)
|
contentNode = InvidiousContent.ToChannelContentNode(invalid, { authorId: authorId }, invalid)
|
||||||
ChannelUtils.Open(contentNode, appController)
|
ChannelUtils.Open(contentNode, m.appController)
|
||||||
if VideoUtils.IsVideoPlayerOpen() and VideoUtils.IsVideoPlayerFullScreen()
|
if VideoUtils.IsVideoPlayerOpen() and VideoUtils.IsVideoPlayerFullScreen()
|
||||||
VideoUtils.ToggleVideoPictureInPicture()
|
VideoUtils.ToggleVideoPictureInPicture()
|
||||||
end if
|
end if
|
||||||
@@ -36,7 +39,6 @@ namespace Http
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
return true
|
return true
|
||||||
end function)
|
|
||||||
end function
|
end function
|
||||||
|
|
||||||
end class
|
end class
|
||||||
|
|||||||
@@ -2,10 +2,12 @@ import "pkg:/components/parts/AutoBind/OnNodeReadyNoOp.bs"
|
|||||||
import "pkg:/components/Web/PlayletWebServer/Middleware/BookmarksRouter.bs"
|
import "pkg:/components/Web/PlayletWebServer/Middleware/BookmarksRouter.bs"
|
||||||
import "pkg:/components/Web/PlayletWebServer/Middleware/DashRouter.bs"
|
import "pkg:/components/Web/PlayletWebServer/Middleware/DashRouter.bs"
|
||||||
import "pkg:/components/Web/PlayletWebServer/Middleware/HomeLayoutRouter.bs"
|
import "pkg:/components/Web/PlayletWebServer/Middleware/HomeLayoutRouter.bs"
|
||||||
|
import "pkg:/components/Web/PlayletWebServer/Middleware/HomeRouter.bs"
|
||||||
import "pkg:/components/Web/PlayletWebServer/Middleware/InvidiousRouter.bs"
|
import "pkg:/components/Web/PlayletWebServer/Middleware/InvidiousRouter.bs"
|
||||||
import "pkg:/components/Web/PlayletWebServer/Middleware/PlayletLibUrlsRouter.bs"
|
import "pkg:/components/Web/PlayletWebServer/Middleware/PlayletLibUrlsRouter.bs"
|
||||||
import "pkg:/components/Web/PlayletWebServer/Middleware/PlayQueueRouter.bs"
|
import "pkg:/components/Web/PlayletWebServer/Middleware/PlayQueueRouter.bs"
|
||||||
import "pkg:/components/Web/PlayletWebServer/Middleware/PreferencesRouter.bs"
|
import "pkg:/components/Web/PlayletWebServer/Middleware/PreferencesRouter.bs"
|
||||||
|
import "pkg:/components/Web/PlayletWebServer/Middleware/RegistryRouter.bs"
|
||||||
import "pkg:/components/Web/PlayletWebServer/Middleware/SearchHistoryRouter.bs"
|
import "pkg:/components/Web/PlayletWebServer/Middleware/SearchHistoryRouter.bs"
|
||||||
import "pkg:/components/Web/PlayletWebServer/Middleware/StateApiRouter.bs"
|
import "pkg:/components/Web/PlayletWebServer/Middleware/StateApiRouter.bs"
|
||||||
import "pkg:/components/Web/PlayletWebServer/Middleware/ViewRouter.bs"
|
import "pkg:/components/Web/PlayletWebServer/Middleware/ViewRouter.bs"
|
||||||
@@ -29,34 +31,29 @@ function GetServerAddress(_unused as dynamic) as dynamic
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function SetupRoutes(server as object)
|
function SetupRoutes(server as object)
|
||||||
homeRouter = new Http.HttpRouter()
|
|
||||||
homeRouter.Get("/", function(context as object) as boolean
|
|
||||||
response = context.response
|
|
||||||
response.Redirect("/index.html")
|
|
||||||
return true
|
|
||||||
end function)
|
|
||||||
|
|
||||||
server.UseRouter(new Http.CorsMiddleware())
|
server.UseRouter(new Http.CorsMiddleware())
|
||||||
if server.settings.WebSocketsEnabled
|
if server.settings.WebSocketsEnabled
|
||||||
server.UseRouter(new Http.WebSocketMiddleware())
|
server.UseRouter(new Http.WebSocketMiddleware())
|
||||||
end if
|
end if
|
||||||
server.UseRouter(homeRouter)
|
server.UseRouter(new Http.HomeRouter())
|
||||||
server.UseRouter(new Http.StateApiRouter())
|
server.UseRouter(new Http.StateApiRouter(server))
|
||||||
server.UseRouter(new Http.DashRouter())
|
server.UseRouter(new Http.DashRouter(server))
|
||||||
server.UseRouter(new Http.PreferencesRouter())
|
server.UseRouter(new Http.PreferencesRouter(server))
|
||||||
server.UseRouter(new Http.InvidiousRouter())
|
server.UseRouter(new Http.InvidiousRouter(server))
|
||||||
server.UseRouter(new Http.PlayQueueRouter())
|
server.UseRouter(new Http.PlayQueueRouter(server))
|
||||||
server.UseRouter(new Http.BookmarksRouter())
|
server.UseRouter(new Http.BookmarksRouter(server))
|
||||||
server.UseRouter(new Http.HomeLayoutRouter())
|
server.UseRouter(new Http.HomeLayoutRouter(server))
|
||||||
server.UseRouter(new Http.ViewRouter())
|
server.UseRouter(new Http.ViewRouter(server))
|
||||||
server.UseRouter(new Http.SearchHistoryRouter())
|
server.UseRouter(new Http.SearchHistoryRouter(server))
|
||||||
server.UseRouter(new Http.PlayletLibUrlsRouter())
|
server.UseRouter(new Http.PlayletLibUrlsRouter(server))
|
||||||
|
|
||||||
etags = new Http.EtagUtils()
|
etags = new Http.EtagUtils()
|
||||||
server.UseRouter(new Http.HttpStaticFilesRouter("/", "libpkg:/www", etags, { staticFiles: true }))
|
server.UseRouter(new Http.HttpStaticFilesRouter("/", "libpkg:/www", etags, { staticFiles: true }))
|
||||||
server.UseRouter(new Http.HttpStaticFilesRouter("/config", "libpkg:/config", etags, { staticFiles: true }))
|
server.UseRouter(new Http.HttpStaticFilesRouter("/config", "libpkg:/config", etags, { staticFiles: true }))
|
||||||
server.UseRouter(new Http.HttpStaticFilesRouter("/logs", "cachefs:/logs", etags, { fsCheck: true }))
|
server.UseRouter(new Http.HttpStaticFilesRouter("/logs", "cachefs:/logs", etags, { fsCheck: true }))
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
|
server.UseRouter(new Http.RegistryRouter())
|
||||||
|
|
||||||
options = { showDirectories: true, showHidden: true, staticFiles: true }
|
options = { showDirectories: true, showHidden: true, staticFiles: true }
|
||||||
server.UseRouter(new Http.HttpStaticFilesRouter("/debug/libpkg", "libpkg:/", etags, options))
|
server.UseRouter(new Http.HttpStaticFilesRouter("/debug/libpkg", "libpkg:/", etags, options))
|
||||||
options = { showDirectories: true, showHidden: true, fsCheck: true, staticFiles: true }
|
options = { showDirectories: true, showHidden: true, fsCheck: true, staticFiles: true }
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ namespace Http
|
|||||||
|
|
||||||
function SetState(newState as Http.HttpConnectionState)
|
function SetState(newState as Http.HttpConnectionState)
|
||||||
if m.state <> newState
|
if m.state <> newState
|
||||||
LogDebug(m, "state change" + Stri(m.state) + " ->" + Stri(newState))
|
' LogDebug("state change" + Stri(m.state) + " ->" + Stri(newState))
|
||||||
m.state = newState
|
m.state = newState
|
||||||
end if
|
end if
|
||||||
end function
|
end function
|
||||||
|
|||||||
@@ -2,41 +2,23 @@ namespace Http
|
|||||||
|
|
||||||
class HttpRouter
|
class HttpRouter
|
||||||
|
|
||||||
|
' [{
|
||||||
|
' method: "GET"
|
||||||
|
' path: "/example"
|
||||||
|
' router: router as HttpRouter
|
||||||
|
' func: func as string
|
||||||
|
' }]
|
||||||
private routes
|
private routes
|
||||||
|
|
||||||
function new()
|
function new()
|
||||||
m.routes = []
|
m.routes = []
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function Get(path as string, handler as function)
|
|
||||||
m.routes.push({ method: "GET", path: path, handler: handler })
|
|
||||||
end function
|
|
||||||
|
|
||||||
function Head(path as string, handler as function)
|
|
||||||
m.routes.push({ method: "HEAD", path: path, handler: handler })
|
|
||||||
end function
|
|
||||||
|
|
||||||
function Post(path as string, handler as function)
|
|
||||||
m.routes.push({ method: "POST", path: path, handler: handler })
|
|
||||||
end function
|
|
||||||
|
|
||||||
function Put(path as string, handler as function)
|
|
||||||
m.routes.push({ method: "PUT", path: path, handler: handler })
|
|
||||||
end function
|
|
||||||
|
|
||||||
function Delete(path as string, handler as function)
|
|
||||||
m.routes.push({ method: "DELETE", path: path, handler: handler })
|
|
||||||
end function
|
|
||||||
|
|
||||||
function All(path as string, handler as function)
|
|
||||||
m.routes.push({ method: "*", path: path, handler: handler })
|
|
||||||
end function
|
|
||||||
|
|
||||||
private function OnRequest(request as object, response as HttpResponse, connection as HttpConnection) as boolean
|
private function OnRequest(request as object, response as HttpResponse, connection as HttpConnection) as boolean
|
||||||
for each route in m.routes
|
for each route in m.routes
|
||||||
if m.RouteMatchesRequest(route, request)
|
if m.RouteMatchesRequest(route, request)
|
||||||
if route.handler({
|
try
|
||||||
router: m
|
if route.router[route.func]({
|
||||||
request: request
|
request: request
|
||||||
response: response
|
response: response
|
||||||
connection: connection
|
connection: connection
|
||||||
@@ -44,6 +26,12 @@ namespace Http
|
|||||||
}) = true
|
}) = true
|
||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
|
catch error
|
||||||
|
formattedError = ErrorUtils.Format(error)
|
||||||
|
LogError(formattedError)
|
||||||
|
response.Default(500, formattedError)
|
||||||
|
return true
|
||||||
|
end try
|
||||||
end if
|
end if
|
||||||
end for
|
end for
|
||||||
return false
|
return false
|
||||||
|
|||||||
@@ -11,14 +11,16 @@ namespace Http
|
|||||||
m.origin = origin
|
m.origin = origin
|
||||||
m.headers = headers
|
m.headers = headers
|
||||||
m.methods = methods
|
m.methods = methods
|
||||||
|
end function
|
||||||
|
|
||||||
m.All("*", function(context as object) as boolean
|
@all("*")
|
||||||
router = context.router
|
function AddAccessControlHeaders(context as object) as boolean
|
||||||
request = context.request
|
request = context.request
|
||||||
response = context.response
|
response = context.response
|
||||||
response.headers["Access-Control-Allow-Origin"] = router.origin
|
|
||||||
response.headers["Access-Control-Allow-Headers"] = router.headers
|
response.headers["Access-Control-Allow-Origin"] = m.origin
|
||||||
response.headers["Access-Control-Allow-Methods"] = router.methods
|
response.headers["Access-Control-Allow-Headers"] = m.headers
|
||||||
|
response.headers["Access-Control-Allow-Methods"] = m.methods
|
||||||
|
|
||||||
if request.method = "OPTIONS"
|
if request.method = "OPTIONS"
|
||||||
response.header_only = true
|
response.header_only = true
|
||||||
@@ -26,9 +28,7 @@ namespace Http
|
|||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
return false
|
return false
|
||||||
end function)
|
|
||||||
end function
|
end function
|
||||||
|
|
||||||
end class
|
end class
|
||||||
|
|
||||||
end namespace
|
end namespace
|
||||||
@@ -11,9 +11,10 @@ namespace Http
|
|||||||
super()
|
super()
|
||||||
|
|
||||||
m.etags = etags
|
m.etags = etags
|
||||||
|
end function
|
||||||
|
|
||||||
m.Get("*", function(context as object) as boolean
|
@get("*")
|
||||||
router = context.router
|
function HandleEtag(context as object) as boolean
|
||||||
request = context.request
|
request = context.request
|
||||||
response = context.response
|
response = context.response
|
||||||
|
|
||||||
@@ -21,11 +22,10 @@ namespace Http
|
|||||||
return false
|
return false
|
||||||
end if
|
end if
|
||||||
|
|
||||||
router.etags.AddEtagFromBody(request, response)
|
m.etags.AddEtagFromBody(request, response)
|
||||||
router.etags.ClearContentIfNoneMatch(request, response)
|
m.etags.ClearContentIfNoneMatch(request, response)
|
||||||
|
|
||||||
return false
|
return false
|
||||||
end function)
|
|
||||||
end function
|
end function
|
||||||
|
|
||||||
end class
|
end class
|
||||||
|
|||||||
@@ -11,6 +11,11 @@ namespace Http
|
|||||||
return false
|
return false
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
cacheControl = response.headers["Cache-Control"]
|
||||||
|
if IsString(cacheControl) and cacheControl.instr("no-cache") <> -1
|
||||||
|
return false
|
||||||
|
end if
|
||||||
|
|
||||||
etag = response.headers["ETag"]
|
etag = response.headers["ETag"]
|
||||||
if not StringUtils.IsNullOrEmpty(etag)
|
if not StringUtils.IsNullOrEmpty(etag)
|
||||||
return false
|
return false
|
||||||
@@ -42,6 +47,11 @@ namespace Http
|
|||||||
return false
|
return false
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
cacheControl = response.headers["Cache-Control"]
|
||||||
|
if IsString(cacheControl) and cacheControl.instr("no-cache") <> -1
|
||||||
|
return false
|
||||||
|
end if
|
||||||
|
|
||||||
etag = response.headers["ETag"]
|
etag = response.headers["ETag"]
|
||||||
if not StringUtils.IsNullOrEmpty(etag)
|
if not StringUtils.IsNullOrEmpty(etag)
|
||||||
return false
|
return false
|
||||||
|
|||||||
@@ -4,8 +4,10 @@ namespace Http
|
|||||||
|
|
||||||
function new()
|
function new()
|
||||||
super()
|
super()
|
||||||
|
end function
|
||||||
|
|
||||||
m.All("*", function(context as object) as boolean
|
@all("*")
|
||||||
|
function HandleDefault(context as object) as boolean
|
||||||
request = context.request
|
request = context.request
|
||||||
response = context.response
|
response = context.response
|
||||||
|
|
||||||
@@ -19,9 +21,7 @@ namespace Http
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
return true
|
return true
|
||||||
end function)
|
|
||||||
end function
|
end function
|
||||||
|
|
||||||
end class
|
end class
|
||||||
|
|
||||||
end namespace
|
end namespace
|
||||||
@@ -30,33 +30,34 @@ namespace Http
|
|||||||
m.fsCheck = ValidBool(options.fsCheck)
|
m.fsCheck = ValidBool(options.fsCheck)
|
||||||
' staticFiles: if true, Etag tags will be cached to skip reading the file entirely.
|
' staticFiles: if true, Etag tags will be cached to skip reading the file entirely.
|
||||||
m.staticFiles = ValidBool(options.staticFiles)
|
m.staticFiles = ValidBool(options.staticFiles)
|
||||||
|
end function
|
||||||
|
|
||||||
m.Get("*", function(context as object) as boolean
|
@get("*")
|
||||||
router = context.router
|
function GetFileOrFolder(context as object) as boolean
|
||||||
request = context.request
|
request = context.request
|
||||||
response = context.response
|
response = context.response
|
||||||
server = context.server
|
server = context.server
|
||||||
|
|
||||||
if not request.route.StartsWith(router.route)
|
if not request.route.StartsWith(m.route)
|
||||||
return false
|
return false
|
||||||
end if
|
end if
|
||||||
|
|
||||||
path_in_route = request.route.Mid(router.route.Len())
|
path_in_route = request.route.Mid(m.route.Len())
|
||||||
|
|
||||||
decoded_path = path_in_route.DecodeUri()
|
decoded_path = path_in_route.DecodeUri()
|
||||||
full_path = StringUtils.PathJoin(router.root, decoded_path)
|
full_path = StringUtils.PathJoin(m.root, decoded_path)
|
||||||
|
|
||||||
if router.staticFiles
|
if m.staticFiles
|
||||||
' Although we have an Etag middleware, having a check here allows us to
|
' Although we have an Etag middleware, having a check here allows us to
|
||||||
' skip reading the file entirely if the Etag matches.
|
' skip reading the file entirely if the Etag matches.
|
||||||
if router.etags.AddFileEtagFromCache(request, response, full_path)
|
if m.etags.AddFileEtagFromCache(request, response, full_path)
|
||||||
if router.etags.ClearContentIfNoneMatch(request, response)
|
if m.etags.ClearContentIfNoneMatch(request, response)
|
||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
|
|
||||||
if not router.fsCheck
|
if not m.fsCheck
|
||||||
' libpkg:/ does not work with roFilesystem...
|
' libpkg:/ does not work with roFilesystem...
|
||||||
buffer = createObject("roByteArray")
|
buffer = createObject("roByteArray")
|
||||||
if buffer.ReadFile(full_path) and buffer.count() > 0
|
if buffer.ReadFile(full_path) and buffer.count() > 0
|
||||||
@@ -65,8 +66,8 @@ namespace Http
|
|||||||
response.ContentType(mimetype)
|
response.ContentType(mimetype)
|
||||||
response.http_code = 200
|
response.http_code = 200
|
||||||
|
|
||||||
if router.staticFiles
|
if m.staticFiles
|
||||||
router.etags.AddEtagFromBody(request, response, full_path)
|
m.etags.AddEtagFromBody(request, response, full_path)
|
||||||
end if
|
end if
|
||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
@@ -90,14 +91,14 @@ namespace Http
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
if stat.type = "directory"
|
if stat.type = "directory"
|
||||||
if not router.showDirectories
|
if not m.showDirectories
|
||||||
response.Default(403, "Forbidden")
|
response.Default(403, "Forbidden")
|
||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
response.ContentType("text/html")
|
response.ContentType("text/html")
|
||||||
router.GenerateDirectoryListing(path, router, request, response)
|
m.GenerateDirectoryListing(path, request, response)
|
||||||
if router.staticFiles
|
if m.staticFiles
|
||||||
router.etags.AddEtagFromBody(request, response, full_path)
|
m.etags.AddEtagFromBody(request, response, full_path)
|
||||||
end if
|
end if
|
||||||
return true
|
return true
|
||||||
else if stat.type = "file"
|
else if stat.type = "file"
|
||||||
@@ -106,22 +107,21 @@ namespace Http
|
|||||||
response.SetBodyDataFile(path)
|
response.SetBodyDataFile(path)
|
||||||
response.http_code = 200
|
response.http_code = 200
|
||||||
LogInfo("uri:", request.uri, "target:", path, "content-type:", mimetype, "content-length", stat.size)
|
LogInfo("uri:", request.uri, "target:", path, "content-type:", mimetype, "content-length", stat.size)
|
||||||
if router.staticFiles
|
if m.staticFiles
|
||||||
router.etags.AddEtagFromBody(request, response, full_path)
|
m.etags.AddEtagFromBody(request, response, full_path)
|
||||||
end if
|
end if
|
||||||
return true
|
return true
|
||||||
else
|
else
|
||||||
response.Default(403, "Not a regular file.")
|
response.Default(403, "Not a regular file.")
|
||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
end function)
|
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function GenerateDirectoryListing(path as object, router as object, request as HttpRequest, response as HttpResponse) as boolean
|
function GenerateDirectoryListing(path as object, request as HttpRequest, response as HttpResponse) as boolean
|
||||||
fs = CreateObject("roFilesystem")
|
fs = CreateObject("roFilesystem")
|
||||||
dirList = fs.GetDirectoryListing(path)
|
dirList = fs.GetDirectoryListing(path)
|
||||||
if dirList = invalid
|
if dirList = invalid
|
||||||
response.default(500, "Couldn't list directory")
|
response.Default(500, "Couldn't list directory")
|
||||||
return false
|
return false
|
||||||
end if
|
end if
|
||||||
|
|
||||||
@@ -151,7 +151,7 @@ namespace Http
|
|||||||
uriDir = uriDir + "/"
|
uriDir = uriDir + "/"
|
||||||
end if
|
end if
|
||||||
|
|
||||||
routeDir = router.route
|
routeDir = m.route
|
||||||
if routeDir.len() > 0 and routeDir.right(1) <> "/"
|
if routeDir.len() > 0 and routeDir.right(1) <> "/"
|
||||||
routeDir = routeDir + "/"
|
routeDir = routeDir + "/"
|
||||||
end if
|
end if
|
||||||
@@ -162,7 +162,7 @@ namespace Http
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
for each item in dirList
|
for each item in dirList
|
||||||
if router.showHidden or item.left(1) <> "."
|
if m.showHidden or item.left(1) <> "."
|
||||||
indicator = invalid
|
indicator = invalid
|
||||||
stat = fs.stat(dir + item)
|
stat = fs.stat(dir + item)
|
||||||
if stat <> invalid
|
if stat <> invalid
|
||||||
|
|||||||
@@ -8,8 +8,10 @@ namespace Http
|
|||||||
|
|
||||||
function new()
|
function new()
|
||||||
super()
|
super()
|
||||||
|
end function
|
||||||
|
|
||||||
m.Get("*", function(context as object) as boolean
|
@get("*")
|
||||||
|
function HandleWebSocketHeaders(context as object) as boolean
|
||||||
request = context.request
|
request = context.request
|
||||||
response = context.response
|
response = context.response
|
||||||
connection = context.connection
|
connection = context.connection
|
||||||
@@ -43,7 +45,6 @@ namespace Http
|
|||||||
connection.ws_upgrade = true
|
connection.ws_upgrade = true
|
||||||
|
|
||||||
return true
|
return true
|
||||||
end function)
|
|
||||||
end function
|
end function
|
||||||
|
|
||||||
end class
|
end class
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import "pkg:/source/utils/NodePathUtils.bs"
|
||||||
|
|
||||||
' Bind all nodes that registered for auto-binding
|
' Bind all nodes that registered for auto-binding
|
||||||
' Should be called once from a root node
|
' Should be called once from a root node
|
||||||
' Can be called later to rebind nodes that were added after the first call
|
' Can be called later to rebind nodes that were added after the first call
|
||||||
@@ -35,7 +37,7 @@ function BindNodeFieldsAndProps(_unused as dynamic) as void
|
|||||||
if node.getField(fieldId) <> invalid
|
if node.getField(fieldId) <> invalid
|
||||||
continue for
|
continue for
|
||||||
end if
|
end if
|
||||||
reference = FindNodeFromPath(node, bindings.fields[fieldId])
|
reference = NodePathUtils.FindNodeFromPath(node, bindings.fields[fieldId])
|
||||||
if reference <> invalid
|
if reference <> invalid
|
||||||
node[fieldId] = reference
|
node[fieldId] = reference
|
||||||
end if
|
end if
|
||||||
@@ -54,7 +56,7 @@ function BindNodeFieldsAndProps(_unused as dynamic) as void
|
|||||||
if child.getField(childPropId) <> invalid
|
if child.getField(childPropId) <> invalid
|
||||||
continue for
|
continue for
|
||||||
end if
|
end if
|
||||||
reference = FindNodeFromPath(child, childProps[childPropId])
|
reference = NodePathUtils.FindNodeFromPath(child, childProps[childPropId])
|
||||||
if reference <> invalid
|
if reference <> invalid
|
||||||
child[childPropId] = reference
|
child[childPropId] = reference
|
||||||
end if
|
end if
|
||||||
@@ -63,38 +65,6 @@ function BindNodeFieldsAndProps(_unused as dynamic) as void
|
|||||||
end if
|
end if
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function FindNodeFromPath(root as object, path as string) as object
|
|
||||||
node = root
|
|
||||||
|
|
||||||
if path.StartsWith("/")
|
|
||||||
node = node.getScene()
|
|
||||||
path = path.Mid(1)
|
|
||||||
end if
|
|
||||||
|
|
||||||
pathParts = path.Tokenize("/")
|
|
||||||
|
|
||||||
for i = 0 to pathParts.Count() - 1
|
|
||||||
if node = invalid
|
|
||||||
return invalid
|
|
||||||
end if
|
|
||||||
if pathParts[i] = "."
|
|
||||||
continue for
|
|
||||||
end if
|
|
||||||
if pathParts[i] = ".."
|
|
||||||
node = node.getParent()
|
|
||||||
continue for
|
|
||||||
end if
|
|
||||||
node = node.findNode(pathParts[i])
|
|
||||||
end for
|
|
||||||
|
|
||||||
if root.isSameNode(node)
|
|
||||||
' if a node is referencing itself, it's probably a mistake
|
|
||||||
return invalid
|
|
||||||
end if
|
|
||||||
|
|
||||||
return node
|
|
||||||
end function
|
|
||||||
|
|
||||||
' Create scoped fields (m.fieldName) for all fields in this node
|
' Create scoped fields (m.fieldName) for all fields in this node
|
||||||
' To be called after BindNodeFieldsAndProps
|
' To be called after BindNodeFieldsAndProps
|
||||||
function BindScopeFields(_unused as dynamic)
|
function BindScopeFields(_unused as dynamic)
|
||||||
|
|||||||
@@ -2,4 +2,5 @@
|
|||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
InitializeBindings() ' auto-generated!
|
InitializeBindings() ' auto-generated!
|
||||||
end function'//# sourceMappingURL=./AutoBindNode1.bs.map
|
end function
|
||||||
|
'//# sourceMappingURL=./AutoBindNode1.brs.map
|
||||||
@@ -12,6 +12,7 @@
|
|||||||
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/tests/AutoBindNode1_bindings.brs" />
|
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/tests/AutoBindNode1_bindings.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/tests/AutoBindNode1.brs" />
|
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/tests/AutoBindNode1.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/OnNodeReadyNoOp.brs" />
|
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/OnNodeReadyNoOp.brs" />
|
||||||
|
<script type="text/brightscript" uri="pkg:/source/utils/NodePathUtils.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/source/bslib.brs" />
|
<script type="text/brightscript" uri="pkg:/source/bslib.brs" />
|
||||||
<children>
|
<children>
|
||||||
<AutoBindNode2 id="AutoBindNode2" />
|
<AutoBindNode2 id="AutoBindNode2" />
|
||||||
|
|||||||
+2
-1
@@ -2,4 +2,5 @@
|
|||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
InitializeBindings() ' auto-generated!
|
InitializeBindings() ' auto-generated!
|
||||||
end function'//# sourceMappingURL=./AutoBindNode1Container.bs.map
|
end function
|
||||||
|
'//# sourceMappingURL=./AutoBindNode1Container.brs.map
|
||||||
@@ -10,6 +10,7 @@
|
|||||||
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/tests/AutoBindNode1Container_bindings.brs" />
|
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/tests/AutoBindNode1Container_bindings.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/tests/AutoBindNode1Container.brs" />
|
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/tests/AutoBindNode1Container.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/OnNodeReadyNoOp.brs" />
|
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/OnNodeReadyNoOp.brs" />
|
||||||
|
<script type="text/brightscript" uri="pkg:/source/utils/NodePathUtils.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/source/bslib.brs" />
|
<script type="text/brightscript" uri="pkg:/source/bslib.brs" />
|
||||||
<children>
|
<children>
|
||||||
<AutoBindNode1 id="AutoBindNode1" reference2=".." />
|
<AutoBindNode1 id="AutoBindNode1" reference2=".." />
|
||||||
|
|||||||
+2
-1
@@ -8,4 +8,5 @@ function InitializeBindings()
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
end function'//# sourceMappingURL=./AutoBindNode1Container_bindings.bs.map
|
end function
|
||||||
|
'//# sourceMappingURL=./AutoBindNode1Container_bindings.brs.map
|
||||||
+2
-1
@@ -8,4 +8,5 @@ function InitializeBindings()
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
end function'//# sourceMappingURL=./AutoBindNode1_bindings.bs.map
|
end function
|
||||||
|
'//# sourceMappingURL=./AutoBindNode1_bindings.brs.map
|
||||||
@@ -2,4 +2,5 @@
|
|||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
InitializeBindings() ' auto-generated!
|
InitializeBindings() ' auto-generated!
|
||||||
end function'//# sourceMappingURL=./AutoBindNode2.bs.map
|
end function
|
||||||
|
'//# sourceMappingURL=./AutoBindNode2.brs.map
|
||||||
@@ -12,6 +12,7 @@
|
|||||||
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/tests/AutoBindNode2_bindings.brs" />
|
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/tests/AutoBindNode2_bindings.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/tests/AutoBindNode2.brs" />
|
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/tests/AutoBindNode2.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/OnNodeReadyNoOp.brs" />
|
<script type="text/brightscript" uri="pkg:/components/parts/AutoBind/OnNodeReadyNoOp.brs" />
|
||||||
|
<script type="text/brightscript" uri="pkg:/source/utils/NodePathUtils.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/source/bslib.brs" />
|
<script type="text/brightscript" uri="pkg:/source/bslib.brs" />
|
||||||
</component>
|
</component>
|
||||||
<!--//# sourceMappingURL=./AutoBindNode2.xml.map -->
|
<!--//# sourceMappingURL=./AutoBindNode2.xml.map -->
|
||||||
+2
-1
@@ -9,4 +9,5 @@ function InitializeBindings()
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
end function'//# sourceMappingURL=./AutoBindNode2_bindings.bs.map
|
end function
|
||||||
|
'//# sourceMappingURL=./AutoBindNode2_bindings.brs.map
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 9.6 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 7.3 KiB |
@@ -3,7 +3,7 @@ title=PlayletLib
|
|||||||
# Do not update version manually, it is auto updated from package.json
|
# Do not update version manually, it is auto updated from package.json
|
||||||
major_version=0
|
major_version=0
|
||||||
minor_version=19
|
minor_version=19
|
||||||
build_version=00001
|
build_version=00002
|
||||||
|
|
||||||
ui_resolutions=hd
|
ui_resolutions=hd
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ namespace Tests
|
|||||||
class ApplicationInfoTests extends Rooibos.BaseTestSuite
|
class ApplicationInfoTests extends Rooibos.BaseTestSuite
|
||||||
|
|
||||||
protected override function setup()
|
protected override function setup()
|
||||||
m.ipAddressRegex = CreateObject("roRegex", "\d+\.\d+\.\d+.\d+", "")
|
m.ipAddressRegex = /\d+\.\d+\.\d+.\d+/
|
||||||
end function
|
end function
|
||||||
|
|
||||||
protected override function beforeEach()
|
protected override function beforeEach()
|
||||||
|
|||||||
@@ -242,6 +242,11 @@ namespace HttpClient
|
|||||||
return m
|
return m
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
function UseHttp2() as HttpRequest
|
||||||
|
m._useHttp2 = true
|
||||||
|
return m
|
||||||
|
end function
|
||||||
|
|
||||||
function Cancellation(cancellation as object) as HttpRequest
|
function Cancellation(cancellation as object) as HttpRequest
|
||||||
m._cancellation = cancellation
|
m._cancellation = cancellation
|
||||||
return m
|
return m
|
||||||
@@ -261,6 +266,10 @@ namespace HttpClient
|
|||||||
command += ` \\\n --compressed`
|
command += ` \\\n --compressed`
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
if m._useHttp2 = true
|
||||||
|
command += ` \\\n --http2`
|
||||||
|
end if
|
||||||
|
|
||||||
if m._headers <> invalid
|
if m._headers <> invalid
|
||||||
for each key in m._headers
|
for each key in m._headers
|
||||||
command += ` \\\n -H '${key}: ${m._headers[key]}'`
|
command += ` \\\n -H '${key}: ${m._headers[key]}'`
|
||||||
@@ -489,6 +498,11 @@ namespace HttpClient
|
|||||||
urlTransfer.SetCertificatesFile("common:/certs/ca-bundle.crt")
|
urlTransfer.SetCertificatesFile("common:/certs/ca-bundle.crt")
|
||||||
urlTransfer.InitClientCertificates()
|
urlTransfer.InitClientCertificates()
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
if m._useHttp2 = true
|
||||||
|
urlTransfer.SetHttpVersion("http2")
|
||||||
|
end if
|
||||||
|
|
||||||
return urlTransfer
|
return urlTransfer
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,17 @@ class XmlObject
|
|||||||
end if
|
end if
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
function TextNode(name as string, text as string, attributes = invalid as object)
|
||||||
|
m.Node(name, attributes)
|
||||||
|
m.Text(text)
|
||||||
|
m.End()
|
||||||
|
end function
|
||||||
|
|
||||||
|
function EmptyNode(name as string, attributes = invalid as object)
|
||||||
|
m.Node(name, attributes)
|
||||||
|
m.End()
|
||||||
|
end function
|
||||||
|
|
||||||
function End()
|
function End()
|
||||||
m.stack.pop()
|
m.stack.pop()
|
||||||
end function
|
end function
|
||||||
|
|||||||
@@ -49,7 +49,8 @@ end function
|
|||||||
|
|
||||||
function AssocArrayToString(dict as object) as string
|
function AssocArrayToString(dict as object) as string
|
||||||
result = "{"
|
result = "{"
|
||||||
count = dict.count()
|
' This is in case the dictionary has a `count` key
|
||||||
|
count = dict.ifAssociativeArray.count()
|
||||||
i = 0
|
i = 0
|
||||||
for each key in dict
|
for each key in dict
|
||||||
result += key + ": " + ToString(dict[key])
|
result += key + ": " + ToString(dict[key])
|
||||||
|
|||||||
@@ -0,0 +1,35 @@
|
|||||||
|
namespace NodePathUtils
|
||||||
|
|
||||||
|
function FindNodeFromPath(root as object, path as string) as object
|
||||||
|
node = root
|
||||||
|
|
||||||
|
if path.StartsWith("/")
|
||||||
|
node = node.getScene()
|
||||||
|
path = path.Mid(1)
|
||||||
|
end if
|
||||||
|
|
||||||
|
pathParts = path.Tokenize("/")
|
||||||
|
|
||||||
|
for i = 0 to pathParts.Count() - 1
|
||||||
|
if node = invalid
|
||||||
|
return invalid
|
||||||
|
end if
|
||||||
|
if pathParts[i] = "."
|
||||||
|
continue for
|
||||||
|
end if
|
||||||
|
if pathParts[i] = ".."
|
||||||
|
node = node.getParent()
|
||||||
|
continue for
|
||||||
|
end if
|
||||||
|
node = node.findNode(pathParts[i])
|
||||||
|
end for
|
||||||
|
|
||||||
|
if root.isSameNode(node)
|
||||||
|
' if a node is referencing itself, it's probably a mistake
|
||||||
|
return invalid
|
||||||
|
end if
|
||||||
|
|
||||||
|
return node
|
||||||
|
end function
|
||||||
|
|
||||||
|
end namespace
|
||||||
@@ -13,24 +13,24 @@ namespace RegistryUtils
|
|||||||
' "invidious_instances" is deprecated, but we keep for migration purposes
|
' "invidious_instances" is deprecated, but we keep for migration purposes
|
||||||
const INVIDIOUS_INSTANCES = "invidious_instances"
|
const INVIDIOUS_INSTANCES = "invidious_instances"
|
||||||
|
|
||||||
function Read(key as string, section = DEFAULT_SECTION as string) as dynamic
|
function Read(key as string, sectionName = DEFAULT_SECTION as string) as dynamic
|
||||||
sec = CreateObject("roRegistrySection", section)
|
section = CreateObject("roRegistrySection", sectionName)
|
||||||
if sec.Exists(key)
|
if section.Exists(key)
|
||||||
return sec.Read(key)
|
return section.Read(key)
|
||||||
end if
|
end if
|
||||||
return invalid
|
return invalid
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function Write(key as string, value as string, section = DEFAULT_SECTION as string)
|
function Write(key as string, value as string, sectionName = DEFAULT_SECTION as string)
|
||||||
sec = CreateObject("roRegistrySection", section)
|
section = CreateObject("roRegistrySection", sectionName)
|
||||||
sec.Write(key, value)
|
section.Write(key, value)
|
||||||
sec.Flush()
|
section.Flush()
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function Delete(key as string, section = DEFAULT_SECTION as string)
|
function Delete(key as string, sectionName = DEFAULT_SECTION as string)
|
||||||
sec = CreateObject("roRegistrySection", section)
|
section = CreateObject("roRegistrySection", sectionName)
|
||||||
sec.Delete(key)
|
section.Delete(key)
|
||||||
sec.Flush()
|
section.Flush()
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function ReadAll() as object
|
function ReadAll() as object
|
||||||
@@ -46,4 +46,22 @@ namespace RegistryUtils
|
|||||||
return result
|
return result
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
function WriteAll(values as object) as void
|
||||||
|
DeleteAll()
|
||||||
|
for each sectionName in values
|
||||||
|
section = CreateObject("roRegistrySection", sectionName)
|
||||||
|
section.WriteMulti(values[sectionName])
|
||||||
|
section.Flush()
|
||||||
|
end for
|
||||||
|
end function
|
||||||
|
|
||||||
|
function DeleteAll() as void
|
||||||
|
registry = CreateObject("roRegistry")
|
||||||
|
sectionNames = registry.GetSectionList()
|
||||||
|
for each sectionName in sectionNames
|
||||||
|
registry.Delete(sectionName)
|
||||||
|
end for
|
||||||
|
registry.Flush()
|
||||||
|
end function
|
||||||
|
|
||||||
end namespace
|
end namespace
|
||||||
Generated
+250
-276
@@ -1,31 +1,31 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-web",
|
"name": "playlet-web",
|
||||||
"version": "0.19.1",
|
"version": "0.19.2",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "playlet-web",
|
"name": "playlet-web",
|
||||||
"version": "0.19.1",
|
"version": "0.19.2",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sveltejs/vite-plugin-svelte": "^3.0.1",
|
"@sveltejs/vite-plugin-svelte": "^3.0.2",
|
||||||
"@tailwindcss/typography": "^0.5.10",
|
"@tailwindcss/typography": "^0.5.10",
|
||||||
"@tsconfig/svelte": "^5.0.2",
|
"@tsconfig/svelte": "^5.0.2",
|
||||||
"@vitejs/plugin-legacy": "^5.2.0",
|
"@vitejs/plugin-legacy": "^5.3.0",
|
||||||
"autoprefixer": "^10.4.16",
|
"autoprefixer": "^10.4.17",
|
||||||
"daisyui": "^4.6.0",
|
"daisyui": "^4.6.2",
|
||||||
"dotenv": "^16.3.1",
|
"dotenv": "^16.4.1",
|
||||||
"ip": "^1.1.8",
|
"ip": "^1.1.8",
|
||||||
"postcss": "^8.4.33",
|
"postcss": "^8.4.35",
|
||||||
"svelte": "^4.2.8",
|
"svelte": "^4.2.10",
|
||||||
"svelte-check": "^3.6.3",
|
"svelte-check": "^3.6.4",
|
||||||
"svelte-preprocess": "^5.1.3",
|
"svelte-preprocess": "^5.1.3",
|
||||||
"tailwindcss": "^3.4.1",
|
"tailwindcss": "^3.4.1",
|
||||||
"terser": "^5.26.0",
|
"terser": "^5.27.0",
|
||||||
"tslib": "^2.6.2",
|
"tslib": "^2.6.2",
|
||||||
"typescript": "^5.3.3",
|
"typescript": "^5.3.3",
|
||||||
"vite": "^5.0.11",
|
"vite": "^5.1.1",
|
||||||
"vite-tsconfig-paths": "^4.2.3"
|
"vite-tsconfig-paths": "^4.3.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@alloc/quick-lru": {
|
"node_modules/@alloc/quick-lru": {
|
||||||
@@ -66,44 +66,6 @@
|
|||||||
"node": ">=6.9.0"
|
"node": ">=6.9.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/code-frame/node_modules/ansi-styles": {
|
|
||||||
"version": "3.2.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
|
|
||||||
"integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"color-convert": "^1.9.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@babel/code-frame/node_modules/chalk": {
|
|
||||||
"version": "2.4.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
|
|
||||||
"integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"ansi-styles": "^3.2.1",
|
|
||||||
"escape-string-regexp": "^1.0.5",
|
|
||||||
"supports-color": "^5.3.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@babel/code-frame/node_modules/supports-color": {
|
|
||||||
"version": "5.5.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
|
|
||||||
"integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"has-flag": "^3.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@babel/compat-data": {
|
"node_modules/@babel/compat-data": {
|
||||||
"version": "7.23.5",
|
"version": "7.23.5",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.5.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.5.tgz",
|
||||||
@@ -114,9 +76,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/core": {
|
"node_modules/@babel/core": {
|
||||||
"version": "7.23.6",
|
"version": "7.23.9",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.6.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.9.tgz",
|
||||||
"integrity": "sha512-FxpRyGjrMJXh7X3wGLGhNDCRiwpWEF74sKjTLDJSG5Kyvow3QZaG0Adbqzi9ZrVjTWpsX+2cxWXD71NMg93kdw==",
|
"integrity": "sha512-5q0175NOjddqpvvzU+kDiSOAk4PfdO6FvwCWoQ6RO7rTzEe8vlo+4HVfcnAREhD4npMs0e9uZypjTwzZPCf/cw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ampproject/remapping": "^2.2.0",
|
"@ampproject/remapping": "^2.2.0",
|
||||||
@@ -124,11 +86,11 @@
|
|||||||
"@babel/generator": "^7.23.6",
|
"@babel/generator": "^7.23.6",
|
||||||
"@babel/helper-compilation-targets": "^7.23.6",
|
"@babel/helper-compilation-targets": "^7.23.6",
|
||||||
"@babel/helper-module-transforms": "^7.23.3",
|
"@babel/helper-module-transforms": "^7.23.3",
|
||||||
"@babel/helpers": "^7.23.6",
|
"@babel/helpers": "^7.23.9",
|
||||||
"@babel/parser": "^7.23.6",
|
"@babel/parser": "^7.23.9",
|
||||||
"@babel/template": "^7.22.15",
|
"@babel/template": "^7.23.9",
|
||||||
"@babel/traverse": "^7.23.6",
|
"@babel/traverse": "^7.23.9",
|
||||||
"@babel/types": "^7.23.6",
|
"@babel/types": "^7.23.9",
|
||||||
"convert-source-map": "^2.0.0",
|
"convert-source-map": "^2.0.0",
|
||||||
"debug": "^4.1.0",
|
"debug": "^4.1.0",
|
||||||
"gensync": "^1.0.0-beta.2",
|
"gensync": "^1.0.0-beta.2",
|
||||||
@@ -199,9 +161,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/helper-create-class-features-plugin": {
|
"node_modules/@babel/helper-create-class-features-plugin": {
|
||||||
"version": "7.23.6",
|
"version": "7.23.9",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.23.6.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.23.9.tgz",
|
||||||
"integrity": "sha512-cBXU1vZni/CpGF29iTu4YRbOZt3Wat6zCoMDxRF1MayiEc4URxOj31tT65HUM0CRpMowA3HCJaAOVOUnMf96cw==",
|
"integrity": "sha512-B2L9neXTIyPQoXDm+NtovPvG6VOLWnaXu3BIeVDWwdKFgG30oNa6CqVGiJPDWQwIAK49t9gnQI9c6K6RzabiKw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/helper-annotate-as-pure": "^7.22.5",
|
"@babel/helper-annotate-as-pure": "^7.22.5",
|
||||||
@@ -239,9 +201,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/helper-define-polyfill-provider": {
|
"node_modules/@babel/helper-define-polyfill-provider": {
|
||||||
"version": "0.4.4",
|
"version": "0.5.0",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.4.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.5.0.tgz",
|
||||||
"integrity": "sha512-QcJMILQCu2jm5TFPGA3lCpJJTeEP+mqeXooG/NZbg/h5FTFi6V0+99ahlRsW8/kRLyb24LZVCCiclDedhLKcBA==",
|
"integrity": "sha512-NovQquuQLAQ5HuyjCz7WQP9MjRj7dx++yspwiyUiGl9ZyadHRSql1HZh5ogRd8W8w6YM6EQ/NTB8rgjLt5W65Q==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/helper-compilation-targets": "^7.22.6",
|
"@babel/helper-compilation-targets": "^7.22.6",
|
||||||
@@ -464,14 +426,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/helpers": {
|
"node_modules/@babel/helpers": {
|
||||||
"version": "7.23.6",
|
"version": "7.23.9",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.6.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.9.tgz",
|
||||||
"integrity": "sha512-wCfsbN4nBidDRhpDhvcKlzHWCTlgJYUUdSJfzXb2NuBssDSIjc3xcb+znA7l+zYsFljAcGM0aFkN40cR3lXiGA==",
|
"integrity": "sha512-87ICKgU5t5SzOT7sBMfCOZQ2rHjRU+Pcb9BoILMYz600W6DkVRLFBPwQ18gwUVvggqXivaUakpnxWQGbpywbBQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/template": "^7.22.15",
|
"@babel/template": "^7.23.9",
|
||||||
"@babel/traverse": "^7.23.6",
|
"@babel/traverse": "^7.23.9",
|
||||||
"@babel/types": "^7.23.6"
|
"@babel/types": "^7.23.9"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.9.0"
|
"node": ">=6.9.0"
|
||||||
@@ -491,54 +453,10 @@
|
|||||||
"node": ">=6.9.0"
|
"node": ">=6.9.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/highlight/node_modules/ansi-styles": {
|
|
||||||
"version": "3.2.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
|
|
||||||
"integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"color-convert": "^1.9.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@babel/highlight/node_modules/chalk": {
|
|
||||||
"version": "2.4.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
|
|
||||||
"integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"ansi-styles": "^3.2.1",
|
|
||||||
"escape-string-regexp": "^1.0.5",
|
|
||||||
"supports-color": "^5.3.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@babel/highlight/node_modules/js-tokens": {
|
|
||||||
"version": "4.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
|
|
||||||
"integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"node_modules/@babel/highlight/node_modules/supports-color": {
|
|
||||||
"version": "5.5.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
|
|
||||||
"integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"has-flag": "^3.0.0"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@babel/parser": {
|
"node_modules/@babel/parser": {
|
||||||
"version": "7.23.6",
|
"version": "7.23.9",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.6.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.9.tgz",
|
||||||
"integrity": "sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==",
|
"integrity": "sha512-9tcKgqKbs3xGJ+NtKF2ndOBBLVwPjl1SHxPQkd36r3Dlirw3xWUeGaTbqr7uGZcTaxkVNwc+03SVP7aCdWrTlA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"parser": "bin/babel-parser.js"
|
"parser": "bin/babel-parser.js"
|
||||||
@@ -580,9 +498,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": {
|
"node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": {
|
||||||
"version": "7.23.3",
|
"version": "7.23.7",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.23.3.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.23.7.tgz",
|
||||||
"integrity": "sha512-XaJak1qcityzrX0/IU5nKHb34VaibwP3saKqG6a/tppelgllOH13LUann4ZCIBcVOeE6H18K4Vx9QKkVww3z/w==",
|
"integrity": "sha512-LlRT7HgaifEpQA1ZgLVOIJZZFVPWN5iReq/7/JixwBtwcoeVGDBD53ZV28rrsLYOZs1Y/EHhA8N/Z6aazHR8cw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/helper-environment-visitor": "^7.22.20",
|
"@babel/helper-environment-visitor": "^7.22.20",
|
||||||
@@ -858,9 +776,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/plugin-transform-async-generator-functions": {
|
"node_modules/@babel/plugin-transform-async-generator-functions": {
|
||||||
"version": "7.23.4",
|
"version": "7.23.9",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.23.4.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.23.9.tgz",
|
||||||
"integrity": "sha512-efdkfPhHYTtn0G6n2ddrESE91fgXxjlqLsnUtPWnJs4a4mZIbUaK7ffqKIIUKXSHwcDvaCVX6GXkaJJFqtX7jw==",
|
"integrity": "sha512-8Q3veQEDGe14dTYuwagbRtwxQDnytyg1JFu4/HwEMETeofocrB0U0ejBJIXoeG/t2oXZ8kzCyI0ZZfbT80VFNQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/helper-environment-visitor": "^7.22.20",
|
"@babel/helper-environment-visitor": "^7.22.20",
|
||||||
@@ -956,16 +874,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/plugin-transform-classes": {
|
"node_modules/@babel/plugin-transform-classes": {
|
||||||
"version": "7.23.5",
|
"version": "7.23.8",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.23.5.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.23.8.tgz",
|
||||||
"integrity": "sha512-jvOTR4nicqYC9yzOHIhXG5emiFEOpappSJAl73SDSEDcybD+Puuze8Tnpb9p9qEyYup24tq891gkaygIFvWDqg==",
|
"integrity": "sha512-yAYslGsY1bX6Knmg46RjiCiNSwJKv2IUC8qOdYKqMMr0491SXFhcHqOdRDeCRohOOIzwN/90C6mQ9qAKgrP7dg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/helper-annotate-as-pure": "^7.22.5",
|
"@babel/helper-annotate-as-pure": "^7.22.5",
|
||||||
"@babel/helper-compilation-targets": "^7.22.15",
|
"@babel/helper-compilation-targets": "^7.23.6",
|
||||||
"@babel/helper-environment-visitor": "^7.22.20",
|
"@babel/helper-environment-visitor": "^7.22.20",
|
||||||
"@babel/helper-function-name": "^7.23.0",
|
"@babel/helper-function-name": "^7.23.0",
|
||||||
"@babel/helper-optimise-call-expression": "^7.22.5",
|
|
||||||
"@babel/helper-plugin-utils": "^7.22.5",
|
"@babel/helper-plugin-utils": "^7.22.5",
|
||||||
"@babel/helper-replace-supers": "^7.22.20",
|
"@babel/helper-replace-supers": "^7.22.20",
|
||||||
"@babel/helper-split-export-declaration": "^7.22.6",
|
"@babel/helper-split-export-declaration": "^7.22.6",
|
||||||
@@ -978,15 +895,6 @@
|
|||||||
"@babel/core": "^7.0.0-0"
|
"@babel/core": "^7.0.0-0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/plugin-transform-classes/node_modules/globals": {
|
|
||||||
"version": "11.12.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz",
|
|
||||||
"integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==",
|
|
||||||
"dev": true,
|
|
||||||
"engines": {
|
|
||||||
"node": ">=4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@babel/plugin-transform-computed-properties": {
|
"node_modules/@babel/plugin-transform-computed-properties": {
|
||||||
"version": "7.23.3",
|
"version": "7.23.3",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.23.3.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.23.3.tgz",
|
||||||
@@ -1226,9 +1134,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/plugin-transform-modules-systemjs": {
|
"node_modules/@babel/plugin-transform-modules-systemjs": {
|
||||||
"version": "7.23.3",
|
"version": "7.23.9",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.23.3.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.23.9.tgz",
|
||||||
"integrity": "sha512-ZxyKGTkF9xT9YJuKQRo19ewf3pXpopuYQd8cDXqNzc3mUNbOME0RKMoZxviQk74hwzfQsEe66dE92MaZbdHKNQ==",
|
"integrity": "sha512-KDlPRM6sLo4o1FkiSlXoAa8edLXFsKKIda779fbLrvmeuc3itnjCtaO6RrtoaANsIJANj+Vk1zqbZIMhkCAHVw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/helper-hoist-variables": "^7.22.5",
|
"@babel/helper-hoist-variables": "^7.22.5",
|
||||||
@@ -1625,9 +1533,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/preset-env": {
|
"node_modules/@babel/preset-env": {
|
||||||
"version": "7.23.6",
|
"version": "7.23.9",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.23.6.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.23.9.tgz",
|
||||||
"integrity": "sha512-2XPn/BqKkZCpzYhUUNZ1ssXw7DcXfKQEjv/uXZUXgaebCMYmkEsfZ2yY+vv+xtXv50WmL5SGhyB6/xsWxIvvOQ==",
|
"integrity": "sha512-3kBGTNBBk9DQiPoXYS0g0BYlwTQYUTifqgKTjxUwEUkduRT2QOa0FPGBJ+NROQhGyYO5BuTJwGvBnqKDykac6A==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/compat-data": "^7.23.5",
|
"@babel/compat-data": "^7.23.5",
|
||||||
@@ -1636,7 +1544,7 @@
|
|||||||
"@babel/helper-validator-option": "^7.23.5",
|
"@babel/helper-validator-option": "^7.23.5",
|
||||||
"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.23.3",
|
"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.23.3",
|
||||||
"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.23.3",
|
"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.23.3",
|
||||||
"@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.23.3",
|
"@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.23.7",
|
||||||
"@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2",
|
"@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2",
|
||||||
"@babel/plugin-syntax-async-generators": "^7.8.4",
|
"@babel/plugin-syntax-async-generators": "^7.8.4",
|
||||||
"@babel/plugin-syntax-class-properties": "^7.12.13",
|
"@babel/plugin-syntax-class-properties": "^7.12.13",
|
||||||
@@ -1657,13 +1565,13 @@
|
|||||||
"@babel/plugin-syntax-top-level-await": "^7.14.5",
|
"@babel/plugin-syntax-top-level-await": "^7.14.5",
|
||||||
"@babel/plugin-syntax-unicode-sets-regex": "^7.18.6",
|
"@babel/plugin-syntax-unicode-sets-regex": "^7.18.6",
|
||||||
"@babel/plugin-transform-arrow-functions": "^7.23.3",
|
"@babel/plugin-transform-arrow-functions": "^7.23.3",
|
||||||
"@babel/plugin-transform-async-generator-functions": "^7.23.4",
|
"@babel/plugin-transform-async-generator-functions": "^7.23.9",
|
||||||
"@babel/plugin-transform-async-to-generator": "^7.23.3",
|
"@babel/plugin-transform-async-to-generator": "^7.23.3",
|
||||||
"@babel/plugin-transform-block-scoped-functions": "^7.23.3",
|
"@babel/plugin-transform-block-scoped-functions": "^7.23.3",
|
||||||
"@babel/plugin-transform-block-scoping": "^7.23.4",
|
"@babel/plugin-transform-block-scoping": "^7.23.4",
|
||||||
"@babel/plugin-transform-class-properties": "^7.23.3",
|
"@babel/plugin-transform-class-properties": "^7.23.3",
|
||||||
"@babel/plugin-transform-class-static-block": "^7.23.4",
|
"@babel/plugin-transform-class-static-block": "^7.23.4",
|
||||||
"@babel/plugin-transform-classes": "^7.23.5",
|
"@babel/plugin-transform-classes": "^7.23.8",
|
||||||
"@babel/plugin-transform-computed-properties": "^7.23.3",
|
"@babel/plugin-transform-computed-properties": "^7.23.3",
|
||||||
"@babel/plugin-transform-destructuring": "^7.23.3",
|
"@babel/plugin-transform-destructuring": "^7.23.3",
|
||||||
"@babel/plugin-transform-dotall-regex": "^7.23.3",
|
"@babel/plugin-transform-dotall-regex": "^7.23.3",
|
||||||
@@ -1679,7 +1587,7 @@
|
|||||||
"@babel/plugin-transform-member-expression-literals": "^7.23.3",
|
"@babel/plugin-transform-member-expression-literals": "^7.23.3",
|
||||||
"@babel/plugin-transform-modules-amd": "^7.23.3",
|
"@babel/plugin-transform-modules-amd": "^7.23.3",
|
||||||
"@babel/plugin-transform-modules-commonjs": "^7.23.3",
|
"@babel/plugin-transform-modules-commonjs": "^7.23.3",
|
||||||
"@babel/plugin-transform-modules-systemjs": "^7.23.3",
|
"@babel/plugin-transform-modules-systemjs": "^7.23.9",
|
||||||
"@babel/plugin-transform-modules-umd": "^7.23.3",
|
"@babel/plugin-transform-modules-umd": "^7.23.3",
|
||||||
"@babel/plugin-transform-named-capturing-groups-regex": "^7.22.5",
|
"@babel/plugin-transform-named-capturing-groups-regex": "^7.22.5",
|
||||||
"@babel/plugin-transform-new-target": "^7.23.3",
|
"@babel/plugin-transform-new-target": "^7.23.3",
|
||||||
@@ -1705,9 +1613,9 @@
|
|||||||
"@babel/plugin-transform-unicode-regex": "^7.23.3",
|
"@babel/plugin-transform-unicode-regex": "^7.23.3",
|
||||||
"@babel/plugin-transform-unicode-sets-regex": "^7.23.3",
|
"@babel/plugin-transform-unicode-sets-regex": "^7.23.3",
|
||||||
"@babel/preset-modules": "0.1.6-no-external-plugins",
|
"@babel/preset-modules": "0.1.6-no-external-plugins",
|
||||||
"babel-plugin-polyfill-corejs2": "^0.4.6",
|
"babel-plugin-polyfill-corejs2": "^0.4.8",
|
||||||
"babel-plugin-polyfill-corejs3": "^0.8.5",
|
"babel-plugin-polyfill-corejs3": "^0.9.0",
|
||||||
"babel-plugin-polyfill-regenerator": "^0.5.3",
|
"babel-plugin-polyfill-regenerator": "^0.5.5",
|
||||||
"core-js-compat": "^3.31.0",
|
"core-js-compat": "^3.31.0",
|
||||||
"semver": "^6.3.1"
|
"semver": "^6.3.1"
|
||||||
},
|
},
|
||||||
@@ -1739,9 +1647,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@babel/runtime": {
|
"node_modules/@babel/runtime": {
|
||||||
"version": "7.23.6",
|
"version": "7.23.9",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.6.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.9.tgz",
|
||||||
"integrity": "sha512-zHd0eUrf5GZoOWVCXp6koAKQTfZV07eit6bGPmJgnZdnSAvvZee6zniW2XMF7Cmc4ISOOnPy3QaSiIJGJkVEDQ==",
|
"integrity": "sha512-0CX6F+BI2s9dkUqr08KFrAIZgNFj75rdBU/DjCyYLIaV/quFjkk6T+EJ2LkZHyZTbEV4L5p97mNkUsHl2wLFAw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"regenerator-runtime": "^0.14.0"
|
"regenerator-runtime": "^0.14.0"
|
||||||
@@ -1750,30 +1658,24 @@
|
|||||||
"node": ">=6.9.0"
|
"node": ">=6.9.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/runtime/node_modules/regenerator-runtime": {
|
|
||||||
"version": "0.14.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz",
|
|
||||||
"integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"node_modules/@babel/template": {
|
"node_modules/@babel/template": {
|
||||||
"version": "7.22.15",
|
"version": "7.23.9",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/template/-/template-7.23.9.tgz",
|
||||||
"integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==",
|
"integrity": "sha512-+xrD2BWLpvHKNmX2QbpdpsBaWnRxahMwJjO+KZk2JOElj5nSmKezyS1B4u+QbHMTX69t4ukm6hh9lsYQ7GHCKA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/code-frame": "^7.22.13",
|
"@babel/code-frame": "^7.23.5",
|
||||||
"@babel/parser": "^7.22.15",
|
"@babel/parser": "^7.23.9",
|
||||||
"@babel/types": "^7.22.15"
|
"@babel/types": "^7.23.9"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.9.0"
|
"node": ">=6.9.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/traverse": {
|
"node_modules/@babel/traverse": {
|
||||||
"version": "7.23.6",
|
"version": "7.23.9",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.6.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.9.tgz",
|
||||||
"integrity": "sha512-czastdK1e8YByZqezMPFiZ8ahwVMh/ESl9vPgvgdB9AmFMGP5jfpFax74AQgl5zj4XHzqeYAg2l8PuUeRS1MgQ==",
|
"integrity": "sha512-I/4UJ9vs90OkBtY6iiiTORVMyIhJ4kAVmsKo9KFc8UOxMeUfi2hvtIBsET5u9GizXE6/GFSuKCTNfgCswuEjRg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/code-frame": "^7.23.5",
|
"@babel/code-frame": "^7.23.5",
|
||||||
@@ -1782,8 +1684,8 @@
|
|||||||
"@babel/helper-function-name": "^7.23.0",
|
"@babel/helper-function-name": "^7.23.0",
|
||||||
"@babel/helper-hoist-variables": "^7.22.5",
|
"@babel/helper-hoist-variables": "^7.22.5",
|
||||||
"@babel/helper-split-export-declaration": "^7.22.6",
|
"@babel/helper-split-export-declaration": "^7.22.6",
|
||||||
"@babel/parser": "^7.23.6",
|
"@babel/parser": "^7.23.9",
|
||||||
"@babel/types": "^7.23.6",
|
"@babel/types": "^7.23.9",
|
||||||
"debug": "^4.3.1",
|
"debug": "^4.3.1",
|
||||||
"globals": "^11.1.0"
|
"globals": "^11.1.0"
|
||||||
},
|
},
|
||||||
@@ -1791,19 +1693,10 @@
|
|||||||
"node": ">=6.9.0"
|
"node": ">=6.9.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/traverse/node_modules/globals": {
|
|
||||||
"version": "11.12.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz",
|
|
||||||
"integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==",
|
|
||||||
"dev": true,
|
|
||||||
"engines": {
|
|
||||||
"node": ">=4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@babel/types": {
|
"node_modules/@babel/types": {
|
||||||
"version": "7.23.6",
|
"version": "7.23.9",
|
||||||
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.6.tgz",
|
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.9.tgz",
|
||||||
"integrity": "sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==",
|
"integrity": "sha512-dQjSq/7HaSjRM43FFGnv5keM2HsxpmyV1PfaSVm0nzzjwwTmjOe6J4bC8e3+pTEIgHaHj+1ZlLThRJ2auc/w1Q==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/helper-string-parser": "^7.23.4",
|
"@babel/helper-string-parser": "^7.23.4",
|
||||||
@@ -2425,12 +2318,12 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/@sveltejs/vite-plugin-svelte": {
|
"node_modules/@sveltejs/vite-plugin-svelte": {
|
||||||
"version": "3.0.1",
|
"version": "3.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-3.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-3.0.2.tgz",
|
||||||
"integrity": "sha512-CGURX6Ps+TkOovK6xV+Y2rn8JKa8ZPUHPZ/NKgCxAmgBrXReavzFl8aOSCj3kQ1xqT7yGJj53hjcV/gqwDAaWA==",
|
"integrity": "sha512-MpmF/cju2HqUls50WyTHQBZUV3ovV/Uk8k66AN2gwHogNAG8wnW8xtZDhzNBsFJJuvmq1qnzA5kE7YfMJNFv2Q==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sveltejs/vite-plugin-svelte-inspector": "^2.0.0-next.0 || ^2.0.0",
|
"@sveltejs/vite-plugin-svelte-inspector": "^2.0.0",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"deepmerge": "^4.3.1",
|
"deepmerge": "^4.3.1",
|
||||||
"kleur": "^4.1.5",
|
"kleur": "^4.1.5",
|
||||||
@@ -2497,18 +2390,19 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@vitejs/plugin-legacy": {
|
"node_modules/@vitejs/plugin-legacy": {
|
||||||
"version": "5.2.0",
|
"version": "5.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/@vitejs/plugin-legacy/-/plugin-legacy-5.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/@vitejs/plugin-legacy/-/plugin-legacy-5.3.0.tgz",
|
||||||
"integrity": "sha512-FGpxQCgyI8SHA/TkFH5vfBManyc6GYkCoYtmom924c7sKObnBE7q543RQuKK46duI4j31Nv1wg4GRNtCfsGpGQ==",
|
"integrity": "sha512-BhW+WcJmEgW5G/1UQRiVQ7wz9/ZPnxqzExT9n0zAk4RlqQQ/26udIeXzdU8+03AGnaF61wmZlCspexgEnxFWMA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.23.3",
|
"@babel/core": "^7.23.7",
|
||||||
"@babel/preset-env": "^7.23.3",
|
"@babel/preset-env": "^7.23.8",
|
||||||
"browserslist": "^4.22.1",
|
"browserslist": "^4.22.2",
|
||||||
"core-js": "^3.33.2",
|
"core-js": "^3.35.0",
|
||||||
|
"esbuild-plugin-browserslist": "^0.10.0",
|
||||||
"magic-string": "^0.30.5",
|
"magic-string": "^0.30.5",
|
||||||
"regenerator-runtime": "^0.14.0",
|
"regenerator-runtime": "^0.14.1",
|
||||||
"systemjs": "^6.14.2"
|
"systemjs": "^6.14.3"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.0.0 || >=20.0.0"
|
"node": "^18.0.0 || >=20.0.0"
|
||||||
@@ -2521,23 +2415,6 @@
|
|||||||
"vite": "^5.0.0"
|
"vite": "^5.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@vitejs/plugin-legacy/node_modules/core-js": {
|
|
||||||
"version": "3.34.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.34.0.tgz",
|
|
||||||
"integrity": "sha512-aDdvlDder8QmY91H88GzNi9EtQi2TjvQhpCX6B1v/dAZHU1AuLgHvRh54RiOerpEhEW46Tkf+vgAViB/CWC0ag==",
|
|
||||||
"dev": true,
|
|
||||||
"hasInstallScript": true,
|
|
||||||
"funding": {
|
|
||||||
"type": "opencollective",
|
|
||||||
"url": "https://opencollective.com/core-js"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@vitejs/plugin-legacy/node_modules/regenerator-runtime": {
|
|
||||||
"version": "0.14.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz",
|
|
||||||
"integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"node_modules/acorn": {
|
"node_modules/acorn": {
|
||||||
"version": "8.11.2",
|
"version": "8.11.2",
|
||||||
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz",
|
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz",
|
||||||
@@ -2550,6 +2427,18 @@
|
|||||||
"node": ">=0.4.0"
|
"node": ">=0.4.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/ansi-styles": {
|
||||||
|
"version": "3.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
|
||||||
|
"integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"color-convert": "^1.9.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=4"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/any-promise": {
|
"node_modules/any-promise": {
|
||||||
"version": "1.3.0",
|
"version": "1.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz",
|
||||||
@@ -2585,9 +2474,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/autoprefixer": {
|
"node_modules/autoprefixer": {
|
||||||
"version": "10.4.16",
|
"version": "10.4.17",
|
||||||
"resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.16.tgz",
|
"resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.17.tgz",
|
||||||
"integrity": "sha512-7vd3UC6xKp0HLfua5IjZlcXvGAGy7cBAXTg2lyQ/8WpNhd6SiZ8Be+xm3FyBSYJx5GKcpRCzBh7RH4/0dnY+uQ==",
|
"integrity": "sha512-/cpVNRLSfhOtcGflT13P2794gVSgmPgTR+erw5ifnMLZb0UnSlkK4tquLmkd3BhA+nLo5tX8Cu0upUsGKvKbmg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -2604,9 +2493,9 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"browserslist": "^4.21.10",
|
"browserslist": "^4.22.2",
|
||||||
"caniuse-lite": "^1.0.30001538",
|
"caniuse-lite": "^1.0.30001578",
|
||||||
"fraction.js": "^4.3.6",
|
"fraction.js": "^4.3.7",
|
||||||
"normalize-range": "^0.1.2",
|
"normalize-range": "^0.1.2",
|
||||||
"picocolors": "^1.0.0",
|
"picocolors": "^1.0.0",
|
||||||
"postcss-value-parser": "^4.2.0"
|
"postcss-value-parser": "^4.2.0"
|
||||||
@@ -2622,22 +2511,22 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/axobject-query": {
|
"node_modules/axobject-query": {
|
||||||
"version": "3.2.1",
|
"version": "4.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.0.0.tgz",
|
||||||
"integrity": "sha512-jsyHu61e6N4Vbz/v18DHwWYKK0bSWLqn47eeDSKPB7m8tqMHF9YJ+mhIk2lVteyZrY8tnSj/jHOv4YiTCuCJgg==",
|
"integrity": "sha512-+60uv1hiVFhHZeO+Lz0RYzsVHy5Wr1ayX0mwda9KPDVLNJgZ1T9Ny7VmFbLDzxsH0D87I86vgj3gFrjTJUYznw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dequal": "^2.0.3"
|
"dequal": "^2.0.3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/babel-plugin-polyfill-corejs2": {
|
"node_modules/babel-plugin-polyfill-corejs2": {
|
||||||
"version": "0.4.7",
|
"version": "0.4.8",
|
||||||
"resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.7.tgz",
|
"resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.8.tgz",
|
||||||
"integrity": "sha512-LidDk/tEGDfuHW2DWh/Hgo4rmnw3cduK6ZkOI1NPFceSK3n/yAGeOsNT7FLnSGHkXj3RHGSEVkN3FsCTY6w2CQ==",
|
"integrity": "sha512-OtIuQfafSzpo/LhnJaykc0R/MMnuLSSVjVYy9mHArIZ9qTCSZ6TpWCuEKZYVoN//t8HqBNScHrOtCrIK5IaGLg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/compat-data": "^7.22.6",
|
"@babel/compat-data": "^7.22.6",
|
||||||
"@babel/helper-define-polyfill-provider": "^0.4.4",
|
"@babel/helper-define-polyfill-provider": "^0.5.0",
|
||||||
"semver": "^6.3.1"
|
"semver": "^6.3.1"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
@@ -2645,25 +2534,25 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/babel-plugin-polyfill-corejs3": {
|
"node_modules/babel-plugin-polyfill-corejs3": {
|
||||||
"version": "0.8.7",
|
"version": "0.9.0",
|
||||||
"resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.7.tgz",
|
"resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.9.0.tgz",
|
||||||
"integrity": "sha512-KyDvZYxAzkC0Aj2dAPyDzi2Ym15e5JKZSK+maI7NAwSqofvuFglbSsxE7wUOvTg9oFVnHMzVzBKcqEb4PJgtOA==",
|
"integrity": "sha512-7nZPG1uzK2Ymhy/NbaOWTg3uibM2BmGASS4vHS4szRZAIR8R6GwA/xAujpdrXU5iyklrimWnLWU+BLF9suPTqg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/helper-define-polyfill-provider": "^0.4.4",
|
"@babel/helper-define-polyfill-provider": "^0.5.0",
|
||||||
"core-js-compat": "^3.33.1"
|
"core-js-compat": "^3.34.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0"
|
"@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/babel-plugin-polyfill-regenerator": {
|
"node_modules/babel-plugin-polyfill-regenerator": {
|
||||||
"version": "0.5.4",
|
"version": "0.5.5",
|
||||||
"resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.4.tgz",
|
"resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.5.tgz",
|
||||||
"integrity": "sha512-S/x2iOCvDaCASLYsOOgWOq4bCfKYVqvO/uxjkaYyZ3rVsVE3CeAI/c84NpyuBBymEgNvHgjEot3a9/Z/kXvqsg==",
|
"integrity": "sha512-OJGYZlhLqBh2DDHeqAxWB1XIvr49CxiJ2gIt61/PU55CQK4Z58OzMqjDe1zwQdQk+rBYsRc+1rJmdajM3gimHg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/helper-define-polyfill-provider": "^0.4.4"
|
"@babel/helper-define-polyfill-provider": "^0.5.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0"
|
"@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0"
|
||||||
@@ -2772,9 +2661,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/caniuse-lite": {
|
"node_modules/caniuse-lite": {
|
||||||
"version": "1.0.30001570",
|
"version": "1.0.30001579",
|
||||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001570.tgz",
|
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001579.tgz",
|
||||||
"integrity": "sha512-+3e0ASu4sw1SWaoCtvPeyXp+5PsjigkSt8OXZbF9StH5pQWbxEjLAZE3n8Aup5udop1uRiKA7a4utUk/uoSpUw==",
|
"integrity": "sha512-u5AUVkixruKHJjw/pj9wISlcMpgFWzSrczLZbrqBSxukQixmg0SJ5sZTpvaFvxU0HoQKd4yoyAogyrAz9pzJnA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -2791,6 +2680,20 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"node_modules/chalk": {
|
||||||
|
"version": "2.4.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
|
||||||
|
"integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"ansi-styles": "^3.2.1",
|
||||||
|
"escape-string-regexp": "^1.0.5",
|
||||||
|
"supports-color": "^5.3.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=4"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/chokidar": {
|
"node_modules/chokidar": {
|
||||||
"version": "3.5.3",
|
"version": "3.5.3",
|
||||||
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",
|
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",
|
||||||
@@ -2867,10 +2770,21 @@
|
|||||||
"integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
|
"integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"node_modules/core-js": {
|
||||||
|
"version": "3.35.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.35.1.tgz",
|
||||||
|
"integrity": "sha512-IgdsbxNyMskrTFxa9lWHyMwAJU5gXOPP+1yO+K59d50VLVAIDAbs7gIv705KzALModfK3ZrSZTPNpC0PQgIZuw==",
|
||||||
|
"dev": true,
|
||||||
|
"hasInstallScript": true,
|
||||||
|
"funding": {
|
||||||
|
"type": "opencollective",
|
||||||
|
"url": "https://opencollective.com/core-js"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/core-js-compat": {
|
"node_modules/core-js-compat": {
|
||||||
"version": "3.34.0",
|
"version": "3.35.1",
|
||||||
"resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.34.0.tgz",
|
"resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.35.1.tgz",
|
||||||
"integrity": "sha512-4ZIyeNbW/Cn1wkMMDy+mvrRUxrwFNjKwbhCfQpDd+eLgYipDqp8oGFGtLmhh18EDPKA0g3VUBYOxQGGwvWLVpA==",
|
"integrity": "sha512-sftHa5qUJY3rs9Zht1WEnmkvXputCyDBczPnr7QDgL8n3qrF3CMXY4VPSYtOLLiOUJcah2WNXREd48iOl6mQIw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"browserslist": "^4.22.2"
|
"browserslist": "^4.22.2"
|
||||||
@@ -2925,9 +2839,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/daisyui": {
|
"node_modules/daisyui": {
|
||||||
"version": "4.6.0",
|
"version": "4.6.2",
|
||||||
"resolved": "https://registry.npmjs.org/daisyui/-/daisyui-4.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/daisyui/-/daisyui-4.6.2.tgz",
|
||||||
"integrity": "sha512-B5ZB/sczXpp4LMdo/SZrtYY/U2hq+Vr9I15QawuWZ0VwgtSAbuZpAZUftKVryEsPuv3BM0yVlBED0nAmtis/dw==",
|
"integrity": "sha512-LBIbI76wVVRCQt1Uis2Y2/PRdGfMkNMFsHOjfpav8n7SamwRwPOCiNUClIrnX2jerWW3mLZlzRMCnQfxmGEjow==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"css-selector-tokenizer": "^0.8",
|
"css-selector-tokenizer": "^0.8",
|
||||||
@@ -3000,9 +2914,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/dotenv": {
|
"node_modules/dotenv": {
|
||||||
"version": "16.3.1",
|
"version": "16.4.1",
|
||||||
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.1.tgz",
|
||||||
"integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==",
|
"integrity": "sha512-CjA3y+Dr3FyFDOAMnxZEGtnW9KBR2M0JvvUtXNW+dYJL5ROWxP9DUHCwgFqpMk0OXCc0ljhaNTr2w/kutYIcHQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12"
|
"node": ">=12"
|
||||||
@@ -3060,6 +2974,23 @@
|
|||||||
"@esbuild/win32-x64": "0.19.6"
|
"@esbuild/win32-x64": "0.19.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/esbuild-plugin-browserslist": {
|
||||||
|
"version": "0.10.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/esbuild-plugin-browserslist/-/esbuild-plugin-browserslist-0.10.0.tgz",
|
||||||
|
"integrity": "sha512-rZWFcp3l+73xDiJB+Vl9UqP1VVs+L4E0lygbwJl6UTmW2qQago7DLT56hBu0vocH/TtZsAcRHj0+qHqkkB5Gww==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"debug": "^4.3.4",
|
||||||
|
"zod": "^3.21.4"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=18"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"browserslist": "^4.21.8",
|
||||||
|
"esbuild": "~0.19.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
"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",
|
||||||
@@ -3222,6 +3153,15 @@
|
|||||||
"node": ">= 6"
|
"node": ">= 6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/globals": {
|
||||||
|
"version": "11.12.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz",
|
||||||
|
"integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==",
|
||||||
|
"dev": true,
|
||||||
|
"engines": {
|
||||||
|
"node": ">=4"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/globrex": {
|
"node_modules/globrex": {
|
||||||
"version": "0.1.2",
|
"version": "0.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz",
|
||||||
@@ -3365,6 +3305,12 @@
|
|||||||
"jiti": "bin/jiti.js"
|
"jiti": "bin/jiti.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/js-tokens": {
|
||||||
|
"version": "4.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
|
||||||
|
"integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"node_modules/jsesc": {
|
"node_modules/jsesc": {
|
||||||
"version": "2.5.2",
|
"version": "2.5.2",
|
||||||
"resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz",
|
"resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz",
|
||||||
@@ -3704,9 +3650,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/postcss": {
|
"node_modules/postcss": {
|
||||||
"version": "8.4.33",
|
"version": "8.4.35",
|
||||||
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.33.tgz",
|
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.35.tgz",
|
||||||
"integrity": "sha512-Kkpbhhdjw2qQs2O2DGX+8m5OVqEcbB9HRBvuYM9pgrjEFUg30A9LmXNlTAUj4S9kgtGyrMbTzVjH7E+s5Re2yg==",
|
"integrity": "sha512-u5U8qYpBCpN13BsiEB0CbR1Hhh4Gc0zLFuedrHJKMctHCHAGrMdG0PRM/KErzAL3CU6/eckEtmHNB3x6e3c0vA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -3921,6 +3867,12 @@
|
|||||||
"node": ">=4"
|
"node": ">=4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/regenerator-runtime": {
|
||||||
|
"version": "0.14.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz",
|
||||||
|
"integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"node_modules/regenerator-transform": {
|
"node_modules/regenerator-transform": {
|
||||||
"version": "0.15.2",
|
"version": "0.15.2",
|
||||||
"resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.2.tgz",
|
"resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.2.tgz",
|
||||||
@@ -4197,6 +4149,18 @@
|
|||||||
"url": "https://github.com/sponsors/isaacs"
|
"url": "https://github.com/sponsors/isaacs"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/supports-color": {
|
||||||
|
"version": "5.5.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
|
||||||
|
"integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"has-flag": "^3.0.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=4"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/supports-preserve-symlinks-flag": {
|
"node_modules/supports-preserve-symlinks-flag": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
|
||||||
@@ -4210,17 +4174,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/svelte": {
|
"node_modules/svelte": {
|
||||||
"version": "4.2.8",
|
"version": "4.2.10",
|
||||||
"resolved": "https://registry.npmjs.org/svelte/-/svelte-4.2.8.tgz",
|
"resolved": "https://registry.npmjs.org/svelte/-/svelte-4.2.10.tgz",
|
||||||
"integrity": "sha512-hU6dh1MPl8gh6klQZwK/n73GiAHiR95IkFsesLPbMeEZi36ydaXL/ZAb4g9sayT0MXzpxyZjR28yderJHxcmYA==",
|
"integrity": "sha512-Ep06yCaCdgG1Mafb/Rx8sJ1QS3RW2I2BxGp2Ui9LBHSZ2/tO/aGLc5WqPjgiAP6KAnLJGaIr/zzwQlOo1b8MxA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ampproject/remapping": "^2.2.1",
|
"@ampproject/remapping": "^2.2.1",
|
||||||
"@jridgewell/sourcemap-codec": "^1.4.15",
|
"@jridgewell/sourcemap-codec": "^1.4.15",
|
||||||
"@jridgewell/trace-mapping": "^0.3.18",
|
"@jridgewell/trace-mapping": "^0.3.18",
|
||||||
|
"@types/estree": "^1.0.1",
|
||||||
"acorn": "^8.9.0",
|
"acorn": "^8.9.0",
|
||||||
"aria-query": "^5.3.0",
|
"aria-query": "^5.3.0",
|
||||||
"axobject-query": "^3.2.1",
|
"axobject-query": "^4.0.0",
|
||||||
"code-red": "^1.0.3",
|
"code-red": "^1.0.3",
|
||||||
"css-tree": "^2.3.1",
|
"css-tree": "^2.3.1",
|
||||||
"estree-walker": "^3.0.3",
|
"estree-walker": "^3.0.3",
|
||||||
@@ -4234,9 +4199,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/svelte-check": {
|
"node_modules/svelte-check": {
|
||||||
"version": "3.6.3",
|
"version": "3.6.4",
|
||||||
"resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-3.6.3.tgz",
|
"resolved": "https://registry.npmjs.org/svelte-check/-/svelte-check-3.6.4.tgz",
|
||||||
"integrity": "sha512-Q2nGnoysxUnB9KjnjpQLZwdjK62DHyW6nuH/gm2qteFnDk0lCehe/6z8TsIvYeKjC6luKaWxiNGyOcWiLLPSwA==",
|
"integrity": "sha512-mY/dqucqm46p72M8yZmn81WPZx9mN6uuw8UVfR3ZKQeLxQg5HDGO3HHm5AZuWZPYNMLJ+TRMn+TeN53HfQ/vsw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@jridgewell/trace-mapping": "^0.3.17",
|
"@jridgewell/trace-mapping": "^0.3.17",
|
||||||
@@ -4331,9 +4296,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/systemjs": {
|
"node_modules/systemjs": {
|
||||||
"version": "6.14.2",
|
"version": "6.14.3",
|
||||||
"resolved": "https://registry.npmjs.org/systemjs/-/systemjs-6.14.2.tgz",
|
"resolved": "https://registry.npmjs.org/systemjs/-/systemjs-6.14.3.tgz",
|
||||||
"integrity": "sha512-1TlOwvKWdXxAY9vba+huLu99zrQURDWA8pUTYsRIYDZYQbGyK+pyEP4h4dlySsqo7ozyJBmYD20F+iUHhAltEg==",
|
"integrity": "sha512-hQv45irdhXudAOr8r6SVSpJSGtogdGZUbJBRKCE5nsIS7tsxxvnIHqT4IOPWj+P+HcSzeWzHlGCGpmhPDIKe+w==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/tailwindcss": {
|
"node_modules/tailwindcss": {
|
||||||
@@ -4399,9 +4364,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/terser": {
|
"node_modules/terser": {
|
||||||
"version": "5.26.0",
|
"version": "5.27.0",
|
||||||
"resolved": "https://registry.npmjs.org/terser/-/terser-5.26.0.tgz",
|
"resolved": "https://registry.npmjs.org/terser/-/terser-5.27.0.tgz",
|
||||||
"integrity": "sha512-dytTGoE2oHgbNV9nTzgBEPaqAWvcJNl66VZ0BkJqlvp71IjO8CxdBx/ykCNb47cLnCmCvRZ6ZR0tLkqvZCdVBQ==",
|
"integrity": "sha512-bi1HRwVRskAjheeYl291n3JC4GgO/Ty4z1nVs5AAsmonJulGxpSektecnNedrwK9C7vpvVtcX3cw00VSLt7U2A==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@jridgewell/source-map": "^0.3.3",
|
"@jridgewell/source-map": "^0.3.3",
|
||||||
@@ -4462,18 +4427,18 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/tsconfck": {
|
"node_modules/tsconfck": {
|
||||||
"version": "2.1.2",
|
"version": "3.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/tsconfck/-/tsconfck-2.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/tsconfck/-/tsconfck-3.0.1.tgz",
|
||||||
"integrity": "sha512-ghqN1b0puy3MhhviwO2kGF8SeMDNhEbnKxjK7h6+fvY9JAxqvXi8y5NAHSQv687OVboS2uZIByzGd45/YxrRHg==",
|
"integrity": "sha512-7ppiBlF3UEddCLeI1JRx5m2Ryq+xk4JrZuq4EuYXykipebaq1dV0Fhgr1hb7CkmHt32QSgOZlcqVLEtHBG4/mg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"tsconfck": "bin/tsconfck.js"
|
"tsconfck": "bin/tsconfck.js"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^14.13.1 || ^16 || >=18"
|
"node": "^18 || >=20"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"typescript": "^4.3.5 || ^5.0.0"
|
"typescript": "^5.0.0"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
"typescript": {
|
"typescript": {
|
||||||
@@ -4577,13 +4542,13 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/vite": {
|
"node_modules/vite": {
|
||||||
"version": "5.0.11",
|
"version": "5.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/vite/-/vite-5.0.11.tgz",
|
"resolved": "https://registry.npmjs.org/vite/-/vite-5.1.1.tgz",
|
||||||
"integrity": "sha512-XBMnDjZcNAw/G1gEiskiM1v6yzM4GE5aMGvhWTlHAYYhxb7S3/V1s3m2LDHa8Vh6yIWYYB0iJwsEaS523c4oYA==",
|
"integrity": "sha512-wclpAgY3F1tR7t9LL5CcHC41YPkQIpKUGeIuT8MdNwNZr6OqOTLs7JX5vIHAtzqLWXts0T+GDrh9pN2arneKqg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"esbuild": "^0.19.3",
|
"esbuild": "^0.19.3",
|
||||||
"postcss": "^8.4.32",
|
"postcss": "^8.4.35",
|
||||||
"rollup": "^4.2.0"
|
"rollup": "^4.2.0"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
@@ -4632,14 +4597,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/vite-tsconfig-paths": {
|
"node_modules/vite-tsconfig-paths": {
|
||||||
"version": "4.2.3",
|
"version": "4.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/vite-tsconfig-paths/-/vite-tsconfig-paths-4.2.3.tgz",
|
"resolved": "https://registry.npmjs.org/vite-tsconfig-paths/-/vite-tsconfig-paths-4.3.1.tgz",
|
||||||
"integrity": "sha512-xVsA2xe6QSlzBujtWF8q2NYexh7PAUYfzJ4C8Axpe/7d2pcERYxuxGgph9F4f0iQO36g5tyGq6eBUYIssdUrVw==",
|
"integrity": "sha512-cfgJwcGOsIxXOLU/nELPny2/LUD/lcf1IbfyeKTv2bsupVbTH/xpFtdQlBmIP1GEK2CjjLxYhFfB+QODFAx5aw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"debug": "^4.1.1",
|
"debug": "^4.1.1",
|
||||||
"globrex": "^0.1.2",
|
"globrex": "^0.1.2",
|
||||||
"tsconfck": "^2.1.0"
|
"tsconfck": "^3.0.1"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"vite": "*"
|
"vite": "*"
|
||||||
@@ -4684,6 +4649,15 @@
|
|||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 14"
|
"node": ">= 14"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"node_modules/zod": {
|
||||||
|
"version": "3.22.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz",
|
||||||
|
"integrity": "sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==",
|
||||||
|
"dev": true,
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/colinhacks"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+12
-12
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "playlet-web",
|
"name": "playlet-web",
|
||||||
"version": "0.19.1",
|
"version": "0.19.2",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
@@ -9,23 +9,23 @@
|
|||||||
"check": "svelte-check --tsconfig ./tsconfig.json"
|
"check": "svelte-check --tsconfig ./tsconfig.json"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sveltejs/vite-plugin-svelte": "^3.0.1",
|
"@sveltejs/vite-plugin-svelte": "^3.0.2",
|
||||||
"@tailwindcss/typography": "^0.5.10",
|
"@tailwindcss/typography": "^0.5.10",
|
||||||
"@tsconfig/svelte": "^5.0.2",
|
"@tsconfig/svelte": "^5.0.2",
|
||||||
"@vitejs/plugin-legacy": "^5.2.0",
|
"@vitejs/plugin-legacy": "^5.3.0",
|
||||||
"autoprefixer": "^10.4.16",
|
"autoprefixer": "^10.4.17",
|
||||||
"daisyui": "^4.6.0",
|
"daisyui": "^4.6.2",
|
||||||
"dotenv": "^16.3.1",
|
"dotenv": "^16.4.1",
|
||||||
"ip": "^1.1.8",
|
"ip": "^1.1.8",
|
||||||
"postcss": "^8.4.33",
|
"postcss": "^8.4.35",
|
||||||
"svelte": "^4.2.8",
|
"svelte": "^4.2.10",
|
||||||
"svelte-check": "^3.6.3",
|
"svelte-check": "^3.6.4",
|
||||||
"svelte-preprocess": "^5.1.3",
|
"svelte-preprocess": "^5.1.3",
|
||||||
"tailwindcss": "^3.4.1",
|
"tailwindcss": "^3.4.1",
|
||||||
"terser": "^5.26.0",
|
"terser": "^5.27.0",
|
||||||
"tslib": "^2.6.2",
|
"tslib": "^2.6.2",
|
||||||
"typescript": "^5.3.3",
|
"typescript": "^5.3.3",
|
||||||
"vite": "^5.0.11",
|
"vite": "^5.1.1",
|
||||||
"vite-tsconfig-paths": "^4.2.3"
|
"vite-tsconfig-paths": "^4.3.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -111,8 +111,8 @@ export class PlayletApi {
|
|||||||
return await response.json();
|
return await response.json();
|
||||||
}
|
}
|
||||||
|
|
||||||
static async putSearchHistory(query: string) {
|
static async addSearchHistory(query: string) {
|
||||||
const response = await PlayletApi.putJson(`${PlayletApi.host()}/api/search-history`, { query });
|
const response = await PlayletApi.postJson(`${PlayletApi.host()}/api/search-history`, { query });
|
||||||
return await response.json();
|
return await response.json();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -195,7 +195,7 @@
|
|||||||
: 'hidden'} fixed w-full h-full bg-base-100/80 z-50 flex justify-center items-center"
|
: 'hidden'} fixed w-full h-full bg-base-100/80 z-50 flex justify-center items-center"
|
||||||
>
|
>
|
||||||
{#if isDragging}
|
{#if isDragging}
|
||||||
<div class="text-2xl font-bold">Drop a Youtube link here</div>
|
<div class="text-2xl font-bold">Drop a YouTube link here</div>
|
||||||
{:else if isLoading}
|
{:else if isLoading}
|
||||||
<span class="loading loading-spinner loading-md" />
|
<span class="loading loading-spinner loading-md" />
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
@@ -95,7 +95,7 @@
|
|||||||
class="tooltip tooltip-left"
|
class="tooltip tooltip-left"
|
||||||
data-tip={`Login using ${currentInstance}`}
|
data-tip={`Login using ${currentInstance}`}
|
||||||
>
|
>
|
||||||
<button on:click={login}>Login</button>
|
<button on:click={login}>Login to Invidious</button>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
@@ -104,7 +104,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (page === 1) {
|
if (page === 1) {
|
||||||
const newSearchHistory = await PlayletApi.putSearchHistory(searchBoxText);
|
const newSearchHistory = await PlayletApi.addSearchHistory(searchBoxText);
|
||||||
searchHistoryStore.set(newSearchHistory);
|
searchHistoryStore.set(newSearchHistory);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,56 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
import { PlayletApi } from "lib/Api/PlayletApi";
|
||||||
|
import { userPreferencesStore } from "lib/Stores";
|
||||||
|
const textSizes = ["text-2xl", "text-lg", "text-base", "text-sm", "text-xs"];
|
||||||
|
export let displayText: string = "";
|
||||||
|
export let key: string = "";
|
||||||
|
export let description: string = "";
|
||||||
|
export let level: number = 0;
|
||||||
|
export let min: number = -999999;
|
||||||
|
export let max: number = 999999;
|
||||||
|
let value;
|
||||||
|
userPreferencesStore.subscribe((userPreferences) => {
|
||||||
|
value = userPreferences[key];
|
||||||
|
});
|
||||||
|
async function handleChange() {
|
||||||
|
if (key !== "") {
|
||||||
|
await PlayletApi.saveUserPreference(key, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div class="form-control m-5">
|
||||||
|
<label class="label p-0 cursor-pointer">
|
||||||
|
<div class="label-text {textSizes[level]}">{displayText}</div>
|
||||||
|
<div class="join mt-2 mb-2">
|
||||||
|
<button
|
||||||
|
class="join-item btn btn-sm btn-primary"
|
||||||
|
on:click={() => {
|
||||||
|
value = Math.max(min, value - 1);
|
||||||
|
handleChange();
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
-
|
||||||
|
</button>
|
||||||
|
<input
|
||||||
|
class="join-item input input-bordered input-sm"
|
||||||
|
type="number"
|
||||||
|
name={key}
|
||||||
|
{min}
|
||||||
|
{max}
|
||||||
|
bind:value
|
||||||
|
on:change={handleChange}
|
||||||
|
/>
|
||||||
|
<button
|
||||||
|
class="join-item btn btn-sm btn-primary"
|
||||||
|
on:click={() => {
|
||||||
|
value = Math.min(max, value + 1);
|
||||||
|
handleChange();
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
+
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</label>
|
||||||
|
<div class="text-xs text-gray-500">{@html description}</div>
|
||||||
|
</div>
|
||||||
@@ -4,15 +4,19 @@
|
|||||||
import EditHomeScreenControl from "lib/Screens/Settings/SettingControls/EditHomeScreenControl.svelte";
|
import EditHomeScreenControl from "lib/Screens/Settings/SettingControls/EditHomeScreenControl.svelte";
|
||||||
import RadioControl from "lib/Screens/Settings/SettingControls/RadioControl.svelte";
|
import RadioControl from "lib/Screens/Settings/SettingControls/RadioControl.svelte";
|
||||||
import StringControl from "lib/Screens/Settings/SettingControls/StringControl.svelte";
|
import StringControl from "lib/Screens/Settings/SettingControls/StringControl.svelte";
|
||||||
|
import NumberControl from "./SettingControls/NumberControl.svelte";
|
||||||
|
|
||||||
const textSizes = ["text-2xl", "text-lg", "text-base", "text-sm", "text-xs"];
|
const textSizes = ["text-2xl", "text-lg", "text-base", "text-sm", "text-xs"];
|
||||||
|
|
||||||
export let displayText: string = "";
|
export let displayText: string = "";
|
||||||
export let key: string = "";
|
export let key: string = "";
|
||||||
export let description: string = "";
|
export let description: string = "";
|
||||||
export let type: "boolean" | "radio" | "string" | undefined = undefined;
|
export let type: "boolean" | "radio" | "string" | "number" | undefined =
|
||||||
|
undefined;
|
||||||
export let svelteComponent: string | undefined = undefined;
|
export let svelteComponent: string | undefined = undefined;
|
||||||
export let options: any[] | undefined = undefined;
|
export let options: any[] | undefined = undefined;
|
||||||
|
export let min: number = -999999;
|
||||||
|
export let max: number = 999999;
|
||||||
export let visibility: string | undefined = undefined;
|
export let visibility: string | undefined = undefined;
|
||||||
export let children: any[] | undefined = [];
|
export let children: any[] | undefined = [];
|
||||||
export let level: number = 0;
|
export let level: number = 0;
|
||||||
@@ -35,6 +39,8 @@
|
|||||||
<RadioControl {displayText} {key} {description} {level} {options} />
|
<RadioControl {displayText} {key} {description} {level} {options} />
|
||||||
{:else if type === "string"}
|
{:else if type === "string"}
|
||||||
<StringControl {displayText} {key} {description} {level} />
|
<StringControl {displayText} {key} {description} {level} />
|
||||||
|
{:else if type === "number"}
|
||||||
|
<NumberControl {displayText} {key} {description} {level} {min} {max} />
|
||||||
{:else if svelteComponent}
|
{:else if svelteComponent}
|
||||||
<svelte:component
|
<svelte:component
|
||||||
this={customComponents[svelteComponent]}
|
this={customComponents[svelteComponent]}
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
import DevSettings from "lib/Screens/Settings/DevSettings.svelte";
|
import DevSettings from "lib/Screens/Settings/DevSettings.svelte";
|
||||||
import SettingsNode from "lib/Screens/Settings/SettingsNode.svelte";
|
import SettingsNode from "lib/Screens/Settings/SettingsNode.svelte";
|
||||||
import { preferencesModelStore } from "lib/Stores";
|
import { preferencesModelStore } from "lib/Stores";
|
||||||
import { onMount } from "svelte";
|
|
||||||
|
|
||||||
export let visibility: boolean;
|
export let visibility: boolean;
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -79,6 +79,7 @@ Function RALE_InitConfig() as Object
|
|||||||
minSocketPort: 49152,
|
minSocketPort: 49152,
|
||||||
maxSocketPort: 65535,
|
maxSocketPort: 65535,
|
||||||
screensaverResetTimeout: 30000,
|
screensaverResetTimeout: 30000,
|
||||||
|
' Note: commandTimeout reduced from 10000 to 1000 to improve responsiveness
|
||||||
commandTimeout: 1000,
|
commandTimeout: 1000,
|
||||||
defaultLogLevel: 3,
|
defaultLogLevel: 3,
|
||||||
logFormat: "[RALE][%level%] - %message%"
|
logFormat: "[RALE][%level%] - %message%"
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ export class ManifestEditPlugin implements CompilerPlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
afterPublish(builder: ProgramBuilder) {
|
afterPublish(builder: ProgramBuilder) {
|
||||||
this.restoreManifest(builder.program);
|
this.restoreManifest(builder.program!);
|
||||||
}
|
}
|
||||||
|
|
||||||
beforeProgramDispose(event: BeforeProgramDisposeEvent) {
|
beforeProgramDispose(event: BeforeProgramDisposeEvent) {
|
||||||
|
|||||||
@@ -0,0 +1,153 @@
|
|||||||
|
// This plugin handles router annotations (@get, @post, etc) and register
|
||||||
|
// associated functions with the router.
|
||||||
|
|
||||||
|
import {
|
||||||
|
BeforeFileTranspileEvent,
|
||||||
|
BscFile,
|
||||||
|
ClassStatement,
|
||||||
|
CompilerPlugin,
|
||||||
|
FunctionExpression,
|
||||||
|
FunctionStatement,
|
||||||
|
MethodStatement,
|
||||||
|
OnFileValidateEvent,
|
||||||
|
TokenKind,
|
||||||
|
WalkMode,
|
||||||
|
createVisitor,
|
||||||
|
isBrsFile
|
||||||
|
} from "brighterscript";
|
||||||
|
import { RawCodeStatement } from "./Classes/RawCodeStatement";
|
||||||
|
|
||||||
|
const annotationNames = ['all', 'get', 'post', 'put', 'delete', 'patch', 'head', 'options'];
|
||||||
|
const httpRouterBaseClass = 'HttpRouter';
|
||||||
|
|
||||||
|
export class WebServerPlugin implements CompilerPlugin {
|
||||||
|
public name = 'WebServerPlugin';
|
||||||
|
|
||||||
|
onFileValidate(event: OnFileValidateEvent<BscFile>) {
|
||||||
|
if (!isBrsFile(event.file)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Make sure each class that inherits from HttpRouter has a constructor
|
||||||
|
event.file.ast.walk(createVisitor({
|
||||||
|
ClassStatement: (classStmt) => {
|
||||||
|
if (!classStmt.parentClassName) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const parentClass = classStmt.parentClassName.expression.name.text;
|
||||||
|
if (parentClass !== httpRouterBaseClass) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const classConstructor = this.getClassConstructor(classStmt);
|
||||||
|
if (!classConstructor) {
|
||||||
|
event.file.addDiagnostics([{
|
||||||
|
file: event.file,
|
||||||
|
range: classStmt.name.range,
|
||||||
|
message: `Class ${classStmt.name.text} extends ${httpRouterBaseClass} and must have a constructor`,
|
||||||
|
severity: 1,
|
||||||
|
code: 'HTTP_ROUTER_NO_CONSTRUCTOR',
|
||||||
|
}]);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}), {
|
||||||
|
walkMode: WalkMode.visitStatementsRecursive
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
beforeFileTranspile(event: BeforeFileTranspileEvent<BscFile>) {
|
||||||
|
if (!isBrsFile(event.file)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
event.file.ast.walk(createVisitor({
|
||||||
|
FunctionExpression: (func) => {
|
||||||
|
if (!this.isHttpRouterFunction(func)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const functionStatement = func.functionStatement;
|
||||||
|
if (!functionStatement) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const routeInfo = this.getRouteInfo(functionStatement);
|
||||||
|
if (!routeInfo) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const classStmt = this.getClass(func);
|
||||||
|
if (!classStmt) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const classConstructor = this.getClassConstructor(classStmt) as MethodStatement;
|
||||||
|
|
||||||
|
const method = routeInfo.method === 'ALL' ? '*' : routeInfo.method;
|
||||||
|
const stmt = new RawCodeStatement(`m.routes.push({ method: "${method}", path: "${routeInfo.route}", router: m, func: "${func.functionStatement?.name.text}" })`)
|
||||||
|
event.editor.arrayPush(classConstructor.func.body.statements, stmt);
|
||||||
|
},
|
||||||
|
}), {
|
||||||
|
walkMode: WalkMode.visitExpressionsRecursive
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
isHttpRouterFunction(func: FunctionExpression) {
|
||||||
|
const classStmt = this.getClass(func);
|
||||||
|
if (!classStmt || !classStmt.parentClassName) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
const parentClass = classStmt.parentClassName.expression.name.text;
|
||||||
|
return parentClass === httpRouterBaseClass;
|
||||||
|
}
|
||||||
|
|
||||||
|
getRouteInfo(functionStatement: FunctionStatement | undefined) {
|
||||||
|
const annotations = functionStatement?.annotations
|
||||||
|
if (!annotations || annotations.length === 0) {
|
||||||
|
return undefined
|
||||||
|
}
|
||||||
|
|
||||||
|
for (let index = 0; index < annotations.length; index++) {
|
||||||
|
const annotation = annotations[index];
|
||||||
|
if (annotationNames.includes(annotation.name)) {
|
||||||
|
const args = annotation.getArguments()
|
||||||
|
if (args.length !== 1) {
|
||||||
|
throw new Error(`Expected 1 argument for annotation ${annotation.name}`)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof args[0] !== 'string') {
|
||||||
|
throw new Error(`Expected string argument for annotation ${annotation.name}`)
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
method: annotation.name.toUpperCase(),
|
||||||
|
route: args[0]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
getClass(func: FunctionExpression) {
|
||||||
|
const functionStatement = func.functionStatement;
|
||||||
|
if (!functionStatement) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
return functionStatement.parent as ClassStatement;
|
||||||
|
}
|
||||||
|
|
||||||
|
getClassConstructor(classStmt: ClassStatement) {
|
||||||
|
return classStmt.body.find((stmt) => {
|
||||||
|
const methodStmt = stmt as MethodStatement;
|
||||||
|
// @ts-ignore
|
||||||
|
if (methodStmt.name?.kind === TokenKind.New) {
|
||||||
|
return stmt;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default () => {
|
||||||
|
return new WebServerPlugin();
|
||||||
|
};
|
||||||
@@ -5,7 +5,7 @@ const { convertFile } = require('convert-svg-to-png');
|
|||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
const parser = new ArgumentParser({
|
const parser = new ArgumentParser({
|
||||||
description: 'Sync Youtube profile with Invidious'
|
description: 'Sync YouTube profile with Invidious'
|
||||||
});
|
});
|
||||||
|
|
||||||
parser.add_argument('--input', { help: 'Input file path' });
|
parser.add_argument('--input', { help: 'Input file path' });
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Description: Read recommendations, subscriptions, watch later, liked, and history from Youtube
|
// Description: Read recommendations, subscriptions, watch later, liked, and history from YouTube
|
||||||
// and import them into invidious. Requires yt-dlp to be installed.
|
// and import them into invidious. Requires yt-dlp to be installed.
|
||||||
|
|
||||||
const { ArgumentParser } = require('argparse')
|
const { ArgumentParser } = require('argparse')
|
||||||
@@ -11,7 +11,7 @@ const fetch = require('cross-fetch');
|
|||||||
|
|
||||||
function getArgumentParser() {
|
function getArgumentParser() {
|
||||||
const parser = new ArgumentParser({
|
const parser = new ArgumentParser({
|
||||||
description: 'Sync Youtube profile with Invidious'
|
description: 'Sync YouTube profile with Invidious'
|
||||||
});
|
});
|
||||||
|
|
||||||
parser.add_argument('--browser', { help: 'Use cookies from browser' });
|
parser.add_argument('--browser', { help: 'Use cookies from browser' });
|
||||||
@@ -26,7 +26,7 @@ function getArgumentParser() {
|
|||||||
const config = getEnvVars();
|
const config = getEnvVars();
|
||||||
const PLAYLEY_SERVER = `http://${config.ROKU_DEV_TARGET}:8888`;
|
const PLAYLEY_SERVER = `http://${config.ROKU_DEV_TARGET}:8888`;
|
||||||
|
|
||||||
const PLAYLIST_DESCRIPTION = "[Automatically imported from Youtube using profile-sync script]"
|
const PLAYLIST_DESCRIPTION = "[Automatically imported from YouTube using profile-sync script]"
|
||||||
|
|
||||||
const INVIDIOUS_SCOPES = "POST:tokens/unregister,POST:import/invidious,GET:playlists,DELETE:playlists*"
|
const INVIDIOUS_SCOPES = "POST:tokens/unregister,POST:import/invidious,GET:playlists,DELETE:playlists*"
|
||||||
|
|
||||||
|
|||||||
Loaded 100 of 102 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user