String packs in the shell: the install screen shows a pack's language, coverage against the site's inventory (and what is ignored or cannot be replaced yet), a sample, that it is data only, and any item's licence and credits; the Store lists string packs under Languages and removes them; the Languages section turns packs on and off, orders and removes them and hands the site tabs the new delivery; English words (wb.strings.*, wb.install.strings.*, wb.install.license/credits and the strings variants)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
825742b964
commit
1904031e6f
12 changed files with 411 additions and 28 deletions
|
|
@ -15,7 +15,7 @@ import { useThemeState } from './themes.ts';
|
|||
import './plugins.css';
|
||||
|
||||
const CONTROLS: Partial<StoreControls> = { Button, SearchField, Segmented, EmptyState, Badge };
|
||||
const RELOAD_ON = ['bt-plugins-changed', 'bt-store-changed'];
|
||||
const RELOAD_ON = ['bt-plugins-changed', 'bt-store-changed', 'bt-strings-changed'];
|
||||
|
||||
export function StoreSection({ notify }: { notify: Notify }) {
|
||||
const t = useT();
|
||||
|
|
@ -26,6 +26,11 @@ export function StoreSection({ notify }: { notify: Notify }) {
|
|||
const userThemes = themes.choice.themes.map(theme => theme.id);
|
||||
|
||||
async function remove(item: StoreItem, view: StoreCatalogView): Promise<boolean> {
|
||||
if (item.kind === 'strings') {
|
||||
await invoke('strings_remove', { id: item.id });
|
||||
window.dispatchEvent(new CustomEvent('bt-strings-changed'));
|
||||
return true;
|
||||
}
|
||||
if (item.kind === 'plugin' && item.file) {
|
||||
await invoke('plugin_remove', { file: item.file });
|
||||
window.dispatchEvent(new CustomEvent('bt-plugins-changed'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue