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:
parent
3e69a5d57c
commit
30eac472ff
13 changed files with 501 additions and 32 deletions
|
|
@ -445,6 +445,10 @@ fn handle_move_response(
|
|||
out.context = Some((id, NotationCommand::Delete));
|
||||
ui.close();
|
||||
}
|
||||
// Games against the computer and the trainer: not in every version.
|
||||
if !crate::platform::CAPS.play {
|
||||
return;
|
||||
}
|
||||
ui.separator();
|
||||
// A finished position has nothing to play.
|
||||
let over = n.game.position(id).and_then(|p| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue