Commit Graph

18 Commits

Author SHA1 Message Date
jonny da150b8788 Refactor fullscreen button markup, styles, i18n
Replace the old fullscreen localization key and button implementation with an iconized, accessible button and updated styling. Removed fullscreenBtn entries from locale files and updated js/i18n.js to set the fullscreen button's aria-label using tipFullscreen. popup.html now wraps the button in a header and includes an SVG icon; main.css adjusts layout (overflow, sticky header, button positioning, sizing, and hiding in fullscreen) and tweaks editor input spacing for the new layout.
2026-03-07 21:18:23 +08:00
jonny adfd797e84 Add fullscreen editor and proportional resize
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.
2026-03-07 14:42:31 +08:00
jonny e57a963170 Add UI language switcher and ja/ko locales
Introduce a runtime UI language switcher and add Japanese/Korean locale support. Added _locales/ja and _locales/ko messages, updated en and zh_CN message files with new language-related keys and sendImage label. Implemented dynamic i18n handling: new i18n.js supports override messages, persistent uiLanguage in storage, and emits i18n:changed; background.js now loads override locales, updates context menu titles and listens for storage changes. Integrated dayjs locales (js/ja.js, js/ko.js) and made oper.js use a unified msg() helper and react to language changes. Added language selector UI in popup.html and styling in css/main.css.
2026-03-05 21:03:07 +08:00
jonny 59700dce59 - feat:新增附件列表管理和增加按钮提示
Introduce an upload attachments panel with styles, localization and client-side management. Added new i18n keys (EN/ZH) and refactored js/i18n.js to helper setters for text/placeholder/title. popup.html and css/main.css add the upload-list UI and styles. oper.js implements rendering, drag-and-drop reorder, deletion (calls DELETE api with token), storage persistence (resourceIdList), escapeHtml sanitization, and sync change handling; it also fixes a config check (repo -> apiTokens), stores filename from upload responses, handles attachments/resources compatibility, and clears the list after sending a memo. Overall this enables reorderable, deletable uploaded attachments with proper localization and tooltips.
2026-03-04 21:18:03 +08:00
lmm214 63effbdc77 v0.15 2023-09-19 20:07:02 +08:00
lmm214 c14540da4e 2023.03.25 2023-03-25 14:09:04 +08:00
lmm214 725e3a3673 hidetag 2023-03-05 15:37:03 +08:00
lmm214 07fab2410d 默认标签公开或自己可见 2023-03-05 14:59:37 +08:00
lmm214 57fd068ba9 Memos 2023-02-25 15:57:37 +08:00
lmm214 b9c4c17062 memo 2023-02-06 19:03:56 +08:00
lmm214 3961ffdf09 memos 2023-02-05 21:50:53 +08:00
lmm214 2e725bd904 random memo 2023-02-04 17:29:36 +08:00
lmm214 1f47e5146b memos random 2023-02-04 17:23:49 +08:00
lmm214 31490c9921 2022.11.15 新增插入文件图片按钮。 2022-11-15 19:43:04 +08:00
lmm214 af5eb41b64 newtodo 图标 2022-11-13 21:13:47 +08:00
lmm214 26c5280461 添加 visiblity 发送设置。 2022-10-24 22:37:00 +08:00
lmm214 d886cdd4ed 分享当前页面 2022-10-10 21:26:34 +08:00
林木木 b09ebc960f Add files via upload 2022-10-09 21:08:57 +08:00