mirror of
https://github.com/Jonnyan404/memos-bber.git
synced 2026-04-24 19:48:37 +09:00
adfd797e84
Introduce a fullscreen editor mode and a proportional resize handle for the memo editor. Updates include: - UI: add fullscreen button and resize handle to popup.html and related i18n keys for en/ja/ko/zh_CN. - CSS: styles for .memo-editor, fullscreen state, and #editor-resize-handle, plus layout tweaks for fullscreen. - Background: enhance context menu handler to retrieve selection text from the active tab using chrome.scripting.executeScript, support opening the extension popup programmatically (tryOpenActionPopup), and factor appendContent logic. - Oper: implement isFullscreenMode(), openFullscreenTab(), proportional editor resize logic with pointer events (initProportionalEditorResize), focus handling adjustments, and init call. Added helper focusTextareaToEnd(). - Manifest: request scripting and windows permissions required for selection injection and window focus. These changes enable sending accurate selection text from web pages, allow users to open a fullscreen editor tab, and provide a draggable, proportional resize experience in the popup editor.
176 lines
3.6 KiB
JSON
176 lines
3.6 KiB
JSON
{
|
||
"extName": {
|
||
"message": "Memos"
|
||
},
|
||
"actionTitle": {
|
||
"message": "发送 Memos"
|
||
},
|
||
"extDescription": {
|
||
"message": "一键发送灵感时刻,珍藏你的记忆"
|
||
},
|
||
"sendTo": {
|
||
"message": "发送至 Memos “%s”"
|
||
},
|
||
"sendLinkTo": {
|
||
"message": "发送链接至 Memos"
|
||
},
|
||
"sendImageTo": {
|
||
"message": "发送图片至 Memos"
|
||
},
|
||
"saveBtn":{
|
||
"message": "保存"
|
||
},
|
||
"supportedMemosVersion": {
|
||
"message": "兼容 Memos v0.18.0 - 0.26.x"
|
||
},
|
||
"placeApiUrl":{
|
||
"message": "请填入 Memos 主页网址"
|
||
},
|
||
"placeApiTokens":{
|
||
"message": "请填入 Memos Access Tokens"
|
||
},
|
||
"placeContent":{
|
||
"message": "现在的想法是..."
|
||
},
|
||
"lockPrivate":{
|
||
"message": "仅自己可见"
|
||
},
|
||
"lockProtected":{
|
||
"message": "登录用户可见"
|
||
},
|
||
"lockPublic":{
|
||
"message": "所有人可见"
|
||
},
|
||
"submitBtn":{
|
||
"message": "记下"
|
||
},
|
||
"placeHideInput":{
|
||
"message": "默认“仅自己可见”标签名"
|
||
},
|
||
"placeShowInput":{
|
||
"message": "默认“所有人可见”标签名"
|
||
},
|
||
"picDrag":{
|
||
"message": "拖拽到窗口上传该图片"
|
||
},
|
||
"picCancelDrag":{
|
||
"message": "取消上传"
|
||
},
|
||
"picUploading":{
|
||
"message": "图片上传中……"
|
||
},
|
||
"picSuccess":{
|
||
"message": "上传完成"
|
||
},
|
||
"picFailed":{
|
||
"message": "上传图片失败"
|
||
},
|
||
"picPending":{
|
||
"message": "有图片等待上传"
|
||
},
|
||
"saveSuccess":{
|
||
"message": "保存信息成功"
|
||
},
|
||
"searchNow":{
|
||
"message": "想搜点啥?"
|
||
},
|
||
"searchNone":{
|
||
"message": "搜不到,换个词试试"
|
||
},
|
||
"archiveSuccess":{
|
||
"message": "归档成功!😊"
|
||
},
|
||
"archiveFailed":{
|
||
"message": "归档失败 😭"
|
||
},
|
||
"getTabFailed":{
|
||
"message": "获取标签失败 😭"
|
||
},
|
||
"memoUploading":{
|
||
"message": "发送中……"
|
||
},
|
||
"memoSuccess":{
|
||
"message": "发送成功!😊"
|
||
},
|
||
"memoFailed":{
|
||
"message": "发送失败 😭"
|
||
},
|
||
"invalidToken":{
|
||
"message": "无效的 token 或 url 😭"
|
||
},
|
||
"uploadedListTitle": {
|
||
"message": "已上传文件,可拖动排序"
|
||
},
|
||
"uploadedListEmpty": {
|
||
"message": "暂无已上传文件"
|
||
},
|
||
"tipReorder": {
|
||
"message": "拖动排序"
|
||
},
|
||
"tipDeleteAttachment": {
|
||
"message": "删除"
|
||
},
|
||
"attachmentDeleteSuccess": {
|
||
"message": "删除成功"
|
||
},
|
||
"attachmentDeleteFailed": {
|
||
"message": "删除失败 😭"
|
||
},
|
||
"tipOpenSite": {
|
||
"message": "打开 Memos"
|
||
},
|
||
"tipSettings": {
|
||
"message": "设置"
|
||
},
|
||
"tipTags": {
|
||
"message": "插入标签"
|
||
},
|
||
"tipTodo": {
|
||
"message": "插入待办"
|
||
},
|
||
"tipUpload": {
|
||
"message": "上传文件"
|
||
},
|
||
"tipLink": {
|
||
"message": "插入当前页面链接"
|
||
},
|
||
"tipRandom": {
|
||
"message": "随机一条"
|
||
},
|
||
"tipSearch": {
|
||
"message": "搜索"
|
||
},
|
||
"tipVisibility": {
|
||
"message": "可见性"
|
||
},
|
||
"tipSend": {
|
||
"message": "发送(Ctrl/⌘+Enter)"
|
||
},
|
||
"tipLanguage": {
|
||
"message": "语言"
|
||
},
|
||
"langAuto": {
|
||
"message": "跟随浏览器"
|
||
},
|
||
"langEnglish": {
|
||
"message": "English"
|
||
},
|
||
"langChineseSimplified": {
|
||
"message": "简体中文"
|
||
},
|
||
"langJapanese": {
|
||
"message": "日本語"
|
||
},
|
||
"langKorean": {
|
||
"message": "한국어"
|
||
},
|
||
"fullscreenBtn": {
|
||
"message": "全屏"
|
||
},
|
||
"tipFullscreen": {
|
||
"message": "全屏编辑"
|
||
},
|
||
"tipResize": {
|
||
"message": "拖拽缩放编辑框(最小为默认大小)"
|
||
}
|
||
} |