Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
910d57795a | ||
|
|
ef733d8d88 | ||
|
|
6ad42f3fcd | ||
|
|
1ba5184d95 | ||
|
|
26ed985ecc | ||
|
|
6b47440cb5 | ||
|
|
ee3312763d | ||
|
|
7bb73e0fb6 | ||
|
|
f71ad7b873 | ||
|
|
0f6329997d | ||
|
|
58918f68fb | ||
|
|
8a63bc848d | ||
|
|
9315fa6cf7 |
No files matched your search
+18
-1
@@ -2,9 +2,26 @@
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [0.21.2] - 2024-03-10
|
||||
|
||||
### Fixed
|
||||
|
||||
- Deeplinking required for certification
|
||||
|
||||
## [0.21.1] - 2024-03-09
|
||||
|
||||
### Added
|
||||
|
||||
- Subscriber count in the channel page
|
||||
|
||||
### Fixed
|
||||
|
||||
- A bug where videos that did not premiere yet would error with a playback error
|
||||
- A bug where a playback error dialog is dismissed too fast before playing the next video
|
||||
|
||||
## [0.21.0] - 2024-03-07
|
||||
|
||||
### Added
|
||||
|
||||
@@ -40,6 +40,12 @@
|
||||
"regex": "\\b(?!_unused)unused\\b",
|
||||
"regexFlags": "ig",
|
||||
"message": "unused args should start with _ (e.g. _unused)"
|
||||
},
|
||||
{
|
||||
"code": "NO_OPTIONAL_CHAINING",
|
||||
"regex": "\\?[\\.|\\[|\\(|@]",
|
||||
"regexFlags": "ig",
|
||||
"message": "No optional chaning (var1?.property). Do a type check instead."
|
||||
}
|
||||
],
|
||||
"files": [
|
||||
|
||||
+8
-2
@@ -294,14 +294,20 @@ This is mostly useful to QA the `canary` release (see [Canary release](https://e
|
||||
|
||||
#### In case of a softlock
|
||||
|
||||
If the dev menu is used to load a custom Playlet lib url, but the lib does not have a functionality to revert back:
|
||||
If the dev menu is used to load a custom Playlet lib url, but you couldn't revert back:
|
||||
|
||||
```bash
|
||||
curl -d '' "http://$ROKU_DEV_TARGET:8060/launch/dev?clearPlayletLibUrls=true"
|
||||
curl -d '' "http://$ROKU_DEV_TARGET:8060/launch/693751?clearPlayletLibUrls=true"
|
||||
```
|
||||
|
||||
This will remove the custom lib, and revert to using default (latest release from Github).
|
||||
|
||||
If you need to clear all the data from the registry, use
|
||||
|
||||
```bash
|
||||
curl -d '' "http://$ROKU_DEV_TARGET:8060/launch/693751?clearRegistry=true"
|
||||
```
|
||||
|
||||
## CI/CD
|
||||
|
||||
On pull requests, a Github action will run `lint:fix` and `format:fix` and push changes to the PR branch, to keep things tidy.
|
||||
|
||||
@@ -2,7 +2,7 @@ openapi: 3.0.0
|
||||
|
||||
info:
|
||||
title: Playlet Web API
|
||||
version: 0.21.0
|
||||
version: 0.21.2
|
||||
description:
|
||||
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
|
||||
|
||||
Generated
+27
-27
@@ -1,22 +1,22 @@
|
||||
{
|
||||
"name": "playlet",
|
||||
"version": "0.21.0",
|
||||
"version": "0.21.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "playlet",
|
||||
"version": "0.21.0",
|
||||
"version": "0.21.2",
|
||||
"hasInstallScript": true,
|
||||
"devDependencies": {
|
||||
"@rokucommunity/bslint": "^0.8.18",
|
||||
"@rokucommunity/bslint": "^0.8.19",
|
||||
"@types/crypto-js": "^4.2.2",
|
||||
"@types/fs-extra": "^11.0.4",
|
||||
"@types/node": "^20.11.24",
|
||||
"@types/node": "^20.11.25",
|
||||
"@types/xml2js": "^0.4.14",
|
||||
"argparse": "^2.0.1",
|
||||
"brighterscript": "0.65.24",
|
||||
"brighterscript-formatter": "^1.6.41",
|
||||
"brighterscript": "0.65.25",
|
||||
"brighterscript-formatter": "^1.7.0",
|
||||
"convert-svg-to-png": "^0.6.4",
|
||||
"cross-fetch": "^4.0.0",
|
||||
"crypto-js": "^4.2.0",
|
||||
@@ -33,9 +33,9 @@
|
||||
"semver": "^7.6.0",
|
||||
"shelljs": "^0.8.5",
|
||||
"ts-node": "^10.9.2",
|
||||
"typescript": "^5.3.3",
|
||||
"typescript": "^5.4.2",
|
||||
"xml2js": "^0.6.2",
|
||||
"yaml": "^2.4.0"
|
||||
"yaml": "^2.4.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": "18"
|
||||
@@ -276,9 +276,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/@rokucommunity/bslint": {
|
||||
"version": "0.8.18",
|
||||
"resolved": "https://registry.npmjs.org/@rokucommunity/bslint/-/bslint-0.8.18.tgz",
|
||||
"integrity": "sha512-wVJKxfuQNUogTlVm7idCcpVWxIG0pttdv+ZgZC3JB812Oz/8k5gpvOiy4udKJP8AgW0VwGAdebb38Cpr2hLc3g==",
|
||||
"version": "0.8.19",
|
||||
"resolved": "https://registry.npmjs.org/@rokucommunity/bslint/-/bslint-0.8.19.tgz",
|
||||
"integrity": "sha512-2vQasjH5nZdgJJzxAOwYzA8gtjvvO5MtxfqjK10shE1G8XmLpqguT5qHzLz+HxvdRbFZ7OSOOyBAqQHgZRpO1Q==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"fs-extra": "^10.0.0",
|
||||
@@ -370,9 +370,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@types/node": {
|
||||
"version": "20.11.24",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.24.tgz",
|
||||
"integrity": "sha512-Kza43ewS3xoLgCEpQrsT+xRo/EJej1y0kVYGiLFE1NEODXGzTfwiC6tXTLMQskn1X4/Rjlh0MQUvx9W+L9long==",
|
||||
"version": "20.11.25",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.25.tgz",
|
||||
"integrity": "sha512-TBHyJxk2b7HceLVGFcpAUjsa5zIdsPWlR6XHfyGzd0SFu+/NFgQgMAl96MSDZgQDvJAvV6BKsFOrt6zIL09JDw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"undici-types": "~5.26.4"
|
||||
@@ -728,9 +728,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/brighterscript": {
|
||||
"version": "0.65.24",
|
||||
"resolved": "https://registry.npmjs.org/brighterscript/-/brighterscript-0.65.24.tgz",
|
||||
"integrity": "sha512-l57tvVA9n7cNHZIA/Up8zQpFAWTOwwn0QjUTrTnSWG3wzRhifbnaCPMLHlHTmBlSmQcoz3fqROy6/JBQHPlFCw==",
|
||||
"version": "0.65.25",
|
||||
"resolved": "https://registry.npmjs.org/brighterscript/-/brighterscript-0.65.25.tgz",
|
||||
"integrity": "sha512-sezfScxcXZfzEJ702HCMjfPsIH/x3mfLAFDObGU+xAC2E8m/zxrPOHKlD9Qpmdvd7/j4TgsujhiRQ1tnk8BzGA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@rokucommunity/bslib": "^0.1.1",
|
||||
@@ -770,12 +770,12 @@
|
||||
}
|
||||
},
|
||||
"node_modules/brighterscript-formatter": {
|
||||
"version": "1.6.41",
|
||||
"resolved": "https://registry.npmjs.org/brighterscript-formatter/-/brighterscript-formatter-1.6.41.tgz",
|
||||
"integrity": "sha512-JzgDP7bSAfglBCXBRtw5TnqYyCwsQeSMEm9zyayJgAP2TFT8kjOS6d5c7ancjC67fYlkWWBC71CRCpzC7ytwPg==",
|
||||
"version": "1.7.0",
|
||||
"resolved": "https://registry.npmjs.org/brighterscript-formatter/-/brighterscript-formatter-1.7.0.tgz",
|
||||
"integrity": "sha512-LKnUeAgNX3eKqK0J1Z55YteRlR/+DFuCbMf6/5DHdlCI7VVkOf+EWErruSfuol6+T2eImM0LY79CLT854VTE5g==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"brighterscript": "^0.65.23",
|
||||
"brighterscript": "^0.65.25",
|
||||
"glob-all": "^3.3.0",
|
||||
"jsonc-parser": "^3.0.0",
|
||||
"source-map": "^0.7.3",
|
||||
@@ -4647,9 +4647,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/typescript": {
|
||||
"version": "5.3.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz",
|
||||
"integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==",
|
||||
"version": "5.4.2",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.2.tgz",
|
||||
"integrity": "sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
@@ -5047,9 +5047,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/yaml": {
|
||||
"version": "2.4.0",
|
||||
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.0.tgz",
|
||||
"integrity": "sha512-j9iR8g+/t0lArF4V6NE/QCfT+CO7iLqrXAHZbJdo+LfjqP1vR8Fg5bSiaq6Q2lOD1AUEVrEVIgABvBFYojJVYQ==",
|
||||
"version": "2.4.1",
|
||||
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.1.tgz",
|
||||
"integrity": "sha512-pIXzoImaqmfOrL7teGUBt/T7ZDnyeGBWyXQBvOVhLkWLN37GXv8NMLK406UY6dS51JfcQHsmcW5cJ441bHg6Lg==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"yaml": "bin.mjs"
|
||||
|
||||
+7
-7
@@ -1,16 +1,16 @@
|
||||
{
|
||||
"name": "playlet",
|
||||
"version": "0.21.0",
|
||||
"version": "0.21.2",
|
||||
"description": "Unofficial YouTube client for Roku",
|
||||
"devDependencies": {
|
||||
"@rokucommunity/bslint": "^0.8.18",
|
||||
"@rokucommunity/bslint": "^0.8.19",
|
||||
"@types/crypto-js": "^4.2.2",
|
||||
"@types/fs-extra": "^11.0.4",
|
||||
"@types/node": "^20.11.24",
|
||||
"@types/node": "^20.11.25",
|
||||
"@types/xml2js": "^0.4.14",
|
||||
"argparse": "^2.0.1",
|
||||
"brighterscript": "0.65.24",
|
||||
"brighterscript-formatter": "^1.6.41",
|
||||
"brighterscript": "0.65.25",
|
||||
"brighterscript-formatter": "^1.7.0",
|
||||
"convert-svg-to-png": "^0.6.4",
|
||||
"cross-fetch": "^4.0.0",
|
||||
"crypto-js": "^4.2.0",
|
||||
@@ -27,9 +27,9 @@
|
||||
"semver": "^7.6.0",
|
||||
"shelljs": "^0.8.5",
|
||||
"ts-node": "^10.9.2",
|
||||
"typescript": "^5.3.3",
|
||||
"typescript": "^5.4.2",
|
||||
"xml2js": "^0.6.2",
|
||||
"yaml": "^2.4.0"
|
||||
"yaml": "^2.4.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": "18"
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "playlet-app",
|
||||
"version": "0.21.0",
|
||||
"version": "0.21.2",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "playlet-app",
|
||||
"version": "0.21.0"
|
||||
"version": "0.21.2"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "playlet-app",
|
||||
"version": "0.21.0",
|
||||
"version": "0.21.2",
|
||||
"description": "Unofficial YouTube client for Roku",
|
||||
"scripts": {
|
||||
"prebuild": "rm -rf build/playlet-app",
|
||||
|
||||
@@ -3,7 +3,7 @@ title=Playlet
|
||||
# Do not update version manually, it is auto updated from package.json
|
||||
major_version=0
|
||||
minor_version=21
|
||||
build_version=00000
|
||||
build_version=00002
|
||||
|
||||
ui_resolutions=hd
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ function Main(args as object) as void
|
||||
Logger.Init()
|
||||
|
||||
Registry.ClearPlayletLibUrlsIfNeeded(args)
|
||||
Registry.ClearRegistryIfNeeded(args)
|
||||
|
||||
scene = screen.CreateScene("BootstrapScene")
|
||||
screen.show()
|
||||
|
||||
@@ -14,6 +14,15 @@ namespace Registry
|
||||
sec.Flush()
|
||||
end function
|
||||
|
||||
function DeleteAll()
|
||||
reg = CreateObject("roRegistry")
|
||||
sectionNames = reg.GetSectionList()
|
||||
for each sectionName in sectionNames
|
||||
reg.Delete(sectionName)
|
||||
end for
|
||||
reg.Flush()
|
||||
end function
|
||||
|
||||
function GetPlayletLibUrlsFromRegistry() as object
|
||||
urlsJson = ReadKey("playlet_lib_urls", "Playlet")
|
||||
if urlsJson = invalid
|
||||
@@ -31,4 +40,12 @@ namespace Registry
|
||||
Logger.Log("Cleared key playlet_lib_urls from registry")
|
||||
end function
|
||||
|
||||
function ClearRegistryIfNeeded(launchArgs as object) as void
|
||||
if launchArgs = invalid or launchArgs.clearRegistry = invalid
|
||||
return
|
||||
end if
|
||||
DeleteAll()
|
||||
Logger.Log("Cleared all data from registry")
|
||||
end function
|
||||
|
||||
end namespace
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "playlet-lib",
|
||||
"version": "0.21.0",
|
||||
"version": "0.21.2",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "playlet-lib",
|
||||
"version": "0.21.0"
|
||||
"version": "0.21.2"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "playlet-lib",
|
||||
"version": "0.21.0",
|
||||
"version": "0.21.2",
|
||||
"description": "Unofficial YouTube client for Roku",
|
||||
"scripts": {
|
||||
"prebuild": "rm -rf build/playlet-lib",
|
||||
|
||||
@@ -16,6 +16,7 @@ function Init()
|
||||
m.banner = m.top.findNode("banner")
|
||||
m.thumbnail = m.top.findNode("thumbnail")
|
||||
m.authorLabel = m.top.findNode("authorLabel")
|
||||
m.subCountLabel = m.top.findNode("subCountLabel")
|
||||
m.subscribeButton = m.top.findNode("subscribeButton")
|
||||
m.rowList = m.top.FindNode("rowList")
|
||||
m.rowList.focusable = true
|
||||
@@ -60,6 +61,7 @@ function OnContentSet() as void
|
||||
|
||||
' NOTE: "_author" not "author". See PlaylistContentNode.xml for explanation.
|
||||
m.authorLabel.text = content._author
|
||||
m.subCountLabel.text = content.subCountText
|
||||
m.banner.uri = content.banner
|
||||
if StringUtils.IsNullOrEmpty(content.thumbnail)
|
||||
m.thumbnail.uri = ""
|
||||
|
||||
@@ -36,6 +36,10 @@
|
||||
id="authorLabel"
|
||||
translation="[115,40]"
|
||||
font="font:MediumBoldSystemFont" />
|
||||
<Label
|
||||
id="subCountLabel"
|
||||
translation="[115,70]"
|
||||
font="font:SmallestSystemFont" />
|
||||
</Poster>
|
||||
|
||||
<Button
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import "DialogPalette.bs"
|
||||
import "pkg:/source/AsyncTask/AsyncTask.bs"
|
||||
import "pkg:/source/AsyncTask/Tasks.bs"
|
||||
import "pkg:/source/utils/StringUtils.bs"
|
||||
import "pkg:/source/utils/Types.bs"
|
||||
|
||||
@@ -33,12 +31,7 @@ function OnUrlSet()
|
||||
url = m.top.url
|
||||
|
||||
m.urlLabel.text = url
|
||||
AsyncTask.Start(Tasks.GenerateQrCodeTask, {
|
||||
poster: m.qrCode
|
||||
text: url
|
||||
size: m.qrCode.loadWidth
|
||||
padding: 10
|
||||
})
|
||||
m.qrCode.text = url
|
||||
end function
|
||||
|
||||
function OnAuthTokenChange()
|
||||
|
||||
@@ -25,12 +25,13 @@
|
||||
wrap="true" width="400">
|
||||
<Font role="font" uri="font:SystemFontFile" size="24" />
|
||||
</Label>
|
||||
<Poster
|
||||
<QrCodePoster
|
||||
id="QrCodePoster"
|
||||
width="300"
|
||||
height="300"
|
||||
loadWidth="300"
|
||||
loadHeight="300"
|
||||
padding="10"
|
||||
translation="[50, 50]" />
|
||||
<Label
|
||||
id="urlLabel"
|
||||
|
||||
@@ -29,10 +29,8 @@ function ProcessArguments(args as object) as void
|
||||
return
|
||||
end if
|
||||
|
||||
if not StringUtils.IsNullOrEmpty(args.contentId) and args.mediaType = "video"
|
||||
if StringUtils.IsNullOrEmpty(args.videoId)
|
||||
args.videoId = args.contentId
|
||||
end if
|
||||
if not StringUtils.IsNullOrEmpty(args.contentId) and StringUtils.IsNullOrEmpty(args.videoId)
|
||||
args.videoId = args.contentId
|
||||
end if
|
||||
|
||||
if args.timestamp <> invalid
|
||||
|
||||
+7
-3
@@ -1,10 +1,8 @@
|
||||
import "pkg:/source/QrCode/QrImage.bs"
|
||||
import "pkg:/source/utils/StringUtils.bs"
|
||||
|
||||
' TODO:P1 create a QRCode component that has a loading spinner while the QRCode is being generated
|
||||
' It is slow and can take several seconds.
|
||||
@asynctask
|
||||
function GenerateQrCodeTask(input as object)
|
||||
function GenerateQrCodeTask(input as object) as object
|
||||
poster = input.poster
|
||||
mode = input.mode
|
||||
text = input.text
|
||||
@@ -26,7 +24,13 @@ function GenerateQrCodeTask(input as object)
|
||||
qr = new QrCode.QRImage()
|
||||
imagePath = qr.Generate(text, size, padding, mode)
|
||||
|
||||
if m.top.cancel
|
||||
return invalid
|
||||
end if
|
||||
|
||||
if not StringUtils.IsNullOrEmpty(imagePath)
|
||||
poster.uri = imagePath
|
||||
end if
|
||||
|
||||
return invalid
|
||||
end function
|
||||
@@ -0,0 +1,65 @@
|
||||
import "pkg:/source/AsyncTask/AsyncTask.bs"
|
||||
import "pkg:/source/AsyncTask/Tasks.bs"
|
||||
import "pkg:/source/utils/StringUtils.bs"
|
||||
import "pkg:/source/utils/Types.bs"
|
||||
|
||||
function Init()
|
||||
m.busySpinner = m.top.findNode("busySpinner")
|
||||
m.busySpinnerPoster = m.busySpinner.poster
|
||||
|
||||
m.busySpinnerPoster.uri = "pkg:/images/spinner.png"
|
||||
|
||||
m.top.observeField("width", FuncName(OnSizeChange))
|
||||
m.top.observeField("height", FuncName(OnSizeChange))
|
||||
OnSizeChange()
|
||||
end function
|
||||
|
||||
function OnSizeChange()
|
||||
width = m.top.width
|
||||
height = m.top.height
|
||||
|
||||
m.busySpinnerPoster.width = width / 2
|
||||
m.busySpinnerPoster.height = height / 2
|
||||
m.busySpinner.translation = [width / 4, height / 4]
|
||||
end function
|
||||
|
||||
function OnTextChange() as void
|
||||
if m.qrCodeGenTask <> invalid
|
||||
m.qrCodeGenTask.cancel = true
|
||||
end if
|
||||
|
||||
text = m.top.text
|
||||
|
||||
width = m.top.loadWidth
|
||||
if width = 0
|
||||
width = m.top.width
|
||||
end if
|
||||
|
||||
m.top.uri = ""
|
||||
|
||||
if StringUtils.IsNullOrEmpty(text)
|
||||
m.busySpinner.control = "stop"
|
||||
m.busySpinner.visible = false
|
||||
return
|
||||
end if
|
||||
|
||||
m.busySpinnerPoster.rotation = 0
|
||||
m.busySpinner.visible = true
|
||||
m.busySpinner.control = "start"
|
||||
|
||||
m.qrCodeGenTask = AsyncTask.Start(Tasks.GenerateQrCodeTask, {
|
||||
poster: m.top
|
||||
text: text
|
||||
size: width
|
||||
padding: m.top.padding
|
||||
}, OnGenerateQrCodeTaskResult)
|
||||
end function
|
||||
|
||||
function OnGenerateQrCodeTaskResult(output as object) as void
|
||||
if output.cancelled
|
||||
return
|
||||
end if
|
||||
|
||||
m.busySpinner.control = "stop"
|
||||
m.busySpinner.visible = false
|
||||
end function
|
||||
@@ -0,0 +1,12 @@
|
||||
<component name="QrCodePoster" extends="Poster">
|
||||
<interface>
|
||||
<field id="text" type="string" onChange="OnTextChange" />
|
||||
<field id="padding" type="integer" />
|
||||
</interface>
|
||||
<children>
|
||||
<BusySpinner
|
||||
id="busySpinner"
|
||||
spinInterval="1"
|
||||
visible="false" />
|
||||
</children>
|
||||
</component>
|
||||
@@ -1,8 +1,6 @@
|
||||
import "pkg:/components/Dialog/DialogUtils.bs"
|
||||
import "pkg:/components/Navigation/Navigation.bs"
|
||||
import "pkg:/source/AsyncTask/AsyncTask.bs"
|
||||
import "pkg:/source/AsyncTask/AsyncTask.bs"
|
||||
import "pkg:/source/AsyncTask/Tasks.bs"
|
||||
import "pkg:/source/AsyncTask/Tasks.bs"
|
||||
import "pkg:/source/utils/ErrorUtils.bs"
|
||||
import "pkg:/source/utils/FocusManagement.bs"
|
||||
@@ -18,6 +16,8 @@ function Init()
|
||||
m.linkWithWifiPanel = m.top.findNode("LinkWithWiFiPanel")
|
||||
m.linkWithTvPanel = m.top.findNode("LinkWithTvPanel")
|
||||
|
||||
m.webAppUrlLabel = m.top.findNode("WebAppUrlLabel")
|
||||
m.webAppQrCodePoster = m.top.findNode("WebAppQrCodePoster")
|
||||
m.wifiNameLabel = m.top.findNode("WifiNameLabel")
|
||||
m.wifiInstructionWithDeviceNameLabel = m.top.findNode("WifiInstructionWithDeviceNameLabel")
|
||||
m.linkCodeLabel = m.top.findNode("LinkCodeLabel")
|
||||
@@ -65,16 +65,8 @@ end function
|
||||
function OnUrlSet()
|
||||
url = m.top.url
|
||||
|
||||
urlLabel = m.top.findNode("urlLabel")
|
||||
urlLabel.text = url
|
||||
|
||||
qrCodePoster = m.top.findNode("QrCodePoster")
|
||||
AsyncTask.Start(Tasks.GenerateQrCodeTask, {
|
||||
poster: qrCodePoster
|
||||
text: url
|
||||
size: qrCodePoster.loadWidth
|
||||
padding: 20
|
||||
})
|
||||
m.webAppUrlLabel.text = url
|
||||
m.webAppQrCodePoster.text = url
|
||||
end function
|
||||
|
||||
function OnkeyEvent(key as string, press as boolean) as boolean
|
||||
|
||||
@@ -47,15 +47,16 @@
|
||||
font="font:SmallBoldSystemFont"
|
||||
horizAlign="center"
|
||||
text="Scan the QR code" />
|
||||
<Poster
|
||||
id="QrCodePoster"
|
||||
<QrCodePoster
|
||||
id="WebAppQrCodePoster"
|
||||
height="400"
|
||||
width="400"
|
||||
loadHeight="400"
|
||||
loadWidth="400"
|
||||
padding="20"
|
||||
translation="[0,40]" />
|
||||
<Label
|
||||
id="UrlLabel"
|
||||
id="WebAppUrlLabel"
|
||||
height="30"
|
||||
width="400"
|
||||
font="font:SmallBoldSystemFont"
|
||||
|
||||
+1
@@ -9,6 +9,7 @@
|
||||
<children>
|
||||
<BusySpinner
|
||||
id="busySpinner"
|
||||
spinInterval="2"
|
||||
translation="[5,0]" />
|
||||
<Label
|
||||
id="nameLabel"
|
||||
|
||||
+1
@@ -5,6 +5,7 @@
|
||||
<children>
|
||||
<BusySpinner
|
||||
id="busySpinner"
|
||||
spinInterval="1"
|
||||
translation="[380,96]" />
|
||||
<Label
|
||||
id="failedLabel"
|
||||
|
||||
@@ -14,6 +14,7 @@ function GetLatestPlayletLibVersionFromGithubReleases() as string
|
||||
if response.StatusCode() = 200
|
||||
headers = response.Headers()
|
||||
if headers.location <> invalid
|
||||
' bs:disable-next-line NO_OPTIONAL_CHAINING
|
||||
regex = /\/v?(\d+\.\d+\.\d+)/
|
||||
match = regex.match(headers.location)
|
||||
if match.Count() = 2
|
||||
|
||||
@@ -251,12 +251,34 @@ namespace InvidiousContent
|
||||
|
||||
function GetVideoCountText(item as object) as string
|
||||
videoCount = ValidInt(item.videoCount)
|
||||
return videoCount = 1 ? "1 video" : `${videoCount} videos`
|
||||
if videoCount = 1
|
||||
return "1 video"
|
||||
end if
|
||||
return `${videoCount} videos`
|
||||
end function
|
||||
|
||||
function GetChannelSubCountText(channel as object) as string
|
||||
subCount = ValidInt(channel.subCount)
|
||||
return subCount = 1 ? "1 subscriber" : `${subCount} subscribers`
|
||||
if subCount = 1
|
||||
return "1 subscriber"
|
||||
end if
|
||||
|
||||
if subCount < 1000
|
||||
return `${subCount} subscribers`
|
||||
end if
|
||||
|
||||
subCount = subCount / 1000
|
||||
if subCount < 1000
|
||||
return `${FormatFloat(subCount)}K subscribers`
|
||||
end if
|
||||
|
||||
subCount = subCount / 1000
|
||||
if subCount < 1000
|
||||
return `${FormatFloat(subCount)}M subscribers`
|
||||
end if
|
||||
|
||||
subCount = subCount / 1000
|
||||
return `${FormatFloat(subCount)}B subscribers`
|
||||
end function
|
||||
|
||||
function PlaylistGetViewCountText(playlistItem as object) as string
|
||||
|
||||
@@ -36,6 +36,16 @@ function VideoContentTask(input as object) as object
|
||||
contentNode.secondaryTitle = metadata.author
|
||||
contentNode.live = metadata.liveNow
|
||||
|
||||
if IsString(metadata.error)
|
||||
' Adding metadata allows us to play next recommended video after displaying the error
|
||||
contentNode.addFields({ metadata: metadata })
|
||||
|
||||
return {
|
||||
success: false
|
||||
error: metadata.error
|
||||
}
|
||||
end if
|
||||
|
||||
streamUrls = CreateStreamUrls(metadata, service, preferencesNode, playletServerPort)
|
||||
contentNode.url = streamUrls[0]
|
||||
|
||||
|
||||
@@ -25,7 +25,9 @@ function Init()
|
||||
m.videoPlayingSuccess = false
|
||||
' ignoreNextFinishedState indicates if we should ignore the next finished state
|
||||
' This is used to prevent the video from playing the next video when we are
|
||||
' still trying to find a working stream url
|
||||
' still trying to find a working stream url.
|
||||
' This is also used to prevent playing the next video when we're still displaying
|
||||
' an error dialog.
|
||||
m.ignoreNextFinishedState = false
|
||||
|
||||
' Indicates that we're currently paused and seeking position
|
||||
@@ -266,6 +268,7 @@ function OnVideoPlayerStateChange() as void
|
||||
|
||||
dialog = DialogUtils.ShowTimedDialogButtons(messageLines, title, ["Play next video", "Cancel"], 0, 10, true)
|
||||
dialog.observeFieldScoped("wasClosed", FuncName(OnVideoContentTaskErrorDialogResponse))
|
||||
m.ignoreNextFinishedState = true
|
||||
end if
|
||||
end function
|
||||
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
import "pkg:/components/Services/Invidious/InvidiousService.bs"
|
||||
|
||||
@asynctask
|
||||
function VideoContentTaskDev(input as object) as object
|
||||
contentNode = input.content
|
||||
invidiousNode = input.invidious
|
||||
|
||||
if StringUtils.IsNullOrEmpty(contentNode.videoId)
|
||||
throw "Can't load video information: videoId is missing"
|
||||
end if
|
||||
|
||||
service = new Invidious.InvidiousService(invidiousNode)
|
||||
|
||||
response = service.GetVideoMetadata(contentNode.videoId, { cancellation: m.top.cancellation })
|
||||
|
||||
if m.top.cancel
|
||||
return invalid
|
||||
end if
|
||||
|
||||
metadata = response.Json()
|
||||
|
||||
if not response.IsSuccess() or metadata = invalid
|
||||
return {
|
||||
success: false
|
||||
error: response.ErrorMessage()
|
||||
}
|
||||
end if
|
||||
|
||||
contentNode.title = metadata.title
|
||||
contentNode.secondaryTitle = metadata.author
|
||||
contentNode.live = metadata.liveNow
|
||||
|
||||
streamUrls = [`http://127.0.0.1:8888/api/dash?v=${metadata.videoId}`]
|
||||
contentNode.url = streamUrls[0]
|
||||
|
||||
contentNode.addFields({
|
||||
metadata: metadata
|
||||
' StreamUrls is taken
|
||||
playletStreamUrls: streamUrls
|
||||
playletStreamUrlIndex: 0
|
||||
})
|
||||
|
||||
return {
|
||||
success: true
|
||||
}
|
||||
end function
|
||||
@@ -0,0 +1,95 @@
|
||||
import "pkg:/components/parts/AutoBind/OnNodeReadyNoOp.bs"
|
||||
import "pkg:/source/AsyncTask/AsyncTask.bs"
|
||||
import "pkg:/source/AsyncTask/Tasks.bs"
|
||||
import "pkg:/source/utils/ErrorUtils.bs"
|
||||
import "pkg:/source/utils/Logging.bs"
|
||||
import "pkg:/source/utils/StringUtils.bs"
|
||||
import "pkg:/source/utils/Types.bs"
|
||||
|
||||
function Init()
|
||||
m.top.enableUI = false
|
||||
m.top.enableTrickPlay = false
|
||||
|
||||
httpAgent = m.top.getHttpAgent()
|
||||
httpAgent.AddHeader("User-Agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0")
|
||||
end function
|
||||
|
||||
function PlayWithContent(contentNode as object)
|
||||
videoContentNode = CreateObject("roSGNode", "ContentNode")
|
||||
|
||||
if not StringUtils.IsNullOrEmpty(contentNode.videoId)
|
||||
videoContentNode.AddFields({ videoId: contentNode.videoId })
|
||||
end if
|
||||
if not StringUtils.IsNullOrEmpty(contentNode.title)
|
||||
videoContentNode.title = contentNode.title
|
||||
end if
|
||||
' NOTE: "_author" not "author". See PlaylistContentNode.xml for explanation.
|
||||
if not StringUtils.IsNullOrEmpty(contentNode._author)
|
||||
videoContentNode.secondaryTitle = contentNode._author
|
||||
end if
|
||||
|
||||
StartVideoContentTask(videoContentNode)
|
||||
end function
|
||||
|
||||
function StartVideoContentTask(videoContentNode as object)
|
||||
if m.videoContentTask <> invalid
|
||||
m.videoContentTask.cancel = true
|
||||
end if
|
||||
|
||||
m.top.content = videoContentNode
|
||||
|
||||
m.videoContentTask = AsyncTask.Start(Tasks.VideoContentTaskDev, {
|
||||
content: videoContentNode
|
||||
invidious: m.top.invidious
|
||||
}, OnVideoContentTaskResults)
|
||||
end function
|
||||
|
||||
function OnVideoContentTaskResults(output as object) as void
|
||||
m.videoContentTask = invalid
|
||||
if output.cancelled
|
||||
return
|
||||
end if
|
||||
|
||||
if not output.success or not output.result.success
|
||||
' output.error for unhandled exception
|
||||
error = output.error
|
||||
if error = invalid
|
||||
' output.result.error for network errors
|
||||
error = output.result.error
|
||||
end if
|
||||
error = ErrorUtils.Format(error)
|
||||
LogError(error)
|
||||
Close(invalid)
|
||||
return
|
||||
end if
|
||||
|
||||
m.top.control = "play"
|
||||
end function
|
||||
|
||||
function Close(_unused as dynamic)
|
||||
if m.videoContentTask <> invalid
|
||||
m.videoContentTask.cancel = true
|
||||
m.videoContentTask = invalid
|
||||
end if
|
||||
|
||||
parent = m.top.getParent()
|
||||
if parent <> invalid
|
||||
parent.RemoveChild(m.top)
|
||||
end if
|
||||
|
||||
m.top.control = "stop"
|
||||
m.top.content = invalid
|
||||
end function
|
||||
|
||||
function OnkeyEvent(key as string, press as boolean) as boolean
|
||||
if press = false
|
||||
return false
|
||||
end if
|
||||
|
||||
if key = "back"
|
||||
m.videoQueue.closePlayer = true
|
||||
return true
|
||||
end if
|
||||
|
||||
return false
|
||||
end function
|
||||
@@ -0,0 +1,23 @@
|
||||
<!--
|
||||
VideoPlayerDev is the player that will eventually be used in the Playlet app.
|
||||
It extends the Video component, and will be fully managing the UI, progress,
|
||||
buffering, and any state of the video playback.
|
||||
This would allow us to be flexible with the UI beyond the customizations
|
||||
of the stock Roku Video component.
|
||||
-->
|
||||
<component name="VideoPlayerDev" extends="Video" includes="AutoBind">
|
||||
<interface>
|
||||
<field id="videoQueue" type="node" bind="../../VideoQueue" />
|
||||
<field id="invidious" type="node" bind="../../Invidious" />
|
||||
<function name="PlayWithContent" />
|
||||
<function name="Close" />
|
||||
</interface>
|
||||
<children>
|
||||
<SimpleLabel
|
||||
text="Dev Player!"
|
||||
color="#FF0000"
|
||||
fontUri="font:SmallestBoldSystemFont"
|
||||
horizOrigin="right"
|
||||
translation="[1280,0]" />
|
||||
</children>
|
||||
</component>
|
||||
@@ -355,8 +355,15 @@ function OnHasNext()
|
||||
end function
|
||||
|
||||
function CreateVideoPlayer() as object
|
||||
useDevPlayer = m.top.preferences["dev.dev_video_player"]
|
||||
if useDevPlayer
|
||||
playerComponent = "VideoPlayerDev"
|
||||
else
|
||||
playerComponent = "VideoPlayer"
|
||||
end if
|
||||
|
||||
container = m.top.videoContainer
|
||||
videoPlayer = container.createChild("VideoPlayer")
|
||||
videoPlayer = container.createChild(playerComponent)
|
||||
videoPlayer.id = "VideoPlayer"
|
||||
videoPlayer@.BindNode()
|
||||
|
||||
|
||||
@@ -99,6 +99,69 @@ namespace Http
|
||||
return true
|
||||
end function
|
||||
|
||||
' A shortcut to play a video using a /watch endpoint
|
||||
@get("/watch")
|
||||
function PlayWatch(context as object) as boolean
|
||||
request = context.request
|
||||
response = context.response
|
||||
|
||||
videoId = request.query.v
|
||||
playlistId = request.query.list
|
||||
playlistIndex = request.query.index
|
||||
|
||||
hasValidVideo = not StringUtils.IsNullOrEmpty(videoId)
|
||||
hasValidPlaylist = not StringUtils.IsNullOrEmpty(playlistId) and not StringUtils.IsNullOrEmpty(playlistIndex)
|
||||
if not hasValidVideo and not hasValidPlaylist
|
||||
response.Default(400, `Missing video id ("v") or playlist id and index ("list" and "index") in query`)
|
||||
return true
|
||||
end if
|
||||
|
||||
instance = m.invidiousService.GetInstance()
|
||||
|
||||
if hasValidPlaylist
|
||||
payload = {
|
||||
"type": "playlist"
|
||||
"playlistId": playlistId
|
||||
}
|
||||
|
||||
contentNode = InvidiousContent.ToRowCellContentNode(payload, instance)
|
||||
playlistIndex = MathUtils.Max(0, ValidInt(playlistIndex.toInt()) - 1)
|
||||
|
||||
' TODO:P1 handle playlist with timestamp
|
||||
' TODO:P1 videoId should take precedence over index
|
||||
m.videoQueueNode.playPlaylist = {
|
||||
playlistNode: contentNode
|
||||
playlistIndex: playlistIndex
|
||||
}
|
||||
|
||||
response.Default(200, "Now playing playlist - " + playlistId)
|
||||
return true
|
||||
else if hasValidVideo
|
||||
timestamp = request.query.t
|
||||
if IsString(timestamp)
|
||||
if timestamp.endsWith("s")
|
||||
timestamp = timestamp.left(timestamp.Len() - 1)
|
||||
end if
|
||||
timestamp = timestamp.toInt()
|
||||
end if
|
||||
timestamp = ValidInt(timestamp)
|
||||
|
||||
payload = {
|
||||
"type": "video"
|
||||
"videoId": videoId
|
||||
"timestamp": timestamp
|
||||
}
|
||||
|
||||
contentNode = InvidiousContent.ToRowCellContentNode(payload, instance)
|
||||
m.videoQueueNode.playVideo = contentNode
|
||||
|
||||
response.Default(200, "Now playing video - " + videoId)
|
||||
return true
|
||||
end if
|
||||
|
||||
return false
|
||||
end function
|
||||
|
||||
@delete("/api/queue")
|
||||
function ClearQueue(context as object) as boolean
|
||||
response = context.response
|
||||
|
||||
@@ -188,4 +188,25 @@
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
displayText: "Developer",
|
||||
key: "dev",
|
||||
description: "Developer preferences",
|
||||
children: [
|
||||
{
|
||||
displayText: "Use dev video player",
|
||||
key: "dev.dev_video_player",
|
||||
description: "Enable the dev video player. This is an unfinished video player for testing purposes.",
|
||||
type: "boolean",
|
||||
defaultValue: false,
|
||||
},
|
||||
{
|
||||
displayText: "Playlet Library version",
|
||||
key: "dev.playlet_lib_version",
|
||||
description: "The version of Playlet Lib to use. These correspond to tagged releases on Github. Releases that do not have a playlet-lib.zip file are disabled.",
|
||||
visibility: "web",
|
||||
svelteComponent: "PlayletLibVersionControl",
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
inputHash: 'cb60a03d94432dc8c59e759b0b964fe0',
|
||||
inputHash: '6887f8894ba0a2aadeb51e4ec52c479f',
|
||||
outputs: [
|
||||
{
|
||||
outputFilePath: 'images/icons/crown.png',
|
||||
|
||||
@@ -3,7 +3,7 @@ title=PlayletLib
|
||||
# Do not update version manually, it is auto updated from package.json
|
||||
major_version=0
|
||||
minor_version=21
|
||||
build_version=00000
|
||||
build_version=00002
|
||||
|
||||
ui_resolutions=hd
|
||||
|
||||
|
||||
@@ -5,19 +5,19 @@ enum LogLevel
|
||||
DEBUG = 3
|
||||
end enum
|
||||
|
||||
function LogError(arg1 = invalid as dynamic, arg2 = invalid as dynamic, arg3 = invalid as dynamic, arg4 = invalid as dynamic, arg5 = invalid as dynamic, arg6 = invalid as dynamic, arg7 = invalid as dynamic, arg8 = invalid as dynamic, arg9 = invalid as dynamic, arg10 = invalid as dynamic, arg11 = invalid as dynamic, arg12 = invalid as dynamic, arg13 = invalid as dynamic, arg14 = invalid as dynamic, arg15 = invalid as dynamic, arg16 = invalid as dynamic) as void
|
||||
function LogError(_arg1 = invalid as dynamic, _arg2 = invalid as dynamic, _arg3 = invalid as dynamic, _arg4 = invalid as dynamic, _arg5 = invalid as dynamic, _arg6 = invalid as dynamic, _arg7 = invalid as dynamic, _arg8 = invalid as dynamic, _arg9 = invalid as dynamic, _arg10 = invalid as dynamic, _arg11 = invalid as dynamic, _arg12 = invalid as dynamic, _arg13 = invalid as dynamic, _arg14 = invalid as dynamic, _arg15 = invalid as dynamic, _arg16 = invalid as dynamic) as void
|
||||
throw "FATAL: Calling LogError() which is a stub function"
|
||||
end function
|
||||
|
||||
function LogWarn(arg1 = invalid as dynamic, arg2 = invalid as dynamic, arg3 = invalid as dynamic, arg4 = invalid as dynamic, arg5 = invalid as dynamic, arg6 = invalid as dynamic, arg7 = invalid as dynamic, arg8 = invalid as dynamic, arg9 = invalid as dynamic, arg10 = invalid as dynamic, arg11 = invalid as dynamic, arg12 = invalid as dynamic, arg13 = invalid as dynamic, arg14 = invalid as dynamic, arg15 = invalid as dynamic, arg16 = invalid as dynamic) as void
|
||||
function LogWarn(_arg1 = invalid as dynamic, _arg2 = invalid as dynamic, _arg3 = invalid as dynamic, _arg4 = invalid as dynamic, _arg5 = invalid as dynamic, _arg6 = invalid as dynamic, _arg7 = invalid as dynamic, _arg8 = invalid as dynamic, _arg9 = invalid as dynamic, _arg10 = invalid as dynamic, _arg11 = invalid as dynamic, _arg12 = invalid as dynamic, _arg13 = invalid as dynamic, _arg14 = invalid as dynamic, _arg15 = invalid as dynamic, _arg16 = invalid as dynamic) as void
|
||||
throw "FATAL: Calling LogWarn() which is a stub function"
|
||||
end function
|
||||
|
||||
function LogInfo(arg1 = invalid as dynamic, arg2 = invalid as dynamic, arg3 = invalid as dynamic, arg4 = invalid as dynamic, arg5 = invalid as dynamic, arg6 = invalid as dynamic, arg7 = invalid as dynamic, arg8 = invalid as dynamic, arg9 = invalid as dynamic, arg10 = invalid as dynamic, arg11 = invalid as dynamic, arg12 = invalid as dynamic, arg13 = invalid as dynamic, arg14 = invalid as dynamic, arg15 = invalid as dynamic, arg16 = invalid as dynamic) as void
|
||||
function LogInfo(_arg1 = invalid as dynamic, _arg2 = invalid as dynamic, _arg3 = invalid as dynamic, _arg4 = invalid as dynamic, _arg5 = invalid as dynamic, _arg6 = invalid as dynamic, _arg7 = invalid as dynamic, _arg8 = invalid as dynamic, _arg9 = invalid as dynamic, _arg10 = invalid as dynamic, _arg11 = invalid as dynamic, _arg12 = invalid as dynamic, _arg13 = invalid as dynamic, _arg14 = invalid as dynamic, _arg15 = invalid as dynamic, _arg16 = invalid as dynamic) as void
|
||||
throw "FATAL: Calling LogInfo() which is a stub function"
|
||||
end function
|
||||
|
||||
function LogDebug(arg1 = invalid as dynamic, arg2 = invalid as dynamic, arg3 = invalid as dynamic, arg4 = invalid as dynamic, arg5 = invalid as dynamic, arg6 = invalid as dynamic, arg7 = invalid as dynamic, arg8 = invalid as dynamic, arg9 = invalid as dynamic, arg10 = invalid as dynamic, arg11 = invalid as dynamic, arg12 = invalid as dynamic, arg13 = invalid as dynamic, arg14 = invalid as dynamic, arg15 = invalid as dynamic, arg16 = invalid as dynamic) as void
|
||||
function LogDebug(_arg1 = invalid as dynamic, _arg2 = invalid as dynamic, _arg3 = invalid as dynamic, _arg4 = invalid as dynamic, _arg5 = invalid as dynamic, _arg6 = invalid as dynamic, _arg7 = invalid as dynamic, _arg8 = invalid as dynamic, _arg9 = invalid as dynamic, _arg10 = invalid as dynamic, _arg11 = invalid as dynamic, _arg12 = invalid as dynamic, _arg13 = invalid as dynamic, _arg14 = invalid as dynamic, _arg15 = invalid as dynamic, _arg16 = invalid as dynamic) as void
|
||||
throw "FATAL: Calling LogDebug() which is a stub function"
|
||||
end function
|
||||
|
||||
|
||||
Generated
+49
-475
@@ -1,17 +1,17 @@
|
||||
{
|
||||
"name": "playlet-web",
|
||||
"version": "0.21.0",
|
||||
"version": "0.21.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "playlet-web",
|
||||
"version": "0.21.0",
|
||||
"version": "0.21.2",
|
||||
"devDependencies": {
|
||||
"@sveltejs/vite-plugin-svelte": "^3.0.2",
|
||||
"@tailwindcss/typography": "^0.5.10",
|
||||
"@tsconfig/svelte": "^5.0.2",
|
||||
"@vitejs/plugin-legacy": "^5.3.1",
|
||||
"@vitejs/plugin-legacy": "^5.3.2",
|
||||
"autoprefixer": "^10.4.18",
|
||||
"daisyui": "^4.7.2",
|
||||
"dotenv": "^16.4.5",
|
||||
@@ -21,10 +21,10 @@
|
||||
"svelte-check": "^3.6.6",
|
||||
"svelte-preprocess": "^5.1.3",
|
||||
"tailwindcss": "^3.4.1",
|
||||
"terser": "^5.28.1",
|
||||
"terser": "^5.29.1",
|
||||
"tslib": "^2.6.2",
|
||||
"typescript": "^5.3.3",
|
||||
"vite": "^5.1.4",
|
||||
"typescript": "^5.4.2",
|
||||
"vite": "^5.1.5",
|
||||
"vite-tsconfig-paths": "^4.3.1"
|
||||
}
|
||||
},
|
||||
@@ -1716,23 +1716,6 @@
|
||||
"node": ">=4"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/aix-ppc64": {
|
||||
"version": "0.20.1",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.20.1.tgz",
|
||||
"integrity": "sha512-m55cpeupQ2DbuRGQMMZDzbv9J9PgVelPjlcmM5kxHnrBdBx6REaEd7LamYV7Dm8N7rCyR/XwU6rVP8ploKtIkA==",
|
||||
"cpu": [
|
||||
"ppc64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"aix"
|
||||
],
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/@esbuild/android-arm": {
|
||||
"version": "0.19.6",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.6.tgz",
|
||||
@@ -2407,16 +2390,16 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/@vitejs/plugin-legacy": {
|
||||
"version": "5.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@vitejs/plugin-legacy/-/plugin-legacy-5.3.1.tgz",
|
||||
"integrity": "sha512-ymCuZo8Bu7gSO85I3E/3SNnaQ64gFdVpTqxqhl8YeasJChDxN8D3IKYByC+AsxwoeO2AE59wy4PPILM/A03TIQ==",
|
||||
"version": "5.3.2",
|
||||
"resolved": "https://registry.npmjs.org/@vitejs/plugin-legacy/-/plugin-legacy-5.3.2.tgz",
|
||||
"integrity": "sha512-8moCOrIMaZ/Rjln0Q6GsH6s8fAt1JOI3k8nmfX4tXUxE5KAExVctSyOBk+A25GClsdSWqIk2yaUthH3KJ2X4tg==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@babel/core": "^7.23.9",
|
||||
"@babel/preset-env": "^7.23.9",
|
||||
"browserslist": "^4.23.0",
|
||||
"browserslist-to-esbuild": "^2.1.1",
|
||||
"core-js": "^3.36.0",
|
||||
"esbuild-plugin-browserslist": "^0.11.1",
|
||||
"magic-string": "^0.30.7",
|
||||
"regenerator-runtime": "^0.14.1",
|
||||
"systemjs": "^6.14.3"
|
||||
@@ -2432,436 +2415,6 @@
|
||||
"vite": "^5.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@vitejs/plugin-legacy/node_modules/@esbuild/android-arm": {
|
||||
"version": "0.20.1",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.20.1.tgz",
|
||||
"integrity": "sha512-4j0+G27/2ZXGWR5okcJi7pQYhmkVgb4D7UKwxcqrjhvp5TKWx3cUjgB1CGj1mfdmJBQ9VnUGgUhign+FPF2Zgw==",
|
||||
"cpu": [
|
||||
"arm"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"android"
|
||||
],
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/@vitejs/plugin-legacy/node_modules/@esbuild/android-arm64": {
|
||||
"version": "0.20.1",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.20.1.tgz",
|
||||
"integrity": "sha512-hCnXNF0HM6AjowP+Zou0ZJMWWa1VkD77BXe959zERgGJBBxB+sV+J9f/rcjeg2c5bsukD/n17RKWXGFCO5dD5A==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"android"
|
||||
],
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/@vitejs/plugin-legacy/node_modules/@esbuild/android-x64": {
|
||||
"version": "0.20.1",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.20.1.tgz",
|
||||
"integrity": "sha512-MSfZMBoAsnhpS+2yMFYIQUPs8Z19ajwfuaSZx+tSl09xrHZCjbeXXMsUF/0oq7ojxYEpsSo4c0SfjxOYXRbpaA==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"android"
|
||||
],
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/@vitejs/plugin-legacy/node_modules/@esbuild/darwin-arm64": {
|
||||
"version": "0.20.1",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.20.1.tgz",
|
||||
"integrity": "sha512-Ylk6rzgMD8klUklGPzS414UQLa5NPXZD5tf8JmQU8GQrj6BrFA/Ic9tb2zRe1kOZyCbGl+e8VMbDRazCEBqPvA==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"darwin"
|
||||
],
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/@vitejs/plugin-legacy/node_modules/@esbuild/darwin-x64": {
|
||||
"version": "0.20.1",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.20.1.tgz",
|
||||
"integrity": "sha512-pFIfj7U2w5sMp52wTY1XVOdoxw+GDwy9FsK3OFz4BpMAjvZVs0dT1VXs8aQm22nhwoIWUmIRaE+4xow8xfIDZA==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"darwin"
|
||||
],
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/@vitejs/plugin-legacy/node_modules/@esbuild/freebsd-arm64": {
|
||||
"version": "0.20.1",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.20.1.tgz",
|
||||
"integrity": "sha512-UyW1WZvHDuM4xDz0jWun4qtQFauNdXjXOtIy7SYdf7pbxSWWVlqhnR/T2TpX6LX5NI62spt0a3ldIIEkPM6RHw==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"freebsd"
|
||||
],
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/@vitejs/plugin-legacy/node_modules/@esbuild/freebsd-x64": {
|
||||
"version": "0.20.1",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.20.1.tgz",
|
||||
"integrity": "sha512-itPwCw5C+Jh/c624vcDd9kRCCZVpzpQn8dtwoYIt2TJF3S9xJLiRohnnNrKwREvcZYx0n8sCSbvGH349XkcQeg==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"freebsd"
|
||||
],
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/@vitejs/plugin-legacy/node_modules/@esbuild/linux-arm": {
|
||||
"version": "0.20.1",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.20.1.tgz",
|
||||
"integrity": "sha512-LojC28v3+IhIbfQ+Vu4Ut5n3wKcgTu6POKIHN9Wpt0HnfgUGlBuyDDQR4jWZUZFyYLiz4RBBBmfU6sNfn6RhLw==",
|
||||
"cpu": [
|
||||
"arm"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/@vitejs/plugin-legacy/node_modules/@esbuild/linux-arm64": {
|
||||
"version": "0.20.1",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.20.1.tgz",
|
||||
"integrity": "sha512-cX8WdlF6Cnvw/DO9/X7XLH2J6CkBnz7Twjpk56cshk9sjYVcuh4sXQBy5bmTwzBjNVZze2yaV1vtcJS04LbN8w==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/@vitejs/plugin-legacy/node_modules/@esbuild/linux-ia32": {
|
||||
"version": "0.20.1",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.20.1.tgz",
|
||||
"integrity": "sha512-4H/sQCy1mnnGkUt/xszaLlYJVTz3W9ep52xEefGtd6yXDQbz/5fZE5dFLUgsPdbUOQANcVUa5iO6g3nyy5BJiw==",
|
||||
"cpu": [
|
||||
"ia32"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/@vitejs/plugin-legacy/node_modules/@esbuild/linux-loong64": {
|
||||
"version": "0.20.1",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.20.1.tgz",
|
||||
"integrity": "sha512-c0jgtB+sRHCciVXlyjDcWb2FUuzlGVRwGXgI+3WqKOIuoo8AmZAddzeOHeYLtD+dmtHw3B4Xo9wAUdjlfW5yYA==",
|
||||
"cpu": [
|
||||
"loong64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/@vitejs/plugin-legacy/node_modules/@esbuild/linux-mips64el": {
|
||||
"version": "0.20.1",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.20.1.tgz",
|
||||
"integrity": "sha512-TgFyCfIxSujyuqdZKDZ3yTwWiGv+KnlOeXXitCQ+trDODJ+ZtGOzLkSWngynP0HZnTsDyBbPy7GWVXWaEl6lhA==",
|
||||
"cpu": [
|
||||
"mips64el"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/@vitejs/plugin-legacy/node_modules/@esbuild/linux-ppc64": {
|
||||
"version": "0.20.1",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.20.1.tgz",
|
||||
"integrity": "sha512-b+yuD1IUeL+Y93PmFZDZFIElwbmFfIKLKlYI8M6tRyzE6u7oEP7onGk0vZRh8wfVGC2dZoy0EqX1V8qok4qHaw==",
|
||||
"cpu": [
|
||||
"ppc64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/@vitejs/plugin-legacy/node_modules/@esbuild/linux-riscv64": {
|
||||
"version": "0.20.1",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.20.1.tgz",
|
||||
"integrity": "sha512-wpDlpE0oRKZwX+GfomcALcouqjjV8MIX8DyTrxfyCfXxoKQSDm45CZr9fanJ4F6ckD4yDEPT98SrjvLwIqUCgg==",
|
||||
"cpu": [
|
||||
"riscv64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/@vitejs/plugin-legacy/node_modules/@esbuild/linux-s390x": {
|
||||
"version": "0.20.1",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.20.1.tgz",
|
||||
"integrity": "sha512-5BepC2Au80EohQ2dBpyTquqGCES7++p7G+7lXe1bAIvMdXm4YYcEfZtQrP4gaoZ96Wv1Ute61CEHFU7h4FMueQ==",
|
||||
"cpu": [
|
||||
"s390x"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/@vitejs/plugin-legacy/node_modules/@esbuild/linux-x64": {
|
||||
"version": "0.20.1",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.20.1.tgz",
|
||||
"integrity": "sha512-5gRPk7pKuaIB+tmH+yKd2aQTRpqlf1E4f/mC+tawIm/CGJemZcHZpp2ic8oD83nKgUPMEd0fNanrnFljiruuyA==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/@vitejs/plugin-legacy/node_modules/@esbuild/netbsd-x64": {
|
||||
"version": "0.20.1",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.20.1.tgz",
|
||||
"integrity": "sha512-4fL68JdrLV2nVW2AaWZBv3XEm3Ae3NZn/7qy2KGAt3dexAgSVT+Hc97JKSZnqezgMlv9x6KV0ZkZY7UO5cNLCg==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"netbsd"
|
||||
],
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/@vitejs/plugin-legacy/node_modules/@esbuild/openbsd-x64": {
|
||||
"version": "0.20.1",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.20.1.tgz",
|
||||
"integrity": "sha512-GhRuXlvRE+twf2ES+8REbeCb/zeikNqwD3+6S5y5/x+DYbAQUNl0HNBs4RQJqrechS4v4MruEr8ZtAin/hK5iw==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"openbsd"
|
||||
],
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/@vitejs/plugin-legacy/node_modules/@esbuild/sunos-x64": {
|
||||
"version": "0.20.1",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.20.1.tgz",
|
||||
"integrity": "sha512-ZnWEyCM0G1Ex6JtsygvC3KUUrlDXqOihw8RicRuQAzw+c4f1D66YlPNNV3rkjVW90zXVsHwZYWbJh3v+oQFM9Q==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"sunos"
|
||||
],
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/@vitejs/plugin-legacy/node_modules/@esbuild/win32-arm64": {
|
||||
"version": "0.20.1",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.20.1.tgz",
|
||||
"integrity": "sha512-QZ6gXue0vVQY2Oon9WyLFCdSuYbXSoxaZrPuJ4c20j6ICedfsDilNPYfHLlMH7vGfU5DQR0czHLmJvH4Nzis/A==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"win32"
|
||||
],
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/@vitejs/plugin-legacy/node_modules/@esbuild/win32-ia32": {
|
||||
"version": "0.20.1",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.20.1.tgz",
|
||||
"integrity": "sha512-HzcJa1NcSWTAU0MJIxOho8JftNp9YALui3o+Ny7hCh0v5f90nprly1U3Sj1Ldj/CvKKdvvFsCRvDkpsEMp4DNw==",
|
||||
"cpu": [
|
||||
"ia32"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"win32"
|
||||
],
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/@vitejs/plugin-legacy/node_modules/@esbuild/win32-x64": {
|
||||
"version": "0.20.1",
|
||||
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.20.1.tgz",
|
||||
"integrity": "sha512-0MBh53o6XtI6ctDnRMeQ+xoCN8kD2qI1rY1KgF/xdWQwoFeKou7puvDfV8/Wv4Ctx2rRpET/gGdz3YlNtNACSA==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"optional": true,
|
||||
"os": [
|
||||
"win32"
|
||||
],
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/@vitejs/plugin-legacy/node_modules/esbuild": {
|
||||
"version": "0.20.1",
|
||||
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.20.1.tgz",
|
||||
"integrity": "sha512-OJwEgrpWm/PCMsLVWXKqvcjme3bHNpOgN7Tb6cQnR5n0TPbQx1/Xrn7rqM+wn17bYeT6MGB5sn1Bh5YiGi70nA==",
|
||||
"dev": true,
|
||||
"hasInstallScript": true,
|
||||
"peer": true,
|
||||
"bin": {
|
||||
"esbuild": "bin/esbuild"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@esbuild/aix-ppc64": "0.20.1",
|
||||
"@esbuild/android-arm": "0.20.1",
|
||||
"@esbuild/android-arm64": "0.20.1",
|
||||
"@esbuild/android-x64": "0.20.1",
|
||||
"@esbuild/darwin-arm64": "0.20.1",
|
||||
"@esbuild/darwin-x64": "0.20.1",
|
||||
"@esbuild/freebsd-arm64": "0.20.1",
|
||||
"@esbuild/freebsd-x64": "0.20.1",
|
||||
"@esbuild/linux-arm": "0.20.1",
|
||||
"@esbuild/linux-arm64": "0.20.1",
|
||||
"@esbuild/linux-ia32": "0.20.1",
|
||||
"@esbuild/linux-loong64": "0.20.1",
|
||||
"@esbuild/linux-mips64el": "0.20.1",
|
||||
"@esbuild/linux-ppc64": "0.20.1",
|
||||
"@esbuild/linux-riscv64": "0.20.1",
|
||||
"@esbuild/linux-s390x": "0.20.1",
|
||||
"@esbuild/linux-x64": "0.20.1",
|
||||
"@esbuild/netbsd-x64": "0.20.1",
|
||||
"@esbuild/openbsd-x64": "0.20.1",
|
||||
"@esbuild/sunos-x64": "0.20.1",
|
||||
"@esbuild/win32-arm64": "0.20.1",
|
||||
"@esbuild/win32-ia32": "0.20.1",
|
||||
"@esbuild/win32-x64": "0.20.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@vitejs/plugin-legacy/node_modules/esbuild-plugin-browserslist": {
|
||||
"version": "0.11.1",
|
||||
"resolved": "https://registry.npmjs.org/esbuild-plugin-browserslist/-/esbuild-plugin-browserslist-0.11.1.tgz",
|
||||
"integrity": "sha512-yNdZRdDBEbm0PT4q2bJBhXvnwakXG5mG8ipiwGe5SRDPnKa7L7kQm2tHuBMowBtcFz6kRtZTv5njK7PJwU+tCQ==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"debug": "^4.3.4",
|
||||
"zod": "^3.21.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"browserslist": "^4.21.8",
|
||||
"esbuild": "~0.20.0"
|
||||
}
|
||||
},
|
||||
"node_modules/acorn": {
|
||||
"version": "8.11.2",
|
||||
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz",
|
||||
@@ -3074,6 +2627,24 @@
|
||||
"node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
|
||||
}
|
||||
},
|
||||
"node_modules/browserslist-to-esbuild": {
|
||||
"version": "2.1.1",
|
||||
"resolved": "https://registry.npmjs.org/browserslist-to-esbuild/-/browserslist-to-esbuild-2.1.1.tgz",
|
||||
"integrity": "sha512-KN+mty6C3e9AN8Z5dI1xeN15ExcRNeISoC3g7V0Kax/MMF9MSoYA2G7lkTTcVUFntiEjkpI0HNgqJC1NjdyNUw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"meow": "^13.0.0"
|
||||
},
|
||||
"bin": {
|
||||
"browserslist-to-esbuild": "cli/index.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"browserslist": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/buffer-crc32": {
|
||||
"version": "0.2.13",
|
||||
"resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz",
|
||||
@@ -3846,6 +3417,18 @@
|
||||
"integrity": "sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/meow": {
|
||||
"version": "13.2.0",
|
||||
"resolved": "https://registry.npmjs.org/meow/-/meow-13.2.0.tgz",
|
||||
"integrity": "sha512-pxQJQzB6djGPXh08dacEloMFopsOqGVRKFPYvPOt9XDZ1HasbgDZA74CJGreSU4G3Ak7EFJGoiH2auq+yXISgA==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/merge2": {
|
||||
"version": "1.4.1",
|
||||
"resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",
|
||||
@@ -4794,9 +4377,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/terser": {
|
||||
"version": "5.28.1",
|
||||
"resolved": "https://registry.npmjs.org/terser/-/terser-5.28.1.tgz",
|
||||
"integrity": "sha512-wM+bZp54v/E9eRRGXb5ZFDvinrJIOaTapx3WUokyVGZu5ucVCK55zEgGd5Dl2fSr3jUo5sDiERErUWLY6QPFyA==",
|
||||
"version": "5.29.1",
|
||||
"resolved": "https://registry.npmjs.org/terser/-/terser-5.29.1.tgz",
|
||||
"integrity": "sha512-lZQ/fyaIGxsbGxApKmoPTODIzELy3++mXhS5hOqaAWZjQtpq/hFHAc+rm29NND1rYRxRWKcjuARNwULNXa5RtQ==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@jridgewell/source-map": "^0.3.3",
|
||||
@@ -4883,9 +4466,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/typescript": {
|
||||
"version": "5.3.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz",
|
||||
"integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==",
|
||||
"version": "5.4.2",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.2.tgz",
|
||||
"integrity": "sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
@@ -4972,9 +4555,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/vite": {
|
||||
"version": "5.1.4",
|
||||
"resolved": "https://registry.npmjs.org/vite/-/vite-5.1.4.tgz",
|
||||
"integrity": "sha512-n+MPqzq+d9nMVTKyewqw6kSt+R3CkvF9QAKY8obiQn8g1fwTscKxyfaYnC632HtBXAQGc1Yjomphwn1dtwGAHg==",
|
||||
"version": "5.1.5",
|
||||
"resolved": "https://registry.npmjs.org/vite/-/vite-5.1.5.tgz",
|
||||
"integrity": "sha512-BdN1xh0Of/oQafhU+FvopafUp6WaYenLU/NFoL5WyJL++GxkNfieKzBhM24H3HVsPQrlAqB7iJYTHabzaRed5Q==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"esbuild": "^0.19.3",
|
||||
@@ -5079,15 +4662,6 @@
|
||||
"engines": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "playlet-web",
|
||||
"version": "0.21.0",
|
||||
"version": "0.21.2",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
@@ -12,7 +12,7 @@
|
||||
"@sveltejs/vite-plugin-svelte": "^3.0.2",
|
||||
"@tailwindcss/typography": "^0.5.10",
|
||||
"@tsconfig/svelte": "^5.0.2",
|
||||
"@vitejs/plugin-legacy": "^5.3.1",
|
||||
"@vitejs/plugin-legacy": "^5.3.2",
|
||||
"autoprefixer": "^10.4.18",
|
||||
"daisyui": "^4.7.2",
|
||||
"dotenv": "^16.4.5",
|
||||
@@ -22,10 +22,10 @@
|
||||
"svelte-check": "^3.6.6",
|
||||
"svelte-preprocess": "^5.1.3",
|
||||
"tailwindcss": "^3.4.1",
|
||||
"terser": "^5.28.1",
|
||||
"terser": "^5.29.1",
|
||||
"tslib": "^2.6.2",
|
||||
"typescript": "^5.3.3",
|
||||
"vite": "^5.1.4",
|
||||
"typescript": "^5.4.2",
|
||||
"vite": "^5.1.5",
|
||||
"vite-tsconfig-paths": "^4.3.1"
|
||||
}
|
||||
}
|
||||
+1
-9
@@ -1,4 +1,4 @@
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { onMount } from "svelte";
|
||||
import { PlayletApi } from "lib/Api/PlayletApi";
|
||||
import { playletStateStore } from "lib/Stores";
|
||||
@@ -77,14 +77,6 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="m-5">
|
||||
<div class="text-2xl">Developer settings</div>
|
||||
<div class="text-xs text-gray-500">
|
||||
Options for Playlet developers. Do not change unless you "know what you're
|
||||
doing"™
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="m-5">
|
||||
<div class="text-lg">Playlet Library version</div>
|
||||
<div class="text-xs text-gray-500">
|
||||
@@ -2,6 +2,7 @@
|
||||
import BooleanControl from "lib/Screens/Settings/SettingControls/BooleanControl.svelte";
|
||||
import ClearSearchHistoryControl from "lib/Screens/Settings/SettingControls/ClearSearchHistoryControl.svelte";
|
||||
import EditHomeScreenControl from "lib/Screens/Settings/SettingControls/EditHomeScreenControl.svelte";
|
||||
import PlayletLibVersionControl from "lib/Screens/Settings/SettingControls/PlayletLibVersionControl.svelte";
|
||||
import RadioControl from "lib/Screens/Settings/SettingControls/RadioControl.svelte";
|
||||
import StringControl from "lib/Screens/Settings/SettingControls/StringControl.svelte";
|
||||
import NumberControl from "./SettingControls/NumberControl.svelte";
|
||||
@@ -29,6 +30,7 @@
|
||||
const customComponents = {
|
||||
ClearSearchHistoryControl,
|
||||
EditHomeScreenControl,
|
||||
PlayletLibVersionControl,
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<script lang="ts">
|
||||
import DevSettings from "lib/Screens/Settings/DevSettings.svelte";
|
||||
import SettingsNode from "lib/Screens/Settings/SettingsNode.svelte";
|
||||
import { preferencesModelStore } from "lib/Stores";
|
||||
|
||||
@@ -15,6 +14,4 @@
|
||||
{/if}
|
||||
{/if}
|
||||
{/each}
|
||||
<div class="divider" />
|
||||
<DevSettings />
|
||||
</div>
|
||||
@@ -114,7 +114,7 @@ export class LoggerPlugin implements CompilerPlugin {
|
||||
event.editor.addToArray(args, 0, sourceExpression);
|
||||
} else {
|
||||
const fileName = path.basename(event.file.pkgPath);
|
||||
const line = statement.range.start.line;
|
||||
const line = statement.range!.start.line;
|
||||
const t = createToken(TokenKind.StringLiteral, `\"[${fileName}:${line}]\"`, statement.expression.range);
|
||||
let sourceExpression = new SourceLiteralExpression(t);
|
||||
event.editor.addToArray(args, 0, sourceExpression);
|
||||
|
||||
@@ -207,7 +207,7 @@ export class OnInitPlugin implements CompilerPlugin {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return args[0].valueOf() as number;
|
||||
return args[0]!.valueOf() as number;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user