shell: the Store view and install screen as framework React components, strings in the framework catalogs

Moved from wayBetter for X so every wayBetter app gets the Store UI; the app passes its native
bridge, theme adapter, translator and (optionally) its own controls and button classes.

- storeModel.ts: wire types of the native store commands (InstallPreview, StoreCatalogView,
  LinkEvent, StoreItem with `apps`), permission badges in the site's words, categories, item state
  (install/installed/update/changed locally/built in), search, free theme ids, versions, previews.
- installController.ts: the install screen's state machine (links incl. those queued before the
  shell listened, dropped files, store items, cancel, confirm), generic over the app's theme format
  (`ThemeAdapter`: parse, ids, facts, save) and its bridge (`StoreBackend`: invoke/listen).
- InstallDialog.tsx (`InstallHost`): the screen (Install enabled after 1 s, Enter never installs,
  tabs hidden via setOverlay) and the window-wide drop target. StoreView.tsx: search, kinds,
  categories, cards, permission badges, install/update/remove; default controls or the app's.
- store.css: both, themed with framework `--wb-*` tokens (documented; dark defaults).
- storeMessages.ts + every framework catalog: 120 `wb.store.*`, `wb.install.*`, `wb.permission.*`
  messages moved from the app catalogs with all existing translations; the six that named X take
  `{site}`; generic words the components need copied with their translations.
- npm package: exports for the new modules and store.css, optional react/react-dom peers; @types
  for the typecheck. Tests: models, controller flows with a fake bridge, every looked-up key exists.
This commit is contained in:
CRTkafa 2026-09-29 11:08:04 +07:00
parent d65cc08070
commit f1588c3acd
63 changed files with 7345 additions and 53 deletions

View file

