TagSpaces is an offline, open source, document manager with tagging support
chore: removing the need of tseid in the search index
Ilian Sapundshiev3e2d0eeeda97
diff --git a/release/app/package-lock.json b/release/app/package-lock.jsonindex f15221c44..269cebd1c 100644--- a/release/app/package-lock.json+++ b/release/app/package-lock.json@@ -11,9 +11,9 @@"license": "AGPL-3.0","dependencies": {"@elife/pm2": "3.6.1",- "@tagspaces/extensions": "1.0.151",- "@tagspaces/tagspaces-common-node": "4.5.47",- "@tagspaces/tagspaces-ws": "4.5.47",+ "@tagspaces/extensions": "1.0.152",+ "@tagspaces/tagspaces-common-node": "4.5.48",+ "@tagspaces/tagspaces-ws": "4.5.48","sharp": "0.32.6","ws": "8.16.0"},@@ -30,9 +30,9 @@}},"node_modules/@tagspaces/extensions": {- "version": "1.0.151",- "resolved": "https://registry.npmjs.org/@tagspaces/extensions/-/extensions-1.0.151.tgz",- "integrity": "sha512-R783LIyF0g2Kx1WUL3IZr95WE4DbBteF5mbKsSllp4tMZoFFwnDdw0/+0FkG/h1iyf59dOwV+ja19qu+6C5M3Q==",+ "version": "1.0.152",+ "resolved": "https://registry.npmjs.org/@tagspaces/extensions/-/extensions-1.0.152.tgz",+ "integrity": "sha512-jOUKFnDqz63LXlw89HmTKHT0LQJdshngXHbxhH7sYKAK6DnrmN5pYzLmbZmvYdJVVgJy0BTaFi1TqKGGMSS91w==","dependencies": {"shelljs": "^0.8.5","shx": "^0.3.4"@@ -43,9 +43,9 @@}},"node_modules/@tagspaces/tagspaces-common": {- "version": "4.5.47",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.5.47.tgz",- "integrity": "sha512-Hwp3HExvfBrGwzaqjF4eiHTvCgYHemb5JizOqchy5UDTyHWh15/9XtfpwmXAjf8SRNH/psXPf5V/nZ7sGBbPrg==",+ "version": "4.5.48",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.5.48.tgz",+ "integrity": "sha512-eLN5Irs325qwmEWCkA39FfpEk/8zGKpYxq/T4vwhFFkfG7pEKHeA4uRXa81NAqn0PgxZOCm79WZ9SU+0X09H3Q==","dependencies": {"dompurify": "^3.2.3","dotenv": "^16.0.2",@@ -56,22 +56,22 @@}},"node_modules/@tagspaces/tagspaces-common-node": {- "version": "4.5.47",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-node/-/tagspaces-common-node-4.5.47.tgz",- "integrity": "sha512-5SF5W2iPktfUNpXr2c/2nfl7gtXJKMWVw03hEDIgJ0WT6IEjHjd9a9ckV3k2xrZwWsu592AfwhLKixu761faTQ==",+ "version": "4.5.48",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-node/-/tagspaces-common-node-4.5.48.tgz",+ "integrity": "sha512-hz7Z83TBF6R3+jLIGdpDweCoOBZ2w9TxvJMrguIMa2oRS1wCD6fQOy8dZDZQ4Y2mHLL9zbwGiXyuGc/1tpWdYw==","dependencies": {- "@tagspaces/tagspaces-common": "^4.5.47",+ "@tagspaces/tagspaces-common": "^4.5.48","adm-zip": "0.5.10","fs-extra": "^10.0.0","klaw": "^4.1.0"}},"node_modules/@tagspaces/tagspaces-indexer": {- "version": "4.5.47",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-indexer/-/tagspaces-indexer-4.5.47.tgz",- "integrity": "sha512-RVkRs1YtJgsbzytrGaT+TPtIhGolAagw/X+vBvpjC36FPLc2Tb02+QT+VwwjHX6XQQsZZoTydjUYmEpK/KavOw==",+ "version": "4.5.48",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-indexer/-/tagspaces-indexer-4.5.48.tgz",+ "integrity": "sha512-VkyjuTjPgIi1OGOBs+qKWKHuj6vWyiOwebli+8fko4V4iB+WoDhiNl+b9z919RAa8BHj+XVtvvjh1/6ekftaZw==","dependencies": {- "@tagspaces/tagspaces-common": "^4.5.47"+ "@tagspaces/tagspaces-common": "^4.5.48"}},"node_modules/@tagspaces/tagspaces-pdf-extraction": {@@ -92,25 +92,25 @@}},"node_modules/@tagspaces/tagspaces-workers": {- "version": "4.5.47",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-workers/-/tagspaces-workers-4.5.47.tgz",- "integrity": "sha512-bIIaiN2Sgy3XQYF4dEqbfVV65xymHOGR4r5NduJqgLG18wJsY8b1WiTbhFjD8opYYmQAViRjvT6RfIoaImGEFA==",+ "version": "4.5.48",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-workers/-/tagspaces-workers-4.5.48.tgz",+ "integrity": "sha512-HNnhhIYROqLiRaAmtRsiQnSbuQfC7IXvDtIcMkjK9coTRI7+qRAwE8/uDg6pJl4ncOoliTeeVaWSQHhtUwmZQw==","dependencies": {- "@tagspaces/tagspaces-common": "^4.5.47",- "@tagspaces/tagspaces-common-node": "^4.5.47",+ "@tagspaces/tagspaces-common": "^4.5.48",+ "@tagspaces/tagspaces-common-node": "^4.5.48","@tagspaces/tagspaces-pdf-extraction": "^4.5.27","@tagspaces/tagspaces-thumbgen-image": "^4.2.3","fswin": "^3.24.829"}},"node_modules/@tagspaces/tagspaces-ws": {- "version": "4.5.47",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-ws/-/tagspaces-ws-4.5.47.tgz",- "integrity": "sha512-QOMDEnqfeFaGzg8WdpgU1dmU3jhiw/pwVb/lDFdth06GonGwKYYDczP44rUrgift07YNc15/kbn7kbCKvpuwKg==",+ "version": "4.5.48",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-ws/-/tagspaces-ws-4.5.48.tgz",+ "integrity": "sha512-vXB56V9QKTr7DPuQ4ly7ptrqLWWKwFzGVYHRHjovoVJidTXP1gCe342xz2QS6y5BFTPlpsJgOrqX9nmhYwaK4w==","dependencies": {- "@tagspaces/tagspaces-indexer": "^4.5.47",+ "@tagspaces/tagspaces-indexer": "^4.5.48","@tagspaces/tagspaces-pdf-extraction": "^4.5.27",- "@tagspaces/tagspaces-workers": "^4.5.47",+ "@tagspaces/tagspaces-workers": "^4.5.48","find-free-ports": "^3.1.1","jsonwebtoken": "^8.5.1","ws": "^8.15.1"@@ -854,9 +854,9 @@"integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg=="},"node_modules/marked": {- "version": "15.0.4",- "resolved": "https://registry.npmjs.org/marked/-/marked-15.0.4.tgz",- "integrity": "sha512-TCHvDqmb3ZJ4PWG7VEGVgtefA5/euFmsIhxtD0XsBxI39gUSKL81mIRFdt0AiNQozUahd4ke98ZdirExd/vSEw==",+ "version": "15.0.5",+ "resolved": "https://registry.npmjs.org/marked/-/marked-15.0.5.tgz",+ "integrity": "sha512-xN+kSuqHjxWg+Q47yhhZMUP+kO1qHobvXkkm6FX+7N6lDvanLDd8H7AQ0jWDDyq+fDt/cSrJaBGyWYHXy0KQWA==","bin": {"marked": "bin/marked.js"},@@ -1572,18 +1572,18 @@}},"@tagspaces/extensions": {- "version": "1.0.151",- "resolved": "https://registry.npmjs.org/@tagspaces/extensions/-/extensions-1.0.151.tgz",- "integrity": "sha512-R783LIyF0g2Kx1WUL3IZr95WE4DbBteF5mbKsSllp4tMZoFFwnDdw0/+0FkG/h1iyf59dOwV+ja19qu+6C5M3Q==",+ "version": "1.0.152",+ "resolved": "https://registry.npmjs.org/@tagspaces/extensions/-/extensions-1.0.152.tgz",+ "integrity": "sha512-jOUKFnDqz63LXlw89HmTKHT0LQJdshngXHbxhH7sYKAK6DnrmN5pYzLmbZmvYdJVVgJy0BTaFi1TqKGGMSS91w==","requires": {"shelljs": "^0.8.5","shx": "^0.3.4"}},"@tagspaces/tagspaces-common": {- "version": "4.5.47",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.5.47.tgz",- "integrity": "sha512-Hwp3HExvfBrGwzaqjF4eiHTvCgYHemb5JizOqchy5UDTyHWh15/9XtfpwmXAjf8SRNH/psXPf5V/nZ7sGBbPrg==",+ "version": "4.5.48",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common/-/tagspaces-common-4.5.48.tgz",+ "integrity": "sha512-eLN5Irs325qwmEWCkA39FfpEk/8zGKpYxq/T4vwhFFkfG7pEKHeA4uRXa81NAqn0PgxZOCm79WZ9SU+0X09H3Q==","requires": {"dompurify": "^3.2.3","dotenv": "^16.0.2",@@ -1594,22 +1594,22 @@}},"@tagspaces/tagspaces-common-node": {- "version": "4.5.47",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-node/-/tagspaces-common-node-4.5.47.tgz",- "integrity": "sha512-5SF5W2iPktfUNpXr2c/2nfl7gtXJKMWVw03hEDIgJ0WT6IEjHjd9a9ckV3k2xrZwWsu592AfwhLKixu761faTQ==",+ "version": "4.5.48",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-common-node/-/tagspaces-common-node-4.5.48.tgz",+ "integrity": "sha512-hz7Z83TBF6R3+jLIGdpDweCoOBZ2w9TxvJMrguIMa2oRS1wCD6fQOy8dZDZQ4Y2mHLL9zbwGiXyuGc/1tpWdYw==","requires": {- "@tagspaces/tagspaces-common": "^4.5.47",+ "@tagspaces/tagspaces-common": "^4.5.48","adm-zip": "0.5.10","fs-extra": "^10.0.0","klaw": "^4.1.0"}},"@tagspaces/tagspaces-indexer": {- "version": "4.5.47",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-indexer/-/tagspaces-indexer-4.5.47.tgz",- "integrity": "sha512-RVkRs1YtJgsbzytrGaT+TPtIhGolAagw/X+vBvpjC36FPLc2Tb02+QT+VwwjHX6XQQsZZoTydjUYmEpK/KavOw==",+ "version": "4.5.48",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-indexer/-/tagspaces-indexer-4.5.48.tgz",+ "integrity": "sha512-VkyjuTjPgIi1OGOBs+qKWKHuj6vWyiOwebli+8fko4V4iB+WoDhiNl+b9z919RAa8BHj+XVtvvjh1/6ekftaZw==","requires": {- "@tagspaces/tagspaces-common": "^4.5.47"+ "@tagspaces/tagspaces-common": "^4.5.48"}},"@tagspaces/tagspaces-pdf-extraction": {@@ -1630,25 +1630,25 @@}},"@tagspaces/tagspaces-workers": {- "version": "4.5.47",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-workers/-/tagspaces-workers-4.5.47.tgz",- "integrity": "sha512-bIIaiN2Sgy3XQYF4dEqbfVV65xymHOGR4r5NduJqgLG18wJsY8b1WiTbhFjD8opYYmQAViRjvT6RfIoaImGEFA==",+ "version": "4.5.48",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-workers/-/tagspaces-workers-4.5.48.tgz",+ "integrity": "sha512-HNnhhIYROqLiRaAmtRsiQnSbuQfC7IXvDtIcMkjK9coTRI7+qRAwE8/uDg6pJl4ncOoliTeeVaWSQHhtUwmZQw==","requires": {- "@tagspaces/tagspaces-common": "^4.5.47",- "@tagspaces/tagspaces-common-node": "^4.5.47",+ "@tagspaces/tagspaces-common": "^4.5.48",+ "@tagspaces/tagspaces-common-node": "^4.5.48","@tagspaces/tagspaces-pdf-extraction": "^4.5.27","@tagspaces/tagspaces-thumbgen-image": "^4.2.3","fswin": "^3.24.829"}},"@tagspaces/tagspaces-ws": {- "version": "4.5.47",- "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-ws/-/tagspaces-ws-4.5.47.tgz",- "integrity": "sha512-QOMDEnqfeFaGzg8WdpgU1dmU3jhiw/pwVb/lDFdth06GonGwKYYDczP44rUrgift07YNc15/kbn7kbCKvpuwKg==",+ "version": "4.5.48",+ "resolved": "https://registry.npmjs.org/@tagspaces/tagspaces-ws/-/tagspaces-ws-4.5.48.tgz",+ "integrity": "sha512-vXB56V9QKTr7DPuQ4ly7ptrqLWWKwFzGVYHRHjovoVJidTXP1gCe342xz2QS6y5BFTPlpsJgOrqX9nmhYwaK4w==","requires": {- "@tagspaces/tagspaces-indexer": "^4.5.47",+ "@tagspaces/tagspaces-indexer": "^4.5.48","@tagspaces/tagspaces-pdf-extraction": "^4.5.27",- "@tagspaces/tagspaces-workers": "^4.5.47",+ "@tagspaces/tagspaces-workers": "^4.5.48","find-free-ports": "^3.1.1","jsonwebtoken": "^8.5.1","ws": "^8.15.1"@@ -2205,9 +2205,9 @@"integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg=="},"marked": {- "version": "15.0.4",- "resolved": "https://registry.npmjs.org/marked/-/marked-15.0.4.tgz",- "integrity": "sha512-TCHvDqmb3ZJ4PWG7VEGVgtefA5/euFmsIhxtD0XsBxI39gUSKL81mIRFdt0AiNQozUahd4ke98ZdirExd/vSEw=="+ "version": "15.0.5",+ "resolved": "https://registry.npmjs.org/marked/-/marked-15.0.5.tgz",+ "integrity": "sha512-xN+kSuqHjxWg+Q47yhhZMUP+kO1qHobvXkkm6FX+7N6lDvanLDd8H7AQ0jWDDyq+fDt/cSrJaBGyWYHXy0KQWA=="},"mime-db": {"version": "1.52.0",diff --git a/src/renderer/hooks/LocationIndexContextProvider.tsx b/src/renderer/hooks/LocationIndexContextProvider.tsxindex 74afdbd98..4c3f03c82 100644--- a/src/renderer/hooks/LocationIndexContextProvider.tsx+++ b/src/renderer/hooks/LocationIndexContextProvider.tsx@@ -268,9 +268,15 @@ export const LocationIndexContextProvider = ({}lastIndex.forEach((entry) =>entry.links?.some((link) => {- if (link.type === 'tslink' && link.tseid) {- if (entryID === link.tseid) {- foundEntriesLinkingToId.push(entry);+ if (link.type === 'tslink') {+ try {+ const validLink = new URL(link.href);+ const tseid = validLink.searchParams.get('tseid');+ if (entryID === tseid) {+ foundEntriesLinkingToId.push(entry);+ }+ } catch (e) {+ console.log('Link not valid: ' + link.href);}}}),