Commit Graph

50 Commits

Author SHA1 Message Date
jonny 3968b6896c Add Memos API adapter and settings UI
Introduce a Memos API adapter to unify compatibility across API flavors (v020-v021, v023, modern) and probe/detect server flavor. Add js/compat/memosApi.adapter.js and rename existing compat modules (memosApi.v024.js -> memosApi.modern.js, memosApi.v1.js -> memosApi.v020-v021.js) and trim probe from v023. Add settings UI support: new i18n keys in en/ja/ko/zh_CN, settings panel styles in css/main.css, new settings input binding and save flow in js (attachment-only default text persisted). Refactor oper.js to use the adapter for uploads, deletes, tag listing, search and image preview auth handling; add helper functions for attachment-only default text and settings payload. Update i18n bindings, popup, manifest and README changelog accordingly.
closed #5
2026-04-22 16:13:18 +08:00
jonny 944be49edb Support Memos v0.27 and improve API parsing
Bump supported Memos version to v0.27 across locales, README changelog, and manifest (version and version_name). Improve memos API compatibility: prefer and return trimmed username when present, handle non-numeric trailing name segments safely, and encode userid in the user-scoped memos URL to avoid issues with special characters.
2026-04-21 15:26:22 +08:00
jonny 25fbd486bf Bump extension version to 2026.04.11
Update manifest.json version from "2026.03.25" to "2026.04.11" to reflect the new release. No other changes to manifest fields or supported version range.
2026-04-11 10:44:40 +08:00
jonny ed5fc86e39 Replace language select with toggle menu
Replace the old <select> language picker with a custom toggle button and dropdown menu. Updates include new popup HTML (langToggle button, langMenu with menuitemradio buttons), new CSS for .lang-toggle/.lang-menu/.lang-menu-item (styling, hover/active states, shadow, rounded corners), and JS to manage label sync, menu state, click handlers, outside-click and Escape to close, and applying the selected UI language. Also update references in i18n code (setTitle target and language init flow) and persist language selection. Bump manifest version from 2026.03.24 to 2026.03.25.
2026-03-23 11:29:49 +08:00
jonny 0f468d49aa Update Chinese strings and bump version
Optimize Chinese display text and bump extension version. Add a README changelog entry for "优化中文显示效果"; simplify several zh_CN locale strings (lock labels shortened to "私有", "登录可见", "公开" and default tag placeholders updated). Also increment manifest version to 2026.03.24.
2026-03-23 10:52:59 +08:00
jonny f3e55ec53e Update version number to 2026.03.23 2026-03-22 23:27:14 +08:00
jonny d237a7f1c6 Bump manifest version and add mobile portrait note
Update manifest.json version to 2026.03.22 and add a README changelog entry (20260322) noting adaptation for mobile portrait windows.
2026-03-22 20:48:23 +08:00
jonny e9730b5839 Lower minimum supported Memos to v0.15.0
Update compatibility range to include Memos v0.15.0 across README and locale files (en, ja, ko, zh_CN). Bump manifest version/date to 2026.03.12 and update version_name to reflect the new supported range. This extends backward compatibility to older Memos releases.
2026-03-12 18:35:06 +08:00
jonny f2f1ff2c10 Bump manifest version and update changelog
Update manifest.json to version 2026.03.11 and set version_name to "Supports 0.18.0 - 0.26.x". Also add a README changelog entry for 2026-03-10 noting remembered drag window size and removal of drag window animation. This prepares a small release update and documents the recent UI tweak.
2026-03-09 20:07:57 +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.
2026-03-07 21:22:52 +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 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 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.
2026-03-05 21:05:18 +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 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 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 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
lmm214 e292c83d36 "default_locale": "en", 2024-07-21 22:36:36 +08:00
lmm214 e96c16367d 匹配 v0.22.3 2024-07-21 22:23:21 +08:00
林木木 36ea286c8f Update manifest.json 2024-06-15 16:24:59 +08:00
quartz010 c9c88161a6 change version 2024-05-23 01:09:28 +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 a5f62b1958 2023.04.29 右键菜单的一系列改进 2023-04-29 09:42:37 +08:00
lmm214 adc84ebfec 20230409 2023-04-09 20:33:42 +08:00
lmm214 89c47e29de 2023.03.25 2023-03-26 15:21:44 +08:00
lmm214 c14540da4e 2023.03.25 2023-03-25 14:09:04 +08:00
lmm214 5deb081c67 2023.03.19 2023-03-19 21:20:09 +08:00
lmm214 a39d4b9a2a 2023.03.10 修复发布后调用最新一条 Memos。 2023-03-10 22:05:54 +08:00
lmm214 deec1e77a5 2023.03.09 新增右键发送文本至 Memos 输入框。 2023-03-09 23:25:08 +08:00
lmm214 07fab2410d 默认标签公开或自己可见 2023-03-05 14:59:37 +08:00
lmm214 57fd068ba9 Memos 2023-02-25 15:57:37 +08:00
lmm214 480895fcda 修复随机按钮 2023-02-25 10:28:16 +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 6183dea011 Memos 2023-02-04 20:47:02 +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 17bac065ce "version": "2022.11.13", 2022-11-13 22:48:39 +08:00
lmm214 af5eb41b64 newtodo 图标 2022-11-13 21:13:47 +08:00
lmm214 e605768577 修复大bug 2022-11-10 18:58:45 +08:00
lmm214 bbdd3b100a 2022.11.8 支持粘贴、拖拽上传图片。 2022-11-08 00:08:56 +08:00
lmm214 26c5280461 添加 visiblity 发送设置。 2022-10-24 22:37:00 +08:00
lmm214 453863d16e v3 2022-10-12 19:52:06 +08:00
lmm214 289510c052 "version": "2022.10.10" 2022-10-10 21:27:47 +08:00
林木木 b09ebc960f Add files via upload 2022-10-09 21:08:57 +08:00