@ -23,6 +23,126 @@
"wb.update.installingLabel": "Bijwerken…",
"wb.update.installingTitle": "{product} {version} installeren",
"wb.update.problemLabel": "Updateprobleem",
"wb.update.problemTitle": "De laatste update is niet goed gestart. Download de huidige versie."
"wb.update.problemTitle": "De laatste update is niet goed gestart. Download de huidige versie.",
"wb.permission.storage.label": "Opslag",
"wb.permission.storage.detail": "Bewaart eigen instellingen in deze app (api.storage).",
"wb.permission.ui.label": "Dialogen",
"wb.permission.ui.detail": "Toont dialogen, prompts en meldingen (api.ui, api.toast).",
"wb.permission.clipboard.label": "Klembord",
"wb.permission.clipboard.detail": "Kopieert tekst naar je klembord (api.copyText).",
"wb.permission.account.label": "Je account",
"wb.permission.account.detail": "Leest welk {site}-account is ingelogd: gebruikersnaam, naam, profielfoto (api.account).",
"wb.permission.commands.label": "Opdrachten",
"wb.permission.commands.detail": "Voegt opdrachten toe aan het opdrachtenpalet (Ctrl+K) die op deze pagina draaien (api.commands).",
"wb.permission.users.label": "Accountgegevens",
"wb.permission.users.detail": "Leest wat de eigen antwoorden van {site} over accounts zeiden: geverifieerd, volgt jou (api.users).",
"wb.permission.network.label": "Internet",
"wb.permission.network.detail": "Geeft aan dat het servers op internet benadert.",
"wb.permission.networkNone.label": "Geen netwerk",
"wb.permission.networkNone.detail": "Geeft aan dat het nooit een server benadert; de installatiecontrole vond geen netwerkaanroepen in de code.",
"wb.permission.legacy.label": "Legacy · volledige paginatoegang",
"wb.permission.legacy.detail": "Geen @permissions-regel: het krijgt de hele plug-in-API, zoals plug-ins vóór er machtigingen waren.",
"wb.permission.none.label": "Geen speciale toegang",
"wb.permission.none.detail": "Alleen de basishulpmiddelen voor de pagina (CSS, DOM, routes, toetsen, thema).",
"wb.permission.unknown": "Onbekende machtiging.",
"wb.store.category.reading": "Lezen",
"wb.store.category.writing": "Schrijven",
"wb.store.category.filters": "Filters",
"wb.store.category.focus": "Focus",
"wb.store.category.tools": "Hulpmiddelen",
"wb.store.category.dark": "Donker",
"wb.store.category.light": "Licht",
"wb.store.builtIn": "Ingebouwd",
"wb.store.use": "Gebruiken",
"wb.store.install": "Installeren",
"wb.store.updateTo": "Updaten naar {version}",
"wb.store.modifiedTitle": "Het geïnstalleerde bestand verschilt van dat van de winkel (bewerkt, of van elders). De winkel laat het met rust.",
"wb.store.modified": "Lokaal gewijzigd",
"wb.store.replace": "Vervangen",
"wb.store.installed": "Geïnstalleerd",
"wb.store.installedVersion": "Geïnstalleerd · v{version}",
"wb.store.offline": "Offlinekopie van {when}: {error}",
"wb.store.unreachableShort": "Winkel onbereikbaar",
"wb.store.verified": "Ondertekende catalogus geverifieerd · bijgewerkt {when}",
"wb.store.intro": "Thema’s en plug-ins uit de wayBetter-winkel. De catalogus is ondertekend; wayBetter controleert de handtekening en de SHA-256 van elke download voordat het installatiescherm verschijnt. Plug-ins vermelden de machtigingen die ze vragen.",
"wb.store.search": "De winkel doorzoeken",
"wb.store.searchPlaceholder": "Thema’s en plug-ins zoeken",
"wb.store.kind": "Soort",
"wb.store.themes": "Thema’s",
"wb.store.checking": "Controleren…",
"wb.store.refresh": "Vernieuwen",
"wb.store.categories": "Categorieën",
"wb.store.everything": "Alles",
"wb.store.updates": "{count, plural, one {# update} other {# updates}} beschikbaar",
"wb.store.unreachable": "De winkel is niet bereikbaar",
"wb.store.tryAgain": "Opnieuw proberen",
"wb.store.noCatalog": "Nog geen catalogus.",
"wb.store.nothingChanged": "Er is niets geïnstalleerd of gewijzigd.",
"wb.store.noMatch": "Niets gevonden",
"wb.store.noMatchHint": "Probeer een ander woord of een andere categorie.",
"wb.store.plugin": "Plug-in",
"wb.store.by": "door {author}",
"wb.store.permissions": "Machtigingen",
"wb.store.themeNow": "{name} is nu je thema.",
"wb.store.foot": "Heb je een thema- of pluginbestand? Zet het op het wayBetter-venster, of open een waybetter://install-link van waybetter.fyi. Je ziet altijd eerst dit installatiescherm.",
"wb.install.lines": "{count, plural, one {# regel} other {# regels}}",
"wb.install.moreLines": "{count, plural, one {Nog # regel tonen} other {Nog # regels tonen}}",
"wb.install.reinstall": "Opnieuw installeren",
"wb.install.update": "Updaten",
"wb.install.eyebrow.install": "{kind, select, plugin {Plug-in installeren} theme {Thema installeren} other {Installeren}}",
"wb.install.eyebrow.update": "{kind, select, plugin {Plug-in updaten} theme {Thema updaten} other {Updaten}}",
"wb.install.eyebrow.reinstall": "{kind, select, plugin {Plug-in opnieuw installeren} theme {Thema opnieuw installeren} other {Opnieuw installeren}}",
"wb.install.noAuthor": "Geen auteur of versie opgegeven",
"wb.install.verified": "Geverifieerd",
"wb.install.installedNow": "Nu geïnstalleerd",
"wb.install.identical": "v{version} (identiek)",
"wb.install.on": "aan",
"wb.install.replaces": "Vervangt",
"wb.install.replacesValue": "je kopie van dit thema",
"wb.install.copyHash": "SHA-256 kopiëren",
"wb.install.permissions": "Machtigingen die het aangeeft",
"wb.install.pageAccess": "Plug-ins draaien binnen {site} met dezelfde toegang als de pagina: ze kunnen lezen wat {site} je toont en erin handelen. Machtigingen beperken wat de wayBetter-API een plug-in geeft, niet de pagina. Installeer alleen code die je vertrouwt.",
"wb.install.theCode": "De code",
"wb.install.themeCss": "Thema-CSS (draait in {site} zoals je eigen CSS)",
"wb.install.code": "Code die wordt geïnstalleerd",
"wb.install.staysOn": "Blijft aan",
"wb.install.turnOn": "Nu inschakelen",
"wb.install.useNow": "Nu gebruiken",
"wb.install.installing": "Installeren…",
"wb.install.done": "{name} is geïnstalleerd",
"wb.install.done.pluginOn": "Hij draait nu in je {site}-tabbladen. Schakel hem op elk moment uit bij Plug-ins.",
"wb.install.done.pluginOff": "Hij is uit. Schakel hem in bij Plug-ins wanneer je wilt.",
"wb.install.done.themeOn": "Het is nu je thema. Schakel op elk moment terug bij Weergave.",
"wb.install.done.themeOff": "Het staat bij je thema’s in Weergave.",
"wb.install.done.fonts": "Het noemt Google-lettertypen ({fonts}). Weergave kan ze voor je downloaden; tot dan gebruikt het zijn reservelettertypen.",
"wb.install.openPlugins": "Plug-ins openen",
"wb.install.openAppearance": "Weergave openen",
"wb.install.doneButton": "Klaar",
"wb.install.drop": "Loslaten om te installeren",
"wb.install.dropHint": "Een thema (.json) of een plug-in (.plugin.js). Je ziet wat het is voordat er iets wordt geïnstalleerd.",
"wb.install.err.theme": "Dit thema kan niet worden geïnstalleerd",
"wb.install.stage.link": "{kind, select, plugin {Plug-in installeren van {host}} theme {Thema installeren van {host}} other {Installeren van {host}}}",
"wb.install.stage.linkDetail": "Downloaden en controleren…",
"wb.install.err.kind": "“{file}” is geen thema of plug-in",
"wb.install.err.kindHint": "wayBetter installeert thema’s (.json) en plug-ins (.plugin.js). Wil je een bestand aan een post toevoegen, zet het dan op de {site}-editor.",
"wb.install.err.large": "“{file}” is te groot",
"wb.install.err.largeHint": "{kind, select, theme {Thema’s zijn beperkt tot 2 MB.} other {Plug-ins zijn beperkt tot 2 MB.}}",
"wb.install.stage.named": "{name} installeren",
"wb.install.stage.fileDetail": "Het bestand controleren…",
"wb.install.stage.storeDetail": "Downloaden uit de wayBetter-winkel en de handtekening controleren…",
"wb.install.err.link": "Deze installatielink kan niet worden gebruikt",
"wb.install.err.notInstalled": "{kind, select, theme {Het thema is niet geïnstalleerd} other {De plug-in is niet geïnstalleerd}}",
"wb.install.untitled": "Zonder titel",
"wb.install.file": "Bestand",
"wb.install.size": "Grootte",
"wb.install.themeFile": "Themabestand",
"wb.store.all": "Alle",
"wb.store.pluginsTab": "Plug-ins",
"wb.store.theme": "Thema",
"wb.store.remove": "Verwijderen",
"wb.store.keep": "Behouden",
"wb.store.removed": "{name} verwijderd.",
"wb.install.cancel": "Annuleren",
"wb.install.close": "Sluiten"
}
}