Skip to content

TagSpaces is an offline, open source, document manager with tagging support

Fix revisions location id and switch location type (#2008)

Ilian8f257b65b47c
diff --git a/app/electron-tray-menu.ts b/app/electron-tray-menu.ts
index 8c5a07643..398bd293f 100644
--- a/app/electron-tray-menu.ts
+++ b/app/electron-tray-menu.ts
@@ -21,6 +21,8 @@ import { app, Menu, nativeImage, Tray } from 'electron';
let tray = null;
const icon1x =
+ 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABHNCSVQICAgIfAhkiAAABFdJREFUOI2N02tM1XUYB/Dv8/v9/4dzwCMplabOWNpmZqLLvCaXIQIKooydmJesF/Yml2vzTZsrXa+cZW65pmaAt1COdls0y9Yh3SQNSIxA9Jy4iMgB5CJyOHB+v9/TC8GhGev78tmzz/bs2ZcwRphZEpFm5lmVVTWlzTdb42zbihjDAIhHtrQ2yul0xC1cMHef9T+waZd/v/r94YJTz92912+ISIzsEAAiQGmtnoiNteKnTx3/WJCZxTAWd+VKXWnh0dMzBgYGlTPKIW3bZmMMhBAgAIaZtVbscjpgWRb+BQ5jhplj6ur83xUc9c7t6+tXRLA2b8zFKwteAgCEQmG4XE78eO4Cn/KWUuz48TAAxCMYEREzs+UPNJ0+XORd2tXVq4wx1sYN65CSvBhKadReCyBmXDTc7hi43THCsLl//2iQmWnXrl0EgBubb534otCb0dbWobTWVr4nC+krXgUA7D9wHO/t2IMTxd8CALTSD11ojWBer1fs3LlTt7YGDx34vNjT1Hwrwsx2Tk4a1mSl4lL7HTQORTA7fhquxk3ApElP3X+MoAeYGAHLysqkx+NRHXe69hw8VLzlhr9RMbOdvjIR+XmrEQwN4N2KagQjCtvmvYiijCQ43eMAAAMDYQgSYGYoo1j4fD4rJSVF9fb27SgsOrO95q/ripmt5MRFeGNTLtgYTHS5kDFjFmwA++sD+LglCCElKqtqUHq2DA6HbYQQiHW7NQFAOBzeevDwyU8vllcpZsgli+fTtq2bATBAAhjoBDX+jANRSdj3Zy0GLUL2UA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J7fwBD+NnMbQ8Y67lG5c33gwTkQVxS47e1tGYb5uFS7Cx9fhTjyHoCxcl4LwH5J66s8RuvWbsDpxXZvQhrMNRzHy0EtyUgj2Bdjd9lCZ8vcWYi5hVivTni0IdXEwGncHMi4P34J+K7BytqfEaKMqqPGQm0NQE5jTsa1PYoDkc0fsNVlQtkfyLm7roAjyccAh5q2Cn6cG0iS4dxEy6UvkB+wHlV8c0dIMcbQm7BdnnHWCHvsbESim93/g8sCSEoi9/meF+rs2caQm4s1edHGMb58oafSkLV9mHZf7qlekrNlK9oMFNitZlj37e4QN6aPmwI+SuWV7Stl7eamNObKjNlBHJIfKLaI++d8/F+B8j9WFmjb3sHx3dVRrYE7I3iJ/0QbikyHIt1ECMRbSfitQ6wH2O4IezqRGZTZ2ACV0d1C/F+PN8B9iuc1QB0WPqkxyCvSeqWAmTq7+iyfY/FCcgxeTNfhTPweQPISazvmICaYJs7bNE+XFzjt8nxtjSBdfLZ9Y+E1hFc36ikIpm5FX8nAhzCmtL6G+QjWxViZ0LjKDY0gYyCFsE3iJ/gY1s2Kr8qm2xx2aawsSlkErR0gn/vEPB2LMSnXUBu6gayI2gBOyJ/1YgFnsaDGJQeso+tvatbyEagBewyM9/Jq/aY9OUxa8jGoAXsudjVZS2WIcdmC9kVaAHbTS2W7YFeILsGLWAH5e/3TSEf7RVyVqAF7Dy83QByvA3IWYMWsP14MQH5VFuQPYEWsBmerIF8uk3InkFLwI+UIF9Q+uWjLWvlN3zIsuw++Xh3b2hLtPT8C4ZroHYM10GpAAAAAElFTkSuQmCC';
@@ -96,10 +98,10 @@ export default function buildTrayIconMenu(mainPageProps: any, i18n, isMacLike) {
},
];
- let icon = nativeImage.createFromDataURL(icon2xWhite);
+ let icon = nativeImage.createFromDataURL(icon1x);
if (!tray) {
- if (process.platform === 'darwin' || process.platform === 'win32') {
- icon = nativeImage.createFromDataURL(icon1x);
+ if (process.platform === 'darwin') {
+ icon = nativeImage.createFromDataURL(icon1xMac);
icon.addRepresentation({
scaleFactor: 2.0,
dataURL: icon2xBlack,
diff --git a/app/locales/zh_CN/core.json b/app/locales/zh_CN/core.json
index f030d5a7b..c5f5de9a4 100644
--- a/app/locales/zh_CN/core.json
+++ b/app/locales/zh_CN/core.json
@@ -40,7 +40,7 @@
"deleteDirectoryContentConfirm": "您要刪除資料夾 '{{dirPath}}' 嗎?",
"errorDeletingDirectoryAlert": "刪除 '{{dirPath}}' 失敗。資料夾可能不是空的。",
"deletingDirectorySuccessfull": "資料夾 '{{dirPath}}' 刪除成功。",
- "deletingEntriesSuccessful": "Entries '{{dirPath}}' successfully deleted.",
+ "deletingEntriesSuccessful": "條目 '{{dirPath}}' 刪除成功。",
"filePropertiesDescription": "描述",
"directoryPropertiesTitle": "資料夾詳細資訊",
"filePropertiesTitle": "檔案詳細訊息",
@@ -806,13 +806,13 @@
"details": "詳細資訊",
"editDisabled": "編輯當前檔案時禁用編輯說明",
"togglePreviewSize": "切換為檔案預覽",
- "newAudioRecording": "Record Audio",
- "audioRecorder": "Audio Recorder",
- "startRecording": "Start Recording",
- "pauseRecording": "Pause Recording",
- "resumeRecording": "Resume Recording",
- "stopRecording": "Stop and save recording",
- "createNewFile": "Create New File",
- "confirmDialogClosing": "Do you want to close this dialog?",
+ "newAudioRecording": "錄音",
+ "audioRecorder": "錄音機",
+ "startRecording": "開始錄音",
+ "pauseRecording": "暫停錄製",
+ "resumeRecording": "恢復錄製",
+ "stopRecording": "停止並保存錄製",
+ "createNewFile": "創建新檔案",
+ "confirmDialogClosing": "是否關閉此對話?",
"-": "-"
}
diff --git a/app/locales/zh_HK/core.json b/app/locales/zh_HK/core.json
index 3bc30516d..b0c6dafa2 100644
--- a/app/locales/zh_HK/core.json
+++ b/app/locales/zh_HK/core.json
@@ -40,7 +40,7 @@
"deleteDirectoryContentConfirm": "您要刪除資料夾 '{{dirPath}}' 嗎?",
"errorDeletingDirectoryAlert": "刪除 '{{dirPath}}' 失敗。資料夾可能不是空的。",
"deletingDirectorySuccessfull": "資料夾 '{{dirPath}}' 刪除成功。",
- "deletingEntriesSuccessful": "Entries '{{dirPath}}' successfully deleted.",
+ "deletingEntriesSuccessful": "條目 '{{dirPath}}' 刪除成功。",
"filePropertiesDescription": "描述",
"directoryPropertiesTitle": "資料夾詳細資訊",
"filePropertiesTitle": "檔案詳細訊息",
@@ -806,13 +806,13 @@
"details": "詳細資訊",
"editDisabled": "編輯當前檔案時禁用編輯說明",
"togglePreviewSize": "切換為檔案預覽",
- "newAudioRecording": "Record Audio",
- "audioRecorder": "Audio Recorder",
- "startRecording": "Start Recording",
- "pauseRecording": "Pause Recording",
- "resumeRecording": "Resume Recording",
- "stopRecording": "Stop and save recording",
- "createNewFile": "Create New File",
- "confirmDialogClosing": "Do you want to close this dialog?",
+ "newAudioRecording": "錄音",
+ "audioRecorder": "錄音機",
+ "startRecording": "開始錄音",
+ "pauseRecording": "暫停錄製",
+ "resumeRecording": "恢復錄製",
+ "stopRecording": "停止並保存錄製",
+ "createNewFile": "創建新檔案",
+ "confirmDialogClosing": "是否關閉此對話?",
"-": "-"
}
diff --git a/app/locales/zh_TW/core.json b/app/locales/zh_TW/core.json
index b80690b9c..4065b633a 100644
--- a/app/locales/zh_TW/core.json
+++ b/app/locales/zh_TW/core.json
@@ -40,7 +40,7 @@
"deleteDirectoryContentConfirm": "您要刪除資料夾 '{{dirPath}}' 嗎?",
"errorDeletingDirectoryAlert": "刪除 '{{dirPath}}' 失敗。資料夾可能不是空的。",
"deletingDirectorySuccessfull": "資料夾 '{{dirPath}}' 刪除成功。",
- "deletingEntriesSuccessful": "Entries '{{dirPath}}' successfully deleted.",
+ "deletingEntriesSuccessful": "條目 '{{dirPath}}' 刪除成功。",
"filePropertiesDescription": "描述",
"directoryPropertiesTitle": "資料夾詳細資訊",
"filePropertiesTitle": "檔案詳細訊息",
@@ -806,13 +806,13 @@
"details": "詳細資訊",
"editDisabled": "編輯當前檔案時禁用編輯說明",
"togglePreviewSize": "切換為檔案預覽",
- "newAudioRecording": "Record Audio",
- "audioRecorder": "Audio Recorder",
- "startRecording": "Start Recording",
- "pauseRecording": "Pause Recording",
- "resumeRecording": "Resume Recording",
- "stopRecording": "Stop and save recording",
- "createNewFile": "Create New File",
- "confirmDialogClosing": "Do you want to close this dialog?",
+ "newAudioRecording": "錄音",
+ "audioRecorder": "錄音機",
+ "startRecording": "開始錄製",
+ "pauseRecording": "暫停錄製",
+ "resumeRecording": "恢復錄製",
+ "stopRecording": "停止並保存錄製",
+ "createNewFile": "創建新檔案",
+ "confirmDialogClosing": "是否關閉此對話?",
"-": "-"
}
diff --git a/app/package.json b/app/package.json
index 073f97c7d..4671e377e 100644
--- a/app/package.json
+++ b/app/package.json
@@ -1,7 +1,7 @@
{
"name": "tagspaces",
"productName": "TagSpaces",
- "version": "5.6.1",
+ "version": "5.6.2",
"description": "Offline file organizer and browser with tagging support.",
"homepage": "https://www.tagspaces.org",
"main": "./main.prod.js",
diff --git a/app/third-party.txt b/app/third-party.txt
index 562d73710..3c511dcab 100644
--- a/app/third-party.txt
+++ b/app/third-party.txt
@@ -1115,7 +1115,7 @@ The following NPM packages may be included in this product:
- @aws-sdk/[email protected]
- @aws-sdk/[email protected]
- @aws-sdk/[email protected]
- - @aws-sdk/[email protected]
+ - @aws-sdk/[email protected]
- @aws-sdk/[email protected]
- @aws-sdk/[email protected]
- @aws-sdk/[email protected]
@@ -2686,9 +2686,9 @@ Apache License
The following NPM packages may be included in this product:
@@ -2699,7 +2699,7 @@ The following NPM packages may be included in this product:
@@ -2713,11 +2713,12 @@ The following NPM packages may be included in this product:
- - @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.22.15
+ - @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.23.3
@@ -2728,14 +2729,14 @@ The following NPM packages may be included in this product:
@@ -2744,71 +2745,71 @@ The following NPM packages may be included in this product:
These packages each contain the following license and notice below:
@@ -2873,7 +2874,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
The following NPM package may be included in this product:
This package contains the following license and notice below:
@@ -3298,7 +3299,7 @@ The following NPM packages may be included in this product:
- @floating-ui/[email protected]
- @floating-ui/[email protected]
- - @floating-ui/[email protected]
+ - @floating-ui/[email protected]
- @floating-ui/[email protected]
These packages each contain the following license and notice below:
@@ -6578,10 +6579,10 @@ MIT License
The following NPM packages may be included in this product:
@@ -6589,26 +6590,26 @@ The following NPM packages may be included in this product:
These packages each contain the following license and notice below:
@@ -7632,7 +7633,7 @@ Apache License
The following NPM package may be included in this product:
This package contains the following license and notice below:
@@ -12043,7 +12044,7 @@ THE SOFTWARE.
The following NPM package may be included in this product:
This package contains the following license and notice below:
@@ -13433,6 +13434,37 @@ SOFTWARE.
-----------
+The following NPM package may be included in this product:
+
+
+This package contains the following license and notice below:
+
+MIT License
+-----------
+
+Copyright (C) 2010-2020 by Philipp Dunkel, Ben Noordhuis, Elan Shankar, Paul Miller
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+-----------
+
The following NPM package may be included in this product:
@@ -14532,8 +14564,8 @@ Apache License
The following NPM packages may be included in this product:
These packages each contain the following license and notice below:
@@ -14563,7 +14595,7 @@ SOFTWARE.
The following NPM package may be included in this product:
This package contains the following license and notice below:
@@ -14591,7 +14623,7 @@ THE SOFTWARE.
The following NPM package may be included in this product:
This package contains the following license and notice below:
@@ -23336,7 +23368,7 @@ The following NPM packages may be included in this product:
These packages each contain the following license and notice below:
diff --git a/package.json b/package.json
index 358df8904..31ea3f526 100644
--- a/package.json
+++ b/package.json
@@ -133,7 +133,7 @@
"type-check": "tsc --noEmit",
"update-changelog": "git log v5.4.6..HEAD --no-merges --format=%B > CHANGELOG.TXT",
"update-changelog-pro": "cd extensions/tagspacespro && git log v5.4.6..HEAD --no-merges --format=%B > ../../CHANGELOG-PRO.TXT",
- "update-i18n": "tx pull -a -f",
+ "update-i18n": "./tx pull -a -f",
"version-meta": "node scripts/versionmeta.js",
"linux-fix-sandbox": "sudo chown root:root node_modules/electron/dist/chrome-sandbox && sudo chmod 4755 node_modules/electron/dist/chrome-sandbox",
"ts-extension-symlink": "rimraf app/node_modules/@tagspaces/extensions && cd app/node_modules/@tagspaces && ln -s ../../../extensions extensions && cd ../../.."