TagSpaces is an offline, open source, document manager with tagging support
chore: updating linkify library, fixes in the links tab
Ilian Sapundshiev91e782a7e11f
diff --git a/package-lock.json b/package-lock.jsonindex 64f61b08b..8becb5724 100644--- a/package-lock.json+++ b/package-lock.json@@ -48,7 +48,7 @@"i18next": "^23.4.6","i18next-http-backend": "^2.2.2","leaflet": "^1.9.4",- "linkifyjs": "^4.1.3",+ "linkifyjs": "^4.2.0","mgrs": "^1.0.0","open-location-code": "^1.0.3","open-location-code-typescript": "^1.5.0",diff --git a/package.json b/package.jsonindex b59f87fd6..e447f46bc 100644--- a/package.json+++ b/package.json@@ -195,7 +195,7 @@"i18next": "^23.4.6","i18next-http-backend": "^2.2.2","leaflet": "^1.9.4",- "linkifyjs": "^4.1.3",+ "linkifyjs": "^4.2.0","mgrs": "^1.0.0","open-location-code": "^1.0.3","open-location-code-typescript": "^1.5.0",diff --git a/src/renderer/components/LinksTab.tsx b/src/renderer/components/LinksTab.tsxindex 9c82f3f92..942ea762e 100644--- a/src/renderer/components/LinksTab.tsx+++ b/src/renderer/components/LinksTab.tsx@@ -27,6 +27,7 @@ import { getEntryContainerTab } from '-/reducers/settings';import { TS } from '-/tagspaces.namespace';import { getURLParameter } from '-/utils/dom';import { Box, Typography } from '@mui/material';+import { useTheme } from '@mui/material/styles';import { extractLinks } from '@tagspaces/tagspaces-common/misc';import {cleanRootPath,@@ -49,6 +50,7 @@ function LinksTab(props: Props) {const links = useRef<TS.Link[]>([]);const inboundLinks = useRef<TS.FileSystemEntry[]>([]);const indexExist = useRef<boolean>(false);+ const theme = useTheme();const [ignored, forceUpdate] = useReducer((x) => x + 1, 0, undefined);const location = findLocation(openedEntry.locationID);@@ -220,7 +222,10 @@ function LinksTab(props: Props) {})}</>) : (- <Typography variant="caption">No incoming links found</Typography>+ <>+ <Typography variant="caption">No incoming links found</Typography>+ <br />+ </>)}<TsButtonloading={isIndexing !== undefined}