@medeo-plugin/plugin-screenshot 0.0.0-stage → 1.0.1
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/README.md +38 -2
- package/package.json +41 -4
- package/plugin.medeoplugin +0 -0
- package/src/README.md +28 -0
- package/src/README.zh-CN.md +20 -0
- package/src/about.json +7 -0
- package/src/icon.svg +1 -0
- package/src/locales/en.json +141 -0
- package/src/locales/zh-CN.json +141 -0
- package/src/locales/zh-TW.json +141 -0
- package/src/manifest.json +125 -0
- package/src/media/en/editor.png +0 -0
- package/src/media/en/settings.png +0 -0
- package/src/media/zh-CN/editor.png +0 -0
- package/src/media/zh-CN/settings.png +0 -0
- package/src/resources/helper.js +99 -0
- package/src/resources/trayTemplate.png +0 -0
- package/src/resources/trayTemplate.svg +1 -0
- package/src/src/annotations.ts +398 -0
- package/src/src/beautify.ts +41 -0
- package/src/src/geometry.ts +79 -0
- package/src/src/naming.ts +19 -0
- package/src/src/protocol.ts +53 -0
- package/src/src/settings.ts +48 -0
- package/src/src/shortcuts.ts +25 -0
- package/src/src/ui/overlay.ts +874 -0
- package/src/src/ui/settings.ts +140 -0
- package/src/tests/logic.test.mjs +101 -0
- package/src/ui/entry.ts +4 -0
- package/src/ui/icons/align-center.svg +1 -0
- package/src/ui/icons/align-left.svg +1 -0
- package/src/ui/icons/align-right.svg +1 -0
- package/src/ui/icons/arrow-double.svg +1 -0
- package/src/ui/icons/arrow-open.svg +1 -0
- package/src/ui/icons/arrow-single.svg +1 -0
- package/src/ui/icons/arrow-tail.svg +1 -0
- package/src/ui/icons/arrow-thick.svg +1 -0
- package/src/ui/icons/arrow.svg +1 -0
- package/src/ui/icons/beautify.svg +1 -0
- package/src/ui/icons/bold.svg +1 -0
- package/src/ui/icons/censor.svg +1 -0
- package/src/ui/icons/close.svg +1 -0
- package/src/ui/icons/copy-doc.svg +1 -0
- package/src/ui/icons/copy.svg +1 -0
- package/src/ui/icons/ellipse.svg +1 -0
- package/src/ui/icons/fill-fill.svg +1 -0
- package/src/ui/icons/fill-stroke.svg +1 -0
- package/src/ui/icons/fill-strokeFill.svg +1 -0
- package/src/ui/icons/highlight.svg +1 -0
- package/src/ui/icons/invert.svg +1 -0
- package/src/ui/icons/italic.svg +1 -0
- package/src/ui/icons/line-dashed.svg +1 -0
- package/src/ui/icons/line-dotted.svg +1 -0
- package/src/ui/icons/line-solid.svg +1 -0
- package/src/ui/icons/line.svg +1 -0
- package/src/ui/icons/marker.svg +1 -0
- package/src/ui/icons/measure.svg +1 -0
- package/src/ui/icons/number.svg +1 -0
- package/src/ui/icons/ocr.svg +1 -0
- package/src/ui/icons/open.svg +1 -0
- package/src/ui/icons/pencil.svg +1 -0
- package/src/ui/icons/rect.svg +1 -0
- package/src/ui/icons/redo.svg +1 -0
- package/src/ui/icons/sampler.svg +1 -0
- package/src/ui/icons/save.svg +1 -0
- package/src/ui/icons/select.svg +1 -0
- package/src/ui/icons/stamp.svg +1 -0
- package/src/ui/icons/text-bg.svg +1 -0
- package/src/ui/icons/text.svg +1 -0
- package/src/ui/icons/trash.svg +1 -0
- package/src/ui/icons/underline.svg +1 -0
- package/src/ui/icons/undo.svg +1 -0
- package/src/ui/index.html +12 -0
- package/src/ui/settings.html +5 -0
- package/src/ui/style.css +105 -0
- package/src/worker.ts +285 -0
|
Binary file
|
package/src/README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Screenshot
|
|
2
|
+
|
|
3
|
+
Capture any part of the screen and annotate it in place: select, add arrows, blur, number the
|
|
4
|
+
steps, then copy or save in one go.
|
|
5
|
+
|
|
6
|
+

|
|
7
|
+
|
|
8
|
+
- **Capture**: ⌘⇧X (area), plus optional shortcuts for full screen, quick capture and OCR; the
|
|
9
|
+
menu-bar icon and the launcher (`shot`). The display under the pointer is frozen with macOS's
|
|
10
|
+
`screencapture`; drag to select (Shift for a square), click a window (Tab toggles snapping), F
|
|
11
|
+
for the whole display.
|
|
12
|
+
- **Tools** (single-key shortcuts): Select S, Arrow A (5 styles), Line L, Pencil P, Marker M,
|
|
13
|
+
Rectangle R / Ellipse O (outline, fill, corner radius), Text T (bold, italic, underline,
|
|
14
|
+
alignment, background), Number N (1/I/A/a), Censor B (pixelate, blur, solid), Highlight H,
|
|
15
|
+
Stamp G, Measure U, Color sampler I. Click any annotation to edit, move, resize or delete it;
|
|
16
|
+
hold Space while drawing to move, Shift to constrain.
|
|
17
|
+
- **Actions**: copy ⌘C, save ⌘S (PNG or JPEG, optional 1×), read text and QR codes with Apple
|
|
18
|
+
Vision, beautify (gradient, padding, window frame), invert.
|
|
19
|
+
|
|
20
|
+

|
|
21
|
+
|
|
22
|
+
Runtime: Node (macOS). Permissions: `node`, `app_windows`, `window_management` (the full-screen
|
|
23
|
+
overlay), `screen_capture` (reports and requests macOS Screen Recording), `global_shortcuts`,
|
|
24
|
+
`tray`, `notifications`. AppKit access goes through `resources/helper.js`, run with
|
|
25
|
+
`osascript -l JavaScript`; no native binaries are shipped.
|
|
26
|
+
|
|
27
|
+
Not yet: pin to screen (needs a floating window type in the host), scroll capture, recording,
|
|
28
|
+
multi-display selections.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# 截图
|
|
2
|
+
|
|
3
|
+
截取屏幕任意区域并就地标注:框选、画箭头、打码、加序号,复制或保存一气呵成。
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
- **截图**:⌘⇧X 区域截图;全屏、快速截图、截图识字(OCR)可另设快捷键;也可从菜单栏图标和启动器(输入 `shot`)调用。
|
|
8
|
+
用系统 `screencapture` 冻结指针所在屏幕;拖拽框选(Shift 正方形)、单击选中窗口(Tab 开关吸附)、F 选整个屏幕。
|
|
9
|
+
- **工具**(单键切换):选择 S、箭头 A(5 种)、直线 L、铅笔 P、马克笔 M、矩形 R / 椭圆 O(描边、填充、圆角)、
|
|
10
|
+
文字 T(粗体、斜体、下划线、对齐、背景)、序号 N(1/I/A/a)、打码 B(像素化、模糊、色块)、聚光 H、贴纸 G、测量 U、取色 I。
|
|
11
|
+
点任意标注即可编辑、移动、缩放或删除;绘制时按住空格移动,Shift 约束。
|
|
12
|
+
- **动作**:复制 ⌘C、保存 ⌘S(PNG/JPEG,可按 1 倍保存)、用 Apple Vision 识别文字和二维码、美化(渐变、留白、窗口边框)、反色。
|
|
13
|
+
|
|
14
|
+

