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": "Memperbarui…",
|
||||
"wb.update.installingTitle": "Menginstal {product} {version}",
|
||||
"wb.update.problemLabel": "Masalah pembaruan",
|
||||
"wb.update.problemTitle": "Pembaruan terakhir tidak berjalan dengan benar. Unduh versi terbaru."
|
||||
"wb.update.problemTitle": "Pembaruan terakhir tidak berjalan dengan benar. Unduh versi terbaru.",
|
||||
"wb.permission.storage.label": "Penyimpanan",
|
||||
"wb.permission.storage.detail": "Menyimpan pengaturannya sendiri di aplikasi ini (api.storage).",
|
||||
"wb.permission.ui.label": "Dialog",
|
||||
"wb.permission.ui.detail": "Menampilkan dialog, perintah, dan notifikasi (api.ui, api.toast).",
|
||||
"wb.permission.clipboard.label": "Papan klip",
|
||||
"wb.permission.clipboard.detail": "Menyalin teks ke papan klipmu (api.copyText).",
|
||||
"wb.permission.account.label": "Akunmu",
|
||||
"wb.permission.account.detail": "Membaca akun {site} mana yang sedang masuk: handle, nama, avatar (api.account).",
|
||||
"wb.permission.commands.label": "Perintah",
|
||||
"wb.permission.commands.detail": "Menambahkan perintah ke palet perintah (Ctrl+K) yang berjalan di halaman ini (api.commands).",
|
||||
"wb.permission.users.label": "Detail akun",
|
||||
"wb.permission.users.detail": "Membaca apa yang dikatakan respons {site} sendiri tentang akun: terverifikasi, mengikutimu (api.users).",
|
||||
"wb.permission.network.label": "Internet",
|
||||
"wb.permission.network.detail": "Menyatakan bahwa ia menghubungi server di internet.",
|
||||
"wb.permission.networkNone.label": "Tanpa jaringan",
|
||||
"wb.permission.networkNone.detail": "Menyatakan bahwa ia tidak pernah menghubungi server; pemeriksaan pemasangan tidak menemukan panggilan jaringan di kodenya.",
|
||||
"wb.permission.legacy.label": "Lawas · akses halaman penuh",
|
||||
"wb.permission.legacy.detail": "Tanpa baris @permissions: ia mendapat seluruh API plugin, seperti plugin sebelum ada izin.",
|
||||
"wb.permission.none.label": "Tanpa akses khusus",
|
||||
"wb.permission.none.detail": "Hanya pembantu halaman dasar (CSS, DOM, rute, tombol, tema).",
|
||||
"wb.permission.unknown": "Izin tidak dikenal.",
|
||||
"wb.store.category.reading": "Membaca",
|
||||
"wb.store.category.writing": "Menulis",
|
||||
"wb.store.category.filters": "Filter",
|
||||
"wb.store.category.focus": "Fokus",
|
||||
"wb.store.category.tools": "Alat",
|
||||
"wb.store.category.dark": "Gelap",
|
||||
"wb.store.category.light": "Terang",
|
||||
"wb.store.builtIn": "Bawaan",
|
||||
"wb.store.use": "Pakai",
|
||||
"wb.store.install": "Pasang",
|
||||
"wb.store.updateTo": "Perbarui ke {version}",
|
||||
"wb.store.modifiedTitle": "File yang terpasang berbeda dari milik toko (diedit, atau dari tempat lain). Toko membiarkannya.",
|
||||
"wb.store.modified": "Diubah secara lokal",
|
||||
"wb.store.replace": "Ganti",
|
||||
"wb.store.installed": "Terpasang",
|
||||
"wb.store.installedVersion": "Terpasang · v{version}",
|
||||
"wb.store.offline": "Salinan offline dari {when}: {error}",
|
||||
"wb.store.unreachableShort": "Toko tidak terjangkau",
|
||||
"wb.store.verified": "Katalog bertanda tangan terverifikasi · diperbarui {when}",
|
||||
"wb.store.intro": "Tema dan plugin dari Toko wayBetter. Katalognya bertanda tangan; wayBetter memeriksa tanda tangan dan SHA-256 setiap unduhan sebelum menampilkan layar pemasangan. Plugin mencantumkan izin yang diminta.",
|
||||
"wb.store.search": "Cari di toko",
|
||||
"wb.store.searchPlaceholder": "Cari tema dan plugin",
|
||||
"wb.store.kind": "Jenis",
|
||||
"wb.store.themes": "Tema",
|
||||
"wb.store.checking": "Memeriksa…",
|
||||
"wb.store.refresh": "Segarkan",
|
||||
"wb.store.categories": "Kategori",
|
||||
"wb.store.everything": "Semuanya",
|
||||
"wb.store.updates": "{count, plural, other {# pembaruan}} tersedia",
|
||||
"wb.store.unreachable": "Toko tidak dapat dijangkau",
|
||||
"wb.store.tryAgain": "Coba lagi",
|
||||
"wb.store.noCatalog": "Belum ada katalog.",
|
||||
"wb.store.nothingChanged": "Tidak ada yang dipasang atau diubah.",
|
||||
"wb.store.noMatch": "Tidak ada yang cocok",
|
||||
"wb.store.noMatchHint": "Coba kata atau kategori lain.",
|
||||
"wb.store.plugin": "Plugin",
|
||||
"wb.store.by": "oleh {author}",
|
||||
"wb.store.permissions": "Izin",
|
||||
"wb.store.themeNow": "{name} sekarang temamu.",
|
||||
"wb.store.foot": "Punya file tema atau plugin? Jatuhkan ke jendela wayBetter, atau buka tautan waybetter://install dari waybetter.fyi. Kamu selalu melihat layar pemasangan ini lebih dulu.",
|
||||
"wb.install.lines": "{count, plural, other {# baris}}",
|
||||
"wb.install.moreLines": "Tampilkan {count, plural, other {# baris lagi}}",
|
||||
"wb.install.reinstall": "Pasang ulang",
|
||||
"wb.install.update": "Perbarui",
|
||||
"wb.install.eyebrow.install": "{kind, select, plugin {Pasang plugin} theme {Pasang tema} other {Pasang}}",
|
||||
"wb.install.eyebrow.update": "{kind, select, plugin {Perbarui plugin} theme {Perbarui tema} other {Perbarui}}",
|
||||
"wb.install.eyebrow.reinstall": "{kind, select, plugin {Pasang ulang plugin} theme {Pasang ulang tema} other {Pasang ulang}}",
|
||||
"wb.install.noAuthor": "Tidak ada pembuat atau versi",
|
||||
"wb.install.verified": "Terverifikasi",
|
||||
"wb.install.installedNow": "Terpasang sekarang",
|
||||
"wb.install.identical": "v{version} (identik)",
|
||||
"wb.install.on": "aktif",
|
||||
"wb.install.replaces": "Menggantikan",
|
||||
"wb.install.replacesValue": "salinan tema ini milikmu",
|
||||
"wb.install.copyHash": "Salin SHA-256",
|
||||
"wb.install.permissions": "Izin yang dinyatakannya",
|
||||
"wb.install.pageAccess": "Plugin berjalan di dalam {site} dengan akses yang sama seperti halaman: mereka bisa membaca apa yang ditampilkan {site} kepadamu dan bertindak di dalamnya. Izin membatasi apa yang diberikan API wayBetter kepada plugin, bukan halaman. Pasang hanya kode yang kamu percaya.",
|
||||
"wb.install.theCode": "Kodenya",
|
||||
"wb.install.themeCss": "CSS tema (berjalan di {site} seperti CSS Kustom-mu)",
|
||||
"wb.install.code": "Kode yang akan dipasang",
|
||||
"wb.install.staysOn": "Tetap aktif",
|
||||
"wb.install.turnOn": "Aktifkan sekarang",
|
||||
"wb.install.useNow": "Pakai sekarang",
|
||||
"wb.install.installing": "Memasang…",
|
||||
"wb.install.done": "{name} terpasang",
|
||||
"wb.install.done.pluginOn": "Sekarang berjalan di tab {site}-mu. Matikan kapan saja di Plugin.",
|
||||
"wb.install.done.pluginOff": "Nonaktif. Aktifkan di Plugin saat kamu menginginkannya.",
|
||||
"wb.install.done.themeOn": "Sekarang jadi temamu. Ganti kapan saja di Tampilan.",
|
||||
"wb.install.done.themeOff": "Ada di daftar temamu di Tampilan.",
|
||||
"wb.install.done.fonts": "Menyebut font Google ({fonts}). Tampilan bisa mengunduhnya untukmu; sampai saat itu ia memakai font cadangan.",
|
||||
"wb.install.openPlugins": "Buka Plugin",
|
||||
"wb.install.openAppearance": "Buka Tampilan",
|
||||
"wb.install.doneButton": "Selesai",
|
||||
"wb.install.drop": "Jatuhkan untuk memasang",
|
||||
"wb.install.dropHint": "Sebuah tema (.json) atau plugin (.plugin.js). Kamu akan melihat apa itu sebelum apa pun dipasang.",
|
||||
"wb.install.err.theme": "Tema ini tidak dapat dipasang",
|
||||
"wb.install.stage.link": "{kind, select, plugin {Pasang plugin dari {host}} theme {Pasang tema dari {host}} other {Pasang dari {host}}}",
|
||||
"wb.install.stage.linkDetail": "Mengunduh dan memeriksa…",
|
||||
"wb.install.err.kind": "“{file}” bukan tema atau plugin",
|
||||
"wb.install.err.kindHint": "wayBetter memasang tema (.json) dan plugin (.plugin.js). Untuk melampirkan file ke postingan, jatuhkan ke penulis {site}.",
|
||||
"wb.install.err.large": "“{file}” terlalu besar",
|
||||
"wb.install.err.largeHint": "{kind, select, theme {Tema dibatasi hingga 2 MB.} other {Plugin dibatasi hingga 2 MB.}}",
|
||||
"wb.install.stage.named": "Pasang {name}",
|
||||
"wb.install.stage.fileDetail": "Memeriksa file…",
|
||||
"wb.install.stage.storeDetail": "Mengunduh dari Toko wayBetter dan memeriksa tanda tangannya…",
|
||||
"wb.install.err.link": "Tautan pemasangan ini tidak dapat dipakai",
|
||||
"wb.install.err.notInstalled": "{kind, select, theme {Tema tidak dipasang} other {Plugin tidak dipasang}}",
|
||||
"wb.install.untitled": "Tanpa judul",
|
||||
"wb.install.file": "File",
|
||||
"wb.install.size": "Ukuran",
|
||||
"wb.install.themeFile": "File tema",
|
||||
"wb.store.all": "Semua",
|
||||
"wb.store.pluginsTab": "Plugin",
|
||||
"wb.store.theme": "Tema",
|
||||
"wb.store.remove": "Hapus",
|
||||
"wb.store.keep": "Simpan",
|
||||
"wb.store.removed": "{name} dihapus.",
|
||||
"wb.install.cancel": "Batal",
|
||||
"wb.install.close": "Tutup"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue