Skip to content

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

fixes cancel indexing

sytolkc1f2de7a9f8f
diff --git a/package-lock.json b/package-lock.json
index f9a902021..dac7496a3 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -19,10 +19,10 @@
"@mui/lab": "5.0.0-alpha.160",
"@mui/material": "^5.15.4",
"@mui/x-date-pickers": "^5.0.20",
- "@tagspaces/tagspaces-common": "4.2.0",
- "@tagspaces/tagspaces-common-aws": "4.2.2",
- "@tagspaces/tagspaces-common-cordova": "4.2.1",
- "@tagspaces/tagspaces-indexer": "4.2.2",
+ "@tagspaces/tagspaces-common": "4.2.3",
+ "@tagspaces/tagspaces-common-aws": "4.2.3",
+ "@tagspaces/tagspaces-common-cordova": "4.2.3",
+ "@tagspaces/tagspaces-indexer": "4.2.3",
"@tagspaces/tagspaces-md": "4.1.14",
"aws-amplify": "^4.3.8",
"aws-sdk": "^2.1036.0",
@@ -13449,9 +13449,9 @@
}
},
"node_modules/@tagspaces/tagspaces-common": {
- "version": "4.2.0",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.2.0.tgz",
- "integrity": "sha512-mGMiizaHaOuhM4S+mHzPtAsCf6hiGwAycl0o+8A3l4ZpuM3DVJdmccuhx57rdm3qXokrsJSEWgcn/TjEvx7DJw==",
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.2.3.tgz",
+ "integrity": "sha512-+rcpx2Nntr2cX/BMjSu91qb/qoa0lNhHVbq7QcC8c1JSL0tnQjTCiMjmfNruf0ob/1KoKXx5/+UPzi3+ggojnA==",
"dependencies": {
"dotenv": "^16.0.2",
"picomatch": "^3.0.1",
@@ -13459,11 +13459,11 @@
}
},
"node_modules/@tagspaces/tagspaces-common-aws": {
- "version": "4.2.2",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-aws/-/tagspaces-common-aws-4.2.2.tgz",
- "integrity": "sha512-GHkXim0w8iY/huBLFInnyscgyUiNlvLwMHnhQgrfhLE8/KfEnMyWY8ZfhZtwMI9aZjgU9WCYB+cfQrep41ZeCw==",
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-aws/-/tagspaces-common-aws-4.2.3.tgz",
+ "integrity": "sha512-RIDWY9505idU/+Ls0xmg5rlYoXO6iJ+ZcFYgIHEoij5OymiRytTnHmpXg9x1MVqfhY6OrwE6THwoKhlPt3Qzzg==",
"dependencies": {
- "@tagspaces/tagspaces-common": "^4.2.0",
+ "@tagspaces/tagspaces-common": "^4.2.3",
"aws-sdk": "2.1161.0"
}
},
@@ -13534,11 +13534,11 @@
}
},
"node_modules/@tagspaces/tagspaces-common-cordova": {
- "version": "4.2.1",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-cordova/-/tagspaces-common-cordova-4.2.1.tgz",
- "integrity": "sha512-5fmF+87yoT9cAyPN+Hisgeaj7WIePPCNIupfCmDrnbro5AewJPa+5Cz42QcoULyUdSe/P14mSPnOTFjwg0IhwQ==",
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-cordova/-/tagspaces-common-cordova-4.2.3.tgz",
+ "integrity": "sha512-tnobmy6HiZ99x6l0/WZUZIttsEqsusytb8lOpnxSf9audKzumPdDtXRFA1DoPrZkkGgyRcQBevmrm63y9F0eww==",
"dependencies": {
- "@tagspaces/tagspaces-common": "^4.2.0"
+ "@tagspaces/tagspaces-common": "^4.2.3"
}
},
"node_modules/@tagspaces/tagspaces-common/node_modules/uuid": {
@@ -13550,11 +13550,11 @@
}
},
"node_modules/@tagspaces/tagspaces-indexer": {
- "version": "4.2.2",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-indexer/-/tagspaces-indexer-4.2.2.tgz",
- "integrity": "sha512-b5N5Eu2W6yuKGbuMxlNJwheYpukDyClmKToGzCUJkksXxQBUqizTkxxpmov6I1q60C5vwSD9vf/qw3l/kxT3hA==",
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-indexer/-/tagspaces-indexer-4.2.3.tgz",
+ "integrity": "sha512-XttVnWrdIAp2LWKm5KiPX6Cts+7oPGFQ+I8kqA176/E+jPu73lUNVitj9xS6QhGI+py9IbRQ8k6HDNGU0nRvXw==",
"dependencies": {
- "@tagspaces/tagspaces-common": "^4.2.0"
+ "@tagspaces/tagspaces-common": "^4.2.3"
}
},
"node_modules/@tagspaces/tagspaces-md": {
@@ -59107,9 +59107,9 @@
}
},
"@tagspaces/tagspaces-common": {
- "version": "4.2.0",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.2.0.tgz",
- "integrity": "sha512-mGMiizaHaOuhM4S+mHzPtAsCf6hiGwAycl0o+8A3l4ZpuM3DVJdmccuhx57rdm3qXokrsJSEWgcn/TjEvx7DJw==",
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.2.3.tgz",
+ "integrity": "sha512-+rcpx2Nntr2cX/BMjSu91qb/qoa0lNhHVbq7QcC8c1JSL0tnQjTCiMjmfNruf0ob/1KoKXx5/+UPzi3+ggojnA==",
"requires": {
"dotenv": "^16.0.2",
"picomatch": "^3.0.1",
@@ -59124,11 +59124,11 @@
}
},
"@tagspaces/tagspaces-common-aws": {
- "version": "4.2.2",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-aws/-/tagspaces-common-aws-4.2.2.tgz",
- "integrity": "sha512-GHkXim0w8iY/huBLFInnyscgyUiNlvLwMHnhQgrfhLE8/KfEnMyWY8ZfhZtwMI9aZjgU9WCYB+cfQrep41ZeCw==",
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-aws/-/tagspaces-common-aws-4.2.3.tgz",
+ "integrity": "sha512-RIDWY9505idU/+Ls0xmg5rlYoXO6iJ+ZcFYgIHEoij5OymiRytTnHmpXg9x1MVqfhY6OrwE6THwoKhlPt3Qzzg==",
"requires": {
- "@tagspaces/tagspaces-common": "^4.2.0",
+ "@tagspaces/tagspaces-common": "^4.2.3",
"aws-sdk": "2.1161.0"
},
"dependencies": {
@@ -59189,19 +59189,19 @@
}
},
"@tagspaces/tagspaces-common-cordova": {
- "version": "4.2.1",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-cordova/-/tagspaces-common-cordova-4.2.1.tgz",
- "integrity": "sha512-5fmF+87yoT9cAyPN+Hisgeaj7WIePPCNIupfCmDrnbro5AewJPa+5Cz42QcoULyUdSe/P14mSPnOTFjwg0IhwQ==",
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-cordova/-/tagspaces-common-cordova-4.2.3.tgz",
+ "integrity": "sha512-tnobmy6HiZ99x6l0/WZUZIttsEqsusytb8lOpnxSf9audKzumPdDtXRFA1DoPrZkkGgyRcQBevmrm63y9F0eww==",
"requires": {
- "@tagspaces/tagspaces-common": "^4.2.0"
+ "@tagspaces/tagspaces-common": "^4.2.3"
}
},
"@tagspaces/tagspaces-indexer": {
- "version": "4.2.2",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-indexer/-/tagspaces-indexer-4.2.2.tgz",
- "integrity": "sha512-b5N5Eu2W6yuKGbuMxlNJwheYpukDyClmKToGzCUJkksXxQBUqizTkxxpmov6I1q60C5vwSD9vf/qw3l/kxT3hA==",
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-indexer/-/tagspaces-indexer-4.2.3.tgz",
+ "integrity": "sha512-XttVnWrdIAp2LWKm5KiPX6Cts+7oPGFQ+I8kqA176/E+jPu73lUNVitj9xS6QhGI+py9IbRQ8k6HDNGU0nRvXw==",
"requires": {
- "@tagspaces/tagspaces-common": "^4.2.0"
+ "@tagspaces/tagspaces-common": "^4.2.3"
}
},
"@tagspaces/tagspaces-md": {
diff --git a/package.json b/package.json
index 0b375152c..551feab89 100644
--- a/package.json
+++ b/package.json
@@ -159,10 +159,10 @@
"@mui/lab": "5.0.0-alpha.160",
"@mui/material": "^5.15.4",
"@mui/x-date-pickers": "^5.0.20",
- "@tagspaces/tagspaces-common": "4.2.0",
- "@tagspaces/tagspaces-common-aws": "4.2.2",
- "@tagspaces/tagspaces-common-cordova": "4.2.1",
- "@tagspaces/tagspaces-indexer": "4.2.2",
+ "@tagspaces/tagspaces-common": "4.2.3",
+ "@tagspaces/tagspaces-common-aws": "4.2.3",
+ "@tagspaces/tagspaces-common-cordova": "4.2.3",
+ "@tagspaces/tagspaces-indexer": "4.2.3",
"@tagspaces/tagspaces-md": "4.1.14",
"aws-amplify": "^4.3.8",
"aws-sdk": "^2.1036.0",
diff --git a/release/app/package-lock.json b/release/app/package-lock.json
index d3e13b309..8461db875 100644
--- a/release/app/package-lock.json
+++ b/release/app/package-lock.json
@@ -1,19 +1,19 @@
{
"name": "tagspaces",
- "version": "5.7.13",
+ "version": "5.8.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "tagspaces",
- "version": "5.7.13",
+ "version": "5.8.0",
"hasInstallScript": true,
"license": "AGPL-3.0",
"dependencies": {
"@elife/pm2": "3.6.1",
"@tagspaces/extensions": "1.0.102",
- "@tagspaces/tagspaces-common-node": "4.2.0",
- "@tagspaces/tagspaces-ws": "4.2.2",
+ "@tagspaces/tagspaces-common-node": "4.2.3",
+ "@tagspaces/tagspaces-ws": "4.2.3",
"sharp": "0.32.6",
"ws": "8.16.0"
},
@@ -43,9 +43,9 @@
}
},
"node_modules/@tagspaces/tagspaces-common": {
- "version": "4.2.0",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.2.0.tgz",
- "integrity": "sha512-mGMiizaHaOuhM4S+mHzPtAsCf6hiGwAycl0o+8A3l4ZpuM3DVJdmccuhx57rdm3qXokrsJSEWgcn/TjEvx7DJw==",
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.2.3.tgz",
+ "integrity": "sha512-+rcpx2Nntr2cX/BMjSu91qb/qoa0lNhHVbq7QcC8c1JSL0tnQjTCiMjmfNruf0ob/1KoKXx5/+UPzi3+ggojnA==",
"dependencies": {
"dotenv": "^16.0.2",
"picomatch": "^3.0.1",
@@ -53,11 +53,11 @@
}
},
"node_modules/@tagspaces/tagspaces-common-node": {
- "version": "4.2.0",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-node/-/tagspaces-common-node-4.2.0.tgz",
- "integrity": "sha512-3z2zzkxxn1EoP2sbMRhSh/Q/pnw7B24QO5uuKJGgrMqepFgteYERW0GjeqvsZ+frYILXcqGsUK0EioTNRq/sGA==",
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-node/-/tagspaces-common-node-4.2.3.tgz",
+ "integrity": "sha512-iRSk+sPVSzNJxtvdsmG/31MtoTMie/PxJdszxo1I166o9CFgftkggv48pAwFC3VCGDn3j+6yWe4ykkmVnHoveA==",
"dependencies": {
- "@tagspaces/tagspaces-common": "^4.2.0",
+ "@tagspaces/tagspaces-common": "^4.2.3",
"adm-zip": "^0.5.10",
"fs-extra": "^10.0.0",
"klaw": "^4.1.0",
@@ -65,37 +65,37 @@
}
},
"node_modules/@tagspaces/tagspaces-platforms": {
- "version": "4.2.2",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-platforms/-/tagspaces-platforms-4.2.2.tgz",
- "integrity": "sha512-wjRHvbiRxJ53p5MKxIckqVF/gb9YtDr3FsXT40j8aQyGFw/Z6BvFBydTLhldpUxlJxuvVbjeuj4IP3LoxWirUQ==",
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-platforms/-/tagspaces-platforms-4.2.3.tgz",
+ "integrity": "sha512-TxJWsmrBSio7/ILRX6pLLeuF+uj1UiQTb43jPCq3blYButJqnpJPalZRHgXC+kWtPOrxqG3MMsbV7kMS1YTeew==",
"hasInstallScript": true
},
"node_modules/@tagspaces/tagspaces-thumbgen-image": {
- "version": "4.2.1",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-thumbgen-image/-/tagspaces-thumbgen-image-4.2.1.tgz",
- "integrity": "sha512-2yR4SHQMGIXZ7fHBnrUxwm9XUfQxLUuBu3eFVwDS4NcMh6Zx9JlF2ohF+hACbZlDcM1TDd6vIMxPUik3bBCqsQ==",
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-thumbgen-image/-/tagspaces-thumbgen-image-4.2.3.tgz",
+ "integrity": "sha512-zNjPS83ELmbdNcvmKS+nh+7ptKnxOntwRPEQtmiZebCo2c+T/SEfuKhbdHfGxZ9hx1wjcRUJdWxAkpl4G5fivA==",
"dependencies": {
"async": "^3.2.4",
"sharp": "^0.32.6"
}
},
"node_modules/@tagspaces/tagspaces-workers": {
- "version": "4.2.2",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-workers/-/tagspaces-workers-4.2.2.tgz",
- "integrity": "sha512-6dmBm6lPVGNPcVa86CULGcNtaxtPeBl7XyWps4uJCk/PmMpHiM22m4PtGoSMJoUYiJgqm71xVqv5ZQEGAEwqQw==",
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-workers/-/tagspaces-workers-4.2.3.tgz",
+ "integrity": "sha512-u2TAKvgidUgPz+fp8Iitf5xFDpBh9SlhNyTuwOEx9b7yrpJsNN+sP9TxUAiSW9y6KL7NKIOsKHeSuzJNBtkrmg==",
"dependencies": {
- "@tagspaces/tagspaces-common": "^4.2.0",
- "@tagspaces/tagspaces-common-node": "^4.2.0",
- "@tagspaces/tagspaces-platforms": "^4.2.2",
- "@tagspaces/tagspaces-thumbgen-image": "^4.2.1"
+ "@tagspaces/tagspaces-common": "^4.2.3",
+ "@tagspaces/tagspaces-common-node": "^4.2.3",
+ "@tagspaces/tagspaces-platforms": "^4.2.3",
+ "@tagspaces/tagspaces-thumbgen-image": "^4.2.3"
}
},
"node_modules/@tagspaces/tagspaces-ws": {
- "version": "4.2.2",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-ws/-/tagspaces-ws-4.2.2.tgz",
- "integrity": "sha512-rG2y0H3EHOwt5Yp6MXXs6FhMvT6A9BLCJHOVNagcP2tnlMOWtMIuADVqhOTzpKyrbzrh3oeNqT2hFoX5qIeaUA==",
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-ws/-/tagspaces-ws-4.2.3.tgz",
+ "integrity": "sha512-o5TcvdUCYk3GXObZyNikZ8o+YJFjpfsL/pUwtef65kWi1euK1VLUknJnljpLz8wsA5TsiBpYnwY1swZ+r8f3Eg==",
"dependencies": {
- "@tagspaces/tagspaces-workers": "^4.2.2",
+ "@tagspaces/tagspaces-workers": "^4.2.3",
"find-free-ports": "^3.1.1",
"jsonwebtoken": "^8.5.1",
"ws": "^8.15.1"
@@ -1102,9 +1102,9 @@
}
},
"@tagspaces/tagspaces-common": {
- "version": "4.2.0",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.2.0.tgz",
- "integrity": "sha512-mGMiizaHaOuhM4S+mHzPtAsCf6hiGwAycl0o+8A3l4ZpuM3DVJdmccuhx57rdm3qXokrsJSEWgcn/TjEvx7DJw==",
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.2.3.tgz",
+ "integrity": "sha512-+rcpx2Nntr2cX/BMjSu91qb/qoa0lNhHVbq7QcC8c1JSL0tnQjTCiMjmfNruf0ob/1KoKXx5/+UPzi3+ggojnA==",
"requires": {
"dotenv": "^16.0.2",
"picomatch": "^3.0.1",
@@ -1112,11 +1112,11 @@
}
},
"@tagspaces/tagspaces-common-node": {
- "version": "4.2.0",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-node/-/tagspaces-common-node-4.2.0.tgz",
- "integrity": "sha512-3z2zzkxxn1EoP2sbMRhSh/Q/pnw7B24QO5uuKJGgrMqepFgteYERW0GjeqvsZ+frYILXcqGsUK0EioTNRq/sGA==",
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-node/-/tagspaces-common-node-4.2.3.tgz",
+ "integrity": "sha512-iRSk+sPVSzNJxtvdsmG/31MtoTMie/PxJdszxo1I166o9CFgftkggv48pAwFC3VCGDn3j+6yWe4ykkmVnHoveA==",
"requires": {
- "@tagspaces/tagspaces-common": "^4.2.0",
+ "@tagspaces/tagspaces-common": "^4.2.3",
"adm-zip": "^0.5.10",
"fs-extra": "^10.0.0",
"klaw": "^4.1.0",
@@ -1124,36 +1124,36 @@
}
},
"@tagspaces/tagspaces-platforms": {
- "version": "4.2.2",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-platforms/-/tagspaces-platforms-4.2.2.tgz",
- "integrity": "sha512-wjRHvbiRxJ53p5MKxIckqVF/gb9YtDr3FsXT40j8aQyGFw/Z6BvFBydTLhldpUxlJxuvVbjeuj4IP3LoxWirUQ=="
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-platforms/-/tagspaces-platforms-4.2.3.tgz",
+ "integrity": "sha512-TxJWsmrBSio7/ILRX6pLLeuF+uj1UiQTb43jPCq3blYButJqnpJPalZRHgXC+kWtPOrxqG3MMsbV7kMS1YTeew=="
},
"@tagspaces/tagspaces-thumbgen-image": {
- "version": "4.2.1",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-thumbgen-image/-/tagspaces-thumbgen-image-4.2.1.tgz",
- "integrity": "sha512-2yR4SHQMGIXZ7fHBnrUxwm9XUfQxLUuBu3eFVwDS4NcMh6Zx9JlF2ohF+hACbZlDcM1TDd6vIMxPUik3bBCqsQ==",
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-thumbgen-image/-/tagspaces-thumbgen-image-4.2.3.tgz",
+ "integrity": "sha512-zNjPS83ELmbdNcvmKS+nh+7ptKnxOntwRPEQtmiZebCo2c+T/SEfuKhbdHfGxZ9hx1wjcRUJdWxAkpl4G5fivA==",
"requires": {
"async": "^3.2.4",
"sharp": "^0.32.6"
}
},
"@tagspaces/tagspaces-workers": {
- "version": "4.2.2",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-workers/-/tagspaces-workers-4.2.2.tgz",
- "integrity": "sha512-6dmBm6lPVGNPcVa86CULGcNtaxtPeBl7XyWps4uJCk/PmMpHiM22m4PtGoSMJoUYiJgqm71xVqv5ZQEGAEwqQw==",
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-workers/-/tagspaces-workers-4.2.3.tgz",
+ "integrity": "sha512-u2TAKvgidUgPz+fp8Iitf5xFDpBh9SlhNyTuwOEx9b7yrpJsNN+sP9TxUAiSW9y6KL7NKIOsKHeSuzJNBtkrmg==",
"requires": {
- "@tagspaces/tagspaces-common": "^4.2.0",
- "@tagspaces/tagspaces-common-node": "^4.2.0",
- "@tagspaces/tagspaces-platforms": "^4.2.2",
- "@tagspaces/tagspaces-thumbgen-image": "^4.2.1"
+ "@tagspaces/tagspaces-common": "^4.2.3",
+ "@tagspaces/tagspaces-common-node": "^4.2.3",
+ "@tagspaces/tagspaces-platforms": "^4.2.3",
+ "@tagspaces/tagspaces-thumbgen-image": "^4.2.3"
}
},
"@tagspaces/tagspaces-ws": {
- "version": "4.2.2",
- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-ws/-/tagspaces-ws-4.2.2.tgz",
- "integrity": "sha512-rG2y0H3EHOwt5Yp6MXXs6FhMvT6A9BLCJHOVNagcP2tnlMOWtMIuADVqhOTzpKyrbzrh3oeNqT2hFoX5qIeaUA==",
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-ws/-/tagspaces-ws-4.2.3.tgz",
+ "integrity": "sha512-o5TcvdUCYk3GXObZyNikZ8o+YJFjpfsL/pUwtef65kWi1euK1VLUknJnljpLz8wsA5TsiBpYnwY1swZ+r8f3Eg==",
"requires": {
- "@tagspaces/tagspaces-workers": "^4.2.2",
+ "@tagspaces/tagspaces-workers": "^4.2.3",
"find-free-ports": "^3.1.1",
"jsonwebtoken": "^8.5.1",
"ws": "^8.15.1"
diff --git a/release/app/package.json b/release/app/package.json
index 1617090d7..9771d57e9 100644
--- a/release/app/package.json
+++ b/release/app/package.json
@@ -19,8 +19,8 @@
"dependencies": {
"@elife/pm2": "3.6.1",
"@tagspaces/extensions": "1.0.102",
- "@tagspaces/tagspaces-common-node": "4.2.0",
- "@tagspaces/tagspaces-ws": "4.2.2",
+ "@tagspaces/tagspaces-common-node": "4.2.3",
+ "@tagspaces/tagspaces-ws": "4.2.3",
"sharp": "0.32.6",
"ws": "8.16.0"
},
diff --git a/src/main/mainEvents.ts b/src/main/mainEvents.ts
index 115f7a932..b26552635 100644
--- a/src/main/mainEvents.ts
+++ b/src/main/mainEvents.ts
@@ -67,7 +67,7 @@ export default function loadMainEvents() {
});
}
} catch (e) {
- console.error(e);
+ console.error('wss error:', e);
}
//watchFolder(mainWindow, e, path, depth);
diff --git a/src/renderer/components/SearchAutocomplete.tsx b/src/renderer/components/SearchAutocomplete.tsx
index 7018a8a4c..a8db60291 100644
--- a/src/renderer/components/SearchAutocomplete.tsx
+++ b/src/renderer/components/SearchAutocomplete.tsx
@@ -1462,7 +1462,7 @@ function SearchAutocomplete(props: Props) {
id="searchButton"
variant="outlined"
size="small"
- disabled={isIndexing}
+ disabled={isIndexing !== undefined}
style={{
marginRight: 10,
marginLeft: 10,
diff --git a/src/renderer/components/SearchPopover.tsx b/src/renderer/components/SearchPopover.tsx
index fc43389b9..062cac43e 100644
--- a/src/renderer/components/SearchPopover.tsx
+++ b/src/renderer/components/SearchPopover.tsx
@@ -551,7 +551,7 @@ function SearchPopover(props: Props) {
<Select
name="savedSearch"
labelId="saved-searches"
- disabled={isIndexing || !Pro}
+ disabled={isIndexing !== undefined || !Pro}
onChange={handleSavedSearchChange}
displayEmpty
fullWidth
@@ -611,7 +611,10 @@ function SearchPopover(props: Props) {
/>
</Grid>
</Grid>
- <FormControl className={classes.formControl} disabled={isIndexing}>
+ <FormControl
+ className={classes.formControl}
+ disabled={isIndexing !== undefined}
+ >
<ToggleButtonGroup
onChange={switchSearchBoxing}
size="small"
@@ -637,7 +640,10 @@ function SearchPopover(props: Props) {
</ToggleButton>
</ToggleButtonGroup>
</FormControl>
- <FormControl className={classes.formControl} disabled={isIndexing}>
+ <FormControl
+ className={classes.formControl}
+ disabled={isIndexing !== undefined}
+ >
<ToggleButtonGroup
onChange={switchSearchType}
size="small"
@@ -662,7 +668,10 @@ function SearchPopover(props: Props) {
</ToggleButton>
</ToggleButtonGroup>
</FormControl>
- <FormControl className={classes.formControl} disabled={isIndexing}>
+ <FormControl
+ className={classes.formControl}
+ disabled={isIndexing !== undefined}
+ >
<ToggleButtonGroup
onChange={() => {
forceIndexing.current = !forceIndexing.current;
@@ -685,7 +694,10 @@ function SearchPopover(props: Props) {
</ToggleButton>
</ToggleButtonGroup>
</FormControl>
- <FormControl className={classes.formControl} disabled={isIndexing}>
+ <FormControl
+ className={classes.formControl}
+ disabled={isIndexing !== undefined}
+ >
<TagsSelect
dataTid="searchTagsAndTID"
placeholderText={t('core:selectTags')}
@@ -696,7 +708,10 @@ function SearchPopover(props: Props) {
tagMode="remove"
/>
</FormControl>
- <FormControl className={classes.formControl} disabled={isIndexing}>
+ <FormControl
+ className={classes.formControl}
+ disabled={isIndexing !== undefined}
+ >
<TagsSelect
dataTid="searchTagsOrTID"
placeholderText={t('core:selectTags')}
@@ -707,7 +722,10 @@ function SearchPopover(props: Props) {
tagMode="remove"
/>
</FormControl>
- <FormControl className={classes.formControl} disabled={isIndexing}>
+ <FormControl
+ className={classes.formControl}
+ disabled={isIndexing !== undefined}
+ >
<TagsSelect
dataTid="searchTagsNotTID"
placeholderText={t('core:selectTags')}
@@ -720,7 +738,7 @@ function SearchPopover(props: Props) {
</FormControl>
<FormControl
className={classes.formControl}
- disabled={isIndexing || !Pro}
+ disabled={isIndexing !== undefined || !Pro}
>
<ProTooltip tooltip={t('filterByTypTooltip')}>
<InputLabel htmlFor="file-type">{t('core:fileType')}</InputLabel>
@@ -843,7 +861,7 @@ function SearchPopover(props: Props) {
</FormControl>
<FormControl
className={classes.formControl}
- disabled={isIndexing || !Pro}
+ disabled={isIndexing !== undefined || !Pro}
>
<ProTooltip tooltip={t('filterBySizeTooltip')}>
<InputLabel
@@ -897,7 +915,7 @@ function SearchPopover(props: Props) {
</FormControl>
<FormControl
className={classes.formControl}
- disabled={isIndexing || !Pro}
+ disabled={isIndexing !== undefined || !Pro}
>
<ProTooltip tooltip={t('filterByLastModifiedDateTooltip')}>
<InputLabel
@@ -940,7 +958,7 @@ function SearchPopover(props: Props) {
<Box position="relative" display="inline-flex">
<DatePicker
label={t('enterTagTimePeriodFrom')}
- disabled={isIndexing || !Pro}
+ disabled={isIndexing !== undefined || !Pro}
inputFormat="yyyy-MM-dd"
value={new Date(tagTimePeriodFrom)}
onChange={(fromDataTime: Date) => {
@@ -956,7 +974,7 @@ function SearchPopover(props: Props) {
/>
<DatePicker
label={t('enterTagTimePeriodTo')}
- disabled={isIndexing || !Pro}
+ disabled={isIndexing !== undefined || !Pro}
inputFormat="yyyy-MM-dd"
value={new Date(tagTimePeriodTo)}
onChange={(toDataTime: Date) => {
@@ -1049,13 +1067,15 @@ function SearchPopover(props: Props) {
{t('resetBtn')}
</Button>
<Button
- disabled={isIndexing}
+ disabled={isIndexing !== undefined}
variant="contained"
id="searchButtonAdvTID"
onClick={executeSearch}
size="small"
>
- {isIndexing ? 'Search disabled while indexing' : t('searchTitle')}
+ {isIndexing !== undefined
+ ? 'Search disabled while indexing'
+ : t('searchTitle')}
</Button>
</div>
</div>
diff --git a/src/renderer/containers/PageNotification.tsx b/src/renderer/containers/PageNotification.tsx
index a162bfc5a..7f2434800 100644
--- a/src/renderer/containers/PageNotification.tsx
+++ b/src/renderer/containers/PageNotification.tsx
@@ -121,9 +121,9 @@ function PageNotification() {
)}
<TSNotification
anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }}
- open={isIndexing}
+ open={isIndexing !== undefined}
autoHideDuration={undefined}
- message="Indexing"
+ message={'Indexing ' + isIndexing}
action={[
<Button
key="cancelIndexButton"
diff --git a/src/renderer/hooks/DirectoryContentContextProvider.tsx b/src/renderer/hooks/DirectoryContentContextProvider.tsx
index 5958b8240..540c1c19e 100644
--- a/src/renderer/hooks/DirectoryContentContextProvider.tsx
+++ b/src/renderer/hooks/DirectoryContentContextProvider.tsx
@@ -613,7 +613,7 @@ export const DirectoryContentContextProvider = ({
showHiddenEntries = undefined,
): Promise<TS.FileSystemEntry[]> {
// console.debug('loadDirectoryContent:' + directoryPath);
- window.walkCanceled = false;
+ //window.walkCanceled = false;
// dispatch(actions.setIsLoading(true));
diff --git a/src/renderer/hooks/LocationIndexContextProvider.tsx b/src/renderer/hooks/LocationIndexContextProvider.tsx
index 196aaa07f..9f7be2d9a 100644
--- a/src/renderer/hooks/LocationIndexContextProvider.tsx
+++ b/src/renderer/hooks/LocationIndexContextProvider.tsx
@@ -31,7 +31,6 @@ import { TS } from '-/tagspaces.namespace';
import {
createDirectoryIndex,
executePromisesInBatches,
- getThumbPath,
loadIndexFromDisk,
} from '-/services/utils-io';
import { getEnableWS } from '-/reducers/settings';
@@ -52,7 +51,7 @@ import { useEditedEntryContext } from '-/hooks/useEditedEntryContext';
type LocationIndexContextData = {
index: TS.FileSystemEntry[];
indexLoadedOn: number;
- isIndexing: boolean;
+ isIndexing: string;
getIndex: () => TS.FileSystemEntry[];
cancelDirectoryIndexing: () => void;
createLocationIndex: (location: TS.Location) => Promise<boolean>;
@@ -68,7 +67,7 @@ type LocationIndexContextData = {
export const LocationIndexContext = createContext<LocationIndexContextData>({
index: [],
indexLoadedOn: undefined,
- isIndexing: false,
+ isIndexing: undefined,
getIndex: undefined,
cancelDirectoryIndexing: () => {},
createLocationIndex: () => Promise.resolve(false),
@@ -101,7 +100,8 @@ export const LocationIndexContextProvider = ({
const enableWS = useSelector(getEnableWS);
const allLocations = useSelector(getLocations);
- const isIndexing = useRef<boolean>(false);
+ const isIndexing = useRef<string>(undefined);
+ let walking = true;
//const lastError = useRef(undefined);
const index = useRef<TS.FileSystemEntry[]>(undefined);
const indexLoadedOn = useRef<number>(undefined);
@@ -196,9 +196,13 @@ export const LocationIndexContextProvider = ({
}
}
+ function isWalking() {
+ return walking;
+ }
+
function cancelDirectoryIndexing() {
- window.walkCanceled = true;
- isIndexing.current = false;
+ walking = false;
+ isIndexing.current = undefined;
forceUpdate();
}
@@ -209,7 +213,7 @@ export const LocationIndexContextProvider = ({
locationID: string = undefined,
ignorePatterns: Array<string> = [],
): Promise<boolean> {
- isIndexing.current = true;
+ isIndexing.current = directoryPath;
forceUpdate();
return createDirectoryIndexWrapper(
{ path: directoryPath, locationID },
@@ -222,12 +226,12 @@ export const LocationIndexContextProvider = ({
// Load index only if current location
setIndex(directoryIndex);
}
- isIndexing.current = false;
+ isIndexing.current = undefined;
forceUpdate();
return true;
})
.catch((err) => {
- isIndexing.current = false;
+ isIndexing.current = undefined;
//lastError.current = err;
forceUpdate();
return false;
@@ -275,12 +279,11 @@ export const LocationIndexContextProvider = ({
}
async function createLocationsIndexes(extractText = true): Promise<boolean> {
- isIndexing.current = true;
- forceUpdate();
- //(async () => {
for (let location of allLocations) {
try {
const locationPath = await getLocationPath(location);
+ isIndexing.current = locationPath;
+ forceUpdate();
await createDirectoryIndexWrapper(
{ path: locationPath, locationID: location.uuid },
extractText,
@@ -291,21 +294,14 @@ export const LocationIndexContextProvider = ({
console.error('An error occurred:', error);
}
}
- // })();
- isIndexing.current = false;
+ isIndexing.current = undefined;
forceUpdate();
console.log('Resolution is complete!');
return true;
- /*.catch((e) => {
- isIndexing.current = false;
- forceUpdate();
- console.warn('Resolution is failed!', e);
- return false;
- });*/
}
function clearDirectoryIndex() {
- isIndexing.current = false;
+ isIndexing.current = undefined;
setIndex([]);
forceUpdate();
}
@@ -416,7 +412,7 @@ export const LocationIndexContextProvider = ({
}
function searchLocationIndex(searchQuery: TS.SearchQuery) {
- window.walkCanceled = false;
+ walking = true;
if (!currentLocation) {
//showNotification(t('core:pleaseOpenLocation'), 'warning', true);
searchAllLocations(searchQuery);
@@ -424,7 +420,12 @@ export const LocationIndexContextProvider = ({
}
const isCloudLocation = currentLocation.type === locationType.TYPE_CLOUD;
- showNotification(t('core:searching'), 'default', false, 'TIDSearching');
+ showNotification(
+ t('core:searching' + ' ' + currentLocation.name),
+ 'default',
+ false,
+ 'TIDSearching',
+ );
setTimeout(async () => {
const currentPath = await getLocationPath(currentLocation);
let directoryIndex = getIndex();
@@ -483,7 +484,8 @@ export const LocationIndexContextProvider = ({
/*if (currentLocation && currentLocation.type === locationType.TYPE_CLOUD) {
PlatformIO.disableObjectStoreSupport();
}*/
- window.walkCanceled = false;
+
+ walking = true;
//let searchResultCount = 0;
let searchResults = [];
let maxSearchResultReached = false;
@@ -531,6 +533,7 @@ export const LocationIndexContextProvider = ({
location.fullTextIndex,
location.ignorePatternPaths,
enableWS,
+ isWalking,
);
}
return getSearchResults(directoryIndex, searchQuery).then(
diff --git a/src/renderer/services/utils-io.ts b/src/renderer/services/utils-io.ts
index 0e82dc753..fdaa50f69 100644
--- a/src/renderer/services/utils-io.ts
+++ b/src/renderer/services/utils-io.ts
@@ -577,86 +577,89 @@ export function createDirectoryIndex(
extractText = false,
ignorePatterns: Array<string> = [],
enableWS = true,
+ isWalking = () => true,
// disableIndexing = true,
): Promise<TS.FileSystemEntry[]> {
- //: Promise<TS.FileSystemEntry[]> {
- if (Pro && Pro.Watcher) {
- Pro.Watcher.stopWatching();
- }
- let directoryPath;
- let locationID;
- if (typeof param === 'object' && param !== null) {
- directoryPath = param.path;
- ({ locationID } = param);
- } else {
- directoryPath = param;
- }
- const dirPath = cleanTrailingDirSeparator(directoryPath);
- if (
- enableWS &&
- !PlatformIO.haveObjectStoreSupport() &&
- !PlatformIO.haveWebDavSupport() &&
- !AppConfig.isCordova
- // PlatformIO.isWorkerAvailable()
- ) {
- // Start indexing in worker if not in the object store mode
- return PlatformIO.createDirectoryIndexInWorker(
- dirPath,
- extractText,
- ignorePatterns,
- ).then((result) => {
- if (result && result.success) {
- return loadIndexFromDisk(dirPath, locationID);
- /*return loadIndex(
- { path: dirPath, locationID },
- PlatformIO.getDirSeparator(),
- PlatformIO.loadTextFilePromise,
- );*/
- } else if (result && result.error) {
- console.error('createDirectoryIndexInWorker failed:' + result.error);
- } else {
- console.error('createDirectoryIndexInWorker failed: unknown error');
- }
- return undefined; // todo create index not in worker
- });
- }
-
- let listDirectoryPromise;
- //let loadTextFilePromise;
- if (PlatformIO.haveObjectStoreSupport()) {
- listDirectoryPromise = PlatformIO.listObjectStoreDir;
- //loadTextFilePromise = PlatformIO.loadTextFilePromise;
- } else {
- listDirectoryPromise = PlatformIO.listDirectoryPromise;
- }
- const mode = ['extractThumbPath'];
- if (extractText) {
- mode.push('extractTextContent');
- }
- return createIndex(
- param,
- listDirectoryPromise,
- PlatformIO.loadTextFilePromise,
- mode,
- ignorePatterns,
- )
- .then((directoryIndex) =>
- persistIndex(param, directoryIndex).then((success) => {
- if (success) {
- console.log('Index generated in folder: ' + directoryPath);
- return enhanceDirectoryIndex(
- directoryIndex,
- locationID,
- directoryPath,
- );
- //return enhanceDirectoryIndex(param, directoryIndex, locationID);
+ if (isWalking()) {
+ if (Pro && Pro.Watcher) {
+ Pro.Watcher.stopWatching();
+ }
+ let directoryPath;
+ let locationID;
+ if (typeof param === 'object' && param !== null) {
+ directoryPath = param.path;
+ ({ locationID } = param);
+ } else {
+ directoryPath = param;
+ }
+ const dirPath = cleanTrailingDirSeparator(directoryPath);
+ if (
+ enableWS &&
+ !PlatformIO.haveObjectStoreSupport() &&
+ !PlatformIO.haveWebDavSupport() &&
+ !AppConfig.isCordova
+ // PlatformIO.isWorkerAvailable()
+ ) {
+ // Start indexing in worker if not in the object store mode
+ return PlatformIO.createDirectoryIndexInWorker(
+ dirPath,
+ extractText,
+ ignorePatterns,
+ ).then((result) => {
+ if (result && result.success) {
+ return loadIndexFromDisk(dirPath, locationID);
+ /*return loadIndex(
+ { path: dirPath, locationID },
+ PlatformIO.getDirSeparator(),
+ PlatformIO.loadTextFilePromise,
+ );*/
+ } else if (result && result.error) {
+ console.error('createDirectoryIndexInWorker failed:' + result.error);
+ } else {
+ console.error('createDirectoryIndexInWorker failed: unknown error');
}
- return undefined;
- }),
+ return undefined; // todo create index not in worker
+ });
+ }
+
+ let listDirectoryPromise;
+ //let loadTextFilePromise;
+ if (PlatformIO.haveObjectStoreSupport()) {
+ listDirectoryPromise = PlatformIO.listObjectStoreDir;
+ //loadTextFilePromise = PlatformIO.loadTextFilePromise;
+ } else {
+ listDirectoryPromise = PlatformIO.listDirectoryPromise;
+ }
+ const mode = ['extractThumbPath'];
+ if (extractText) {
+ mode.push('extractTextContent');
+ }
+ return createIndex(
+ param,
+ listDirectoryPromise,
+ PlatformIO.loadTextFilePromise,
+ mode,
+ ignorePatterns,
+ isWalking,
)
- .catch((err) => {
- console.log('Error creating index: ', err);
- });
+ .then((directoryIndex) =>
+ persistIndex(param, directoryIndex).then((success) => {
+ if (success) {
+ console.log('Index generated in folder: ' + directoryPath);
+ return enhanceDirectoryIndex(
+ directoryIndex,
+ locationID,
+ directoryPath,
+ );
+ //return enhanceDirectoryIndex(param, directoryIndex, locationID);
+ }
+ return undefined;
+ }),
+ )
+ .catch((err) => {
+ console.log('Error creating index: ', err);
+ });
+ }
}
/**
diff --git a/src/renderer/tagspaces.d.ts b/src/renderer/tagspaces.d.ts
index 5243233c2..46775bc8b 100644
--- a/src/renderer/tagspaces.d.ts
+++ b/src/renderer/tagspaces.d.ts
@@ -28,8 +28,8 @@ declare module '*.xml';
declare interface Window {
// interface TSCustomWindow extends Window {
- ExtMapTileServers?: Array<TS.MapTileServer>;
- walkCanceled?: boolean;
+ ExtMapTileServers?: Array<any>; //TS.MapTileServer>;
+ //walkCanceled?: boolean;
ExtLogoURL?: string;
ExtDefaultVerticalPanel?: string;
ExtDisplayMode?: string;