diff --git a/.agents/skills/formweb-harness/SKILL.md b/.agents/skills/formweb-harness/SKILL.md
index 157868a7..fe25e017 100644
--- a/.agents/skills/formweb-harness/SKILL.md
+++ b/.agents/skills/formweb-harness/SKILL.md
@@ -5,7 +5,7 @@ license: Apache-2.0
compatibility: "Project skill for Claude Code and other clients with the FormWeb MCP server connected. Requires a running local FormWeb FastAPI service and explicit Agents enablement."
metadata:
author: "nodemode-ai"
- version: "0.34.0"
+ version: "0.36.0"
---
# FormWeb Harness
diff --git a/.claude/skills/formweb-harness/SKILL.md b/.claude/skills/formweb-harness/SKILL.md
index 157868a7..fe25e017 100644
--- a/.claude/skills/formweb-harness/SKILL.md
+++ b/.claude/skills/formweb-harness/SKILL.md
@@ -5,7 +5,7 @@ license: Apache-2.0
compatibility: "Project skill for Claude Code and other clients with the FormWeb MCP server connected. Requires a running local FormWeb FastAPI service and explicit Agents enablement."
metadata:
author: "nodemode-ai"
- version: "0.34.0"
+ version: "0.36.0"
---
# FormWeb Harness
diff --git a/.docs/wiki/Architecture.md b/.docs/wiki/Architecture.md
index 0a4f7c81..67e2f790 100644
--- a/.docs/wiki/Architecture.md
+++ b/.docs/wiki/Architecture.md
@@ -14,7 +14,7 @@ The Rust engine is the single owner of site state. The editor, MCP tools and HTT
| Agent substrate | `backend/app/substrate.py` | One command surface (catalogue, dispatch, attributed events) behind REST, MCP, `./formweb run` and the terminal; approvals; the external-substrate adapter |
| Live terminal | `backend/app/terminal.py`, `frontend/src/features/terminal.ts` | Pseudo-terminal in the FormWeb folder over a loopback WebSocket, opened only by the FormWeb window, while Agents is on |
| GPU renderer | `native/crates/formweb-render/` | Family wgpu renderer (own workspace and lockfile): area-averaged thumbnails, minimap with a viewport outline, release pixel diffs, a CPU path with identical results, `./formweb render` |
-| Desktop shell | `src-tauri/` | Tauri 2 window around the editor on 127.0.0.1:8240; adopts a service there only when its `/api/health` reply names `formweb` and this version, otherwise starts `./formweb serve` (on the first free port from 8241 to 8279 if something else holds 8240) and stops it on exit; one running copy per login (`tauri-plugin-single-instance`), which opens a `.fweb` or `.fpub` handed to it; exposes the renderer as `render_probe`, `render_thumbnail` and `render_diff`; handles every download (the web views save to Downloads without a prompt on all three systems; WebKitGTK picks the folder itself and, with no Downloads entry in `~/.config/user-dirs.dirs`, saves into the working folder, so the shell moves such a file to `~/Downloads`), sends every link that opens a new window to the system browser through `on_new_window` (it loads no shell plugin, whose page script would catch those links first), tells the page where each was saved with a `formweb-download` event and shows the last one in the file manager through `reveal_download`; `./formweb desktop`; builds and runs on Linux with WebKitGTK (see the manual's Desktop shell on Linux) |
+| Desktop shell | `src-tauri/` | Tauri 2 window around the editor on 127.0.0.1:8240; adopts a service there only when its `/api/health` reply names `formweb` and this version, otherwise starts `./formweb serve` (on the first free port from 8241 to 8279 if something else holds 8240) and stops it on exit; one running copy per login (`tauri-plugin-single-instance`), which opens a `.fweb` or `.fpub` handed to it; exposes the renderer as `render_probe`, `render_thumbnail` and `render_diff`; handles every download (the web views save to Downloads without a prompt on all three systems; WebKitGTK picks the folder itself and, with no Downloads entry in `~/.config/user-dirs.dirs`, saves into the working folder, so the shell moves such a file to `~/Downloads`; since 0.35.0 `downloads.rs` sets the destination in `DownloadEvent::Requested` from the person's choice, Downloads, a folder recorded only by its own folder dialog in `export-folder.json` in the app config folder, or the answer of a save dialog opened before the download, with a cleaned name, " (1)" numbering and a Downloads fallback named in the event's `unusable`, through the commands `set_export_place`, `choose_export_folder` and `ask_export_place`), sends every link that opens a new window to the system browser through `on_new_window` (it loads no shell plugin, whose page script would catch those links first), tells the page where each was saved with a `formweb-download` event and shows the last one in the file manager through `reveal_download`; `./formweb desktop`; builds and runs on Linux with WebKitGTK (see the manual's Desktop shell on Linux) |
| Agent Connect | `frontend/src/features/agent-connect.ts`, `backend/app/clients.py` | MCP switch, client cards, approvals, identity and the attributed activity feed |
| Agent dock | `frontend/src/features/terminal.ts`, `chat-pane.ts`, `backend/app/claude_code.py`, `chat.py` | Session tabs, in-app Claude Code and streamed Chat, both launched with an in-app MCP token |
| Command registry | `frontend/src/commands/`, `backend/app/commands_mirror.py` | One list of commands behind menus, buttons, shortcuts, search and agents |
@@ -63,7 +63,9 @@ New features are modules at the existing layer seams. Read `frontend/HASHOUT_LOG
**Design field controls (0.33.0).** `features/inspector/controls/` puts a control beside a style field made by `addStyle()` in `main.ts`, by CSS key, without owning its value: the text input stays visible and is the one stored value, and a control writes through `field.commit()`, which goes through the same `setStyle()` as typing (breakpoint scope, undo, brand check). `index.ts` is the kit: `registerControl(keys, factory)`, `installControls()` (called once after the inspector is built), three slots per field (`lead`, `trail`, `below`, mounted once; a field's state is `data-ctl` `off`, `on` or `raw` and never changes its height), the raw CSS switch in each label, and the default in `localStorage['formweb.design-controls']`, never in the site. `slider.ts` with the fixed range table in `number.ts`, `color.ts` with one picker popover in `color-picker.ts` (`color-area.ts`, `color-math.ts`), the picker's Gradient tab in `gradient.ts` and `gradient-model.ts` through `registerPickerTab`, and `grid.ts` with `grid-tracks.ts`. Controls that use plain keys carry `data-own-keys`, which `commands/keymap.ts` reads to leave plain keys to them while still running Ctrl/Cmd shortcuts. `view.design-controls` (View > Show controls in Design fields) flips the default. `frontend/HASHOUT_LOG.md` (0.33.0) has the contract and the traps.
-**Try a choice (0.34.0).** A trial is canvas-only: no engine command, no `/api` call and no stored value changes until Keep. `ui/canvas.ts` `Canvas.setLayer(name, frame)` draws two named layers over the stored styles, `play` then `trial` (after the scene scrubber's motion frame; later wins), restyling only the named properties of the named nodes and never calling `render()`; a `null` value shows what the element inherits at the picked breakpoint. `features/try/` holds the contract (`types.ts`) and the kit (`index.ts`, `installTry()`, called once from `main.ts` before `installControls`): one trial at most, `begin(owner)`, `put`, `keep` (one `setStyle`, one undo step), `revert`, and `sync()` from `update()`, which drops a trial when the selection, breakpoint or page changes, design is left, or another writer changes the same property. `bar.ts` is the one Keep and Revert bar in `#overlay-root`; `segments.ts` takes over the Design segment groups with a capture-phase click; `choice-list.ts` opens one `listbox` popover for the eight `select[data-style]` fields while the select keeps the stored value. `commands/registry.ts` asks `Commands.intercept` before every `run()` and `call()`: a command reverts a trial first, a person's Undo during a trial is used up, and an agent's call always runs. The control kit hands drag values to the canvas through its `trial` option (`live`, `settled`). `features/motion/play.ts` plays a motion preset once through the `play` layer, frame by frame in the editor, with nothing added to the canvas document. `view.try-choices` and Preferences > Interface > Design fields turn trying off, stored only in `localStorage['formweb.try-choices']`. `frontend/HASHOUT_LOG.md` (0.34.0) has every way a trial ends and the traps.
+**Try a choice (0.34.0).** A trial is canvas-only: no engine command, no `/api` call and no stored value changes until Keep. `ui/canvas.ts` `Canvas.setLayer(name, frame)` draws two named layers over the stored styles, `play` then `trial` (after the scene scrubber's motion frame; later wins), restyling only the named properties of the named nodes and never calling `render()`; a `null` value shows what the element inherits at the picked breakpoint. `features/try/` holds the contract (`types.ts`) and the kit (`index.ts`, `installTry()`, called once from `main.ts` before `installControls`): one trial at most, `begin(owner)`, `put`, `keep` (one `setStyle`, one undo step), `revert`, and `sync()` from `update()`, which drops a trial when the selection, breakpoint or page changes, design is left, or another writer changes the same property. `bar.ts` is the one Keep and Revert bar in `#overlay-root`; `segments.ts` takes over the Design segment groups with a capture-phase click; `choice-list.ts` opens one `listbox` popover for the eight `select[data-style]` fields while the select keeps the stored value. `commands/registry.ts` asks `Commands.intercept` before every `run()` and `call()`: a command reverts a trial first, a person's Undo during a trial is used up, and an agent's call always runs. Since 0.35.0 focus moving into the menu bar or one of its menus parks a trial instead of ending it: a command in the kit's `PASS` set keeps it and focus returns to the trial's control, `edit.undo` reverts it and is used up, any other command reverts it first; `choice-list.ts` leaves an open list alone while a trial is on and the press is in the menus. The control kit hands drag values to the canvas through its `trial` option (`live`, `settled`). `features/motion/play.ts` plays a motion preset once through the `play` layer, frame by frame in the editor, with nothing added to the canvas document. `view.try-choices` and Preferences > Interface > Design fields turn trying off, stored only in `localStorage['formweb.try-choices']`. `frontend/HASHOUT_LOG.md` (0.34.0) has every way a trial ends and the traps.
+
+**Audit markers (0.35.0).** `features/audit-markers.ts` (styles in `styles/audit-markers.css`), installed once from `main.ts`, keeps the last good `/api/audit` answer stamped with the site id and revision it was asked for and filters it by the open page on every `update()`. With the switch on (`view.audit-markers`, View > Show audit markers, and a row in the Audit dialog; `localStorage['formweb.audit-markers']` is `'1'`) one timer asks the audit again after a change: at least 150 ms after it, 600 ms after the last start, never while a request is out; an answer for an older site, revision or page is thrown away, and a failure hides the dots and is not asked again until the revision moves. Dots are pooled buttons in `#overlay-root`, updated with `keyed()`, at most 200, each centred on its element's top right corner through `FrameMap` and hidden (never clamped) when that corner is out of view, placed in at most one animation frame when an event asks and in the same frame on a resize, with all reads before all writes; nothing is added to the canvas document. They carry `data-own-keys`, hide in either preview, during drags, trials and text editing and under a dialog, and move the focus to the active inspector tab or the Audit button before they hide. A click selects the element as the dialog's Select does, with a small list when it has several issues. The command is in the try kit's `PASS` set. `frontend/HASHOUT_LOG.md` (0.35.0) has the rules and the traps.
**Touch, pen and Select several.** `features/hold.ts` holds what both drags share for touch: a 350 ms hold with an 8 px slop, `startsDrag` (left button only, and for a pen only `buttons === 1`, so the barrel or eraser button never starts a drag), a permanent non-passive `touchmove` listener on the list and on the canvas document that calls `preventDefault` only while a drag is armed (setting `touch-action` after `touchstart` does not affect the running gesture, so this is what keeps the list or canvas still), a capture `contextmenu` blocker on the top window and the canvas window for the length of a held gesture, and a synthetic `contextmenu` at the release point when a hold ends without moving, so the existing menus open by touch on every platform, including those that never fire `contextmenu` on a long press. `installRowDrag` and `installCanvasDrag` keep the mouse path as it was (4 px and 6 px thresholds, immediate) and run pens through it; a touch press arms a timer instead, and moving past the slop first gives the gesture back to the browser, so it scrolls. When the hold takes, the row gets `is-lifted` or the element `data-fw-lifted` (on the canvas an unselected element is selected first), the drag then follows the finger with pointer capture, and listeners filter by `pointerId`: a `pointerdown` of any other pointer or a `pointercancel` ends it with no command. A touch lift outside the list or the canvas finds no target. `features/select-mode.ts` adds the header toggles (one shared state, `picking()` in `features/selection.ts`, which makes `layerClick`, `pageClick` and `canvasClick` toggle as Ctrl+click does), the count and Done bar laid over the heading's first grid column so nothing moves, the `edit.select-mode` command, Escape on the window, and a capture `dblclick` blocker on the lists and the canvas window while the mode is on; `main.ts` repaints it from `update()`.
@@ -78,7 +80,7 @@ New features are modules at the existing layer seams. Read `frontend/HASHOUT_LOG
**Site background.** The link between pages is a design token, not a model field, so `.fweb` files stay readable by older engines (FormPublisher's among them) that refuse unknown fields: the site background is the token `--page-background` (stored as `page-background`, a valid token identifier), and a page is on it when its root's `background` is exactly `var(--page-background)`. The exporter already writes every token into `:root` and the other theme's values into `html[data-theme]`, and the canvas already sets the site tokens on its document, so the canvas and the export agree with no Rust change. `page-background.ts` derives everything from the site: `siteBackgroundKey`, `backgroundMode` (site, own), `siteBackgroundPages`, and `pageColorToken`, which offers the token the home page's background already uses (or one named `paper`, `bg`, `background`) on a site without `--page-background`; adopting it stores `page-background: var(--paper)` and `siteBackgroundTarget` then edits `--paper`, so there is one color. The group's three choices are radio inputs; Same as another page and This page only only change which part shows until a value is written. `useSiteBackgroundCommands` sends `token.set` (the first time) and every page's `node.update` in one batch. The other theme's value is written by `otherThemeValueCommand` from `inspector/theme.ts`, the helper the Themes block uses. `startCommands` gives a new page `var(--page-background)` when the token exists. `readableTextPatch` (contrast from `features/contrast.ts`) adds `color: #ffffff` to a root with no text color when its new background needs light text, and removes exactly that value when a light background or no background follows, inside the same `node.update`. It judges only an opaque hex color after tokens are resolved (a gradient, an image or a see-through color leaves the text alone), and it never runs on a site with themes, where one fixed text color cannot suit both themes. A new page started on a dark site background gets the white text in its first batch. The editor shows each change in a notice whose Undo sends the root's earlier `color` back as a step of its own, so the background stays. Nothing runs on load. A `--page-background` token whose value, resolved, is neither a `background-color` nor a `background-image` (`siteBackgroundTaken`) belongs to the site for something else: `siteBackgroundKey` then reports no site background, so new pages start white, and every path that would create or set it refuses with the reason instead of overwriting it. Commands: `page.background-site {color?}`, `page.background-site-all`, `page.background-site-color {color, theme?}`, `page.background-site-theme`.
**Starter styles.** `frontend/src/features/starter-elements.ts` holds the styles `insertElement` in `main.ts` gives new elements: no fill on Section, Grid cards, Form fields or Embed, translucent grey lines (`LINE` and `MUTED` from `features/sections.ts`, the built-in sections' own neutrals), text that inherits the page color, and filled buttons whose text color `inkOn` picks against the resolved `--accent`. Sections, starter pages and library sections are not touched. The engine's `a11y.contrast` audit rule walks up the ancestors for both the text color and the background, so it does see inherited backgrounds, but it checks only when some element on that path sets a `color` it can parse: it does not assume the browser's default black text (or white page), and it does not read `var(--x, fallback)`, so black text on a dark section with no colour set anywhere is not reported.
-**Inspector search.** `frontend/src/features/inspector/search.ts` indexes the mounted inspector instead of keeping a field list: every `.inspector-section` (its `data-section` id and title) in the four tab panes, and in each the `.field`, `.checkbox-field` and direct buttons with their visible label, the CSS property from `data-style` or `data-field` (attribute fields carry `data-attr`) and the synonym groups in `search-terms.ts`. Anything under a `hidden` ancestor is left out, so a control the inspector hides for the selection never shows; a disabled control is listed as unavailable. A MutationObserver on the panes only marks the index stale; it is rebuilt on the next keystroke or, while results are open, once per frame. The list is a `keyed()` list in a sibling of `.inspector-scroll`; the two swap with `hidden`, so the panes keep their state and scroll position. The command is `inspector.search`.
+**Inspector search.** `frontend/src/features/inspector/search.ts` indexes the mounted inspector instead of keeping a field list: every `.inspector-section` (its `data-section` id and title) in the four tab panes, and in each the `.field`, `.checkbox-field` and direct buttons with their visible label, the CSS property from `data-style` or `data-field` (attribute fields carry `data-attr`) and the synonym groups in `search-terms.ts`. Since 0.35.0 it also indexes choices: each `.fw-seg-btn` of a segment group, each option of a `select[data-style]` but the empty Inherit one, and segment groups outside any field (Motion presets, named by a `.field-label` just before them); a choice matches only by its own name or value. The list is text only: each `role="listitem"` row reads "{name} · {tab} > {section}" (a choice adds " > {field}"), and nothing in the module switches a tab, unfolds a section, scrolls, focuses a control or marks one; a click, Enter and the arrows do nothing, a mousedown in the results is prevented so focus stays in the box, and Escape on an empty box moves focus to the active tab button. Bounds: 4,000 entries, 64 choices per group or select, names and the query at most 120 characters, 120 rows shown. Anything under a `hidden` ancestor is left out, so a control the inspector hides for the selection never shows; a disabled control is listed as unavailable. A MutationObserver on the panes only marks the index stale; it is rebuilt on the next keystroke or, while results are open, once per frame. The list is a `keyed()` list in a sibling of `.inspector-scroll`; the two swap with `hidden`, so the panes keep their state and scroll position. The command is `inspector.search`.
**Frozen desktop engine.** `./build_app` builds the editor and Rust core, freezes `backend/formweb_engine.py` with PyInstaller (`setup/freeze_backend`, `requirements_desktop.txt`) and runs the Tauri build. Inside the bundle (`config.FROZEN`) the core binary and editor come from the bundle and data lives in `~/FormWeb` (or `FORMWEB_HOME`); `formweb_engine.py --selfcheck` names anything missing, and the Tauri shell spawns the frozen engine as a sidecar.
diff --git a/.docs/wiki/Guide.md b/.docs/wiki/Guide.md
index 4b657390..4ff35c67 100644
--- a/.docs/wiki/Guide.md
+++ b/.docs/wiki/Guide.md
@@ -9,9 +9,9 @@ The user guide teaches FormWeb to a person who has never used it: plain words, n
- [The right panel](https://github.com/nodemode-dev/formweb/blob/main/docs/guide/04-right-panel.md): tabs, trying a choice before keeping it, sliders, the color picker and gradients, the grid layout chooser, motion presets, Search properties and breakpoints.
- [Page background and theme colors](https://github.com/nodemode-dev/formweb/blob/main/docs/guide/05-background-and-theme-colors.md)
- [Preview](https://github.com/nodemode-dev/formweb/blob/main/docs/guide/06-preview.md)
-- [Audit](https://github.com/nodemode-dev/formweb/blob/main/docs/guide/07-audit.md)
-- [Export and publishing](https://github.com/nodemode-dev/formweb/blob/main/docs/guide/08-export-and-publish.md)
-- [Importing](https://github.com/nodemode-dev/formweb/blob/main/docs/guide/09-importing.md)
+- [Audit](https://github.com/nodemode-dev/formweb/blob/main/docs/guide/07-audit.md): the audit, Select, and audit markers on the page.
+- [Export and publishing](https://github.com/nodemode-dev/formweb/blob/main/docs/guide/08-export-and-publish.md): the zip, and where the desktop app saves exports.
+- [Importing](https://github.com/nodemode-dev/formweb/blob/main/docs/guide/09-importing.md): the review names files a page loads from the web; a converted page keeps the style rules its script needs.
- [Components and the Library](https://github.com/nodemode-dev/formweb/blob/main/docs/guide/10-components-and-library.md)
- [Keyboard shortcuts](https://github.com/nodemode-dev/formweb/blob/main/docs/guide/11-keyboard-shortcuts.md)
- [Coming from Dreamweaver or another visual builder](https://github.com/nodemode-dev/formweb/blob/main/docs/guide/12-coming-from-other-builders.md)
diff --git a/.docs/wiki/Home.md b/.docs/wiki/Home.md
index 7291d3b5..9fa38d76 100644
--- a/.docs/wiki/Home.md
+++ b/.docs/wiki/Home.md
@@ -2,7 +2,7 @@
FormWeb is the form family's visual website authoring application. A Rust engine owns editable sites and exports browser-native HTML, CSS and JavaScript. A Python/FastAPI service supplies projects, local publications, forms and MCP. A vanilla TypeScript/Vite window displays and changes the same engine state.
-Release version: 0.34.0. Author: nodemode-ai. The repository README and changelog record this release.
+Release version: 0.36.0. Author: nodemode-ai. The repository README and changelog record this release.
| Surface | Current boundary |
| --- | --- |
diff --git a/.docs/wiki/Library.md b/.docs/wiki/Library.md
index 400a1b62..468d19f6 100644
--- a/.docs/wiki/Library.md
+++ b/.docs/wiki/Library.md
@@ -30,11 +30,15 @@ Placeholders in a template are `$parent`, `@@key@@` for a node id and `{{field}}
## Import site from zip
-`backend/app/site_import.py` reads a static site zip in memory with `zipfile` under hard caps (64 MiB; 40,000 entries and a 2 MiB file list checked from the end record before parsing; then 1,000 entries and 12 levels counted only outside the ignored `__MACOSX`, `node_modules` and dot folders; 128 MiB unpacked, an expansion limit, per-type file caps) and refuses traversal, absolute and drive-letter names, links and passwords outright. A project's source (a `package.json` at the top or one folder down, plus one of: no HTML page; `.ts`, `.tsx`, `.jsx`, `.vue` or `.svelte` files under that project's `src` folder; a page loading such a script, holding `%PUBLIC_URL%`, or loading a module script that imports a package by name while no page has an import map) is refused with a sentence that says to build it and import the output folder (`_project`; `_peek` reads names from the file list of an archive refused before it is opened, only to choose that sentence). Both routes also take loose pages as JSON, `{"files": [{"name", "html"}]}`, which `read_files` turns into the same structure as a zip holding them at its top level. The review route plans without changing anything; the import route re-reads the same bytes, refuses a changed revision, stores assets through `ingest` and sends one batch of `page.add`, `page.update`, `node.add` and `code.section.set` (and `node.remove` in replace mode, offered only when no extension entry or component source points into the page). Each page is one code section built with Import HTML's `kit_script`, so the script policy is the same; both paths use `site_import.script_type` to leave out script elements that are not JavaScript (JSON-LD among them) with the same warning. The editor view is `features/library/site-import.ts` (File > Import site from zip..., `file.import-site`, and the review of File > Import HTML files..., `file.import-html`); both commands share its one hidden `multiple` file input, whose `accept` `choose(kind)` sets just before `click()`, after `reset()` has cleared any earlier import, so the picker opens inside the person's click over a clean view. The view has one Bring ... in as choice for pages and a section, its result note at the end of the scroller and work in progress on the import button. Agents use `library_import_site`.
+`backend/app/site_import.py` reads a static site zip in memory with `zipfile` under hard caps (64 MiB; 40,000 entries and a 2 MiB file list checked from the end record before parsing; then 1,000 entries and 12 levels counted only outside the ignored `__MACOSX`, `node_modules` and dot folders; 128 MiB unpacked, an expansion limit, per-type file caps) and refuses traversal, absolute and drive-letter names, links and passwords outright. A project's source (a `package.json` at the top or one folder down, plus one of: no HTML page; `.ts`, `.tsx`, `.jsx`, `.vue` or `.svelte` files under that project's `src` folder; a page loading such a script, holding `%PUBLIC_URL%`, or loading a module script that imports a package by name while no page has an import map) is refused with a sentence that says to build it and import the output folder (`_project`; `_peek` reads names from the file list of an archive refused before it is opened, only to choose that sentence). Both routes also take loose pages as JSON, `{"files": [{"name", "html"}]}`, which `read_files` turns into the same structure as a zip holding them at its top level. The review route plans without changing anything; the import route re-reads the same bytes, refuses a changed revision, stores assets through `ingest` and sends one batch of `page.add`, `page.update`, `node.add` and `code.section.set` (and `node.remove` in replace mode, offered only when no extension entry or component source points into the page). Each page is one code section built with Import HTML's `kit_script`, so the script policy is the same; both paths use `site_import.script_type` to leave out script elements that are not JavaScript (JSON-LD among them) with the same warning. The editor view is `features/library/site-import.ts` (File > Import site from zip..., `file.import-site`, and the review of File > Import HTML files..., `file.import-html`); both commands share its one hidden `multiple` file input, whose `accept` `choose(kind)` sets just before `click()`, after `reset()` has cleared any earlier import, so the picker opens inside the person's click over a clean view. The view has one Bring ... in as choice for pages and a section, its result note at the end of the scroller and work in progress on the import button. Since 0.35.0 the review gives each page `outside` and `outsideMore`: the stylesheets and scripts it loads from other hosts as `{kind, host, url}`, read by `outside_file` the way a browser reads a link (no regular expression, bounded), in document order, at most 20; nothing is fetched. `outsideWarnings` holds the indexes of the older outside-script and head-stylesheet warnings that `outside` names in full (every counted reference parsed and `outsideMore` 0), and the view leaves those warnings out of the row. The view names those hosts per page in plain text and starts the Bring choice on Code sections, with the reason, when any page has them (set once when the review arrives). Agents use `library_import_site`.
## Convert to editable elements
-`frontend/src/features/convert/` turns a code section into ordinary elements: `rules.ts` (pure: tag and attribute mapping, style reduction against a bare twin, text runs, selector scoping, the result sentence), `measure.ts` (two hidden `sandbox="allow-same-origin"` frames with a `default-src 'none'` policy, one with the section's sanitized HTML and CSS at 1440 px, one with the export's base styles and a bare twin per new element) and `index.ts` (the `library.convert-section` command, its dialog, the canvas and layer menu entry, and one `/api/batch` of `node.add` with chosen ids, retried without any value the engine refuses). Import HTML and Import site from zip offer Editable elements or Code sections (`features/library/bring.ts`); with elements they call the converter through the library hook `convert` after the import. The MCP import tools reach it through the window command bridge with `bring_in: "elements"`. An own-asset background picture sized cover or contain becomes an `img` behind the content (`rules.ts` `backdropLayers`). Limits, losses and the security of the measuring frame: `docs/LIBRARY.md`, Convert to editable elements.
+`frontend/src/features/convert/` turns a code section into ordinary elements: `rules.ts` (pure: tag and attribute mapping, style reduction against a bare twin, text runs, selector scoping, the result sentence), `measure.ts` (two hidden `sandbox="allow-same-origin"` frames with a `default-src 'none'` policy, one with the section's sanitized HTML and CSS at 1440 px, one with the export's base styles and a bare twin per new element) and `index.ts` (the `library.convert-section` command, its dialog, the canvas and layer menu entry, and one `/api/batch` of `node.add` with chosen ids, retried without any value the engine refuses). Import HTML and Import site from zip offer Editable elements or Code sections (`features/library/bring.ts`); with elements they call the converter through the library hook `convert` after the import. The MCP import tools reach it through the window command bridge with `bring_in: "elements"`. An own-asset background picture sized cover or contain becomes an `img` behind the content (`rules.ts` `backdropLayers`). Since 0.35.0, with the script kept, `measure.ts` `keepRules` stores the rules no converted element uses (and the class rules the script names) in the script's code section CSS, scoped to the converted root and guarded with `:where(:not([data-fw-node]))`, at most 3,000 rules and 192 KiB, with a 2 s matching bound; `fillWindow` writes heights that followed the window in vh, so a page that filled the window fills the canvas and Preview. Since 0.36.0 `convertSections(ids, keepScript, part, run)` with `run` true first runs the section's script in `sealed.ts` (a hidden `sandbox="allow-scripts"` srcdoc frame with a no-network policy, FormWeb's measuring script first, one checked plain-data message back) and measures the section's own markup with the classes and attributes it had afterwards and its CSS followed by the rules the script produced; everything after that is the 0.35.0 path, and `run` false is unchanged. The site review passes `run` for pages listed in the import's `outside.pages`. Limits, losses and the security of the measuring frames: `docs/LIBRARY.md`, Convert to editable elements.
+
+## Files from the web (0.36.0)
+
+`backend/app/outside_fetch.py` downloads one ticked file at a time for the review, through one network seam `connect(host, port, pick, seconds)`: the caller's `pick` holds the every-address-public check and a connection on which `pick` was never called is refused, so a stand-in seam cannot skip it. Guards, limits and the token store (in memory, 30 files and 8 MiB per token, 20 tokens, 20 minutes idle) are listed in `docs/LIBRARY.md`, Import site from zip. Routes `POST /api/library/outside/fetch` and `/outside/drop` in `library_routes.py`; `import-site?...&outside=TOKEN` merges, in `site_import.py`, only kept files the page names. The review (`features/library/site-import.ts`) keeps one map of outside files by URL across pages, sends fetches and drops on one promise chain, and drops the whole token on a new pick, Back, reset or after the import; MCP tools never fetch.
## Page components
diff --git a/.docs/wiki/Publishing.md b/.docs/wiki/Publishing.md
index 4a7fb303..09e28328 100644
--- a/.docs/wiki/Publishing.md
+++ b/.docs/wiki/Publishing.md
@@ -28,7 +28,7 @@ FormWeb exports portable HTML/CSS/JavaScript, serves immutable local versions an
The Rust exporter creates responsive page output, queried/templated CMS records, locale routes/alternates, metadata and runtime behavior. The Python service validates output paths, bundles stored raster assets, archives exports and hosts publications. Preview uses this compiled output in persistent opaque iframe slots; the old design/runtime remains visible until its replacement loads. Check warnings and desktop/mobile behavior before sharing output.
-In the editor, File > Export static site (`file.export`, the toolbar's Export button) and File > Download .fweb project (`file.download`) go through `deliver()` in `frontend/src/ui/downloads.ts`. While the ZIP is fetched the Export button is `disabled` with `aria-busy="true"` (same size, progress pointer, pulsing icon, still with reduced motion) and `file.export` reports itself disabled, so no second export starts. `download()` in `frontend/src/api.ts` attaches its hidden link to the document before the click, keeps the blob URL for 60 seconds, and throws the service's `detail` when the reply is not OK. The result is shown in `ui/notice.ts`, one notice in the overlay root (role `status`, 12 seconds, 30 for an error, paused while hovered or focused): "Downloaded coldmere-site.zip" in a browser; in the desktop shell "Exported coldmere-site.zip to your Downloads folder", then, when the shell's `formweb-download` window event names the path it really wrote, the folder and a Show in folder action (the `reveal_download` command). When it cannot show the file, `reveal_download` answers a code with the file, its folder and the system's reason (`download.none`, `download.moved`, `download.reveal-failed`), never an English sentence, and `shellSentence()` in `ui/downloads.ts` turns it into a translated one. The engine start failures the shell shows in a native dialog before the editor exists stay English, since no editor is there to translate them. A failed export shows its message in the notice and the status line. `GET /api/export` itself is unchanged: same route, `site-export.zip` name and headers, which FormPublisher reads.
+In the editor, File > Export static site (`file.export`, the toolbar's Export button) and File > Download .fweb project (`file.download`) go through `deliver()` in `frontend/src/ui/downloads.ts`. While the ZIP is fetched the Export button carries `aria-disabled="true"` and `aria-busy="true"` (same size, progress pointer, pulsing icon, still with reduced motion; not `disabled`, which would drop the focus to the page body) and `file.export` reports itself disabled, so no second export starts. Since 0.35.0 every download of the editor goes through `deliver()` or `deliverFile()` (QR codes, the Website studio, the vector exports with `saveBlob()`), so in the desktop app all of them follow Preferences > General > Where exports are saved (`features/export-folder.ts`, handed to the shell's `set_export_place`); in ask mode the shell's save dialog (`ask_export_place`) opens before the fetch, ask-mode deliveries run one at a time, and a cancel returns null and says "Nothing was saved.". The `formweb-download` event now also carries `unusable` (the chosen folder that could not be used, and the file went to Downloads) and, for a download refused in ask mode, `reason: "not-asked"`. `download()` in `frontend/src/api.ts` attaches its hidden link to the document before the click, keeps the blob URL for 60 seconds, and throws the service's `detail` when the reply is not OK. The result is shown in `ui/notice.ts`, one notice in the overlay root (role `status`, 12 seconds, 30 for an error, paused while hovered or focused): "Downloaded coldmere-site.zip" in a browser; in the desktop shell "Exported coldmere-site.zip to your Downloads folder", then, when the shell's `formweb-download` window event names the path it really wrote, the folder and a Show in folder action (the `reveal_download` command). When it cannot show the file, `reveal_download` answers a code with the file, its folder and the system's reason (`download.none`, `download.moved`, `download.reveal-failed`), never an English sentence, and `shellSentence()` in `ui/downloads.ts` turns it into a translated one. The engine start failures the shell shows in a native dialog before the editor exists stay English, since no editor is there to translate them. A failed export shows its message in the notice and the status line. `GET /api/export` itself is unchanged: same route, `site-export.zip` name and headers, which FormPublisher reads.
Local immutable /published/ URLs remain available while the service runs. Promotion changes only the active /sites/ route; rollback selects an earlier version. The seo.redirects map produces a portable manifest and the active local route consumes it. Splat rules are allowed: a path `/x/*` (one star, last segment only, non-empty base) may redirect to a target that uses `/:splat` once. `:splat` needs a splat path. A splat into its own prefix (`/docs/*` to `/docs/:splat`), `/*`, `/a/*/b`, `/a*` and splat cycles are refused. Exact paths win over splats, then the longest splat prefix. `redirects.json` keeps its shape (a map of path to target or {to, status}). Published releases follow splats and never let a splat become a redirect off the site. A page routed at `/404` is also exported as a root `404.html` (its URLs start at the base URL's path, such as `/assets/...` or `/repo/assets/...`, so it works at any missing address; not in the sitemap or routes.json), so static hosts that look for `404.html` find it; sites without a 404 page export as before. A published release answers a missing path with that page and status 404, after the same visitor and password gates as the page itself, and an unpublished preview answers a missing path with it too when the export has one. The served copy sends fragment-only links (the skip link, in-content anchors) to the request's own path so they scroll on the same document. With a base URL unset or example.com, a site with a 404 page gets an export warning and the audit issue seo.base-url-404; the Base URL field's help says that leaving it empty keeps the https://example.com placeholder. Protected member routes require backend authorization, and public static export of gated content is rejected. Page passwords live in the service database (`passwords.py`), so `Studio.publish` passes their routes to the exporter as `passwordRoutes`: the pages at or under those routes stay out of `search-index.json`, and so do the pages under a member gate, which `search::index` reads from the site itself; the index in the publication's folder therefore holds no gated text, whoever later copies that folder to another host. The exporter no longer drops `site.formweb.json` for them: `Studio.publish` is the one place that leaves it out of a local publication, for every site, and `serve_release` refuses it (`PRIVATE_FILES`) for releases written before that. `serve_release` also filters `search-index.json` at request time (`public_search_index`), which covers releases made before a password was set.
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 840e4283..4de3b37d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -84,9 +84,9 @@ jobs:
working-directory: backend
run: python -m pytest tests -q -p no:cacheprovider
- window:
+ window-build:
runs-on: ubuntu-latest
- timeout-minutes: 45
+ timeout-minutes: 7
steps:
- name: Apt mirror fallback
if: runner.os == 'Linux'
@@ -119,9 +119,39 @@ jobs:
run: |
npm ci
npm run build
+ - name: Pack the engine binary and the window
+ run: tar -cf window-build.tar native/target/release/formweb-core frontend/dist
+ - uses: actions/upload-artifact@v4
+ with:
+ name: window-build
+ path: window-build.tar
+ retention-days: 1
+
+ window:
+ needs: window-build
+ runs-on: ubuntu-latest
+ timeout-minutes: 7
+ strategy:
+ fail-fast: false
+ matrix:
+ part: [1, 2, 3, 4, 5, 6, 7, 8]
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/setup-python@v5
+ with:
+ python-version: '3.12'
+ cache: pip
+ cache-dependency-path: backend/requirements.txt
+ - uses: actions/download-artifact@v4
+ with:
+ name: window-build
+ - name: Unpack the engine binary and the window
+ run: tar -xf window-build.tar
- name: Engine, pytest and Playwright
run: |
pip install -r backend/requirements.txt pytest==9.1.1 playwright==1.63.0
python -m playwright install --with-deps chromium
- - name: Window smoke (F7)
- run: python -m pytest frontend/tests/window -q -p no:cacheprovider
+ - name: Window smoke (F7), part ${{ matrix.part }} of 8
+ run: |
+ files=$(grep -c "def test_" frontend/tests/window/test_*.py | sort -t: -k2,2nr -k1,1 | awk -F: -v k=${{ matrix.part }} 'NR % 8 == k % 8 {print $1}')
+ python -m pytest $files -q -p no:cacheprovider
diff --git a/CHANGELOG.md b/CHANGELOG.md
index bd7c7805..27b5f150 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,48 @@
# Changelog
+## 0.36.0 · 2026-11-27
+
+- The fifth of five releases that answer the follow-up on issue #36: imports that keep their look.
+- The import review (Import site from zip and Import HTML files) lists, under each page that loads files from other websites, one row per file with a tick: what it is (Stylesheet, Script or Font file) and its host as plain text. Every tick is off at first, and a sentence above the rows says what a tick does: FormWeb on this computer downloads that file from its host now, and the file becomes part of the site. Nothing is downloaded without a tick. Unticking forgets the file again.
+- While a ticked file downloads, its row says "Downloading" in place; once it has arrived, the row shows its size. Nothing else in the review moves. When the download is refused (too large, the wrong kind of file, a host that cannot be reached), the tick goes off and the row says why. Two pages that name the same file share one download and tick together.
+- A ticked stylesheet that names font files lists them under it, indented, each with a tick of its own. Unticking the stylesheet removes its font rows.
+- At Import, the ticked files become part of the site: a stylesheet's rules join the page's styles where its link stood, with its leading comment (its licence notice) and a line naming where it was downloaded from; a script joins the page's script, before the page's own; a WOFF2 font becomes a site asset that the stylesheet points to. Preview and the export then ask no outside host for them. The Import button waits for downloads still on their way and says so. The result says how many files from the web came along and, with fonts, that the fonts are now the site's. Pick another file, Back, Cancel or a finished import, and the downloads are forgotten.
+- The download has fixed limits that nothing can switch off: https addresses only, on their usual port; only hosts whose every address is public; at most 256 KiB per stylesheet, 512 KiB per script and 2 MiB per font, and 10 seconds per file; at most 30 files and 8 MiB in one review. A stylesheet must arrive as a stylesheet, a script as a script, and a font must be WOFF2. A downloaded file is never run by FormWeb and never sent back to the editor.
+- "Bring pages in as" still starts on Code sections when a page loads files from the web. The reason beside it now follows the ticks: with every file ticked and downloaded it says the pages keep their look either way, and otherwise it names the hosts whose files will be missing. Your choice is never changed for you.
+- A page brought in as editable elements with ticked files has its script run first, in a sealed frame with no network, and is measured as it looks after the script ran: the classes the script gave its elements and the style rules it made are kept, so the converted elements look as they do in the browser. What only the script builds stays the script's. A script that does not finish within about 5 seconds is left out of the measuring and the result says so.
+- For such pages the class and id of the page's body are kept on a wrapper around its content, so a look that hangs on the body (a background, a font) arrives too.
+- Agents: `library_import_site` still never downloads anything; only a person's tick in the editor's review does.
+- A downloaded stylesheet that names other addresses in a form that cannot be checked (escaped letters, `image-set`, an `@import` that survives) is left out whole, with a sentence, so the published page cannot be made to ask an outside host. A page script that tries to send the sealed frame to another address is stopped, and that page is then measured without running its script.
+- Fixed: pressing Import in the site review no longer drops the focus to the page.
+- Automated tests at four layers: 182 engine tests, 747 service tests, 746 editor function tests and 561 tests that drive the real editor window. Of these, 30 service tests, 9 editor function tests and 9 window tests are new and cover this release; the two new window files take under 20 seconds together. They were written after the features had been run and seen to work, by an agent that did not build them, and each was seen to fail once, against 0.35.0 where that release could run it and otherwise with a wrong expected value. No test reaches a real host: the service tests replace only the one place where a connection is made, so the checks above it still run.
+- Known gaps: a page script that never stops freezes the editor window during the conversion in Chromium, because the sealed frame shares the window's process; reloading the window brings the site back with the page as code. Import HTML as a section has no ticks yet: its files from the web are still not brought along. Only WOFF2 fonts are taken, and an `@font-face` that also names another format is left out unless every file it names was downloaded. Addresses that start with `//` are listed but cannot be ticked into a download. The service's refusal sentences in the rows are English in every language. The real download path (name lookup, connection, certificate check) could not be run in the build workspace, which has no network; it was run against stand-in hosts only. Closing the Library does not forget the downloads at once; they are forgotten after 20 minutes. Nothing of this release was run in the desktop app, on Windows or macOS, in Firefox or Safari, on touch or with a screen reader. Where exports are saved (0.35.0) has still not been run in a launched desktop app; the owner's check is step 7 of docs/DESKTOP_TESTING.md, and the desktop shell's part of it has no automated tests. When the desktop app refuses a save it did not ask about, the notice says nothing was saved but the status line still says the site was exported. A marker does not follow its element while a motion preset plays. The audit's messages are in English in every language, and a result sentence joined from several parts does not follow a language switch until the next audit. Where a kept script builds content, the canvas stays blank there; Preview and the export show it. A picture of that content for the canvas is built and was seen working, but it is switched off: the export would copy the picture's file into its assets folder, and the moment it appears on the canvas was not checked for a shift. A button built by a kept script takes the page's font where the original page used the browser's own. With no trial on, a menu command chosen with the mouse leaves the focus on the page, so Delete and Backspace remove the selected element; a Layers row does the same. Moving the focus into Search properties ends a trial. While search results show, pressing Tab twice from the search box can leave the focus on the page. A kept line height in pixels that equals the one its section inherits is turned into a ratio on text a script builds. The translations are machine made and unread by native speakers.
+
+## 0.35.0 · 2026-11-27
+
+- The fourth of five releases that answer the follow-up on issue #36: find it, check it, save it where you want.
+- Audit markers: the Audit dialog (Page > Run SEO and accessibility audit, or the Audit button) has a switch, "Show audit markers on the page", off at first, with a sentence that says what it does and that the markers show once the dialog is closed; View > Show audit markers turns it on or off from the menu, with a check mark and a sentence in the status line. With it on, each element of the open page that has an issue gets one small marker centred on its top right corner on the canvas, showing how many issues it has; half of the marker lies outside the element, so it does not hide the element's text. A warning is a yellow diamond and a note a blue circle. Issues about the whole page or site have no marker; the dialog says how many there are. At most 200 markers are drawn on a page, and the dialog says so when there are more elements with issues.
+- A click on a marker, or Enter or Space on it, selects its element and shows the issue in the status line and the notice, the way Select in the Audit dialog does; with several issues a small list under the marker shows each sentence. Pointing at a marker shows the sentences in its tooltip and changes nothing else.
+- Markers follow your changes without pressing Audit again: once a change is saved, the audit is asked again (at most once every 0.6 s), so an issue you fix loses its marker within a moment and a new one gets a marker. They follow the canvas when it scrolls, zooms or changes size, breakpoint or page; a marker whose corner is out of view is hidden, not pinned to the edge, and markers keep up with the window while it is resized. Markers are hidden in Live preview and Preview as published, while you drag on the canvas, try a choice or edit text, and while a dialog is open, and come back afterwards. If the audit cannot be run, they hide and the status line says so once. The choice is kept in this browser only, never in the site or the export; Reset All Preferences turns it off. With markers off, nothing is asked beyond what the editor asked before.
+- Where exports are saved (desktop app): Edit > Settings... (Preferences), General, has "Where exports are saved" with three choices: The Downloads folder (chosen at first), A folder you choose (with Choose folder... and the chosen path shown), and Ask each time. Export static site, Download .fweb project, QR codes and picture exports all follow it. In a browser the row says that the browser decides where downloads go, and downloads work as before.
+- After every save the notice names the real folder, for example "Exported harbour-ferries-site.zip to" the folder, with Show in folder. A file whose name is taken there gets " (1)", " (2)" and so on. A name the page suggests can never place a file outside the folder.
+- If the chosen folder is missing or cannot be written when a file is saved, the file goes to your Downloads folder and a red notice says "The chosen folder ... is missing or cannot be written, so ... was saved to ...". With Ask each time the system's save dialog opens before anything is downloaded; Cancel saves nothing and the status line says "Nothing was saved.". The chosen folder is kept by the app itself, survives a restart, and Reset All Preferences puts the choice back to Downloads.
+- The import review names the files a page loads from other websites: for each such page, for example, "This page loads files from the web: 2 stylesheets from styles.example.com and 1 script from scripts.example.org. These files are not brought along." Host names are plain text, never links. When at least one page loads such files, Bring pages in as starts on Code sections, with the reason under it ("Kept as code, because 1 of 2 pages loads files from the web. ..."); picking Editable elements says what will be missing, and the result after the import names those hosts. An import with no such files starts on Editable elements, as before. Nothing is downloaded from those websites during the review or the import.
+- Agents: the review of `library_import_site` and of the site import route gives each page `outside`, a list of `{kind, host, url}` (kind `stylesheet` or `script`) in the order the page loads them, each address once, at most 20, with `outsideMore` counting the rest; `/api/library/import-html` adds the same two fields to its answer. Each page of the review also has `outsideWarnings`, the positions in `warnings` of the older outside-file warnings that `outside` already names in full; the review row in the window shows such a warning once, as the plain sentence. Every earlier field is unchanged.
+- A page whose script builds part of its content, converted to editable elements with its script kept, now keeps the style rules that none of the converted elements use (and the rules for classes the script names) with the script, so what the script builds is styled in Preview and in the export. The converted elements keep their measured look. The result says so, for example "Kept 6 style rules for the content the page's script builds.". With the script not kept nothing changes. A line height the page sets as a ratio of the text size is kept as that ratio, so smaller or larger text the script builds gets a line height that follows its own size.
+- A converted page that filled the window (a page with `height: 100%` or `min-height: 100vh`) now fills the canvas and Preview at least to their height, instead of shrinking to its content.
+- Search properties lists what matches with the tab and section where it is, as in "Opacity · Design > Appearance", and now finds choices, list items and motion presets too, as in "800 · Design > Typography > Weight" and "Fade up · Motion > Presets". It no longer goes to a result: a click, Enter and the arrow keys do nothing, and a sentence above the list says "Each result shows where to find it. Open that tab and section to use it." The results are no longer grouped under headings. Escape clears the search; Escape in an empty search field moves to the tab buttons.
+- Opening a menu in the menu bar while you try a choice no longer ends the trial. Copy, Save, Search commands, Try choices before keeping them, Show audit markers and Show hover outlines keep it, and the focus goes back to the choice you were trying; Edit > Undo puts the page back and undoes nothing else; any other command puts the page back first. The same holds while a list field's list is open.
+- Fixed: after a command chosen from a menu opens a dialog, closing the dialog no longer leaves Delete and Backspace able to remove the selected element.
+- Fixed: Edit > Undo from the menu while trying an item of an open list no longer undoes an earlier saved change.
+- Fixed: a click on an audit marker whose element was just removed elsewhere drops the marker and says nothing.
+- Fixed: after a click on a toolbar button, such as Audit, Export or a breakpoint button, Delete and Backspace no longer remove the selected element.
+- Fixed: the Convert to editable elements window keeps the focus while it works. Before, a Backspace pressed during a conversion could remove the selected section, and the conversion then selected its result over an element you had picked meanwhile.
+- Fixed: an import no longer stalls on a stylesheet with an `@import` that has no closing semicolon.
+- Fixed: a conversion no longer fails when the page's code would be too large; the style rules kept for the script are left out and the result says so.
+- Fixed: the Export button no longer drops the focus while it is busy.
+- Automated tests at four layers: 182 engine tests, 717 service tests, 737 editor function tests and 552 tests that drive the real editor window. Of these, 105 service tests, 37 editor function tests and 90 window tests are new and cover this release. Each was written after its feature had been run and seen to work, by an agent that did not build it, and each was seen to fail against 0.34.0 and once with a wrong expected value before it was accepted. The list that Search properties shows has one new and one rewritten window test and one rewritten editor function test, written by the lead, which did not build it. In CI the window tests now run as eight parts side by side, each with a limit of 7 minutes.
+- Known gaps: where exports are saved was compiled for Windows and macOS and its page side was run in a browser with a stand-in for the app, but it was not run in a launched desktop app on any system; the owner's check is step 7 of docs/DESKTOP_TESTING.md. The desktop shell's part of it has no automated tests. When the desktop app refuses a save it did not ask about, the notice says nothing was saved but the status line still says the site was exported. A marker does not follow its element while a motion preset plays. The audit's messages are in English in every language, and a result sentence joined from several parts does not follow a language switch until the next audit. Where a kept script builds content, the canvas stays blank there; Preview and the export show it. A button built by a kept script takes the page's font where the original page used the browser's own. With no trial on, a menu command chosen with the mouse leaves the focus on the page, so Delete and Backspace remove the selected element, as before this release; a Layers row does the same. Moving the focus into Search properties ends a trial. While search results show, pressing Tab twice from the search box can leave the focus on the page, where Backspace removes the selected element. A kept line height in pixels that equals the one its section inherits is turned into a ratio on text a script builds. The search was run in Chromium only, with a mouse and a keyboard, and not with a screen reader. The eight-part CI job was not run before this release. The translations are machine made and unread by native speakers.
+
## 0.34.0 · 2026-11-27
- The third of five releases that answer the follow-up on issue #36: try a choice before keeping it.
diff --git a/README.md b/README.md
index abf09541..8a704ae5 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@
-
+
diff --git a/VERSION b/VERSION
index 85e60ed1..93d4c1ef 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.34.0
+0.36.0
diff --git a/backend/HASHOUT_LOG.md b/backend/HASHOUT_LOG.md
index 911cea5e..e5151871 100644
--- a/backend/HASHOUT_LOG.md
+++ b/backend/HASHOUT_LOG.md
@@ -1,5 +1,35 @@
# Backend context
+## Files a person ticks in the import review are downloaded under guards and merged at import · v0.36.0 (2026-11-27)
+
+The last of five releases (0.32.0 to 0.36.0) that answer the follow-up on issue #36; `frontend/HASHOUT_LOG.md`, same version, has the review's ticks, the sealed frame and the body wrapper's editor side. New: `app/outside_fetch.py`; routes `POST /api/library/outside/fetch` and `/outside/drop` in `app/library_routes.py`; an optional `outside` query parameter on `import-site`. No engine change. With no token every answer is exactly the 0.35.0 one (no `outside` key, the same warnings).
+
+One network seam. Every byte goes through the module-level `outside_fetch.connect(host, port, pick, seconds)`: it resolves the name once, hands every address to the caller's `pick`, opens TCP to the address `pick` returned and verifies TLS for the host name. `pick` holds the every-address-public check (loopback, private, link-local, CGNAT, multicast, reserved, unspecified, IPv4-mapped, 6to4, Teredo and NAT64 forms; at most 64 addresses), and the caller refuses any connection on which `pick` was never called. That is why a replacement seam (a test, `/home/claude/wave5/standin_app.py`) cannot skip the address rule: the guards sit above the seam, and the seam only proves it asked. There is no setting, header or environment variable that turns a guard off. The connection goes to the checked address, so there is no second lookup to race.
+
+Time and size. The 10 second deadline holds for trickled headers and bodies because `http.client` reads through a RawIOBase wrapper that sets the socket timeout to the time left before each `recv`; the DNS lookup runs in a daemon thread joined with the time left. Caps are counted while reading (256 KiB stylesheet, 512 KiB script, 2 MiB font) and never taken from `Content-Length`; a body shorter than its `Content-Length` is refused as broken off (that case was accepted before the last fix of the wave). `Accept-Encoding: identity`, and any `Content-Encoding` is refused, so there is no decompression to bound. Content checks: `text/css`, JavaScript types, `wOF2` by the first four bytes, strict UTF-8.
+
+The token store. Downloaded files live only in memory, under a random token the first fetch creates: at most 30 files and 8 MiB per token, 20 tokens (the oldest is dropped), each forgotten 20 minutes after its last use, one download at a time per token through a lock with a 30 second wait. A font is accepted only when a stylesheet fetched under the same token names that exact URL; the stylesheet's `@font-face` rules are scanned with `find`, not a regular expression, at most 5,000 rules, 20 fonts listed plus `fontsMore`. No route returns a body and nothing downloaded is executed by the service: a file is data.
+
+What the security pass found in the merge. The two regular expressions that rewrite `url()` and `@import` match the plain forms only, and CSS lets a letter be written as an escape (`u\72l(`), an address hold an escaped bracket, or `image-set("...")` name an address with no `url()` at all. Rather than parse CSS, `outside_css` now looks at its own result: it resolves the escapes in a copy, and if that copy still holds a `url(` that is not `data:` or `/api/assets/`, an `@import` or an `image-set(`, the whole stylesheet is left out with a sentence (`notes['odd']`). The escapes icon fonts and utility class names use pass, since resolving them makes no such word. `store_fonts` catches the store's refusal per font, because only the first four bytes are checked at download and a refused font used to fail the import after the archive's assets were already stored. Known and left: fetches share the service's small thread pool, so many slow ones at once make the service slow for the window that asked for them; both routes need the window key.
+
+Merge (`site_import.py`, `_page` and `commands`, taking an optional `fetched`). Only files kept under the token AND named by the page being imported are used. `Site.outside_css` keeps the stylesheet's leading comment (its licence) and adds a `Downloaded from` line, leaves its `@import` out, points `url()` of a fetched font at `/api/assets/.woff2` (the name is the sha256 of the body exactly as the asset store names it, so `store_fonts` then ingests and owns the asset the CSS already points at), turns every other outside `url()` into `none` and leaves out each `@font-face` whose non-data `url()`s were not all fetched, counting them in a sentence. The `Downloaded from` comment keeps the source address in the CSS on purpose; a check for "no outside host" must look at `url()`, `src` and `href`, not at the text. Fetched classic scripts join before the page's own script in document order; a module and a classic script are not joined, and a fetched script past 512 KiB is left out, each with a sentence that names it. Over 256 KiB of CSS the page is built again without the fetched stylesheets. `Site.fetched`, `brought`, `fonts_used` and `notes` carry this per import; the old "not brought along" sentences are not given for files that came along.
+
+Body wrapper. `_page` takes only the text between `` and ``, so a body's class was lost at import and a look that hangs on it (a gradient, a font) never arrived. For a page that brought at least one fetched file (`site.brought`), the `id` and `class` of its `` tag (read from at most 4,096 characters, each value at most 2,048, escaped) are kept on a wrapper `
` around the page's markup. Only for such pages, so every other import is unchanged. Handlers and other attributes are not carried.
+
+Not run in this workspace: the real `connect` (name lookup, TCP, certificate check), since it has no network; the per-token and token-count limits, the 20 minute expiry and two concurrent fetches on one token; a fetched module script, the script and CSS caps, an outside `@import` inside a local stylesheet, two pages naming the same file, and replace mode with a token. `//host/x` addresses are listed by the review and never fetched (https only). The MCP tool `library_import_site` has no token parameter and never fetches; its description says only a person's tick in the editor's review downloads a file.
+
+## The import review names the files a page loads from other hosts · v0.35.0 (2026-11-27)
+
+The fourth of five releases (0.32.0 to 0.36.0) that answer the follow-up on issue #36; `frontend/HASHOUT_LOG.md`, same version, has the editor side and the desktop shell's export folder. The routes, `mode`, `revision`, the commands, undo and every earlier field and warning sentence are unchanged; the three new fields are additive. Nothing is fetched: no code added here resolves a name or opens a connection (`urlsplit` is not used for the host, and the `idna` codec is a string operation), and a run under `strace` saw no outside connection from the service during reviews and imports.
+
+`outside_file(kind, reference)` (`app/site_import.py`) reads one reference the way a browser reads an http or https link, without a regular expression and bounded before any parsing: leading and trailing C0 controls and spaces are trimmed and tabs and line breaks removed; the reference must be printable and at most 2,048 characters (`URL_MAX`); the scheme is read by hand and only `http`, `https` or none (protocol-relative) is taken; after it there must be two slashes, `/` or `\` in any mix, and every further slash is skipped; the authority ends at the first `/`, `\`, `?` or `#`, the last `@` ends the credentials (dropped), and the port follows the first `:`, digits only, at most 65535. Cases, each checked against the test browser's own URL parser (`new URL(x, base)`, 66 cases, 0 different): `https://tracker.evil\@cdn.example.net/x.js` is host `tracker.evil` (the browser reads the backslash as a slash, so the path is `/@cdn...`; the first version used `urlsplit` and named the trusted host, which a downloaded page could use to make the review and the agents reading it name the wrong host); `https:\\evil.com\x.css`, `\\evil.com/x.js`, `/\evil.com/x.js` and `https:///evil.com/x` are listed with their host; `https:evil.com/x` and `https:/evil.com/x` are not listed, because their host depends on the page's own scheme; a protocol-relative URL with port 80 or 443 is not listed for the same reason, while `//host:8080/` is; uppercase schemes and hosts are lower-cased; a default port is dropped and another kept in `host`; IPv6 (`[`), a host with `%`, `\`, `@` or white space, a host over 253 characters (`HOST_MAX`), labels outside 1 to 63 characters of `a-z`, `0-9` and `-` with no hyphen at either end (so `under_score` is refused), and a trailing dot are refused; a non-ASCII host goes through the `idna` codec unless it holds a UTS46 deviation character (`ß`, `ẞ`, `ς`, ZWJ, ZWNJ) or a code point unassigned in Unicode 3.2, and an `xn--` label must decode; a host whose last label is a number (decimal or `0x`) is read by the WHATWG IPv4 rules (hex, octal, fewer than four parts, `_ipv4`, `_number`) and listed dotted (`0x7f.1` is `127.0.0.1`) or refused (`1.2.3.4.5`, `256.1.1.1`); `data:`, `blob:`, `javascript:` and `ftp:` are not listed. The answer is `{kind, host, url}`, `url` with the scheme lower-cased, no credentials, the ASCII host, no default port and backslashes in the path turned to `/` (a protocol-relative URL stays `//host/...`). A reference it refuses stays only in the existing warning sentences, which agents still read.
+
+`Site.listing` collects `(kind, reference)` while one page is read (`_page`): every `')
+ assert listed[-1:] and listed[-1]["host"] == "control.example.net", f"the control script was not listed, so the page was not read: {listed}"
+ return listed[:-1]
+
+
+def url_host(url):
+ assert url.startswith(("https://", "http://", "//")), f"the listed address is not absolute or protocol-relative: {url!r}"
+ authority = url.split("//", 1)[1]
+ for end in "/?#":
+ authority = authority.split(end, 1)[0]
+ assert "\\" not in authority and "@" not in authority, f"a browser would read another host out of the listed address {url!r}"
+ return authority
+
+
+@pytest.mark.parametrize("reference, host", LISTED)
+@pytest.mark.parametrize("kind", ["script", "stylesheet"])
+def test_an_outside_file_is_named_with_the_host_a_browser_loads_it_from(client, blank, reference, host, kind):
+ tag = f'' if kind == "script" else f''
+ listed = one_with_control(client, tag)
+ assert [(item["kind"], item["host"]) for item in listed] == [(kind, host)], f"{reference!r} loads from {host}, the review named {listed}"
+ assert url_host(listed[0]["url"]) == host, f"the listed address {listed[0]['url']!r} does not lead to {host}"
+
+
+@pytest.mark.parametrize("reference, host", LISTED_OR_LEFT_OUT)
+def test_an_outside_file_is_named_with_the_host_a_browser_loads_it_from_or_not_at_all(client, blank, reference, host):
+ listed = one_with_control(client, f'')
+ assert listed == [] or [item["host"] for item in listed] == [host], f"{reference!r} loads from {host}, the review named {listed}"
+ assert all(url_host(item["url"]) == host for item in listed), listed
+
+
+@pytest.mark.parametrize("case", list(LEFT_OUT))
+def test_an_address_that_does_not_name_one_outside_host_is_not_listed(client, blank, case):
+ reference = LEFT_OUT[case]
+ listed = one_with_control(client, f'')
+ assert listed == [], f"{case} was listed: {listed}"
+
+
+def test_the_spoofed_host_is_named_as_the_real_one_inside_a_zip_too(client, blank):
+ sample = page("Spoof", "
x
", '')
+ r = client.post(REVIEW, content=zip_of({"index.html": sample}))
+ assert r.status_code == 200, r.text[:400]
+ listed = r.json()["pages"][0]["outside"]
+ assert [(item["kind"], item["host"]) for item in listed] == [("script", "tracker.example"), ("stylesheet", "evil.example")]
+ assert [url_host(item["url"]) for item in listed] == ["tracker.example", "evil.example"], listed
+
+
+@pytest.mark.parametrize("reference", [
+ "https://user:secret@cred.example.net/a.js",
+ "https://user@cred.example.net/a.js",
+ "//user:secret@cred.example.net/a.js",
+ "https://user:secret@cred.example.net:8443/a.js",
+ "https:\\\\user:secret@cred.example.net\\a.js",
+])
+def test_credentials_in_an_address_never_appear_in_the_listed_host_or_address(client, blank, reference):
+ listed = one_with_control(client, f'')
+ assert [item["host"].split(":")[0] for item in listed] == ["cred.example.net"], listed
+ for item in listed:
+ assert "user" not in item["host"] + item["url"] and "secret" not in item["host"] + item["url"], item
+ assert "@" not in item["url"].split("/")[2], item
+
+
+def test_an_international_host_is_listed_in_its_ascii_form_and_the_list_is_plain_json(client, blank):
+ listed = one_with_control(client, '')
+ assert [item["host"] for item in listed] == ["xn--bcher-kva.example", "cdn.example.net"]
+ assert all(item["host"].isascii() for item in listed)
+ assert json.loads(json.dumps(listed, ensure_ascii=True)) == listed
+ assert all(set(item) == {"kind", "host", "url"} and all(isinstance(v, str) for v in item.values()) for item in listed)
+
+
+def test_a_stylesheet_with_an_unterminated_import_of_96_kib_is_reviewed_within_the_bound(client, blank):
+ stalling = "h1{color:#123456}\n@import " + "a" * (96 * 1024)
+ data = zip_of({"index.html": page("Stall", "
", "".join(tag(f"https://cdn.example.net/f{i}.{'js' if kind == 'script' else 'css'}") for i in range(count)))
+ for review in (loose(client, {"index.html": many}), zipped(client, {"index.html": many})):
+ found = page_of(review, "index.html")
+ assert [item["url"] for item in outside(review)] == [f"https://cdn.example.net/f{i}.{'js' if kind == 'script' else 'css'}" for i in range(20)]
+ assert {item["kind"] for item in found["outside"]} == {kind}
+ assert found["outsideMore"] == count - 20
+
+
+def test_a_page_with_twenty_outside_files_lists_all_of_them_and_counts_none_more(client, blank):
+ twenty = page("Twenty", "
twenty
", "".join(script(f"https://code.example.org/f{i}.js") for i in range(20)))
+ found = page_of(loose(client, {"index.html": twenty}), "index.html")
+ assert len(found["outside"]) == 20
+ assert found["outsideMore"] == 0
+
+
+def test_a_page_with_no_outside_files_gets_an_empty_list_and_every_earlier_field_as_written(client, blank):
+ plain = page("Opening hours", '
"
+ assert answer["revision"] == client.get("/api/state").json()["revision"]
+
+
+def covered_warnings(found):
+ assert "outsideWarnings" in found, f"the review has no outsideWarnings: {sorted(found)}"
+ assert all(isinstance(i, int) and 0 <= i < len(found["warnings"]) for i in found["outsideWarnings"]), found
+ return [found["warnings"][i] for i in found["outsideWarnings"]]
+
+
+def test_the_warnings_that_the_outside_list_names_in_full_are_pointed_at_and_the_warnings_stay_as_they_were(client, blank):
+ head = link("https://cdn.example.net/look.css") + script("https://code.example.org/tick.js") + ''
+ found = page_of(loose(client, {"index.html": page("Stopwatch", "
x
", head)}), "index.html")
+ covered = covered_warnings(found)
+ assert len(covered) == 2, found
+ script_line = next(w for w in covered if "script" in w)
+ sheet_line = next(w for w in covered if "stylesheet" in w)
+ assert "https://code.example.org/tick.js" in script_line and "cdn.example.net" not in script_line
+ assert "https://cdn.example.net/look.css" in sheet_line and "code.example.org" not in sheet_line
+ left = [w for i, w in enumerate(found["warnings"]) if i not in found["outsideWarnings"]]
+ assert len(left) == 1 and "https://style.example.org/block.css" in left[0], "the @import warning says more than the list and must not be pointed at"
+
+
+@pytest.mark.parametrize("case, head", [
+ ("a data script beside an outside one", script("data:text/javascript,1") + script("https://code.example.org/tick.js")),
+ ("a refused host beside a good one", script("https://under_score.example.net/x.js") + script("https://code.example.org/tick.js")),
+ ("twenty-one outside scripts", "".join(script(f"https://code.example.org/f{i}.js") for i in range(21))),
+])
+def test_a_script_warning_that_counts_a_file_the_list_does_not_name_is_not_pointed_at(client, blank, case, head):
+ found = page_of(loose(client, {"index.html": page("Partly named", "
x
", head)}), "index.html")
+ assert found["outside"], f"{case}: nothing was listed, so the page was not read"
+ script_lines = [i for i, w in enumerate(found["warnings"]) if "external script" in w]
+ assert len(script_lines) == 1, found["warnings"]
+ assert script_lines[0] not in covered_warnings(found) and script_lines[0] not in found["outsideWarnings"], f"{case}: {found}"
diff --git a/backend/tests/site_import/test_outside_merge.py b/backend/tests/site_import/test_outside_merge.py
new file mode 100644
index 00000000..9f8ad694
--- /dev/null
+++ b/backend/tests/site_import/test_outside_merge.py
@@ -0,0 +1,165 @@
+"""What a site import does with the outside files a person ticked (plan B8, C1 to C6). Only the network seam
+`outside_fetch.connect` is replaced; the downloads go through the real routes."""
+import re
+
+import pytest
+
+from app import outside_fetch
+from site_zips import page, zip_of
+
+FETCH = "/api/library/outside/fetch"
+REVIEW = "/api/library/import-site/review"
+IMPORT = "/api/library/import-site"
+WOFF2 = b"wOF2" + b"\x01" * 80
+LOOK = """/*! Look kit v1 | MIT licence */
+@import url("https://cdn.example.net/extra.css");
+@font-face { font-family: Face; src: url("face.woff2") format("woff2"); }
+.card { font-family: Face; background: url("https://cdn.example.net/paper.png"); color: rgb(1, 2, 3); }"""
+TICK = "window.fromTheWeb = 'tick';"
+HEAD = ''
+BODY = '
Lap
'
+PAGE = page("Lap", BODY, HEAD).replace("", '')
+
+
+def answer(body, ctype):
+ data = body.encode() if isinstance(body, str) else body
+ return f"HTTP/1.1 200 OK\r\nContent-Type: {ctype}\r\nContent-Length: {len(data)}\r\n\r\n".encode() + data
+
+
+class Stream:
+ def __init__(self, data):
+ self.data = data
+
+ def sendall(self, data):
+ pass
+
+ def settimeout(self, seconds):
+ pass
+
+ def close(self):
+ pass
+
+ def recv_into(self, buffer):
+ n = min(len(buffer), len(self.data))
+ buffer[:n] = self.data[:n]
+ self.data = self.data[n:]
+ return n
+
+
+FILES = {
+ "/look.css": answer(LOOK, "text/css"), "/face.woff2": answer(WOFF2, "font/woff2"), "/tick.js": answer(TICK, "text/javascript"),
+ "/unused.css": answer(".unused-rule{color:red}", "text/css"),
+}
+
+
+@pytest.fixture()
+def web(monkeypatch):
+ def connect(host, port, pick, seconds):
+ pick(["93.184.216.34"])
+ holder = {}
+
+ class Asked(Stream):
+ def sendall(self, data):
+ path = data.split(b" ", 2)[1].decode()
+ self.data = FILES[path]
+ return Asked(b"")
+ monkeypatch.setattr(outside_fetch, "connect", connect)
+
+
+@pytest.fixture()
+def blank(client):
+ r = client.post("/api/new", json={"name": "Blank", "blank": True})
+ assert r.status_code == 200, r.text
+ return r.json()
+
+
+def fetched(client, *items, token=None):
+ for url, kind in items:
+ r = client.post(FETCH, json={"url": url, "kind": kind, "token": token})
+ assert r.status_code == 200, r.text[:300]
+ token = r.json()["token"]
+ return token
+
+
+def imported(client, html, token=None):
+ query = f"?outside={token}" if token else ""
+ r = client.post(IMPORT + query, content=zip_of({"index.html": html}))
+ assert r.status_code == 200, r.text[:400]
+ return r.json()
+
+
+def section(client):
+ sections = (client.get("/api/state").json()["site"].get("extensions", {}).get("code") or {}).get("sections") or {}
+ assert len(sections) == 1, sections
+ return next(iter(sections.values()))
+
+
+ALL = [("https://cdn.example.net/look.css", "stylesheet"), ("https://cdn.example.net/face.woff2", "font"), ("https://code.example.org/tick.js", "script")]
+
+
+def test_with_its_three_files_fetched_the_page_holds_the_font_as_a_stored_asset_the_script_first_and_no_outside_host(client, blank, web):
+ token = fetched(client, *ALL)
+ result = imported(client, PAGE, token)
+ code = section(client)
+ face = re.search(r"@font-face\s*\{[^}]*\}", code["css"])
+ assert face, f"no @font-face in the imported styles: {code['css'][:400]}"
+ assert "example." not in face.group(0) and "url(" in face.group(0), face.group(0)
+ assert result["outside"]["fonts"] == 1, result["outside"]
+ assert 0 <= code["js"].find("fromTheWeb") < code["js"].find("ownScript"), code["js"]
+ every = code["html"] + code["css"] + code["js"]
+ named = re.findall(r"""(?:url\(\s*["']?|src=["']|href=["'])(https?://[^"')\s]+)""", every)
+ assert named == [], f"the imported page still loads from outside: {named}"
+
+
+def test_an_import_inside_a_fetched_stylesheet_is_left_out_with_a_sentence(client, blank, web):
+ token = fetched(client, ALL[0])
+ result = imported(client, PAGE, token)
+ assert "@import" not in section(client)["css"]
+ assert any("@import" in w and "left out" in w for w in result["warnings"]), result["warnings"]
+
+
+def test_a_fetched_file_the_page_does_not_name_is_not_used_and_is_said(client, blank, web):
+ token = fetched(client, ("https://cdn.example.net/unused.css", "stylesheet"))
+ result = imported(client, PAGE, token)
+ assert "unused-rule" not in section(client)["css"]
+ assert any("not used by any imported page" in w for w in result["warnings"]), result["warnings"]
+
+
+def test_the_stylesheets_licence_comment_stays_above_its_rules_with_a_line_naming_its_source(client, blank, web):
+ token = fetched(client, ALL[0])
+ imported(client, PAGE, token)
+ css = section(client)["css"]
+ licence, source, rule = css.find("MIT licence"), css.find("https://cdn.example.net/look.css"), css.find(".card")
+ assert 0 <= licence < rule and 0 <= source < rule, css[:400]
+
+
+def test_the_bodys_class_is_carried_on_a_wrapper_only_when_files_were_brought(client, blank, web):
+ imported(client, PAGE)
+ assert 'class="night"' not in section(client)["html"]
+ client.post("/api/new", json={"name": "Again", "blank": True})
+ token = fetched(client, ALL[0])
+ imported(client, PAGE, token)
+ assert re.match(r'\s*
', section(client)["html"]), section(client)["html"][:200]
+
+
+def test_an_unknown_token_at_import_brings_nothing_from_the_web_and_says_so(client, blank, web):
+ result = imported(client, PAGE, "no-such-token")
+ assert result["outside"]["files"] == [], result["outside"]
+ assert "Downloaded from" not in section(client)["css"]
+ assert any("nothing from the web came along" in w for w in result["warnings"]), result["warnings"]
+
+
+def test_without_a_token_the_review_and_the_import_equal_those_of_the_route_called_the_old_way(client, blank, web):
+ fetched(client, *ALL)
+ data = zip_of({"index.html": PAGE})
+ first = client.post(REVIEW, content=data).json()
+ second = client.post(REVIEW + "?outside=", content=data).json()
+ assert first == second
+ a = client.post(IMPORT, content=data).json()
+ code_a = section(client)
+ client.post("/api/new", json={"name": "Again", "blank": True})
+ b = client.post(IMPORT + "?outside=", content=data).json()
+ code_b = section(client)
+ strip = lambda r: {k: v for k, v in r.items() if k not in ("site", "revision", "canUndo", "canRedo")}
+ assert "outside" not in a and strip(a) == strip(b), (a.keys(), b.keys())
+ assert code_a == code_b and "Downloaded from" not in code_a["css"] and "fromTheWeb" not in code_a["js"], code_a
diff --git a/docs/ADVANCED_SCHEMA.md b/docs/ADVANCED_SCHEMA.md
index bdeb6f9c..72dbe52c 100644
--- a/docs/ADVANCED_SCHEMA.md
+++ b/docs/ADVANCED_SCHEMA.md
@@ -209,7 +209,7 @@ interface ComponentContext {
Export writes each enabled page component used on any page to `assets/components/.js` with its compiled JavaScript unchanged. The host renders as the node's own element with `data-fw-component=""` and, with a poster, a first child ``; route CSS keeps the host `position:relative` and the poster `display:block;width:100%;height:100%;object-fit:cover`. The page config holds `components.page = {host: {component, props}}` with asset props rewritten to exported URLs, and page instances render no iframe. `components.js` imports a module once when its host comes within one viewport, calls `mount`, and on `ready()` sets the poster to `visibility:hidden` so its box stays. An error keeps the poster, sets `data-fw-component-error` on the host (`data-fw-error` belongs to form fields) and logs one console error with the component id, the host node and the error. Page instances are drawn on the canvas as the poster (or a dashed "Component" placeholder) and never run there. When the site has themes and the component has both `poster` and `posterLight` (0.19.4), the host gets two images: the dark one with `data-fw-theme-only="dark"` and the light one with `data-fw-theme-only="light"`. The theme-only rule is emitted for them even when no node carries the attribute, and one sibling rule hides the second poster once the runtime hides the first on `ready()`, so `components.js` is unchanged. Without `posterLight`, or without themes, the output is the same as before. On the canvas the light poster is drawn while the Design system dialog previews the light theme.
-Code sections need `code.allowSections: true`. A section is `code.sections. = {enabled,html?,css?,js?,module?,poster?}` with `html` up to 512 KiB, `css` 256 KiB, `js` 512 KiB, `module` boolean and `poster` an owned image path. The host node must have no children. Export renders the host's open tag, `html` raw and the close tag; appends `css` to that route's page stylesheet; and, when `js` exists, writes `assets/sections/.js` and loads it with `` : ``;
+ const srcdoc = `${doc.body.innerHTML}${script}`;
+ return { srcdoc, ...parse(source.html) };
+}
+
+const isPlain = (value: unknown): value is Record => !!value && typeof value === 'object' && !Array.isArray(value) && Object.getPrototypeOf(value) === Object.prototype;
+const str = (value: unknown, max: number): value is string => typeof value === 'string' && value.length <= max;
+const int = (value: unknown, max: number): value is number => typeof value === 'number' && Number.isInteger(value) && value >= 0 && value <= max;
+
+/** The strict reading of the frame's one message: known keys, bounded counts and lengths, plain values only. */
+export function check(data: unknown, id: string, count: number): { rules: string[]; elements: [number, [string, string][]][]; built: [number, number][]; snapshot: string; width: number; height: number } | null {
+ if (!isPlain(data) || data.id !== id) return null;
+ const rules: string[] = [];
+ let chars = 0;
+ if (Array.isArray(data.rules)) for (const rule of data.rules.slice(0, SEALED.rules)) {
+ if (!str(rule, SEALED.ruleChars) || chars + rule.length > SEALED.cssChars) continue;
+ chars += rule.length;
+ rules.push(rule);
+ }
+ const elements: [number, [string, string][]][] = [];
+ const seen = new Set();
+ if (Array.isArray(data.elements)) for (const item of data.elements.slice(0, SEALED.elements)) {
+ if (!Array.isArray(item) || item.length !== 2 || !int(item[0], count - 1) || seen.has(item[0]) || !Array.isArray(item[1])) continue;
+ seen.add(item[0]);
+ const pairs: [string, string][] = [];
+ for (const pair of item[1].slice(0, SEALED.attrs)) if (Array.isArray(pair) && pair.length === 2 && str(pair[0], SEALED.nameChars) && str(pair[1], SEALED.valueChars)) pairs.push([pair[0], pair[1]]);
+ elements.push([item[0], pairs]);
+ }
+ const built: [number, number][] = [];
+ if (Array.isArray(data.built)) for (const item of data.built.slice(0, SEALED.built)) if (Array.isArray(item) && item.length === 2 && int(item[0], count - 1) && int(item[1], 100000)) built.push([item[0], item[1]]);
+ return { rules, elements, built, snapshot: str(data.snapshot, SEALED.snapChars) ? data.snapshot : '', width: int(data.width, 1600) ? data.width : 0, height: int(data.height, 4000) ? data.height : 0 };
+}
+
+/**
+ * Runs the section's script in a sealed frame (scripts only, opaque origin, no network) and returns the section as it
+ * stood after the script ran: its own elements with the classes and attributes they had then, and the stylesheet the
+ * document had then. Null when the frame said nothing usable in time; the caller then measures without running.
+ */
+export function runSealed(source: Source): Promise {
+ open?.();
+ if (!document.head.querySelector('meta[data-fw-frames]')) {
+ const meta = document.createElement('meta');
+ meta.setAttribute('data-fw-frames', '');
+ meta.httpEquiv = 'Content-Security-Policy';
+ meta.content = `frame-src 'self' blob:${apiBase ? ' ' + new URL(apiBase, location.href).origin : ''}`;
+ document.head.append(meta);
+ }
+ const id = Array.from(crypto.getRandomValues(new Uint8Array(16)), byte => byte.toString(16).padStart(2, '0')).join('');
+ const { srcdoc, doc, list } = frameDocument(source, id);
+ const frame = document.createElement('iframe');
+ frame.setAttribute('sandbox', 'allow-scripts');
+ frame.setAttribute('csp', POLICY);
+ frame.setAttribute('aria-hidden', 'true');
+ frame.tabIndex = -1;
+ frame.referrerPolicy = 'no-referrer';
+ frame.className = 'fw-convert-frame';
+ return new Promise(resolve => {
+ let timer = 0;
+ const close = (result: Sealed | null): void => {
+ window.removeEventListener('message', listen);
+ clearTimeout(timer);
+ frame.remove();
+ if (open === stop) open = null;
+ resolve(result);
+ };
+ const stop = (): void => close(null);
+ const listen = (event: MessageEvent): void => {
+ if (event.source !== frame.contentWindow || !frame.contentWindow) return;
+ const found = check(event.data, id, list.length);
+ if (!found) return;
+ close(after(doc, list, found));
+ };
+ window.addEventListener('message', listen);
+ timer = window.setTimeout(stop, SEALED.ms + 500);
+ open = stop;
+ frame.srcdoc = srcdoc;
+ document.body.append(frame);
+ });
+}
+
+function after(doc: Document, list: Element[], found: NonNullable>): Sealed {
+ for (const [index, pairs] of found.elements) {
+ const el = list[index];
+ const now = new Map(pairs.map(([name, value]) => [name.toLowerCase(), value]));
+ for (const attr of Array.from(el.attributes)) {
+ const name = attr.name.toLowerCase();
+ if (!SKIP_ATTRS.has(name) && !name.startsWith('on') && !now.has(name)) el.removeAttribute(attr.name);
+ }
+ for (const [name, value] of now) {
+ if (SKIP_ATTRS.has(name) || name.startsWith('on') || name.startsWith('data-fwk') || !NAME.test(name)) continue;
+ if (el.getAttribute(name) !== value) el.setAttribute(name, value);
+ }
+ }
+ return { html: (doc.body.attributes.length ? `` : '') + doc.body.innerHTML, css: found.rules.filter(local).join('\n'), built: found.built, snapshot: found.snapshot, width: found.width, height: found.height };
+}
diff --git a/frontend/src/features/convert/snapshot.ts b/frontend/src/features/convert/snapshot.ts
new file mode 100644
index 00000000..28d1fd94
--- /dev/null
+++ b/frontend/src/features/convert/snapshot.ts
@@ -0,0 +1,71 @@
+const XHTML = 'http://www.w3.org/1999/xhtml';
+export const PICTURE = { width: 1600, height: 4000, bytes: 512 * 1024, elements: 300, styleChars: 8192, ms: 4000 } as const;
+const TAGS = new Set(['div', 'span', 'p', 'ul', 'ol', 'li', 'a', 'b', 'i', 'em', 'strong', 'small', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'section', 'article', 'header', 'footer', 'nav', 'main', 'aside', 'button', 'label', 'table', 'thead', 'tbody', 'tr', 'td', 'th', 'time', 'code', 'pre', 'br', 'hr', 'sup', 'sub', 'mark', 'figure', 'figcaption', 'blockquote', 'dl', 'dt', 'dd']);
+
+/** Sizes of the pictures made in this session, so the canvas reserves their box before they paint. */
+export const pictureSizes = new Map();
+
+function safeStyle(text: string): boolean {
+ if (text.length > PICTURE.styleChars) return false;
+ const low = text.toLowerCase();
+ if (low.includes('expression') || low.includes('@import') || low.includes('javascript:') || low.includes('\\') || low.includes('<')) return false;
+ for (let at = low.indexOf('url('); at !== -1; at = low.indexOf('url(', at + 4)) {
+ let from = at + 4;
+ while (low[from] === ' ' || low[from] === '"' || low[from] === '\'') from++;
+ if (!low.startsWith('data:image/', from)) return false;
+ }
+ return true;
+}
+
+/** A clean copy of the frame's hostile markup: allowed element names and checked style text only. */
+function clean(snapshot: string, width: number, height: number): Element | null {
+ const source = new DOMParser().parseFromString(`${snapshot}`, 'text/html');
+ const out = document.implementation.createDocument(XHTML, 'div', null);
+ const root = out.documentElement;
+ root.setAttribute('style', `width:${width}px;height:${height}px;overflow:hidden;margin:0;font-family:system-ui,sans-serif`);
+ let count = 0;
+ const walk = (from: Node, to: Element): boolean => {
+ for (const child of Array.from(from.childNodes)) {
+ if (child.nodeType === Node.TEXT_NODE) { to.append(out.createTextNode(child.nodeValue || '')); continue; }
+ if (child.nodeType !== Node.ELEMENT_NODE) continue;
+ const el = child as Element;
+ if (!TAGS.has(el.localName)) continue;
+ if (++count > PICTURE.elements) return false;
+ const copy = out.createElementNS(XHTML, el.localName);
+ const style = el.getAttribute('style');
+ if (style && safeStyle(style)) copy.setAttribute('style', style);
+ to.append(copy);
+ if (!walk(el, copy)) return false;
+ }
+ return true;
+ };
+ return walk(source.body, root) && count > 0 ? root : null;
+}
+
+/** Draws the frame's serialised copy to a PNG, or answers null: any failure leaves the conversion as it was. */
+export async function picture(snapshot: string, width: number, height: number): Promise {
+ try {
+ if (!snapshot || !Number.isInteger(width) || !Number.isInteger(height) || width < 1 || height < 1 || width > PICTURE.width || height > PICTURE.height) return null;
+ const root = clean(snapshot, width, height);
+ if (!root) return null;
+ const svg = ``;
+ const image = new Image(width, height);
+ const loaded = new Promise(resolve => {
+ const timer = setTimeout(() => resolve(false), PICTURE.ms);
+ image.onload = () => { clearTimeout(timer); resolve(true); };
+ image.onerror = () => { clearTimeout(timer); resolve(false); };
+ });
+ image.src = 'data:image/svg+xml;charset=utf-8,' + encodeURIComponent(svg);
+ if (!(await loaded)) return null;
+ const canvas = document.createElement('canvas');
+ canvas.width = width;
+ canvas.height = height;
+ const context = canvas.getContext('2d');
+ if (!context) return null;
+ context.drawImage(image, 0, 0, width, height);
+ const blob = await new Promise(resolve => canvas.toBlob(resolve, 'image/png'));
+ return blob && blob.size <= PICTURE.bytes ? blob : null;
+ } catch {
+ return null;
+ }
+}
diff --git a/frontend/src/features/export-folder.ts b/frontend/src/features/export-folder.ts
new file mode 100644
index 00000000..a42ff556
--- /dev/null
+++ b/frontend/src/features/export-folder.ts
@@ -0,0 +1,170 @@
+import { labelAttr } from '../i18n';
+import { element } from '../ui/dom';
+import '../styles/export-folder.css';
+
+export type ExportMode = 'downloads' | 'folder' | 'ask';
+export type ExportChoice = { mode: ExportMode; path: string };
+
+type Core = { invoke(command: string, args?: Record): Promise };
+
+const KEY = 'formweb.export-folder';
+const PATH_MAX = 4096;
+const NAME_MAX = 1024;
+const MODES: readonly ExportMode[] = ['downloads', 'folder', 'ask'];
+const DEFAULT: ExportChoice = { mode: 'downloads', path: '' };
+
+const core = (): Core | undefined => (window as unknown as { __TAURI__?: { core?: Core } }).__TAURI__?.core;
+
+function parse(raw: string | null): ExportChoice {
+ if (!raw || raw.length > PATH_MAX + 64) return DEFAULT;
+ try {
+ const value: unknown = JSON.parse(raw);
+ if (!value || typeof value !== 'object') return DEFAULT;
+ const { mode, path } = value as { mode?: unknown; path?: unknown };
+ const kept = typeof path === 'string' && path.length <= PATH_MAX ? path : '';
+ if (!MODES.includes(mode as ExportMode)) return DEFAULT;
+ if (mode === 'folder' && !kept) return DEFAULT;
+ return { mode: mode as ExportMode, path: kept };
+ } catch {
+ return DEFAULT;
+ }
+}
+
+function read(): ExportChoice {
+ try { return parse(localStorage.getItem(KEY)); } catch { return DEFAULT; }
+}
+
+let current = read();
+
+const listeners = new Set<() => void>();
+
+function store(choice: ExportChoice): void {
+ current = choice;
+ try {
+ if (choice.mode === 'downloads' && !choice.path) localStorage.removeItem(KEY);
+ else localStorage.setItem(KEY, JSON.stringify(choice));
+ } catch { }
+ listeners.forEach(listener => listener());
+}
+
+function settle(sent: ExportChoice, answer: unknown): void {
+ if (sent !== current || !answer || typeof answer !== 'object') return;
+ const { mode, folder } = answer as { mode?: unknown; folder?: unknown };
+ const shown = typeof folder === 'string' && folder.length <= PATH_MAX ? folder : '';
+ if (current.mode === 'folder' && mode !== 'folder') store({ mode: 'downloads', path: '' });
+ else if (current.path !== shown) store({ mode: current.mode, path: shown });
+}
+
+function hand(choice: ExportChoice, forget = false): void {
+ const bridge = core();
+ if (!bridge) return;
+ try {
+ void bridge.invoke('set_export_place', { mode: choice.mode, path: choice.path, forget }).then(answer => settle(choice, answer), () => undefined);
+ } catch {
+ return;
+ }
+}
+
+function keep(choice: ExportChoice): void {
+ store(choice);
+ hand(choice);
+}
+
+hand(current);
+
+export const desktopShell = (): boolean => !!core();
+
+export const exportChoice = (): ExportChoice => current;
+
+export function resetExportFolder(): void {
+ try { localStorage.removeItem(KEY); } catch { }
+ current = DEFAULT;
+ hand(DEFAULT, true);
+}
+
+export function forgetAnswer(): void {
+ hand(current);
+}
+
+export async function beforeDownload(name: string): Promise {
+ const bridge = core();
+ if (!bridge || current.mode !== 'ask') return true;
+ try {
+ return (await bridge.invoke('ask_export_place', { name: name.slice(0, NAME_MAX) })) === true;
+ } catch {
+ return false;
+ }
+}
+
+let mounted: HTMLElement | null = null;
+
+export function exportFolderRow(): HTMLElement {
+ if (mounted) return mounted;
+ const row = element('div', 'fw-export-folder');
+ mounted = row;
+ if (!core()) {
+ row.append(element('p', 'micro', 'In a browser, the browser decides where downloads go.'));
+ return row;
+ }
+ row.dataset.ownKeys = '';
+ row.setAttribute('role', 'radiogroup');
+ const radios = new Map();
+ const option = (mode: ExportMode, words: string): HTMLLabelElement => {
+ const radio = element('input');
+ radio.type = 'radio';
+ radio.name = 'fw-export-folder';
+ radio.value = mode;
+ radios.set(mode, radio);
+ const wrap = element('label', 'checkbox-field');
+ wrap.append(radio, element('span', '', words));
+ return wrap;
+ };
+ const pick = element('div', 'fw-export-pick');
+ const choose = element('button', 'fw-export-choose');
+ choose.type = 'button';
+ choose.append(element('span', '', 'Choose folder...'));
+ const shown = element('span', 'fw-export-path');
+ shown.dataset.noI18n = '';
+ const none = element('span', 'fw-export-path is-empty', 'No folder chosen yet.');
+ pick.append(choose, shown, none);
+ const note = element('p', 'micro', 'Every download from the editor follows this choice: Export static site, Download .fweb project, QR codes and picture exports. With Ask each time, each file asks where it goes. If the chosen folder cannot be used when a file is saved, the file goes to Downloads and the notice says so.');
+ row.append(option('downloads', 'The Downloads folder'), option('folder', 'A folder you choose'), pick, option('ask', 'Ask each time'), note);
+ const paint = (): void => {
+ for (const [mode, radio] of radios) if (radio.checked !== (current.mode === mode)) radio.checked = current.mode === mode;
+ const path = current.path;
+ if (shown.textContent !== path) shown.textContent = path;
+ if (path) { if (shown.title !== path) shown.title = path; } else if (shown.hasAttribute('title')) shown.removeAttribute('title');
+ if (shown.hidden !== !path) shown.hidden = !path;
+ if (none.hidden !== !!path) none.hidden = !!path;
+ labelAttr(choose, 'title', path ? 'Choose another folder' : 'Choose the folder exports are saved to');
+ };
+ let choosing = false;
+ const chooseFolder = async (): Promise => {
+ const bridge = core();
+ if (!bridge || choosing) return false;
+ choosing = true;
+ choose.setAttribute('aria-busy', 'true');
+ try {
+ const folder = await bridge.invoke('choose_export_folder');
+ if (typeof folder !== 'string' || !folder || folder.length > PATH_MAX) return false;
+ keep({ mode: 'folder', path: folder });
+ return true;
+ } catch {
+ return false;
+ } finally {
+ choosing = false;
+ choose.removeAttribute('aria-busy');
+ }
+ };
+ choose.addEventListener('click', () => { void chooseFolder().then(paint); });
+ for (const [mode, radio] of radios) {
+ radio.addEventListener('change', () => {
+ if (!radio.checked) return;
+ if (mode === 'folder' && !current.path) { void chooseFolder().then(paint); return; }
+ keep({ mode, path: current.path });
+ });
+ }
+ listeners.add(paint);
+ paint();
+ return row;
+}
diff --git a/frontend/src/features/inspector/search.ts b/frontend/src/features/inspector/search.ts
index c6499a85..e72bf0fb 100644
--- a/frontend/src/features/inspector/search.ts
+++ b/frontend/src/features/inspector/search.ts
@@ -5,29 +5,31 @@ import { SYNONYMS } from './search-terms';
import '../../styles/inspector-search.css';
export interface SearchTab { id: string; button: HTMLElement; pane: HTMLElement }
-export interface SearchOptions { after: HTMLElement; scroll: HTMLElement; tabs: SearchTab[]; select(id: string): void }
+export interface SearchOptions { after: HTMLElement; scroll: HTMLElement; tabs: SearchTab[] }
export interface InspectorSearch { focus(): void; clear(): void }
interface Entry {
key: string;
group: string;
- tab: string;
- tabName: string;
- sectionName: string;
- isSection: boolean;
+ parent: string;
+ kind: 'section' | 'field' | 'choice';
name: string;
+ place: string;
css: string;
- target: HTMLElement;
off: boolean;
words: { name: string; prop: string; place: string };
}
-interface Row { key: string; heading?: string; entry?: Entry }
+interface Row { key: string; entry: Entry; value: number; order: number }
const MAX_ROWS = 120;
-const PULSE_MS = 1600;
+const MAX_ENTRIES = 4000;
+const MAX_CHOICES = 64;
+const MAX_TEXT = 120;
+const SEP = ' > ';
const FIELDS = '.field, .checkbox-field, :scope > button, .inspect-actions > button';
+const OWNER = '.field, .checkbox-field';
const norm = (value: string): string => value.toLowerCase().replace(/[^\p{L}\p{N}]+/gu, ' ').trim();
-const clean = (value: string | null | undefined): string => (value || '').replace(/\s+/g, ' ').trim();
+const clean = (value: string | null | undefined): string => (value || '').slice(0, MAX_TEXT * 4).replace(/\s+/g, ' ').trim().slice(0, MAX_TEXT);
const GROUPS = SYNONYMS.map(group => group.map(norm));
export function sectionId(title: string): string {
@@ -62,6 +64,7 @@ function rank(entry: Entry, token: string): number {
if (name.includes(token)) return 2;
if (prop.includes(token)) return 3;
const own = ` ${name} ${prop}`;
+ if (entry.kind === 'choice') return place.includes(token) ? 5 : -1;
if (token.length >= 2) {
for (const group of GROUPS) {
if (!group.some(member => member === token || member.startsWith(token))) continue;
@@ -86,9 +89,7 @@ export function installInspectorSearch(options: SearchOptions): InspectorSearch
input.type = 'text';
input.autocomplete = 'off';
input.spellcheck = false;
- input.setAttribute('role', 'combobox');
- input.setAttribute('aria-autocomplete', 'list');
- input.setAttribute('aria-expanded', 'false');
+ input.maxLength = MAX_TEXT;
labelAttr(input, 'placeholder', 'Search properties');
labelAttr(input, 'aria-label', 'Search properties');
const clearButton = element('button', 'inspector-search-clear');
@@ -102,9 +103,12 @@ export function installInspectorSearch(options: SearchOptions): InspectorSearch
const results = element('div', 'inspector-results');
results.hidden = true;
+ const note = element('p', 'inspector-results-note');
+ note.id = 'inspector-results-note';
+ label(note, 'Each result shows where to find it. Open that tab and section to use it.');
const list = element('div', 'inspector-results-list');
list.id = 'inspector-results-list';
- list.setAttribute('role', 'listbox');
+ list.setAttribute('role', 'list');
const empty = element('p', 'inspector-results-empty');
empty.setAttribute('role', 'status');
empty.hidden = true;
@@ -114,45 +118,61 @@ export function installInspectorSearch(options: SearchOptions): InspectorSearch
more.hidden = true;
label(more, 'Showing the first {0} results. Type more to narrow it down.', [MAX_ROWS]);
labelAttr(more, 'title', 'Showing the first {0} results. Type more to narrow it down.', [MAX_ROWS]);
- results.append(list, more, empty);
- input.setAttribute('aria-controls', list.id);
+ results.append(note, list, more, empty);
+ input.setAttribute('aria-describedby', note.id);
options.after.after(bar);
options.scroll.before(results);
- const entries = new Map();
let index: Entry[] = [];
let dirty = true;
let open = false;
let queued = false;
let savedTop = 0;
- let activeKey = '';
- let pulsing: HTMLElement | null = null;
- let pulseTimer = 0;
- let picks: Entry[] = [];
- let serial = 0;
function build(): Entry[] {
const found: Entry[] = [];
- entries.clear();
for (const tab of options.tabs) {
const tabName = clean(tab.button.textContent);
const sections = new Map();
tab.pane.querySelectorAll('.inspector-section').forEach(section => {
- if (!shown(section, tab.pane)) return;
+ if (found.length >= MAX_ENTRIES || !shown(section, tab.pane)) return;
const head = section.querySelector(':scope > .section-title');
const sectionName = clean(head?.firstElementChild?.textContent);
if (!head || !sectionName) return;
+ const where = `${tabName}${SEP}${sectionName}`;
const place = norm(`${sectionName} ${tabName}`);
const id = section.dataset.section || sectionId(sectionName);
const nth = sections.get(id) || 0;
sections.set(id, nth + 1);
const base = `${tab.id}|${id}|${nth}`;
- const add = (entry: Omit, prop: string): void => {
- const made: Entry = { ...entry, group: base, tab: tab.id, tabName, sectionName, words: { name: norm(entry.name), prop: norm(prop), place } };
- found.push(made);
- entries.set(made.key, made);
+ const add = (entry: Omit, prop: string, words = place): void => {
+ if (found.length < MAX_ENTRIES) found.push({ ...entry, group: base, words: { name: norm(entry.name), prop: norm(prop), place: words } });
};
- add({ key: `${base}|`, isSection: true, name: sectionName, css: '', target: head, off: false }, '');
+ const mine = (root: HTMLElement, selector: string, owner: HTMLElement | null): T[] =>
+ Array.from(root.querySelectorAll(selector)).filter(node => node.closest('.inspector-section') === section && node.closest(OWNER) === owner && shown(node, section));
+ const choices = (parent: string, field: string, off: boolean, groups: HTMLElement[], selects: HTMLSelectElement[]): void => {
+ const at = field ? `${where}${SEP}${field}` : where;
+ const words = norm(`${field} ${sectionName} ${tabName}`);
+ const seen = new Map();
+ const one = (name: string, value: string, disabled: boolean): void => {
+ if (!name) return;
+ const slug = `${parent}|c|${norm(value || name)}`;
+ const n = seen.get(slug) || 0;
+ seen.set(slug, n + 1);
+ add({ key: `${slug}|${n}`, kind: 'choice', parent, name, place: at, css: '', off: off || disabled }, value, words);
+ };
+ for (const group of groups) {
+ Array.from(group.querySelectorAll('.fw-seg-btn')).slice(0, MAX_CHOICES).forEach(button => {
+ if (shown(button, group)) one(clean(button.textContent || button.getAttribute('aria-label')), clean(button.dataset.value), button.disabled);
+ });
+ }
+ for (const select of selects) {
+ Array.from(select.options).slice(0, MAX_CHOICES).forEach(option => {
+ if (option.value && !option.hidden) one(clean(option.text), clean(option.value), select.disabled || option.disabled);
+ });
+ }
+ };
+ add({ key: `${base}|`, kind: 'section', parent: '', name: sectionName, place: where, css: '', off: false }, '');
const counts = new Map();
const done = new Map();
section.querySelectorAll(FIELDS).forEach(node => {
@@ -169,7 +189,14 @@ export function installInspectorSearch(options: SearchOptions): InspectorSearch
const seen = counts.get(slug) || 0;
counts.set(slug, seen + 1);
const control = controlOf(node) as (HTMLElement & { disabled?: boolean }) | null;
- add({ key: `${base}|${slug}|${seen}`, isSection: false, name, css, target: node, off: !!control?.disabled }, prop);
+ const key = `${base}|${slug}|${seen}`;
+ const off = !!control?.disabled;
+ add({ key, kind: 'field', parent: '', name, place: where, css, off }, prop);
+ if (node.tagName !== 'BUTTON') choices(key, name, off, mine(node, '.fw-seg', node), mine(node, 'select[data-style]', node));
+ });
+ mine(section, '.fw-seg', null).forEach((group, at) => {
+ const head = group.previousElementSibling;
+ choices(`${base}|set|${at}`, head?.matches('.field-label') ? clean(head.textContent) : '', false, [group], []);
});
});
}
@@ -178,62 +205,47 @@ export function installInspectorSearch(options: SearchOptions): InspectorSearch
function score(entry: Entry, tokens: string[]): number {
let total = 0;
+ let own = entry.kind !== 'choice';
for (const token of tokens) {
const best = rank(entry, token);
if (best < 0) return -1;
+ if (best < 5) own = true;
total += best;
}
- return total;
+ return own ? total : -1;
}
- function createRow(row: Row): HTMLElement {
- if (row.heading !== undefined) {
- const head = element('div', 'inspector-results-group');
- head.setAttribute('role', 'presentation');
- head.dataset.noI18n = '';
- return head;
- }
+ function createRow(): HTMLElement {
const node = element('div', 'inspector-result');
- node.setAttribute('role', 'option');
- node.id = `inspector-result-${++serial}`;
+ node.setAttribute('role', 'listitem');
+ const words = element('span', 'inspector-result-text');
+ words.dataset.noI18n = '';
const name = element('span', 'inspector-result-name');
- name.dataset.noI18n = '';
+ const dot = element('span', 'inspector-result-dot');
+ text(dot, ' · ');
+ const place = element('span', 'inspector-result-place');
+ words.append(name, dot, place);
const css = element('span', 'inspector-result-css');
css.dataset.noI18n = '';
const off = element('span', 'inspector-result-off');
label(off, 'Unavailable');
off.hidden = true;
- node.append(name, css, off);
- node.addEventListener('pointerdown', event => event.preventDefault());
- node.addEventListener('click', () => { const entry = entries.get(node.dataset.key || ''); if (entry) pick(entry); });
+ node.append(words, css, off);
return node;
}
function updateRow(node: HTMLElement, row: Row): void {
- if (row.heading !== undefined) { text(node, row.heading); return; }
- const entry = row.entry!;
- const [name, css, off] = Array.from(node.children) as HTMLElement[];
+ const entry = row.entry;
+ const [words, css, off] = Array.from(node.children) as HTMLElement[];
+ const [name, , place] = Array.from(words.children) as HTMLElement[];
text(name, entry.name);
+ text(place, entry.place);
text(css, entry.css);
if (off.hidden === entry.off) off.hidden = !entry.off;
- node.classList.toggle('is-off', entry.off);
- node.classList.toggle('is-section', entry.isSection);
- node.setAttribute('aria-label', `${entry.tabName}, ${entry.sectionName}${entry.isSection ? '' : `, ${entry.name}`}`);
- if (entry.off) labelAttr(node, 'title', 'Not available for the current selection'); else node.removeAttribute('title');
- }
-
- function mark(scrollTo: boolean): void {
- let current: HTMLElement | null = null;
- Array.from(list.children).forEach(child => {
- const node = child as HTMLElement;
- if (node.dataset.key === activeKey) current = node;
- const on = node.dataset.key === activeKey;
- if (node.classList.contains('is-active') !== on) node.classList.toggle('is-active', on);
- if (node.getAttribute('role') === 'option') node.setAttribute('aria-selected', String(on));
- });
- const node = current as HTMLElement | null;
- if (node) input.setAttribute('aria-activedescendant', node.id); else input.removeAttribute('aria-activedescendant');
- if (node && scrollTo) node.scrollIntoView({ block: 'nearest' });
+ if (node.classList.contains('is-off') !== entry.off) node.classList.toggle('is-off', entry.off);
+ if (node.classList.contains('is-section') !== (entry.kind === 'section')) node.classList.toggle('is-section', entry.kind === 'section');
+ if (node.classList.contains('is-choice') !== (entry.kind === 'choice')) node.classList.toggle('is-choice', entry.kind === 'choice');
+ if (entry.off) labelAttr(node, 'title', 'Not available for the current selection'); else if (node.hasAttribute('title')) node.removeAttribute('title');
}
function refresh(): void {
@@ -245,67 +257,35 @@ export function installInspectorSearch(options: SearchOptions): InspectorSearch
if (options.scroll.hidden !== on) options.scroll.hidden = on;
if (!on && open) options.scroll.scrollTop = savedTop;
open = on;
- input.setAttribute('aria-expanded', String(on));
- if (!on) { picks = []; return; }
+ if (!on) return;
if (dirty) { index = build(); dirty = false; }
- const scored = index.map((entry, order) => ({ entry, order, value: score(entry, tokens) })).filter(item => item.value >= 0);
- const groups = new Map();
+ const scored: Row[] = [];
+ const values = new Map();
+ index.forEach((entry, order) => {
+ const value = score(entry, tokens);
+ if (value < 0) return;
+ scored.push({ key: entry.key, entry, value, order });
+ values.set(entry.key, value);
+ });
+ const groups = new Map();
for (const item of scored) {
+ const parent = values.get(item.entry.parent);
+ if (parent !== undefined && parent > item.value) item.value = parent;
const id = item.entry.group;
const group = groups.get(id);
if (group) { group.best = Math.min(group.best, item.value); group.items.push(item); }
else groups.set(id, { best: item.value, order: item.order, items: [item] });
}
const rows: Row[] = [];
- picks = [];
- Array.from(groups.entries()).sort((a, b) => a[1].best - b[1].best || a[1].order - b[1].order).forEach(([id, group]) => {
+ Array.from(groups.values()).sort((a, b) => a.best - b.best || a.order - b.order).forEach(group => {
if (rows.length >= MAX_ROWS) return;
- const first = group.items[0].entry;
- rows.push({ key: `g|${id}`, heading: `${first.tabName} > ${first.sectionName}` });
- group.items.sort((a, b) => a.value - b.value || a.order - b.order).forEach(item => {
- if (rows.length >= MAX_ROWS) return;
- rows.push({ key: item.entry.key, entry: item.entry });
- picks.push(item.entry);
- });
+ group.items.sort((a, b) => a.value - b.value || a.order - b.order);
+ rows.push(...group.items.slice(0, MAX_ROWS - rows.length));
});
keyed(list, rows, row => row.key, createRow, updateRow);
if (empty.hidden !== rows.length > 0) empty.hidden = rows.length > 0;
- const capped = groups.size + scored.length > MAX_ROWS;
+ const capped = scored.length > MAX_ROWS;
if (more.hidden === capped) more.hidden = !capped;
- if (!picks.some(entry => entry.key === activeKey)) activeKey = picks[0]?.key || '';
- mark(false);
- }
-
- function move(step: number): void {
- if (!picks.length) return;
- const at = picks.findIndex(entry => entry.key === activeKey);
- activeKey = picks[(at + step + picks.length) % picks.length].key;
- mark(true);
- }
-
- function pulse(target: HTMLElement): void {
- if (pulsing) pulsing.classList.remove('fw-search-hit');
- clearTimeout(pulseTimer);
- void target.offsetWidth;
- target.classList.add('fw-search-hit');
- pulsing = target;
- pulseTimer = window.setTimeout(() => { target.classList.remove('fw-search-hit'); if (pulsing === target) pulsing = null; }, PULSE_MS);
- }
-
- function pick(chosen: Entry): void {
- input.value = '';
- refresh();
- if (dirty) { index = build(); dirty = false; }
- const entry = entries.get(chosen.key);
- if (!entry || !entry.target.isConnected) return;
- options.select(entry.tab);
- for (let at = entry.target.closest('.inspector-section'); at; at = at.parentElement?.closest('.inspector-section') || null) {
- if (at.classList.contains('is-collapsed')) at.querySelector(':scope > .section-title')?.click();
- }
- entry.target.scrollIntoView({ block: entry.isSection ? 'start' : 'center' });
- const control = entry.isSection ? entry.target : controlOf(entry.target);
- if (control && !(control as HTMLButtonElement).disabled) control.focus({ preventScroll: true });
- pulse(entry.isSection ? entry.target.parentElement || entry.target : entry.target);
}
function clear(): void {
@@ -313,19 +293,17 @@ export function installInspectorSearch(options: SearchOptions): InspectorSearch
refresh();
}
- input.addEventListener('input', () => { activeKey = ''; refresh(); });
+ input.addEventListener('input', refresh);
input.addEventListener('keydown', event => {
- if (event.isComposing) return;
- if (event.key === 'ArrowDown') { event.preventDefault(); move(1); }
- else if (event.key === 'ArrowUp') { event.preventDefault(); move(-1); }
- else if (event.key === 'Enter') {
- const entry = picks.find(item => item.key === activeKey);
- if (entry) { event.preventDefault(); pick(entry); }
- } else if (event.key === 'Escape') {
- event.preventDefault();
- event.stopPropagation();
- if (input.value) clear(); else input.blur();
- }
+ if (event.isComposing || event.key !== 'Escape') return;
+ event.preventDefault();
+ event.stopPropagation();
+ if (input.value) { clear(); return; }
+ const tab = options.tabs.find(item => !item.pane.hidden && item.button.getClientRects().length);
+ if (tab) tab.button.focus({ preventScroll: true }); else input.blur();
+ });
+ results.addEventListener('mousedown', event => {
+ if (event.target !== results || (event.offsetX < results.clientWidth && event.offsetY < results.clientHeight)) event.preventDefault();
});
clearButton.addEventListener('click', () => { clear(); input.focus(); });
diff --git a/frontend/src/features/library/bring.ts b/frontend/src/features/library/bring.ts
index 96e56bad..3bf69ac6 100644
--- a/frontend/src/features/library/bring.ts
+++ b/frontend/src/features/library/bring.ts
@@ -1,7 +1,10 @@
-import { element } from '../../ui/dom';
+import { element, text as write } from '../../ui/dom';
import { label, labelAttr } from '../../i18n';
export type Bring = 'elements' | 'code';
+/** One sentence per choice, shown under the choice for the one picked; both hold their place so a pick moves nothing. */
+export type BringWhy = Record;
+let made = 0;
const CHOICES: [Bring, string, string][] = [
['elements', 'Editable elements (recommended for editing)', 'Each heading, paragraph, picture and box becomes an element you can click, retype, restyle and drag. The look is measured at desktop width; responsive rules are not carried over, and scripts and frames stay as small code sections.'],
@@ -9,12 +12,18 @@ const CHOICES: [Bring, string, string][] = [
];
/** The "Bring pages in as" choice shared by Import HTML and Import site from zip; mounted once, painted by state. */
-export function bringChoice(heading: string): { element: HTMLElement; value(): Bring; disable(on: boolean): void; heading(english: string): void } {
+export function bringChoice(heading: string): { element: HTMLElement; value(): Bring; disable(on: boolean): void; heading(english: string): void; choose(value: Bring): void; explain(why: BringWhy | null): void } {
const box = element('div', 'fw-lib-bring');
const head = element('h3', 'fw-lib-subhead');
label(head, heading);
const group = element('div', 'fw-lib-bring-list');
group.setAttribute('role', 'radiogroup');
+ const why = element('div', 'fw-lib-bring-why');
+ why.hidden = true;
+ why.dataset.noI18n = '';
+ const lines = { elements: element('p', 'fw-lib-row-meta'), code: element('p', 'fw-lib-row-meta') } as Record;
+ made += 1;
+ for (const [id, line] of Object.entries(lines)) { line.id = `fw-bring-why-${made}-${id}`; why.append(line); }
let chosen: Bring = 'elements';
const buttons = CHOICES.map(([id, title, note]) => {
const button = element('button', 'fw-lib-bring-option');
@@ -36,13 +45,26 @@ export function bringChoice(heading: string): { element: HTMLElement; value(): B
button.classList.toggle('is-on', on);
button.setAttribute('aria-checked', String(on));
}
+ for (const [id, line] of Object.entries(lines)) {
+ line.classList.toggle('is-on', id === chosen);
+ line.setAttribute('aria-hidden', String(id !== chosen));
+ }
+ if (why.hidden) group.removeAttribute('aria-describedby');
+ else group.setAttribute('aria-describedby', lines[chosen].id);
};
labelAttr(group, 'aria-label', heading);
paint();
- box.append(head, group);
+ box.append(head, group, why);
let named = heading;
return {
element: box, value: () => chosen, disable: on => buttons.forEach(button => { button.disabled = on; }),
+ choose: value => { chosen = value; paint(); },
+ explain: given => {
+ for (const [id, line] of Object.entries(lines)) write(line, given?.[id as Bring] || '');
+ if (why.hidden === !given) return;
+ why.hidden = !given;
+ paint();
+ },
heading: english => {
if (english === named) return;
named = english;
diff --git a/frontend/src/features/library/importer.ts b/frontend/src/features/library/importer.ts
index e2a1235e..ff99f46f 100644
--- a/frontend/src/features/library/importer.ts
+++ b/frontend/src/features/library/importer.ts
@@ -5,6 +5,23 @@ import { labelAttr, t } from '../../i18n';
import type { LibResult, LibraryHooks } from './types';
import { bringChoice, type Bring } from './bring';
+/** Words joined as a list: "a", "a and b", "a, b and c". */
+export function joined(items: string[]): string {
+ if (items.length < 2) return items[0] || '';
+ return t('{0} and {1}', [items.slice(0, -1).reduce((list, item) => t('{0}, {1}', [list, item])), items[items.length - 1]]);
+}
+
+/** Host names for a sentence: at most three, then how many more. */
+export function hostList(hosts: string[]): string {
+ if (hosts.length <= 3) return joined(hosts);
+ const rest = hosts.length - 3;
+ const first = hosts.slice(0, 3).reduce((list, host) => t('{0}, {1}', [list, host]));
+ return rest === 1 ? t('{0} and 1 more host', [first]) : t('{0} and {1} more hosts', [first, rest]);
+}
+
+/** The result sentence for pages brought in as elements without the files they load from the web. */
+export const missingHosts = (hosts: string[]): string => hosts.length ? t('Files from {0} were not brought along, so part of the look or behaviour may be missing.', [hostList(hosts)]) : '';
+
/** One page into the open page as a code section, converted to elements when asked; answers with the sentence to show. */
export async function importSection(hooks: LibraryHooks, body: { html: string; css?: string; name?: string }, bring: Bring, progress: (message: string) => void, made?: (ids: string[]) => void): Promise {
const where = hooks.placement();
@@ -12,9 +29,10 @@ export async function importSection(hooks: LibraryHooks, body: { html: string; c
let message = result.warnings?.[0] || t('HTML section imported.');
let note = t('HTML section imported.');
let root = result.root;
+ const hosts = [...new Set((result.outside || []).map(item => item.host))];
if (result.root && bring === 'elements') {
progress(t('Converting...'));
- try { const done = await hooks.convert([result.root]); root = done.root || root; message = note = done.message + ' ' + t('Undo once to get the section back as code, twice to remove it.'); }
+ try { const done = await hooks.convert([result.root]); root = done.root || root; message = note = [done.message, missingHosts(hosts), t('Undo once to get the section back as code, twice to remove it.')].filter(Boolean).join(' '); }
catch (error) { message = note = t('HTML section imported.') + ' ' + t('The pages stayed code sections: {0}', [error instanceof Error ? error.message : String(error)]); }
}
if (root) hooks.select(root);
diff --git a/frontend/src/features/library/site-import.ts b/frontend/src/features/library/site-import.ts
index 2535cbde..bd7ba260 100644
--- a/frontend/src/features/library/site-import.ts
+++ b/frontend/src/features/library/site-import.ts
@@ -1,11 +1,12 @@
import { libraryMutate, request } from '../../api';
import { element, keyed, text } from '../../ui/dom';
import { icon } from '../../ui/icons';
-import { label, t } from '../../i18n';
-import type { LibraryHooks, SitePage, SiteResult, SiteReview, SiteSkip } from './types';
-import { bringChoice } from './bring';
-import { importSection } from './importer';
+import { label, onLanguage, t } from '../../i18n';
+import type { LibraryHooks, OutsideFetched, OutsideFile, SitePage, SiteResult, SiteReview, SiteSkip } from './types';
+import { bringChoice, type BringWhy } from './bring';
+import { hostList, importSection, joined, missingHosts } from './importer';
import { state, subscribe } from '../../api';
+import { convertSections } from '../convert';
type Mode = 'new' | 'replace';
type Use = 'pages' | 'section';
@@ -15,6 +16,28 @@ const size = (bytes: number): string => bytes >= 1048576 ? `${(bytes / 1048576).
const HTML_ACCEPT = '.html,.htm,text/html';
const isHtml = (file: File): boolean => /\.html?$/i.test(file.name);
const isZip = (file: File): boolean => /\.zip$/i.test(file.name);
+const loadsOutside = (page: SitePage): boolean => !!page.outside?.length;
+/** The hosts the given pages load files from, each once, in the order they first appear. */
+const hostsOf = (pages: SitePage[]): string[] => [...new Set(pages.flatMap(page => (page.outside || []).map(item => item.host)))];
+/** "1 stylesheet from a and 2 scripts from b": the page's outside files grouped by host and kind, four groups at most. */
+function outsideSentence(page: SitePage): string {
+ const groups = new Map();
+ for (const item of page.outside || []) {
+ const key = `${item.kind} ${item.host}`;
+ const group = groups.get(key);
+ if (group) group.count += 1;
+ else groups.set(key, { kind: item.kind, host: item.host, count: 1 });
+ }
+ if (!groups.size) return '';
+ const all = [...groups.values()];
+ const pieces = all.slice(0, 4).map(({ kind, host, count }) => kind === 'stylesheet'
+ ? count === 1 ? t('1 stylesheet from {0}', [host]) : t('{0} stylesheets from {1}', [count, host])
+ : count === 1 ? t('1 script from {0}', [host]) : t('{0} scripts from {1}', [count, host]));
+ const rest = all.slice(4).reduce((sum, group) => sum + group.count, 0) + (page.outsideMore || 0);
+ if (rest) pieces.push(rest === 1 ? t('1 more file') : t('{0} more files', [rest]));
+ return t('This page loads files from the web: {0}. Only the ticked files are brought along.', [joined(pieces)]);
+}
+const KIND_WORD: Record string> = { stylesheet: () => t('Stylesheet'), script: () => t('Script'), font: () => t('Font file') };
/** Decodes a picked page exactly as the service decodes one inside a zip: UTF-8 (a byte order mark dropped), else Windows-1252 with its five unassigned bytes as U+FFFD. */
function decode(bytes: ArrayBuffer): string {
try { return new TextDecoder('utf-8', { fatal: true }).decode(bytes); }
@@ -68,17 +91,22 @@ export class SiteImport {
private mode: Mode = 'new';
private busy = false;
private done = false;
+ private token: string | null = null;
+ private outside = new Map();
+ private round = 0;
+ private line: Promise = Promise.resolve();
constructor(private hooks: LibraryHooks, back: () => void, private show: () => void) {
const scroller = this.scroller;
const backButton = element('button', 'fw-lib-choose fw-lib-site-back');
backButton.type = 'button';
backButton.append(icon('chevronLeft'), element('span', '', t('Import HTML')));
- backButton.addEventListener('click', back);
+ backButton.addEventListener('click', () => { if (!this.busy) this.forget(); back(); });
text(this.helpHtml, t('Each file becomes a new page at the address shown in the review, or a single file goes into the open page as a section.'));
text(this.helpZip, t('Brings a static site made elsewhere into this site: every HTML file in the zip becomes a page, with its stylesheets, pictures and WOFF2 fonts. After the review you choose whether the pages arrive as editable elements or as code sections. Links between the pages follow their new addresses, and outside links stay as they are.'));
this.help.append(this.helpHtml, this.helpZip);
subscribe(next => { if (this.finished && this.made.length && !this.made.some(id => next.site.nodes[id] || next.site.pages.some(page => page.id === id))) this.reset(); });
+ onLanguage(() => this.paint());
this.file.type = 'file';
this.file.multiple = true;
this.file.hidden = true;
@@ -123,6 +151,8 @@ export class SiteImport {
this.reviewTail.append(this.skippedHead, this.skipped);
scroller.append(backButton, this.title, this.help, this.pick, this.file, this.chosen, this.uses, this.useNote, this.review, this.section, this.bring.element, this.reviewTail, this.note);
this.note.setAttribute('role', 'status');
+ this.note.tabIndex = -1;
+ this.note.dataset.ownKeys = '';
this.go.type = 'button';
this.go.disabled = true;
this.go.append(icon('upload'), this.goLabel);
@@ -148,6 +178,7 @@ export class SiteImport {
/** Back to the clean waiting state: no files, review, note or finished button, scrolled to the top. */
reset(): void {
if (this.busy) return;
+ this.forget();
this.made = [];
this.picked = [];
this.current = null;
@@ -190,6 +221,7 @@ export class SiteImport {
if (this.busy) return;
const zips = files.filter(isZip);
const pages = files.filter(isHtml);
+ this.forget();
this.picked = files;
this.current = null;
this.loose = null;
@@ -197,6 +229,7 @@ export class SiteImport {
this.mode = 'new';
this.use = 'pages';
this.done = false;
+ this.bring.choose('elements');
this.say('', false);
this.show();
if (zips.length + pages.length !== files.length || (zips.length && files.length > 1)) {
@@ -217,6 +250,8 @@ export class SiteImport {
if (zips.length) this.current = zips[0];
else this.loose = await Promise.all(pages.map(async file => ({ name: file.name, html: decode(await file.arrayBuffer()) })));
this.plan = await request('/api/library/import-site/review', this.body());
+ for (const item of this.plan.pages.flatMap(page => (page.outside || []).slice(0, 60))) if (!this.outside.has(item.url) && this.outside.size < 400) this.outside.set(item.url, { kind: item.kind, host: item.host, url: item.url, want: false, status: 'idle', bytes: 0, error: '', fonts: [], parent: '' });
+ this.bring.choose(this.plan.pages.some(loadsOutside) ? 'code' : 'elements');
const empty = !this.plan.pages.length;
if (empty) this.loose = null;
this.say(empty ? (zips.length ? t('The archive has no HTML page that can be imported.') : t('None of the files is an HTML page that can be imported.')) : '', empty);
@@ -269,6 +304,7 @@ export class SiteImport {
if (this.reviewTail.hidden === showReview) this.reviewTail.hidden = !showReview;
const showBring = showReview || section;
this.bring.heading(section ? 'Bring it in as' : 'Bring pages in as');
+ this.bring.explain(this.why(section));
if (this.bring.element.hidden === showBring) this.bring.element.hidden = !showBring;
const count = plan?.pages.length ?? 0;
if (section) {
@@ -300,30 +336,196 @@ export class SiteImport {
if (this.skippedHead.hidden === !!plan.skipped.length) this.skippedHead.hidden = !plan.skipped.length;
}
+ /** Why the choice started on code sections, and what elements would miss; null when no page loads files from the web. */
+ private why(section: boolean): BringWhy | null {
+ const pages = this.plan?.pages || [];
+ const loading = pages.filter(loadsOutside);
+ if (!loading.length) return null;
+ const hosts = hostList(hostsOf(loading));
+ const listed = loading.flatMap(page => page.outside || []);
+ if (listed.some(item => this.outside.get(item.url)?.want)) {
+ const short = [...new Set(listed.filter(item => this.outside.get(item.url)?.status !== 'ready').map(item => item.host))];
+ if (!short.length && !loading.some(page => page.outsideMore)) {
+ const kept = t('Every file the pages load from the web is ticked and downloaded, so the pages keep their look either way.');
+ return { code: kept, elements: kept };
+ }
+ const names = short.length ? hostList(short) : hosts;
+ return {
+ code: t('Kept as code, so the pages keep their own scripts and style rules. Files from {0} are not ticked or not downloaded, so they will be missing either way.', [names]),
+ elements: t('As elements, the pages arrive without the files from {0} that are not ticked or not downloaded, so part of their look or behaviour may be missing.', [names])
+ };
+ }
+ if (section || pages.length === 1) return {
+ code: t('Kept as code, so the page keeps its own scripts and style rules, responsive ones included. The files it loads from the web are not brought along either way.'),
+ elements: t('As elements, the page arrives without the files it loads from {0}, so part of its look or behaviour may be missing.', [hosts])
+ };
+ if (loading.length === 1) return {
+ code: t('Kept as code, because 1 of {0} pages loads files from the web. As code the pages keep their own scripts and style rules, responsive ones included; those files are not brought along either way.', [pages.length]),
+ elements: t('As elements, 1 of {0} pages arrives without the files it loads from {1}, so part of its look or behaviour may be missing.', [pages.length, hosts])
+ };
+ return {
+ code: t('Kept as code, because {0} of {1} pages load files from the web. As code the pages keep their own scripts and style rules, responsive ones included; those files are not brought along either way.', [loading.length, pages.length]),
+ elements: t('As elements, {0} of {1} pages arrive without the files they load from {2}, so part of their look or behaviour may be missing.', [loading.length, pages.length, hosts])
+ };
+ }
+
private row(): HTMLElement {
const node = element('div', 'fw-lib-site-item');
- node.append(element('span', 'fw-lib-row-name'), element('span', 'fw-lib-site-route'), element('span', 'fw-lib-row-meta'));
+ const outside = element('span', 'fw-lib-row-meta fw-lib-site-outside');
+ outside.dataset.noI18n = '';
+ const files = element('div', 'fw-lib-out');
+ files.hidden = true;
+ files.append(element('p', 'fw-lib-row-meta fw-lib-out-help', t('A tick has FormWeb on this computer download that file from its host now, and the file becomes part of the site. Nothing is downloaded without a tick.')), element('div', 'fw-lib-out-list'));
+ node.append(element('span', 'fw-lib-row-name'), element('span', 'fw-lib-site-route'), outside, element('span', 'fw-lib-row-meta'), files);
+ return node;
+ }
+
+ /** One outside file: a checkbox with its kind, host and size; mounted once, painted by state, never rebuilt. */
+ private fileRow(url: string): HTMLElement {
+ const node = element('label', 'fw-lib-out-row');
+ const box = element('input');
+ box.type = 'checkbox';
+ box.dataset.ownKeys = '';
+ box.addEventListener('change', () => this.tick(url, box.checked));
+ const size = element('span', 'fw-lib-out-size');
+ size.setAttribute('aria-live', 'polite');
+ const said = element('span', 'fw-lib-out-said');
+ said.setAttribute('role', 'status');
+ node.append(box, element('span', 'fw-lib-out-kind'), element('span', 'fw-lib-out-host'), size, said);
return node;
}
+ private fillFile(node: HTMLElement, file: OutsideFile): void {
+ const [box, kind, host, weight, said] = Array.from(node.children) as HTMLElement[];
+ const check = box as HTMLInputElement;
+ if (check.checked !== file.want) check.checked = file.want;
+ if (check.disabled !== (this.busy || this.done)) check.disabled = this.busy || this.done;
+ node.classList.toggle('is-font', !!file.parent);
+ node.classList.toggle('is-error', file.status === 'error');
+ text(kind, KIND_WORD[file.kind]());
+ text(host, file.host);
+ host.title = file.url.slice(0, 2048);
+ text(weight, file.status === 'loading' ? t('Downloading') : file.status === 'ready' ? size(file.bytes) : '');
+ text(said, file.status === 'error' ? file.error : '');
+ said.title = file.status === 'error' ? file.error : '';
+ }
+
+ /** The page's outside files in its order, each stylesheet followed by the font files it names. */
+ private filesOf(page: SitePage): OutsideFile[] {
+ const rows: OutsideFile[] = [];
+ for (const item of page.outside || []) {
+ const file = this.outside.get(item.url);
+ if (!file || rows.includes(file)) continue;
+ rows.push(file);
+ for (const font of file.fonts) { const entry = this.outside.get(font); if (entry && !rows.includes(entry)) rows.push(entry); }
+ }
+ return rows;
+ }
+
private fillPage(node: HTMLElement, page: SitePage): void {
- const [name, route, meta] = Array.from(node.children) as HTMLElement[];
+ const [name, route, outside, meta, files] = Array.from(node.children) as HTMLElement[];
+ const web = outsideSentence(page);
+ text(outside, web);
+ if (outside.hidden === !web) outside.hidden = !web;
+ const rows = this.filesOf(page);
+ const list = files.lastElementChild as HTMLElement;
+ const keep = new Set(rows.map(file => file.url));
+ for (const child of Array.from(list.children) as HTMLElement[]) if (!keep.has(child.dataset.key || '')) child.remove();
+ keyed(list, rows, file => file.url, file => this.fileRow(file.url), (row, file) => this.fillFile(row, file));
+ if (files.hidden === !!rows.length) files.hidden = !rows.length;
text(name, page.name);
const replacing = this.mode === 'replace' && page.replaces;
text(route, `${page.file} → ${replacing ? page.route : page.newRoute}`);
- const notes = [replacing ? t('Replaces the content of {0}.', [page.replaces!.name]) : page.newRoute !== page.route ? t('{0} is taken, so it gets {1}.', [page.route, page.newRoute]) : '', ...page.warnings.map(item => t(item))].filter(Boolean);
+ const notes = [replacing ? t('Replaces the content of {0}.', [page.replaces!.name]) : page.newRoute !== page.route ? t('{0} is taken, so it gets {1}.', [page.route, page.newRoute]) : '', ...page.warnings.filter((_, index) => !page.outsideWarnings?.includes(index)).map(item => t(item))].filter(Boolean);
text(meta, notes.join(' '));
meta.hidden = !notes.length;
}
private fillSkip(node: HTMLElement, item: SiteSkip): void {
- const [name, route, meta] = Array.from(node.children) as HTMLElement[];
+ const [name, route, outside, meta, files] = Array.from(node.children) as HTMLElement[];
text(name, item.file);
if (!route.hidden) route.hidden = true;
+ if (!outside.hidden) outside.hidden = true;
+ if (!files.hidden) files.hidden = true;
text(meta, t(item.reason));
if (meta.hidden) meta.hidden = false;
}
+ /** A tick asks the service for that one file; an untick forgets it there, with the font rows only it named. */
+ private tick(url: string, on: boolean): void {
+ const file = this.outside.get(url);
+ if (!file || this.busy || this.done) return;
+ if (this.note.classList.contains('is-error')) this.say('', false);
+ file.want = on;
+ if (on && (file.status === 'idle' || file.status === 'error')) {
+ file.status = 'loading';
+ file.error = '';
+ this.fetchFile(url, this.round);
+ } else if (!on && file.status !== 'loading') {
+ const token = this.token;
+ if (file.status === 'ready') this.enqueue(() => this.dropFile(token, url));
+ this.clearFile(file);
+ }
+ this.paint();
+ }
+
+ private clearFile(file: OutsideFile): void {
+ for (const font of file.fonts) this.outside.delete(font);
+ file.fonts = [];
+ file.status = 'idle';
+ file.bytes = 0;
+ file.error = '';
+ }
+
+ /** Downloads and drops run one after another, so the first answer's token is the one every later call sends. */
+ private enqueue(work: () => Promise): void {
+ this.line = this.line.then(work).catch(() => undefined);
+ }
+
+ private dropFile(token: string | null, url: string | null): Promise {
+ return token ? request('/api/library/outside/drop', { token, url }).catch(() => undefined) : Promise.resolve();
+ }
+
+ private fetchFile(url: string, round: number): void {
+ this.enqueue(async () => {
+ const file = this.outside.get(url);
+ if (round !== this.round || !file) return;
+ if (!file.want) { this.clearFile(file); this.paint(); return; }
+ try {
+ const answer = await request('/api/library/outside/fetch', { url, kind: file.kind, token: this.token });
+ if (round !== this.round) { void this.dropFile(answer.token, answer.token === this.token ? url : null); return; }
+ this.token = answer.token;
+ if (!file.want) { await this.dropFile(this.token, url); this.clearFile(file); return; }
+ file.status = 'ready';
+ file.bytes = answer.bytes;
+ file.fonts = [];
+ for (const font of (answer.fonts || []).slice(0, 20)) {
+ if (typeof font?.url !== 'string' || font.url.length > 2048 || this.outside.has(font.url)) continue;
+ this.outside.set(font.url, { kind: 'font', host: String(font.host || '').slice(0, 253), url: font.url, want: false, status: 'idle', bytes: 0, error: '', fonts: [], parent: url });
+ file.fonts.push(font.url);
+ }
+ } catch (error) {
+ if (round !== this.round) return;
+ this.clearFile(file);
+ file.want = false;
+ file.status = 'error';
+ file.error = (error instanceof Error ? error.message : String(error)).slice(0, 400);
+ this.say(file.error, true);
+ } finally {
+ if (round === this.round) this.paint();
+ }
+ });
+ }
+
+ /** Forgets every download of this review on the service; a download still out is dropped when it lands. */
+ private forget(keepRows = false): void {
+ if (this.token) void this.dropFile(this.token, null);
+ this.token = null;
+ this.round += 1;
+ this.line = Promise.resolve();
+ if (!keepRows) this.outside.clear();
+ }
+
private async placeSection(): Promise {
const page = this.loose?.[0];
if (this.busy || !page) return;
@@ -345,12 +547,24 @@ export class SiteImport {
if (this.use === 'section') return this.placeSection();
const plan = this.plan;
if (this.busy || !plan || (!this.current && !this.loose)) return;
+ if (this.element.contains(document.activeElement)) this.note.focus({ preventScroll: true });
this.working = t('Importing...');
this.setBusy(true);
try {
- const query = `?mode=${this.mode}&revision=${encodeURIComponent(String(plan.revision))}`;
+ if ([...this.outside.values()].some(file => file.status === 'loading')) {
+ this.progress(t('Waiting for the downloads...'));
+ while ([...this.outside.values()].some(file => file.status === 'loading')) await this.line;
+ this.progress(t('Importing...'));
+ }
+ const token = [...this.outside.values()].some(file => file.want && file.status === 'ready') ? this.token : null;
+ const query = `?mode=${this.mode}&revision=${encodeURIComponent(String(plan.revision))}${token ? `&outside=${encodeURIComponent(token)}` : ''}`;
const result = await libraryMutate('/api/library/import-site' + query, this.body());
+ this.forget(true);
let message = result.message || t('Site imported.');
+ const came = (result.outside?.files || []).slice(0, 1000);
+ const fonts = Number(result.outside?.fonts) || 0;
+ if (token) message += ' ' + (!came.length ? t('No file from the web came along: the downloads are no longer kept. Tick the files again in a new review to bring them.')
+ : [came.length === 1 ? t('1 file from the web came along.') : t('{0} files from the web came along.', [came.length]), fonts === 1 ? t('1 font from the web is now part of this site.') : fonts ? t('{0} fonts from the web are now part of this site.', [fonts]) : ''].filter(Boolean).join(' '));
this.done = true;
this.made = result.pages || [];
this.current = null;
@@ -358,8 +572,16 @@ export class SiteImport {
if (this.bring.value() === 'elements' && result.pages?.length) {
this.progress(t('Converting...'));
const site = state().site;
- const hosts = result.pages.flatMap(id => site.nodes[site.pages.find(page => page.id === id)?.root || '']?.children || []);
- try { message += ' ' + (await this.hooks.convert(hosts)).message + ' ' + t('Undo once to get the pages back as code, twice to remove them.'); }
+ const used = new Set((result.outside?.pages || []).slice(0, 1000));
+ const ran = result.pages.length === plan.pages.length ? result.pages.filter((_, index) => used.has(plan.pages[index].file)) : [];
+ const sections = (ids: string[]): string[] => ids.flatMap(id => site.nodes[site.pages.find(page => page.id === id)?.root || '']?.children || []);
+ const brought = new Set(came.map(file => file.url));
+ const missing = hostsOf(plan.pages.map(page => ({ ...page, outside: (page.outside || []).filter(item => !brought.has(item.url)) })));
+ try {
+ const plain = sections(result.pages.filter(id => !ran.includes(id)));
+ const done = [plain.length ? (await this.hooks.convert(plain)).message : '', ran.length ? (await convertSections(sections(ran), true, undefined, true)).message : ''];
+ message += ' ' + [...done, missingHosts(missing), plain.length && ran.length ? t('Undo twice to get the pages back as code, three times to remove them.') : t('Undo once to get the pages back as code, twice to remove them.')].filter(Boolean).join(' ');
+ }
catch (error) { message += ' ' + t('The pages stayed code sections: {0}', [error instanceof Error ? error.message : String(error)]); }
}
this.say(message, false);
diff --git a/frontend/src/features/library/types.ts b/frontend/src/features/library/types.ts
index c612b354..01a60815 100644
--- a/frontend/src/features/library/types.ts
+++ b/frontend/src/features/library/types.ts
@@ -19,13 +19,19 @@ export type LibPreset = { id: string; name?: string; description?: string };
export type LibStarter = { id: string; name?: string; description?: string; preset?: string; pages?: { name?: string; slug?: string; sections?: string[] }[] };
export type LibIndex = { categories: string[]; sections: LibSection[]; components: LibComponent[]; presets: LibPreset[]; starters: LibStarter[] };
/** What a mutating library route adds to the batch state. */
-export type LibResult = { root?: string; pages?: string[]; warnings?: string[]; changed?: boolean };
+export type LibResult = { root?: string; pages?: string[]; warnings?: string[]; changed?: boolean; outside?: SiteOutside[]; outsideMore?: number };
/** POST /api/library/import-site/review: what importing a site zip would do, nothing changed yet. */
export type SiteSkip = { file: string; reason: string };
-export type SitePage = { file: string; name: string; title: string; description: string; route: string; newRoute: string; replaces: { id: string; name: string; safe: boolean } | null; bytes: number; warnings: string[] };
+/** A stylesheet or script a page loads from another host: named in the review, never fetched. */
+export type SiteOutside = { kind: 'stylesheet' | 'script' | 'font'; host: string; url: string };
+/** POST /api/library/outside/fetch: one file the service downloaded for this review, kept under the token, never sent back. */
+export type OutsideFetched = { token: string; url: string; kind: SiteOutside['kind']; host: string; bytes: number; type: string; fonts: { url: string; host: string }[]; fontsMore: number };
+/** One outside file as the review holds it: whether the person wants it and where its download stands. */
+export type OutsideFile = SiteOutside & { want: boolean; status: 'idle' | 'loading' | 'ready' | 'error'; bytes: number; error: string; fonts: string[]; parent: string };
+export type SitePage = { file: string; name: string; title: string; description: string; route: string; newRoute: string; replaces: { id: string; name: string; safe: boolean } | null; bytes: number; warnings: string[]; outside?: SiteOutside[]; outsideMore?: number; outsideWarnings?: number[] };
export type SiteReview = { pages: SitePage[]; assets: { count: number; bytes: number }; supportFiles: number; skipped: SiteSkip[]; ignored: number; canReplace: boolean; replaceNote: string; notes: string[]; revision: number };
/** POST /api/library/import-site: the batch state plus the pages made, assets stored and files skipped. */
-export type SiteResult = { pages?: string[]; assets?: number; skipped?: SiteSkip[]; warnings?: string[]; message?: string };
+export type SiteResult = { pages?: string[]; assets?: number; skipped?: SiteSkip[]; warnings?: string[]; message?: string; outside?: { files?: { kind: string; host: string; url: string; bytes: number }[]; fonts?: number; pages?: string[] } };
export type LibraryHooks = {
/** Where an insert goes: the page, its parent, and the index after the selected top-level section (none means the end). */
diff --git a/frontend/src/features/studio.ts b/frontend/src/features/studio.ts
index 9b7bf87e..741eaf0f 100644
--- a/frontend/src/features/studio.ts
+++ b/frontend/src/features/studio.ts
@@ -2,6 +2,7 @@ import { accept, command, download, request, state, subscribe } from '../api';
import type { EditorState } from '../types';
import { element, keyed, labelPieces, options, text } from '../ui/dom';
import { icon } from '../ui/icons';
+import { deliverFile } from '../ui/downloads';
import { label, t } from '../i18n';
import { authoringActions } from './authoring';
import { serviceActions } from './services';
@@ -216,8 +217,8 @@ export class FeatureStudio {
else {
const path = typeof view.spec.path === 'function' ? view.spec.path(params) : view.spec.path!;
if (view.spec.download) {
- await download(path, view.spec.download);
- response = { downloaded: view.spec.download };
+ const file = view.spec.download;
+ response = { downloaded: await deliverFile(file, started => download(path, file, started)) ? file : null };
} else {
const body = { ...params };
if (typeof view.spec.path === 'function') { delete body.id; delete body.source; delete body.email; }
diff --git a/frontend/src/features/try/choice-list.ts b/frontend/src/features/try/choice-list.ts
index a8daaef9..4e4bb29f 100644
--- a/frontend/src/features/try/choice-list.ts
+++ b/frontend/src/features/try/choice-list.ts
@@ -57,6 +57,7 @@ export function installChoiceLists(kit: TryKit, options: TryOptions): void {
const bar = (): HTMLElement | null => document.querySelector('[data-try-bar]');
const inBar = (node: Node | null): boolean => !!node && !!bar()?.contains(node);
const live = (): boolean => !!trial && !trial.over;
+ const inMenus = (node: Node | null): boolean => node instanceof Element && !!node.closest('.fw-menubar, .fw-menu');
function aria(select: HTMLSelectElement): void {
if (kit.enabled()) {
@@ -286,13 +287,13 @@ export function installChoiceLists(kit: TryKit, options: TryOptions): void {
function outside(event: Event): void {
const target = event.target as Node;
- if (!field || pop.contains(target) || field.select.contains(target) || inBar(target)) return;
+ if (!field || pop.contains(target) || field.select.contains(target) || inBar(target) || (live() && inMenus(target))) return;
close();
}
function moved(event: FocusEvent): void {
const target = event.target as Node;
- if (!field || pop.contains(target) || target === field.select || inBar(target)) return;
+ if (!field || pop.contains(target) || target === field.select || inBar(target) || (live() && inMenus(target))) return;
if (live()) { if (!trial!.pending) trial!.revert(); return; }
hide();
}
diff --git a/frontend/src/features/try/index.ts b/frontend/src/features/try/index.ts
index 23d8d911..169c8598 100644
--- a/frontend/src/features/try/index.ts
+++ b/frontend/src/features/try/index.ts
@@ -5,13 +5,15 @@ import { installChoiceLists } from './choice-list';
import type { LayerFrame, Trial, TrialEnd, TrialOwner, TryKit, TryOptions } from './types';
const STORE = 'formweb.try-choices';
-const PASS = new Set(['edit.copy', 'file.save', 'view.search', 'view.try-choices']);
+const PASS = new Set(['edit.copy', 'file.save', 'view.search', 'view.try-choices', 'view.audit-markers', 'view.hover-outline']);
const SURFACE = '.fw-menubar, .fw-menu, .fw-search-pop, [data-cmd]';
const MENU = '.fw-menubar, .fw-menu, .fw-search-pop';
+const MENUS = '.fw-menubar, .fw-menu';
const LANDING_MS = 30000;
const AIMED_MS = 15000;
type Live = { trial: Trial; owner: TrialOwner; node: string; scope: string; base: string; value: string | null; pending: boolean; over: boolean; detached: boolean; end(how: TrialEnd, message?: string): void };
+type Parked = { entry: Live; back: HTMLElement };
function ended(owner: TrialOwner, how: TrialEnd): void {
try { owner.ended(how); } catch (error) { console.error(error); }
@@ -21,6 +23,11 @@ function within(target: EventTarget | null, selector: string): boolean {
return target instanceof Element && !!target.closest(selector);
}
+function inMenubar(target: EventTarget | null): boolean {
+ if (within(target, '.fw-menubar')) return true;
+ return within(target, '.fw-menu') && !!document.querySelector('.fw-menubar [aria-expanded="true"]');
+}
+
function readOn(): boolean {
try { return localStorage.getItem(STORE) !== '0'; } catch { return true; }
}
@@ -39,6 +46,7 @@ export function installTry(options: TryOptions): TryKit {
let liveScope = '';
let watching = 0;
let aimed = 0;
+ let parked: Parked | null = null;
let said = '';
let swallowing = false;
let repeat = false;
@@ -64,6 +72,17 @@ export function installTry(options: TryOptions): TryKit {
const hidden = (entry: Live): boolean => !entry.owner.anchor.isConnected || entry.owner.anchor.getClientRects().length === 0;
+ const owns = (entry: Live, target: EventTarget | null): boolean => target instanceof Node
+ && (bar.element.contains(target) || entry.owner.anchor.contains(target) || (entry.owner.inside?.() ?? []).some(part => part.contains(target)));
+
+ const unpark = (spot: Parked): void => {
+ const now = document.activeElement;
+ if (!document.hasFocus() || (now && now !== document.body && !(within(now, MENUS) && now.getClientRects().length === 0))) return;
+ if (parked === spot) parked = null;
+ const back = [spot.back, spot.entry.owner.anchor, ...(spot.entry.owner.inside?.() ?? [])].find(node => node.isConnected && node.getClientRects().length > 0 && !(node as HTMLButtonElement).disabled && !node.closest('[inert]'));
+ back?.focus({ preventScroll: true });
+ };
+
const check = (fromSync: boolean): void => {
const scope = options.scope();
const editing = options.editing();
@@ -85,6 +104,7 @@ export function installTry(options: TryOptions): TryKit {
watching = 0;
if (!current && !lives.size) return;
check(false);
+ if (parked && parked.entry === current && !current.pending) unpark(parked);
if (current || lives.size) watching = requestAnimationFrame(tick);
};
watching = requestAnimationFrame(tick);
@@ -208,7 +228,12 @@ export function installTry(options: TryOptions): TryKit {
if (!entry || entry.over || entry.pending) return;
const target = event.target as Node | null;
if (!target || target === document.body || within(target, '.fw-search-pop')) return;
- if (bar.element.contains(target) || entry.owner.anchor.contains(target) || (entry.owner.inside?.() ?? []).some(part => part.contains(target))) return;
+ if (owns(entry, target)) { parked = null; return; }
+ if (inMenubar(target)) {
+ if (parked?.entry !== entry) parked = { entry, back: owns(entry, event.relatedTarget) ? event.relatedTarget as HTMLElement : entry.owner.anchor };
+ return;
+ }
+ parked = null;
const shown = entry.value !== null;
entry.trial.revert();
aimed = shown && within(target, SURFACE) ? performance.now() : 0;
@@ -252,6 +277,7 @@ export function installTry(options: TryOptions): TryKit {
},
begin(owner: TrialOwner): Trial {
aimed = 0;
+ parked = null;
retire();
const entry = create(owner);
current = entry;
@@ -283,6 +309,8 @@ export function installTry(options: TryOptions): TryKit {
draw();
},
intercept(command: string): boolean {
+ const spot = parked;
+ if (spot && within(document.activeElement, MENUS)) setTimeout(() => unpark(spot));
if (PASS.has(command)) return false;
const undo = command === 'edit.undo';
const wasAimed = aimed && performance.now() - aimed < AIMED_MS;
diff --git a/frontend/src/i18n/keys.ts b/frontend/src/i18n/keys.ts
index ce0062e0..35b3f314 100644
--- a/frontend/src/i18n/keys.ts
+++ b/frontend/src/i18n/keys.ts
@@ -3028,4 +3028,77 @@ export const KEYS: readonly string[] = [
"Not kept: {0} is unchanged.",
"The element was changed elsewhere, so the trial was dropped.",
"The change was refused.",
+ "Show audit markers",
+ "Show audit markers on the page",
+ "Puts a small marker on each element of this page that has an issue. Markers show on the page when this dialog is closed. Click a marker to select the element.",
+ "1 issue has no element, so it has no marker.",
+ "{0} issues have no element, so they have no marker.",
+ "Markers are drawn on the first {0} of {1} elements with issues on this page.",
+ "1 issue on {0}",
+ "{0} issues on {1}",
+ "Issues on {0}",
+ "The audit could not be run, so the audit markers are hidden.",
+ "Audit markers are on: each element of this page with an issue shows a marker.",
+ "Audit markers are off.",
+ "Where exports are saved",
+ "The Downloads folder",
+ "A folder you choose",
+ "Choose folder...",
+ "No folder chosen yet.",
+ "Ask each time",
+ "Every download from the editor follows this choice: Export static site, Download .fweb project, QR codes and picture exports. With Ask each time, each file asks where it goes. If the chosen folder cannot be used when a file is saved, the file goes to Downloads and the notice says so.",
+ "In a browser, the browser decides where downloads go.",
+ "Choose another folder",
+ "Choose the folder exports are saved to",
+ "Saving {0}...",
+ "{0} could not be saved to {1}. Check that the folder exists and has free space, then try again.",
+ "The chosen folder {0} is missing or cannot be written, so {1} was saved to {2}.",
+ "Nothing was saved.",
+ "{0} and {1}",
+ "{0}, {1}",
+ "{0} and 1 more host",
+ "{0} and {1} more hosts",
+ "Files from {0} were not brought along, so part of the look or behaviour may be missing.",
+ "1 stylesheet from {0}",
+ "{0} stylesheets from {1}",
+ "1 script from {0}",
+ "{0} scripts from {1}",
+ "1 more file",
+ "{0} more files",
+ "This page loads files from the web: {0}. Only the ticked files are brought along.",
+ "Kept as code, so the page keeps its own scripts and style rules, responsive ones included. The files it loads from the web are not brought along either way.",
+ "As elements, the page arrives without the files it loads from {0}, so part of its look or behaviour may be missing.",
+ "Kept as code, because 1 of {0} pages loads files from the web. As code the pages keep their own scripts and style rules, responsive ones included; those files are not brought along either way.",
+ "As elements, 1 of {0} pages arrives without the files it loads from {1}, so part of its look or behaviour may be missing.",
+ "Kept as code, because {0} of {1} pages load files from the web. As code the pages keep their own scripts and style rules, responsive ones included; those files are not brought along either way.",
+ "As elements, {0} of {1} pages arrive without the files they load from {2}, so part of their look or behaviour may be missing.",
+ "Kept 1 style rule for the content the page's script builds.",
+ "Kept {0} style rules for the content the page's script builds.",
+ "Kept 1 style rule for the content the page's script builds without checking whether the converted elements use it: checking took too long, so every rule was kept.",
+ "Kept {0} style rules for the content the page's script builds without checking which ones the converted elements use: checking took too long, so every rule was kept.",
+ "1 more style rule was left out: at most {1} rules and {2} KiB are kept for a script.",
+ "{0} more style rules were left out: at most {1} rules and {2} KiB are kept for a script.",
+ "The style rule kept for the content the page's script builds was left out because the page's code would be too large.",
+ "The {0} style rules kept for the content the page's script builds were left out because the page's code would be too large.",
+ "1 font or registered property from the page's stylesheet was left out because the site already uses its name.",
+ "{0} fonts or registered properties from the page's stylesheet were left out because the site already uses their names.",
+ "Exported {0} file.",
+ "Each result shows where to find it. Open that tab and section to use it.",
+ "Stylesheet",
+ "Font file",
+ "A tick has FormWeb on this computer download that file from its host now, and the file becomes part of the site. Nothing is downloaded without a tick.",
+ "Downloading",
+ "Every file the pages load from the web is ticked and downloaded, so the pages keep their look either way.",
+ "Kept as code, so the pages keep their own scripts and style rules. Files from {0} are not ticked or not downloaded, so they will be missing either way.",
+ "As elements, the pages arrive without the files from {0} that are not ticked or not downloaded, so part of their look or behaviour may be missing.",
+ "Waiting for the downloads...",
+ "No file from the web came along: the downloads are no longer kept. Tick the files again in a new review to bring them.",
+ "1 file from the web came along.",
+ "{0} files from the web came along.",
+ "1 font from the web is now part of this site.",
+ "{0} fonts from the web are now part of this site.",
+ "Undo twice to get the pages back as code, three times to remove them.",
+ "The script of 1 page did not finish in time, so that page was measured without running it.",
+ "The scripts of {0} pages did not finish in time, so those pages were measured without running them.",
+ "A picture of what the script of this page builds. The real thing runs in Preview and on the published site.",
];
diff --git a/frontend/src/i18n/locales/cs.ts b/frontend/src/i18n/locales/cs.ts
index 9a21ab4d..765b1390 100644
--- a/frontend/src/i18n/locales/cs.ts
+++ b/frontend/src/i18n/locales/cs.ts
@@ -3028,4 +3028,77 @@ export default [
"Neponecháno: {0} zůstává beze změny.",
"Prvek byl změněn jinde, proto byla zkouška zrušena.",
"Změna byla odmítnuta.",
+ "Zobrazit značky auditu",
+ "Zobrazovat značky auditu na stránce",
+ "Umístí malou značku na každý prvek této stránky, který má problém. Značky se na stránce zobrazí, když je tento dialog zavřený. Kliknutím na značku prvek vyberete.",
+ "1 problém nemá prvek, proto nemá značku.",
+ "Problémy bez prvku: {0}, proto nemají značku.",
+ "Značky se kreslí na prvních {0} z {1} prvků s problémy na této stránce.",
+ "1 problém u prvku {0}",
+ "Problémy u prvku {1}: {0}",
+ "Problémy u prvku {0}",
+ "Audit se nepodařilo spustit, proto jsou značky auditu skryté.",
+ "Značky auditu jsou zapnuté: každý prvek této stránky s problémem ukazuje značku.",
+ "Značky auditu jsou vypnuté.",
+ "Kam se ukládají exporty",
+ "Složka Stažené soubory",
+ "Složka, kterou zvolíte",
+ "Zvolit složku...",
+ "Zatím není zvolena žádná složka.",
+ "Pokaždé se zeptat",
+ "Každé stahování z editoru se řídí touto volbou: Exportovat statický web, Stáhnout projekt .fweb, kódy QR a exporty obrázků. S volbou Pokaždé se zeptat se každý soubor zeptá, kam má jít. Pokud zvolenou složku nelze při ukládání souboru použít, soubor se uloží do složky Stažené soubory a oznámení to uvede.",
+ "V prohlížeči rozhoduje o umístění stažených souborů prohlížeč.",
+ "Zvolit jinou složku",
+ "Zvolit složku, do které se ukládají exporty",
+ "Ukládání {0}...",
+ "{0} se nepodařilo uložit do {1}. Zkontrolujte, že složka existuje a má volné místo, a zkuste to znovu.",
+ "Zvolená složka {0} chybí nebo do ní nelze zapisovat, proto bylo {1} uloženo do {2}.",
+ "Nic nebylo uloženo.",
+ "{0} a {1}",
+ "{0}, {1}",
+ "{0} a 1 další hostitel",
+ "{0} a další hostitelé: {1}",
+ "Soubory z {0} nebyly přeneseny, proto může část vzhledu nebo chování chybět.",
+ "1 styl z {0}",
+ "styly z {1}: {0}",
+ "1 skript z {0}",
+ "skripty z {1}: {0}",
+ "1 další soubor",
+ "další soubory: {0}",
+ "Tato stránka načítá soubory z webu: {0}. Přenesou se jen zaškrtnuté soubory.",
+ "Ponecháno jako kód, takže si stránka zachová vlastní skripty a pravidla stylů, včetně responzivních. Soubory, které načítá z webu, se nepřenesou ani v jednom případě.",
+ "Jako prvky stránka přijde bez souborů, které načítá z {0}, takže část jejího vzhledu nebo chování může chybět.",
+ "Ponecháno jako kód, protože 1 z {0} stránek načítá soubory z webu. Jako kód si stránky zachovají vlastní skripty a pravidla stylů, včetně responzivních; tyto soubory se nepřenesou ani v jednom případě.",
+ "Jako prvky 1 z {0} stránek přijde bez souborů, které načítá z {1}, takže část jejího vzhledu nebo chování může chybět.",
+ "Ponecháno jako kód, protože stránky, které načítají soubory z webu: {0} z {1}. Jako kód si stránky zachovají vlastní skripty a pravidla stylů, včetně responzivních; tyto soubory se nepřenesou ani v jednom případě.",
+ "Jako prvky stránky ({0} z {1}) přijdou bez souborů, které načítají z {2}, takže část jejich vzhledu nebo chování může chybět.",
+ "Ponecháno 1 pravidlo stylu pro obsah, který sestavuje skript stránky.",
+ "Ponechaná pravidla stylu pro obsah, který sestavuje skript stránky: {0}.",
+ "Ponecháno 1 pravidlo stylu pro obsah, který sestavuje skript stránky, bez kontroly, zda ho převedené prvky používají: kontrola trvala příliš dlouho, proto byla ponechána všechna pravidla.",
+ "Ponechaná pravidla stylu pro obsah, který sestavuje skript stránky: {0}, bez kontroly, která z nich převedené prvky používají: kontrola trvala příliš dlouho, proto byla ponechána všechna pravidla.",
+ "Vynecháno ještě 1 pravidlo stylu: pro skript se ponechá nejvýše {1} pravidel a {2} KiB.",
+ "Vynechaná další pravidla stylu: {0}. Pro skript se ponechá nejvýše {1} pravidel a {2} KiB.",
+ "Pravidlo stylu ponechané pro obsah skriptu stránky bylo vynecháno, protože by kód stránky byl příliš velký.",
+ "Pravidla stylu ponechaná pro obsah skriptu stránky ({0}) byla vynechána, protože by kód stránky byl příliš velký.",
+ "Vynecháno 1 písmo nebo registrovaná vlastnost ze stylů stránky, protože web už používá jeho název.",
+ "Vynechaná písma nebo registrované vlastnosti ze stylů stránky: {0}, protože web už používá jejich názvy.",
+ "Exportováno souborů: {0}.",
+ "Každý výsledek ukazuje, kde ho najdete. Otevřete tuto kartu a sekci, abyste ho mohli použít.",
+ "Šablona stylů",
+ "Soubor písma",
+ "Zaškrtnutím FormWeb na tomto počítači hned stáhne ten soubor z jeho hostitele a soubor se stane součástí webu. Bez zaškrtnutí se nic nestahuje.",
+ "Stahuje se",
+ "Každý soubor, který stránky načítají z webu, je zaškrtnutý a stažený, takže si stránky zachovají vzhled v obou případech.",
+ "Ponecháno jako kód, takže si stránky zachovají vlastní skripty a pravidla stylů. Soubory z {0} nejsou zaškrtnuté nebo stažené, takže budou chybět v obou případech.",
+ "Jako prvky stránky přijdou bez souborů z {0}, které nejsou zaškrtnuté nebo stažené, takže část jejich vzhledu nebo chování může chybět.",
+ "Čeká se na stahování...",
+ "Nepřenesl se žádný soubor z webu: stažené soubory se už neuchovávají. Zaškrtněte soubory znovu v nové kontrole, aby se přenesly.",
+ "Přenesl se 1 soubor z webu.",
+ "Přeneseno souborů z webu: {0}.",
+ "1 písmo z webu je teď součástí tohoto webu.",
+ "Písma z webu, která jsou teď součástí tohoto webu: {0}.",
+ "Dvěma vráceními zpět dostanete stránky zpět jako kód, třemi je odstraníte.",
+ "Skript 1 stránky nedoběhl včas, takže tato stránka byla změřena bez jeho spuštění.",
+ "Skripty stránek nedoběhly včas (stránek: {0}), takže tyto stránky byly změřeny bez jejich spuštění.",
+ "Obrázek toho, co sestavuje skript této stránky. Skutečná podoba běží v náhledu a na publikovaném webu.",
] as readonly string[];
diff --git a/frontend/src/i18n/locales/da.ts b/frontend/src/i18n/locales/da.ts
index 9f35247c..99add68d 100644
--- a/frontend/src/i18n/locales/da.ts
+++ b/frontend/src/i18n/locales/da.ts
@@ -3028,4 +3028,77 @@ export default [
"Ikke beholdt: {0} er uændret.",
"Elementet blev ændret et andet sted, så afprøvningen blev droppet.",
"Ændringen blev afvist.",
+ "Vis auditmarkører",
+ "Vis auditmarkører på siden",
+ "Sætter en lille markør på hvert element på denne side, der har et problem. Markørerne vises på siden, når denne dialog er lukket. Klik på en markør for at vælge elementet.",
+ "1 problem har intet element, så det har ingen markør.",
+ "{0} problemer har intet element, så de har ingen markør.",
+ "Markører tegnes på de første {0} af {1} elementer med problemer på denne side.",
+ "1 problem på {0}",
+ "{0} problemer på {1}",
+ "Problemer på {0}",
+ "Audit kunne ikke køres, så auditmarkørerne er skjult.",
+ "Auditmarkører er slået til: hvert element på denne side med et problem viser en markør.",
+ "Auditmarkører er slået fra.",
+ "Hvor eksporter gemmes",
+ "Mappen Overførsler",
+ "En mappe, du vælger",
+ "Vælg mappe...",
+ "Der er ikke valgt nogen mappe endnu.",
+ "Spørg hver gang",
+ "Alle downloads fra editoren følger dette valg: Eksportér statisk site, Download .fweb-projekt, QR-koder og billedeksporter. Med Spørg hver gang spørger hver fil, hvor den skal hen. Hvis den valgte mappe ikke kan bruges, når en fil gemmes, havner filen i Overførsler, og meddelelsen siger det.",
+ "I en browser bestemmer browseren, hvor downloads havner.",
+ "Vælg en anden mappe",
+ "Vælg den mappe, eksporter gemmes i",
+ "Gemmer {0}...",
+ "{0} kunne ikke gemmes i {1}. Kontrollér, at mappen findes og har ledig plads, og prøv igen.",
+ "Den valgte mappe {0} mangler eller kan ikke skrives til, så {1} blev gemt i {2}.",
+ "Intet blev gemt.",
+ "{0} og {1}",
+ "{0}, {1}",
+ "{0} og 1 vært mere",
+ "{0} og {1} værter mere",
+ "Filer fra {0} kom ikke med, så en del af udseendet eller adfærden kan mangle.",
+ "1 stylesheet fra {0}",
+ "{0} stylesheets fra {1}",
+ "1 script fra {0}",
+ "{0} scripts fra {1}",
+ "1 fil mere",
+ "{0} filer mere",
+ "Denne side henter filer fra nettet: {0}. Kun de afkrydsede filer kommer med.",
+ "Beholdt som kode, så siden beholder sine egne scripts og stilregler, også de responsive. Filerne, den henter fra nettet, kommer ikke med i nogen af tilfældene.",
+ "Som elementer kommer siden uden de filer, den henter fra {0}, så en del af dens udseende eller adfærd kan mangle.",
+ "Beholdt som kode, fordi 1 af {0} sider henter filer fra nettet. Som kode beholder siderne deres egne scripts og stilregler, også de responsive; de filer kommer ikke med i nogen af tilfældene.",
+ "Som elementer kommer 1 af {0} sider uden de filer, den henter fra {1}, så en del af dens udseende eller adfærd kan mangle.",
+ "Beholdt som kode, fordi {0} af {1} sider henter filer fra nettet. Som kode beholder siderne deres egne scripts og stilregler, også de responsive; de filer kommer ikke med i nogen af tilfældene.",
+ "Som elementer kommer {0} af {1} sider uden de filer, de henter fra {2}, så en del af deres udseende eller adfærd kan mangle.",
+ "Beholdt 1 stilregel til det indhold, sidens script bygger.",
+ "Beholdt {0} stilregler til det indhold, sidens script bygger.",
+ "Beholdt 1 stilregel til det indhold, sidens script bygger, uden at kontrollere, om de konverterede elementer bruger den: kontrollen tog for lang tid, så alle regler blev beholdt.",
+ "Beholdt {0} stilregler til det indhold, sidens script bygger, uden at kontrollere, hvilke af dem de konverterede elementer bruger: kontrollen tog for lang tid, så alle regler blev beholdt.",
+ "1 stilregel mere blev udeladt: højst {1} regler og {2} KiB beholdes til et script.",
+ "{0} stilregler mere blev udeladt: højst {1} regler og {2} KiB beholdes til et script.",
+ "Stilreglen, der var beholdt til det indhold, sidens script bygger, blev udeladt, fordi sidens kode ville blive for stor.",
+ "De {0} stilregler, der var beholdt til det indhold, sidens script bygger, blev udeladt, fordi sidens kode ville blive for stor.",
+ "1 skrifttype eller registreret egenskab fra sidens stylesheet blev udeladt, fordi webstedet allerede bruger navnet.",
+ "{0} skrifttyper eller registrerede egenskaber fra sidens stylesheet blev udeladt, fordi webstedet allerede bruger navnene.",
+ "{0} fil eksporteret.",
+ "Hvert resultat viser, hvor det findes. Åbn den fane og sektion for at bruge det.",
+ "Stylesheet",
+ "Skrifttypefil",
+ "Med et flueben henter FormWeb på denne computer filen fra dens vært nu, og filen bliver en del af webstedet. Intet hentes uden et flueben.",
+ "Henter",
+ "Alle filer, siderne henter fra nettet, er afkrydset og hentet, så siderne beholder deres udseende i begge tilfælde.",
+ "Beholdt som kode, så siderne beholder deres egne scripts og stilregler. Filer fra {0} er ikke afkrydset eller ikke hentet, så de mangler i begge tilfælde.",
+ "Som elementer kommer siderne uden de filer fra {0}, der ikke er afkrydset eller ikke hentet, så en del af deres udseende eller adfærd kan mangle.",
+ "Venter på overførslerne...",
+ "Ingen fil fra nettet kom med: overførslerne gemmes ikke længere. Sæt flueben ved filerne igen i en ny gennemgang for at få dem med.",
+ "1 fil fra nettet kom med.",
+ "{0} filer fra nettet kom med.",
+ "1 skrifttype fra nettet er nu en del af dette websted.",
+ "{0} skrifttyper fra nettet er nu en del af dette websted.",
+ "Fortryd to gange for at få siderne tilbage som kode, tre gange for at fjerne dem.",
+ "Scriptet på 1 side blev ikke færdigt i tide, så den side blev målt uden at køre det.",
+ "Scriptene på {0} sider blev ikke færdige i tide, så de sider blev målt uden at køre dem.",
+ "Et billede af det, sidens script bygger. Det rigtige kører i Eksempel og på det udgivne websted.",
] as readonly string[];
diff --git a/frontend/src/i18n/locales/de.ts b/frontend/src/i18n/locales/de.ts
index 4188c25b..21d43412 100644
--- a/frontend/src/i18n/locales/de.ts
+++ b/frontend/src/i18n/locales/de.ts
@@ -3028,4 +3028,77 @@ export default [
"Nicht behalten: {0} ist unverändert.",
"Das Element wurde an anderer Stelle geändert, daher wurde der Versuch verworfen.",
"Die Änderung wurde abgelehnt.",
+ "Audit-Markierungen anzeigen",
+ "Audit-Markierungen auf der Seite anzeigen",
+ "Setzt eine kleine Markierung auf jedes Element dieser Seite, das ein Problem hat. Die Markierungen erscheinen auf der Seite, wenn dieser Dialog geschlossen ist. Klicke auf eine Markierung, um das Element auszuwählen.",
+ "1 Problem hat kein Element und daher keine Markierung.",
+ "{0} Probleme haben kein Element und daher keine Markierung.",
+ "Markierungen werden an den ersten {0} von {1} Elementen mit Problemen auf dieser Seite gezeichnet.",
+ "1 Problem an {0}",
+ "{0} Probleme an {1}",
+ "Probleme an {0}",
+ "Das Audit konnte nicht ausgeführt werden, daher sind die Audit-Markierungen ausgeblendet.",
+ "Audit-Markierungen sind an: Jedes Element dieser Seite mit einem Problem zeigt eine Markierung.",
+ "Audit-Markierungen sind aus.",
+ "Speicherort für Exporte",
+ "Der Downloads-Ordner",
+ "Ein Ordner deiner Wahl",
+ "Ordner wählen...",
+ "Noch kein Ordner gewählt.",
+ "Jedes Mal fragen",
+ "Jeder Download aus dem Editor folgt dieser Wahl: Statische Website exportieren, .fweb-Projekt herunterladen, QR-Codes und Bildexporte. Mit Jedes Mal fragen fragt jede Datei, wohin sie soll. Kann der gewählte Ordner beim Speichern einer Datei nicht verwendet werden, landet die Datei in Downloads und der Hinweis sagt es.",
+ "In einem Browser entscheidet der Browser, wohin Downloads gehen.",
+ "Anderen Ordner wählen",
+ "Den Ordner wählen, in dem Exporte gespeichert werden",
+ "{0} wird gespeichert...",
+ "{0} konnte nicht unter {1} gespeichert werden. Prüfe, ob der Ordner existiert und genug freien Speicher hat, und versuche es dann erneut.",
+ "Der gewählte Ordner {0} fehlt oder ist nicht beschreibbar, daher wurde {1} unter {2} gespeichert.",
+ "Es wurde nichts gespeichert.",
+ "{0} und {1}",
+ "{0}, {1}",
+ "{0} und 1 weiterer Host",
+ "{0} und {1} weitere Hosts",
+ "Dateien von {0} wurden nicht mitgenommen, daher kann ein Teil des Aussehens oder Verhaltens fehlen.",
+ "1 Stylesheet von {0}",
+ "{0} Stylesheets von {1}",
+ "1 Skript von {0}",
+ "{0} Skripte von {1}",
+ "1 weitere Datei",
+ "{0} weitere Dateien",
+ "Diese Seite lädt Dateien aus dem Web: {0}. Nur die angehakten Dateien werden mitgenommen.",
+ "Als Code behalten: So behält die Seite ihre eigenen Skripte und Stilregeln, auch die responsiven. Die Dateien, die sie aus dem Web lädt, werden in keinem Fall mitgenommen.",
+ "Als Elemente kommt die Seite ohne die Dateien an, die sie von {0} lädt, daher kann ein Teil ihres Aussehens oder Verhaltens fehlen.",
+ "Als Code behalten, weil 1 von {0} Seiten Dateien aus dem Web lädt. Als Code behalten die Seiten ihre eigenen Skripte und Stilregeln, auch die responsiven; diese Dateien werden in keinem Fall mitgenommen.",
+ "Als Elemente kommt 1 von {0} Seiten ohne die Dateien an, die sie von {1} lädt, daher kann ein Teil ihres Aussehens oder Verhaltens fehlen.",
+ "Als Code behalten, weil {0} von {1} Seiten Dateien aus dem Web laden. Als Code behalten die Seiten ihre eigenen Skripte und Stilregeln, auch die responsiven; diese Dateien werden in keinem Fall mitgenommen.",
+ "Als Elemente kommen {0} von {1} Seiten ohne die Dateien an, die sie von {2} laden, daher kann ein Teil ihres Aussehens oder Verhaltens fehlen.",
+ "Für den Inhalt, den das Skript der Seite aufbaut, wurde 1 Stilregel behalten.",
+ "Für den Inhalt, den das Skript der Seite aufbaut, wurden {0} Stilregeln behalten.",
+ "Für den Inhalt, den das Skript der Seite aufbaut, wurde 1 Stilregel behalten, ohne zu prüfen, ob die umgewandelten Elemente sie verwenden: Die Prüfung dauerte zu lange, daher wurden alle Regeln behalten.",
+ "Für den Inhalt, den das Skript der Seite aufbaut, wurden {0} Stilregeln behalten, ohne zu prüfen, welche davon die umgewandelten Elemente verwenden: Die Prüfung dauerte zu lange, daher wurden alle Regeln behalten.",
+ "1 weitere Stilregel wurde weggelassen: Für ein Skript werden höchstens {1} Regeln und {2} KiB behalten.",
+ "{0} weitere Stilregeln wurden weggelassen: Für ein Skript werden höchstens {1} Regeln und {2} KiB behalten.",
+ "Die für den Inhalt des Seitenskripts behaltene Stilregel wurde weggelassen, weil der Code der Seite zu groß würde.",
+ "Die {0} für den Inhalt des Seitenskripts behaltenen Stilregeln wurden weggelassen, weil der Code der Seite zu groß würde.",
+ "1 Schrift oder registrierte Eigenschaft aus dem Stylesheet der Seite wurde weggelassen, weil die Website ihren Namen schon verwendet.",
+ "{0} Schriften oder registrierte Eigenschaften aus dem Stylesheet der Seite wurden weggelassen, weil die Website ihre Namen schon verwendet.",
+ "{0} Datei exportiert.",
+ "Jedes Ergebnis zeigt, wo es zu finden ist. Öffne diesen Tab und Abschnitt, um es zu verwenden.",
+ "Stylesheet",
+ "Schriftdatei",
+ "Mit einem Haken lädt FormWeb auf diesem Computer die Datei jetzt von ihrem Host herunter, und die Datei wird Teil der Website. Ohne Haken wird nichts heruntergeladen.",
+ "Wird geladen",
+ "Jede Datei, die die Seiten aus dem Web laden, ist angehakt und heruntergeladen, daher behalten die Seiten ihr Aussehen in jedem Fall.",
+ "Als Code behalten: So behalten die Seiten ihre eigenen Skripte und Stilregeln. Dateien von {0} sind nicht angehakt oder nicht heruntergeladen, daher fehlen sie in jedem Fall.",
+ "Als Elemente kommen die Seiten ohne die Dateien von {0} an, die nicht angehakt oder nicht heruntergeladen sind, daher kann ein Teil ihres Aussehens oder Verhaltens fehlen.",
+ "Warten auf die Downloads...",
+ "Keine Datei aus dem Web wurde mitgenommen: Die Downloads werden nicht mehr aufbewahrt. Hake die Dateien in einer neuen Prüfung erneut an, um sie mitzunehmen.",
+ "1 Datei aus dem Web wurde mitgenommen.",
+ "{0} Dateien aus dem Web wurden mitgenommen.",
+ "1 Schrift aus dem Web ist jetzt Teil dieser Website.",
+ "{0} Schriften aus dem Web sind jetzt Teil dieser Website.",
+ "Zweimal rückgängig machen holt die Seiten als Code zurück, dreimal entfernt sie.",
+ "Das Skript von 1 Seite wurde nicht rechtzeitig fertig, daher wurde diese Seite gemessen, ohne es auszuführen.",
+ "Die Skripte von {0} Seiten wurden nicht rechtzeitig fertig, daher wurden diese Seiten gemessen, ohne sie auszuführen.",
+ "Ein Bild dessen, was das Skript dieser Seite aufbaut. Das Echte läuft in der Vorschau und auf der veröffentlichten Website.",
] as readonly string[];
diff --git a/frontend/src/i18n/locales/es-MX.ts b/frontend/src/i18n/locales/es-MX.ts
index 10014817..51d84a54 100644
--- a/frontend/src/i18n/locales/es-MX.ts
+++ b/frontend/src/i18n/locales/es-MX.ts
@@ -92,4 +92,8 @@ export default {
"Click to add a stop": "Haz clic para agregar una parada",
"A clicked choice shows on the page and is written when you press Keep. With this off, choices are written at once.": "Una opción en la que haces clic se muestra en la página y se guarda cuando presionas Conservar. Con esto desactivado, las opciones se guardan al instante.",
"A clicked choice now shows on the page until you press Keep.": "Una opción en la que haces clic se muestra ahora en la página hasta que presiones Conservar.",
+ "{0} could not be saved to {1}. Check that the folder exists and has free space, then try again.": "No se pudo guardar {0} en {1}. Verifica que la carpeta exista y tenga espacio libre, y vuelve a intentarlo.",
+ "Kept 1 style rule for the content the page's script builds without checking whether the converted elements use it: checking took too long, so every rule was kept.": "Se conservó 1 regla de estilo para el contenido que construye el script de la página sin verificar si los elementos convertidos la usan: la verificación tardaba demasiado, así que se conservaron todas las reglas.",
+ "Kept {0} style rules for the content the page's script builds without checking which ones the converted elements use: checking took too long, so every rule was kept.": "Se conservaron {0} reglas de estilo para el contenido que construye el script de la página sin verificar cuáles usan los elementos convertidos: la verificación tardaba demasiado, así que se conservaron todas las reglas.",
+ "A tick has FormWeb on this computer download that file from its host now, and the file becomes part of the site. Nothing is downloaded without a tick.": "Con una marca, FormWeb descarga ahora ese archivo de su host en esta computadora, y el archivo pasa a formar parte del sitio. Sin una marca no se descarga nada.",
} as Record;
diff --git a/frontend/src/i18n/locales/es.ts b/frontend/src/i18n/locales/es.ts
index bbe49a51..a89305b4 100644
--- a/frontend/src/i18n/locales/es.ts
+++ b/frontend/src/i18n/locales/es.ts
@@ -3028,4 +3028,77 @@ export default [
"No se conservó: {0} no cambia.",
"El elemento se cambió en otro lugar, así que la prueba se descartó.",
"Se rechazó el cambio.",
+ "Mostrar marcadores de auditoría",
+ "Mostrar marcadores de auditoría en la página",
+ "Pone un pequeño marcador en cada elemento de esta página que tiene un problema. Los marcadores se ven en la página cuando este diálogo está cerrado. Haz clic en un marcador para seleccionar el elemento.",
+ "1 problema no tiene elemento, así que no tiene marcador.",
+ "{0} problemas no tienen elemento, así que no tienen marcador.",
+ "Los marcadores se dibujan en los primeros {0} de {1} elementos con problemas de esta página.",
+ "1 problema en {0}",
+ "{0} problemas en {1}",
+ "Problemas en {0}",
+ "No se pudo ejecutar la auditoría, así que los marcadores de auditoría están ocultos.",
+ "Marcadores de auditoría activados: cada elemento de esta página con un problema muestra un marcador.",
+ "Marcadores de auditoría desactivados.",
+ "Dónde se guardan las exportaciones",
+ "La carpeta Descargas",
+ "Una carpeta que elijas",
+ "Elegir carpeta...",
+ "Aún no se eligió ninguna carpeta.",
+ "Preguntar cada vez",
+ "Todas las descargas del editor siguen esta elección: Exportar sitio estático, Descargar proyecto .fweb, los códigos QR y las exportaciones de imágenes. Con Preguntar cada vez, cada archivo pregunta adónde va. Si la carpeta elegida no se puede usar al guardar un archivo, el archivo va a Descargas y el aviso lo indica.",
+ "En un navegador, el navegador decide adónde van las descargas.",
+ "Elegir otra carpeta",
+ "Elegir la carpeta donde se guardan las exportaciones",
+ "Guardando {0}...",
+ "No se pudo guardar {0} en {1}. Comprueba que la carpeta existe y tiene espacio libre, y vuelve a intentarlo.",
+ "La carpeta elegida {0} no existe o no se puede escribir en ella, así que {1} se guardó en {2}.",
+ "No se guardó nada.",
+ "{0} y {1}",
+ "{0}, {1}",
+ "{0} y 1 host más",
+ "{0} y {1} hosts más",
+ "Los archivos de {0} no se trajeron, así que puede faltar parte del aspecto o del comportamiento.",
+ "1 hoja de estilo de {0}",
+ "{0} hojas de estilo de {1}",
+ "1 script de {0}",
+ "{0} scripts de {1}",
+ "1 archivo más",
+ "{0} archivos más",
+ "Esta página carga archivos de la web: {0}. Solo se traen los archivos marcados.",
+ "Se mantiene como código, así que la página conserva sus propios scripts y reglas de estilo, incluidas las adaptables. Los archivos que carga de la web no se traen en ningún caso.",
+ "Como elementos, la página llega sin los archivos que carga de {0}, así que puede faltar parte de su aspecto o de su comportamiento.",
+ "Se mantiene como código porque 1 de {0} páginas carga archivos de la web. Como código, las páginas conservan sus propios scripts y reglas de estilo, incluidas las adaptables; esos archivos no se traen en ningún caso.",
+ "Como elementos, 1 de {0} páginas llega sin los archivos que carga de {1}, así que puede faltar parte de su aspecto o de su comportamiento.",
+ "Se mantiene como código porque {0} de {1} páginas cargan archivos de la web. Como código, las páginas conservan sus propios scripts y reglas de estilo, incluidas las adaptables; esos archivos no se traen en ningún caso.",
+ "Como elementos, {0} de {1} páginas llegan sin los archivos que cargan de {2}, así que puede faltar parte de su aspecto o de su comportamiento.",
+ "Se conservó 1 regla de estilo para el contenido que construye el script de la página.",
+ "Se conservaron {0} reglas de estilo para el contenido que construye el script de la página.",
+ "Se conservó 1 regla de estilo para el contenido que construye el script de la página sin comprobar si los elementos convertidos la usan: la comprobación tardaba demasiado, así que se conservaron todas las reglas.",
+ "Se conservaron {0} reglas de estilo para el contenido que construye el script de la página sin comprobar cuáles usan los elementos convertidos: la comprobación tardaba demasiado, así que se conservaron todas las reglas.",
+ "Se omitió 1 regla de estilo más: como máximo se conservan {1} reglas y {2} KiB para un script.",
+ "Se omitieron {0} reglas de estilo más: como máximo se conservan {1} reglas y {2} KiB para un script.",
+ "Se omitió la regla de estilo conservada para el contenido que construye el script de la página, porque el código de la página sería demasiado grande.",
+ "Se omitieron las {0} reglas de estilo conservadas para el contenido que construye el script de la página, porque el código de la página sería demasiado grande.",
+ "Se omitió 1 fuente o propiedad registrada de la hoja de estilo de la página porque el sitio ya usa su nombre.",
+ "Se omitieron {0} fuentes o propiedades registradas de la hoja de estilo de la página porque el sitio ya usa sus nombres.",
+ "Se exportó {0} archivo.",
+ "Cada resultado indica dónde encontrarlo. Abre esa pestaña y esa sección para usarlo.",
+ "Hoja de estilo",
+ "Archivo de fuente",
+ "Con una marca, FormWeb descarga ahora ese archivo de su host en este ordenador, y el archivo pasa a formar parte del sitio. Sin una marca no se descarga nada.",
+ "Descargando",
+ "Todos los archivos que las páginas cargan de la web están marcados y descargados, así que las páginas conservan su aspecto en cualquier caso.",
+ "Se mantienen como código, así que las páginas conservan sus propios scripts y reglas de estilo. Los archivos de {0} no están marcados o no se han descargado, así que faltarán en cualquier caso.",
+ "Como elementos, las páginas llegan sin los archivos de {0} que no están marcados o no se han descargado, así que puede faltar parte de su aspecto o de su comportamiento.",
+ "Esperando las descargas...",
+ "No se trajo ningún archivo de la web: las descargas ya no se conservan. Vuelve a marcar los archivos en una nueva revisión para traerlos.",
+ "Se trajo 1 archivo de la web.",
+ "Se trajeron {0} archivos de la web.",
+ "1 fuente de la web forma parte ahora de este sitio.",
+ "{0} fuentes de la web forman parte ahora de este sitio.",
+ "Deshaz dos veces para recuperar las páginas como código y tres veces para quitarlas.",
+ "El script de 1 página no terminó a tiempo, así que esa página se midió sin ejecutarlo.",
+ "Los scripts de {0} páginas no terminaron a tiempo, así que esas páginas se midieron sin ejecutarlos.",
+ "Una imagen de lo que construye el script de esta página. Lo real se ejecuta en Vista previa y en el sitio publicado.",
] as readonly string[];
diff --git a/frontend/src/i18n/locales/fi.ts b/frontend/src/i18n/locales/fi.ts
index d3b611f7..1addad27 100644
--- a/frontend/src/i18n/locales/fi.ts
+++ b/frontend/src/i18n/locales/fi.ts
@@ -3028,4 +3028,77 @@ export default [
"Ei säilytetty: {0} on ennallaan.",
"Elementtiä muutettiin muualla, joten kokeilu hylättiin.",
"Muutos hylättiin.",
+ "Näytä auditointimerkit",
+ "Näytä auditointimerkit sivulla",
+ "Lisää pienen merkin jokaiseen tämän sivun elementtiin, jossa on ongelma. Merkit näkyvät sivulla, kun tämä valintaikkuna on suljettu. Valitse elementti napsauttamalla merkkiä.",
+ "1 ongelmalla ei ole elementtiä, joten sillä ei ole merkkiä.",
+ "Ongelmia ilman elementtiä: {0}, joten niillä ei ole merkkiä.",
+ "Merkit piirretään tämän sivun {1} ongelmallisesta elementistä ensimmäisiin {0}.",
+ "1 ongelma: {0}",
+ "{0} ongelmaa: {1}",
+ "Ongelmat: {0}",
+ "Auditointia ei voitu suorittaa, joten auditointimerkit on piilotettu.",
+ "Auditointimerkit ovat päällä: jokaisessa tämän sivun ongelmallisessa elementissä näkyy merkki.",
+ "Auditointimerkit ovat pois päältä.",
+ "Mihin viennit tallennetaan",
+ "Lataukset-kansio",
+ "Valitsemasi kansio",
+ "Valitse kansio...",
+ "Kansiota ei ole vielä valittu.",
+ "Kysy joka kerta",
+ "Kaikki editorin lataukset noudattavat tätä valintaa: Vie staattinen sivusto, Lataa .fweb-projekti, QR-koodit ja kuvien viennit. Kun valintana on Kysy joka kerta, jokainen tiedosto kysyy, minne se menee. Jos valittua kansiota ei voi käyttää tiedostoa tallennettaessa, tiedosto menee Lataukset-kansioon ja ilmoitus kertoo siitä.",
+ "Selaimessa selain päättää, minne lataukset menevät.",
+ "Valitse toinen kansio",
+ "Valitse kansio, johon viennit tallennetaan",
+ "Tallennetaan {0}...",
+ "Tiedostoa {0} ei voitu tallentaa kohteeseen {1}. Tarkista, että kansio on olemassa ja siinä on vapaata tilaa, ja yritä sitten uudelleen.",
+ "Valittua kansiota {0} ei ole tai siihen ei voi kirjoittaa, joten {1} tallennettiin kohteeseen {2}.",
+ "Mitään ei tallennettu.",
+ "{0} ja {1}",
+ "{0}, {1}",
+ "{0} ja 1 muu palvelin",
+ "{0} ja {1} muuta palvelinta",
+ "Tiedostoja palvelimelta {0} ei tuotu mukana, joten osa ulkoasusta tai toiminnasta voi puuttua.",
+ "1 tyylitiedosto palvelimelta {0}",
+ "{0} tyylitiedostoa palvelimelta {1}",
+ "1 skripti palvelimelta {0}",
+ "{0} skriptiä palvelimelta {1}",
+ "1 muu tiedosto",
+ "{0} muuta tiedostoa",
+ "Tämä sivu lataa tiedostoja verkosta: {0}. Vain valitut tiedostot tuodaan mukana.",
+ "Säilytetään koodina, joten sivu pitää omat skriptinsä ja tyylisääntönsä, myös responsiiviset. Tiedostoja, joita se lataa verkosta, ei tuoda kummassakaan tapauksessa.",
+ "Elementteinä sivu tulee ilman tiedostoja, joita se lataa palvelimelta {0}, joten osa sen ulkoasusta tai toiminnasta voi puuttua.",
+ "Säilytetään koodina, koska 1 sivu {0} sivusta lataa tiedostoja verkosta. Koodina sivut pitävät omat skriptinsä ja tyylisääntönsä, myös responsiiviset; niitä tiedostoja ei tuoda kummassakaan tapauksessa.",
+ "Elementteinä 1 sivu {0} sivusta tulee ilman tiedostoja, joita se lataa palvelimelta {1}, joten osa sen ulkoasusta tai toiminnasta voi puuttua.",
+ "Säilytetään koodina, koska {0} sivua {1} sivusta lataa tiedostoja verkosta. Koodina sivut pitävät omat skriptinsä ja tyylisääntönsä, myös responsiiviset; niitä tiedostoja ei tuoda kummassakaan tapauksessa.",
+ "Elementteinä {0} sivua {1} sivusta tulee ilman tiedostoja, joita ne lataavat palvelimelta {2}, joten osa niiden ulkoasusta tai toiminnasta voi puuttua.",
+ "Säilytettiin 1 tyylisääntö sisällölle, jonka sivun skripti rakentaa.",
+ "Säilytettiin {0} tyylisääntöä sisällölle, jonka sivun skripti rakentaa.",
+ "Säilytettiin 1 tyylisääntö sisällölle, jonka sivun skripti rakentaa, tarkistamatta, käyttävätkö muunnetut elementit sitä: tarkistus kesti liian kauan, joten kaikki säännöt säilytettiin.",
+ "Säilytettiin {0} tyylisääntöä sisällölle, jonka sivun skripti rakentaa, tarkistamatta, mitä niistä muunnetut elementit käyttävät: tarkistus kesti liian kauan, joten kaikki säännöt säilytettiin.",
+ "1 tyylisääntö lisää jätettiin pois: skriptille säilytetään enintään {1} sääntöä ja {2} KiB.",
+ "{0} tyylisääntöä lisää jätettiin pois: skriptille säilytetään enintään {1} sääntöä ja {2} KiB.",
+ "Sivun skriptin rakentamalle sisällölle säilytetty tyylisääntö jätettiin pois, koska sivun koodista tulisi liian suuri.",
+ "Sivun skriptin rakentamalle sisällölle säilytetyt {0} tyylisääntöä jätettiin pois, koska sivun koodista tulisi liian suuri.",
+ "1 fontti tai rekisteröity ominaisuus jätettiin pois sivun tyylitiedostosta, koska sivusto käyttää jo sen nimeä.",
+ "{0} fonttia tai rekisteröityä ominaisuutta jätettiin pois sivun tyylitiedostosta, koska sivusto käyttää jo niiden nimiä.",
+ "Viety {0} tiedosto.",
+ "Jokainen tulos näyttää, mistä sen löytää. Avaa kyseinen välilehti ja osio käyttääksesi sitä.",
+ "Tyylitiedosto",
+ "Fonttitiedosto",
+ "Valintamerkillä FormWeb lataa tällä tietokoneella tiedoston sen palvelimelta nyt, ja tiedostosta tulee osa sivustoa. Mitään ei ladata ilman valintamerkkiä.",
+ "Ladataan",
+ "Jokainen tiedosto, jonka sivut lataavat verkosta, on valittu ja ladattu, joten sivut säilyttävät ulkoasunsa kummassakin tapauksessa.",
+ "Säilytetään koodina, joten sivut pitävät omat skriptinsä ja tyylisääntönsä. Palvelimen {0} tiedostoja ei ole valittu tai ladattu, joten ne puuttuvat kummassakin tapauksessa.",
+ "Elementteinä sivut tulevat ilman niitä palvelimen {0} tiedostoja, joita ei ole valittu tai ladattu, joten osa niiden ulkoasusta tai toiminnasta voi puuttua.",
+ "Odotetaan latauksia...",
+ "Verkosta ei tullut yhtään tiedostoa: latauksia ei enää säilytetä. Valitse tiedostot uudelleen uudessa tarkistuksessa tuodaksesi ne.",
+ "Verkosta tuli 1 tiedosto.",
+ "Verkosta tuli {0} tiedostoa.",
+ "1 fontti verkosta on nyt osa tätä sivustoa.",
+ "{0} fonttia verkosta on nyt osa tätä sivustoa.",
+ "Kumoa kahdesti, niin sivut palaavat koodiksi, ja kolmesti, niin ne poistuvat.",
+ "1 sivun skripti ei valmistunut ajoissa, joten sivu mitattiin suorittamatta sitä.",
+ "{0} sivun skriptit eivät valmistuneet ajoissa, joten sivut mitattiin suorittamatta niitä.",
+ "Kuva siitä, mitä tämän sivun skripti rakentaa. Oikea versio toimii esikatselussa ja julkaistulla sivustolla.",
] as readonly string[];
diff --git a/frontend/src/i18n/locales/fr.ts b/frontend/src/i18n/locales/fr.ts
index 0f156253..60b7e514 100644
--- a/frontend/src/i18n/locales/fr.ts
+++ b/frontend/src/i18n/locales/fr.ts
@@ -3028,4 +3028,77 @@ export default [
"Non gardé : {0} est inchangé.",
"L’élément a été modifié ailleurs, l’essai a donc été abandonné.",
"La modification a été refusée.",
+ "Afficher les marqueurs d’audit",
+ "Afficher les marqueurs d’audit sur la page",
+ "Place un petit marqueur sur chaque élément de cette page qui a un problème. Les marqueurs s’affichent sur la page quand cette boîte de dialogue est fermée. Cliquez sur un marqueur pour sélectionner l’élément.",
+ "1 problème n’a pas d’élément, il n’a donc pas de marqueur.",
+ "{0} problèmes n’ont pas d’élément, ils n’ont donc pas de marqueur.",
+ "Les marqueurs sont dessinés sur les {0} premiers des {1} éléments ayant des problèmes sur cette page.",
+ "1 problème sur {0}",
+ "{0} problèmes sur {1}",
+ "Problèmes sur {0}",
+ "L’audit n’a pas pu être lancé, les marqueurs d’audit sont donc masqués.",
+ "Marqueurs d’audit activés : chaque élément de cette page qui a un problème affiche un marqueur.",
+ "Marqueurs d’audit désactivés.",
+ "Emplacement des exportations",
+ "Le dossier Téléchargements",
+ "Un dossier de votre choix",
+ "Choisir un dossier...",
+ "Aucun dossier choisi pour l’instant.",
+ "Demander à chaque fois",
+ "Tous les téléchargements de l’éditeur suivent ce choix : Exporter le site statique, Télécharger le projet .fweb, les codes QR et les exportations d’images. Avec Demander à chaque fois, chaque fichier demande où il va. Si le dossier choisi ne peut pas être utilisé au moment d’enregistrer un fichier, le fichier va dans Téléchargements et la notification l’indique.",
+ "Dans un navigateur, c’est le navigateur qui décide où vont les téléchargements.",
+ "Choisir un autre dossier",
+ "Choisir le dossier où les exportations sont enregistrées",
+ "Enregistrement de {0}...",
+ "Impossible d’enregistrer {0} dans {1}. Vérifiez que le dossier existe et dispose d’espace libre, puis réessayez.",
+ "Le dossier choisi {0} est introuvable ou n’est pas accessible en écriture, {1} a donc été enregistré dans {2}.",
+ "Rien n’a été enregistré.",
+ "{0} et {1}",
+ "{0}, {1}",
+ "{0} et 1 autre hôte",
+ "{0} et {1} autres hôtes",
+ "Les fichiers de {0} n’ont pas été importés, une partie de l’apparence ou du comportement peut donc manquer.",
+ "1 feuille de style de {0}",
+ "{0} feuilles de style de {1}",
+ "1 script de {0}",
+ "{0} scripts de {1}",
+ "1 autre fichier",
+ "{0} autres fichiers",
+ "Cette page charge des fichiers depuis le web : {0}. Seuls les fichiers cochés sont importés.",
+ "Gardée en code : la page conserve ainsi ses propres scripts et règles de style, y compris les règles adaptatives. Les fichiers qu’elle charge depuis le web ne sont importés dans aucun cas.",
+ "En éléments, la page arrive sans les fichiers qu’elle charge depuis {0}, une partie de son apparence ou de son comportement peut donc manquer.",
+ "Gardées en code, car 1 page sur {0} charge des fichiers depuis le web. En code, les pages conservent leurs propres scripts et règles de style, y compris les règles adaptatives ; ces fichiers ne sont importés dans aucun cas.",
+ "En éléments, 1 page sur {0} arrive sans les fichiers qu’elle charge depuis {1}, une partie de son apparence ou de son comportement peut donc manquer.",
+ "Gardées en code, car {0} pages sur {1} chargent des fichiers depuis le web. En code, les pages conservent leurs propres scripts et règles de style, y compris les règles adaptatives ; ces fichiers ne sont importés dans aucun cas.",
+ "En éléments, {0} pages sur {1} arrivent sans les fichiers qu’elles chargent depuis {2}, une partie de leur apparence ou de leur comportement peut donc manquer.",
+ "1 règle de style gardée pour le contenu que construit le script de la page.",
+ "{0} règles de style gardées pour le contenu que construit le script de la page.",
+ "1 règle de style gardée pour le contenu que construit le script de la page, sans vérifier si les éléments convertis l’utilisent : la vérification prenait trop de temps, toutes les règles ont donc été gardées.",
+ "{0} règles de style gardées pour le contenu que construit le script de la page, sans vérifier lesquelles les éléments convertis utilisent : la vérification prenait trop de temps, toutes les règles ont donc été gardées.",
+ "1 règle de style de plus a été laissée de côté : au plus {1} règles et {2} Kio sont gardés pour un script.",
+ "{0} règles de style de plus ont été laissées de côté : au plus {1} règles et {2} Kio sont gardés pour un script.",
+ "La règle de style gardée pour le contenu que construit le script de la page a été laissée de côté, car le code de la page serait trop volumineux.",
+ "Les {0} règles de style gardées pour le contenu que construit le script de la page ont été laissées de côté, car le code de la page serait trop volumineux.",
+ "1 police ou propriété enregistrée de la feuille de style de la page a été laissée de côté, car le site utilise déjà son nom.",
+ "{0} polices ou propriétés enregistrées de la feuille de style de la page ont été laissées de côté, car le site utilise déjà leurs noms.",
+ "{0} fichier exporté.",
+ "Chaque résultat indique où le trouver. Ouvrez cet onglet et cette section pour l’utiliser.",
+ "Feuille de style",
+ "Fichier de police",
+ "Une coche fait télécharger ce fichier depuis son hôte, maintenant, par FormWeb sur cet ordinateur, et le fichier devient une partie du site. Rien n’est téléchargé sans coche.",
+ "Téléchargement",
+ "Chaque fichier que les pages chargent depuis le web est coché et téléchargé : les pages gardent donc leur apparence dans les deux cas.",
+ "Gardées en code : les pages conservent ainsi leurs propres scripts et règles de style. Les fichiers de {0} ne sont pas cochés ou pas téléchargés, ils manqueront donc dans les deux cas.",
+ "En éléments, les pages arrivent sans les fichiers de {0} qui ne sont pas cochés ou pas téléchargés, une partie de leur apparence ou de leur comportement peut donc manquer.",
+ "En attente des téléchargements...",
+ "Aucun fichier du web n’a été importé : les téléchargements ne sont plus gardés. Cochez de nouveau les fichiers dans un nouvel examen pour les importer.",
+ "1 fichier du web a été importé.",
+ "{0} fichiers du web ont été importés.",
+ "1 police du web fait désormais partie de ce site.",
+ "{0} polices du web font désormais partie de ce site.",
+ "Annulez deux fois pour retrouver les pages en code, trois fois pour les retirer.",
+ "Le script de 1 page n’a pas fini à temps : cette page a donc été mesurée sans l’exécuter.",
+ "Les scripts de {0} pages n’ont pas fini à temps : ces pages ont donc été mesurées sans les exécuter.",
+ "Une image de ce que construit le script de cette page. La vraie version s’exécute dans Aperçu et sur le site publié.",
] as readonly string[];
diff --git a/frontend/src/i18n/locales/hu.ts b/frontend/src/i18n/locales/hu.ts
index c5a2455f..65f229d0 100644
--- a/frontend/src/i18n/locales/hu.ts
+++ b/frontend/src/i18n/locales/hu.ts
@@ -3028,4 +3028,77 @@ export default [
"Nincs megtartva: {0} változatlan.",
"Az elemet máshol módosították, ezért a kipróbálás elvetve.",
"A módosítást elutasították.",
+ "Auditjelölők megjelenítése",
+ "Auditjelölők megjelenítése az oldalon",
+ "Kis jelölőt tesz az oldal minden olyan elemére, amelynek problémája van. A jelölők akkor látszanak az oldalon, amikor ez a párbeszédpanel be van zárva. Kattints egy jelölőre az elem kijelöléséhez.",
+ "1 problémához nem tartozik elem, ezért nincs jelölője.",
+ "{0} problémához nem tartozik elem, ezért nincs jelölőjük.",
+ "A jelölők az oldal {1} problémás eleméből az első {0} elemen jelennek meg.",
+ "1 probléma itt: {0}",
+ "{0} probléma itt: {1}",
+ "Problémák itt: {0}",
+ "Az auditot nem sikerült lefuttatni, ezért az auditjelölők rejtve vannak.",
+ "Az auditjelölők be vannak kapcsolva: az oldal minden problémás eleme jelölőt mutat.",
+ "Az auditjelölők ki vannak kapcsolva.",
+ "Az exportok mentési helye",
+ "A Letöltések mappa",
+ "Egy általad választott mappa",
+ "Mappa kiválasztása...",
+ "Még nincs kiválasztott mappa.",
+ "Kérdezzen rá minden alkalommal",
+ "A szerkesztő minden letöltése ezt a választást követi: Statikus webhely exportálása, .fweb projekt letöltése, QR-kódok és képexportok. A Kérdezzen rá minden alkalommal beállításnál minden fájl megkérdezi, hová kerüljön. Ha a választott mappa a fájl mentésekor nem használható, a fájl a Letöltések mappába kerül, és az értesítés jelzi ezt.",
+ "Böngészőben a böngésző dönti el, hová kerülnek a letöltések.",
+ "Másik mappa kiválasztása",
+ "Az exportok mentési mappájának kiválasztása",
+ "{0} mentése...",
+ "{0} nem menthető ide: {1}. Ellenőrizd, hogy a mappa létezik-e és van-e rajta szabad hely, majd próbáld újra.",
+ "A választott mappa ({0}) hiányzik vagy nem írható, ezért a(z) {1} ide került: {2}.",
+ "Semmi sem lett mentve.",
+ "{0} és {1}",
+ "{0}, {1}",
+ "{0} és még 1 kiszolgáló",
+ "{0} és még {1} kiszolgáló",
+ "A következő helyekről származó fájlok nem kerültek át: {0}, ezért a megjelenés vagy a működés egy része hiányozhat.",
+ "1 stíluslap innen: {0}",
+ "{0} stíluslap innen: {1}",
+ "1 szkript innen: {0}",
+ "{0} szkript innen: {1}",
+ "még 1 fájl",
+ "még {0} fájl",
+ "Ez az oldal fájlokat tölt be a webről: {0}. Csak a bejelölt fájlok kerülnek át.",
+ "Kódként megtartva, így az oldal megtartja saját szkriptjeit és stílusszabályait, a reszponzívakat is. A webről betöltött fájlok egyik esetben sem kerülnek át.",
+ "Elemekként az oldal a következő helyről betöltött fájlok nélkül érkezik: {0}, ezért a megjelenése vagy a működése egy része hiányozhat.",
+ "Kódként megtartva, mert {0} oldalból 1 fájlokat tölt be a webről. Kódként az oldalak megtartják saját szkriptjeiket és stílusszabályaikat, a reszponzívakat is; ezek a fájlok egyik esetben sem kerülnek át.",
+ "Elemekként {0} oldalból 1 a következő helyről betöltött fájlok nélkül érkezik: {1}, ezért a megjelenése vagy a működése egy része hiányozhat.",
+ "Kódként megtartva, mert {1} oldalból {0} fájlokat tölt be a webről. Kódként az oldalak megtartják saját szkriptjeiket és stílusszabályaikat, a reszponzívakat is; ezek a fájlok egyik esetben sem kerülnek át.",
+ "Elemekként {1} oldalból {0} a következő helyekről betöltött fájlok nélkül érkezik: {2}, ezért a megjelenésük vagy a működésük egy része hiányozhat.",
+ "1 stílusszabály megtartva a tartalomhoz, amelyet az oldal szkriptje felépít.",
+ "{0} stílusszabály megtartva a tartalomhoz, amelyet az oldal szkriptje felépít.",
+ "1 stílusszabály megtartva a tartalomhoz, amelyet az oldal szkriptje felépít, annak ellenőrzése nélkül, hogy az átalakított elemek használják-e: az ellenőrzés túl sokáig tartott, ezért minden szabály megmaradt.",
+ "{0} stílusszabály megtartva a tartalomhoz, amelyet az oldal szkriptje felépít, annak ellenőrzése nélkül, hogy melyiket használják az átalakított elemek: az ellenőrzés túl sokáig tartott, ezért minden szabály megmaradt.",
+ "Még 1 stílusszabály kimaradt: egy szkripthez legfeljebb {1} szabály és {2} KiB marad meg.",
+ "Még {0} stílusszabály kimaradt: egy szkripthez legfeljebb {1} szabály és {2} KiB marad meg.",
+ "Az oldal szkriptje által felépített tartalomhoz megtartott stílusszabály kimaradt, mert az oldal kódja túl nagy lenne.",
+ "Az oldal szkriptje által felépített tartalomhoz megtartott {0} stílusszabály kimaradt, mert az oldal kódja túl nagy lenne.",
+ "Az oldal stíluslapjáról 1 betűtípus vagy regisztrált tulajdonság kimaradt, mert a webhely már használja a nevét.",
+ "Az oldal stíluslapjáról {0} betűtípus vagy regisztrált tulajdonság kimaradt, mert a webhely már használja a nevüket.",
+ "{0} fájl exportálva.",
+ "Minden találat megmutatja, hol található. A használatához nyissa meg azt a lapot és szakaszt.",
+ "Stíluslap",
+ "Betűtípusfájl",
+ "Bejelöléssel a FormWeb ezen a számítógépen most letölti azt a fájlt a gazdagépéről, és a fájl a webhely része lesz. Bejelölés nélkül semmi sem töltődik le.",
+ "Letöltés",
+ "Minden fájl, amelyet az oldalak a webről töltenek be, be van jelölve és le van töltve, így az oldalak mindkét esetben megtartják a megjelenésüket.",
+ "Kódként megtartva, így az oldalak megtartják saját szkriptjeiket és stílusszabályaikat. A következő helyekről származó fájlok nincsenek bejelölve vagy letöltve: {0}, ezért mindkét esetben hiányozni fognak.",
+ "Elemekként az oldalak a következő helyről származó, nem bejelölt vagy nem letöltött fájlok nélkül érkeznek: {0}, ezért a megjelenésük vagy a működésük egy része hiányozhat.",
+ "Várakozás a letöltésekre...",
+ "Egy fájl sem került át a webről: a letöltések már nincsenek megőrizve. Jelölje be újra a fájlokat egy új áttekintésben, hogy átkerüljenek.",
+ "1 fájl átkerült a webről.",
+ "{0} fájl átkerült a webről.",
+ "1 betűtípus a webről mostantól ennek a webhelynek a része.",
+ "{0} betűtípus a webről mostantól ennek a webhelynek a része.",
+ "Két visszavonással kódként kapod vissza az oldalakat, hárommal eltávolítod őket.",
+ "1 oldal szkriptje nem fejeződött be időben, ezért az oldal mérése a szkript futtatása nélkül történt.",
+ "{0} oldal szkriptje nem fejeződött be időben, ezért ezeknek az oldalaknak a mérése a szkript futtatása nélkül történt.",
+ "Kép arról, amit ennek az oldalnak a szkriptje felépít. A valódi változat az Előnézetben és a közzétett webhelyen fut.",
] as readonly string[];
diff --git a/frontend/src/i18n/locales/id.ts b/frontend/src/i18n/locales/id.ts
index dba24e9d..05961f85 100644
--- a/frontend/src/i18n/locales/id.ts
+++ b/frontend/src/i18n/locales/id.ts
@@ -3028,4 +3028,77 @@ export default [
"Tidak dipertahankan: {0} tidak berubah.",
"Elemen diubah di tempat lain, jadi uji coba dibatalkan.",
"Perubahan ditolak.",
+ "Tampilkan penanda audit",
+ "Tampilkan penanda audit di halaman",
+ "Memasang penanda kecil pada setiap elemen di halaman ini yang memiliki masalah. Penanda tampil di halaman saat dialog ini ditutup. Klik penanda untuk memilih elemennya.",
+ "1 masalah tidak memiliki elemen, jadi tidak memiliki penanda.",
+ "{0} masalah tidak memiliki elemen, jadi tidak memiliki penanda.",
+ "Penanda digambar pada {0} elemen pertama dari {1} elemen bermasalah di halaman ini.",
+ "1 masalah pada {0}",
+ "{0} masalah pada {1}",
+ "Masalah pada {0}",
+ "Audit tidak dapat dijalankan, jadi penanda audit disembunyikan.",
+ "Penanda audit aktif: setiap elemen di halaman ini yang memiliki masalah menampilkan penanda.",
+ "Penanda audit nonaktif.",
+ "Tempat ekspor disimpan",
+ "Folder Unduhan",
+ "Folder yang Anda pilih",
+ "Pilih folder...",
+ "Belum ada folder yang dipilih.",
+ "Tanyakan setiap kali",
+ "Setiap unduhan dari editor mengikuti pilihan ini: Ekspor situs statis, Unduh proyek .fweb, kode QR, dan ekspor gambar. Dengan Tanyakan setiap kali, setiap file menanyakan ke mana ia disimpan. Jika folder yang dipilih tidak dapat digunakan saat file disimpan, file masuk ke Unduhan dan pemberitahuan menyebutkannya.",
+ "Di browser, browser yang menentukan ke mana unduhan disimpan.",
+ "Pilih folder lain",
+ "Pilih folder tempat ekspor disimpan",
+ "Menyimpan {0}...",
+ "{0} tidak dapat disimpan ke {1}. Periksa apakah folder itu ada dan masih punya ruang kosong, lalu coba lagi.",
+ "Folder yang dipilih, {0}, tidak ada atau tidak dapat ditulisi, jadi {1} disimpan ke {2}.",
+ "Tidak ada yang disimpan.",
+ "{0} dan {1}",
+ "{0}, {1}",
+ "{0} dan 1 host lainnya",
+ "{0} dan {1} host lainnya",
+ "File dari {0} tidak ikut dibawa, jadi sebagian tampilan atau perilaku mungkin hilang.",
+ "1 lembar gaya dari {0}",
+ "{0} lembar gaya dari {1}",
+ "1 skrip dari {0}",
+ "{0} skrip dari {1}",
+ "1 file lainnya",
+ "{0} file lainnya",
+ "Halaman ini memuat file dari web: {0}. Hanya file yang dicentang yang ikut dibawa.",
+ "Dipertahankan sebagai kode, jadi halaman mempertahankan skrip dan aturan gayanya sendiri, termasuk yang responsif. File yang dimuatnya dari web tidak ikut dibawa dalam kedua pilihan.",
+ "Sebagai elemen, halaman datang tanpa file yang dimuatnya dari {0}, jadi sebagian tampilan atau perilakunya mungkin hilang.",
+ "Dipertahankan sebagai kode, karena 1 dari {0} halaman memuat file dari web. Sebagai kode, halaman mempertahankan skrip dan aturan gayanya sendiri, termasuk yang responsif; file tersebut tidak ikut dibawa dalam kedua pilihan.",
+ "Sebagai elemen, 1 dari {0} halaman datang tanpa file yang dimuatnya dari {1}, jadi sebagian tampilan atau perilakunya mungkin hilang.",
+ "Dipertahankan sebagai kode, karena {0} dari {1} halaman memuat file dari web. Sebagai kode, halaman mempertahankan skrip dan aturan gayanya sendiri, termasuk yang responsif; file tersebut tidak ikut dibawa dalam kedua pilihan.",
+ "Sebagai elemen, {0} dari {1} halaman datang tanpa file yang dimuatnya dari {2}, jadi sebagian tampilan atau perilakunya mungkin hilang.",
+ "1 aturan gaya dipertahankan untuk konten yang dibangun skrip halaman.",
+ "{0} aturan gaya dipertahankan untuk konten yang dibangun skrip halaman.",
+ "1 aturan gaya dipertahankan untuk konten yang dibangun skrip halaman tanpa memeriksa apakah elemen yang diubah memakainya: pemeriksaan terlalu lama, jadi semua aturan dipertahankan.",
+ "{0} aturan gaya dipertahankan untuk konten yang dibangun skrip halaman tanpa memeriksa mana yang dipakai elemen yang diubah: pemeriksaan terlalu lama, jadi semua aturan dipertahankan.",
+ "1 aturan gaya lagi ditinggalkan: paling banyak {1} aturan dan {2} KiB dipertahankan untuk satu skrip.",
+ "{0} aturan gaya lagi ditinggalkan: paling banyak {1} aturan dan {2} KiB dipertahankan untuk satu skrip.",
+ "Aturan gaya yang dipertahankan untuk konten yang dibangun skrip halaman ditinggalkan karena kode halaman akan terlalu besar.",
+ "{0} aturan gaya yang dipertahankan untuk konten yang dibangun skrip halaman ditinggalkan karena kode halaman akan terlalu besar.",
+ "1 font atau properti terdaftar dari lembar gaya halaman ditinggalkan karena situs sudah memakai namanya.",
+ "{0} font atau properti terdaftar dari lembar gaya halaman ditinggalkan karena situs sudah memakai namanya.",
+ "{0} file diekspor.",
+ "Setiap hasil menunjukkan tempat menemukannya. Buka tab dan bagian itu untuk menggunakannya.",
+ "Lembar gaya",
+ "File font",
+ "Dengan centang, FormWeb di komputer ini mengunduh file itu dari host-nya sekarang, dan file itu menjadi bagian dari situs. Tidak ada yang diunduh tanpa centang.",
+ "Mengunduh",
+ "Setiap file yang dimuat halaman dari web sudah dicentang dan diunduh, jadi halaman mempertahankan tampilannya dalam kedua pilihan.",
+ "Dipertahankan sebagai kode, jadi halaman mempertahankan skrip dan aturan gayanya sendiri. File dari {0} tidak dicentang atau tidak diunduh, jadi file itu akan hilang dalam kedua pilihan.",
+ "Sebagai elemen, halaman datang tanpa file dari {0} yang tidak dicentang atau tidak diunduh, jadi sebagian tampilan atau perilakunya mungkin hilang.",
+ "Menunggu unduhan...",
+ "Tidak ada file dari web yang ikut: unduhan tidak disimpan lagi. Centang file lagi di tinjauan baru untuk membawanya.",
+ "1 file dari web ikut dibawa.",
+ "{0} file dari web ikut dibawa.",
+ "1 font dari web kini menjadi bagian dari situs ini.",
+ "{0} font dari web kini menjadi bagian dari situs ini.",
+ "Urungkan dua kali untuk mendapatkan halaman kembali sebagai kode, tiga kali untuk menghapusnya.",
+ "Skrip 1 halaman tidak selesai tepat waktu, jadi halaman itu diukur tanpa menjalankannya.",
+ "Skrip {0} halaman tidak selesai tepat waktu, jadi halaman-halaman itu diukur tanpa menjalankannya.",
+ "Gambar dari apa yang dibangun skrip halaman ini. Versi sebenarnya berjalan di Pratinjau dan di situs yang dipublikasikan.",
] as readonly string[];
diff --git a/frontend/src/i18n/locales/it.ts b/frontend/src/i18n/locales/it.ts
index 11d1a1f7..8cf4754b 100644
--- a/frontend/src/i18n/locales/it.ts
+++ b/frontend/src/i18n/locales/it.ts
@@ -3028,4 +3028,77 @@ export default [
"Non mantenuto: {0} è invariato.",
"L’elemento è stato modificato altrove, quindi la prova è stata annullata.",
"La modifica è stata rifiutata.",
+ "Mostra indicatori dell’audit",
+ "Mostra indicatori dell’audit sulla pagina",
+ "Mette un piccolo indicatore su ogni elemento di questa pagina che ha un problema. Gli indicatori compaiono sulla pagina quando questa finestra di dialogo è chiusa. Fai clic su un indicatore per selezionare l’elemento.",
+ "1 problema non ha un elemento, quindi non ha un indicatore.",
+ "{0} problemi non hanno un elemento, quindi non hanno un indicatore.",
+ "Gli indicatori sono disegnati sui primi {0} di {1} elementi con problemi in questa pagina.",
+ "1 problema su {0}",
+ "{0} problemi su {1}",
+ "Problemi su {0}",
+ "Non è stato possibile eseguire l’audit, quindi gli indicatori dell’audit sono nascosti.",
+ "Indicatori dell’audit attivi: ogni elemento di questa pagina con un problema mostra un indicatore.",
+ "Indicatori dell’audit disattivati.",
+ "Dove vengono salvate le esportazioni",
+ "La cartella Download",
+ "Una cartella a tua scelta",
+ "Scegli cartella...",
+ "Nessuna cartella ancora scelta.",
+ "Chiedi ogni volta",
+ "Ogni download dall’editor segue questa scelta: Esporta sito statico, Scarica progetto .fweb, i codici QR e le esportazioni di immagini. Con Chiedi ogni volta, ogni file chiede dove andare. Se la cartella scelta non può essere usata quando un file viene salvato, il file va in Download e l’avviso lo indica.",
+ "In un browser, è il browser a decidere dove vanno i download.",
+ "Scegli un’altra cartella",
+ "Scegli la cartella in cui vengono salvate le esportazioni",
+ "Salvataggio di {0}...",
+ "Impossibile salvare {0} in {1}. Controlla che la cartella esista e abbia spazio libero, poi riprova.",
+ "La cartella scelta {0} non esiste o non è scrivibile, quindi {1} è stato salvato in {2}.",
+ "Non è stato salvato nulla.",
+ "{0} e {1}",
+ "{0}, {1}",
+ "{0} e 1 altro host",
+ "{0} e altri {1} host",
+ "I file da {0} non sono stati portati, quindi parte dell’aspetto o del comportamento potrebbe mancare.",
+ "1 foglio di stile da {0}",
+ "{0} fogli di stile da {1}",
+ "1 script da {0}",
+ "{0} script da {1}",
+ "1 altro file",
+ "altri {0} file",
+ "Questa pagina carica file dal web: {0}. Vengono portati solo i file spuntati.",
+ "Mantenuta come codice, così la pagina conserva i propri script e regole di stile, comprese quelle responsive. I file che carica dal web non vengono portati in nessun caso.",
+ "Come elementi, la pagina arriva senza i file che carica da {0}, quindi parte del suo aspetto o del suo comportamento potrebbe mancare.",
+ "Mantenute come codice, perché 1 pagina su {0} carica file dal web. Come codice le pagine conservano i propri script e regole di stile, comprese quelle responsive; quei file non vengono portati in nessun caso.",
+ "Come elementi, 1 pagina su {0} arriva senza i file che carica da {1}, quindi parte del suo aspetto o del suo comportamento potrebbe mancare.",
+ "Mantenute come codice, perché {0} pagine su {1} caricano file dal web. Come codice le pagine conservano i propri script e regole di stile, comprese quelle responsive; quei file non vengono portati in nessun caso.",
+ "Come elementi, {0} pagine su {1} arrivano senza i file che caricano da {2}, quindi parte del loro aspetto o del loro comportamento potrebbe mancare.",
+ "Mantenuta 1 regola di stile per il contenuto che costruisce lo script della pagina.",
+ "Mantenute {0} regole di stile per il contenuto che costruisce lo script della pagina.",
+ "Mantenuta 1 regola di stile per il contenuto che costruisce lo script della pagina senza controllare se gli elementi convertiti la usano: il controllo richiedeva troppo tempo, quindi sono state mantenute tutte le regole.",
+ "Mantenute {0} regole di stile per il contenuto che costruisce lo script della pagina senza controllare quali usano gli elementi convertiti: il controllo richiedeva troppo tempo, quindi sono state mantenute tutte le regole.",
+ "1 altra regola di stile è stata esclusa: per uno script si mantengono al massimo {1} regole e {2} KiB.",
+ "Altre {0} regole di stile sono state escluse: per uno script si mantengono al massimo {1} regole e {2} KiB.",
+ "La regola di stile mantenuta per il contenuto che costruisce lo script della pagina è stata esclusa perché il codice della pagina sarebbe troppo grande.",
+ "Le {0} regole di stile mantenute per il contenuto che costruisce lo script della pagina sono state escluse perché il codice della pagina sarebbe troppo grande.",
+ "1 font o proprietà registrata del foglio di stile della pagina è stato escluso perché il sito usa già il suo nome.",
+ "{0} font o proprietà registrate del foglio di stile della pagina sono stati esclusi perché il sito usa già i loro nomi.",
+ "Esportato {0} file.",
+ "Ogni risultato indica dove trovarlo. Apri quella scheda e quella sezione per usarlo.",
+ "Foglio di stile",
+ "File di font",
+ "Con una spunta, FormWeb su questo computer scarica subito quel file dal suo host e il file diventa parte del sito. Senza una spunta non viene scaricato nulla.",
+ "Download in corso",
+ "Ogni file che le pagine caricano dal web è spuntato e scaricato, quindi le pagine mantengono il loro aspetto in ogni caso.",
+ "Mantenute come codice, così le pagine conservano i propri script e regole di stile. I file da {0} non sono spuntati o non sono scaricati, quindi mancheranno in ogni caso.",
+ "Come elementi, le pagine arrivano senza i file da {0} non spuntati o non scaricati, quindi parte del loro aspetto o del loro comportamento potrebbe mancare.",
+ "In attesa dei download...",
+ "Nessun file dal web è stato portato: i download non sono più conservati. Spunta di nuovo i file in una nuova revisione per portarli.",
+ "È stato portato 1 file dal web.",
+ "Sono stati portati {0} file dal web.",
+ "1 font dal web ora fa parte di questo sito.",
+ "{0} font dal web ora fanno parte di questo sito.",
+ "Annulla due volte per riavere le pagine come codice, tre volte per rimuoverle.",
+ "Lo script di 1 pagina non è terminato in tempo, quindi quella pagina è stata misurata senza eseguirlo.",
+ "Gli script di {0} pagine non sono terminati in tempo, quindi quelle pagine sono state misurate senza eseguirli.",
+ "Un'immagine di ciò che costruisce lo script di questa pagina. Quello vero viene eseguito in Anteprima e sul sito pubblicato.",
] as readonly string[];
diff --git a/frontend/src/i18n/locales/ja.ts b/frontend/src/i18n/locales/ja.ts
index 9d2ae7a5..c96800b0 100644
--- a/frontend/src/i18n/locales/ja.ts
+++ b/frontend/src/i18n/locales/ja.ts
@@ -3028,4 +3028,77 @@ export default [
"確定されませんでした: {0} は変更されていません。",
"要素が別の場所で変更されたため、試用を取り消しました。",
"変更は拒否されました。",
+ "監査マーカーを表示",
+ "ページに監査マーカーを表示",
+ "このページで問題のある各要素に小さなマーカーを付けます。マーカーはこのダイアログを閉じるとページに表示されます。マーカーをクリックすると要素を選択します。",
+ "1 件の問題には要素がないため、マーカーはありません。",
+ "{0} 件の問題には要素がないため、マーカーはありません。",
+ "マーカーは、このページで問題のある {1} 個の要素のうち最初の {0} 個に描かれます。",
+ "{0} の問題 1 件",
+ "{1} の問題 {0} 件",
+ "{0} の問題",
+ "監査を実行できなかったため、監査マーカーを非表示にしました。",
+ "監査マーカーはオンです: このページで問題のある各要素にマーカーが表示されます。",
+ "監査マーカーはオフです。",
+ "書き出しの保存先",
+ "ダウンロードフォルダー",
+ "選んだフォルダー",
+ "フォルダーを選択...",
+ "フォルダーはまだ選択されていません。",
+ "毎回確認する",
+ "エディターからのダウンロードはすべてこの選択に従います: 「静的サイトを書き出し」「.fweb プロジェクトをダウンロード」、QR コード、画像の書き出し。「毎回確認する」では、ファイルごとに保存先を確認します。ファイルの保存時に選んだフォルダーを使えない場合、ファイルはダウンロードフォルダーに保存され、通知でそのことを伝えます。",
+ "ブラウザーでは、ダウンロードの保存先はブラウザーが決めます。",
+ "別のフォルダーを選択",
+ "書き出しの保存先フォルダーを選択",
+ "{0} を保存しています...",
+ "{0} を {1} に保存できませんでした。フォルダーが存在し、空き容量があることを確認してから、もう一度お試しください。",
+ "選んだフォルダー {0} が見つからないか書き込めないため、{1} を {2} に保存しました。",
+ "何も保存されませんでした。",
+ "{0} と {1}",
+ "{0}、{1}",
+ "{0} とほか 1 個のホスト",
+ "{0} とほか {1} 個のホスト",
+ "{0} のファイルは取り込まれなかったため、見た目や動作の一部が欠けている可能性があります。",
+ "{0} のスタイルシート 1 個",
+ "{1} のスタイルシート {0} 個",
+ "{0} のスクリプト 1 個",
+ "{1} のスクリプト {0} 個",
+ "ほか 1 個のファイル",
+ "ほか {0} 個のファイル",
+ "このページは Web からファイルを読み込みます: {0}。チェックしたファイルだけが取り込まれます。",
+ "コードのまま残すため、ページは独自のスクリプトとスタイルルール (レスポンシブのものを含む) を保ちます。Web から読み込むファイルは、どちらの場合も取り込まれません。",
+ "要素として取り込むと、ページは {0} から読み込むファイルなしで届くため、見た目や動作の一部が欠ける可能性があります。",
+ "{0} ページのうち 1 ページが Web からファイルを読み込むため、コードのまま残します。コードとしてなら、ページは独自のスクリプトとスタイルルール (レスポンシブのものを含む) を保ちます。これらのファイルはどちらの場合も取り込まれません。",
+ "要素として取り込むと、{0} ページのうち 1 ページは {1} から読み込むファイルなしで届くため、見た目や動作の一部が欠ける可能性があります。",
+ "{1} ページのうち {0} ページが Web からファイルを読み込むため、コードのまま残します。コードとしてなら、ページは独自のスクリプトとスタイルルール (レスポンシブのものを含む) を保ちます。これらのファイルはどちらの場合も取り込まれません。",
+ "要素として取り込むと、{1} ページのうち {0} ページは {2} から読み込むファイルなしで届くため、見た目や動作の一部が欠ける可能性があります。",
+ "ページのスクリプトが作るコンテンツのために、スタイルルールを 1 個残しました。",
+ "ページのスクリプトが作るコンテンツのために、スタイルルールを {0} 個残しました。",
+ "ページのスクリプトが作るコンテンツのために、変換した要素が使うかどうかを確認せずにスタイルルールを 1 個残しました: 確認に時間がかかりすぎたため、すべてのルールを残しました。",
+ "ページのスクリプトが作るコンテンツのために、変換した要素がどれを使うかを確認せずにスタイルルールを {0} 個残しました: 確認に時間がかかりすぎたため、すべてのルールを残しました。",
+ "さらにスタイルルール 1 個を省きました: 1 つのスクリプトに残せるのは最大 {1} 個のルールと {2} KiB です。",
+ "さらにスタイルルール {0} 個を省きました: 1 つのスクリプトに残せるのは最大 {1} 個のルールと {2} KiB です。",
+ "ページのスクリプトが作るコンテンツ用に残したスタイルルールを省きました: ページのコードが大きくなりすぎるためです。",
+ "ページのスクリプトが作るコンテンツ用に残したスタイルルール {0} 個を省きました: ページのコードが大きくなりすぎるためです。",
+ "ページのスタイルシートのフォントまたは登録済みプロパティ 1 個を省きました: サイトですでにその名前が使われています。",
+ "ページのスタイルシートのフォントまたは登録済みプロパティ {0} 個を省きました: サイトですでにその名前が使われています。",
+ "{0} 個のファイルを書き出しました。",
+ "各結果にはその場所が表示されます。使うには、そのタブとセクションを開きます。",
+ "スタイルシート",
+ "フォントファイル",
+ "チェックすると、このコンピューター上の FormWeb がそのファイルをホストから今すぐダウンロードし、ファイルはサイトの一部になります。チェックしなければ何もダウンロードされません。",
+ "ダウンロード中",
+ "ページが Web から読み込むファイルはすべてチェック済みでダウンロード済みのため、どちらの場合もページの見た目は保たれます。",
+ "コードのまま残すため、ページは独自のスクリプトとスタイルルールを保ちます。{0} のファイルはチェックされていないかダウンロードされていないため、どちらの場合も欠けます。",
+ "要素として取り込むと、ページは {0} のファイルのうちチェックされていないかダウンロードされていないものなしで届くため、見た目や動作の一部が欠ける可能性があります。",
+ "ダウンロードを待っています...",
+ "Web からのファイルは取り込まれませんでした: ダウンロードしたファイルはもう保持されていません。取り込むには、新しい確認でファイルをもう一度チェックしてください。",
+ "Web からファイルを 1 個取り込みました。",
+ "Web からファイルを {0} 個取り込みました。",
+ "Web のフォント 1 個がこのサイトの一部になりました。",
+ "Web のフォント {0} 個がこのサイトの一部になりました。",
+ "2 回元に戻すとページはコードに戻り、3 回元に戻すとページが削除されます。",
+ "1 ページのスクリプトが時間内に終わらなかったため、そのページはスクリプトを実行せずに測定しました。",
+ "{0} ページのスクリプトが時間内に終わらなかったため、それらのページはスクリプトを実行せずに測定しました。",
+ "このページのスクリプトが作るものの画像です。実際の動作はプレビューと公開サイトで確認できます。",
] as readonly string[];
diff --git a/frontend/src/i18n/locales/ko.ts b/frontend/src/i18n/locales/ko.ts
index 2ff78f3b..62a3cce4 100644
--- a/frontend/src/i18n/locales/ko.ts
+++ b/frontend/src/i18n/locales/ko.ts
@@ -3028,4 +3028,77 @@ export default [
"유지하지 않음: {0}은(는) 변경되지 않았습니다.",
"요소가 다른 곳에서 변경되어 시험 적용을 취소했습니다.",
"변경이 거부되었습니다.",
+ "감사 마커 표시",
+ "페이지에 감사 마커 표시",
+ "이 페이지에서 문제가 있는 각 요소에 작은 마커를 표시합니다. 마커는 이 대화상자를 닫으면 페이지에 나타납니다. 마커를 클릭하면 요소를 선택합니다.",
+ "문제 1개에 요소가 없어 마커가 없습니다.",
+ "문제 {0}개에 요소가 없어 마커가 없습니다.",
+ "마커는 이 페이지에서 문제가 있는 요소 {1}개 중 처음 {0}개에 그려집니다.",
+ "{0}의 문제 1개",
+ "{1}의 문제 {0}개",
+ "{0}의 문제",
+ "감사를 실행할 수 없어 감사 마커를 숨겼습니다.",
+ "감사 마커가 켜졌습니다: 이 페이지에서 문제가 있는 각 요소에 마커가 표시됩니다.",
+ "감사 마커가 꺼졌습니다.",
+ "내보내기 저장 위치",
+ "다운로드 폴더",
+ "직접 선택한 폴더",
+ "폴더 선택...",
+ "아직 선택한 폴더가 없습니다.",
+ "매번 묻기",
+ "편집기의 모든 다운로드는 이 선택을 따릅니다: 정적 사이트 내보내기, .fweb 프로젝트 다운로드, QR 코드, 그림 내보내기. 매번 묻기를 선택하면 파일마다 저장 위치를 묻습니다.파일을 저장할 때 선택한 폴더를 사용할 수 없으면 파일은 다운로드 폴더로 가고 알림에서 이를 알려 줍니다.",
+ "브라우저에서는 다운로드 위치를 브라우저가 정합니다.",
+ "다른 폴더 선택",
+ "내보내기를 저장할 폴더 선택",
+ "{0} 저장 중...",
+ "{0}을(를) {1}에 저장할 수 없습니다. 폴더가 있고 여유 공간이 있는지 확인한 후 다시 시도하세요.",
+ "선택한 폴더 {0}이(가) 없거나 쓸 수 없어 {1}을(를) {2}에 저장했습니다.",
+ "아무것도 저장되지 않았습니다.",
+ "{0} 및 {1}",
+ "{0}, {1}",
+ "{0} 외 호스트 1개",
+ "{0} 외 호스트 {1}개",
+ "{0}의 파일은 가져오지 않았으므로 모양이나 동작의 일부가 빠질 수 있습니다.",
+ "{0}의 스타일시트 1개",
+ "{1}의 스타일시트 {0}개",
+ "{0}의 스크립트 1개",
+ "{1}의 스크립트 {0}개",
+ "파일 1개 더",
+ "파일 {0}개 더",
+ "이 페이지는 웹에서 파일을 불러옵니다: {0}. 선택한 파일만 가져옵니다.",
+ "코드로 유지하므로 페이지는 반응형 규칙을 포함한 자체 스크립트와 스타일 규칙을 유지합니다. 웹에서 불러오는 파일은 어느 쪽이든 가져오지 않습니다.",
+ "요소로 가져오면 페이지는 {0}에서 불러오는 파일 없이 들어오므로 모양이나 동작의 일부가 빠질 수 있습니다.",
+ "페이지 {0}개 중 1개가 웹에서 파일을 불러오므로 코드로 유지합니다. 코드로 두면 페이지는 반응형 규칙을 포함한 자체 스크립트와 스타일 규칙을 유지하며, 그 파일들은 어느 쪽이든 가져오지 않습니다.",
+ "요소로 가져오면 페이지 {0}개 중 1개는 {1}에서 불러오는 파일 없이 들어오므로 모양이나 동작의 일부가 빠질 수 있습니다.",
+ "페이지 {1}개 중 {0}개가 웹에서 파일을 불러오므로 코드로 유지합니다. 코드로 두면 페이지는 반응형 규칙을 포함한 자체 스크립트와 스타일 규칙을 유지하며, 그 파일들은 어느 쪽이든 가져오지 않습니다.",
+ "요소로 가져오면 페이지 {1}개 중 {0}개는 {2}에서 불러오는 파일 없이 들어오므로 모양이나 동작의 일부가 빠질 수 있습니다.",
+ "페이지 스크립트가 만드는 콘텐츠를 위해 스타일 규칙 1개를 유지했습니다.",
+ "페이지 스크립트가 만드는 콘텐츠를 위해 스타일 규칙 {0}개를 유지했습니다.",
+ "변환된 요소가 사용하는지 확인하지 않고 페이지 스크립트가 만드는 콘텐츠를 위해 스타일 규칙 1개를 유지했습니다: 확인에 시간이 너무 오래 걸려 모든 규칙을 유지했습니다.",
+ "변환된 요소가 어느 규칙을 사용하는지 확인하지 않고 페이지 스크립트가 만드는 콘텐츠를 위해 스타일 규칙 {0}개를 유지했습니다: 확인에 시간이 너무 오래 걸려 모든 규칙을 유지했습니다.",
+ "스타일 규칙 1개를 더 뺐습니다: 스크립트 하나에는 규칙 최대 {1}개와 {2} KiB까지만 유지됩니다.",
+ "스타일 규칙 {0}개를 더 뺐습니다: 스크립트 하나에는 규칙 최대 {1}개와 {2} KiB까지만 유지됩니다.",
+ "페이지 코드가 너무 커지므로 페이지 스크립트가 만드는 콘텐츠용으로 유지한 스타일 규칙을 뺐습니다.",
+ "페이지 코드가 너무 커지므로 페이지 스크립트가 만드는 콘텐츠용으로 유지한 스타일 규칙 {0}개를 뺐습니다.",
+ "사이트에서 이미 그 이름을 쓰고 있으므로 페이지 스타일시트의 글꼴 또는 등록된 속성 1개를 뺐습니다.",
+ "사이트에서 이미 그 이름들을 쓰고 있으므로 페이지 스타일시트의 글꼴 또는 등록된 속성 {0}개를 뺐습니다.",
+ "파일 {0}개를 내보냈습니다.",
+ "각 결과에는 찾을 수 있는 위치가 표시됩니다. 사용하려면 해당 탭과 섹션을 여세요.",
+ "스타일시트",
+ "글꼴 파일",
+ "선택하면 이 컴퓨터의 FormWeb이 해당 파일을 호스트에서 지금 다운로드하고, 파일은 사이트의 일부가 됩니다. 선택하지 않으면 아무것도 다운로드하지 않습니다.",
+ "다운로드 중",
+ "페이지가 웹에서 불러오는 모든 파일을 선택하고 다운로드했으므로 어느 쪽이든 페이지의 모양이 유지됩니다.",
+ "코드로 유지하므로 페이지는 자체 스크립트와 스타일 규칙을 유지합니다. {0}의 파일은 선택하지 않았거나 다운로드하지 않았으므로 어느 쪽이든 빠집니다.",
+ "요소로 가져오면 페이지는 {0}의 파일 중 선택하지 않았거나 다운로드하지 않은 파일 없이 들어오므로 모양이나 동작의 일부가 빠질 수 있습니다.",
+ "다운로드를 기다리는 중...",
+ "웹에서 가져온 파일이 없습니다: 다운로드한 파일이 더 이상 보관되지 않습니다. 가져오려면 새 검토에서 파일을 다시 선택하세요.",
+ "웹에서 파일 1개를 가져왔습니다.",
+ "웹에서 파일 {0}개를 가져왔습니다.",
+ "웹의 글꼴 1개가 이제 이 사이트의 일부입니다.",
+ "웹의 글꼴 {0}개가 이제 이 사이트의 일부입니다.",
+ "두 번 실행 취소하면 페이지가 코드로 돌아오고, 세 번 하면 페이지가 제거됩니다.",
+ "페이지 1개의 스크립트가 제시간에 끝나지 않아 해당 페이지는 스크립트를 실행하지 않고 측정했습니다.",
+ "페이지 {0}개의 스크립트가 제시간에 끝나지 않아 해당 페이지들은 스크립트를 실행하지 않고 측정했습니다.",
+ "이 페이지의 스크립트가 만드는 내용의 그림입니다. 실제 내용은 미리 보기와 게시된 사이트에서 실행됩니다.",
] as readonly string[];
diff --git a/frontend/src/i18n/locales/nb.ts b/frontend/src/i18n/locales/nb.ts
index 30ed7456..68d1f971 100644
--- a/frontend/src/i18n/locales/nb.ts
+++ b/frontend/src/i18n/locales/nb.ts
@@ -3028,4 +3028,77 @@ export default [
"Ikke beholdt: {0} er uendret.",
"Elementet ble endret et annet sted, så utprøvingen ble forkastet.",
"Endringen ble avvist.",
+ "Vis revisjonsmarkører",
+ "Vis revisjonsmarkører på siden",
+ "Setter en liten markør på hvert element på denne siden som har et problem. Markørene vises på siden når denne dialogen er lukket. Klikk på en markør for å velge elementet.",
+ "1 problem har ikke noe element, så det har ingen markør.",
+ "{0} problemer har ikke noe element, så de har ingen markør.",
+ "Markører tegnes på de første {0} av {1} elementer med problemer på denne siden.",
+ "1 problem på {0}",
+ "{0} problemer på {1}",
+ "Problemer på {0}",
+ "Revisjonen kunne ikke kjøres, så revisjonsmarkørene er skjult.",
+ "Revisjonsmarkører er på: hvert element på denne siden med et problem viser en markør.",
+ "Revisjonsmarkører er av.",
+ "Hvor eksporter lagres",
+ "Nedlastinger-mappen",
+ "En mappe du velger",
+ "Velg mappe...",
+ "Ingen mappe er valgt ennå.",
+ "Spør hver gang",
+ "Alle nedlastinger fra redigeringsprogrammet følger dette valget: Eksporter statisk nettsted, Last ned .fweb-prosjekt, QR-koder og bildeeksporter. Med Spør hver gang spør hver fil hvor den skal. Hvis den valgte mappen ikke kan brukes når en fil lagres, havner filen i Nedlastinger, og varselet sier fra.",
+ "I en nettleser bestemmer nettleseren hvor nedlastinger havner.",
+ "Velg en annen mappe",
+ "Velg mappen eksporter lagres i",
+ "Lagrer {0}...",
+ "{0} kunne ikke lagres i {1}. Sjekk at mappen finnes og har ledig plass, og prøv igjen.",
+ "Den valgte mappen {0} mangler eller kan ikke skrives til, så {1} ble lagret i {2}.",
+ "Ingenting ble lagret.",
+ "{0} og {1}",
+ "{0}, {1}",
+ "{0} og 1 vert til",
+ "{0} og {1} verter til",
+ "Filer fra {0} ble ikke med, så en del av utseendet eller virkemåten kan mangle.",
+ "1 stilark fra {0}",
+ "{0} stilark fra {1}",
+ "1 skript fra {0}",
+ "{0} skript fra {1}",
+ "1 fil til",
+ "{0} filer til",
+ "Denne siden laster filer fra nettet: {0}. Bare filene som er krysset av, blir med.",
+ "Beholdt som kode, så siden beholder sine egne skript og stilregler, også de responsive. Filene den laster fra nettet, blir ikke med i noe tilfelle.",
+ "Som elementer kommer siden uten filene den laster fra {0}, så en del av utseendet eller virkemåten kan mangle.",
+ "Beholdt som kode fordi 1 av {0} sider laster filer fra nettet. Som kode beholder sidene sine egne skript og stilregler, også de responsive; de filene blir ikke med i noe tilfelle.",
+ "Som elementer kommer 1 av {0} sider uten filene den laster fra {1}, så en del av utseendet eller virkemåten kan mangle.",
+ "Beholdt som kode fordi {0} av {1} sider laster filer fra nettet. Som kode beholder sidene sine egne skript og stilregler, også de responsive; de filene blir ikke med i noe tilfelle.",
+ "Som elementer kommer {0} av {1} sider uten filene de laster fra {2}, så en del av utseendet eller virkemåten deres kan mangle.",
+ "Beholdt 1 stilregel for innholdet sidens skript bygger.",
+ "Beholdt {0} stilregler for innholdet sidens skript bygger.",
+ "Beholdt 1 stilregel for innholdet sidens skript bygger, uten å sjekke om de konverterte elementene bruker den: sjekken tok for lang tid, så alle reglene ble beholdt.",
+ "Beholdt {0} stilregler for innholdet sidens skript bygger, uten å sjekke hvilke av dem de konverterte elementene bruker: sjekken tok for lang tid, så alle reglene ble beholdt.",
+ "1 stilregel til ble utelatt: høyst {1} regler og {2} KiB beholdes for et skript.",
+ "{0} stilregler til ble utelatt: høyst {1} regler og {2} KiB beholdes for et skript.",
+ "Stilregelen som var beholdt for innholdet sidens skript bygger, ble utelatt fordi sidens kode ville blitt for stor.",
+ "De {0} stilreglene som var beholdt for innholdet sidens skript bygger, ble utelatt fordi sidens kode ville blitt for stor.",
+ "1 skrift eller registrert egenskap fra sidens stilark ble utelatt fordi nettstedet allerede bruker navnet.",
+ "{0} skrifter eller registrerte egenskaper fra sidens stilark ble utelatt fordi nettstedet allerede bruker navnene.",
+ "Eksporterte {0} fil.",
+ "Hvert resultat viser hvor det finnes. Åpne den fanen og seksjonen for å bruke det.",
+ "Stilark",
+ "Skriftfil",
+ "Med en hake laster FormWeb på denne datamaskinen ned filen fra verten nå, og filen blir en del av nettstedet. Ingenting lastes ned uten en hake.",
+ "Laster ned",
+ "Alle filer sidene laster fra nettet, er krysset av og lastet ned, så sidene beholder utseendet i begge tilfeller.",
+ "Beholdt som kode, så sidene beholder sine egne skript og stilregler. Filer fra {0} er ikke krysset av eller ikke lastet ned, så de mangler i begge tilfeller.",
+ "Som elementer kommer sidene uten filene fra {0} som ikke er krysset av eller ikke lastet ned, så en del av utseendet eller virkemåten kan mangle.",
+ "Venter på nedlastingene...",
+ "Ingen fil fra nettet ble med: nedlastingene er ikke lenger lagret. Kryss av filene igjen i en ny gjennomgang for å få dem med.",
+ "1 fil fra nettet ble med.",
+ "{0} filer fra nettet ble med.",
+ "1 skrift fra nettet er nå en del av dette nettstedet.",
+ "{0} skrifter fra nettet er nå en del av dette nettstedet.",
+ "Angre to ganger for å få sidene tilbake som kode, tre ganger for å fjerne dem.",
+ "Skriptet på 1 side ble ikke ferdig i tide, så den siden ble målt uten å kjøre det.",
+ "Skriptene på {0} sider ble ikke ferdige i tide, så de sidene ble målt uten å kjøre dem.",
+ "Et bilde av det sidens skript bygger. Det ekte kjører i forhåndsvisningen og på det publiserte nettstedet.",
] as readonly string[];
diff --git a/frontend/src/i18n/locales/nl.ts b/frontend/src/i18n/locales/nl.ts
index ba9c6f61..5111c73d 100644
--- a/frontend/src/i18n/locales/nl.ts
+++ b/frontend/src/i18n/locales/nl.ts
@@ -3028,4 +3028,77 @@ export default [
"Niet behouden: {0} is ongewijzigd.",
"Het element is elders gewijzigd, dus de proef is vervallen.",
"De wijziging is geweigerd.",
+ "Auditmarkeringen tonen",
+ "Auditmarkeringen op de pagina tonen",
+ "Zet een kleine markering op elk element van deze pagina dat een probleem heeft. De markeringen verschijnen op de pagina als dit dialoogvenster gesloten is. Klik op een markering om het element te selecteren.",
+ "1 probleem heeft geen element, dus het heeft geen markering.",
+ "{0} problemen hebben geen element, dus ze hebben geen markering.",
+ "Markeringen worden getekend op de eerste {0} van {1} elementen met problemen op deze pagina.",
+ "1 probleem op {0}",
+ "{0} problemen op {1}",
+ "Problemen op {0}",
+ "De audit kon niet worden uitgevoerd, dus de auditmarkeringen zijn verborgen.",
+ "Auditmarkeringen staan aan: elk element van deze pagina met een probleem toont een markering.",
+ "Auditmarkeringen staan uit.",
+ "Waar exports worden opgeslagen",
+ "De map Downloads",
+ "Een map die je kiest",
+ "Map kiezen...",
+ "Nog geen map gekozen.",
+ "Elke keer vragen",
+ "Elke download uit de editor volgt deze keuze: Statische site exporteren, .fweb-project downloaden, QR-codes en afbeeldingsexports. Met Elke keer vragen vraagt elk bestand waar het heen moet. Als de gekozen map niet kan worden gebruikt wanneer een bestand wordt opgeslagen, gaat het bestand naar Downloads en zegt de melding dat.",
+ "In een browser bepaalt de browser waar downloads terechtkomen.",
+ "Een andere map kiezen",
+ "De map kiezen waarin exports worden opgeslagen",
+ "{0} opslaan...",
+ "{0} kon niet worden opgeslagen in {1}. Controleer of de map bestaat en vrije ruimte heeft, en probeer het opnieuw.",
+ "De gekozen map {0} ontbreekt of is niet beschrijfbaar, dus {1} is opgeslagen in {2}.",
+ "Er is niets opgeslagen.",
+ "{0} en {1}",
+ "{0}, {1}",
+ "{0} en nog 1 host",
+ "{0} en nog {1} hosts",
+ "Bestanden van {0} zijn niet meegenomen, dus een deel van het uiterlijk of gedrag kan ontbreken.",
+ "1 stylesheet van {0}",
+ "{0} stylesheets van {1}",
+ "1 script van {0}",
+ "{0} scripts van {1}",
+ "nog 1 bestand",
+ "nog {0} bestanden",
+ "Deze pagina laadt bestanden van het web: {0}. Alleen de aangevinkte bestanden worden meegenomen.",
+ "Als code bewaard, zodat de pagina haar eigen scripts en stijlregels houdt, ook de responsieve. De bestanden die ze van het web laadt, worden in geen geval meegenomen.",
+ "Als elementen komt de pagina binnen zonder de bestanden die ze van {0} laadt, dus een deel van haar uiterlijk of gedrag kan ontbreken.",
+ "Als code bewaard, omdat 1 van {0} pagina's bestanden van het web laadt. Als code houden de pagina's hun eigen scripts en stijlregels, ook de responsieve; die bestanden worden in geen geval meegenomen.",
+ "Als elementen komt 1 van {0} pagina's binnen zonder de bestanden die ze van {1} laadt, dus een deel van haar uiterlijk of gedrag kan ontbreken.",
+ "Als code bewaard, omdat {0} van {1} pagina's bestanden van het web laden. Als code houden de pagina's hun eigen scripts en stijlregels, ook de responsieve; die bestanden worden in geen geval meegenomen.",
+ "Als elementen komen {0} van {1} pagina's binnen zonder de bestanden die ze van {2} laden, dus een deel van hun uiterlijk of gedrag kan ontbreken.",
+ "1 stijlregel bewaard voor de inhoud die het script van de pagina bouwt.",
+ "{0} stijlregels bewaard voor de inhoud die het script van de pagina bouwt.",
+ "1 stijlregel bewaard voor de inhoud die het script van de pagina bouwt, zonder te controleren of de omgezette elementen haar gebruiken: controleren duurde te lang, dus elke regel is bewaard.",
+ "{0} stijlregels bewaard voor de inhoud die het script van de pagina bouwt, zonder te controleren welke de omgezette elementen gebruiken: controleren duurde te lang, dus elke regel is bewaard.",
+ "Nog 1 stijlregel is weggelaten: voor een script worden hoogstens {1} regels en {2} KiB bewaard.",
+ "Nog {0} stijlregels zijn weggelaten: voor een script worden hoogstens {1} regels en {2} KiB bewaard.",
+ "De stijlregel die voor de inhoud van het paginascript was bewaard, is weggelaten omdat de code van de pagina te groot zou worden.",
+ "De {0} stijlregels die voor de inhoud van het paginascript waren bewaard, zijn weggelaten omdat de code van de pagina te groot zou worden.",
+ "1 lettertype of geregistreerde eigenschap uit de stylesheet van de pagina is weggelaten omdat de site die naam al gebruikt.",
+ "{0} lettertypen of geregistreerde eigenschappen uit de stylesheet van de pagina zijn weggelaten omdat de site die namen al gebruikt.",
+ "{0} bestand geëxporteerd.",
+ "Elk resultaat laat zien waar het staat. Open dat tabblad en die sectie om het te gebruiken.",
+ "Stylesheet",
+ "Lettertypebestand",
+ "Met een vinkje downloadt FormWeb op deze computer dat bestand nu van zijn host, en wordt het bestand deel van de site. Zonder vinkje wordt niets gedownload.",
+ "Downloaden",
+ "Elk bestand dat de pagina's van het web laden is aangevinkt en gedownload, dus de pagina's houden hun uiterlijk in beide gevallen.",
+ "Als code bewaard, zodat de pagina's hun eigen scripts en stijlregels houden. Bestanden van {0} zijn niet aangevinkt of niet gedownload, dus die ontbreken in beide gevallen.",
+ "Als elementen komen de pagina's binnen zonder de bestanden van {0} die niet aangevinkt of niet gedownload zijn, dus een deel van hun uiterlijk of gedrag kan ontbreken.",
+ "Wachten op de downloads...",
+ "Er is geen bestand van het web meegekomen: de downloads worden niet meer bewaard. Vink de bestanden opnieuw aan in een nieuwe controle om ze mee te nemen.",
+ "1 bestand van het web is meegekomen.",
+ "{0} bestanden van het web zijn meegekomen.",
+ "1 lettertype van het web hoort nu bij deze site.",
+ "{0} lettertypen van het web horen nu bij deze site.",
+ "Maak twee keer ongedaan om de pagina's terug te krijgen als code, drie keer om ze te verwijderen.",
+ "Het script van 1 pagina was niet op tijd klaar, dus die pagina is gemeten zonder het uit te voeren.",
+ "De scripts van {0} pagina's waren niet op tijd klaar, dus die pagina's zijn gemeten zonder ze uit te voeren.",
+ "Een afbeelding van wat het script van deze pagina bouwt. Het echte werk draait in Voorbeeld en op de gepubliceerde site.",
] as readonly string[];
diff --git a/frontend/src/i18n/locales/pl.ts b/frontend/src/i18n/locales/pl.ts
index 9821f83c..db32d8e9 100644
--- a/frontend/src/i18n/locales/pl.ts
+++ b/frontend/src/i18n/locales/pl.ts
@@ -3028,4 +3028,77 @@ export default [
"Nie zachowano: {0} bez zmian.",
"Element został zmieniony gdzie indziej, więc próba została odrzucona.",
"Zmiana została odrzucona.",
+ "Pokaż znaczniki audytu",
+ "Pokazuj znaczniki audytu na stronie",
+ "Umieszcza mały znacznik na każdym elemencie tej strony, który ma problem. Znaczniki pojawiają się na stronie, gdy to okno dialogowe jest zamknięte. Kliknij znacznik, aby zaznaczyć element.",
+ "1 problem nie ma elementu, więc nie ma znacznika.",
+ "Problemy bez elementu: {0}, więc nie mają znaczników.",
+ "Znaczniki są rysowane na pierwszych {0} z {1} elementów z problemami na tej stronie.",
+ "1 problem w elemencie {0}",
+ "Problemy w elemencie {1}: {0}",
+ "Problemy w elemencie {0}",
+ "Nie udało się uruchomić audytu, więc znaczniki audytu są ukryte.",
+ "Znaczniki audytu są włączone: każdy element tej strony z problemem pokazuje znacznik.",
+ "Znaczniki audytu są wyłączone.",
+ "Gdzie zapisywane są eksporty",
+ "Folder Pobrane",
+ "Wybrany przez ciebie folder",
+ "Wybierz folder...",
+ "Nie wybrano jeszcze folderu.",
+ "Pytaj za każdym razem",
+ "Każde pobranie z edytora stosuje się do tego wyboru: Eksportuj witrynę statyczną, Pobierz projekt .fweb, kody QR i eksporty obrazów. Przy Pytaj za każdym razem każdy plik pyta, gdzie ma trafić. Jeśli wybranego folderu nie da się użyć przy zapisywaniu pliku, plik trafia do folderu Pobrane, a powiadomienie o tym informuje.",
+ "W przeglądarce to przeglądarka decyduje, gdzie trafiają pobrane pliki.",
+ "Wybierz inny folder",
+ "Wybierz folder, w którym zapisywane są eksporty",
+ "Zapisywanie {0}...",
+ "Nie udało się zapisać {0} w {1}. Sprawdź, czy folder istnieje i ma wolne miejsce, a następnie spróbuj ponownie.",
+ "Wybrany folder {0} nie istnieje lub nie można w nim zapisywać, więc zapisano {1} w {2}.",
+ "Nic nie zostało zapisane.",
+ "{0} i {1}",
+ "{0}, {1}",
+ "{0} i 1 inny host",
+ "{0} i inne hosty: {1}",
+ "Pliki z {0} nie zostały przeniesione, więc może brakować części wyglądu lub działania.",
+ "1 arkusz stylów z {0}",
+ "arkusze stylów z {1}: {0}",
+ "1 skrypt z {0}",
+ "skrypty z {1}: {0}",
+ "1 inny plik",
+ "inne pliki: {0}",
+ "Ta strona wczytuje pliki z internetu: {0}. Przenoszone są tylko zaznaczone pliki.",
+ "Zachowana jako kod, więc strona zachowuje własne skrypty i reguły stylów, także responsywne. Pliki, które wczytuje z internetu, nie są przenoszone w żadnym przypadku.",
+ "Jako elementy strona trafi bez plików, które wczytuje z {0}, więc może zabraknąć części jej wyglądu lub działania.",
+ "Zachowane jako kod, bo 1 z {0} stron wczytuje pliki z internetu. Jako kod strony zachowują własne skrypty i reguły stylów, także responsywne; tych plików nie przenosi się w żadnym przypadku.",
+ "Jako elementy 1 z {0} stron trafi bez plików, które wczytuje z {1}, więc może zabraknąć części jej wyglądu lub działania.",
+ "Zachowane jako kod, bo strony wczytujące pliki z internetu: {0} z {1}. Jako kod strony zachowują własne skrypty i reguły stylów, także responsywne; tych plików nie przenosi się w żadnym przypadku.",
+ "Jako elementy strony ({0} z {1}) trafią bez plików, które wczytują z {2}, więc może zabraknąć części ich wyglądu lub działania.",
+ "Zachowano 1 regułę stylu dla treści, którą buduje skrypt strony.",
+ "Zachowane reguły stylu dla treści, którą buduje skrypt strony: {0}.",
+ "Zachowano 1 regułę stylu dla treści, którą buduje skrypt strony, bez sprawdzania, czy zamienione elementy jej używają: sprawdzanie trwało zbyt długo, więc zachowano wszystkie reguły.",
+ "Zachowane reguły stylu dla treści, którą buduje skrypt strony: {0}, bez sprawdzania, których z nich używają zamienione elementy: sprawdzanie trwało zbyt długo, więc zachowano wszystkie reguły.",
+ "Pominięto jeszcze 1 regułę stylu: dla skryptu zachowuje się najwyżej {1} reguł i {2} KiB.",
+ "Pominięte kolejne reguły stylu: {0}. Dla skryptu zachowuje się najwyżej {1} reguł i {2} KiB.",
+ "Reguła stylu zachowana dla treści budowanej przez skrypt strony została pominięta, bo kod strony byłby za duży.",
+ "Reguły stylu zachowane dla treści budowanej przez skrypt strony ({0}) zostały pominięte, bo kod strony byłby za duży.",
+ "Pominięto 1 czcionkę lub zarejestrowaną właściwość z arkusza stylów strony, bo witryna już używa jej nazwy.",
+ "Pominięte czcionki lub zarejestrowane właściwości z arkusza stylów strony: {0}, bo witryna już używa ich nazw.",
+ "Wyeksportowano plików: {0}.",
+ "Każdy wynik pokazuje, gdzie go znaleźć. Otwórz tę kartę i sekcję, aby go użyć.",
+ "Arkusz stylów",
+ "Plik czcionki",
+ "Zaznaczenie sprawia, że FormWeb na tym komputerze od razu pobiera ten plik z jego hosta, a plik staje się częścią witryny. Bez zaznaczenia nic nie jest pobierane.",
+ "Pobieranie",
+ "Każdy plik, który strony wczytują z internetu, jest zaznaczony i pobrany, więc strony zachowają swój wygląd w każdym przypadku.",
+ "Zachowane jako kod, więc strony zachowują własne skrypty i reguły stylów. Pliki z {0} nie są zaznaczone lub nie zostały pobrane, więc zabraknie ich w każdym przypadku.",
+ "Jako elementy strony trafią bez plików z {0}, które nie są zaznaczone lub nie zostały pobrane, więc może zabraknąć części ich wyglądu lub działania.",
+ "Oczekiwanie na pobrania...",
+ "Nie przeniesiono żadnego pliku z internetu: pobrane pliki nie są już przechowywane. Zaznacz pliki ponownie w nowym przeglądzie, aby je przenieść.",
+ "Przeniesiono 1 plik z internetu.",
+ "Przeniesiono plików z internetu: {0}.",
+ "1 czcionka z internetu jest teraz częścią tej witryny.",
+ "Czcionki z internetu, które są teraz częścią tej witryny: {0}.",
+ "Cofnij dwa razy, aby odzyskać strony jako kod, trzy razy, aby je usunąć.",
+ "Skrypt 1 strony nie zakończył się na czas, więc ta strona została zmierzona bez jego uruchomienia.",
+ "Skrypty stron nie zakończyły się na czas (stron: {0}), więc te strony zostały zmierzone bez ich uruchomienia.",
+ "Obraz tego, co buduje skrypt tej strony. Prawdziwa wersja działa w podglądzie i w opublikowanej witrynie.",
] as readonly string[];
diff --git a/frontend/src/i18n/locales/pt-BR.ts b/frontend/src/i18n/locales/pt-BR.ts
index 57dfdb56..cdfa8a60 100644
--- a/frontend/src/i18n/locales/pt-BR.ts
+++ b/frontend/src/i18n/locales/pt-BR.ts
@@ -3028,4 +3028,77 @@ export default [
"Não mantido: {0} não mudou.",
"O elemento foi alterado em outro lugar, então o teste foi descartado.",
"A alteração foi recusada.",
+ "Mostrar marcadores de auditoria",
+ "Mostrar marcadores de auditoria na página",
+ "Coloca um pequeno marcador em cada elemento desta página que tem um problema. Os marcadores aparecem na página quando esta caixa de diálogo está fechada. Clique em um marcador para selecionar o elemento.",
+ "1 problema não tem elemento, então não tem marcador.",
+ "{0} problemas não têm elemento, então não têm marcador.",
+ "Os marcadores são desenhados nos primeiros {0} de {1} elementos com problemas desta página.",
+ "1 problema em {0}",
+ "{0} problemas em {1}",
+ "Problemas em {0}",
+ "Não foi possível executar a auditoria, então os marcadores de auditoria estão ocultos.",
+ "Marcadores de auditoria ativados: cada elemento desta página com um problema mostra um marcador.",
+ "Marcadores de auditoria desativados.",
+ "Onde as exportações são salvas",
+ "A pasta Downloads",
+ "Uma pasta que você escolher",
+ "Escolher pasta...",
+ "Nenhuma pasta escolhida ainda.",
+ "Perguntar sempre",
+ "Todos os downloads do editor seguem esta escolha: Exportar site estático, Baixar projeto .fweb, códigos QR e exportações de imagens. Com Perguntar sempre, cada arquivo pergunta para onde vai. Se a pasta escolhida não puder ser usada quando um arquivo for salvo, o arquivo vai para Downloads e o aviso informa isso.",
+ "Em um navegador, o navegador decide para onde vão os downloads.",
+ "Escolher outra pasta",
+ "Escolher a pasta onde as exportações são salvas",
+ "Salvando {0}...",
+ "Não foi possível salvar {0} em {1}. Verifique se a pasta existe e tem espaço livre e tente novamente.",
+ "A pasta escolhida {0} não existe ou não permite gravação, então {1} foi salvo em {2}.",
+ "Nada foi salvo.",
+ "{0} e {1}",
+ "{0}, {1}",
+ "{0} e mais 1 host",
+ "{0} e mais {1} hosts",
+ "Os arquivos de {0} não foram trazidos, então parte da aparência ou do comportamento pode estar faltando.",
+ "1 folha de estilo de {0}",
+ "{0} folhas de estilo de {1}",
+ "1 script de {0}",
+ "{0} scripts de {1}",
+ "mais 1 arquivo",
+ "mais {0} arquivos",
+ "Esta página carrega arquivos da web: {0}. Somente os arquivos marcados são trazidos.",
+ "Mantida como código, então a página conserva seus próprios scripts e regras de estilo, inclusive os responsivos. Os arquivos que ela carrega da web não são trazidos de nenhuma forma.",
+ "Como elementos, a página chega sem os arquivos que carrega de {0}, então parte da aparência ou do comportamento pode faltar.",
+ "Mantidas como código porque 1 de {0} páginas carrega arquivos da web. Como código, as páginas conservam seus próprios scripts e regras de estilo, inclusive os responsivos; esses arquivos não são trazidos de nenhuma forma.",
+ "Como elementos, 1 de {0} páginas chega sem os arquivos que carrega de {1}, então parte da aparência ou do comportamento pode faltar.",
+ "Mantidas como código porque {0} de {1} páginas carregam arquivos da web. Como código, as páginas conservam seus próprios scripts e regras de estilo, inclusive os responsivos; esses arquivos não são trazidos de nenhuma forma.",
+ "Como elementos, {0} de {1} páginas chegam sem os arquivos que carregam de {2}, então parte da aparência ou do comportamento pode faltar.",
+ "1 regra de estilo mantida para o conteúdo que o script da página constrói.",
+ "{0} regras de estilo mantidas para o conteúdo que o script da página constrói.",
+ "1 regra de estilo mantida para o conteúdo que o script da página constrói sem verificar se os elementos convertidos a usam: a verificação demorou demais, então todas as regras foram mantidas.",
+ "{0} regras de estilo mantidas para o conteúdo que o script da página constrói sem verificar quais delas os elementos convertidos usam: a verificação demorou demais, então todas as regras foram mantidas.",
+ "Mais 1 regra de estilo foi deixada de fora: no máximo {1} regras e {2} KiB são mantidos para um script.",
+ "Mais {0} regras de estilo foram deixadas de fora: no máximo {1} regras e {2} KiB são mantidos para um script.",
+ "A regra de estilo mantida para o conteúdo que o script da página constrói foi deixada de fora porque o código da página ficaria grande demais.",
+ "As {0} regras de estilo mantidas para o conteúdo que o script da página constrói foram deixadas de fora porque o código da página ficaria grande demais.",
+ "1 fonte ou propriedade registrada da folha de estilo da página foi deixada de fora porque o site já usa o nome dela.",
+ "{0} fontes ou propriedades registradas da folha de estilo da página foram deixadas de fora porque o site já usa os nomes delas.",
+ "{0} arquivo exportado.",
+ "Cada resultado mostra onde encontrá-lo. Abra essa aba e essa seção para usá-lo.",
+ "Folha de estilo",
+ "Arquivo de fonte",
+ "Ao marcar, o FormWeb neste computador baixa agora esse arquivo do host dele, e o arquivo passa a fazer parte do site. Nada é baixado sem uma marcação.",
+ "Baixando",
+ "Todos os arquivos que as páginas carregam da web estão marcados e baixados, então as páginas mantêm a aparência de qualquer forma.",
+ "Mantidas como código, então as páginas conservam seus próprios scripts e regras de estilo. Os arquivos de {0} não estão marcados ou não foram baixados, então vão faltar de qualquer forma.",
+ "Como elementos, as páginas chegam sem os arquivos de {0} que não estão marcados ou não foram baixados, então parte da aparência ou do comportamento pode faltar.",
+ "Aguardando os downloads...",
+ "Nenhum arquivo da web foi trazido: os downloads não estão mais guardados. Marque os arquivos de novo em uma nova revisão para trazê-los.",
+ "1 arquivo da web foi trazido.",
+ "{0} arquivos da web foram trazidos.",
+ "1 fonte da web agora faz parte deste site.",
+ "{0} fontes da web agora fazem parte deste site.",
+ "Desfaça duas vezes para ter as páginas de volta como código, três vezes para removê-las.",
+ "O script de 1 página não terminou a tempo, então essa página foi medida sem executá-lo.",
+ "Os scripts de {0} páginas não terminaram a tempo, então essas páginas foram medidas sem executá-los.",
+ "Uma imagem do que o script desta página constrói. O conteúdo real roda em Visualizar e no site publicado.",
] as readonly string[];
diff --git a/frontend/src/i18n/locales/ru.ts b/frontend/src/i18n/locales/ru.ts
index 12ba244b..23e7b760 100644
--- a/frontend/src/i18n/locales/ru.ts
+++ b/frontend/src/i18n/locales/ru.ts
@@ -3028,4 +3028,77 @@ export default [
"Не оставлено: {0} без изменений.",
"Элемент был изменён в другом месте, поэтому проба отменена.",
"Изменение отклонено.",
+ "Показать маркеры аудита",
+ "Показывать маркеры аудита на странице",
+ "Ставит небольшой маркер на каждый элемент этой страницы, у которого есть проблема. Маркеры видны на странице, когда этот диалог закрыт. Нажмите на маркер, чтобы выбрать элемент.",
+ "У 1 проблемы нет элемента, поэтому у неё нет маркера.",
+ "Проблем без элемента: {0}, поэтому у них нет маркеров.",
+ "Маркеры нарисованы на первых {0} из {1} элементов с проблемами на этой странице.",
+ "1 проблема у элемента {0}",
+ "Проблем у элемента {1}: {0}",
+ "Проблемы у элемента {0}",
+ "Не удалось выполнить аудит, поэтому маркеры аудита скрыты.",
+ "Маркеры аудита включены: каждый элемент этой страницы с проблемой показывает маркер.",
+ "Маркеры аудита выключены.",
+ "Куда сохраняются экспортированные файлы",
+ "Папка «Загрузки»",
+ "Папка, которую вы выберете",
+ "Выбрать папку...",
+ "Папка ещё не выбрана.",
+ "Спрашивать каждый раз",
+ "Все загрузки из редактора следуют этому выбору: «Экспорт статического сайта», «Скачать проект .fweb», QR-коды и экспорт изображений. При «Спрашивать каждый раз» каждый файл спрашивает, куда его сохранить. Если выбранную папку нельзя использовать при сохранении файла, файл попадает в «Загрузки», и уведомление сообщает об этом.",
+ "В браузере место для загрузок выбирает сам браузер.",
+ "Выбрать другую папку",
+ "Выбрать папку для сохранения экспортированных файлов",
+ "Сохранение {0}...",
+ "Не удалось сохранить {0} в {1}. Убедитесь, что папка существует и в ней есть свободное место, затем повторите попытку.",
+ "Выбранная папка {0} отсутствует или недоступна для записи, поэтому {1} сохранён в {2}.",
+ "Ничего не сохранено.",
+ "{0} и {1}",
+ "{0}, {1}",
+ "{0} и ещё 1 хост",
+ "{0} и другие хосты ({1})",
+ "Файлы с {0} не перенесены, поэтому часть оформления или поведения может отсутствовать.",
+ "1 таблица стилей с {0}",
+ "таблицы стилей с {1} ({0})",
+ "1 скрипт с {0}",
+ "скрипты с {1} ({0})",
+ "ещё 1 файл",
+ "ещё файлы ({0})",
+ "Эта страница загружает файлы из интернета: {0}. Переносятся только отмеченные файлы.",
+ "Оставлено как код, поэтому страница сохраняет свои скрипты и правила стилей, включая адаптивные. Файлы, которые она загружает из интернета, не переносятся ни в одном из вариантов.",
+ "Как элементы страница придёт без файлов, которые она загружает с {0}, поэтому часть её оформления или поведения может отсутствовать.",
+ "Оставлено как код, потому что 1 из {0} страниц загружает файлы из интернета. Как код страницы сохраняют свои скрипты и правила стилей, включая адаптивные; эти файлы не переносятся ни в одном из вариантов.",
+ "Как элементы 1 из {0} страниц придёт без файлов, которые она загружает с {1}, поэтому часть её оформления или поведения может отсутствовать.",
+ "Оставлено как код, потому что страниц, загружающих файлы из интернета: {0} из {1}. Как код страницы сохраняют свои скрипты и правила стилей, включая адаптивные; эти файлы не переносятся ни в одном из вариантов.",
+ "Как элементы страницы ({0} из {1}) придут без файлов, которые они загружают с {2}, поэтому часть их оформления или поведения может отсутствовать.",
+ "Сохранено правило стиля для содержимого, которое строит скрипт страницы.",
+ "Сохранено правил стиля для содержимого, которое строит скрипт страницы: {0}.",
+ "Сохранено правило стиля для содержимого, которое строит скрипт страницы, без проверки, используют ли его преобразованные элементы: проверка заняла слишком много времени, поэтому сохранены все правила.",
+ "Сохранено правил стиля для содержимого, которое строит скрипт страницы: {0}, без проверки, какие из них используют преобразованные элементы: проверка заняла слишком много времени, поэтому сохранены все правила.",
+ "Пропущено ещё одно правило стиля: для скрипта сохраняется не больше {1} правил и {2} КиБ.",
+ "Пропущено ещё правил стиля: {0}. Для скрипта сохраняется не больше {1} правил и {2} КиБ.",
+ "Правило стиля, сохранённое для содержимого скрипта страницы, пропущено, потому что код страницы стал бы слишком большим.",
+ "Правила стиля, сохранённые для содержимого скрипта страницы ({0}), пропущены, потому что код страницы стал бы слишком большим.",
+ "Шрифт или зарегистрированное свойство из таблицы стилей страницы пропущено, потому что сайт уже использует это имя.",
+ "Пропущено шрифтов или зарегистрированных свойств из таблицы стилей страницы: {0}, потому что сайт уже использует эти имена.",
+ "Экспортировано файлов: {0}.",
+ "Каждый результат показывает, где его найти. Откройте эту вкладку и раздел, чтобы им воспользоваться.",
+ "Таблица стилей",
+ "Файл шрифта",
+ "Отметка значит, что FormWeb на этом компьютере сейчас скачает этот файл с его хоста и файл станет частью сайта. Без отметки ничего не скачивается.",
+ "Скачивание",
+ "Все файлы, которые страницы загружают из интернета, отмечены и скачаны, поэтому страницы сохранят свой вид в любом из вариантов.",
+ "Оставлено как код, поэтому страницы сохраняют свои скрипты и правила стилей. Файлы с {0} не отмечены или не скачаны, поэтому их не будет ни в одном из вариантов.",
+ "Как элементы страницы придут без неотмеченных или нескачанных файлов с {0}, поэтому часть их оформления или поведения может отсутствовать.",
+ "Ожидание загрузок...",
+ "Ни один файл из интернета не перенесён: скачанные файлы больше не хранятся. Отметьте файлы снова в новом просмотре, чтобы перенести их.",
+ "Перенесён 1 файл из интернета.",
+ "Перенесено файлов из интернета: {0}.",
+ "1 шрифт из интернета теперь входит в этот сайт.",
+ "Шрифтов из интернета, которые теперь входят в этот сайт: {0}.",
+ "Отмените дважды, чтобы вернуть страницы как код, трижды, чтобы удалить их.",
+ "Скрипт страницы не завершился вовремя, поэтому страница измерена без его запуска.",
+ "Скрипты страниц не завершились вовремя (страниц: {0}), поэтому эти страницы измерены без их запуска.",
+ "Изображение того, что строит скрипт этой страницы. Настоящая версия работает в просмотре и на опубликованном сайте.",
] as readonly string[];
diff --git a/frontend/src/i18n/locales/sv.ts b/frontend/src/i18n/locales/sv.ts
index 1e1e33d8..0ba673df 100644
--- a/frontend/src/i18n/locales/sv.ts
+++ b/frontend/src/i18n/locales/sv.ts
@@ -3028,4 +3028,77 @@ export default [
"Inte behållet: {0} är oförändrat.",
"Elementet ändrades på annat håll, så provningen släpptes.",
"Ändringen avvisades.",
+ "Visa granskningsmarkörer",
+ "Visa granskningsmarkörer på sidan",
+ "Sätter en liten markör på varje element på den här sidan som har ett problem. Markörerna visas på sidan när den här dialogrutan är stängd. Klicka på en markör för att markera elementet.",
+ "1 problem har inget element, så det har ingen markör.",
+ "{0} problem har inget element, så de har ingen markör.",
+ "Markörer ritas på de första {0} av {1} element med problem på den här sidan.",
+ "1 problem på {0}",
+ "{0} problem på {1}",
+ "Problem på {0}",
+ "Granskningen kunde inte köras, så granskningsmarkörerna är dolda.",
+ "Granskningsmarkörer är på: varje element på den här sidan med ett problem visar en markör.",
+ "Granskningsmarkörer är av.",
+ "Var exporter sparas",
+ "Mappen Hämtade filer",
+ "En mapp som du väljer",
+ "Välj mapp...",
+ "Ingen mapp har valts än.",
+ "Fråga varje gång",
+ "Alla nedladdningar från redigeraren följer det här valet: Exportera statisk webbplats, Ladda ned .fweb-projekt, QR-koder och bildexporter. Med Fråga varje gång frågar varje fil var den ska hamna. Om den valda mappen inte kan användas när en fil sparas hamnar filen i Hämtade filer och meddelandet säger det.",
+ "I en webbläsare bestämmer webbläsaren var nedladdningar hamnar.",
+ "Välj en annan mapp",
+ "Välj mappen som exporter sparas i",
+ "Sparar {0}...",
+ "{0} kunde inte sparas i {1}. Kontrollera att mappen finns och har ledigt utrymme och försök sedan igen.",
+ "Den valda mappen {0} saknas eller går inte att skriva till, så {1} sparades i {2}.",
+ "Inget sparades.",
+ "{0} och {1}",
+ "{0}, {1}",
+ "{0} och 1 värd till",
+ "{0} och {1} värdar till",
+ "Filer från {0} följde inte med, så en del av utseendet eller beteendet kan saknas.",
+ "1 formatmall från {0}",
+ "{0} formatmallar från {1}",
+ "1 skript från {0}",
+ "{0} skript från {1}",
+ "1 fil till",
+ "{0} filer till",
+ "Den här sidan läser in filer från webben: {0}. Bara de markerade filerna följer med.",
+ "Behålls som kod, så sidan behåller sina egna skript och stilregler, även de responsiva. Filerna som den läser in från webben följer inte med i något av fallen.",
+ "Som element kommer sidan utan filerna som den läser in från {0}, så en del av dess utseende eller beteende kan saknas.",
+ "Behålls som kod eftersom 1 av {0} sidor läser in filer från webben. Som kod behåller sidorna sina egna skript och stilregler, även de responsiva; de filerna följer inte med i något av fallen.",
+ "Som element kommer 1 av {0} sidor utan filerna som den läser in från {1}, så en del av dess utseende eller beteende kan saknas.",
+ "Behålls som kod eftersom {0} av {1} sidor läser in filer från webben. Som kod behåller sidorna sina egna skript och stilregler, även de responsiva; de filerna följer inte med i något av fallen.",
+ "Som element kommer {0} av {1} sidor utan filerna som de läser in från {2}, så en del av deras utseende eller beteende kan saknas.",
+ "Behöll 1 stilregel för innehållet som sidans skript bygger.",
+ "Behöll {0} stilregler för innehållet som sidans skript bygger.",
+ "Behöll 1 stilregel för innehållet som sidans skript bygger utan att kontrollera om de konverterade elementen använder den: kontrollen tog för lång tid, så alla regler behölls.",
+ "Behöll {0} stilregler för innehållet som sidans skript bygger utan att kontrollera vilka av dem de konverterade elementen använder: kontrollen tog för lång tid, så alla regler behölls.",
+ "1 stilregel till utelämnades: högst {1} regler och {2} KiB behålls för ett skript.",
+ "{0} stilregler till utelämnades: högst {1} regler och {2} KiB behålls för ett skript.",
+ "Stilregeln som behölls för innehållet som sidans skript bygger utelämnades eftersom sidans kod skulle bli för stor.",
+ "De {0} stilregler som behölls för innehållet som sidans skript bygger utelämnades eftersom sidans kod skulle bli för stor.",
+ "1 typsnitt eller registrerad egenskap från sidans formatmall utelämnades eftersom webbplatsen redan använder namnet.",
+ "{0} typsnitt eller registrerade egenskaper från sidans formatmall utelämnades eftersom webbplatsen redan använder namnen.",
+ "{0} fil exporterades.",
+ "Varje resultat visar var det finns. Öppna den fliken och sektionen för att använda det.",
+ "Formatmall",
+ "Teckensnittsfil",
+ "Med en bock hämtar FormWeb på den här datorn filen från dess värd nu, och filen blir en del av webbplatsen. Inget hämtas utan en bock.",
+ "Hämtar",
+ "Alla filer som sidorna läser in från webben är markerade och hämtade, så sidorna behåller sitt utseende i båda fallen.",
+ "Behålls som kod, så sidorna behåller sina egna skript och stilregler. Filer från {0} är inte markerade eller inte hämtade, så de saknas i båda fallen.",
+ "Som element kommer sidorna utan de filer från {0} som inte är markerade eller inte hämtade, så en del av deras utseende eller beteende kan saknas.",
+ "Väntar på hämtningarna...",
+ "Ingen fil från webben följde med: hämtningarna sparas inte längre. Markera filerna igen i en ny granskning för att få med dem.",
+ "1 fil från webben följde med.",
+ "{0} filer från webben följde med.",
+ "1 teckensnitt från webben är nu en del av den här webbplatsen.",
+ "{0} teckensnitt från webben är nu en del av den här webbplatsen.",
+ "Ångra två gånger för att få tillbaka sidorna som kod, tre gånger för att ta bort dem.",
+ "Skriptet på 1 sida blev inte klart i tid, så den sidan mättes utan att det kördes.",
+ "Skripten på {0} sidor blev inte klara i tid, så de sidorna mättes utan att de kördes.",
+ "En bild av det som sidans skript bygger. Det riktiga körs i Förhandsgranska och på den publicerade webbplatsen.",
] as readonly string[];
diff --git a/frontend/src/i18n/locales/th.ts b/frontend/src/i18n/locales/th.ts
index 0161dc90..6c113dde 100644
--- a/frontend/src/i18n/locales/th.ts
+++ b/frontend/src/i18n/locales/th.ts
@@ -3028,4 +3028,77 @@ export default [
"ไม่ได้เก็บไว้: {0} ไม่เปลี่ยนแปลง",
"องค์ประกอบถูกเปลี่ยนจากที่อื่น จึงยกเลิกการลองใช้",
"การเปลี่ยนแปลงถูกปฏิเสธ",
+ "แสดงเครื่องหมายการตรวจสอบ",
+ "แสดงเครื่องหมายการตรวจสอบบนหน้า",
+ "ใส่เครื่องหมายเล็กๆ บนแต่ละองค์ประกอบของหน้านี้ที่มีปัญหา เครื่องหมายจะแสดงบนหน้าเมื่อปิดกล่องโต้ตอบนี้ คลิกเครื่องหมายเพื่อเลือกองค์ประกอบนั้น",
+ "ปัญหา 1 รายการไม่มีองค์ประกอบ จึงไม่มีเครื่องหมาย",
+ "ปัญหา {0} รายการไม่มีองค์ประกอบ จึงไม่มีเครื่องหมาย",
+ "เครื่องหมายแสดงบน {0} องค์ประกอบแรกจาก {1} องค์ประกอบที่มีปัญหาในหน้านี้",
+ "ปัญหา 1 รายการใน {0}",
+ "ปัญหา {0} รายการใน {1}",
+ "ปัญหาใน {0}",
+ "เรียกใช้การตรวจสอบไม่ได้ จึงซ่อนเครื่องหมายการตรวจสอบไว้",
+ "เปิดเครื่องหมายการตรวจสอบแล้ว: แต่ละองค์ประกอบของหน้านี้ที่มีปัญหาจะแสดงเครื่องหมาย",
+ "ปิดเครื่องหมายการตรวจสอบแล้ว",
+ "ที่บันทึกไฟล์ส่งออก",
+ "โฟลเดอร์ดาวน์โหลด",
+ "โฟลเดอร์ที่คุณเลือก",
+ "เลือกโฟลเดอร์...",
+ "ยังไม่ได้เลือกโฟลเดอร์",
+ "ถามทุกครั้ง",
+ "การดาวน์โหลดทั้งหมดจากตัวแก้ไขจะทำตามตัวเลือกนี้: ส่งออกไซต์แบบสถิต ดาวน์โหลดโปรเจกต์ .fweb คิวอาร์โค้ด และการส่งออกรูปภาพ เมื่อเลือก ถามทุกครั้ง แต่ละไฟล์จะถามว่าจะบันทึกที่ใด หากใช้โฟลเดอร์ที่เลือกไม่ได้ขณะบันทึกไฟล์ ไฟล์จะไปที่โฟลเดอร์ดาวน์โหลดและการแจ้งเตือนจะบอกไว้",
+ "ในเบราว์เซอร์ เบราว์เซอร์จะเป็นผู้กำหนดว่าไฟล์ดาวน์โหลดไปอยู่ที่ใด",
+ "เลือกโฟลเดอร์อื่น",
+ "เลือกโฟลเดอร์ที่จะบันทึกไฟล์ส่งออก",
+ "กำลังบันทึก {0}...",
+ "บันทึก {0} ลงใน {1} ไม่ได้ ตรวจสอบว่าโฟลเดอร์มีอยู่และมีพื้นที่ว่าง แล้วลองอีกครั้ง",
+ "ไม่พบโฟลเดอร์ที่เลือก {0} หรือเขียนลงไม่ได้ จึงบันทึก {1} ลงใน {2}",
+ "ไม่ได้บันทึกสิ่งใด",
+ "{0} และ {1}",
+ "{0}, {1}",
+ "{0} และโฮสต์อื่นอีก 1 รายการ",
+ "{0} และโฮสต์อื่นอีก {1} รายการ",
+ "ไม่ได้นำไฟล์จาก {0} มาด้วย ลักษณะหรือการทำงานบางส่วนจึงอาจหายไป",
+ "สไตล์ชีต 1 รายการจาก {0}",
+ "สไตล์ชีต {0} รายการจาก {1}",
+ "สคริปต์ 1 รายการจาก {0}",
+ "สคริปต์ {0} รายการจาก {1}",
+ "ไฟล์อื่นอีก 1 ไฟล์",
+ "ไฟล์อื่นอีก {0} ไฟล์",
+ "หน้านี้โหลดไฟล์จากเว็บ: {0} จะนำมาด้วยเฉพาะไฟล์ที่ทำเครื่องหมายไว้",
+ "เก็บไว้เป็นโค้ด หน้าจึงคงสคริปต์และกฎสไตล์ของตัวเองไว้ รวมถึงกฎแบบตอบสนอง ไฟล์ที่หน้าโหลดจากเว็บจะไม่ถูกนำมาด้วยไม่ว่าจะเลือกแบบใด",
+ "หากนำเข้าเป็นองค์ประกอบ หน้าจะมาโดยไม่มีไฟล์ที่โหลดจาก {0} ลักษณะหรือการทำงานบางส่วนจึงอาจหายไป",
+ "เก็บไว้เป็นโค้ด เพราะ 1 จาก {0} หน้าโหลดไฟล์จากเว็บ เมื่อเป็นโค้ด หน้าจะคงสคริปต์และกฎสไตล์ของตัวเองไว้ รวมถึงกฎแบบตอบสนอง ไฟล์เหล่านั้นจะไม่ถูกนำมาด้วยไม่ว่าจะเลือกแบบใด",
+ "หากนำเข้าเป็นองค์ประกอบ 1 จาก {0} หน้าจะมาโดยไม่มีไฟล์ที่โหลดจาก {1} ลักษณะหรือการทำงานบางส่วนจึงอาจหายไป",
+ "เก็บไว้เป็นโค้ด เพราะ {0} จาก {1} หน้าโหลดไฟล์จากเว็บ เมื่อเป็นโค้ด หน้าจะคงสคริปต์และกฎสไตล์ของตัวเองไว้ รวมถึงกฎแบบตอบสนอง ไฟล์เหล่านั้นจะไม่ถูกนำมาด้วยไม่ว่าจะเลือกแบบใด",
+ "หากนำเข้าเป็นองค์ประกอบ {0} จาก {1} หน้าจะมาโดยไม่มีไฟล์ที่โหลดจาก {2} ลักษณะหรือการทำงานบางส่วนจึงอาจหายไป",
+ "เก็บกฎสไตล์ 1 ข้อไว้สำหรับเนื้อหาที่สคริปต์ของหน้าสร้าง",
+ "เก็บกฎสไตล์ {0} ข้อไว้สำหรับเนื้อหาที่สคริปต์ของหน้าสร้าง",
+ "เก็บกฎสไตล์ 1 ข้อไว้สำหรับเนื้อหาที่สคริปต์ของหน้าสร้างโดยไม่ได้ตรวจว่าองค์ประกอบที่แปลงแล้วใช้กฎนั้นหรือไม่: การตรวจใช้เวลานานเกินไป จึงเก็บกฎไว้ทั้งหมด",
+ "เก็บกฎสไตล์ {0} ข้อไว้สำหรับเนื้อหาที่สคริปต์ของหน้าสร้างโดยไม่ได้ตรวจว่าองค์ประกอบที่แปลงแล้วใช้กฎข้อใด: การตรวจใช้เวลานานเกินไป จึงเก็บกฎไว้ทั้งหมด",
+ "ละกฎสไตล์อีก 1 ข้อ: เก็บได้สูงสุด {1} กฎและ {2} KiB ต่อสคริปต์",
+ "ละกฎสไตล์อีก {0} ข้อ: เก็บได้สูงสุด {1} กฎและ {2} KiB ต่อสคริปต์",
+ "ละกฎสไตล์ที่เก็บไว้สำหรับเนื้อหาที่สคริปต์ของหน้าสร้าง เพราะโค้ดของหน้าจะใหญ่เกินไป",
+ "ละกฎสไตล์ {0} ข้อที่เก็บไว้สำหรับเนื้อหาที่สคริปต์ของหน้าสร้าง เพราะโค้ดของหน้าจะใหญ่เกินไป",
+ "ละฟอนต์หรือคุณสมบัติที่ลงทะเบียน 1 รายการจากสไตล์ชีตของหน้า เพราะไซต์ใช้ชื่อนั้นอยู่แล้ว",
+ "ละฟอนต์หรือคุณสมบัติที่ลงทะเบียน {0} รายการจากสไตล์ชีตของหน้า เพราะไซต์ใช้ชื่อเหล่านั้นอยู่แล้ว",
+ "ส่งออกแล้ว {0} ไฟล์",
+ "ผลลัพธ์แต่ละรายการบอกตำแหน่งที่จะพบ เปิดแท็บและส่วนนั้นเพื่อใช้งาน",
+ "สไตล์ชีต",
+ "ไฟล์ฟอนต์",
+ "เมื่อทำเครื่องหมาย FormWeb บนคอมพิวเตอร์เครื่องนี้จะดาวน์โหลดไฟล์นั้นจากโฮสต์ทันที และไฟล์จะกลายเป็นส่วนหนึ่งของไซต์ จะไม่มีการดาวน์โหลดสิ่งใดหากไม่ได้ทำเครื่องหมาย",
+ "กำลังดาวน์โหลด",
+ "ทุกไฟล์ที่หน้าโหลดจากเว็บถูกทำเครื่องหมายและดาวน์โหลดแล้ว หน้าจึงคงลักษณะไว้ไม่ว่าจะเลือกแบบใด",
+ "เก็บไว้เป็นโค้ด หน้าจึงคงสคริปต์และกฎสไตล์ของตัวเองไว้ ไฟล์จาก {0} ไม่ได้ทำเครื่องหมายหรือไม่ได้ดาวน์โหลด จึงจะหายไปไม่ว่าจะเลือกแบบใด",
+ "หากนำเข้าเป็นองค์ประกอบ หน้าจะมาโดยไม่มีไฟล์จาก {0} ที่ไม่ได้ทำเครื่องหมายหรือไม่ได้ดาวน์โหลด ลักษณะหรือการทำงานบางส่วนจึงอาจหายไป",
+ "กำลังรอการดาวน์โหลด...",
+ "ไม่มีไฟล์จากเว็บถูกนำมาด้วย: ไฟล์ที่ดาวน์โหลดไม่ได้เก็บไว้แล้ว ทำเครื่องหมายไฟล์อีกครั้งในการตรวจทานใหม่เพื่อนำมาด้วย",
+ "นำไฟล์จากเว็บมาด้วย 1 ไฟล์",
+ "นำไฟล์จากเว็บมาด้วย {0} ไฟล์",
+ "ฟอนต์จากเว็บ 1 รายการเป็นส่วนหนึ่งของไซต์นี้แล้ว",
+ "ฟอนต์จากเว็บ {0} รายการเป็นส่วนหนึ่งของไซต์นี้แล้ว",
+ "เลิกทำสองครั้งเพื่อให้หน้ากลับเป็นโค้ด สามครั้งเพื่อลบหน้าออก",
+ "สคริปต์ของ 1 หน้าทำงานไม่เสร็จทันเวลา จึงวัดหน้านั้นโดยไม่เรียกใช้สคริปต์",
+ "สคริปต์ของ {0} หน้าทำงานไม่เสร็จทันเวลา จึงวัดหน้าเหล่านั้นโดยไม่เรียกใช้สคริปต์",
+ "ภาพของสิ่งที่สคริปต์ของหน้านี้สร้าง ของจริงทำงานในดูตัวอย่างและบนไซต์ที่เผยแพร่",
] as readonly string[];
diff --git a/frontend/src/i18n/locales/tr.ts b/frontend/src/i18n/locales/tr.ts
index d4875efe..a7a49e0a 100644
--- a/frontend/src/i18n/locales/tr.ts
+++ b/frontend/src/i18n/locales/tr.ts
@@ -3028,4 +3028,77 @@ export default [
"Korunmadı: {0} değişmedi.",
"Öğe başka bir yerde değiştirildi, bu yüzden deneme bırakıldı.",
"Değişiklik reddedildi.",
+ "Denetim işaretçilerini göster",
+ "Denetim işaretçilerini sayfada göster",
+ "Bu sayfada sorunu olan her öğeye küçük bir işaretçi koyar. İşaretçiler, bu iletişim kutusu kapalıyken sayfada görünür. Öğeyi seçmek için bir işaretçiye tıklayın.",
+ "1 sorunun öğesi yok, bu yüzden işaretçisi de yok.",
+ "{0} sorunun öğesi yok, bu yüzden işaretçileri de yok.",
+ "İşaretçiler, bu sayfada sorunu olan {1} öğenin ilk {0} tanesine çizilir.",
+ "{0} üzerinde 1 sorun",
+ "{1} üzerinde {0} sorun",
+ "{0} üzerindeki sorunlar",
+ "Denetim çalıştırılamadı, bu yüzden denetim işaretçileri gizlendi.",
+ "Denetim işaretçileri açık: bu sayfada sorunu olan her öğe bir işaretçi gösterir.",
+ "Denetim işaretçileri kapalı.",
+ "Dışa aktarılanların kaydedileceği yer",
+ "İndirilenler klasörü",
+ "Seçtiğiniz bir klasör",
+ "Klasör seç...",
+ "Henüz klasör seçilmedi.",
+ "Her seferinde sor",
+ "Düzenleyicideki her indirme bu seçimi izler: Statik siteyi dışa aktar, .fweb projesini indir, QR kodları ve resim dışa aktarımları. Her seferinde sor seçiliyken her dosya nereye gideceğini sorar. Seçilen klasör bir dosya kaydedilirken kullanılamazsa dosya İndirilenler klasörüne gider ve bildirim bunu söyler.",
+ "Tarayıcıda indirmelerin nereye gideceğine tarayıcı karar verir.",
+ "Başka bir klasör seç",
+ "Dışa aktarılanların kaydedileceği klasörü seç",
+ "{0} kaydediliyor...",
+ "{0}, {1} konumuna kaydedilemedi. Klasörün var olduğunu ve boş alanı olduğunu kontrol edip yeniden deneyin.",
+ "Seçilen {0} klasörü yok veya yazılamıyor, bu yüzden {1}, {2} konumuna kaydedildi.",
+ "Hiçbir şey kaydedilmedi.",
+ "{0} ve {1}",
+ "{0}, {1}",
+ "{0} ve 1 sunucu daha",
+ "{0} ve {1} sunucu daha",
+ "Şu kaynaklardan gelen dosyalar getirilmedi: {0}. Bu yüzden görünümün veya davranışın bir kısmı eksik olabilir.",
+ "{0} kaynağından 1 stil sayfası",
+ "{1} kaynağından {0} stil sayfası",
+ "{0} kaynağından 1 betik",
+ "{1} kaynağından {0} betik",
+ "1 dosya daha",
+ "{0} dosya daha",
+ "Bu sayfa web'den dosya yüklüyor: {0}. Yalnızca işaretlenen dosyalar getirilir.",
+ "Kod olarak korunur, böylece sayfa duyarlı olanlar dahil kendi betiklerini ve stil kurallarını korur. Web'den yüklediği dosyalar her iki durumda da getirilmez.",
+ "Öğe olarak, sayfa şu kaynaktan yüklediği dosyalar olmadan gelir: {0}. Bu yüzden görünümünün veya davranışının bir kısmı eksik olabilir.",
+ "Kod olarak korunur, çünkü {0} sayfadan 1 tanesi web'den dosya yüklüyor. Kod olarak sayfalar duyarlı olanlar dahil kendi betiklerini ve stil kurallarını korur; bu dosyalar her iki durumda da getirilmez.",
+ "Öğe olarak, {0} sayfadan 1 tanesi şu kaynaktan yüklediği dosyalar olmadan gelir: {1}. Bu yüzden görünümünün veya davranışının bir kısmı eksik olabilir.",
+ "Kod olarak korunur, çünkü {1} sayfadan {0} tanesi web'den dosya yüklüyor. Kod olarak sayfalar duyarlı olanlar dahil kendi betiklerini ve stil kurallarını korur; bu dosyalar her iki durumda da getirilmez.",
+ "Öğe olarak, {1} sayfadan {0} tanesi şu kaynaklardan yükledikleri dosyalar olmadan gelir: {2}. Bu yüzden görünümlerinin veya davranışlarının bir kısmı eksik olabilir.",
+ "Sayfanın betiğinin oluşturduğu içerik için 1 stil kuralı korundu.",
+ "Sayfanın betiğinin oluşturduğu içerik için {0} stil kuralı korundu.",
+ "Sayfanın betiğinin oluşturduğu içerik için 1 stil kuralı, dönüştürülen öğelerin onu kullanıp kullanmadığı denetlenmeden korundu: denetim çok uzun sürdü, bu yüzden tüm kurallar korundu.",
+ "Sayfanın betiğinin oluşturduğu içerik için {0} stil kuralı, dönüştürülen öğelerin hangilerini kullandığı denetlenmeden korundu: denetim çok uzun sürdü, bu yüzden tüm kurallar korundu.",
+ "1 stil kuralı daha dışarıda bırakıldı: bir betik için en fazla {1} kural ve {2} KiB korunur.",
+ "{0} stil kuralı daha dışarıda bırakıldı: bir betik için en fazla {1} kural ve {2} KiB korunur.",
+ "Sayfanın betiğinin oluşturduğu içerik için korunan stil kuralı, sayfanın kodu çok büyük olacağı için dışarıda bırakıldı.",
+ "Sayfanın betiğinin oluşturduğu içerik için korunan {0} stil kuralı, sayfanın kodu çok büyük olacağı için dışarıda bırakıldı.",
+ "Sayfanın stil sayfasındaki 1 yazı tipi veya kayıtlı özellik, site adını zaten kullandığı için dışarıda bırakıldı.",
+ "Sayfanın stil sayfasındaki {0} yazı tipi veya kayıtlı özellik, site adlarını zaten kullandığı için dışarıda bırakıldı.",
+ "{0} dosya dışa aktarıldı.",
+ "Her sonuç nerede bulunacağını gösterir. Kullanmak için o sekmeyi ve bölümü açın.",
+ "Stil sayfası",
+ "Yazı tipi dosyası",
+ "İşaret koyduğunuzda FormWeb bu bilgisayarda o dosyayı şimdi sunucusundan indirir ve dosya sitenin parçası olur. İşaret olmadan hiçbir şey indirilmez.",
+ "İndiriliyor",
+ "Sayfaların web'den yüklediği her dosya işaretlendi ve indirildi, bu yüzden sayfalar her iki durumda da görünümlerini korur.",
+ "Kod olarak korunur, böylece sayfalar kendi betiklerini ve stil kurallarını korur. Şu kaynaktan gelen dosyalar işaretlenmedi veya indirilmedi: {0}. Bu yüzden her iki durumda da eksik olacaklar.",
+ "Öğe olarak, sayfalar şu kaynaktan gelen ve işaretlenmeyen veya indirilmeyen dosyalar olmadan gelir: {0}. Bu yüzden görünümlerinin veya davranışlarının bir kısmı eksik olabilir.",
+ "İndirmeler bekleniyor...",
+ "Web'den hiçbir dosya gelmedi: indirilenler artık saklanmıyor. Getirmek için dosyaları yeni bir incelemede yeniden işaretleyin.",
+ "Web'den 1 dosya geldi.",
+ "Web'den {0} dosya geldi.",
+ "Web'den 1 yazı tipi artık bu sitenin parçası.",
+ "Web'den {0} yazı tipi artık bu sitenin parçası.",
+ "Sayfaları kod olarak geri almak için iki kez, kaldırmak için üç kez geri al.",
+ "1 sayfanın betiği zamanında bitmedi, bu yüzden o sayfa betik çalıştırılmadan ölçüldü.",
+ "{0} sayfanın betikleri zamanında bitmedi, bu yüzden o sayfalar betikler çalıştırılmadan ölçüldü.",
+ "Bu sayfanın betiğinin oluşturduğu şeyin bir resmi. Gerçeği Önizleme'de ve yayımlanan sitede çalışır.",
] as readonly string[];
diff --git a/frontend/src/i18n/locales/uk.ts b/frontend/src/i18n/locales/uk.ts
index ee962a0c..051a2cd7 100644
--- a/frontend/src/i18n/locales/uk.ts
+++ b/frontend/src/i18n/locales/uk.ts
@@ -3028,4 +3028,77 @@ export default [
"Не залишено: {0} без змін.",
"Елемент змінено в іншому місці, тому пробу скасовано.",
"Зміну відхилено.",
+ "Показати маркери аудиту",
+ "Показувати маркери аудиту на сторінці",
+ "Ставить невеликий маркер на кожен елемент цієї сторінки, який має проблему. Маркери видно на сторінці, коли цей діалог закрито. Натисніть маркер, щоб вибрати елемент.",
+ "1 проблема не має елемента, тому не має маркера.",
+ "Проблем без елемента: {0}, тому вони не мають маркерів.",
+ "Маркери намальовано на перших {0} з {1} елементів із проблемами на цій сторінці.",
+ "1 проблема в елементі {0}",
+ "Проблем в елементі {1}: {0}",
+ "Проблеми в елементі {0}",
+ "Не вдалося виконати аудит, тому маркери аудиту приховано.",
+ "Маркери аудиту ввімкнено: кожен елемент цієї сторінки з проблемою показує маркер.",
+ "Маркери аудиту вимкнено.",
+ "Куди зберігаються експортовані файли",
+ "Папка «Завантаження»",
+ "Папка, яку ви виберете",
+ "Вибрати папку...",
+ "Папку ще не вибрано.",
+ "Питати щоразу",
+ "Усі завантаження з редактора дотримуються цього вибору: «Експорт статичного сайту», «Завантажити проєкт .fweb», QR-коди й експорт зображень. З «Питати щоразу» кожен файл питає, куди його зберегти. Якщо вибрану папку не вдається використати під час збереження файлу, файл потрапляє до «Завантаження», і сповіщення про це повідомляє.",
+ "У браузері місце для завантажень вибирає сам браузер.",
+ "Вибрати іншу папку",
+ "Вибрати папку для збереження експортованих файлів",
+ "Збереження {0}...",
+ "Не вдалося зберегти {0} у {1}. Переконайтеся, що папка існує й має вільне місце, а тоді повторіть спробу.",
+ "Вибраної папки {0} немає або в неї не можна записувати, тому {1} збережено в {2}.",
+ "Нічого не збережено.",
+ "{0} і {1}",
+ "{0}, {1}",
+ "{0} і ще 1 хост",
+ "{0} та інші хости ({1})",
+ "Файли з {0} не перенесено, тому частина оформлення або поведінки може бути відсутня.",
+ "1 таблиця стилів з {0}",
+ "таблиці стилів з {1} ({0})",
+ "1 скрипт з {0}",
+ "скрипти з {1} ({0})",
+ "ще 1 файл",
+ "ще файли ({0})",
+ "Ця сторінка завантажує файли з інтернету: {0}. Переносяться лише позначені файли.",
+ "Залишено як код, тому сторінка зберігає власні скрипти й правила стилів, зокрема адаптивні. Файли, які вона завантажує з інтернету, не переносяться в жодному з варіантів.",
+ "Як елементи сторінка прийде без файлів, які вона завантажує з {0}, тому частина її оформлення або поведінки може бути відсутня.",
+ "Залишено як код, бо 1 з {0} сторінок завантажує файли з інтернету. Як код сторінки зберігають власні скрипти й правила стилів, зокрема адаптивні; ці файли не переносяться в жодному з варіантів.",
+ "Як елементи 1 з {0} сторінок прийде без файлів, які вона завантажує з {1}, тому частина її оформлення або поведінки може бути відсутня.",
+ "Залишено як код, бо сторінок, що завантажують файли з інтернету: {0} з {1}. Як код сторінки зберігають власні скрипти й правила стилів, зокрема адаптивні; ці файли не переносяться в жодному з варіантів.",
+ "Як елементи сторінки ({0} з {1}) прийдуть без файлів, які вони завантажують з {2}, тому частина їхнього оформлення або поведінки може бути відсутня.",
+ "Збережено правило стилю для вмісту, який будує скрипт сторінки.",
+ "Збережено правил стилю для вмісту, який будує скрипт сторінки: {0}.",
+ "Збережено правило стилю для вмісту, який будує скрипт сторінки, без перевірки, чи використовують його перетворені елементи: перевірка тривала задовго, тому збережено всі правила.",
+ "Збережено правил стилю для вмісту, який будує скрипт сторінки: {0}, без перевірки, які з них використовують перетворені елементи: перевірка тривала задовго, тому збережено всі правила.",
+ "Пропущено ще одне правило стилю: для скрипту зберігається не більше {1} правил і {2} КіБ.",
+ "Пропущено ще правил стилю: {0}. Для скрипту зберігається не більше {1} правил і {2} КіБ.",
+ "Правило стилю, збережене для вмісту скрипту сторінки, пропущено, бо код сторінки став би завеликим.",
+ "Правила стилю, збережені для вмісту скрипту сторінки ({0}), пропущено, бо код сторінки став би завеликим.",
+ "Шрифт або зареєстровану властивість із таблиці стилів сторінки пропущено, бо сайт уже використовує цю назву.",
+ "Пропущено шрифтів або зареєстрованих властивостей із таблиці стилів сторінки: {0}, бо сайт уже використовує ці назви.",
+ "Експортовано файлів: {0}.",
+ "Кожен результат показує, де його знайти. Відкрийте цю вкладку й розділ, щоб ним скористатися.",
+ "Таблиця стилів",
+ "Файл шрифту",
+ "Позначка означає, що FormWeb на цьому комп’ютері зараз завантажить цей файл з його хоста і файл стане частиною сайту. Без позначки нічого не завантажується.",
+ "Завантаження",
+ "Усі файли, які сторінки завантажують з інтернету, позначені й завантажені, тому сторінки збережуть свій вигляд у будь-якому з варіантів.",
+ "Залишено як код, тому сторінки зберігають власні скрипти й правила стилів. Файли з {0} не позначені або не завантажені, тому їх не буде в жодному з варіантів.",
+ "Як елементи сторінки прийдуть без непозначених або незавантажених файлів з {0}, тому частина їхнього оформлення або поведінки може бути відсутня.",
+ "Очікування завантажень...",
+ "Жоден файл з інтернету не перенесено: завантажені файли більше не зберігаються. Позначте файли знову в новому перегляді, щоб перенести їх.",
+ "Перенесено 1 файл з інтернету.",
+ "Перенесено файлів з інтернету: {0}.",
+ "1 шрифт з інтернету тепер входить до цього сайту.",
+ "Шрифтів з інтернету, які тепер входять до цього сайту: {0}.",
+ "Скасуйте двічі, щоб повернути сторінки як код, тричі, щоб вилучити їх.",
+ "Скрипт сторінки не завершився вчасно, тому сторінку виміряно без його запуску.",
+ "Скрипти сторінок не завершилися вчасно (сторінок: {0}), тому ці сторінки виміряно без їхнього запуску.",
+ "Зображення того, що будує скрипт цієї сторінки. Справжня версія працює в перегляді й на опублікованому сайті.",
] as readonly string[];
diff --git a/frontend/src/i18n/locales/vi.ts b/frontend/src/i18n/locales/vi.ts
index bd8e57bf..46c3f20c 100644
--- a/frontend/src/i18n/locales/vi.ts
+++ b/frontend/src/i18n/locales/vi.ts
@@ -3028,4 +3028,77 @@ export default [
"Chưa giữ: {0} không thay đổi.",
"Phần tử đã được thay đổi ở nơi khác, nên bản thử đã bị bỏ.",
"Thay đổi đã bị từ chối.",
+ "Hiện điểm đánh dấu kiểm toán",
+ "Hiện điểm đánh dấu kiểm toán trên trang",
+ "Đặt một điểm đánh dấu nhỏ lên mỗi phần tử của trang này có vấn đề. Điểm đánh dấu hiện trên trang khi hộp thoại này đóng. Nhấp vào một điểm đánh dấu để chọn phần tử đó.",
+ "1 vấn đề không có phần tử, nên không có điểm đánh dấu.",
+ "{0} vấn đề không có phần tử, nên không có điểm đánh dấu.",
+ "Điểm đánh dấu được vẽ trên {0} phần tử đầu tiên trong số {1} phần tử có vấn đề trên trang này.",
+ "1 vấn đề trên {0}",
+ "{0} vấn đề trên {1}",
+ "Các vấn đề trên {0}",
+ "Không thể chạy kiểm toán, nên các điểm đánh dấu kiểm toán bị ẩn.",
+ "Điểm đánh dấu kiểm toán đang bật: mỗi phần tử của trang này có vấn đề sẽ hiện một điểm đánh dấu.",
+ "Điểm đánh dấu kiểm toán đang tắt.",
+ "Nơi lưu các bản xuất",
+ "Thư mục Tải xuống",
+ "Một thư mục bạn chọn",
+ "Chọn thư mục...",
+ "Chưa chọn thư mục nào.",
+ "Hỏi mỗi lần",
+ "Mọi lượt tải xuống từ trình chỉnh sửa đều theo lựa chọn này: Xuất trang web tĩnh, Tải xuống dự án .fweb, mã QR và bản xuất hình ảnh. Với Hỏi mỗi lần, mỗi tệp sẽ hỏi nơi lưu. Nếu không dùng được thư mục đã chọn khi lưu tệp, tệp sẽ vào Tải xuống và thông báo sẽ nói rõ.",
+ "Trong trình duyệt, trình duyệt quyết định nơi lưu tệp tải xuống.",
+ "Chọn thư mục khác",
+ "Chọn thư mục để lưu các bản xuất",
+ "Đang lưu {0}...",
+ "Không thể lưu {0} vào {1}. Hãy kiểm tra thư mục có tồn tại và còn dung lượng trống, rồi thử lại.",
+ "Thư mục đã chọn {0} không tồn tại hoặc không ghi được, nên {1} đã được lưu vào {2}.",
+ "Không có gì được lưu.",
+ "{0} và {1}",
+ "{0}, {1}",
+ "{0} và 1 máy chủ khác",
+ "{0} và {1} máy chủ khác",
+ "Các tệp từ {0} không được mang theo, nên một phần giao diện hoặc hoạt động có thể bị thiếu.",
+ "1 biểu định kiểu từ {0}",
+ "{0} biểu định kiểu từ {1}",
+ "1 tập lệnh từ {0}",
+ "{0} tập lệnh từ {1}",
+ "1 tệp khác",
+ "{0} tệp khác",
+ "Trang này tải tệp từ web: {0}. Chỉ các tệp được đánh dấu mới được mang theo.",
+ "Giữ dưới dạng mã, nên trang giữ nguyên tập lệnh và quy tắc kiểu của riêng nó, kể cả các quy tắc đáp ứng. Các tệp trang tải từ web không được mang theo trong cả hai cách.",
+ "Dưới dạng phần tử, trang sẽ vào mà không có các tệp nó tải từ {0}, nên một phần giao diện hoặc hoạt động có thể bị thiếu.",
+ "Giữ dưới dạng mã, vì 1 trong {0} trang tải tệp từ web. Dưới dạng mã, các trang giữ nguyên tập lệnh và quy tắc kiểu của riêng chúng, kể cả các quy tắc đáp ứng; các tệp đó không được mang theo trong cả hai cách.",
+ "Dưới dạng phần tử, 1 trong {0} trang sẽ vào mà không có các tệp nó tải từ {1}, nên một phần giao diện hoặc hoạt động có thể bị thiếu.",
+ "Giữ dưới dạng mã, vì {0} trong {1} trang tải tệp từ web. Dưới dạng mã, các trang giữ nguyên tập lệnh và quy tắc kiểu của riêng chúng, kể cả các quy tắc đáp ứng; các tệp đó không được mang theo trong cả hai cách.",
+ "Dưới dạng phần tử, {0} trong {1} trang sẽ vào mà không có các tệp chúng tải từ {2}, nên một phần giao diện hoặc hoạt động có thể bị thiếu.",
+ "Đã giữ 1 quy tắc kiểu cho nội dung mà tập lệnh của trang tạo ra.",
+ "Đã giữ {0} quy tắc kiểu cho nội dung mà tập lệnh của trang tạo ra.",
+ "Đã giữ 1 quy tắc kiểu cho nội dung mà tập lệnh của trang tạo ra mà không kiểm tra xem các phần tử đã chuyển có dùng nó không: việc kiểm tra mất quá lâu, nên mọi quy tắc đều được giữ.",
+ "Đã giữ {0} quy tắc kiểu cho nội dung mà tập lệnh của trang tạo ra mà không kiểm tra các phần tử đã chuyển dùng quy tắc nào: việc kiểm tra mất quá lâu, nên mọi quy tắc đều được giữ.",
+ "Đã bỏ thêm 1 quy tắc kiểu: mỗi tập lệnh chỉ giữ tối đa {1} quy tắc và {2} KiB.",
+ "Đã bỏ thêm {0} quy tắc kiểu: mỗi tập lệnh chỉ giữ tối đa {1} quy tắc và {2} KiB.",
+ "Đã bỏ quy tắc kiểu được giữ cho nội dung mà tập lệnh của trang tạo ra, vì mã của trang sẽ quá lớn.",
+ "Đã bỏ {0} quy tắc kiểu được giữ cho nội dung mà tập lệnh của trang tạo ra, vì mã của trang sẽ quá lớn.",
+ "Đã bỏ 1 phông chữ hoặc thuộc tính đã đăng ký từ biểu định kiểu của trang, vì trang web đã dùng tên đó.",
+ "Đã bỏ {0} phông chữ hoặc thuộc tính đã đăng ký từ biểu định kiểu của trang, vì trang web đã dùng các tên đó.",
+ "Đã xuất {0} tệp.",
+ "Mỗi kết quả cho biết nơi tìm thấy nó. Mở tab và phần đó để dùng.",
+ "Biểu định kiểu",
+ "Tệp phông chữ",
+ "Khi đánh dấu, FormWeb trên máy tính này tải tệp đó từ máy chủ của nó ngay bây giờ, và tệp trở thành một phần của trang web. Không có gì được tải xuống nếu không đánh dấu.",
+ "Đang tải xuống",
+ "Mọi tệp mà các trang tải từ web đều đã được đánh dấu và tải xuống, nên các trang giữ được giao diện trong cả hai cách.",
+ "Giữ dưới dạng mã, nên các trang giữ nguyên tập lệnh và quy tắc kiểu của riêng chúng. Các tệp từ {0} chưa được đánh dấu hoặc chưa được tải xuống, nên chúng sẽ bị thiếu trong cả hai cách.",
+ "Dưới dạng phần tử, các trang sẽ vào mà không có các tệp từ {0} chưa được đánh dấu hoặc chưa được tải xuống, nên một phần giao diện hoặc hoạt động có thể bị thiếu.",
+ "Đang chờ các lượt tải xuống...",
+ "Không có tệp nào từ web được mang theo: các tệp đã tải không còn được giữ. Đánh dấu lại các tệp trong một lần xem xét mới để mang chúng theo.",
+ "Đã mang theo 1 tệp từ web.",
+ "Đã mang theo {0} tệp từ web.",
+ "1 phông chữ từ web giờ là một phần của trang web này.",
+ "{0} phông chữ từ web giờ là một phần của trang web này.",
+ "Hoàn tác hai lần để lấy lại các trang dưới dạng mã, ba lần để xóa chúng.",
+ "Tập lệnh của 1 trang không xong kịp lúc, nên trang đó đã được đo mà không chạy nó.",
+ "Tập lệnh của {0} trang không xong kịp lúc, nên các trang đó đã được đo mà không chạy chúng.",
+ "Hình ảnh của những gì tập lệnh của trang này tạo ra. Phiên bản thật chạy trong Xem trước và trên trang web đã xuất bản.",
] as readonly string[];
diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.ts
index 326304de..6aa1b801 100644
--- a/frontend/src/i18n/locales/zh-CN.ts
+++ b/frontend/src/i18n/locales/zh-CN.ts
@@ -3028,4 +3028,77 @@ export default [
"未保留:{0} 未更改。",
"该元素已在别处更改,因此已放弃试用。",
"更改被拒绝。",
+ "显示审计标记",
+ "在页面上显示审计标记",
+ "在此页面上每个有问题的元素上放一个小标记。关闭此对话框后,标记会显示在页面上。点击标记即可选择该元素。",
+ "1 个问题没有对应元素,因此没有标记。",
+ "{0} 个问题没有对应元素,因此没有标记。",
+ "此页面上有问题的元素共 {1} 个,标记只画在前 {0} 个上。",
+ "{0} 上有 1 个问题",
+ "{1} 上有 {0} 个问题",
+ "{0} 上的问题",
+ "无法运行审计,因此已隐藏审计标记。",
+ "审计标记已开启:此页面上每个有问题的元素都会显示一个标记。",
+ "审计标记已关闭。",
+ "导出文件的保存位置",
+ "“下载”文件夹",
+ "你选择的文件夹",
+ "选择文件夹...",
+ "尚未选择文件夹。",
+ "每次询问",
+ "编辑器中的所有下载都遵循此选择:“导出静态站点”“下载 .fweb 项目”、二维码和图片导出。选择“每次询问”时,每个文件都会询问保存位置。如果保存文件时无法使用所选文件夹,文件会保存到“下载”文件夹,通知中会说明。",
+ "在浏览器中,下载保存到哪里由浏览器决定。",
+ "选择其他文件夹",
+ "选择导出文件的保存文件夹",
+ "正在保存 {0}...",
+ "无法将 {0} 保存到 {1}。请检查该文件夹是否存在并有可用空间,然后重试。",
+ "所选文件夹 {0} 不存在或无法写入,因此已将 {1} 保存到 {2}。",
+ "未保存任何内容。",
+ "{0} 和 {1}",
+ "{0}、{1}",
+ "{0} 及另外 1 个主机",
+ "{0} 及另外 {1} 个主机",
+ "来自 {0} 的文件没有带过来,因此部分外观或行为可能缺失。",
+ "来自 {0} 的 1 个样式表",
+ "来自 {1} 的 {0} 个样式表",
+ "来自 {0} 的 1 个脚本",
+ "来自 {1} 的 {0} 个脚本",
+ "另外 1 个文件",
+ "另外 {0} 个文件",
+ "此页面从网络加载文件:{0}。只有勾选的文件会带过来。",
+ "保留为代码,页面因此保留自己的脚本和样式规则,包括响应式规则。无论哪种方式,它从网络加载的文件都不会带过来。",
+ "以元素导入时,页面不会带上它从 {0} 加载的文件,因此部分外观或行为可能缺失。",
+ "保留为代码,因为 {0} 个页面中有 1 个从网络加载文件。作为代码,页面保留自己的脚本和样式规则,包括响应式规则;无论哪种方式,这些文件都不会带过来。",
+ "以元素导入时,{0} 个页面中有 1 个不会带上它从 {1} 加载的文件,因此部分外观或行为可能缺失。",
+ "保留为代码,因为 {1} 个页面中有 {0} 个从网络加载文件。作为代码,页面保留自己的脚本和样式规则,包括响应式规则;无论哪种方式,这些文件都不会带过来。",
+ "以元素导入时,{1} 个页面中有 {0} 个不会带上它们从 {2} 加载的文件,因此部分外观或行为可能缺失。",
+ "为页面脚本构建的内容保留了 1 条样式规则。",
+ "为页面脚本构建的内容保留了 {0} 条样式规则。",
+ "为页面脚本构建的内容保留了 1 条样式规则,未检查转换后的元素是否使用它:检查耗时过长,因此保留了所有规则。",
+ "为页面脚本构建的内容保留了 {0} 条样式规则,未检查转换后的元素使用了其中哪些:检查耗时过长,因此保留了所有规则。",
+ "又省略了 1 条样式规则:每个脚本最多保留 {1} 条规则和 {2} KiB。",
+ "又省略了 {0} 条样式规则:每个脚本最多保留 {1} 条规则和 {2} KiB。",
+ "为页面脚本构建的内容保留的样式规则被省略了,因为页面代码会过大。",
+ "为页面脚本构建的内容保留的 {0} 条样式规则被省略了,因为页面代码会过大。",
+ "页面样式表中的 1 个字体或注册属性被省略了,因为网站已在使用它的名称。",
+ "页面样式表中的 {0} 个字体或注册属性被省略了,因为网站已在使用它们的名称。",
+ "已导出 {0} 个文件。",
+ "每个结果都会显示它所在的位置。打开对应的标签页和版块即可使用。",
+ "样式表",
+ "字体文件",
+ "勾选后,此电脑上的 FormWeb 会立即从该文件的主机下载它,该文件随即成为站点的一部分。不勾选就不会下载任何内容。",
+ "正在下载",
+ "页面从网络加载的每个文件都已勾选并下载,因此无论哪种方式,页面都会保持原样。",
+ "保留为代码,页面因此保留自己的脚本和样式规则。来自 {0} 的文件未勾选或未下载,因此无论哪种方式都会缺失。",
+ "以元素导入时,页面不会带上来自 {0} 且未勾选或未下载的文件,因此部分外观或行为可能缺失。",
+ "正在等待下载...",
+ "没有带过来任何网络文件:下载的文件已不再保留。请在新的审阅中重新勾选这些文件以带过来。",
+ "带过来了 1 个网络文件。",
+ "带过来了 {0} 个网络文件。",
+ "1 个来自网络的字体现在已成为此站点的一部分。",
+ "{0} 个来自网络的字体现在已成为此站点的一部分。",
+ "撤销两次可将页面恢复为代码,撤销三次可将其删除。",
+ "1 个页面的脚本未能及时完成,因此该页面在未运行脚本的情况下进行了测量。",
+ "{0} 个页面的脚本未能及时完成,因此这些页面在未运行脚本的情况下进行了测量。",
+ "此页面脚本所构建内容的图片。真实内容在预览和已发布的站点中运行。",
] as readonly string[];
diff --git a/frontend/src/i18n/locales/zh-TW.ts b/frontend/src/i18n/locales/zh-TW.ts
index d746332f..09114716 100644
--- a/frontend/src/i18n/locales/zh-TW.ts
+++ b/frontend/src/i18n/locales/zh-TW.ts
@@ -3028,4 +3028,77 @@ export default [
"未保留:{0} 未變更。",
"此元素已在別處變更,因此已放棄試用。",
"變更遭到拒絕。",
+ "顯示稽核標記",
+ "在頁面上顯示稽核標記",
+ "在此頁面上每個有問題的元素上放一個小標記。關閉此對話框後,標記會顯示在頁面上。按一下標記即可選取該元素。",
+ "1 個問題沒有對應元素,因此沒有標記。",
+ "{0} 個問題沒有對應元素,因此沒有標記。",
+ "此頁面上有問題的元素共 {1} 個,標記只畫在前 {0} 個上。",
+ "{0} 上有 1 個問題",
+ "{1} 上有 {0} 個問題",
+ "{0} 上的問題",
+ "無法執行稽核,因此已隱藏稽核標記。",
+ "稽核標記已開啟:此頁面上每個有問題的元素都會顯示一個標記。",
+ "稽核標記已關閉。",
+ "匯出檔案的儲存位置",
+ "「下載」資料夾",
+ "你選擇的資料夾",
+ "選擇資料夾...",
+ "尚未選擇資料夾。",
+ "每次詢問",
+ "編輯器中的所有下載都會依照此選擇:「匯出靜態網站」「下載 .fweb 專案」、QR 碼和圖片匯出。選擇「每次詢問」時,每個檔案都會詢問儲存位置。如果儲存檔案時無法使用所選資料夾,檔案會儲存到「下載」資料夾,通知中會說明。",
+ "在瀏覽器中,下載儲存到哪裡由瀏覽器決定。",
+ "選擇其他資料夾",
+ "選擇匯出檔案的儲存資料夾",
+ "正在儲存 {0}...",
+ "無法將 {0} 儲存到 {1}。請檢查該資料夾是否存在並有可用空間,然後再試一次。",
+ "所選資料夾 {0} 不存在或無法寫入,因此已將 {1} 儲存到 {2}。",
+ "未儲存任何內容。",
+ "{0} 和 {1}",
+ "{0}、{1}",
+ "{0} 及另外 1 個主機",
+ "{0} 及另外 {1} 個主機",
+ "來自 {0} 的檔案沒有帶過來,因此部分外觀或行為可能缺失。",
+ "來自 {0} 的 1 個樣式表",
+ "來自 {1} 的 {0} 個樣式表",
+ "來自 {0} 的 1 個指令碼",
+ "來自 {1} 的 {0} 個指令碼",
+ "另外 1 個檔案",
+ "另外 {0} 個檔案",
+ "此頁面從網路載入檔案:{0}。只有勾選的檔案會帶過來。",
+ "保留為程式碼,頁面因此保留自己的指令碼和樣式規則,包括響應式規則。無論哪種方式,它從網路載入的檔案都不會帶過來。",
+ "以元素匯入時,頁面不會帶上它從 {0} 載入的檔案,因此部分外觀或行為可能缺失。",
+ "保留為程式碼,因為 {0} 個頁面中有 1 個從網路載入檔案。作為程式碼,頁面保留自己的指令碼和樣式規則,包括響應式規則;無論哪種方式,這些檔案都不會帶過來。",
+ "以元素匯入時,{0} 個頁面中有 1 個不會帶上它從 {1} 載入的檔案,因此部分外觀或行為可能缺失。",
+ "保留為程式碼,因為 {1} 個頁面中有 {0} 個從網路載入檔案。作為程式碼,頁面保留自己的指令碼和樣式規則,包括響應式規則;無論哪種方式,這些檔案都不會帶過來。",
+ "以元素匯入時,{1} 個頁面中有 {0} 個不會帶上它們從 {2} 載入的檔案,因此部分外觀或行為可能缺失。",
+ "為頁面指令碼建構的內容保留了 1 條樣式規則。",
+ "為頁面指令碼建構的內容保留了 {0} 條樣式規則。",
+ "為頁面指令碼建構的內容保留了 1 條樣式規則,未檢查轉換後的元素是否使用它:檢查耗時過長,因此保留了所有規則。",
+ "為頁面指令碼建構的內容保留了 {0} 條樣式規則,未檢查轉換後的元素使用了其中哪些:檢查耗時過長,因此保留了所有規則。",
+ "又省略了 1 條樣式規則:每個指令碼最多保留 {1} 條規則和 {2} KiB。",
+ "又省略了 {0} 條樣式規則:每個指令碼最多保留 {1} 條規則和 {2} KiB。",
+ "為頁面指令碼建構的內容保留的樣式規則被省略了,因為頁面程式碼會過大。",
+ "為頁面指令碼建構的內容保留的 {0} 條樣式規則被省略了,因為頁面程式碼會過大。",
+ "頁面樣式表中的 1 個字型或註冊屬性被省略了,因為網站已在使用它的名稱。",
+ "頁面樣式表中的 {0} 個字型或註冊屬性被省略了,因為網站已在使用它們的名稱。",
+ "已匯出 {0} 個檔案。",
+ "每個結果都會顯示它所在的位置。開啟對應的分頁和區塊即可使用。",
+ "樣式表",
+ "字型檔案",
+ "勾選後,這台電腦上的 FormWeb 會立即從該檔案的主機下載它,該檔案隨即成為網站的一部分。不勾選就不會下載任何內容。",
+ "正在下載",
+ "頁面從網路載入的每個檔案都已勾選並下載,因此無論哪種方式,頁面都會保持原樣。",
+ "保留為程式碼,頁面因此保留自己的指令碼和樣式規則。來自 {0} 的檔案未勾選或未下載,因此無論哪種方式都會缺失。",
+ "以元素匯入時,頁面不會帶上來自 {0} 且未勾選或未下載的檔案,因此部分外觀或行為可能缺失。",
+ "正在等待下載...",
+ "沒有帶過來任何網路檔案:下載的檔案已不再保留。請在新的審閱中重新勾選這些檔案以帶過來。",
+ "帶過來了 1 個網路檔案。",
+ "帶過來了 {0} 個網路檔案。",
+ "1 個來自網路的字型現在已成為此網站的一部分。",
+ "{0} 個來自網路的字型現在已成為此網站的一部分。",
+ "復原兩次可將頁面恢復為程式碼,復原三次可將其移除。",
+ "1 個頁面的指令碼未能及時完成,因此該頁面在未執行指令碼的情況下進行了測量。",
+ "{0} 個頁面的指令碼未能及時完成,因此這些頁面在未執行指令碼的情況下進行了測量。",
+ "此頁面指令碼所建構內容的圖片。真實內容在預覽和已發布的網站中執行。",
] as readonly string[];
diff --git a/frontend/src/main.ts b/frontend/src/main.ts
index a5b15372..3f48bb7c 100644
--- a/frontend/src/main.ts
+++ b/frontend/src/main.ts
@@ -18,7 +18,8 @@ import { DemoPreview } from './ui/demo-preview';
import { unsavedWork } from './ui/unsaved';
import { watchOpenedFiles } from './ui/opened-file';
import { Notice } from './ui/notice';
-import { deliver, isBusy } from './ui/downloads';
+import { deliver, isBusy, useNotice } from './ui/downloads';
+import { exportFolderRow, resetExportFolder } from './features/export-folder';
import { flash, issueField, rowOf, scrollNearest } from './ui/reveal';
import { FeatureStudio } from './features/studio';
import { RuntimePreview } from './features/runtime-preview';
@@ -53,6 +54,7 @@ import { canvasClick, installSelection, isMulti, isSelected, layerClick, topMost
import { anyCopyable, anyRemovable, canStep, copySelected, countLabel, cutSelected, deletePagesNote, deleteSelectedPages, duplicateSelected, holdsMany, installSelectionActions, pasteMany, removeSelected, selectionNote, selectionTitle, stepSelected } from './features/selection-actions';
import { installCanvasDrag } from './features/canvas-drag';
import { installHoverOutline } from './features/hover-outline';
+import { installAuditMarkers } from './features/audit-markers';
import { installSelectMode, paintSelectMode } from './features/select-mode';
import { sectionToggle } from './features/panel/fold';
import { watchHelp } from './ui/help-fit';
@@ -244,6 +246,7 @@ brand.title = 'formweb by nodemode.ai';
const menus = menuModel(commandRegistry);
const menubar = new Menubar(menus, overlay);
const titleTools = element('div', 'fw-title-tools');
+titleTools.dataset.ownKeys = '';
const topActions = element('div', 'top-actions');
async function toggleAgents(): Promise {
const result = await request<{ enabled?: boolean; agentsEnabled?: boolean }>('/api/agents', { enabled: !agentsEnabled });
@@ -269,6 +272,7 @@ if (document.documentElement.classList.contains('has-overlay-titlebar')) {
}
const toolbar = element('div', 'toolbar');
+toolbar.dataset.ownKeys = '';
const projectIdentity = element('div', 'project-identity');
const projectName = element('span', 'project-name', 'Connecting to site engine');
projectIdentity.append(icon('globe'), projectName);
@@ -511,7 +515,7 @@ inspectorScroll.append(designPane, motionPane, contentPane, pagePane);
const scriptPanes = installScriptPanes([designPane, motionPane]);
inspector.append(inspectorIdentity, inspectorTabs, inspectorScroll, dockStrip('right', [{ command: 'window.design', label: 'Design', icon: 'sliders' }, { command: 'window.content', label: 'Content', icon: 'text' }, { command: 'page.settings', label: 'Page', icon: 'page' }], { command: 'window.toggle-right', label: 'Expand right panel', icon: 'chevronsLeft' }));
const inspectorSearch = installInspectorSearch({
- after: inspectorTabs, scroll: inspectorScroll, select: setInspector,
+ after: inspectorTabs, scroll: inspectorScroll,
tabs: Object.entries({ design: designPane, motion: motionPane, content: contentPane, page: pagePane }).map(([id, pane]) => ({ id, pane, button: inspectorTabButtons.get(id)! }))
});
const rail = new Rail([
@@ -1070,7 +1074,26 @@ publishPane.append(field('Publication slug', publishSlug), publishOutput, publis
const auditPane = dialogPane('audit');
const auditSummary = element('p', 'empty-note', 'Run the Rust engine audit to review this site.');
const auditList = element('div');
-auditPane.append(auditSummary, auditList);
+const auditMarkers = installAuditMarkers({
+ frame: canvas.frame, stage, overlay, dialog: scrim, loaded: () => canvas.loaded(), page: () => currentPage().id,
+ editing: () => !preview && !fullPreview.isOpen && !demoPreview.isOpen && !featureStudio.opened && !!home.root.hidden, busy: () => tryKit.busy(),
+ pick: (id, message, again) => {
+ const page = state().site.pages.find(item => descendants(item.root).has(id));
+ if (!page || !state().site.nodes[id]) return '';
+ pageId = page.id;
+ selectedId = id;
+ update(state());
+ canvas.reveal(selectedId);
+ scrollNearest(layersList, rowOf(layersList, selectedId));
+ const line = t('Selected {0}: {1}', [currentNode().name, message]);
+ status(line);
+ notice.show(line, { error: true, action: { label: 'Show again', run: again } });
+ return line;
+ },
+ unsay: line => { if (statusMessage.textContent === line) { status(''); notice.hide(); } },
+ rescue: () => [inspectorTabButtons.get(activeInspector), auditButton], status
+});
+auditPane.append(auditSummary, auditMarkers.row, auditList);
const cmsPane = dialogPane('cms');
const cmsLayout = element('div', 'dialog-pane');
@@ -1455,6 +1478,7 @@ const resetPrefs = button('Reset All Preferences...', 'trash', undefined, 'fw-pr
const resetNote = element('p', 'micro', 'Every FormWeb preference on this device goes back to its default and the editor reloads. Your sites and projects are kept.');
const resetConfirm = button('Reset', undefined, () => {
try { for (const key of Object.keys(localStorage)) if (key.startsWith('formweb.') || ['nodemode_ui_settings', 'formweb_theme', 'formweb_language', 'formweb_shortcuts', 'formweb_workspace', 'formweb_terminal', 'fw.vector.pathfinder'].includes(key)) localStorage.removeItem(key); } catch { }
+ resetExportFolder();
location.reload();
}, 'fw-prefs-danger');
const resetCancel = button('Cancel', undefined, () => { resetRow.hidden = true; resetPrefs.hidden = false; });
@@ -1464,7 +1488,8 @@ resetRow.append(resetNote, resetConfirm, resetCancel);
resetPrefs.addEventListener('click', () => { resetPrefs.hidden = true; resetRow.hidden = false; });
const tokenNote = element('p', 'micro', 'For a server launched with FORMWEB_AUTH_TOKEN, enter its token below. It is stored only for this browser tab.');
const endpointNote = element('p', 'micro', `API endpoint: ${apiBase || 'same origin'} /api. The API and MCP use the same authoritative Rust document.`);
-prefsAdd('General', prefsGroup('Startup', autoShowHomeLabel), prefsGroup('Reset', resetPrefs, resetRow));
+prefsAdd('General', prefsGroup('Startup', autoShowHomeLabel), prefsGroup('Where exports are saved', exportFolderRow()), prefsGroup('Reset', resetPrefs, resetRow));
+useNotice(notice);
prefsAdd('Interface', prefsGroup('Theme', field('Editor theme', themeSelect)), prefsGroup('Language', field('Editor language', languageSelect)), prefsGroup('Design fields', field('Show in Design fields', designFieldsSelect), designFieldsNote, designFieldsAll, tryChoicesLabel, tryChoicesNote));
prefsAdd('Plugins', prefsGroup('Server access', tokenNote, field('Server access token', authToken), endpointNote));
settingsPane.append(prefsPages);
@@ -1675,6 +1700,7 @@ function update(next: EditorState): void {
if (passwordGatesFor !== site.id) void loadPasswordGates().catch(() => undefined);
canvas.mark(selectedIds());
canvas.render(site, page, selectedId, widths[breakpoint], locale, breakpoint);
+ auditMarkers.sync(next);
runtimePreview.update(preview, next, page.id, locale, widths[breakpoint]);
if (refreshPreviewButton.classList.contains('active') !== preview) refreshPreviewButton.classList.toggle('active', preview);
if (refreshPreviewButton.getAttribute('aria-pressed') !== String(preview)) refreshPreviewButton.setAttribute('aria-pressed', String(preview));
@@ -1696,7 +1722,7 @@ async function saveProject(): Promise {
}
async function downloadProject(): Promise {
const file = state().site.name.toLowerCase().replace(/[^a-z0-9-]+/g, '-') + '.fweb';
- await deliver(file, { desktop: 'Saved {0} to your Downloads folder.', placed: 'Saved {0} to {1}.', browser: 'Downloaded {0}. Your browser lists it with its downloads.' }, notice, started => download('/api/project-file', file, started));
+ if (!await deliver(file, { desktop: 'Saved {0} to your Downloads folder.', placed: 'Saved {0} to {1}.', browser: 'Downloaded {0}. Your browser lists it with its downloads.' }, notice, started => download('/api/project-file', file, started))) { status('Nothing was saved.'); return; }
status('Editable .fweb project downloaded.');
}
const NOT_FOUND_BASE_KEY = "The 404 page links its styles and pages from / because the base URL is still example.com. Set the base URL to the site's public address before you deploy it under a path.";
@@ -1725,6 +1751,7 @@ function baseUrlAction(warning: string): { label: string; run: () => unknown } |
async function exportSite(): Promise {
const file = state().site.name.toLowerCase().replace(/[^a-z0-9-]+/g, '-') + '-site.zip';
const headers = await deliver(file, { desktop: 'Exported {0} to your Downloads folder.', placed: 'Exported {0} to {1}.', browser: 'Downloaded {0}. Your browser lists it with its downloads.' }, notice, started => download(`/api/export?locale=${encodeURIComponent(locale)}`, file, started), exportButton);
+ if (!headers) { status('Nothing was saved.'); return; }
const warning = notFoundBaseWarning();
status([t('Static site exported for {0}.', [{ lang: locale }]), warning, localFormWarning(localFormHeader(headers))], false, baseUrlAction(warning));
}
@@ -1789,7 +1816,8 @@ async function downloadQr(): Promise {
const url = qrUrl.value.trim() || pageAddress();
const format = qrFormat.value || 'png';
const name = currentPage().slug.replace(/[^a-z0-9-]+/gi, '-').replace(/^-|-$/g, '') || 'home';
- await download(`/api/qr?format=${format}&scale=10&dark=${encodeURIComponent(qrDark.value)}&light=${encodeURIComponent(qrLight.value)}&url=${encodeURIComponent(url)}`, `qr-${name}.${format}`);
+ const file = `qr-${name}.${format}`;
+ if (!await deliver(file, { desktop: 'Saved {0} to your Downloads folder.', placed: 'Saved {0} to {1}.', browser: 'Downloaded {0}. Your browser lists it with its downloads.' }, notice, started => download(`/api/qr?format=${format}&scale=10&dark=${encodeURIComponent(qrDark.value)}&light=${encodeURIComponent(qrLight.value)}&url=${encodeURIComponent(url)}`, file, started))) { status('Nothing was saved.'); return; }
status(`QR code downloaded for ${url}.`);
}
async function moveLayer(direction: number): Promise {
@@ -1879,6 +1907,11 @@ function closeDialog(): void {
scrim.hidden = true;
dialogMode = '';
lastFocus?.focus();
+ const active = document.activeElement;
+ if (!active || active === document.body || scrim.contains(active)) {
+ const tab = inspectorTabs.querySelector('button.active');
+ (tab?.getClientRects().length ? tab : auditButton).focus({ preventScroll: true });
+ }
}
async function createSite(name: string, starter: string): Promise {
await replace('/api/new', { name, blank: true });
@@ -1987,7 +2020,9 @@ function showIssue(row: HTMLElement): void {
notice.show(line, { error: true, action: { label: 'Show again', run: () => { if (row.isConnected && row.dataset.key === key) (row.children[2] as HTMLButtonElement).click(); } } });
}
async function auditSite(): Promise {
+ const asked = state();
const result = await request<{ issues: AuditIssue[]; counts: Record }>('/api/audit');
+ auditMarkers.fresh(result, asked.site.id, asked.revision);
openDialog('audit');
text(auditSummary, result.issues.length === 1 ? '1 issue found. Select an element to resolve it in the inspector.' : result.issues.length ? t('{0} issues found. Select an element to resolve it in the inspector.', [result.issues.length]) : 'No issues found by the built-in audit. Review content and exported pages before release.');
keyed(auditList, result.issues.map((issue, index) => ({ ...issue, key: `${issue.code}-${issue.page || ''}-${issue.node || ''}-${index}` })), issue => issue.key, () => {
@@ -2342,6 +2377,7 @@ registerCommands([
{ id: 'view.theme', label: 'Light theme', menu: 'View', group: 2, run: () => setTheme(readChoice().theme === 'light' ? 'studio' : 'light'), checked: () => readChoice().theme === 'light' },
{ id: 'view.design-controls', label: 'Show controls in Design fields', menu: 'View', group: 2, run: () => { controlKit.setDefaultRaw(!controlKit.defaultRaw()); status(controlKit.defaultRaw() ? 'Design fields show the CSS text only.' : 'Design fields show their controls.'); }, checked: () => !controlKit.defaultRaw() },
{ id: 'view.try-choices', label: 'Try choices before keeping them', menu: 'View', group: 2, run: () => { tryKit.setEnabled(!tryKit.enabled()); tryChoices.checked = tryKit.enabled(); status(tryKit.enabled() ? 'A clicked choice now shows on the page until you press Keep.' : 'Clicked choices are now written at once.'); }, checked: () => tryKit.enabled() },
+ { id: 'view.audit-markers', label: 'Show audit markers', menu: 'View', group: 2, run: () => auditMarkers.set(!auditMarkers.enabled()), checked: () => auditMarkers.enabled(), enabled: ready },
{ id: 'view.search', label: 'Search commands', menu: 'View', keys: ['Mod+K'], global: true, group: 2, run: () => commandSearch.show() },
{ id: 'view.menus-in-window', label: 'Menus in Window', menu: 'View', group: 2, enabled: desktopMac, checked: menusInWindow, run: () => { const on = !menusInWindow(); setMenusInWindow(on); status(on ? 'The menus stay in the window from the next start.' : 'The menus go to the menu bar from the next start.'); } },
{ id: 'window.layers', label: 'Pages and layers', menu: 'Window', run: () => toggleLeft('pages'), checked: () => activeSidebar === 'pages' && layout.state.left === 'open' },
diff --git a/frontend/src/styles/audit-markers.css b/frontend/src/styles/audit-markers.css
new file mode 100644
index 00000000..cb84af22
--- /dev/null
+++ b/frontend/src/styles/audit-markers.css
@@ -0,0 +1,14 @@
+.fw-audit-switch { display: grid; gap: var(--space-1); margin: 0 0 var(--space-3); }
+.fw-audit-switch .micro { margin: 0; }
+.fw-audit-switch .fw-audit-note { min-block-size: calc(2 * 1.6em); }
+.fw-audit-marks[hidden], .fw-audit-dot[hidden], .fw-audit-pop[hidden] { display: none; }
+.fw-audit-dot { position: fixed; left: 0; top: 0; z-index: var(--z-raised); box-sizing: border-box; display: grid; place-items: center; width: var(--space-5); height: var(--space-5); min-height: 0; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text-primary); font-size: var(--fs-10); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; pointer-events: auto; cursor: pointer; }
+.fw-audit-dot::before { content: ''; position: absolute; inset: 0; box-sizing: border-box; border: 2px solid var(--cv-action-blue); border-radius: var(--radius-pill); background: var(--surface-2); box-shadow: var(--shadow-sm); }
+.fw-audit-dot[data-severity='warning']::before { inset: 2px; border-color: var(--warn); border-radius: var(--radius-xs); transform: rotate(45deg); }
+.fw-audit-dot[data-severity='error']::before { inset: 1px; border-color: var(--danger); border-radius: var(--radius-xs); }
+.fw-audit-dot:hover { background: transparent; }
+.fw-audit-dot:hover::before { background: var(--surface-raised); }
+.fw-audit-dot:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; }
+.fw-audit-count { position: relative; }
+.fw-audit-pop { position: fixed; left: 0; top: 0; z-index: var(--z-popover); box-sizing: border-box; max-width: min(320px, calc(100vw - var(--space-4))); padding: var(--space-2) var(--space-3); pointer-events: auto; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface-2) 94%, transparent); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter); box-shadow: var(--shadow-lg); color: var(--text-primary); font-size: var(--fs-12); }
+.fw-audit-pop-list { display: grid; gap: var(--space-1); margin: 0; padding: 0 0 0 var(--space-4); }
diff --git a/frontend/src/styles/convert.css b/frontend/src/styles/convert.css
index 2032b6cb..254d2f5c 100644
--- a/frontend/src/styles/convert.css
+++ b/frontend/src/styles/convert.css
@@ -2,6 +2,7 @@
.fw-convert { position: fixed; top: 50%; left: 50%; z-index: var(--z-popover); display: flex; flex-direction: column; gap: var(--space-3); width: min(440px, calc(100vw - 2 * var(--space-6))); max-height: min(560px, calc(100vh - 2 * var(--space-6))); padding: var(--space-4); overflow-y: auto; scrollbar-width: none; transform: translate(-50%, -50%); border: 1px solid var(--border-light); border-radius: var(--radius-xl); background: var(--bg-secondary); box-shadow: var(--shadow-window); color: var(--text-primary); font-size: var(--fs-12); line-height: 1.45; pointer-events: auto; }
.fw-convert::-webkit-scrollbar { display: none; }
.fw-convert[hidden], .fw-convert [hidden] { display: none; }
+.fw-convert:focus { outline: none; }
.fw-convert-title { margin: 0; font-size: var(--fs-14); font-weight: 600; }
.fw-convert-text { margin: 0; color: var(--text-secondary); }
.fw-convert .checkbox-field { margin-top: 0; }
diff --git a/frontend/src/styles/export-folder.css b/frontend/src/styles/export-folder.css
new file mode 100644
index 00000000..f8c320f2
--- /dev/null
+++ b/frontend/src/styles/export-folder.css
@@ -0,0 +1,13 @@
+.fw-export-folder { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
+.fw-export-folder .checkbox-field { margin-top: 0; }
+.fw-export-folder .micro { margin: 0; padding: 0; }
+.fw-export-folder input[type='radio'] { -webkit-appearance: none; appearance: none; flex: none; width: var(--check-size); min-width: var(--check-size); height: var(--check-size); min-height: var(--check-size); margin: 0; padding: 0; border-color: var(--check-edge); border-radius: 50%; cursor: pointer; }
+.fw-export-folder input[type='radio']:hover { border-color: var(--text-muted); }
+.fw-export-folder input[type='radio']:checked { border-color: var(--accent-color); background: radial-gradient(circle, var(--accent-color) 0 3.5px, transparent 4px); }
+.fw-export-pick { display: flex; align-items: center; gap: var(--space-2); min-width: 0; min-height: var(--control-height); padding-left: calc(var(--check-size) + var(--space-2)); }
+.fw-export-choose { flex: none; }
+.fw-export-path { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-secondary); font-family: var(--font-mono); font-size: var(--fs-11); }
+.fw-export-path.is-empty { color: var(--text-muted); font-family: inherit; }
+.fw-export-path[hidden] { display: none; }
+button[aria-busy='true'][aria-disabled='true'] { cursor: progress; }
+.fw-v-btn[aria-disabled='true'] { opacity: .35; cursor: progress; }
diff --git a/frontend/src/styles/inspector-search.css b/frontend/src/styles/inspector-search.css
index 47350122..ead7a1d1 100644
--- a/frontend/src/styles/inspector-search.css
+++ b/frontend/src/styles/inspector-search.css
@@ -6,22 +6,14 @@
.inspector-search-clear:hover { color: var(--text-primary); }
.inspector-results { flex: 1 1 0; min-height: 0; overflow: auto; padding: var(--space-2); }
.inspector-results-list { display: flex; flex-direction: column; gap: var(--space-1); }
-.inspector-results-group { padding: var(--space-3) var(--space-2) var(--space-1); overflow: hidden; color: var(--text-muted); font-size: var(--fs-10); text-overflow: ellipsis; white-space: nowrap; }
-.inspector-result { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: var(--ctl-md); padding: 0 var(--space-2); border-radius: var(--radius-md); color: var(--text-primary); font-size: var(--fs-12); cursor: pointer; }
-.inspector-result:hover, .inspector-result.is-active { background: var(--accent-soft); }
+.inspector-results-note { margin: 0 0 var(--space-2); padding: 0 var(--space-2); color: var(--text-muted); font-size: var(--fs-10); line-height: 1.4; }
+.inspector-result { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); min-height: var(--ctl-md); padding: var(--space-1) var(--space-2); color: var(--text-primary); font-size: var(--fs-12); line-height: 1.4; cursor: default; user-select: none; }
.inspector-result.is-off { color: var(--text-muted); }
.inspector-result.is-section .inspector-result-name { font-weight: 600; }
-.inspector-result-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
+.inspector-result-text { min-width: 0; overflow-wrap: anywhere; }
+.inspector-result-dot, .inspector-result-place { color: var(--text-muted); }
.inspector-result-css, .inspector-result-off { flex: none; color: var(--text-muted); font-size: var(--fs-10); }
.inspector-result-css { font-family: var(--font-mono); }
.inspector-result-css:empty { display: none; }
.inspector-results-more { display: flex; align-items: center; height: var(--ctl-md); margin: 0; padding: 0 var(--space-2); overflow: hidden; color: var(--text-muted); font-size: var(--fs-10); line-height: 1.3; cursor: default; }
.inspector-results-empty { margin: 0; padding: var(--space-4) var(--space-2); color: var(--text-muted); }
-.fw-search-hit { border-radius: var(--radius-sm); outline: 2px solid var(--accent-color); outline-offset: var(--space-1); animation: fw-search-pulse 1.4s ease-out 1; }
-@keyframes fw-search-pulse {
- 0% { outline-color: var(--accent-color); background-color: var(--accent-wash); }
- 100% { outline-color: transparent; background-color: transparent; }
-}
-@media (prefers-reduced-motion: reduce) {
- .fw-search-hit { animation: none; }
-}
diff --git a/frontend/src/styles/library.css b/frontend/src/styles/library.css
index b62554a7..60f4130a 100644
--- a/frontend/src/styles/library.css
+++ b/frontend/src/styles/library.css
@@ -110,3 +110,24 @@
.fw-lib-bring-option.is-on { border-color: var(--accent-line); background: var(--accent-wash); }
.fw-lib-bring-option:disabled { cursor: default; }
.fw-lib-bring-option .fw-lib-row-meta { color: var(--text-secondary); }
+.fw-lib-bring-why { display: grid; margin: 0 0 var(--space-2); }
+.fw-lib-bring-why[hidden] { display: none; }
+.fw-lib-bring-why > .fw-lib-row-meta { grid-area: 1 / 1; margin: 0; color: var(--text-secondary); overflow-wrap: anywhere; }
+.fw-lib-bring-why > :not(.is-on) { visibility: hidden; }
+.fw-lib-site-item > .fw-lib-site-outside { color: var(--text-secondary); }
+.fw-lib-out { display: flex; flex-direction: column; gap: var(--space-1); }
+.fw-lib-out-help { margin: 0; }
+.fw-lib-out-list { display: flex; flex-direction: column; }
+.fw-lib-out-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 11ch; grid-template-areas: "box kind size" ". host host" ". said said"; align-items: center; column-gap: var(--space-2); padding: var(--space-1) 0; font-size: var(--fs-11); color: var(--text-secondary); cursor: pointer; }
+.fw-lib-out-row > input { grid-area: box; }
+.fw-lib-out-kind { grid-area: kind; }
+.fw-lib-out-host { grid-area: host; }
+.fw-lib-out-size { grid-area: size; }
+.fw-lib-out-row.is-font { padding-left: var(--space-5); }
+.fw-lib-out-row > input { margin: 0; accent-color: var(--accent-color); }
+.fw-lib-out-row > input:disabled { cursor: default; }
+.fw-lib-out-kind, .fw-lib-out-host, .fw-lib-out-size, .fw-lib-out-said { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
+.fw-lib-out-host { color: var(--text-primary); font-family: var(--font-mono); font-size: var(--fs-10); }
+.fw-lib-out-size { text-align: right; color: var(--text-muted); font-variant-numeric: tabular-nums; }
+.fw-lib-out-said { grid-area: said; color: var(--danger-color); }
+.fw-lib-out-said:empty { display: none; }
diff --git a/frontend/src/ui/canvas.ts b/frontend/src/ui/canvas.ts
index 9a909fae..181428c5 100644
--- a/frontend/src/ui/canvas.ts
+++ b/frontend/src/ui/canvas.ts
@@ -1,6 +1,7 @@
import type { Collection, Page, Site } from '../types';
import { t } from '../i18n';
import type { LayerFrame, LayerName } from '../features/try/types';
+import { pictureSizes } from '../features/convert/snapshot';
type ItemContext = { collection: string; item: Collection['items'][number]; ids: Record; suffix: string };
@@ -158,6 +159,14 @@ export class Canvas {
if (note.textContent !== line) note.textContent = line;
if (note.hidden !== !line) note.hidden = !line;
}
+ if (wanted === 'img' && codeKind(site, id) === 'script') {
+ const words = t('A picture of what the script of this page builds. The real thing runs in Preview and on the published site.');
+ if (poster.getAttribute('alt') !== words) { poster.setAttribute('alt', words); poster.setAttribute('title', words); }
+ const size = pictureSizes.get(url!);
+ const look = size ? `display:block;width:${size[0]}px;max-width:100%;height:auto;aspect-ratio:${size[0]}/${size[1]};pointer-events:none` : 'display:block;max-width:100%;height:auto;pointer-events:none';
+ if (poster.getAttribute('style') !== look) poster.setAttribute('style', look);
+ if (size && poster.getAttribute('width') !== String(size[0])) { poster.setAttribute('width', String(size[0])); poster.setAttribute('height', String(size[1])); }
+ }
if (wanted === 'img' && poster.getAttribute('src') !== url) poster.setAttribute('src', url!);
if (poster.parentNode !== node || node.lastChild !== poster) node.append(poster);
}
diff --git a/frontend/src/ui/downloads.ts b/frontend/src/ui/downloads.ts
index dfad1b9b..9133e0fc 100644
--- a/frontend/src/ui/downloads.ts
+++ b/frontend/src/ui/downloads.ts
@@ -1,8 +1,9 @@
import { t } from '../i18n';
import type { Notice } from './notice';
+import { beforeDownload, exportChoice, forgetAnswer } from '../features/export-folder';
type Core = { invoke(command: string): Promise };
-type Saved = { ok: boolean; file: string; folder: string };
+type Saved = { ok: boolean; file: string; folder: string; unusable: string; reason: string };
export type Words = { desktop: string; placed: string; browser: string };
const core = (): Core | undefined => (window as unknown as { __TAURI__?: { core?: Core } }).__TAURI__?.core;
@@ -10,13 +11,13 @@ const waiting = new Map void>();
const LISTEN_MS = 10 * 60 * 1000;
window.addEventListener('formweb-download', event => {
- const detail = (event as CustomEvent).detail as { url?: unknown; ok?: unknown; file?: unknown; folder?: unknown } | null;
+ const detail = (event as CustomEvent).detail as { url?: unknown; ok?: unknown; file?: unknown; folder?: unknown; unusable?: unknown; reason?: unknown } | null;
if (!detail) return;
const key = typeof detail.url === 'string' && waiting.has(detail.url) ? detail.url : waiting.size === 1 ? [...waiting.keys()][0] : '';
const done = waiting.get(key);
if (!done) return;
waiting.delete(key);
- done({ ok: detail.ok === true, file: typeof detail.file === 'string' ? detail.file : '', folder: typeof detail.folder === 'string' ? detail.folder : '' });
+ done({ ok: detail.ok === true, file: typeof detail.file === 'string' ? detail.file : '', folder: typeof detail.folder === 'string' ? detail.folder : '', unusable: typeof detail.unusable === 'string' ? detail.unusable.slice(0, 4096) : '', reason: typeof detail.reason === 'string' ? detail.reason.slice(0, 64) : '' });
});
function whenSaved(url: string): Promise {
@@ -47,24 +48,66 @@ async function showInFolder(notice: Notice): Promise {
export const isBusy = (button: HTMLButtonElement): boolean => button.getAttribute('aria-busy') === 'true';
-export async function deliver(file: string, words: Words, notice: Notice, fetch: (started: (url: string) => void) => Promise, button?: HTMLButtonElement): Promise {
+let shared: Notice | null = null;
+const SAVED: Words = { desktop: 'Saved {0} to your Downloads folder.', placed: 'Saved {0} to {1}.', browser: 'Downloaded {0}. Your browser lists it with its downloads.' };
+
+export const useNotice = (notice: Notice): void => { shared = notice; };
+
+export async function deliverFile(file: string, fetch: (started: (url: string) => void) => Promise): Promise {
+ if (!shared) { await fetch(() => undefined); return true; }
+ const done = await deliver(file, SAVED, shared, fetch);
+ if (!done) shared.show(t('Nothing was saved.'));
+ return !!done;
+}
+
+export function saveBlob(blob: Blob, name: string, started: (url: string) => void): Promise {
+ const url = URL.createObjectURL(blob);
+ const link = document.createElement('a');
+ link.href = url;
+ link.download = name;
+ link.rel = 'noopener';
+ link.hidden = true;
+ document.body.append(link);
+ started(url);
+ link.click();
+ link.remove();
+ setTimeout(() => URL.revokeObjectURL(url), 60000);
+ return Promise.resolve(new Headers());
+}
+
+let turns: Promise = Promise.resolve();
+
+export function deliver(file: string, words: Words, notice: Notice, fetch: (started: (url: string) => void) => Promise, button?: HTMLButtonElement): Promise {
+ if (!core() || exportChoice().mode !== 'ask') return send(file, words, notice, fetch, button, false);
+ const turn = turns.then(() => send(file, words, notice, fetch, button, true));
+ turns = turn.catch(() => undefined);
+ return turn;
+}
+
+async function send(file: string, words: Words, notice: Notice, fetch: (started: (url: string) => void) => Promise, button: HTMLButtonElement | undefined, asking: boolean): Promise {
let pending: Promise | null = null;
const desktop = !!core();
- if (button) { button.disabled = true; button.setAttribute('aria-busy', 'true'); }
+ if (button) { button.setAttribute('aria-disabled', 'true'); button.setAttribute('aria-busy', 'true'); }
let headers: Headers;
try {
+ if (asking && !(await beforeDownload(file))) return null;
headers = await fetch(url => { if (desktop) pending = whenSaved(url); });
} catch (error) {
+ if (asking) forgetAnswer();
notice.show(error instanceof Error ? error.message : String(error), { error: true });
throw error;
} finally {
- if (button) { button.disabled = false; button.removeAttribute('aria-busy'); }
+ if (button) { button.removeAttribute('aria-disabled'); button.removeAttribute('aria-busy'); }
}
- notice.show(t(desktop ? words.desktop : words.browser, [file]));
+ const usual = !desktop || exportChoice().mode === 'downloads';
+ notice.show(usual ? t(desktop ? words.desktop : words.browser, [file]) : t('Saving {0}...', [file]));
void (pending as Promise | null)?.then(saved => {
if (!saved) return;
- if (!saved.ok) notice.show(t('{0} could not be saved to your Downloads folder. Check that the folder exists and has free space, then try again.', [file]), { error: true });
- else if (saved.folder) notice.show(t(words.placed, [saved.file || file, saved.folder]), { action: { label: 'Show in folder', run: () => showInFolder(notice) } });
+ const reveal = { label: 'Show in folder', run: () => showInFolder(notice) };
+ if (!saved.ok && saved.reason === 'not-asked') notice.show(t('Nothing was saved.'));
+ else if (!saved.ok) notice.show(saved.folder && !usual ? t('{0} could not be saved to {1}. Check that the folder exists and has free space, then try again.', [file, saved.folder]) : t('{0} could not be saved to your Downloads folder. Check that the folder exists and has free space, then try again.', [file]), { error: true });
+ else if (saved.unusable && saved.folder) notice.show(t('The chosen folder {0} is missing or cannot be written, so {1} was saved to {2}.', [saved.unusable, saved.file || file, saved.folder]), { error: true, action: reveal });
+ else if (saved.folder) notice.show(t(words.placed, [saved.file || file, saved.folder]), { action: reveal });
else notice.show(t(words.desktop, [saved.file || file]));
});
return headers;
diff --git a/frontend/src/vector/exportscreens.ts b/frontend/src/vector/exportscreens.ts
index 2860728a..7dd9b011 100644
--- a/frontend/src/vector/exportscreens.ts
+++ b/frontend/src/vector/exportscreens.ts
@@ -1,5 +1,6 @@
-import { label, labelAttr, t } from '../i18n';
+import { label, labelAttr, t, tn } from '../i18n';
import { element } from '../ui/dom';
+import { deliverFile, saveBlob } from '../ui/downloads';
import type { Host } from './host';
import { svgOf } from './store';
import { boards } from './artboards';
@@ -154,17 +155,7 @@ async function rasterize(source: Source, scale: number, format: Exclude URL.revokeObjectURL(url), 10000);
-}
+const download = (blob: Blob, name: string): Promise => deliverFile(name, started => saveBlob(blob, name, started));
const pause = (ms: number): Promise => new Promise(resolve => setTimeout(resolve, ms));
export const safeName = (value: string): string => value.replace(/[^\w.@+-]+/g, '-').replace(/^-+|-+$/g, '').slice(0, 80);
@@ -191,7 +182,7 @@ export async function exportScreens(host: Host, svgId: string, options: ExportOp
const written: string[] = [];
const queue: { blob: Blob; name: string }[] = [];
await queueFiles(source, base, options, queue);
- for (const item of queue) { download(item.blob, item.name); written.push(item.name); await pause(200); }
+ for (const item of queue) { if (!await download(item.blob, item.name)) break; written.push(item.name); await pause(200); }
return written;
}
@@ -215,7 +206,7 @@ export async function exportArtboards(host: Host, items: { id: string; name: str
}
if (!queue.length) throw new Error(t('No artboards on this page to export.'));
const written: string[] = [];
- for (const file of queue) { download(file.blob, file.name); written.push(file.name); await pause(200); }
+ for (const file of queue) { if (!await download(file.blob, file.name)) break; written.push(file.name); await pause(200); }
return written;
}
@@ -351,14 +342,14 @@ class ExportDialog {
private async run(): Promise {
const host = this.host;
- if (!host || (!this.svg && !this.scope.all.checked)) return;
+ if (!host || (!this.svg && !this.scope.all.checked) || this.go.getAttribute('aria-disabled') === 'true') return;
const formats = FORMATS.map(f => f.id).filter(id => this.formats.get(id)?.checked);
const scales = this.scales.filter(s => s.on.checked).map(s => ({ scale: s.scale, suffix: s.suffix.value.trim() }));
const raster = formats.some(f => !VECTOR.has(f));
if (!formats.length) { label(this.status, 'Choose at least one format.'); return; }
if (raster && !scales.length) { label(this.status, 'Choose at least one scale.'); return; }
if (new Set(scales.map(s => safeName(s.suffix))).size !== scales.length) { label(this.status, 'Each scale needs a different suffix.'); return; }
- this.go.disabled = true;
+ this.go.setAttribute('aria-disabled', 'true');
label(this.status, 'Exporting...');
try {
const options: ExportOptions = {
@@ -366,12 +357,13 @@ class ExportDialog {
quality: Number(this.quality.value) || 90, background: this.transparent.checked ? null : this.bg.value, jpgBackground: this.jpgBg.value
};
const files = this.scope.all.checked ? await exportArtboards(host, pageArtboards(host), options) : await exportScreens(host, this.svg, options);
- label(this.status, 'Exported {0} files.', [files.length]);
- host.notify(t('Exported {0} files.', [files.length]));
+ const said = files.length ? tn(files.length, 'Exported {0} file.', 'Exported {0} files.') : t('Nothing was saved.');
+ this.status.textContent = said;
+ host.notify(said);
} catch (error) {
if (error instanceof Error) this.status.textContent = error.message;
else label(this.status, 'Export failed.');
- } finally { this.go.disabled = false; }
+ } finally { this.go.removeAttribute('aria-disabled'); }
}
open(host: Host, svg: string): void {
diff --git a/frontend/src/vector/panel.ts b/frontend/src/vector/panel.ts
index 1d2836a5..ea6973c0 100644
--- a/frontend/src/vector/panel.ts
+++ b/frontend/src/vector/panel.ts
@@ -1,4 +1,5 @@
import { element, value } from '../ui/dom';
+import { deliverFile, saveBlob } from '../ui/downloads';
import { label, labelAttr, tn, type Value } from '../i18n';
import { openAverage } from './averagedialog';
import { openPathfinderOptions } from './pfdialog';
@@ -309,12 +310,8 @@ export class VectorPanel {
download(): void {
const markup = this.editor.exportText();
if (!markup) { this.editor.notify('Select a vector shape to export.'); return; }
- const url = URL.createObjectURL(new Blob([markup], { type: 'image/svg+xml' }));
- const link = document.createElement('a');
- link.href = url;
- link.download = 'vector.svg';
- link.click();
- setTimeout(() => URL.revokeObjectURL(url), 1000);
+ const blob = new Blob([markup], { type: 'image/svg+xml' });
+ void deliverFile('vector.svg', started => saveBlob(blob, 'vector.svg', started)).catch(() => undefined);
}
update(): void {
diff --git a/frontend/tests/unit/convert/kept-rules.test.ts b/frontend/tests/unit/convert/kept-rules.test.ts
new file mode 100644
index 00000000..0b42cf9a
--- /dev/null
+++ b/frontend/tests/unit/convert/kept-rules.test.ts
@@ -0,0 +1,180 @@
+import { describe, expect, it } from 'vitest';
+import { bodyQualified, emptyOutcome, guardSelector, scriptWords, selectorList, subjectClasses, summary } from '../../../src/features/convert/rules';
+import { t, tn } from '../../../src/i18n';
+
+const GUARD = ':where(:not([data-fw-node]))';
+
+function board(): HTMLElement {
+ const root = document.createElement('section');
+ root.setAttribute('data-fw-node', 'root');
+ root.innerHTML = '