Commit Graph

20 Commits

Author SHA1 Message Date
jonny 8f51bb399b Move memosApi to compat/memosApi.v024.js
Rename js/memosApi.js to js/compat/memosApi.v024.js (contents unchanged) and update popup.html to load the new path. Organizes the legacy memosApi into the compat folder and ensures the popup references the v0.24 compatibility script alongside other compat shims.
2026-03-07 11:41:15 +08:00
jonny 30b7cf2491 向前兼容memos到v0.18
Introduce compatibility layers and runtime detection for older Memos API variants (v0.18/v0.19/v0.20/v0.21/v0.23 and older). Added js/compat/memosApi.v023.js and js/compat/memosApi.v1.js to provide filter building, listing, upload and resource helpers for legacy endpoints. Updated js/oper.js to track apiFlavor, probe/detect flavor on save, and to adapt uploads, deletes, tag listing, search and preview image hydration to the appropriate API flavor (including buildV1ResourceStreamUrl, normalizeUnixTimeToMs, getMemoUid and other helpers). Also updated user-facing strings and README to reflect broader compatibility (locales and README changes) and minor UI/manifest popup adjustments. These changes enable the extension to work with a wider range of Memos server versions while preserving existing behavior for modern endpoints.
2026-03-06 18:51:12 +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 c8bdb918f3 Display supported Memos version in popup
Add a localized notice for supported Memos versions and render it in the extension popup. Introduce the "supportedMemosVersion" message in en and zh_CN (shows compatibility: v0.24.0+ and tested versions), add a corresponding div to popup.html, and wire it up in js/i18n.js so the text is populated via i18n.
2026-03-05 18:17:36 +08:00
jonny cd21551e2d - feat:适配v0.24.0以上版本 2026-03-05 09:34:25 +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 e96c16367d 匹配 v0.22.3 2024-07-21 22:23:21 +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 07fab2410d 默认标签公开或自己可见 2023-03-05 14:59:37 +08:00
lmm214 5631e937ec memos 2023-02-25 16:21:25 +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 d6258a6284 fuse.basic.min 2023-02-05 22:05:09 +08:00
lmm214 3961ffdf09 memos 2023-02-05 21:50:53 +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 453863d16e v3 2022-10-12 19:52:06 +08:00