Commit Graph

93 Commits

Author SHA1 Message Date
jonny 5fac00b5ce - feat:记忆拖拽窗口大小和优化动画效果
Add persistent, robust scaling for the proportional editor and remove CSS transitions that interfered with instant restores. Introduces a storageKey, parseScale, applyScaleInstant and logic to restore scale synchronously from localStorage (for immediate UX) and asynchronously from chrome.storage.sync (best-effort), keeping localStorage in sync. Ensures pending RAF updates are flushed before persisting and guards against missing APIs or invalid values. Also removes transition properties in main.css so scale restores remain immediate and predictable.
2026-03-09 20:00:42 +08:00
jonny 2b36fda137 Bump manifest version to 2026.03.10
Update manifest.json version field from 2026.03.09 to 2026.03.10. No other changes to manifest content; this is a minor release/version bump.
0.4
2026-03-07 21:22:52 +08:00
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 85cc964836 Bump manifest version and update changelog
Add a 20260309 changelog entry noting: right-click send selected text preserves original formatting and added fullscreen and window-zoom features. Also bump manifest version from 2026.03.08 to 2026.03.09 to reflect the update.
2026-03-07 14:45:17 +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 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.
0.2
2026-03-06 18:51:12 +08:00
jonny 9a90c2e2bf Bump version to 2026.03.07 and update changelog
Update manifest.json version to 2026.03.07 and add a README changelog entry for 2026-03-07 noting a language switch button and added Korean and Japanese support.
0.1
2026-03-05 21:05:18 +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 52f06909f3 Append reference link when sending selection
Add the original page/link as a Markdown reference when sending selected text via the context menu. background.js now appends `[Reference Link](...)` using info.linkUrl or info.pageUrl; manifest version bumped to 2026.03.06; README changelog updated to note the new right-click behavior.
2026-03-05 10:21:55 +08:00
jonny 1857504ee7 Format changelog entries as list items
Prefix two dated entries in README.md with '- ' to convert them into bullet list items for improved formatting and readability in the update log.
2026-03-05 09:45:00 +08:00
jonny 95940201aa Bump version and add compatibility note
Update manifest version to 2026.03.05 and change version_name to indicate support from 0.24.0 to the latest. Add a 2026-03-05 changelog entry in README noting forward compatibility with v0.24.0 (and inviting issues for older versions). No functional changes.
2026-03-05 09:40:30 +08:00
jonny cd21551e2d - feat:适配v0.24.0以上版本 2026-03-05 09:34:25 +08:00
jonny 2511487cbe Bump manifest version and add version_name
Update manifest.json: set version to "2026.03.04" and add a "version_name" field ("release memos v0.26.2") to label this release.
2026-03-04 21:28:11 +08:00
jonny 30b9925992 fix: 修正manifest.json中的版本号格式 2026-03-04 21:22:33 +08:00
jonny ae68d65514 跟随memos版本号 2026-03-04 21:19:56 +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
jonny dd2609e1e4 适配v0.26.1
Update endpoints and metadata to match newer memos backend and record new maintainer.

- js/oper.js: switch upload endpoint to api/v1/attachments; replace auth/status POST with auth/me GET and adapt response parsing to response.user.name; stop using user-scoped memo endpoints and use api/v1/memos for tag/search/random requests; fix memo link path to /memos/{uid}.
- manifest.json: bump extension version to 2026.02.22 and update homepage_url to the GitHub repo.
- README.md: add maintainer note, compatibility (v0.26.1) and a collapsible details block.

These changes align the extension with backend API changes and mark the new maintenance status.
2026-02-22 15:14:48 +08:00
jonny c47e0a0b7b Update manifest.json 2025-03-29 01:06:45 +08:00
林木木 277a0c13b3 Merge pull request #55 from yozi9257/main
适配 memos v0.24.0
2025-03-28 20:43:48 +08:00
游之 4e7e0fd196 修复标签获取功能
现标签从用户最近1000条memo中提取
2025-02-27 15:36:47 +08:00
ShenqPerng 1604fb7645 图片上传功能适配 v0.24 2025-02-21 22:38:58 +08:00
ShenqPerng 5628aecd95 随机与搜索功能适配 v0.24,不兼容旧版 2025-02-21 22:04:29 +08:00
Yozi 71d5452610 适配 memos 0.24 2025-02-21 16:22:32 +08:00
lmm214 e292c83d36 "default_locale": "en", 2024-07-21 22:36:36 +08:00
林木木 d0be87a3dc Update README.md 2024-07-21 22:25:21 +08:00
lmm214 e96c16367d 匹配 v0.22.3 2024-07-21 22:23:21 +08:00
林木木 a12aac7577 Merge pull request #47 from yt-hyper/bugfix/fix_api_url
bugfix: 修复初始化状态下主页网址输入框提示词丢失问题
2024-07-20 08:21:16 +08:00
xuyutong.1998 a88513e674 bugfix: 修复初始化状态下主页网址输入框提示词丢失问题 2024-07-19 00:55:41 +08:00
林木木 a60fcf7a85 Update README.md 2024-06-15 16:26:31 +08:00
林木木 36ea286c8f Update manifest.json 2024-06-15 16:24:59 +08:00
林木木 755bb9e04c Merge pull request #44 from inertia42/main
修复获取标签功能
2024-06-15 16:22:45 +08:00
inertia 1d15a1d27b revert the formatting 2024-06-13 19:06:32 +08:00
inertia 05a1f535fe fix the method of getting tags 2024-06-13 17:07:19 +08:00
林木木 aa505c9fa6 Update README.md 2024-05-26 17:19:26 +08:00
林木木 8a72b051f6 Merge pull request #40 from r4ym0n/main
Compatible with the new v1 API
2024-05-23 13:53:28 +08:00
quartz010 511a26d531 Optimizing URL path issues 2024-05-23 01:10:16 +08:00
quartz010 0e4703cf26 update jq to fix an error 2024-05-23 01:09:41 +08:00
quartz010 c9c88161a6 change version 2024-05-23 01:09:28 +08:00
quartz010 a184c3ba05 Compatible with the new v1 API 2024-05-23 00:53:21 +08:00
林木木 f3aabb2e9a Update README.md 2023-09-19 20:08:12 +08:00
lmm214 63effbdc77 v0.15 2023-09-19 20:07:02 +08:00
lmm214 780d3d1da4 v 2023-07-21 10:45:45 +08:00
lmm214 32dcd1f162 2023.07.16 2023-07-16 21:30:02 +08:00
lmm214 a5f62b1958 2023.04.29 右键菜单的一系列改进 2023-04-29 09:42:37 +08:00
林木木 83dcf109d8 Merge pull request #17 from EZForever/ctx-menu-improvements
右键菜单的一系列改进
2023-04-29 09:35:56 +08:00
lmm214 adc84ebfec 20230409 2023-04-09 20:33:42 +08:00
EZForever 4d98357258 替换英文翻译文本中的中文符号 2023-04-08 12:41:30 +08:00
EZForever 00528fb020 右键菜单的一系列改进 2023-04-08 12:40:20 +08:00