Skip to content

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

fix file upload s3

sytolk513142713d22
diff --git a/app/components/EntryProperties.tsx b/app/components/EntryProperties.tsx
index 69d4e73b5..bd2277df4 100644
--- a/app/components/EntryProperties.tsx
+++ b/app/components/EntryProperties.tsx
@@ -18,7 +18,7 @@
import React, { ChangeEvent, useEffect, useRef, useState } from 'react';
import { useStateWithCallbackLazy } from 'use-state-with-callback';
-import uuidv1 from 'uuid';
+import { v1 as uuidv1 } from 'uuid';
import marked from 'marked';
import L from 'leaflet';
import classNames from 'classnames';
diff --git a/app/components/MobileNavigation.tsx b/app/components/MobileNavigation.tsx
index 770bb0ed6..814d60591 100644
--- a/app/components/MobileNavigation.tsx
+++ b/app/components/MobileNavigation.tsx
@@ -17,7 +17,7 @@
*/
import React, { useState } from 'react';
-import uuidv1 from 'uuid';
+import { v1 as uuidv1 } from 'uuid';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import classNames from 'classnames';
diff --git a/app/components/TagContainer.tsx b/app/components/TagContainer.tsx
index 4bbf9a539..340eabec6 100644
--- a/app/components/TagContainer.tsx
+++ b/app/components/TagContainer.tsx
@@ -17,7 +17,6 @@
*/
import React from 'react';
-// import uuidv1 from 'uuid';
import { connect } from 'react-redux';
import Button from '@material-ui/core/Button';
import MoreVertIcon from '@material-ui/icons/MoreVert';
diff --git a/app/components/TagsSelect.tsx b/app/components/TagsSelect.tsx
index 4a617b4e0..9e0aaba29 100644
--- a/app/components/TagsSelect.tsx
+++ b/app/components/TagsSelect.tsx
@@ -16,8 +16,8 @@
*
*/
-import React, { useCallback, useState } from 'react';
-import uuidv1 from 'uuid';
+import React, { useState } from 'react';
+import { v1 as uuidv1 } from 'uuid';
import { connect } from 'react-redux';
import { withStyles } from '@material-ui/core/styles';
import TextField from '@material-ui/core/TextField';
diff --git a/app/components/dialogs/CreateEditLocationDialog.tsx b/app/components/dialogs/CreateEditLocationDialog.tsx
index e9b7aa496..7c30513b9 100644
--- a/app/components/dialogs/CreateEditLocationDialog.tsx
+++ b/app/components/dialogs/CreateEditLocationDialog.tsx
@@ -18,7 +18,7 @@
import React, { ChangeEvent, useEffect, useState } from 'react';
import Button from '@material-ui/core/Button';
-import uuidv1 from 'uuid';
+import { v1 as uuidv1 } from 'uuid';
import { withStyles } from '@material-ui/core/styles';
import withMobileDialog from '@material-ui/core/withMobileDialog';
import DialogActions from '@material-ui/core/DialogActions';
diff --git a/app/components/dialogs/CreateTagGroupDialog.tsx b/app/components/dialogs/CreateTagGroupDialog.tsx
index 5d651fa0f..5131643dc 100644
--- a/app/components/dialogs/CreateTagGroupDialog.tsx
+++ b/app/components/dialogs/CreateTagGroupDialog.tsx
@@ -17,7 +17,7 @@
*/
import React, { ChangeEvent, useReducer, useRef, useState } from 'react';
-import uuidv1 from 'uuid';
+import { v1 as uuidv1 } from 'uuid';
import withMobileDialog from '@material-ui/core/withMobileDialog';
import Button from '@material-ui/core/Button';
import TextField from '@material-ui/core/TextField';
diff --git a/app/components/dialogs/settings/SettingsDialog.tsx b/app/components/dialogs/settings/SettingsDialog.tsx
index a6e6269d9..dadf7750d 100644
--- a/app/components/dialogs/settings/SettingsDialog.tsx
+++ b/app/components/dialogs/settings/SettingsDialog.tsx
@@ -28,7 +28,7 @@ import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
import DialogTitle from '@material-ui/core/DialogTitle';
import withMobileDialog from '@material-ui/core/withMobileDialog';
-import uuidv1 from 'uuid';
+import { v1 as uuidv1 } from 'uuid';
import { useStateWithCallbackLazy } from 'use-state-with-callback';
import ConfirmDialog from '../ConfirmDialog';
import SettingsGeneral from '../settings/SettingsGeneral';
diff --git a/app/package-template.json b/app/package-template.json
index 70749bbd1..aeb52e214 100644
--- a/app/package-template.json
+++ b/app/package-template.json
@@ -5,6 +5,6 @@
"nodeDependencies": {
"@tagspaces/extensions": "1.0.0",
"sharp": "^0.29.2",
- "@tagspaces/tagspaces-ws": "^1.0.15"
+ "@tagspaces/tagspaces-ws": "^1.0.16"
}
}
diff --git a/app/package.json b/app/package.json
index 577a7a2ea..73d31ec0e 100644
--- a/app/package.json
+++ b/app/package.json
@@ -15,6 +15,6 @@
"dependencies": {
"@tagspaces/extensions": "1.0.0",
"sharp": "^0.29.2",
- "@tagspaces/tagspaces-ws": "^1.0.15"
+ "@tagspaces/tagspaces-ws": "^1.0.16"
}
}
diff --git a/app/reducers/app.ts b/app/reducers/app.ts
index 93540ed8e..6a041bb04 100644
--- a/app/reducers/app.ts
+++ b/app/reducers/app.ts
@@ -16,7 +16,7 @@
*
*/
-import uuidv1 from 'uuid';
+import { v1 as uuidv1 } from 'uuid';
import { getLocation, getDefaultLocationId } from './locations';
import PlatformIO from '../services/platform-io';
import AppConfig from '../config';
diff --git a/app/reducers/locations.ts b/app/reducers/locations.ts
index 7e4b7ce3a..de7009156 100644
--- a/app/reducers/locations.ts
+++ b/app/reducers/locations.ts
@@ -16,12 +16,11 @@
*
*/
-import uuidv1 from 'uuid';
+import { v1 as uuidv1 } from 'uuid';
import { immutablySwapItems, locationType } from '-/utils/misc';
import { actions as AppActions } from '-/reducers/app';
import i18n from '-/services/i18n';
import PlatformIO from '-/services/platform-io';
-import AppConfig from '-/config';
import { TS } from '-/tagspaces.namespace';
export const types = {
diff --git a/app/reducers/settings.ts b/app/reducers/settings.ts
index a5330d069..497283bca 100644
--- a/app/reducers/settings.ts
+++ b/app/reducers/settings.ts
@@ -17,7 +17,7 @@
*/
import semver from 'semver';
-import uuidv1 from 'uuid';
+import { v1 as uuidv1 } from 'uuid';
import i18n from '-/services/i18n';
import defaultSettings from './settings-default';
import PlatformIO from '-/services/platform-io';
diff --git a/app/reducers/taglibrary-default.ts b/app/reducers/taglibrary-default.ts
index fdde9e999..870b88ff7 100644
--- a/app/reducers/taglibrary-default.ts
+++ b/app/reducers/taglibrary-default.ts
@@ -16,8 +16,7 @@
*
*/
-// import AppConfig from '../config';
-import uuidv1 from 'uuid';
+import { v1 as uuidv1 } from 'uuid';
export default [
{
diff --git a/app/reducers/taglibrary.ts b/app/reducers/taglibrary.ts
index c727d925f..cb84b713d 100644
--- a/app/reducers/taglibrary.ts
+++ b/app/reducers/taglibrary.ts
@@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
-import uuidv1 from 'uuid';
+import { v1 as uuidv1 } from 'uuid';
import {
immutablySwapItems,
formatDateTime4Tag,
diff --git a/app/services/utils-io.ts b/app/services/utils-io.ts
index b6f6e6209..9a4a6d859 100644
--- a/app/services/utils-io.ts
+++ b/app/services/utils-io.ts
@@ -16,7 +16,7 @@
*
*/
-import uuidv1 from 'uuid';
+import { v1 as uuidv1 } from 'uuid';
import {
loadIndex,
enhanceDirectoryIndex,
diff --git a/package.json b/package.json
index e7654593c..161d23e08 100644
--- a/package.json
+++ b/package.json
@@ -51,7 +51,7 @@
"dev": "yarn postinstall-node-check && yarn generate-jwt && yarn check-extensions && cross-env START_HOT=1 node -r @babel/register ./internals/scripts/CheckPortInUse.js && cross-env START_HOT=1 yarn start-renderer-dev",
"generate-jwt": "node scripts/jwt_generate.js",
"install-ext-node": "rimraf app/node_modules && cd app && cross-env PD_PLATFORM=node node ../scripts/app-package-gen.js && npm install && cd ..",
- "install-ext-node-linux": "rimraf app/node_modules && cd app && cross-env PD_PLATFORM=node node ../scripts/app-package-gen.js && cross-env SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm install --platform=linux --arch=x64 && cd ..",
+ "install-ext-node-linux": "rimraf app/node_modules && cd app && cross-env PD_PLATFORM=node node ../scripts/app-package-gen.js && npm install --platform=linux --arch=x64 && cd ..",
"install-ext-node-mac": "rimraf app/node_modules && cd app && cross-env PD_PLATFORM=node node ../scripts/app-package-gen.js && npm install --platform=darwin --arch=x64 && cd ..",
"install-ext-node-mac-arm64": "rimraf app/node_modules && cd app && cross-env PD_PLATFORM=node node ../scripts/app-package-gen.js && npm install --platform=darwin --arch=arm64 && cd ..",
"install-ext-node-win": "rimraf app/node_modules && cd app && cross-env PD_PLATFORM=node node ../scripts/app-package-gen.js && npm install --platform=win32 --arch=x64 && cd ..",
@@ -152,7 +152,7 @@
"@material-ui/icons": "^4.11.2",
"@material-ui/lab": "^4.0.0-alpha.57",
"@material-ui/pickers": "^3.2.10",
- "@tagspaces/tagspaces-platforms": "^1.0.43",
+ "@tagspaces/tagspaces-platforms": "^1.0.44",
"aws-amplify": "^3.3.27",
"aws-sdk": "^2.984.0",
"babel-polyfill": "^6.26.0",
@@ -211,6 +211,7 @@
"tiff.js": "^1.0.0",
"ts-react-splitter": "^2.1.1",
"use-state-with-callback": "^2.0.3",
+ "uuid": "^8.3.2",
"winattr": "^3.0.0"
},
"devDependencies": {
diff --git a/yarn.lock b/yarn.lock
index ab28ac003..ae9ade01d 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -3362,10 +3362,10 @@
dependencies:
defer-to-connect "^1.0.1"
-"@tagspaces/tagspaces-platforms@^1.0.43":
- version "1.0.43"
- resolved "https://registry.yarnpkg.com/@tagspaces/tagspaces-platforms/-/tagspaces-platforms-1.0.43.tgz#c53ef497f13c48cc9652daea3c163664ea923c19"
- integrity sha512-7p8p9UfE7YwsEUD4vEETPZ8l57ioH5cE2cJGhp1xroFki7qqb6WRFhodqkvp0S7DCJYNxehXcF6vnq/R05KmQw==
+"@tagspaces/tagspaces-platforms@^1.0.44":
+ version "1.0.44"
+ resolved "https://registry.yarnpkg.com/@tagspaces/tagspaces-platforms/-/tagspaces-platforms-1.0.44.tgz#1b5b043f3657156f40f913fb590bbe2d219c3482"
+ integrity sha512-zf7nly6DA05ncYrwdSwgO6ygvVQLraicmRCEhmK6USIJRXKeGhqMpSJIaevwX2ihqzQXPI5hcnM8bZcLsyweyg==
"@testim/chrome-version@^1.0.7":
version "1.0.7"
@@ -19377,7 +19377,7 @@ uuid@^3.0.0, uuid@^3.0.1, uuid@^3.2.1, uuid@^3.3.2, uuid@^3.3.3, uuid@^3.4.0:
resolved "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz"
integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==
-uuid@^8.2.0, uuid@^8.3.0:
+uuid@^8.2.0, uuid@^8.3.0, uuid@^8.3.2:
version "8.3.2"
resolved "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz"
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==