mirror of
https://github.com/Jonnyan404/memos-bber.git
synced 2026-04-25 12:08:37 +09:00
59700dce59
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.
143 lines
2.8 KiB
JSON
143 lines
2.8 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"
|
|
},
|
|
"saveBtn":{
|
|
"message": "Save"
|
|
},
|
|
"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)"
|
|
}
|
|
} |