|
|
15
|
+
|
|
16
|
+
运行时:Node(macOS)。权限:`node`、`app_windows`、`window_management`(全屏覆盖层)、`screen_capture`
|
|
17
|
+
(报告并申请系统屏幕录制授权)、`global_shortcuts`、`tray`、`notifications`。AppKit 能力经 `resources/helper.js`
|
|
18
|
+
(`osascript -l JavaScript`)调用,不带原生二进制。
|
|
19
|
+
|
|
20
|
+
暂未支持:贴图(需宿主提供置顶浮窗)、滚动长截图、录屏、跨屏选区。
|
package/src/about.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "Medeo",
|
|
3
|
+
"license": "MIT",
|
|
4
|
+
"homepage": "https://medeo-desktop.play.one2x.ai/",
|
|
5
|
+
"repository": "https://github.com/one2x-ai/medeo-desktop-plugin-sdk/tree/main/plugins/screenshot",
|
|
6
|
+
"bugs": "https://github.com/one2x-ai/medeo-desktop-plugin-sdk/issues"
|
|
7
|
+
}
|
package/src/icon.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#60A5FA"/><stop offset="1" stop-color="#2563EB"/></linearGradient></defs><rect width="64" height="64" rx="14" fill="url(#g)"/><g fill="none" stroke="#fff" stroke-width="4.5" stroke-linecap="round" stroke-linejoin="round"><path d="M22 12v30h30"/><path d="M12 22h30v30"/></g><circle cx="32" cy="32" r="4.5" fill="#FDE68A"/></svg>
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
{
|
|
2
|
+
"action.beautify": "Beautify",
|
|
3
|
+
"action.cancel": "Cancel (Esc)",
|
|
4
|
+
"action.capture": "Capture Area",
|
|
5
|
+
"action.close": "Close",
|
|
6
|
+
"action.copy": "Copy (⌘C)",
|
|
7
|
+
"action.delete": "Delete (⌫)",
|
|
8
|
+
"action.invert": "Invert Colors",
|
|
9
|
+
"action.ocr": "Read Text & QR",
|
|
10
|
+
"action.redo": "Redo (⇧⌘Z)",
|
|
11
|
+
"action.save": "Save (⌘S)",
|
|
12
|
+
"action.undo": "Undo (⌘Z)",
|
|
13
|
+
"align.center": "Center",
|
|
14
|
+
"align.left": "Left",
|
|
15
|
+
"align.right": "Right",
|
|
16
|
+
"arrow.double": "Double",
|
|
17
|
+
"arrow.open": "Open",
|
|
18
|
+
"arrow.single": "Arrow",
|
|
19
|
+
"arrow.tail": "Tail",
|
|
20
|
+
"arrow.thick": "Banner",
|
|
21
|
+
"beauty.enable": "Beautify",
|
|
22
|
+
"beauty.frame": "Window frame",
|
|
23
|
+
"beauty.padding": "Padding",
|
|
24
|
+
"censor.blur": "Blur",
|
|
25
|
+
"censor.pixelate": "Pixelate",
|
|
26
|
+
"censor.solid": "Solid",
|
|
27
|
+
"command.screenshot.capture": "Capture Area",
|
|
28
|
+
"command.screenshot.capture-full": "Capture Full Screen",
|
|
29
|
+
"command.screenshot.capture-ocr": "Capture Text (OCR)",
|
|
30
|
+
"command.screenshot.capture-quick": "Quick Capture",
|
|
31
|
+
"command.screenshot.folder": "Open Screenshots Folder",
|
|
32
|
+
"command.screenshot.settings": "Screenshot Settings",
|
|
33
|
+
"error.capture": "The screen could not be captured.",
|
|
34
|
+
"error.copy": "Could not copy to the clipboard.",
|
|
35
|
+
"error.save": "Could not save to {folder}.",
|
|
36
|
+
"fill.fill": "Fill",
|
|
37
|
+
"fill.stroke": "Outline",
|
|
38
|
+
"fill.strokeFill": "Outline and fill",
|
|
39
|
+
"foot.tips": "Also in the menu bar and the launcher (type “shot”).",
|
|
40
|
+
"hint.drag": "Drag to select a region",
|
|
41
|
+
"hint.enter": "↩ finish · ⌘C copy · ⌘S save",
|
|
42
|
+
"hint.esc": "Esc to cancel",
|
|
43
|
+
"hint.full": "F captures the whole screen",
|
|
44
|
+
"hint.select": "Click an annotation to edit, ⌫ deletes it",
|
|
45
|
+
"hint.snapOff": "Tab turns window snapping on",
|
|
46
|
+
"hint.snapOn": "Click a window to capture it · Tab turns snapping off",
|
|
47
|
+
"hint.space": "Hold Space while drawing to move · Shift to constrain",
|
|
48
|
+
"hint.square": "Shift + drag for a square",
|
|
49
|
+
"hint.tools": "A arrow · R rectangle · T text · N number · B censor",
|
|
50
|
+
"line.dashed": "Dashed",
|
|
51
|
+
"line.dotted": "Dotted",
|
|
52
|
+
"line.solid": "Solid",
|
|
53
|
+
"notify.error.title": "Screenshot",
|
|
54
|
+
"notify.saved.body": "{name} in {folder}",
|
|
55
|
+
"notify.saved.title": "Screenshot saved",
|
|
56
|
+
"ocr.copy": "Copy",
|
|
57
|
+
"ocr.copyAll": "Copy Text",
|
|
58
|
+
"ocr.empty": "No text or QR code found.",
|
|
59
|
+
"ocr.failed": "Text could not be read.",
|
|
60
|
+
"ocr.loading": "Reading text…",
|
|
61
|
+
"ocr.open": "Open",
|
|
62
|
+
"ocr.qr": "QR",
|
|
63
|
+
"ocr.title": "Text",
|
|
64
|
+
"option.bold": "Bold",
|
|
65
|
+
"option.color": "Color",
|
|
66
|
+
"option.customColor": "Custom color",
|
|
67
|
+
"option.fontSize": "Font",
|
|
68
|
+
"option.italic": "Italic",
|
|
69
|
+
"option.opacity": "Opacity",
|
|
70
|
+
"option.radius": "Corners",
|
|
71
|
+
"option.samplerNote": "Click to copy a color's hex value",
|
|
72
|
+
"option.selectNote": "Click an annotation to edit it; drag elsewhere to move the selection",
|
|
73
|
+
"option.textBg": "Background",
|
|
74
|
+
"option.underline": "Underline",
|
|
75
|
+
"option.width": "Size",
|
|
76
|
+
"output.copy": "Copy",
|
|
77
|
+
"output.downscale": "Save Retina captures at 1×",
|
|
78
|
+
"output.downscale.note": "Half the pixels, much smaller files",
|
|
79
|
+
"output.enter": "↩ and quick capture",
|
|
80
|
+
"output.enter.note": "⌘C always copies, ⌘S always saves",
|
|
81
|
+
"output.format": "Save as",
|
|
82
|
+
"output.save": "Save",
|
|
83
|
+
"perm.body": "macOS only lets Medeo see the screen after you allow Screen Recording. Without it a screenshot shows only the desktop picture.",
|
|
84
|
+
"perm.ok": "Medeo may capture the screen. Screenshots stay on this Mac.",
|
|
85
|
+
"perm.open": "Open System Settings",
|
|
86
|
+
"perm.request": "Allow…",
|
|
87
|
+
"perm.restart": "After turning on Medeo in System Settings, macOS may ask you to quit and reopen Medeo.",
|
|
88
|
+
"perm.state.granted": "Allowed",
|
|
89
|
+
"perm.state.missing": "Not allowed",
|
|
90
|
+
"perm.state.unknown": "Not checked",
|
|
91
|
+
"perm.title": "Screen Recording permission",
|
|
92
|
+
"plugin.description": "Capture any part of the screen and annotate it in place: arrows, shapes, text, numbers, censor, spotlight, stamps and measuring. Copy, save, read text and QR codes, or beautify it on a gradient.",
|
|
93
|
+
"plugin.name": "Screenshot",
|
|
94
|
+
"save.change": "Change…",
|
|
95
|
+
"save.changed": "Folder updated",
|
|
96
|
+
"save.choose": "Choose where screenshots are saved",
|
|
97
|
+
"save.folder": "Save to",
|
|
98
|
+
"save.open": "Show in Finder after saving",
|
|
99
|
+
"save.open.note": "Off by default so repeated screenshots don't steal focus",
|
|
100
|
+
"save.reveal": "Show",
|
|
101
|
+
"section.output": "Output",
|
|
102
|
+
"section.save": "Saving",
|
|
103
|
+
"section.shortcuts": "Shortcuts",
|
|
104
|
+
"settings.title": "Screenshot Settings",
|
|
105
|
+
"shortcut.clear": "Clear",
|
|
106
|
+
"shortcut.error.invalid": "Use ⌃, ⌥ or ⌘ with a key, or an F-key.",
|
|
107
|
+
"shortcut.error.permission": "Global shortcuts are not allowed for this plugin.",
|
|
108
|
+
"shortcut.error.taken": "Another app already uses this shortcut.",
|
|
109
|
+
"shortcut.none": "None",
|
|
110
|
+
"shortcut.press": "Press keys…",
|
|
111
|
+
"shortcut.shortcutArea": "Capture area",
|
|
112
|
+
"shortcut.shortcutArea.note": "Select, annotate, then finish",
|
|
113
|
+
"shortcut.shortcutFull": "Capture full screen",
|
|
114
|
+
"shortcut.shortcutFull.note": "The whole display under the pointer",
|
|
115
|
+
"shortcut.shortcutOcr": "Capture text (OCR)",
|
|
116
|
+
"shortcut.shortcutOcr.note": "Select, then copy the recognised text",
|
|
117
|
+
"shortcut.shortcutQuick": "Quick capture",
|
|
118
|
+
"shortcut.shortcutQuick.note": "Copies or saves as soon as you select",
|
|
119
|
+
"toast.colorCopied": "Copied {color}",
|
|
120
|
+
"toast.copied": "Copied",
|
|
121
|
+
"tool.arrow": "Arrow",
|
|
122
|
+
"tool.censor": "Censor",
|
|
123
|
+
"tool.ellipse": "Ellipse",
|
|
124
|
+
"tool.highlight": "Highlight",
|
|
125
|
+
"tool.line": "Line",
|
|
126
|
+
"tool.marker": "Marker",
|
|
127
|
+
"tool.measure": "Measure",
|
|
128
|
+
"tool.number": "Number",
|
|
129
|
+
"tool.pencil": "Pencil",
|
|
130
|
+
"tool.rect": "Rectangle",
|
|
131
|
+
"tool.sampler": "Color Sampler",
|
|
132
|
+
"tool.select": "Select & Edit",
|
|
133
|
+
"tool.stamp": "Stamp",
|
|
134
|
+
"tool.text": "Text",
|
|
135
|
+
"tray.area": "Capture Area",
|
|
136
|
+
"tray.folder": "Open Screenshots Folder",
|
|
137
|
+
"tray.full": "Capture Full Screen",
|
|
138
|
+
"tray.ocr": "Capture Text (OCR)",
|
|
139
|
+
"tray.quick": "Quick Capture",
|
|
140
|
+
"tray.settings": "Settings…"
|
|
141
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
{
|
|
2
|
+
"action.beautify": "美化",
|
|
3
|
+
"action.cancel": "取消 (Esc)",
|
|
4
|
+
"action.capture": "区域截图",
|
|
5
|
+
"action.close": "关闭",
|
|
6
|
+
"action.copy": "复制 (⌘C)",
|
|
7
|
+
"action.delete": "删除 (⌫)",
|
|
8
|
+
"action.invert": "反色",
|
|
9
|
+
"action.ocr": "识别文字和二维码",
|
|
10
|
+
"action.redo": "重做 (⇧⌘Z)",
|
|
11
|
+
"action.save": "保存 (⌘S)",
|
|
12
|
+
"action.undo": "撤销 (⌘Z)",
|
|
13
|
+
"align.center": "居中",
|
|
14
|
+
"align.left": "左对齐",
|
|
15
|
+
"align.right": "右对齐",
|
|
16
|
+
"arrow.double": "双向",
|
|
17
|
+
"arrow.open": "开口",
|
|
18
|
+
"arrow.single": "箭头",
|
|
19
|
+
"arrow.tail": "带尾",
|
|
20
|
+
"arrow.thick": "粗箭头",
|
|
21
|
+
"beauty.enable": "美化",
|
|
22
|
+
"beauty.frame": "窗口边框",
|
|
23
|
+
"beauty.padding": "留白",
|
|
24
|
+
"censor.blur": "模糊",
|
|
25
|
+
"censor.pixelate": "像素化",
|
|
26
|
+
"censor.solid": "色块",
|
|
27
|
+
"command.screenshot.capture": "区域截图",
|
|
28
|
+
"command.screenshot.capture-full": "全屏截图",
|
|
29
|
+
"command.screenshot.capture-ocr": "截图识字(OCR)",
|
|
30
|
+
"command.screenshot.capture-quick": "快速截图",
|
|
31
|
+
"command.screenshot.folder": "打开截图文件夹",
|
|
32
|
+
"command.screenshot.settings": "截图设置",
|
|
33
|
+
"error.capture": "无法截取屏幕。",
|
|
34
|
+
"error.copy": "无法复制到剪贴板。",
|
|
35
|
+
"error.save": "无法保存到 {folder}。",
|
|
36
|
+
"fill.fill": "填充",
|
|
37
|
+
"fill.stroke": "描边",
|
|
38
|
+
"fill.strokeFill": "描边加填充",
|
|
39
|
+
"foot.tips": "也可以从菜单栏图标或启动器(输入 “shot”)截图。",
|
|
40
|
+
"hint.drag": "拖拽框选截图区域",
|
|
41
|
+
"hint.enter": "↩ 完成 · ⌘C 复制 · ⌘S 保存",
|
|
42
|
+
"hint.esc": "Esc 取消",
|
|
43
|
+
"hint.full": "F 截取整个屏幕",
|
|
44
|
+
"hint.select": "点标注即可编辑,⌫ 删除",
|
|
45
|
+
"hint.snapOff": "Tab 打开窗口吸附",
|
|
46
|
+
"hint.snapOn": "单击窗口即可截取 · Tab 关闭窗口吸附",
|
|
47
|
+
"hint.space": "绘制时按住空格可移动 · Shift 约束方向/比例",
|
|
48
|
+
"hint.square": "Shift + 拖拽 正方形选区",
|
|
49
|
+
"hint.tools": "A 箭头 · R 矩形 · T 文字 · N 序号 · B 打码",
|
|
50
|
+
"line.dashed": "虚线",
|
|
51
|
+
"line.dotted": "点线",
|
|
52
|
+
"line.solid": "实线",
|
|
53
|
+
"notify.error.title": "截图",
|
|
54
|
+
"notify.saved.body": "{name},位于 {folder}",
|
|
55
|
+
"notify.saved.title": "截图已保存",
|
|
56
|
+
"ocr.copy": "复制",
|
|
57
|
+
"ocr.copyAll": "复制文字",
|
|
58
|
+
"ocr.empty": "没有找到文字或二维码。",
|
|
59
|
+
"ocr.failed": "无法识别文字。",
|
|
60
|
+
"ocr.loading": "正在识别…",
|
|
61
|
+
"ocr.open": "打开",
|
|
62
|
+
"ocr.qr": "二维码",
|
|
63
|
+
"ocr.title": "识别结果",
|
|
64
|
+
"option.bold": "粗体",
|
|
65
|
+
"option.color": "颜色",
|
|
66
|
+
"option.customColor": "自定义颜色",
|
|
67
|
+
"option.fontSize": "字号",
|
|
68
|
+
"option.italic": "斜体",
|
|
69
|
+
"option.opacity": "不透明度",
|
|
70
|
+
"option.radius": "圆角",
|
|
71
|
+
"option.samplerNote": "点击即可复制该处颜色的十六进制值",
|
|
72
|
+
"option.selectNote": "点标注即可编辑;在空白处拖动可移动选区",
|
|
73
|
+
"option.textBg": "背景",
|
|
74
|
+
"option.underline": "下划线",
|
|
75
|
+
"option.width": "粗细",
|
|
76
|
+
"output.copy": "复制",
|
|
77
|
+
"output.downscale": "Retina 截图按 1 倍保存",
|
|
78
|
+
"output.downscale.note": "像素减半,文件小很多",
|
|
79
|
+
"output.enter": "↩ 和快速截图",
|
|
80
|
+
"output.enter.note": "⌘C 总是复制,⌘S 总是保存",
|
|
81
|
+
"output.format": "保存格式",
|
|
82
|
+
"output.save": "保存",
|
|
83
|
+
"perm.body": "macOS 需要你允许「屏幕录制」后,Medeo 才能看到屏幕内容;否则截图里只有桌面壁纸。",
|
|
84
|
+
"perm.ok": "Medeo 可以截取屏幕。截图只保存在这台 Mac 上。",
|
|
85
|
+
"perm.open": "打开系统设置",
|
|
86
|
+
"perm.request": "去授权…",
|
|
87
|
+
"perm.restart": "在系统设置里打开 Medeo 后,macOS 可能会要求退出并重新打开 Medeo。",
|
|
88
|
+
"perm.state.granted": "已允许",
|
|
89
|
+
"perm.state.missing": "未允许",
|
|
90
|
+
"perm.state.unknown": "未检查",
|
|
91
|
+
"perm.title": "屏幕录制权限",
|
|
92
|
+
"plugin.description": "截取屏幕任意区域并就地标注:箭头、形状、文字、序号、打码、聚光、贴纸和测量。可以复制、保存、识别文字和二维码,或放到渐变背景上美化。",
|
|
93
|
+
"plugin.name": "截图",
|
|
94
|
+
"save.change": "更改…",
|
|
95
|
+
"save.changed": "保存位置已更新",
|
|
96
|
+
"save.choose": "选择截图的保存位置",
|
|
97
|
+
"save.folder": "保存到",
|
|
98
|
+
"save.open": "保存后在访达中显示",
|
|
99
|
+
"save.open.note": "默认关闭,避免连续截图时反复抢焦点",
|
|
100
|
+
"save.reveal": "打开",
|
|
101
|
+
"section.output": "输出",
|
|
102
|
+
"section.save": "保存",
|
|
103
|
+
"section.shortcuts": "快捷键",
|
|
104
|
+
"settings.title": "截图设置",
|
|
105
|
+
"shortcut.clear": "清除",
|
|
106
|
+
"shortcut.error.invalid": "需要 ⌃、⌥ 或 ⌘ 加一个键,或单独的 F 键。",
|
|
107
|
+
"shortcut.error.permission": "没有授予这个插件全局快捷键权限。",
|
|
108
|
+
"shortcut.error.taken": "这个快捷键已被其他 App 占用。",
|
|
109
|
+
"shortcut.none": "无",
|
|
110
|
+
"shortcut.press": "请按下快捷键…",
|
|
111
|
+
"shortcut.shortcutArea": "区域截图",
|
|
112
|
+
"shortcut.shortcutArea.note": "框选、标注后完成",
|
|
113
|
+
"shortcut.shortcutFull": "全屏截图",
|
|
114
|
+
"shortcut.shortcutFull.note": "截取指针所在的整块屏幕",
|
|
115
|
+
"shortcut.shortcutOcr": "截图识字(OCR)",
|
|
116
|
+
"shortcut.shortcutOcr.note": "框选后复制识别出的文字",
|
|
117
|
+
"shortcut.shortcutQuick": "快速截图",
|
|
118
|
+
"shortcut.shortcutQuick.note": "框选后立即复制或保存",
|
|
119
|
+
"toast.colorCopied": "已复制 {color}",
|
|
120
|
+
"toast.copied": "已复制",
|
|
121
|
+
"tool.arrow": "箭头",
|
|
122
|
+
"tool.censor": "打码",
|
|
123
|
+
"tool.ellipse": "椭圆",
|
|
124
|
+
"tool.highlight": "聚光",
|
|
125
|
+
"tool.line": "直线",
|
|
126
|
+
"tool.marker": "马克笔",
|
|
127
|
+
"tool.measure": "测量",
|
|
128
|
+
"tool.number": "序号",
|
|
129
|
+
"tool.pencil": "铅笔",
|
|
130
|
+
"tool.rect": "矩形",
|
|
131
|
+
"tool.sampler": "取色",
|
|
132
|
+
"tool.select": "选择与编辑",
|
|
133
|
+
"tool.stamp": "贴纸",
|
|
134
|
+
"tool.text": "文字",
|
|
135
|
+
"tray.area": "区域截图",
|
|
136
|
+
"tray.folder": "打开截图文件夹",
|
|
137
|
+
"tray.full": "全屏截图",
|
|
138
|
+
"tray.ocr": "截图识字(OCR)",
|
|
139
|
+
"tray.quick": "快速截图",
|
|
140
|
+
"tray.settings": "设置…"
|
|
141
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
{
|
|
2
|
+
"action.beautify": "美化",
|
|
3
|
+
"action.cancel": "取消 (Esc)",
|
|
4
|
+
"action.capture": "區域截圖",
|
|
5
|
+
"action.close": "關閉",
|
|
6
|
+
"action.copy": "拷貝 (⌘C)",
|
|
7
|
+
"action.delete": "刪除 (⌫)",
|
|
8
|
+
"action.invert": "反轉顏色",
|
|
9
|
+
"action.ocr": "辨識文字和 QR 碼",
|
|
10
|
+
"action.redo": "重做 (⇧⌘Z)",
|
|
11
|
+
"action.save": "儲存 (⌘S)",
|
|
12
|
+
"action.undo": "還原 (⌘Z)",
|
|
13
|
+
"align.center": "置中",
|
|
14
|
+
"align.left": "靠左",
|
|
15
|
+
"align.right": "靠右",
|
|
16
|
+
"arrow.double": "雙向",
|
|
17
|
+
"arrow.open": "開口",
|
|
18
|
+
"arrow.single": "箭頭",
|
|
19
|
+
"arrow.tail": "帶尾",
|
|
20
|
+
"arrow.thick": "粗箭頭",
|
|
21
|
+
"beauty.enable": "美化",
|
|
22
|
+
"beauty.frame": "視窗邊框",
|
|
23
|
+
"beauty.padding": "留白",
|
|
24
|
+
"censor.blur": "模糊",
|
|
25
|
+
"censor.pixelate": "像素化",
|
|
26
|
+
"censor.solid": "色塊",
|
|
27
|
+
"command.screenshot.capture": "區域截圖",
|
|
28
|
+
"command.screenshot.capture-full": "全螢幕截圖",
|
|
29
|
+
"command.screenshot.capture-ocr": "截圖辨識文字(OCR)",
|
|
30
|
+
"command.screenshot.capture-quick": "快速截圖",
|
|
31
|
+
"command.screenshot.folder": "打開截圖資料夾",
|
|
32
|
+
"command.screenshot.settings": "截圖設定",
|
|
33
|
+
"error.capture": "無法擷取螢幕。",
|
|
34
|
+
"error.copy": "無法拷貝到剪貼簿。",
|
|
35
|
+
"error.save": "無法儲存到 {folder}。",
|
|
36
|
+
"fill.fill": "填滿",
|
|
37
|
+
"fill.stroke": "描邊",
|
|
38
|
+
"fill.strokeFill": "描邊加填滿",
|
|
39
|
+
"foot.tips": "也可以從選單列圖示或啟動器(輸入 “shot”)截圖。",
|
|
40
|
+
"hint.drag": "拖曳框選截圖區域",
|
|
41
|
+
"hint.enter": "↩ 完成 · ⌘C 拷貝 · ⌘S 儲存",
|
|
42
|
+
"hint.esc": "Esc 取消",
|
|
43
|
+
"hint.full": "F 擷取整個螢幕",
|
|
44
|
+
"hint.select": "按標註即可編輯,⌫ 刪除",
|
|
45
|
+
"hint.snapOff": "Tab 打開視窗吸附",
|
|
46
|
+
"hint.snapOn": "按一下視窗即可擷取 · Tab 關閉視窗吸附",
|
|
47
|
+
"hint.space": "繪製時按住空白鍵可移動 · Shift 限制方向/比例",
|
|
48
|
+
"hint.square": "Shift + 拖曳 正方形選區",
|
|
49
|
+
"hint.tools": "A 箭頭 · R 矩形 · T 文字 · N 序號 · B 遮蔽",
|
|
50
|
+
"line.dashed": "虛線",
|
|
51
|
+
"line.dotted": "點線",
|
|
52
|
+
"line.solid": "實線",
|
|
53
|
+
"notify.error.title": "截圖",
|
|
54
|
+
"notify.saved.body": "{name},位於 {folder}",
|
|
55
|
+
"notify.saved.title": "截圖已儲存",
|
|
56
|
+
"ocr.copy": "拷貝",
|
|
57
|
+
"ocr.copyAll": "拷貝文字",
|
|
58
|
+
"ocr.empty": "沒有找到文字或 QR 碼。",
|
|
59
|
+
"ocr.failed": "無法辨識文字。",
|
|
60
|
+
"ocr.loading": "正在辨識…",
|
|
61
|
+
"ocr.open": "打開",
|
|
62
|
+
"ocr.qr": "QR 碼",
|
|
63
|
+
"ocr.title": "辨識結果",
|
|
64
|
+
"option.bold": "粗體",
|
|
65
|
+
"option.color": "顏色",
|
|
66
|
+
"option.customColor": "自訂顏色",
|
|
67
|
+
"option.fontSize": "字級",
|
|
68
|
+
"option.italic": "斜體",
|
|
69
|
+
"option.opacity": "不透明度",
|
|
70
|
+
"option.radius": "圓角",
|
|
71
|
+
"option.samplerNote": "按一下即可拷貝該處顏色的十六進位值",
|
|
72
|
+
"option.selectNote": "按標註即可編輯;在空白處拖曳可移動選區",
|
|
73
|
+
"option.textBg": "背景",
|
|
74
|
+
"option.underline": "底線",
|
|
75
|
+
"option.width": "粗細",
|
|
76
|
+
"output.copy": "拷貝",
|
|
77
|
+
"output.downscale": "Retina 截圖以 1 倍儲存",
|
|
78
|
+
"output.downscale.note": "像素減半,檔案小很多",
|
|
79
|
+
"output.enter": "↩ 和快速截圖",
|
|
80
|
+
"output.enter.note": "⌘C 一律拷貝,⌘S 一律儲存",
|
|
81
|
+
"output.format": "儲存格式",
|
|
82
|
+
"output.save": "儲存",
|
|
83
|
+
"perm.body": "macOS 需要你允許「螢幕錄製」後,Medeo 才能看到螢幕內容;否則截圖裡只有桌面背景。",
|
|
84
|
+
"perm.ok": "Medeo 可以擷取螢幕。截圖只儲存在這台 Mac 上。",
|
|
85
|
+
"perm.open": "打開系統設定",
|
|
86
|
+
"perm.request": "前往授權…",
|
|
87
|
+
"perm.restart": "在系統設定裡打開 Medeo 後,macOS 可能會要求結束並重新打開 Medeo。",
|
|
88
|
+
"perm.state.granted": "已允許",
|
|
89
|
+
"perm.state.missing": "未允許",
|
|
90
|
+
"perm.state.unknown": "未檢查",
|
|
91
|
+
"perm.title": "螢幕錄製權限",
|
|
92
|
+
"plugin.description": "擷取螢幕任意區域並就地標註:箭頭、形狀、文字、序號、遮蔽、聚光、貼圖和測量。可以拷貝、儲存、辨識文字和 QR 碼,或放到漸層背景上美化。",
|
|
93
|
+
"plugin.name": "截圖",
|
|
94
|
+
"save.change": "更改…",
|
|
95
|
+
"save.changed": "儲存位置已更新",
|
|
96
|
+
"save.choose": "選擇截圖的儲存位置",
|
|
97
|
+
"save.folder": "儲存到",
|
|
98
|
+
"save.open": "儲存後在 Finder 中顯示",
|
|
99
|
+
"save.open.note": "預設關閉,避免連續截圖時反覆搶焦點",
|
|
100
|
+
"save.reveal": "打開",
|
|
101
|
+
"section.output": "輸出",
|
|
102
|
+
"section.save": "儲存",
|
|
103
|
+
"section.shortcuts": "快捷鍵",
|
|
104
|
+
"settings.title": "截圖設定",
|
|
105
|
+
"shortcut.clear": "清除",
|
|
106
|
+
"shortcut.error.invalid": "需要 ⌃、⌥ 或 ⌘ 加一個鍵,或單獨的 F 鍵。",
|
|
107
|
+
"shortcut.error.permission": "沒有授予這個外掛全域快捷鍵權限。",
|
|
108
|
+
"shortcut.error.taken": "這個快捷鍵已被其他 App 佔用。",
|
|
109
|
+
"shortcut.none": "無",
|
|
110
|
+
"shortcut.press": "請按下快捷鍵…",
|
|
111
|
+
"shortcut.shortcutArea": "區域截圖",
|
|
112
|
+
"shortcut.shortcutArea.note": "框選、標註後完成",
|
|
113
|
+
"shortcut.shortcutFull": "全螢幕截圖",
|
|
114
|
+
"shortcut.shortcutFull.note": "擷取指標所在的整個螢幕",
|
|
115
|
+
"shortcut.shortcutOcr": "截圖辨識文字(OCR)",
|
|
116
|
+
"shortcut.shortcutOcr.note": "框選後拷貝辨識出的文字",
|
|
117
|
+
"shortcut.shortcutQuick": "快速截圖",
|
|
118
|
+
"shortcut.shortcutQuick.note": "框選後立即拷貝或儲存",
|
|
119
|
+
"toast.colorCopied": "已拷貝 {color}",
|
|
120
|
+
"toast.copied": "已拷貝",
|
|
121
|
+
"tool.arrow": "箭頭",
|
|
122
|
+
"tool.censor": "遮蔽",
|
|
123
|
+
"tool.ellipse": "橢圓",
|
|
124
|
+
"tool.highlight": "聚光",
|
|
125
|
+
"tool.line": "直線",
|
|
126
|
+
"tool.marker": "麥克筆",
|
|
127
|
+
"tool.measure": "測量",
|
|
128
|
+
"tool.number": "序號",
|
|
129
|
+
"tool.pencil": "鉛筆",
|
|
130
|
+
"tool.rect": "矩形",
|
|
131
|
+
"tool.sampler": "取色",
|
|
132
|
+
"tool.select": "選取與編輯",
|
|
133
|
+
"tool.stamp": "貼圖",
|
|
134
|
+
"tool.text": "文字",
|
|
135
|
+
"tray.area": "區域截圖",
|
|
136
|
+
"tray.folder": "打開截圖資料夾",
|
|
137
|
+
"tray.full": "全螢幕截圖",
|
|
138
|
+
"tray.ocr": "截圖辨識文字(OCR)",
|
|
139
|
+
"tray.quick": "快速截圖",
|
|
140
|
+
"tray.settings": "設定…"
|
|
141
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "app.medeo.screenshot",
|
|
3
|
+
"name": "Screenshot",
|
|
4
|
+
"description": "Capture any part of the screen and annotate it in place: arrows, shapes, text, numbers, censor, spotlight, stamps and measuring. Copy, save, read text and QR codes, or beautify it on a gradient.",
|
|
5
|
+
"icon": "icon.svg",
|
|
6
|
+
"version": "1.0.1",
|
|
7
|
+
"api_version": 1,
|
|
8
|
+
"runtime": "node",
|
|
9
|
+
"platforms": [
|
|
10
|
+
"macos"
|
|
11
|
+
],
|
|
12
|
+
"worker": "main.mjs",
|
|
13
|
+
"permissions": [
|
|
14
|
+
"node",
|
|
15
|
+
"app_windows",
|
|
16
|
+
"window_management",
|
|
17
|
+
"screen_capture",
|
|
18
|
+
"global_shortcuts",
|
|
19
|
+
"tray",
|
|
20
|
+
"notifications"
|
|
21
|
+
],
|
|
22
|
+
"activation_events": [
|
|
23
|
+
"onStartup"
|
|
24
|
+
],
|
|
25
|
+
"commands": [
|
|
26
|
+
{
|
|
27
|
+
"id": "screenshot.capture",
|
|
28
|
+
"title": "Capture Area"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": "screenshot.capture-full",
|
|
32
|
+
"title": "Capture Full Screen"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"id": "screenshot.capture-quick",
|
|
36
|
+
"title": "Quick Capture"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "screenshot.capture-ocr",
|
|
40
|
+
"title": "Capture Text (OCR)"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "screenshot.settings",
|
|
44
|
+
"title": "Screenshot Settings"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": "screenshot.folder",
|
|
48
|
+
"title": "Open Screenshots Folder"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"localization": {
|
|
52
|
+
"default_locale": "en",
|
|
53
|
+
"catalogs": {
|
|
54
|
+
"en": "locales/en.json",
|
|
55
|
+
"zh-CN": "locales/zh-CN.json",
|
|
56
|
+
"zh-TW": "locales/zh-TW.json"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"contributes": {
|
|
60
|
+
"launcher": {
|
|
61
|
+
"keyword": "shot",
|
|
62
|
+
"commands": [
|
|
63
|
+
{
|
|
64
|
+
"command": "screenshot.capture",
|
|
65
|
+
"pinnable": true,
|
|
66
|
+
"keywords": [
|
|
67
|
+
"screenshot",
|
|
68
|
+
"capture",
|
|
69
|
+
"area",
|
|
70
|
+
"截图",
|
|
71
|
+
"截屏"
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"command": "screenshot.capture-full",
|
|
76
|
+
"keywords": [
|
|
77
|
+
"screenshot",
|
|
78
|
+
"full screen",
|
|
79
|
+
"全屏",
|
|
80
|
+
"截图"
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"command": "screenshot.capture-quick",
|
|
85
|
+
"keywords": [
|
|
86
|
+
"screenshot",
|
|
87
|
+
"quick",
|
|
88
|
+
"快速",
|
|
89
|
+
"截图"
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"command": "screenshot.capture-ocr",
|
|
94
|
+
"pinnable": true,
|
|
95
|
+
"keywords": [
|
|
96
|
+
"ocr",
|
|
97
|
+
"text",
|
|
98
|
+
"qr",
|
|
99
|
+
"识字",
|
|
100
|
+
"文字识别",
|
|
101
|
+
"二维码"
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"command": "screenshot.folder",
|
|
106
|
+
"keywords": [
|
|
107
|
+
"screenshot",
|
|
108
|
+
"folder",
|
|
109
|
+
"截图",
|
|
110
|
+
"文件夹"
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"command": "screenshot.settings",
|
|
115
|
+
"keywords": [
|
|
116
|
+
"screenshot",
|
|
117
|
+
"settings",
|
|
118
|
+
"截图",
|
|
119
|
+
"设置"
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|