Web version: what the browser lacks is not offered, files dropped on the window, checks, docs

The interface hides what the platform does not have (platform::CAPS): play,
new databases, adding to a database, preparation, translation, their
shortcuts and the Translation tab. Files dropped on the window open like
chosen ones (in a browser; the desktop program takes no drops, as before),
with «Release to open» while they are dragged over it.

/app/: ?phone=android and ?phone=ios show those variants of the device page.

apps/web/check: device.test.mjs (14 devices: computer, iPhone, iPad as a Mac,
Android phone and tablet, desktop-site modes, Chromebook, touch laptop) and
app.mjs (headless Firefox: the device page in three languages without the
program, the program, a PGN opened by Ctrl+O and the file chooser, a dropped
PGN, a game of the classics, moves, «Download PGN», e2-e4 on the board, the
settings after a reload). All pass.

docs/dev/web.md: the architecture, the platform layer, what is not built for
a browser, the build and the checks, what comes next; docs/dev/uci.md and
desktop.md updated, web/README.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vrubelroman 2026-10-30 15:18:45 +03:00
parent 3e69a5d57c
commit 30eac472ff
13 changed files with 501 additions and 32 deletions

View file

@ -90,7 +90,9 @@ impl SettingsWindow {
ui.selectable_value(&mut self.tab, Tab::Board, tr("Board & pieces"));
ui.selectable_value(&mut self.tab, Tab::Sound, tr("Sound"));
ui.selectable_value(&mut self.tab, Tab::Interface, tr("Interface"));
ui.selectable_value(&mut self.tab, Tab::Translation, tr("Translation"));
if crate::platform::CAPS.translation {
ui.selectable_value(&mut self.tab, Tab::Translation, tr("Translation"));
}
ui.selectable_value(&mut self.tab, Tab::About, tr("About"));
});
ui.separator();