@krx3d/tizentube2 1.31.620 → 1.31.630
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/i18n-check.yml +24 -0
- package/AGENTS.md +8 -0
- package/dist/userScript.js +2 -2
- package/package.json +1 -1
- package/scripts/i18n-check/check-i18n.cjs +143 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# en/de translation check: same keys in both languages, same placeholders, and every
|
|
2
|
+
# key used in mods/ actually exists. The other languages are not checked (they lag
|
|
3
|
+
# behind by design). CI-only script, nothing here ends up on the TV.
|
|
4
|
+
name: i18n check
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
pull_request:
|
|
8
|
+
branches: [main]
|
|
9
|
+
paths:
|
|
10
|
+
- "mods/**"
|
|
11
|
+
- "scripts/i18n-check/**"
|
|
12
|
+
- ".github/workflows/i18n-check.yml"
|
|
13
|
+
workflow_dispatch:
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: read
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
i18n:
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v6
|
|
23
|
+
- name: Check en/de translations
|
|
24
|
+
run: node scripts/i18n-check/check-i18n.cjs --en mods/translations/resources/en.json --de mods/translations/resources/de.json --src mods
|
package/AGENTS.md
CHANGED
|
@@ -98,11 +98,13 @@ standalone/ # standalone installable app — see "Standalone mo
|
|
|
98
98
|
build-publish-cleanup.yml # push to main: bump version, build, npm publish, cleanup old npm versions
|
|
99
99
|
build-standalone-release.yaml # builds/signs standalone/ into a .wgt via Tizen Studio, GitHub Release
|
|
100
100
|
codeql.yml # security scanning
|
|
101
|
+
i18n-check.yml # PRs: en/de key + placeholder parity, keys used in mods/ must exist
|
|
101
102
|
claude.yml
|
|
102
103
|
assets/
|
|
103
104
|
profiles.xml # Tizen Studio signing profile for standalone (see Known issues)
|
|
104
105
|
|
|
105
106
|
scripts/tampermonkey/ # local Chrome-based dev/test loader — see README.md
|
|
107
|
+
scripts/i18n-check/ # CI-only en/de translation check (run by i18n-check.yml; also runnable locally)
|
|
106
108
|
scripts/log-receiver/ # PC-side PS1 receiver for logServer.js's remote logging (see Feature map)
|
|
107
109
|
scripts/npm-cleanup/ # local `npm unpublish` of old versions, with a 2FA code — the publish
|
|
108
110
|
# workflow attempts removal too, but npm refuses it from any token it
|
|
@@ -149,6 +151,7 @@ scripts/pc-installer/ # PC-side install/update script (SDB from the PC,
|
|
|
149
151
|
| `playlistBatchCollect.js` | Batch-collects playlist items (`enablePlaylistBatchCollect`). |
|
|
150
152
|
| `logServer.js` | Optional remote log server (`logServerEnabled`) for on-device debugging. In TizenBrew mode, relays via TizenBrew's own `127.0.0.1:8081` service + CDP-queue fallback. In standalone mode (`window.location.hostname === 'localhost'`), instead POSTs to the standalone service's own `POST /tizentube/log` (see `standalone/service/index.js`), which relays to the PC receiver at `logServerHost`:`logServerPort` (same `/tv-log` path/JSON shape as TizenBrew's `remoteLogger.js`, so the receiver script at `scripts/log-receiver/receiver.ps1` works for both). Host/port are set via the RED-key theme overlay (`mods/ui/ui.js`), standalone-only fields — there's no free-text entry in the native TV settings menu. The standalone *service itself* also self-logs its own lifecycle (startup, uncaught exceptions, DIAL service load, proxy errors) unconditionally to a hardcoded `DEFAULT_LOG_HOST`/`DEFAULT_LOG_PORT` in `standalone/service/index.js`, independent of any page config — added specifically because the service can crash before the page/userscript ever loads, at which point page-driven config never gets read. `relayLog` (the single choke point both the page-side proxy fetch and the CDP-queue drain ultimately funnel through) tracks per-`host:port` availability: after the first failed attempt (fast `ECONNREFUSED`, or a 3s timeout for a genuinely unreachable host that would otherwise hang far longer at the OS TCP-connect level) it skips all further attempts to that target for the rest of the process, so an unreachable/not-running PC receiver can't add repeated delay to every subsequent log call. |
|
|
151
153
|
| `homeBarPreview.js` | Standalone only: builds TizenTube's row on the TV home bar (Smart Hub Preview, TVs up to 2021) from the latest unfinished history entry, the latest playlists and the subscriptions page, via the InnerTube client; hands it to the service (POST on the proxy path, `window.__ttHomeBarPreview` drained by the injector's CDP poll otherwise). `openLaunchAction()` opens what a tile asked for (`window.__ttLaunchAction`, set by the injector from index.html's `ttLaunch`). |
|
|
154
|
+
| `subscriptionChannelFilter.js` | Channels hidden only on the Subscriptions page (and the subscriptions part of the home bar row), picked from a list of subscribed channels (`mods/ui/subscriptionChannelsSettings.js`, built from the Subscriptions page's channel tabs). Config `subscriptionHiddenChannels`, by name; applied through `channelHider.js`'s `filterHiddenChannels` when the page is `subscriptions`. |
|
|
152
155
|
| `visualConsole.js` | On-screen debug console (`enableDebugConsole`) — shows version via `../../package.json`, executes commands via `resolveCommand`. |
|
|
153
156
|
|
|
154
157
|
## UI map (`mods/ui/*.js`)
|
|
@@ -235,6 +238,11 @@ build step builds top-level `service/` first because
|
|
|
235
238
|
signs `standalone/` into a `.wgt` using **Tizen Studio's own CLI**
|
|
236
239
|
(`tizen build-web` + `tizen package`, via `.github/assets/profiles.xml`)
|
|
237
240
|
— see "Known unresolved issues", this is mid-troubleshooting.
|
|
241
|
+
- **`i18n-check.yml`** — on PRs touching `mods/`: runs
|
|
242
|
+
`scripts/i18n-check/check-i18n.cjs`, which fails on en/de key or placeholder
|
|
243
|
+
mismatches and on `t('key')` calls whose key is in neither file. Only en and
|
|
244
|
+
de are checked. Locally: `node scripts/i18n-check/check-i18n.cjs --en
|
|
245
|
+
mods/translations/resources/en.json --de mods/translations/resources/de.json --src mods`
|
|
238
246
|
- **`codeql.yml`** — security scanning on PRs; check its findings before
|
|
239
247
|
merging anything touching `standalone/service/` (the proxy) or auth-ish
|
|
240
248
|
code — false positives happen (e.g. SSRF flags on the proxy's
|