Skip to content

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

chore: linkify from the project

Ilian Sapundshieva5e2f79466a6
diff --git a/package-lock.json b/package-lock.json
index 8becb5724..f6cd3df4f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -48,7 +48,6 @@
"i18next": "^23.4.6",
"i18next-http-backend": "^2.2.2",
"leaflet": "^1.9.4",
- "linkifyjs": "^4.2.0",
"mgrs": "^1.0.0",
"open-location-code": "^1.0.3",
"open-location-code-typescript": "^1.5.0",
@@ -84,6 +83,7 @@
"source-map-support": "^0.5.21",
"tga-js": "1.1.1",
"ts-react-splitter": "^3.0.0",
+ "url-regex-safe": "^4.0.0",
"use-state-with-callback": "^2.0.3",
"utif": "github:photopea/UTIF.js",
"uuid": "^9.0.0"
@@ -27216,7 +27216,6 @@
},
"node_modules/ip-regex": {
"version": "4.3.0",
- "dev": true,
"license": "MIT",
"engines": {
"node": ">=8"
@@ -47249,6 +47248,15 @@
"@popperjs/core": "^2.9.0"
}
},
+ "node_modules/tlds": {
+ "version": "1.255.0",
+ "resolved": "https://registry.npmjs.org/tlds/-/tlds-1.255.0.tgz",
+ "integrity": "sha512-tcwMRIioTcF/FcxLev8MJWxCp+GUALRhFEqbDoZrnowmKSGqPrl5pqS+Sut2m8BgJ6S4FExCSSpGffZ0Tks6Aw==",
+ "license": "MIT",
+ "bin": {
+ "tlds": "bin.js"
+ }
+ },
"node_modules/tldts": {
"version": "6.1.61",
"license": "MIT",
@@ -48416,6 +48424,27 @@
"requires-port": "^1.0.0"
}
},
+ "node_modules/url-regex-safe": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/url-regex-safe/-/url-regex-safe-4.0.0.tgz",
+ "integrity": "sha512-BrnFCWKNFrFnRzKD66NtJqQepfJrUHNPvPxE5y5NSAhXBb4OlobQjt7907Jm4ItPiXaeX+dDWMkcnOd4jR9N8A==",
+ "license": "MIT",
+ "dependencies": {
+ "ip-regex": "4.3.0",
+ "tlds": "^1.242.0"
+ },
+ "engines": {
+ "node": ">= 14"
+ },
+ "peerDependencies": {
+ "re2": "^1.20.1"
+ },
+ "peerDependenciesMeta": {
+ "re2": {
+ "optional": true
+ }
+ }
+ },
"node_modules/url/node_modules/punycode": {
"version": "1.4.1",
"license": "MIT"
diff --git a/package.json b/package.json
index e447f46bc..c067e86b8 100644
--- a/package.json
+++ b/package.json
@@ -195,7 +195,6 @@
"i18next": "^23.4.6",
"i18next-http-backend": "^2.2.2",
"leaflet": "^1.9.4",
- "linkifyjs": "^4.2.0",
"mgrs": "^1.0.0",
"open-location-code": "^1.0.3",
"open-location-code-typescript": "^1.5.0",
@@ -231,6 +230,7 @@
"source-map-support": "^0.5.21",
"tga-js": "1.1.1",
"ts-react-splitter": "^3.0.0",
+ "url-regex-safe": "^4.0.0",
"use-state-with-callback": "^2.0.3",
"utif": "github:photopea/UTIF.js",
"uuid": "^9.0.0"
diff --git a/src/main/main.ts b/src/main/main.ts
index 3f995e264..b5c1b67a4 100644
--- a/src/main/main.ts
+++ b/src/main/main.ts
@@ -8,32 +8,32 @@
* When running `npm run build` or `npm run build:main`, this file is compiled to
* `./src/main.js` using webpack. This gives us some performance wins.
*/
-import path from 'path';
import {
- app,
BrowserWindow,
- shell,
- ipcMain,
- globalShortcut,
BrowserWindowConstructorOptions,
+ app,
dialog,
+ globalShortcut,
+ ipcMain,
+ shell,
} from 'electron';
+import path from 'path';
// import { autoUpdater } from 'electron-updater';
//import log from 'electron-log';
import pm2 from '@elife/pm2';
-import propertiesReader from 'properties-reader';
-import { resolveHtmlPath } from './util';
import windowStateKeeper from 'electron-window-state';
import findFreePorts from 'find-free-ports';
-import settings from './settings';
-import { getExtensions } from './extension-utils';
+import propertiesReader from 'properties-reader';
import i18nInit from '../renderer/services/i18nInit';
-import buildTrayMenu from './electron-tray-menu';
import buildDockMenu from './electron-dock-menu';
import buildDesktopMenu from './electron-menus';
+import buildTrayMenu from './electron-tray-menu';
+import { getExtensions } from './extension-utils';
import loadMainEvents from './mainEvents';
-import { Extensions } from './types';
import protocol from './protocol';
+import settings from './settings';
+import { Extensions } from './types';
+import { resolveHtmlPath } from './util';
// class AppUpdater {
// constructor() {