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": "Ana sabuntawa…",
"wb.update.installingTitle": "Ana shigar da {product} {version}",
"wb.update.problemLabel": "Matsalar sabuntawa",
"wb.update.problemTitle": "Sabuntawa ta ƙarshe ba ta fara daidai ba. Sauke sigar yanzu."
"wb.update.problemTitle": "Sabuntawa ta ƙarshe ba ta fara daidai ba. Sauke sigar yanzu.",
"wb.permission.storage.label": "Ajiya",
"wb.permission.storage.detail": "Yana riƙe saitunansa a cikin wannan manhaja (api.storage).",
"wb.permission.ui.label": "Tattaunawa",
"wb.permission.ui.detail": "Yana nuna tattaunawa, tambayoyi da sanarwa (api.ui, api.toast).",
"wb.permission.clipboard.label": "Allon kwafi",
"wb.permission.clipboard.detail": "Yana kwafar rubutu zuwa allon kwafinka (api.copyText).",
"wb.permission.account.label": "Asusunka",
"wb.permission.account.detail": "Yana karanta wane asusun {site} ne aka shiga: sunan mai amfani, suna, hoto (api.account).",
"wb.permission.commands.label": "Umarni",
"wb.permission.commands.detail": "Yana ƙara umarni zuwa jerin umarni (Ctrl+K) da ke gudana a wannan shafi (api.commands).",
"wb.permission.users.label": "Bayanan asusu",
"wb.permission.users.detail": "Yana karanta abin da martanin {site} ya faɗa game da asusu: tabbatacce, yana bin ka (api.users).",
"wb.permission.network.label": "Intanet",
"wb.permission.network.detail": "Ya ce yana tuntuɓar sabar intanet.",
"wb.permission.networkNone.label": "Babu hanyar sadarwa",
"wb.permission.networkNone.detail": "Ya ce ba ya taɓa tuntuɓar sabar; binciken shigarwa bai sami kiran hanyar sadarwa a lambarsa ba.",
"wb.permission.legacy.label": "Tsoho · cikakken damar shafi",
"wb.permission.legacy.detail": "Babu layin @permissions: yana samun dukan API na ƙarin abu, kamar ƙarin abubuwa kafin izini.",
"wb.permission.none.label": "Babu izini na musamman",
"wb.permission.none.detail": "Masu taimakon shafi na asali kawai (CSS, DOM, hanyoyi, maɓallai, jigo).",
"wb.permission.unknown": "Izini da ba a sani ba.",
"wb.store.category.reading": "Karatu",
"wb.store.category.writing": "Rubutu",
"wb.store.category.filters": "Matattara",
"wb.store.category.focus": "Natsuwa",
"wb.store.category.tools": "Kayan aiki",
"wb.store.category.dark": "Duhu",
"wb.store.category.light": "Haske",
"wb.store.builtIn": "An haɗa",
"wb.store.use": "Yi amfani",
"wb.store.install": "Shigar",
"wb.store.updateTo": "Sabunta zuwa {version}",
"wb.store.modifiedTitle": "Fayil ɗin da aka shigar ya bambanta da na kanti (an gyara shi, ko daga wani wuri). Kanti ba ya taɓa shi.",
"wb.store.modified": "An canza a gida",
"wb.store.replace": "Maye gurbin",
"wb.store.installed": "An shigar",
"wb.store.installedVersion": "An shigar · v{version}",
"wb.store.offline": "Kwafi na ba tare da intanet ba daga {when}: {error}",
"wb.store.unreachableShort": "Ba a iya isa kanti",
"wb.store.verified": "An tabbatar da kundin da aka sa wa hannu · an sabunta {when}",
"wb.store.intro": "Jigogi da ƙarin abubuwa daga Kantin wayBetter. Kundin yana da sa hannu; wayBetter yana duba sa hannun da SHA-256 na kowane saukewa kafin ya nuna allon shigarwa. Ƙarin abubuwa suna lissafa izinin da suke nema.",
"wb.store.search": "Bincika kanti",
"wb.store.searchPlaceholder": "Bincika jigogi da ƙarin abubuwa",
"wb.store.kind": "Nau'i",
"wb.store.themes": "Jigogi",
"wb.store.checking": "Ana dubawa…",
"wb.store.refresh": "Wartsake",
"wb.store.categories": "Rukunoni",
"wb.store.everything": "Komai",
"wb.store.updates": "{count, plural, one {Sabuntawa # tana} other {Sabuntawa # suna}} samuwa",
"wb.store.unreachable": "Ba a iya isa kanti",
"wb.store.tryAgain": "Sake gwadawa",
"wb.store.noCatalog": "Babu kundi tukuna.",
"wb.store.nothingChanged": "Babu abin da aka shigar ko aka canza.",
"wb.store.noMatch": "Babu abin da ya dace",
"wb.store.noMatchHint": "Gwada wata kalma ko rukuni.",
"wb.store.plugin": "Ƙarin abu",
"wb.store.by": "na {author}",
"wb.store.permissions": "Izini",
"wb.store.themeNow": "{name} shi ne jigonka yanzu.",
"wb.store.foot": "Kana da fayil ɗin jigo ko ƙarin abu? Jefa shi a taga ta wayBetter, ko buɗe hanyar haɗin waybetter://install daga waybetter.fyi. Kullum za ka ga wannan allon shigarwa tukuna.",
"wb.install.lines": "{count, plural, one {layi #} other {layuka #}}",
"wb.install.moreLines": "Nuna {count, plural, one {ƙarin layi #} other {ƙarin layuka #}}",
"wb.install.reinstall": "Sake shigarwa",
"wb.install.update": "Sabunta",
"wb.install.eyebrow.install": "{kind, select, plugin {Shigar da ƙarin abu} theme {Shigar da jigo} other {Shigar}}",
"wb.install.eyebrow.update": "{kind, select, plugin {Sabunta ƙarin abu} theme {Sabunta jigo} other {Sabunta}}",
"wb.install.eyebrow.reinstall": "{kind, select, plugin {Sake shigar da ƙarin abu} theme {Sake shigar da jigo} other {Sake shigarwa}}",
"wb.install.noAuthor": "Ba a bayar da marubuci ko sigar ba",
"wb.install.verified": "An tabbatar",
"wb.install.installedNow": "An shigar yanzu",
"wb.install.identical": "v{version} (iri ɗaya)",
"wb.install.on": "a kunne",
"wb.install.replaces": "Yana maye gurbin",
"wb.install.replacesValue": "kwafinka na wannan jigo",
"wb.install.copyHash": "Kwafa SHA-256",
"wb.install.permissions": "Izinin da yake bayyanawa",
"wb.install.pageAccess": "Ƙarin abubuwa suna gudana a cikin {site} da damar shafin iri ɗaya: suna iya karanta abin da {site} ke nuna maka kuma su yi aiki a cikinsa. Izini suna iyakance abin da API na wayBetter ke ba ƙarin abu, ba shafin ba. Shigar da lambar da kake amincewa da ita kawai.",
"wb.install.theCode": "Lambar",
"wb.install.themeCss": "CSS na jigo (yana gudana a {site} kamar Custom CSS naka)",
"wb.install.code": "Lambar da za a shigar",
"wb.install.staysOn": "Yana zama a kunne",
"wb.install.turnOn": "Kunna shi yanzu",
"wb.install.useNow": "Yi amfani da shi yanzu",
"wb.install.installing": "Ana shigarwa…",
"wb.install.done": "An shigar da {name}",
"wb.install.done.pluginOn": "Yana gudana a shafukan {site} naka yanzu. Kashe shi a kowane lokaci a Ƙarin abubuwa.",
"wb.install.done.pluginOff": "A kashe yake. Kunna shi a Ƙarin abubuwa idan kana so.",
"wb.install.done.themeOn": "Shi ne jigonka yanzu. Koma a kowane lokaci a Kamanni.",
"wb.install.done.themeOff": "Yana cikin jigoginka a Kamanni.",
"wb.install.done.fonts": "Yana ambaton Google fonts ({fonts}). Kamanni na iya sauke maka su; har lokacin yana amfani da fonts ɗinsa na maye.",
"wb.install.openPlugins": "Buɗe Ƙarin abubuwa",
"wb.install.openAppearance": "Buɗe Kamanni",
"wb.install.doneButton": "An gama",
"wb.install.drop": "Jefa don shigarwa",
"wb.install.dropHint": "Jigo (.json) ko ƙarin abu (.plugin.js). Za ka ga menene kafin a shigar da komai.",
"wb.install.err.theme": "Ba a iya shigar da wannan jigo ba",
"wb.install.stage.link": "{kind, select, plugin {Shigar da ƙarin abu daga {host}} theme {Shigar da jigo daga {host}} other {Shigarwa daga {host}}}",
"wb.install.stage.linkDetail": "Ana saukewa da dubawa…",
"wb.install.err.kind": "“{file}” ba jigo ba ne ko ƙarin abu",
"wb.install.err.kindHint": "wayBetter yana shigar da jigogi (.json) da ƙarin abubuwa (.plugin.js). Don haɗa fayil da rubutu, jefa shi a akwatin rubutu na {site} maimakon.",
"wb.install.err.large": "“{file}” ya yi girma da yawa",
"wb.install.err.largeHint": "{kind, select, theme {Jigogi an iyakance su zuwa 2 MB.} other {Ƙarin abubuwa an iyakance su zuwa 2 MB.}}",
"wb.install.stage.named": "Shigar da {name}",
"wb.install.stage.fileDetail": "Ana duba fayil…",
"wb.install.stage.storeDetail": "Ana saukewa daga Kantin wayBetter da duba sa hannunsa…",
"wb.install.err.link": "Ba a iya amfani da wannan hanyar haɗin shigarwa ba",
"wb.install.err.notInstalled": "{kind, select, theme {Ba a shigar da jigon ba} other {Ba a shigar da ƙarin abun ba}}",
"wb.install.untitled": "Ba shi da take",
"wb.install.file": "Fayil",
"wb.install.size": "Girma",
"wb.install.themeFile": "Fayil ɗin jigo",
"wb.store.all": "Duka",
"wb.store.pluginsTab": "Ƙarin abubuwa",
"wb.store.theme": "Jigo",
"wb.store.remove": "Cire",
"wb.store.keep": "Riƙe",
"wb.store.removed": "An cire {name}.",
"wb.install.cancel": "Soke",
"wb.install.close": "Rufe"
}
}