Task 12 batch around the existing crop/preview flow: - Success Notice (auto-dismiss ~2.5s) after an avatar upload. - "Reposition" re-crops the current avatar without re-picking a file. - Drag & drop an image straight onto the profile avatar circle. - Real upload progress via a new XHR-backed api.upload (fetch has none); refreshOnce now also stores the renewed token (reload-restore fix). - Local avatar history (last 5, IndexedDB, this-device-only) strip that re-uploads a stored crop. Stored as ArrayBuffer (Blob is not cloneable under structuredClone); label makes the per-device scope explicit. - Added a "success" tone to Notice. Infra (same session): registered @shared/@features/@pages/@app/@test path aliases in vite.config + tsconfigs and rewrote deep ../../../ imports; moved avatar components into components/avatar/ to keep folders at <=4 files. Tests: avatarHistory cap/order, recrop visibility, drop-opens-cropper, client upload/progress/401-retry. bun test 103 pass, lint 0 errors, build ok.
20 lines
1,014 B
TypeScript
20 lines
1,014 B
TypeScript
import type { Translation } from '@shared/i18n/common.ru'
|
|
import type { clickguiRu } from './ru'
|
|
|
|
export const clickguiEn = {
|
|
windowLabel: 'Interactive replica of the LoVisual ClickGui',
|
|
tabsLabel: 'ClickGui sections',
|
|
tabs: { modules: 'Modules', settings: 'Settings' },
|
|
clock: 'Time',
|
|
search: 'Search',
|
|
categories: 'Module categories',
|
|
module: '{{name}}: LMB toggles it',
|
|
theme: '{{name}} theme',
|
|
themes: 'Themes',
|
|
settingsNav: 'Settings sections',
|
|
sidebar: { hud: 'HUD', ui: 'UI', themes: 'Themes', layout: 'Layout', account: 'Account', configs: 'Configs' },
|
|
hints: {
|
|
modules: { toggle: 'LMB - toggle module', settings: 'RMB - settings', moduleList: 'E - edit ModuleList', search: 'Ctrl+F - search', close: 'Esc - close ClickGUI', hide: 'Alt+H - hide hints' },
|
|
settings: { pick: 'LMB - pick a theme', edit: 'Edit - open the theme editor', wheel: 'Wheel - scroll themes', close: 'Esc - close ClickGUI', hide: 'Alt+H - hide hints' },
|
|
},
|
|
} satisfies Translation<typeof clickguiRu>
|