@dexhq/canvas 0.13.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +53 -0
- package/README.md +21 -18
- package/app/canvas/activity.tsx +8 -15
- package/app/canvas/anchoring.ts +3 -5
- package/app/canvas/canvas-input.ts +151 -14
- package/app/canvas/canvas-keys.ts +9 -0
- package/app/canvas/canvas-model.ts +5 -42
- package/app/canvas/canvas-panels.ts +1 -17
- package/app/canvas/canvas-scene.ts +7 -3
- package/app/canvas/canvas-ui.ts +2 -1
- package/app/canvas/canvas.css +61 -26
- package/app/canvas/change-notice.tsx +10 -1
- package/app/canvas/comment-layer.tsx +2 -1
- package/app/canvas/comments.tsx +204 -82
- package/app/canvas/element-picker.ts +200 -27
- package/app/canvas/engine/canvas-gestures.ts +72 -17
- package/app/canvas/engine/canvas-store.ts +17 -1
- package/app/canvas/engine/engine.css +6 -3
- package/app/canvas/find-bar.tsx +817 -0
- package/app/canvas/find-model.ts +135 -0
- package/app/canvas/flow-canvas.tsx +18 -2
- package/app/canvas/follow-pin.ts +26 -6
- package/app/canvas/frame-node.tsx +43 -26
- package/app/canvas/imported-reviews.tsx +12 -22
- package/app/canvas/layout.ts +27 -0
- package/app/canvas/live-page.ts +142 -19
- package/app/canvas/page-find.ts +220 -0
- package/app/canvas/page-style.ts +23 -0
- package/app/canvas/section-node.tsx +2 -0
- package/app/canvas/spec-threads.ts +24 -23
- package/app/canvas/thread-focus.tsx +14 -12
- package/app/canvas/tool-cursors.ts +16 -16
- package/app/canvas/use-activity.ts +0 -8
- package/app/canvas/use-agent-changes.tsx +34 -40
- package/app/canvas/use-canvas-clipboard.tsx +11 -14
- package/app/canvas/xray.ts +3 -12
- package/app/frame.tsx +5 -0
- package/app/i18n/locales/en/messages.po +114 -12
- package/app/i18n/locales/en/messages.ts +1 -1
- package/app/i18n/locales/pseudo/messages.po +114 -12
- package/app/i18n/locales/pseudo/messages.ts +1 -1
- package/app/icons/{sets/lucide.tsx → glyphs.tsx} +7 -5
- package/app/icons/index.tsx +3 -3
- package/app/icons/types.ts +3 -10
- package/app/index.html +3 -3
- package/app/main.tsx +3 -0
- package/app/pages/canvas-settings.tsx +35 -0
- package/app/pages/canvas.tsx +27 -8
- package/app/pages/commands-settings.tsx +16 -2
- package/app/shell/about.tsx +5 -4
- package/app/shell/feedback-details.ts +0 -3
- package/app/shell/feedback-form.tsx +10 -21
- package/app/shell/feedback-link.tsx +2 -1
- package/app/shell/instructions-editor.tsx +1 -1
- package/app/shell/presence-style.ts +59 -0
- package/app/shell/presence.tsx +6 -3
- package/app/shell/scaled-frame.tsx +21 -9
- package/app/shell/settings-sections.ts +12 -0
- package/app/shell/sidebar.tsx +1 -1
- package/app/studio-ui.d.ts +0 -9
- package/app/types.ts +21 -205
- package/app/ui/file-drop.ts +128 -0
- package/app/ui/prompt-editor.tsx +1 -1
- package/app/ui/shadcn/input-group.tsx +2 -2
- package/dist/cli/banner.d.mts +4 -2
- package/dist/cli/banner.mjs +34 -11
- package/dist/cli/commands/app.mjs +19 -11
- package/dist/cli/commands/create.d.mts +26 -14
- package/dist/cli/commands/create.mjs +13 -7
- package/dist/cli/commands/dev.mjs +2 -3
- package/dist/cli/commands/hook.mjs +2 -1
- package/dist/cli/commands/init.d.mts +11 -6
- package/dist/cli/help.d.mts +1 -1
- package/dist/cli/help.mjs +3 -3
- package/dist/cli/main.d.mts +22 -12
- package/dist/config/index.d.mts +6 -5
- package/dist/config/project-files.d.mts +6 -3
- package/dist/config/project-files.mjs +14 -5
- package/dist/config/renamed.d.mts +0 -2
- package/dist/config/renamed.mjs +1 -3
- package/dist/config/schema.d.mts +0 -5
- package/dist/config/schema.mjs +0 -5
- package/dist/content/capture.d.mts +2 -2
- package/dist/content/capture.mjs +2 -2
- package/dist/content/content.d.mts +3 -141
- package/dist/content/content.mjs +7 -65
- package/dist/content/flow-specs.mjs +1 -1
- package/dist/content/prototype-summary.d.mts +3 -39
- package/dist/content/prototype-summary.mjs +2 -3
- package/dist/content/prototypes.mjs +1 -1
- package/dist/content/snapshot-client.mjs +1 -1
- package/dist/content/text-replace.d.mts +30 -0
- package/dist/content/text-replace.mjs +309 -0
- package/dist/content/thread-module.mjs +1 -1
- package/dist/content/threads.mjs +1 -1
- package/dist/paths.d.mts +0 -2
- package/dist/paths.mjs +1 -3
- package/dist/server/agent-env.d.mts +5 -1
- package/dist/server/agent-env.mjs +7 -2
- package/dist/server/agent-session.d.mts +14 -1
- package/dist/server/agent-session.mjs +84 -19
- package/dist/server/brief.mjs +3 -3
- package/dist/server/build-pictures.mjs +1 -1
- package/dist/server/channel.d.mts +19 -24
- package/dist/server/channel.mjs +70 -37
- package/dist/server/claimed-presence.d.mts +18 -0
- package/dist/server/claimed-presence.mjs +58 -0
- package/dist/server/close-check.mjs +2 -2
- package/dist/server/comments/actions.d.mts +153 -0
- package/dist/server/comments/actions.mjs +154 -0
- package/dist/server/comments/routes.d.mts +25 -0
- package/dist/server/comments/routes.mjs +88 -0
- package/dist/server/comments/tools.d.mts +6 -0
- package/dist/server/comments/tools.mjs +154 -0
- package/dist/server/dev-server.mjs +36 -13
- package/dist/server/file-errors.d.mts +7 -2
- package/dist/server/file-errors.mjs +31 -8
- package/dist/server/file-lock.d.mts +2 -2
- package/dist/server/file-lock.mjs +130 -36
- package/dist/server/mcp.d.mts +0 -2
- package/dist/server/mcp.mjs +7 -8
- package/dist/server/me.d.mts +1 -1
- package/dist/server/open-page.d.mts +22 -0
- package/dist/server/open-page.mjs +20 -2
- package/dist/server/outcome.d.mts +22 -0
- package/dist/server/outcome.mjs +8 -0
- package/dist/server/own-copies.mjs +2 -2
- package/dist/server/people.d.mts +1 -1
- package/dist/server/port.d.mts +12 -0
- package/dist/server/port.mjs +66 -14
- package/dist/server/presence.d.mts +4 -1
- package/dist/server/presence.mjs +2 -2
- package/dist/server/requests.d.mts +5 -1
- package/dist/server/requests.mjs +32 -47
- package/dist/server/studio-for.d.mts +5 -0
- package/dist/server/studio-for.mjs +18 -4
- package/dist/server/sync-install.d.mts +8 -12
- package/dist/server/sync-install.mjs +12 -30
- package/dist/server/thread-source.mjs +2 -2
- package/dist/server/tools/describe.d.mts +1 -1
- package/dist/server/tools/describe.mjs +1 -1
- package/dist/server/tools/feedback.d.mts +1 -1
- package/dist/server/tools/reading.mjs +13 -4
- package/dist/server/tools/show.d.mts +1 -1
- package/dist/server/tools/snapshot.d.mts +1 -1
- package/dist/server/tools/thread-list.mjs +1 -1
- package/dist/server/tools/watch.mjs +5 -3
- package/dist/server/vite.mjs +28 -31
- package/dist/server/web-app.mjs +7 -10
- package/dist/server/work-groups.mjs +1 -1
- package/dist/setup/apply.mjs +8 -14
- package/dist/setup/create.d.mts +4 -2
- package/dist/setup/create.mjs +118 -36
- package/dist/setup/design-system-checks.mjs +3 -12
- package/dist/setup/desktop-app-script.mjs +4 -3
- package/dist/setup/desktop-app-start.d.mts +8 -2
- package/dist/setup/desktop-app-start.mjs +64 -29
- package/dist/setup/desktop-app.d.mts +8 -0
- package/dist/setup/desktop-app.mjs +20 -4
- package/dist/setup/detect.d.mts +14 -7
- package/dist/setup/detect.mjs +56 -10
- package/dist/setup/doctor.mjs +2 -4
- package/dist/setup/existing-setup.d.mts +1 -3
- package/dist/setup/existing-setup.mjs +10 -11
- package/dist/setup/migrate/row-titles.mjs +1 -1
- package/dist/setup/own-app.d.mts +1 -2
- package/dist/setup/own-app.mjs +4 -5
- package/dist/setup/plan.d.mts +8 -6
- package/dist/setup/plan.mjs +64 -48
- package/dist/setup/project.d.mts +6 -17
- package/dist/setup/project.mjs +17 -61
- package/dist/setup/prompts.d.mts +5 -5
- package/dist/setup/prompts.mjs +28 -61
- package/dist/setup/questions.d.mts +12 -4
- package/dist/setup/questions.mjs +10 -25
- package/dist/setup/starters.d.mts +2 -0
- package/dist/setup/starters.mjs +26 -9
- package/dist/setup/workspace-setup.d.mts +1 -2
- package/dist/setup/workspace-setup.mjs +4 -6
- package/dist/setup/write.d.mts +15 -5
- package/dist/setup/write.mjs +35 -9
- package/dist/shared/annotations-core.mjs +1 -1
- package/dist/shared/canvas-core.mjs +1 -1
- package/dist/shared/canvas-file.d.mts +201 -0
- package/dist/shared/canvas-file.mjs +1 -0
- package/dist/shared/comments/routes.d.mts +53 -0
- package/dist/shared/comments/routes.mjs +37 -0
- package/dist/shared/feedback.d.mts +8 -0
- package/dist/shared/feedback.mjs +10 -2
- package/dist/shared/page-review.d.mts +2 -11
- package/dist/shared/page-review.mjs +4 -13
- package/dist/shared/presence-core.d.mts +11 -0
- package/dist/shared/presence-core.mjs +11 -2
- package/dist/shared/review-file.d.mts +5 -0
- package/dist/shared/review-file.mjs +23 -13
- package/dist/shared/server-page.mjs +7 -1
- package/dist/shared/signup.d.mts +2 -5
- package/dist/shared/signup.mjs +2 -35
- package/dist/shared/studio-events.d.mts +0 -6
- package/dist/shared/studio-events.mjs +1 -5
- package/dist/shared/studio-files.d.mts +12 -0
- package/dist/shared/studio-files.mjs +6 -1
- package/dist/shared/studio-routes.d.mts +16 -62
- package/dist/shared/studio-routes.mjs +1 -69
- package/dist/shared/threads-core.d.mts +2 -2
- package/dist/shared/threads-core.mjs +1 -1
- package/extension/dist/feedback.js +148 -138
- package/extension/dist/manifest.json +1 -1
- package/extension/dist/picker.js +146 -136
- package/package.json +3 -20
- package/src/cli/banner.ts +45 -11
- package/src/cli/commands/app.ts +23 -8
- package/src/cli/commands/create.ts +17 -9
- package/src/cli/commands/dev.ts +0 -3
- package/src/cli/commands/hook.ts +4 -1
- package/src/cli/help.ts +3 -3
- package/src/config/index.ts +6 -5
- package/src/config/project-files.ts +21 -11
- package/src/config/renamed.ts +0 -3
- package/src/config/schema.ts +0 -1
- package/src/content/capture.ts +6 -12
- package/src/content/content.ts +7 -244
- package/src/content/flow-specs.ts +2 -1
- package/src/content/prototype-summary.ts +4 -44
- package/src/content/review-pages.ts +2 -1
- package/src/content/snapshot-client.ts +1 -1
- package/src/content/text-replace.ts +449 -0
- package/src/paths.ts +0 -8
- package/src/server/agent-env.ts +12 -2
- package/src/server/agent-session.ts +124 -34
- package/src/server/brief.ts +8 -3
- package/src/server/channel.ts +121 -52
- package/src/server/claimed-presence.ts +93 -0
- package/src/server/comments/actions.ts +352 -0
- package/src/server/comments/routes.ts +176 -0
- package/src/server/comments/tools.ts +317 -0
- package/src/server/dev-server.ts +49 -15
- package/src/server/file-errors.ts +47 -13
- package/src/server/file-lock.ts +205 -54
- package/src/server/mcp.ts +13 -14
- package/src/server/me.ts +2 -5
- package/src/server/open-page.ts +54 -4
- package/src/server/outcome.ts +26 -0
- package/src/server/people.ts +2 -1
- package/src/server/port.ts +94 -20
- package/src/server/presence.ts +11 -3
- package/src/server/requests.ts +60 -70
- package/src/server/studio-for.ts +27 -3
- package/src/server/sync-install.ts +35 -26
- package/src/server/thread-place.ts +2 -4
- package/src/server/tools/reading.ts +16 -3
- package/src/server/tools/watch.ts +7 -7
- package/src/server/vite.ts +37 -40
- package/src/server/web-app.ts +14 -12
- package/src/setup/apply.ts +10 -16
- package/src/setup/create.ts +143 -37
- package/src/setup/design-system-checks.ts +7 -15
- package/src/setup/desktop-app-script.ts +4 -3
- package/src/setup/desktop-app-start.ts +94 -26
- package/src/setup/desktop-app.ts +24 -3
- package/src/setup/detect.ts +56 -14
- package/src/setup/doctor.ts +4 -4
- package/src/setup/existing-setup.ts +10 -12
- package/src/setup/own-app.ts +2 -5
- package/src/setup/plan.ts +93 -84
- package/src/setup/project.ts +25 -118
- package/src/setup/prompts.ts +44 -127
- package/src/setup/questions.ts +27 -29
- package/src/setup/starters.ts +35 -10
- package/src/setup/workspace-setup.ts +8 -18
- package/src/setup/write.ts +52 -9
- package/src/shared/canvas-file.ts +205 -0
- package/src/shared/comments/routes.ts +79 -0
- package/src/shared/feedback.ts +14 -4
- package/src/shared/page-review.ts +11 -16
- package/src/shared/presence-core.ts +16 -2
- package/src/shared/review-file.ts +28 -12
- package/src/shared/server-page.ts +11 -1
- package/src/shared/signup.ts +4 -28
- package/src/shared/studio-events.ts +0 -13
- package/src/shared/studio-files.ts +14 -0
- package/src/shared/studio-routes.ts +21 -64
- package/src/shared/threads-core.ts +2 -2
- package/templates/methods/review.md +2 -2
- package/templates/rules/canvas-frames.md +104 -0
- package/templates/rules/canvas.md +8 -142
- package/templates/rules/prototypes.md +1 -1
- package/templates/rules/snapshots.md +52 -0
- package/templates/starters/standalone/README.md +7 -7
- package/templates/starters/standalone/components.json +1 -1
- package/templates/starters/standalone/package.json +1 -2
- package/templates/starters/turborepo/README.md +6 -6
- package/templates/starters/turborepo/apps/web/components.json +1 -1
- package/templates/starters/turborepo/apps/web/package.json +1 -2
- package/templates/starters/turborepo/apps/web/src/app.tsx +4 -5
- package/templates/starters/turborepo/packages/ui/components.json +1 -1
- package/templates/starters/turborepo/packages/ui/package.json +1 -2
- package/templates/starters/vite/README.md +7 -6
- package/templates/starters/vite/components.json +1 -1
- package/templates/starters/vite/package.json +1 -2
- package/templates/starters/vite/src/app.tsx +3 -4
- package/templates/starters/vite/src/components/ui/accordion.tsx +71 -0
- package/templates/starters/vite/src/components/ui/attachment.tsx +1 -1
- package/templates/starters/vite/src/components/ui/badge.tsx +2 -2
- package/templates/starters/vite/src/components/ui/button.tsx +17 -12
- package/templates/starters/vite/src/components/ui/card.tsx +1 -1
- package/templates/starters/vite/src/components/ui/checkbox.tsx +28 -0
- package/templates/starters/vite/src/components/ui/dialog.tsx +5 -5
- package/templates/starters/vite/src/components/ui/dropdown-menu.tsx +17 -14
- package/templates/starters/vite/src/components/ui/field.tsx +3 -1
- package/templates/starters/vite/src/components/ui/input-group.tsx +5 -3
- package/templates/starters/vite/src/components/ui/input.tsx +1 -1
- package/templates/starters/vite/src/components/ui/label.tsx +2 -0
- package/templates/starters/vite/src/components/ui/native-select.tsx +3 -4
- package/templates/starters/vite/src/components/ui/popover.tsx +1 -1
- package/templates/starters/vite/src/components/ui/separator.tsx +2 -0
- package/templates/starters/vite/src/components/ui/spinner.tsx +3 -7
- package/templates/starters/vite/src/components/ui/switch.tsx +1 -1
- package/templates/starters/vite/src/components/ui/textarea.tsx +1 -1
- package/templates/starters/vite/src/components/ui/toggle.tsx +4 -2
- package/templates/starters/vite/src/index.css +533 -111
- package/app/icons/sets/hugeicons.tsx +0 -259
- package/app/icons/sets/phosphor.tsx +0 -251
- package/dist/server/icon-set.d.mts +0 -15
- package/dist/server/icon-set.mjs +0 -31
- package/dist/server/tools/close-reply.d.mts +0 -6
- package/dist/server/tools/close-reply.mjs +0 -138
- package/dist/server/tools/comment.d.mts +0 -6
- package/dist/server/tools/comment.mjs +0 -49
- package/dist/shared/icon-sets.d.mts +0 -9
- package/dist/shared/icon-sets.mjs +0 -21
- package/src/server/icon-set.ts +0 -56
- package/src/server/tools/close-reply.ts +0 -271
- package/src/server/tools/comment.ts +0 -96
- package/src/shared/icon-sets.ts +0 -23
- /package/app/public/{sudio-192.png → dex-192.png} +0 -0
- /package/app/public/{sudio-512.png → dex-512.png} +0 -0
- /package/app/public/{apple-touch-icon.png → dex-apple-touch-icon.png} +0 -0
- /package/app/public/{favicon-32.png → dex-icon-32.png} +0 -0
- /package/app/public/{favicon.svg → dex-icon.svg} +0 -0
- /package/app/public/{sudio-maskable-512.png → dex-maskable-512.png} +0 -0
|
@@ -4,8 +4,8 @@ import type { CanvasTool } from "./canvas-context";
|
|
|
4
4
|
// around them, decided here: a layer asks for its tool's cursor rather than
|
|
5
5
|
// choosing one. Each is black with a white halo, as the system's own cursors
|
|
6
6
|
// are, so it reads on any page and in either theme, and is the system's size:
|
|
7
|
-
// drawn on a 32 unit grid, shown at
|
|
8
|
-
//
|
|
7
|
+
// drawn on a 32 unit grid, shown at 16 px, the classic cursor box: at 20 px
|
|
8
|
+
// the pin and arrow stood well above the system's own pointer. Its hotspot is where the tool acts, on a whole pixel: the
|
|
9
9
|
// arrow's tip, the corner a comment or a spec is pinned by, the middle of a
|
|
10
10
|
// crosshair. Hand and Text keep the system's hand (engine.css) and I-beam
|
|
11
11
|
// (text-layer.tsx, over text it can edit), which already say what they do.
|
|
@@ -28,11 +28,11 @@ interface Cursor {
|
|
|
28
28
|
|
|
29
29
|
const GRID = 32;
|
|
30
30
|
/** The size a cursor is shown at, in CSS px. */
|
|
31
|
-
export const CURSOR_SIZE =
|
|
31
|
+
export const CURSOR_SIZE = 16;
|
|
32
32
|
const SCALE = CURSOR_SIZE / GRID;
|
|
33
|
-
/** Lines 1
|
|
34
|
-
const STROKE = 1
|
|
35
|
-
const HALO =
|
|
33
|
+
/** Lines 1 px wide, haloed 0.8 px either side, once shown at its size. */
|
|
34
|
+
const STROKE = 1 / SCALE;
|
|
35
|
+
const HALO = 2.6 / SCALE;
|
|
36
36
|
const INK = "#111";
|
|
37
37
|
|
|
38
38
|
const path = (d: string, attributes: string) =>
|
|
@@ -48,7 +48,7 @@ const outlined = (d: string, fill?: string) =>
|
|
|
48
48
|
path(d, `${LINE} stroke="${INK}" stroke-width="${STROKE}"`),
|
|
49
49
|
].join("");
|
|
50
50
|
|
|
51
|
-
// A shown pixel is
|
|
51
|
+
// A shown pixel is 2 units, so every hotspot is a multiple of it.
|
|
52
52
|
|
|
53
53
|
/** A crosshair on (8, 8), open in the middle, for tools that aim. */
|
|
54
54
|
const CROSSHAIR = "M8 1v5M8 10v5M1 8h5M10 8h5";
|
|
@@ -64,23 +64,23 @@ const aiming = (mark: string) => outlined(`${CROSSHAIR}${mark}`);
|
|
|
64
64
|
* point while aiming. Ringed in white.
|
|
65
65
|
*/
|
|
66
66
|
const PIN =
|
|
67
|
-
"
|
|
67
|
+
"M4 26V16A12 12 0 0 1 16 4A12 12 0 0 1 28 16A12 12 0 0 1 16 28H6A2 2 0 0 1 4 26Z";
|
|
68
68
|
|
|
69
69
|
/** MousePointer2, the toolbar's Select, at the system arrow's size. */
|
|
70
|
-
const ARROW = "
|
|
70
|
+
const ARROW = "M4 4L27 12.7L17 17L12.7 27Z";
|
|
71
71
|
|
|
72
72
|
/** A page, square at the corner it is pinned by, as the comment cursor is. */
|
|
73
|
-
const PAGE = "
|
|
73
|
+
const PAGE = "M4 28V7a3 3 0 0 1 3-3h17a3 3 0 0 1 3 3v18a3 3 0 0 1-3 3Z";
|
|
74
74
|
|
|
75
75
|
const CURSORS: Record<ToolCursor, Cursor> = {
|
|
76
76
|
comment: {
|
|
77
77
|
fallback: "crosshair",
|
|
78
|
-
hotspot: [
|
|
78
|
+
hotspot: [4, 28],
|
|
79
79
|
svg: [
|
|
80
80
|
path(PIN, `fill="none" stroke="#fff" stroke-width="${HALO}"`),
|
|
81
81
|
path(PIN, `fill="${INK}"`),
|
|
82
82
|
path(
|
|
83
|
-
"M16
|
|
83
|
+
"M16 11v10M11 16h10",
|
|
84
84
|
`stroke="#fff" stroke-width="${STROKE * 1.4}" stroke-linecap="round"`
|
|
85
85
|
),
|
|
86
86
|
].join(""),
|
|
@@ -107,13 +107,13 @@ const CURSORS: Record<ToolCursor, Cursor> = {
|
|
|
107
107
|
},
|
|
108
108
|
select: {
|
|
109
109
|
fallback: "default",
|
|
110
|
-
hotspot: [
|
|
110
|
+
hotspot: [4, 4],
|
|
111
111
|
svg: outlined(ARROW, ARROW),
|
|
112
112
|
},
|
|
113
113
|
spec: {
|
|
114
114
|
fallback: "copy",
|
|
115
|
-
hotspot: [
|
|
116
|
-
svg: outlined(`${PAGE}
|
|
115
|
+
hotspot: [4, 28],
|
|
116
|
+
svg: outlined(`${PAGE}M10 12h11M10 16.5h11M10 21h7`, PAGE),
|
|
117
117
|
},
|
|
118
118
|
// ScanSearch: a lens, for reading the styles under it.
|
|
119
119
|
styles: {
|
|
@@ -135,7 +135,7 @@ const CURSORS: Record<ToolCursor, Cursor> = {
|
|
|
135
135
|
export const cursorSvg = (name: ToolCursor): string =>
|
|
136
136
|
`<svg xmlns="http://www.w3.org/2000/svg" width="${CURSOR_SIZE}" height="${CURSOR_SIZE}" viewBox="0 0 ${GRID} ${GRID}">${CURSORS[name].svg}</svg>`;
|
|
137
137
|
|
|
138
|
-
/** Rounds away floating point's dust
|
|
138
|
+
/** Rounds away floating point's dust, should a hotspot not be a whole unit. */
|
|
139
139
|
const DUST = 1e6;
|
|
140
140
|
|
|
141
141
|
/** The tool's hotspot, where its click lands, in CSS px from the cursor's corner. */
|
|
@@ -43,8 +43,6 @@ export interface ActivityState {
|
|
|
43
43
|
bar: Bar | undefined;
|
|
44
44
|
/** Make an agent the default, and open it. */
|
|
45
45
|
choose: (agent: LaunchAgentId, makeDefault: boolean) => void;
|
|
46
|
-
/** Count the comments of a finished agent seen, and go to the change. */
|
|
47
|
-
goToChange: (thread: ActivityItem["thread"]) => void;
|
|
48
46
|
items: ActivityItem[];
|
|
49
47
|
/** Open an agent: the default, or the one named, set up first if needed. */
|
|
50
48
|
open: (agent?: LaunchAgentId) => void;
|
|
@@ -274,15 +272,9 @@ export function useActivity(
|
|
|
274
272
|
}
|
|
275
273
|
}, [open, opening]);
|
|
276
274
|
|
|
277
|
-
const goToChange = useCallback(
|
|
278
|
-
(thread: ActivityItem["thread"]) => changes?.goTo([thread]),
|
|
279
|
-
[changes]
|
|
280
|
-
);
|
|
281
|
-
|
|
282
275
|
return {
|
|
283
276
|
bar,
|
|
284
277
|
choose,
|
|
285
|
-
goToChange,
|
|
286
278
|
items,
|
|
287
279
|
open,
|
|
288
280
|
opening,
|
|
@@ -24,10 +24,11 @@ import { useCanvasView } from "./engine/canvas-view";
|
|
|
24
24
|
import { FOCUS_MS, FOCUS_PADDING } from "./thread-focus";
|
|
25
25
|
|
|
26
26
|
// Following what agents complete on this file, for you: the newest change
|
|
27
|
-
// to arrive is news for a while, which the agent heads-up says;
|
|
28
|
-
// change outlines
|
|
29
|
-
//
|
|
30
|
-
// open the
|
|
27
|
+
// to arrive is news for a while, which the agent heads-up says; opening a
|
|
28
|
+
// change's comment from it outlines the frames the change landed on, and
|
|
29
|
+
// goes to them when the comment has no place of its own. While you are busy,
|
|
30
|
+
// the comments panel is open, or the server is away, new ones wait; changes
|
|
31
|
+
// already there when you open the file are only unseen.
|
|
31
32
|
|
|
32
33
|
/**
|
|
33
34
|
* The newest change while it's news, kept outside React's state: only the
|
|
@@ -66,13 +67,16 @@ export const useNews = (store: NewsStore | undefined): Thread | undefined => {
|
|
|
66
67
|
};
|
|
67
68
|
|
|
68
69
|
interface AgentChanges {
|
|
69
|
-
/** Go to these changes, and count them seen. */
|
|
70
|
-
goTo: (threads: Thread[]) => void;
|
|
71
70
|
/** The newest change while it's news (NEWS_MS): read it with useNews. */
|
|
72
71
|
news: NewsStore;
|
|
73
|
-
/**
|
|
72
|
+
/**
|
|
73
|
+
* Outline the frames these changes landed on a while, and count them
|
|
74
|
+
* seen; with `move`, the canvas goes to them too.
|
|
75
|
+
*/
|
|
76
|
+
outline: (threads: Thread[], options?: { move?: boolean }) => void;
|
|
77
|
+
/** Frames outlined since their changes were opened. */
|
|
74
78
|
outlined: ReadonlySet<string>;
|
|
75
|
-
/** Threads whose agent pins show: unseen, or just
|
|
79
|
+
/** Threads whose agent pins show: unseen, or just outlined. */
|
|
76
80
|
pinned: ReadonlySet<string>;
|
|
77
81
|
/** Count a thread seen, as reading it in its card does. */
|
|
78
82
|
see: (thread: Thread) => void;
|
|
@@ -241,43 +245,33 @@ export function useAgentChanges({
|
|
|
241
245
|
}
|
|
242
246
|
}, [unseen, loaded, file, seenOf.file, quiet, tell]);
|
|
243
247
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
(keys: string[], ids: string[]) => {
|
|
247
|
-
view.fitView({
|
|
248
|
-
nodes: keys.map((id) => ({ id })),
|
|
249
|
-
padding: FOCUS_PADDING,
|
|
250
|
-
duration: FOCUS_MS,
|
|
251
|
-
});
|
|
252
|
-
outlineTimers.clear();
|
|
253
|
-
setOutlined(new Set(keys));
|
|
254
|
-
setShown(new Set(ids));
|
|
255
|
-
outlineTimers.after(OUTLINE_MS, () => {
|
|
256
|
-
setOutlined(NOTHING);
|
|
257
|
-
setShown(NOTHING);
|
|
258
|
-
});
|
|
259
|
-
},
|
|
260
|
-
[view, outlineTimers]
|
|
261
|
-
);
|
|
262
|
-
|
|
263
|
-
const goTo = useCallback(
|
|
264
|
-
(targets: Thread[]) => {
|
|
248
|
+
const outline = useCallback(
|
|
249
|
+
(targets: Thread[], { move = false } = {}) => {
|
|
265
250
|
if (targets.length === 0) {
|
|
266
251
|
return;
|
|
267
252
|
}
|
|
268
253
|
newsTimers.clear();
|
|
269
254
|
news.set(undefined);
|
|
270
255
|
remember(targets);
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
256
|
+
const keys = [
|
|
257
|
+
...new Set(targets.flatMap((thread) => changedFrames(thread, canvas))),
|
|
258
|
+
];
|
|
259
|
+
if (move) {
|
|
260
|
+
view.fitView({
|
|
261
|
+
nodes: keys.map((id) => ({ id })),
|
|
262
|
+
padding: FOCUS_PADDING,
|
|
263
|
+
duration: FOCUS_MS,
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
outlineTimers.clear();
|
|
267
|
+
setOutlined(new Set(keys));
|
|
268
|
+
setShown(new Set(targets.map((thread) => thread.id)));
|
|
269
|
+
outlineTimers.after(OUTLINE_MS, () => {
|
|
270
|
+
setOutlined(NOTHING);
|
|
271
|
+
setShown(NOTHING);
|
|
272
|
+
});
|
|
279
273
|
},
|
|
280
|
-
[canvas, news, newsTimers, remember,
|
|
274
|
+
[canvas, news, newsTimers, outlineTimers, remember, view]
|
|
281
275
|
);
|
|
282
276
|
|
|
283
277
|
const see = useCallback(
|
|
@@ -304,12 +298,12 @@ export function useAgentChanges({
|
|
|
304
298
|
() => ({
|
|
305
299
|
unseen,
|
|
306
300
|
news,
|
|
307
|
-
|
|
301
|
+
outline,
|
|
308
302
|
see,
|
|
309
303
|
outlined,
|
|
310
304
|
pinned,
|
|
311
305
|
}),
|
|
312
|
-
[unseen, news,
|
|
306
|
+
[unseen, news, outline, see, outlined, pinned]
|
|
313
307
|
);
|
|
314
308
|
}
|
|
315
309
|
|
|
@@ -14,6 +14,7 @@ import type { PastedImage } from "../../src/shared/pasted-image.ts";
|
|
|
14
14
|
import type { PasteSource } from "../../src/shared/snapshot-clipboard.ts";
|
|
15
15
|
import { CAN_WRITE } from "../live/studio-api";
|
|
16
16
|
import type { Prototype } from "../registry";
|
|
17
|
+
import { carriesFiles, takeFileDrag } from "../ui/file-drop";
|
|
17
18
|
import {
|
|
18
19
|
contentsOf,
|
|
19
20
|
isCanvasClipboardEvent,
|
|
@@ -73,9 +74,6 @@ export const useCanvasClipboard = () => useContext(ClipboardContext);
|
|
|
73
74
|
const isOnCanvas = (target: EventTarget | null): boolean =>
|
|
74
75
|
target instanceof Element && target.closest(".studio-canvas") !== null;
|
|
75
76
|
|
|
76
|
-
const carriesFiles = (event: DragEvent): boolean =>
|
|
77
|
-
event.dataTransfer?.types.includes("Files") ?? false;
|
|
78
|
-
|
|
79
77
|
/** Says what the clipboard did, with the icon of the notice when it worked. */
|
|
80
78
|
type Say = (text: string, icon?: IconName) => void;
|
|
81
79
|
|
|
@@ -300,14 +298,11 @@ export const useClipboard = ({
|
|
|
300
298
|
event.preventDefault();
|
|
301
299
|
}
|
|
302
300
|
};
|
|
303
|
-
// Files dragged over the canvas are taken, rather than
|
|
304
|
-
// place of the studio.
|
|
305
|
-
const
|
|
306
|
-
if (takesFiles() &&
|
|
307
|
-
event
|
|
308
|
-
if (event.dataTransfer) {
|
|
309
|
-
event.dataTransfer.dropEffect = "copy";
|
|
310
|
-
}
|
|
301
|
+
// Files dragged over the canvas are taken (file-drop.ts), rather than
|
|
302
|
+
// opened in place of the studio, which refuses them anywhere else.
|
|
303
|
+
const onFileDrag = (event: DragEvent) => {
|
|
304
|
+
if (takesFiles() && isOnCanvas(event.target)) {
|
|
305
|
+
takeFileDrag(event);
|
|
311
306
|
}
|
|
312
307
|
};
|
|
313
308
|
const onDrop = (event: DragEvent) => {
|
|
@@ -317,7 +312,7 @@ export const useClipboard = ({
|
|
|
317
312
|
return;
|
|
318
313
|
}
|
|
319
314
|
event.preventDefault();
|
|
320
|
-
const files = [...
|
|
315
|
+
const files = [...event.dataTransfer.files];
|
|
321
316
|
const imageFiles = files.filter(isImage);
|
|
322
317
|
if (imageFiles.length === 0) {
|
|
323
318
|
now().say(now().words.onlyImages);
|
|
@@ -333,13 +328,15 @@ export const useClipboard = ({
|
|
|
333
328
|
window.addEventListener("copy", copy);
|
|
334
329
|
window.addEventListener("cut", cut);
|
|
335
330
|
window.addEventListener("paste", onPaste);
|
|
336
|
-
window.addEventListener("
|
|
331
|
+
window.addEventListener("dragenter", onFileDrag);
|
|
332
|
+
window.addEventListener("dragover", onFileDrag);
|
|
337
333
|
window.addEventListener("drop", onDrop);
|
|
338
334
|
return () => {
|
|
339
335
|
window.removeEventListener("copy", copy);
|
|
340
336
|
window.removeEventListener("cut", cut);
|
|
341
337
|
window.removeEventListener("paste", onPaste);
|
|
342
|
-
window.removeEventListener("
|
|
338
|
+
window.removeEventListener("dragenter", onFileDrag);
|
|
339
|
+
window.removeEventListener("dragover", onFileDrag);
|
|
343
340
|
window.removeEventListener("drop", onDrop);
|
|
344
341
|
};
|
|
345
342
|
};
|
package/app/canvas/xray.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
// changing its layout, to see how it is built. A style is added to the page
|
|
3
3
|
// and removed again; nothing else is touched.
|
|
4
4
|
|
|
5
|
+
import { setPageStyle } from "./page-style";
|
|
6
|
+
|
|
5
7
|
const XRAY_ID = "studio-xray";
|
|
6
8
|
const XRAY_CSS = `
|
|
7
9
|
*, *::before, *::after {
|
|
@@ -13,16 +15,5 @@ const XRAY_CSS = `
|
|
|
13
15
|
|
|
14
16
|
/** Show or hide x-ray on a page; the live page keeps it on as it reloads. */
|
|
15
17
|
export function setXray(page: Document | null | undefined, on: boolean) {
|
|
16
|
-
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
const existing = page.getElementById(XRAY_ID);
|
|
20
|
-
if (on && !existing) {
|
|
21
|
-
const style = page.createElement("style");
|
|
22
|
-
style.id = XRAY_ID;
|
|
23
|
-
style.textContent = XRAY_CSS;
|
|
24
|
-
page.head.append(style);
|
|
25
|
-
} else if (!on && existing) {
|
|
26
|
-
existing.remove();
|
|
27
|
-
}
|
|
18
|
+
setPageStyle(page, XRAY_ID, XRAY_CSS, on);
|
|
28
19
|
}
|
package/app/frame.tsx
CHANGED
|
@@ -11,10 +11,15 @@ import { FrameApp } from "./frame/frame-app";
|
|
|
11
11
|
import { hashPath } from "./frame/frame-history";
|
|
12
12
|
import { holdWindowFocus } from "./frame/hold-window-focus";
|
|
13
13
|
import { preloadView } from "./frame/views";
|
|
14
|
+
import { refuseStrayFileDrops } from "./ui/file-drop";
|
|
14
15
|
import { StudioThemeProvider } from "./ui/theme-provider";
|
|
15
16
|
|
|
16
17
|
// Before the view, so its listeners come after this one.
|
|
17
18
|
holdWindowFocus(window);
|
|
19
|
+
// A file dropped on the view where nothing in it takes the file is never
|
|
20
|
+
// opened in place of it, nor of the studio around a live frame. What the
|
|
21
|
+
// view takes, on its own elements or its window, it still takes.
|
|
22
|
+
refuseStrayFileDrops(window);
|
|
18
23
|
|
|
19
24
|
const root = document.getElementById("root");
|
|
20
25
|
if (!root) {
|
|
@@ -91,6 +91,11 @@ msgstr "{0} is watching"
|
|
|
91
91
|
msgid "{0} new from the team"
|
|
92
92
|
msgstr "{0} new from the team"
|
|
93
93
|
|
|
94
|
+
#. placeholder {0}: at + 1
|
|
95
|
+
#: app/canvas/find-bar.tsx
|
|
96
|
+
msgid "{0} of {counted}"
|
|
97
|
+
msgstr "{0} of {counted}"
|
|
98
|
+
|
|
94
99
|
#. placeholder {0}: humanise(group.name)
|
|
95
100
|
#: app/canvas/removed-views-panel.tsx
|
|
96
101
|
msgid "{0}, {versions} versions"
|
|
@@ -338,6 +343,10 @@ msgstr "{PRODUCT} couldn’t save its settings in this project. Check that you c
|
|
|
338
343
|
msgid "{PRODUCT} isn’t answering. Start it again in your terminal, then open this again."
|
|
339
344
|
msgstr "{PRODUCT} isn’t answering. Start it again in your terminal, then open this again."
|
|
340
345
|
|
|
346
|
+
#: app/shell/about.tsx
|
|
347
|
+
msgid "{PRODUCT} on npm"
|
|
348
|
+
msgstr "{PRODUCT} on npm"
|
|
349
|
+
|
|
341
350
|
#: app/shell/welcome.tsx
|
|
342
351
|
msgid "{PRODUCT}'s team can't take this right now. Try again later."
|
|
343
352
|
msgstr "{PRODUCT}'s team can't take this right now. Try again later."
|
|
@@ -546,6 +555,10 @@ msgstr "Agent replied"
|
|
|
546
555
|
msgid "Agents"
|
|
547
556
|
msgstr "Agents"
|
|
548
557
|
|
|
558
|
+
#: app/pages/canvas-settings.tsx
|
|
559
|
+
msgid "Agents at work"
|
|
560
|
+
msgstr "Agents at work"
|
|
561
|
+
|
|
549
562
|
#: app/canvas/comments.tsx
|
|
550
563
|
#: app/shell/thread-list.tsx
|
|
551
564
|
msgid "All"
|
|
@@ -707,6 +720,7 @@ msgstr "Back, and caught up."
|
|
|
707
720
|
msgid "Base branch"
|
|
708
721
|
msgstr "Base branch"
|
|
709
722
|
|
|
723
|
+
#: app/pages/canvas-settings.tsx
|
|
710
724
|
#: app/shell/instructions-editor.tsx
|
|
711
725
|
msgid "Blocks"
|
|
712
726
|
msgstr "Blocks"
|
|
@@ -791,6 +805,7 @@ msgstr "Cancel"
|
|
|
791
805
|
#: app/canvas/canvas-context-menu.tsx
|
|
792
806
|
#: app/canvas/flow-canvas.tsx
|
|
793
807
|
#: app/shell/page-title.ts
|
|
808
|
+
#: app/shell/settings-sections.ts
|
|
794
809
|
msgid "Canvas"
|
|
795
810
|
msgstr "Canvas"
|
|
796
811
|
|
|
@@ -947,6 +962,7 @@ msgid "Click Load unpacked and choose that folder: the one with manifest.json in
|
|
|
947
962
|
msgstr "Click Load unpacked and choose that folder: the one with manifest.json in it."
|
|
948
963
|
|
|
949
964
|
#: app/canvas/comments.tsx
|
|
965
|
+
#: app/canvas/find-bar.tsx
|
|
950
966
|
#: app/canvas/floating-panel.tsx
|
|
951
967
|
#: app/canvas/review-panel.tsx
|
|
952
968
|
#: app/editor/node-views.tsx
|
|
@@ -1029,10 +1045,6 @@ msgstr "Comment, or / for commands"
|
|
|
1029
1045
|
msgid "Comments"
|
|
1030
1046
|
msgstr "Comments"
|
|
1031
1047
|
|
|
1032
|
-
#: app/canvas/comments.tsx
|
|
1033
|
-
msgid "Comments hidden"
|
|
1034
|
-
msgstr "Comments hidden"
|
|
1035
|
-
|
|
1036
1048
|
#: app/shell/agent-manual.tsx
|
|
1037
1049
|
msgid "Comments on a canvas reach a watching agent by themselves. It takes each one (👀), makes the change, and closes it (✅) once the code it changed passes {PRODUCT}’s checks. A comment it doesn’t finish goes back to waiting for an agent."
|
|
1038
1050
|
msgstr "Comments on a canvas reach a watching agent by themselves. It takes each one (👀), makes the change, and closes it (✅) once the code it changed passes {PRODUCT}’s checks. A comment it doesn’t finish goes back to waiting for an agent."
|
|
@@ -1579,6 +1591,10 @@ msgstr "Each file gets a branch, merged by pull request."
|
|
|
1579
1591
|
msgid "Each Sync merges in what’s new on this branch."
|
|
1580
1592
|
msgstr "Each Sync merges in what’s new on this branch."
|
|
1581
1593
|
|
|
1594
|
+
#: app/pages/canvas-settings.tsx
|
|
1595
|
+
msgid "Edge only"
|
|
1596
|
+
msgstr "Edge only"
|
|
1597
|
+
|
|
1582
1598
|
#: app/canvas/comments.tsx
|
|
1583
1599
|
#: app/canvas/review-panel.tsx
|
|
1584
1600
|
msgid "Edit"
|
|
@@ -1722,6 +1738,10 @@ msgstr "Fill window"
|
|
|
1722
1738
|
msgid "Filter comments"
|
|
1723
1739
|
msgstr "Filter comments"
|
|
1724
1740
|
|
|
1741
|
+
#: app/canvas/find-bar.tsx
|
|
1742
|
+
msgid "Find"
|
|
1743
|
+
msgstr "Find"
|
|
1744
|
+
|
|
1725
1745
|
#: app/git/branch-panel.tsx
|
|
1726
1746
|
msgid "Find a branch"
|
|
1727
1747
|
msgstr "Find a branch"
|
|
@@ -1734,6 +1754,14 @@ msgstr "Find a component"
|
|
|
1734
1754
|
msgid "Find a frame"
|
|
1735
1755
|
msgstr "Find a frame"
|
|
1736
1756
|
|
|
1757
|
+
#: app/canvas/find-bar.tsx
|
|
1758
|
+
msgid "Find on the frames"
|
|
1759
|
+
msgstr "Find on the frames"
|
|
1760
|
+
|
|
1761
|
+
#: app/canvas/find-bar.tsx
|
|
1762
|
+
msgid "Finding…"
|
|
1763
|
+
msgstr "Finding…"
|
|
1764
|
+
|
|
1737
1765
|
#: app/git/paused.tsx
|
|
1738
1766
|
msgid "Finish"
|
|
1739
1767
|
msgstr "Finish"
|
|
@@ -1924,6 +1952,10 @@ msgstr "Hide comments"
|
|
|
1924
1952
|
msgid "Hide from published site"
|
|
1925
1953
|
msgstr "Hide from published site"
|
|
1926
1954
|
|
|
1955
|
+
#: app/canvas/find-bar.tsx
|
|
1956
|
+
msgid "Hide replace"
|
|
1957
|
+
msgstr "Hide replace"
|
|
1958
|
+
|
|
1927
1959
|
#: app/canvas/imported-reviews.tsx
|
|
1928
1960
|
msgid "Hide resolved"
|
|
1929
1961
|
msgstr "Hide resolved"
|
|
@@ -1944,10 +1976,18 @@ msgstr "Home"
|
|
|
1944
1976
|
msgid "Hover"
|
|
1945
1977
|
msgstr "Hover"
|
|
1946
1978
|
|
|
1979
|
+
#: app/pages/canvas-settings.tsx
|
|
1980
|
+
msgid "How a frame an agent is changing shows it: drawn in blocks while it works, an edge round the frame, or nothing."
|
|
1981
|
+
msgstr "How a frame an agent is changing shows it: drawn in blocks while it works, an edge round the frame, or nothing."
|
|
1982
|
+
|
|
1947
1983
|
#: app/pages/markup-settings.tsx
|
|
1948
1984
|
msgid "How it works"
|
|
1949
1985
|
msgstr "How it works"
|
|
1950
1986
|
|
|
1987
|
+
#: app/shell/settings-sections.ts
|
|
1988
|
+
msgid "How the canvas shows you what agents are doing. Kept in this browser."
|
|
1989
|
+
msgstr "How the canvas shows you what agents are doing. Kept in this browser."
|
|
1990
|
+
|
|
1951
1991
|
#: app/pages/workspace-git.tsx
|
|
1952
1992
|
msgid "How the team shares work from the canvas, the same way for everyone."
|
|
1953
1993
|
msgstr "How the team shares work from the canvas, the same way for everyone."
|
|
@@ -2075,6 +2115,10 @@ msgstr "it could not be changed here."
|
|
|
2075
2115
|
msgid "It could not be pasted."
|
|
2076
2116
|
msgstr "It could not be pasted."
|
|
2077
2117
|
|
|
2118
|
+
#: app/canvas/find-bar.tsx
|
|
2119
|
+
msgid "It could not be put back."
|
|
2120
|
+
msgstr "It could not be put back."
|
|
2121
|
+
|
|
2078
2122
|
#: app/canvas/props-panel.tsx
|
|
2079
2123
|
msgid "it could not be saved here."
|
|
2080
2124
|
msgstr "it could not be saved here."
|
|
@@ -2495,6 +2539,10 @@ msgstr "New review"
|
|
|
2495
2539
|
msgid "New section from these"
|
|
2496
2540
|
msgstr "New section from these"
|
|
2497
2541
|
|
|
2542
|
+
#: app/canvas/find-bar.tsx
|
|
2543
|
+
msgid "Next"
|
|
2544
|
+
msgstr "Next"
|
|
2545
|
+
|
|
2498
2546
|
#: app/pages/play-bar.tsx
|
|
2499
2547
|
msgid "Next step"
|
|
2500
2548
|
msgstr "Next step"
|
|
@@ -2594,6 +2642,10 @@ msgstr "No props to try on this component."
|
|
|
2594
2642
|
msgid "No React or bundler: put it at the end of <0><body></0>. It loads Markup from jsDelivr. Keep <1>type=\"module\"</1> and an exact version."
|
|
2595
2643
|
msgstr "No React or bundler: put it at the end of <0><body></0>. It loads Markup from jsDelivr. Keep <1>type=\"module\"</1> and an exact version."
|
|
2596
2644
|
|
|
2645
|
+
#: app/canvas/find-bar.tsx
|
|
2646
|
+
msgid "No results"
|
|
2647
|
+
msgstr "No results"
|
|
2648
|
+
|
|
2597
2649
|
#: app/canvas/imported-reviews.tsx
|
|
2598
2650
|
msgid "No reviews to show."
|
|
2599
2651
|
msgstr "No reviews to show."
|
|
@@ -2718,6 +2770,18 @@ msgstr "Not synced"
|
|
|
2718
2770
|
msgid "Note"
|
|
2719
2771
|
msgstr "Note"
|
|
2720
2772
|
|
|
2773
|
+
#: app/canvas/find-bar.tsx
|
|
2774
|
+
msgid "Nothing changed: {left} files changed meanwhile, or could not be written. Try again."
|
|
2775
|
+
msgstr "Nothing changed: {left} files changed meanwhile, or could not be written. Try again."
|
|
2776
|
+
|
|
2777
|
+
#: app/canvas/find-bar.tsx
|
|
2778
|
+
msgid "Nothing changed: these words aren't written as text in your files."
|
|
2779
|
+
msgstr "Nothing changed: these words aren't written as text in your files."
|
|
2780
|
+
|
|
2781
|
+
#: app/canvas/find-bar.tsx
|
|
2782
|
+
msgid "Nothing changed."
|
|
2783
|
+
msgstr "Nothing changed."
|
|
2784
|
+
|
|
2721
2785
|
#: app/canvas/comments.tsx
|
|
2722
2786
|
msgid "Nothing for people"
|
|
2723
2787
|
msgstr "Nothing for people"
|
|
@@ -2770,6 +2834,10 @@ msgstr "Notifications, {count} new"
|
|
|
2770
2834
|
msgid "Numbered list"
|
|
2771
2835
|
msgstr "Numbered list"
|
|
2772
2836
|
|
|
2837
|
+
#: app/pages/canvas-settings.tsx
|
|
2838
|
+
msgid "Off"
|
|
2839
|
+
msgstr "Off"
|
|
2840
|
+
|
|
2773
2841
|
#: app/canvas/thread-place.ts
|
|
2774
2842
|
msgid "On the canvas"
|
|
2775
2843
|
msgstr "On the canvas"
|
|
@@ -3095,10 +3163,6 @@ msgstr "Presentation"
|
|
|
3095
3163
|
msgid "Presenting"
|
|
3096
3164
|
msgstr "Presenting"
|
|
3097
3165
|
|
|
3098
|
-
#: app/canvas/comments.tsx
|
|
3099
|
-
msgid "Press ⇧C, or choose Show comments in ⋯, to see them."
|
|
3100
|
-
msgstr "Press ⇧C, or choose Show comments in ⋯, to see them."
|
|
3101
|
-
|
|
3102
3166
|
#: app/canvas/styles-layer.tsx
|
|
3103
3167
|
msgid "Pressed"
|
|
3104
3168
|
msgstr "Pressed"
|
|
@@ -3116,6 +3180,10 @@ msgstr "Preview deployed site"
|
|
|
3116
3180
|
msgid "Previewing the deployed site"
|
|
3117
3181
|
msgstr "Previewing the deployed site"
|
|
3118
3182
|
|
|
3183
|
+
#: app/canvas/find-bar.tsx
|
|
3184
|
+
msgid "Previous"
|
|
3185
|
+
msgstr "Previous"
|
|
3186
|
+
|
|
3119
3187
|
#: app/pages/play-bar.tsx
|
|
3120
3188
|
msgid "Previous step"
|
|
3121
3189
|
msgstr "Previous step"
|
|
@@ -3176,6 +3244,14 @@ msgstr "Pushed: {unmerged, plural, one {# commit} other {# commits}} ahead of {b
|
|
|
3176
3244
|
msgid "Put back"
|
|
3177
3245
|
msgstr "Put back"
|
|
3178
3246
|
|
|
3247
|
+
#: app/canvas/find-bar.tsx
|
|
3248
|
+
msgid "Put back, but for {kept} files changed since."
|
|
3249
|
+
msgstr "Put back, but for {kept} files changed since."
|
|
3250
|
+
|
|
3251
|
+
#: app/canvas/find-bar.tsx
|
|
3252
|
+
msgid "Put back."
|
|
3253
|
+
msgstr "Put back."
|
|
3254
|
+
|
|
3179
3255
|
#: app/canvas/slide-full-screen.tsx
|
|
3180
3256
|
msgid "Put words on the slide"
|
|
3181
3257
|
msgstr "Put words on the slide"
|
|
@@ -3314,6 +3390,24 @@ msgstr "Renamed"
|
|
|
3314
3390
|
msgid "Reopen"
|
|
3315
3391
|
msgstr "Reopen"
|
|
3316
3392
|
|
|
3393
|
+
#: app/canvas/find-bar.tsx
|
|
3394
|
+
msgid "Replace"
|
|
3395
|
+
msgstr "Replace"
|
|
3396
|
+
|
|
3397
|
+
#: app/canvas/find-bar.tsx
|
|
3398
|
+
msgid "Replace all, in your files"
|
|
3399
|
+
msgstr "Replace all, in your files"
|
|
3400
|
+
|
|
3401
|
+
#: app/canvas/find-bar.tsx
|
|
3402
|
+
msgid "Replace with"
|
|
3403
|
+
msgstr "Replace with"
|
|
3404
|
+
|
|
3405
|
+
#. placeholder {0}: status.replaced
|
|
3406
|
+
#. placeholder {1}: status.files
|
|
3407
|
+
#: app/canvas/find-bar.tsx
|
|
3408
|
+
msgid "Replaced {0} in {1} files."
|
|
3409
|
+
msgstr "Replaced {0} in {1} files."
|
|
3410
|
+
|
|
3317
3411
|
#: app/shell/bell.tsx
|
|
3318
3412
|
msgid "Replies and comments for you show here."
|
|
3319
3413
|
msgstr "Replies and comments for you show here."
|
|
@@ -3835,10 +3929,6 @@ msgstr "Sort by {current}"
|
|
|
3835
3929
|
msgid "Sort: {current}"
|
|
3836
3930
|
msgstr "Sort: {current}"
|
|
3837
3931
|
|
|
3838
|
-
#: app/shell/about.tsx
|
|
3839
|
-
msgid "Source on GitHub"
|
|
3840
|
-
msgstr "Source on GitHub"
|
|
3841
|
-
|
|
3842
3932
|
#: app/canvas/spec-placing.tsx
|
|
3843
3933
|
#: app/canvas/toolbar.tsx
|
|
3844
3934
|
msgid "Spec"
|
|
@@ -4275,6 +4365,10 @@ msgstr "These files move to .studio/trash/ on this machine, at their paths: copy
|
|
|
4275
4365
|
msgid "They collect here as the work goes on."
|
|
4276
4366
|
msgstr "They collect here as the work goes on."
|
|
4277
4367
|
|
|
4368
|
+
#: app/canvas/find-bar.tsx
|
|
4369
|
+
msgid "They could not be replaced."
|
|
4370
|
+
msgstr "They could not be replaced."
|
|
4371
|
+
|
|
4278
4372
|
#: app/git/git-toasts.tsx
|
|
4279
4373
|
msgid "They’re on {base}, not on {branch} yet."
|
|
4280
4374
|
msgstr "They’re on {base}, not on {branch} yet."
|
|
@@ -4375,6 +4469,10 @@ msgstr "This sketch has something Dex can’t draw"
|
|
|
4375
4469
|
msgid "To change one, add a file with the same name to this project’s rules or methods folder: it replaces {PRODUCT}’s, and it is marked here."
|
|
4376
4470
|
msgstr "To change one, add a file with the same name to this project’s rules or methods folder: it replaces {PRODUCT}’s, and it is marked here."
|
|
4377
4471
|
|
|
4472
|
+
#: app/canvas/find-bar.tsx
|
|
4473
|
+
msgid "Too many places to replace at once: find something narrower."
|
|
4474
|
+
msgstr "Too many places to replace at once: find something narrower."
|
|
4475
|
+
|
|
4378
4476
|
#: app/pages/play-bar.tsx
|
|
4379
4477
|
msgid "Toolbar hidden. Press {SHOW_KEY} to show it."
|
|
4380
4478
|
msgstr "Toolbar hidden. Press {SHOW_KEY} to show it."
|
|
@@ -4401,6 +4499,10 @@ msgstr "Try again"
|
|
|
4401
4499
|
msgid "TV"
|
|
4402
4500
|
msgstr "TV"
|
|
4403
4501
|
|
|
4502
|
+
#: app/canvas/find-bar.tsx
|
|
4503
|
+
msgid "Undo"
|
|
4504
|
+
msgstr "Undo"
|
|
4505
|
+
|
|
4404
4506
|
#: app/git/paused.tsx
|
|
4405
4507
|
msgid "Undo it"
|
|
4406
4508
|
msgstr "Undo it"
|