mirror of
https://github.com/Jonnyan404/memos-bber.git
synced 2026-04-24 19:48:37 +09:00
30b7cf2491
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.
167 lines
3.3 KiB
JSON
167 lines
3.3 KiB
JSON
{
|
|
"extName": {
|
|
"message": "Memos"
|
|
},
|
|
"actionTitle": {
|
|
"message": "Send Memos"
|
|
},
|
|
"extDescription": {
|
|
"message": "memos: A lightweight, self-hosted memo hub."
|
|
},
|
|
"sendTo": {
|
|
"message": "SendTo Memos \"%s\""
|
|
},
|
|
"sendLinkTo": {
|
|
"message": "Send link to Memos"
|
|
},
|
|
"sendImageTo": {
|
|
"message": "Send image to Memos"
|
|
},
|
|
"saveBtn":{
|
|
"message": "Save"
|
|
},
|
|
"supportedMemosVersion": {
|
|
"message": "Compatible with Memos v0.18.0 - 0.26.x"
|
|
},
|
|
"placeApiUrl":{
|
|
"message": "Memos site URL"
|
|
},
|
|
"placeApiTokens":{
|
|
"message": "Memos Access Tokens"
|
|
},
|
|
"placeContent":{
|
|
"message": "What's on your mind..."
|
|
},
|
|
"lockPrivate":{
|
|
"message": "Private"
|
|
},
|
|
"lockProtected":{
|
|
"message": "Protected"
|
|
},
|
|
"lockPublic":{
|
|
"message": "Public"
|
|
},
|
|
"submitBtn":{
|
|
"message": "Save"
|
|
},
|
|
"placeHideInput":{
|
|
"message": "Default 'Private' tag name"
|
|
},
|
|
"placeShowInput":{
|
|
"message": "Default 'Everyone can see' Tag name"
|
|
},
|
|
"uploadedListTitle": {
|
|
"message": "Uploaded files, Drag to reorder"
|
|
},
|
|
"uploadedListEmpty": {
|
|
"message": "No uploaded files"
|
|
},
|
|
"tipReorder": {
|
|
"message": "Drag to reorder"
|
|
},
|
|
"tipDeleteAttachment": {
|
|
"message": "Delete"
|
|
},
|
|
"attachmentDeleteSuccess": {
|
|
"message": "Deleted"
|
|
},
|
|
"attachmentDeleteFailed": {
|
|
"message": "Delete failed 😭"
|
|
},
|
|
"picDrag":{
|
|
"message": "Drag upload the image"
|
|
},
|
|
"picCancelDrag":{
|
|
"message": "Cancel upload"
|
|
},
|
|
"picUploading":{
|
|
"message": "Upload the picture..."
|
|
},
|
|
"picSuccess":{
|
|
"message": "Upload completed"
|
|
},
|
|
"picFailed":{
|
|
"message": "Uploading failed"
|
|
},
|
|
"picPending":{
|
|
"message": "Image uploading is in progress"
|
|
},
|
|
"saveSuccess":{
|
|
"message": "Save Info Success!"
|
|
},
|
|
"searchNow":{
|
|
"message": "What are you looking for?"
|
|
},
|
|
"searchNone":{
|
|
"message": "Try another word!"
|
|
},
|
|
"archiveSuccess":{
|
|
"message": "Archive Success 😊"
|
|
},
|
|
"archiveFailed":{
|
|
"message": "Archive Failed 😭"
|
|
},
|
|
"getTabFailed":{
|
|
"message": "Get Tab Failed 😭"
|
|
},
|
|
"memoUploading":{
|
|
"message": "Sending"
|
|
},
|
|
"memoSuccess":{
|
|
"message": "Success! 😊"
|
|
},
|
|
"memoFailed":{
|
|
"message": "Failed! 😭"
|
|
},
|
|
"invalidToken":{
|
|
"message": "Invalid token or url 😭"
|
|
},
|
|
"tipOpenSite": {
|
|
"message": "Open Memos"
|
|
},
|
|
"tipSettings": {
|
|
"message": "Settings"
|
|
},
|
|
"tipTags": {
|
|
"message": "Insert tag"
|
|
},
|
|
"tipTodo": {
|
|
"message": "Insert todo"
|
|
},
|
|
"tipUpload": {
|
|
"message": "Upload file"
|
|
},
|
|
"tipLink": {
|
|
"message": "Insert current tab link"
|
|
},
|
|
"tipRandom": {
|
|
"message": "Random memo"
|
|
},
|
|
"tipSearch": {
|
|
"message": "Search"
|
|
},
|
|
"tipVisibility": {
|
|
"message": "Visibility"
|
|
},
|
|
"tipSend": {
|
|
"message": "Send (Ctrl/⌘+Enter)"
|
|
},
|
|
"tipLanguage": {
|
|
"message": "Language"
|
|
},
|
|
"langAuto": {
|
|
"message": "Auto"
|
|
},
|
|
"langEnglish": {
|
|
"message": "English"
|
|
},
|
|
"langChineseSimplified": {
|
|
"message": "简体中文"
|
|
},
|
|
"langJapanese": {
|
|
"message": "日本語"
|
|
},
|
|
"langKorean": {
|
|
"message": "한국어"
|
|
}
|
|
} |