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:
parent
d65cc08070
commit
f1588c3acd
63 changed files with 7345 additions and 53 deletions
|
|
@ -23,6 +23,126 @@
|
|||
"wb.update.installingLabel": "Na-emelite…",
|
||||
"wb.update.installingTitle": "Na-etinye {product} {version}",
|
||||
"wb.update.problemLabel": "Nsogbu mmelite",
|
||||
"wb.update.problemTitle": "Mmelite ikpeazụ amaliteghị nke ọma. Budata ụdị dị ugbu a."
|
||||
"wb.update.problemTitle": "Mmelite ikpeazụ amaliteghị nke ọma. Budata ụdị dị ugbu a.",
|
||||
"wb.permission.storage.label": "Nchekwa",
|
||||
"wb.permission.storage.detail": "Na-edebe ntọala nke ya n’ngwa a (api.storage).",
|
||||
"wb.permission.ui.label": "Dayalọg",
|
||||
"wb.permission.ui.detail": "Na-egosi dayalọg, ajụjụ na ọkwa (api.ui, api.toast).",
|
||||
"wb.permission.clipboard.label": "Clipboard",
|
||||
"wb.permission.clipboard.detail": "Na-edetu ederede na clipboard gị (api.copyText).",
|
||||
"wb.permission.account.label": "Akaụntụ gị",
|
||||
"wb.permission.account.detail": "Na-agụ akaụntụ {site} banyere: aha njirimara, aha, avatar (api.account).",
|
||||
"wb.permission.commands.label": "Iwu",
|
||||
"wb.permission.commands.detail": "Na-agbakwụnye iwu na palette iwu (Ctrl+K) na-agba ọsọ n’ibe a (api.commands).",
|
||||
"wb.permission.users.label": "Nkọwa akaụntụ",
|
||||
"wb.permission.users.detail": "Na-agụ ihe azịza {site} n’onwe ya kwuru banyere akaụntụ: nwere nkwenye, na-eso gị (api.users).",
|
||||
"wb.permission.network.label": "Ịntanetị",
|
||||
"wb.permission.network.detail": "Na-ekwu na ọ na-akpọtụrụ sava n’ịntanetị.",
|
||||
"wb.permission.networkNone.label": "Enweghị netwọkụ",
|
||||
"wb.permission.networkNone.detail": "Na-ekwu na ọ naghị akpọtụrụ sava; nyocha nwụnye ahụghị ọkpụkpọ netwọkụ n’koodu ya.",
|
||||
"wb.permission.legacy.label": "Legacy · ntinye ibe zuru ezu",
|
||||
"wb.permission.legacy.detail": "Enweghị ahịrị @permissions: ọ na-enweta API plugin niile, dị ka plugins tupu ikike.",
|
||||
"wb.permission.none.label": "Enweghị ntinye pụrụ iche",
|
||||
"wb.permission.none.detail": "Naanị ndị enyemaka ibe bụ isi (CSS, DOM, ụzọ, igodo, isiokwu).",
|
||||
"wb.permission.unknown": "Ikike amabeghị.",
|
||||
"wb.store.category.reading": "Ịgụ",
|
||||
"wb.store.category.writing": "Ide",
|
||||
"wb.store.category.filters": "Ihe nzacha",
|
||||
"wb.store.category.focus": "Ntụgharị uche",
|
||||
"wb.store.category.tools": "Ngwa",
|
||||
"wb.store.category.dark": "Ọchịchịrị",
|
||||
"wb.store.category.light": "Ọkụ",
|
||||
"wb.store.builtIn": "Ewubere n’ime",
|
||||
"wb.store.use": "Jiri",
|
||||
"wb.store.install": "Wụnye",
|
||||
"wb.store.updateTo": "Melite gaa {version}",
|
||||
"wb.store.modifiedTitle": "Faịlụ etinyere dị iche na nke ụlọ ahịa (edeziri, ma ọ bụ site n’ebe ọzọ). Ụlọ ahịa anaghị emetụ ya.",
|
||||
"wb.store.modified": "Agbanweela n’ime",
|
||||
"wb.store.replace": "Dochie",
|
||||
"wb.store.installed": "Ewunyela",
|
||||
"wb.store.installedVersion": "Ewunyela · v{version}",
|
||||
"wb.store.offline": "Mbipụta anaghị ịntanetị site na {when}: {error}",
|
||||
"wb.store.unreachableShort": "Enweghị ike ịkpọtụrụ ụlọ ahịa",
|
||||
"wb.store.verified": "Katalọgụ e bịanyere aka nyochara · emelitere {when}",
|
||||
"wb.store.intro": "Isiokwu na plugins site na Ụlọ Ahịa wayBetter. Katalọgụ ahụ bụ nke e bịanyere aka; wayBetter na-elele mbinye aka na SHA-256 nke ibudata ọ bụla tupu ọ gosipụta ihuenyo nwụnye. Plugins na-depụta ikike ha na-ajụ.",
|
||||
"wb.store.search": "Chọọ n’ụlọ ahịa",
|
||||
"wb.store.searchPlaceholder": "Chọọ isiokwu na plugins",
|
||||
"wb.store.kind": "Ụdị",
|
||||
"wb.store.themes": "Isiokwu",
|
||||
"wb.store.checking": "Na-enyocha…",
|
||||
"wb.store.refresh": "Megharịa",
|
||||
"wb.store.categories": "Ụdị",
|
||||
"wb.store.everything": "Ihe niile",
|
||||
"wb.store.updates": "{count, plural, one {mmelite # dị} other {mmelite # dị}}",
|
||||
"wb.store.unreachable": "Enweghị ike ịkpọtụrụ ụlọ ahịa",
|
||||
"wb.store.tryAgain": "Nwaa ọzọ",
|
||||
"wb.store.noCatalog": "Enweghị katalọgụ ma.",
|
||||
"wb.store.nothingChanged": "Ọ dịghị ihe e wụnyere ma ọ bụ gbanwee.",
|
||||
"wb.store.noMatch": "Ọ dịghị ihe kwekọrọ",
|
||||
"wb.store.noMatchHint": "Nwaa okwu ma ọ bụ ụdị ọzọ.",
|
||||
"wb.store.plugin": "Plugin",
|
||||
"wb.store.by": "site na {author}",
|
||||
"wb.store.permissions": "Ikike",
|
||||
"wb.store.themeNow": "{name} bụ isiokwu gị ugbu a.",
|
||||
"wb.store.foot": "Ị nwere faịlụ isiokwu ma ọ bụ plugin? Tụfuo ya n’windo wayBetter, ma ọ bụ meghee njikọ waybetter://install site na waybetter.fyi. Ị na-ahụ ihuenyo nwụnye a mgbe niile buru ụzọ.",
|
||||
"wb.install.lines": "{count, plural, one {ahịrị #} other {ahịrị #}}",
|
||||
"wb.install.moreLines": "Gosi {count, plural, one {ahịrị # ọzọ} other {ahịrị # ọzọ}}",
|
||||
"wb.install.reinstall": "Wụnyeghachi",
|
||||
"wb.install.update": "Melite",
|
||||
"wb.install.eyebrow.install": "{kind, select, plugin {Wụnye plugin} theme {Wụnye isiokwu} other {Wụnye}}",
|
||||
"wb.install.eyebrow.update": "{kind, select, plugin {Melite plugin} theme {Melite isiokwu} other {Melite}}",
|
||||
"wb.install.eyebrow.reinstall": "{kind, select, plugin {Wụnyeghachi plugin} theme {Wụnyeghachi isiokwu} other {Wụnyeghachi}}",
|
||||
"wb.install.noAuthor": "Enweghị onye dere ma ọ bụ ụdị",
|
||||
"wb.install.verified": "Enyochara",
|
||||
"wb.install.installedNow": "Ewunyela ugbu a",
|
||||
"wb.install.identical": "v{version} (otu ahụ)",
|
||||
"wb.install.on": "n’",
|
||||
"wb.install.replaces": "Na-edochi",
|
||||
"wb.install.replacesValue": "nkwughachi gị nke isiokwu a",
|
||||
"wb.install.copyHash": "Detuo SHA-256",
|
||||
"wb.install.permissions": "Ikike ọ na-ekwupụta",
|
||||
"wb.install.pageAccess": "Plugins na-agba ọsọ n’ime {site} n’otu ntinye ahụ dị ka ibe: ha nwere ike ịgụ ihe {site} na-egosi gị ma rụọ ọrụ n’ime ya. Ikike na-egbochi ihe API wayBetter na-enye plugin, ọ bụghị ibe. Wụnye naanị koodu ị tụkwasịrị obi.",
|
||||
"wb.install.theCode": "Koodu",
|
||||
"wb.install.themeCss": "CSS isiokwu (na-agba ọsọ n’{site} dị ka CSS nke gị)",
|
||||
"wb.install.code": "Koodu a ga-awụnye",
|
||||
"wb.install.staysOn": "Ọ na-anọgide na-emepe",
|
||||
"wb.install.turnOn": "Mepe ya ugbu a",
|
||||
"wb.install.useNow": "Jiri ya ugbu a",
|
||||
"wb.install.installing": "Na-awụnye…",
|
||||
"wb.install.done": "E wụnyela {name}",
|
||||
"wb.install.done.pluginOn": "Ọ na-agba ọsọ n’taabụ {site} gị ugbu a. Gbanyụọ ya oge ọ bụla n’Plugins.",
|
||||
"wb.install.done.pluginOff": "Ọ gbanyụrụ. Mepee ya n’Plugins mgbe ị chọrọ ya.",
|
||||
"wb.install.done.themeOn": "Ọ bụ isiokwu gị ugbu a. Gbanwee laghachi oge ọ bụla n’Ọdịdị.",
|
||||
"wb.install.done.themeOff": "Ọ nọ n’isiokwu gị n’Ọdịdị.",
|
||||
"wb.install.done.fonts": "Ọ kpọrọ font Google ({fonts}). Ọdịdị nwere ike ibudata ha maka gị; ruo mgbe ahụ ọ na-eji font ndabere ya.",
|
||||
"wb.install.openPlugins": "Meghee Plugins",
|
||||
"wb.install.openAppearance": "Meghee Ọdịdị",
|
||||
"wb.install.doneButton": "Emechala",
|
||||
"wb.install.drop": "Tụfuo ka a wụnye",
|
||||
"wb.install.dropHint": "Isiokwu (.json) ma ọ bụ plugin (.plugin.js). Ị ga-ahụ ihe ọ bụ tupu e wụnye ihe ọ bụla.",
|
||||
"wb.install.err.theme": "Enweghị ike iwụnye isiokwu a",
|
||||
"wb.install.stage.link": "{kind, select, plugin {Wụnye plugin site na {host}} theme {Wụnye isiokwu site na {host}} other {Wụnye site na {host}}}",
|
||||
"wb.install.stage.linkDetail": "Na-ebudata ma na-enyocha…",
|
||||
"wb.install.err.kind": "“{file}” abụghị isiokwu ma ọ bụ plugin",
|
||||
"wb.install.err.kindHint": "wayBetter na-awụnye isiokwu (.json) na plugins (.plugin.js). Iji jikọọ faịlụ n’ozi, tụfuo ya n’ebe {site} na-edekọ kama.",
|
||||
"wb.install.err.large": "“{file}” buru ibu nke ukwuu",
|
||||
"wb.install.err.largeHint": "{kind, select, theme {Isiokwu nwere oke 2 MB.} other {Plugins nwere oke 2 MB.}}",
|
||||
"wb.install.stage.named": "Wụnye {name}",
|
||||
"wb.install.stage.fileDetail": "Na-enyocha faịlụ…",
|
||||
"wb.install.stage.storeDetail": "Na-ebudata site n’Ụlọ Ahịa wayBetter ma na-enyocha mbinye aka ya…",
|
||||
"wb.install.err.link": "Enweghị ike iji njikọ nwụnye a",
|
||||
"wb.install.err.notInstalled": "{kind, select, theme {Ewunyeghị isiokwu ahụ} other {Ewunyeghị plugin ahụ}}",
|
||||
"wb.install.untitled": "Enweghị aha",
|
||||
"wb.install.file": "Faịlụ",
|
||||
"wb.install.size": "Nha",
|
||||
"wb.install.themeFile": "Faịlụ isiokwu",
|
||||
"wb.store.all": "Ha niile",
|
||||
"wb.store.pluginsTab": "Plugins",
|
||||
"wb.store.theme": "Isiokwu",
|
||||
"wb.store.remove": "Wepụ",
|
||||
"wb.store.keep": "Debe",
|
||||
"wb.store.removed": "Ewepụla {name}.",
|
||||
"wb.install.cancel": "Kagbuo",
|
||||
"wb.install.close": "Mechie"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue