TagSpaces is an offline, open source, document manager with tagging support
Tsn763 create UI for user profile (#1560)
Stanimir242891417c07
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.ymlindex 58bd5f78b..b241d0925 100644--- a/.github/workflows/pull_request.yml+++ b/.github/workflows/pull_request.yml@@ -84,6 +84,7 @@ jobs:- name: Checkout TagspacesProuses: actions/checkout@v2with:+ ref: TSN759---Fully-migrate-the-electron-and-cordova-platforms-to-new-the-tagspaces-platformrepository: tagspaces/tagspacesprotoken: ${{ secrets.CHECKOUT_TSPRO }}path: extensions/tagspacesprodiff --git a/app/components/DirectoryTreeView.tsx b/app/components/DirectoryTreeView.tsxindex aaba06cea..6615034c8 100644--- a/app/components/DirectoryTreeView.tsx+++ b/app/components/DirectoryTreeView.tsx@@ -21,7 +21,7 @@ import Table from 'rc-table';import FolderIcon from '@material-ui/icons/FolderOpen';import DragItemTypes from '-/components/DragItemTypes';import AppConfig from '-/config';-import PlatformIO from '-/services/platform-io';+import PlatformIO from '-/services/platform-facade';import TargetTableMoveFileBox from '-/components/TargetTableMoveFileBox';import { getLocationPath } from '-/utils/paths';import { TS } from '-/tagspaces.namespace';diff --git a/app/components/EntryContainer.tsx b/app/components/EntryContainer.tsxindex 568e530de..1b9a8847a 100644--- a/app/components/EntryContainer.tsx+++ b/app/components/EntryContainer.tsx@@ -50,7 +50,7 @@ import { Split } from 'ts-react-splitter';import EntryProperties from '-/components/EntryProperties';import ConfirmDialog from '-/components/dialogs/ConfirmDialog';import AppConfig from '-/config';-import PlatformIO from '-/services/platform-io';+import PlatformIO from '-/services/platform-facade';import AddRemoveTagsDialog from '-/components/dialogs/AddRemoveTagsDialog';import i18n from '-/services/i18n';import {diff --git a/app/components/EntryProperties.tsx b/app/components/EntryProperties.tsxindex 0b75f5c40..e9534c6d3 100644--- a/app/components/EntryProperties.tsx+++ b/app/components/EntryProperties.tsx@@ -71,7 +71,7 @@ import {} from '-/utils/paths';import AppConfig from '../config';import { Pro } from '../pro';-import PlatformIO from '../services/platform-io';+import PlatformIO from '../services/platform-facade';import TagsSelect from './TagsSelect';import TransparentBackground from './TransparentBackground';import {diff --git a/app/components/HelpFeedbackPanel.tsx b/app/components/HelpFeedbackPanel.tsxindex 781ebaa9a..8d39ac952 100644--- a/app/components/HelpFeedbackPanel.tsx+++ b/app/components/HelpFeedbackPanel.tsx@@ -16,14 +16,10 @@**/-import React, { useState } from 'react';+import React from 'react';import { withStyles } from '@material-ui/core/styles';import classNames from 'classnames';import Typography from '@material-ui/core/Typography';-import Button from '@material-ui/core/Button';-import Tooltip from '@material-ui/core/Tooltip';-import Avatar from '@material-ui/core/Avatar';-import Box from '@material-ui/core/Box';import List from '@material-ui/core/List';import ListItem from '@material-ui/core/ListItem';import ListItemIcon from '@material-ui/core/ListItemIcon';@@ -41,16 +37,9 @@ import SocialIcon from '@material-ui/icons/ThumbUp';import Social2Icon from '@material-ui/icons/Mood';import KeyShortcutsIcon from '@material-ui/icons/Keyboard';import ProTeaserIcon from '@material-ui/icons/FlightTakeoff';-import ExitToAppIcon from '@material-ui/icons/ExitToApp';-import { connect } from 'react-redux';-import { CognitoUserInterface } from '@aws-amplify/ui-components';-import Auth from '@aws-amplify/auth';-import { bindActionCreators } from 'redux';import styles from './SidePanels.css';import i18n from '../services/i18n';-import { clearAllURLParams } from '-/utils/misc';import { Pro } from '-/pro';-import { actions as AppActions } from '-/reducers/app';import Links from '-/links';import AppConfig from '-/config';@@ -62,17 +51,11 @@ interface Props {toggleKeysDialog: () => void;toggleOnboardingDialog: () => void;toggleProTeaser: () => void;- user: CognitoUserInterface;style?: any;- closeAllVerticalPanels: () => void;reduceHeightBy?: number;}const HelpFeedbackPanel = (props: Props) => {- const [isSetupTOTPOpened, setSetupTOTPOpened] = useState<boolean>(false);-- const SetupTOTPDialog = Pro && Pro.UI ? Pro.UI.SetupTOTPDialog : false;-const {classes,openURLExternally,@@ -84,25 +67,6 @@ const HelpFeedbackPanel = (props: Props) => {reduceHeightBy} = props;- const signOut = () => {- Auth.signOut();- clearAllURLParams();- props.closeAllVerticalPanels();- };-- let email;- let initials;- if (props.user && props.user.attributes && props.user.attributes.email) {- email = props.user.attributes.email;- const fullName = email.split('@')[0].split('.');- const firstName = fullName[0];- const lastName = fullName[fullName.length - 1];- initials = firstName.charAt(0).toUpperCase();- if (lastName) {- initials += lastName.charAt(0).toUpperCase();- }- }-return (<divclassName={classes.panel}@@ -111,121 +75,6 @@ const HelpFeedbackPanel = (props: Props) => {flexDirection: 'column'}}>- {props.user && (- <>- <Typography- className={classNames(classes.panelTitle, classes.header)}- variant="subtitle1"- >- User Profile- </Typography>- <Box>- <ListItem>- <ListItemIcon>- <Avatar- variant="rounded"- style={{- color: theme.palette.getContrastText(- theme.palette.primary.light- ),- backgroundColor: theme.palette.primary.light- }}- >- {initials}- </Avatar>- </ListItemIcon>- <Typography style={{ color: theme.palette.text.primary }}>- {email}- </Typography>- </ListItem>- {SetupTOTPDialog && (- <Box- style={{- width: '100%',- textAlign: 'center'- }}- >- {isSetupTOTPOpened && (- <SetupTOTPDialog- open={isSetupTOTPOpened}- onClose={() => setSetupTOTPOpened(false)}- user={props.user}- confirmCallback={result => {- if (result) {- window.location.reload(); // TODO SOFTWARE_TOKEN_MFA is not refreshed in signed user without window.reload()- }- console.log('TOTP is:' + result);- }}- />- )}- {'SOFTWARE_TOKEN_MFA'.indexOf(props.user.preferredMFA) ===- -1 ? (- <Tooltip title={i18n.t('core:setupTOTPHelp')}>- <Button- data-tid="setupTOTP"- title={i18n.t('core:setupTOTP')}- className={classes.mainActionButton}- onClick={() => {- setSetupTOTPOpened(true);- }}- size="small"- variant="outlined"- color="primary"- style={{ width: '95%' }}- >- {i18n.t('core:setupTOTP')}- </Button>- </Tooltip>- ) : (- <>- <Typography style={{ color: theme.palette.text.primary }}>- {i18n.t('core:TOTPEnabled')}- </Typography>- <Button- className={classes.mainActionButton}- onClick={async () => {- try {- await Auth.setPreferredMFA(props.user, 'NOMFA');- signOut();- } catch (error) {- console.error(error);- }- }}- size="small"- variant="outlined"- color="primary"- style={{ width: '95%' }}- >- {i18n.t('core:disableTOTP')}- </Button>- </>- )}- </Box>- )}- <Box- style={{- width: '100%',- textAlign: 'center',- marginBottom: 10- }}- >- <Button- data-tid="signOutTID"- title={i18n.t('core:signOut')}- className={classes.mainActionButton}- onClick={signOut}- size="small"- variant="outlined"- color="primary"- style={{ width: '95%' }}- >- <ExitToAppIcon className={classNames(classes.leftIcon)} />- {i18n.t('core:signOut')}- </Button>- </Box>- </Box>- </>- )}<div className={classes.toolbar}><TypographyclassName={classNames(classes.panelTitle, classes.header)}@@ -240,7 +89,7 @@ const HelpFeedbackPanel = (props: Props) => {aria-label="main help area"style={{height: 'calc(100% - ' + reduceHeightBy + 'px)',- //@ts-ignore+ // @ts-ignoreoverflowY: AppConfig.isFirefox ? 'auto' : 'overlay'}}>@@ -392,22 +241,4 @@ const HelpFeedbackPanel = (props: Props) => {);};-function mapStateToProps(state) {- return {- user: state.app.user- };-}--function mapDispatchToProps(dispatch) {- return bindActionCreators(- {- closeAllVerticalPanels: AppActions.closeAllVerticalPanels- },- dispatch- );-}--export default connect(- mapStateToProps,- mapDispatchToProps-)(withStyles(styles, { withTheme: true })(HelpFeedbackPanel));+export default withStyles(styles, { withTheme: true })(HelpFeedbackPanel);diff --git a/app/components/LocationView.tsx b/app/components/LocationView.tsxindex 56a246df1..af4439363 100644--- a/app/components/LocationView.tsx+++ b/app/components/LocationView.tsx@@ -39,7 +39,7 @@ import {} from '../reducers/app';import i18n from '../services/i18n';import AppConfig from '../config';-import PlatformIO from '../services/platform-io';+import PlatformIO from '../services/platform-facade';import TargetMoveFileBox from './TargetMoveFileBox';import DragItemTypes from './DragItemTypes';import IOActions from '../reducers/io-actions';diff --git a/app/components/MobileNavigation.tsx b/app/components/MobileNavigation.tsxindex 8b9c7c316..a37f29aaf 100644--- a/app/components/MobileNavigation.tsx+++ b/app/components/MobileNavigation.tsx@@ -62,6 +62,8 @@ import LoadingLazy from './LoadingLazy';import { actions as SettingsActions, isFirstRun } from '../reducers/settings';import Links from '-/links';import StoredSearches from '-/components/StoredSearches';+import Popover from '@material-ui/core/Popover';+import UserDetailsPopover from '-/components/UserDetailsPopover';const styles: any = (theme: any) => ({selectedButton: {@@ -112,6 +114,7 @@ interface Props {const MobileNavigation = (props: Props) => {const [isProTeaserVisible, setIsProTeaserVisible] = useState<boolean>(false);const [showTeaserBanner, setShowTeaserBanner] = useState<boolean>(true);+ const [anchorUser, setAnchorUser] = useState<HTMLButtonElement | null>(null);const toggleProTeaser = () => {setIsProTeaserVisible(!isProTeaserVisible);@@ -349,19 +352,50 @@ const MobileNavigation = (props: Props) => {: classes.button}>- {user ? <AccountCircleIcon /> : <HelpIcon />}+ <HelpIcon /></ToggleButton></Tooltip></ToggleButtonGroup>- <Tooltip title={i18n.t('core:switchTheme')}>- <IconButton- data-tid="switchTheme"- onClick={switchTheme}- style={{ marginTop: -15, marginRight: 2 }}- >- <ThemingIcon className={classes.buttonIcon} />- </IconButton>- </Tooltip>+ {user ? (+ <>+ <Tooltip title={i18n.t('core:userAccount')}>+ <IconButton+ data-tid="accountCircleIconTID"+ onClick={(event: React.MouseEvent<HTMLButtonElement>) =>+ setAnchorUser(event.currentTarget)+ }+ style={{ marginTop: -15, marginRight: 2 }}+ >+ <AccountCircleIcon className={classes.buttonIcon} />+ </IconButton>+ </Tooltip>+ <Popover+ open={Boolean(anchorUser)}+ anchorEl={anchorUser}+ onClose={() => setAnchorUser(null)}+ anchorOrigin={{+ vertical: 'top',+ horizontal: 'center'+ }}+ transformOrigin={{+ vertical: 'bottom',+ horizontal: 'center'+ }}+ >+ <UserDetailsPopover onClose={() => setAnchorUser(null)} />+ </Popover>+ </>+ ) : (+ <Tooltip title={i18n.t('core:switchTheme')}>+ <IconButton+ data-tid="switchTheme"+ onClick={switchTheme}+ style={{ marginTop: -15, marginRight: 2 }}+ >+ <ThemingIcon className={classes.buttonIcon} />+ </IconButton>+ </Tooltip>+ )}{isProTeaserVisible && (<ProTeaserDialogAsyncopen={isProTeaserVisible}diff --git a/app/components/PathBreadcrumbs.tsx b/app/components/PathBreadcrumbs.tsxindex 9f1b02280..976b108f8 100644--- a/app/components/PathBreadcrumbs.tsx+++ b/app/components/PathBreadcrumbs.tsx@@ -21,7 +21,7 @@ import { emphasize, withStyles, Theme } from '@material-ui/core/styles';import Breadcrumbs from '@material-ui/core/Breadcrumbs';import Chip from '@material-ui/core/Chip';import ExpandMoreIcon from '@material-ui/icons/MoreVert';-import PlatformIO from '../services/platform-io';+import PlatformIO from '../services/platform-facade';import { normalizePath, extractShortDirectoryName } from '-/utils/paths';import i18n from '../services/i18n';import DirectoryMenu from './menus/DirectoryMenu';diff --git a/app/components/TagContainerDnd.tsx b/app/components/TagContainerDnd.tsxindex c283e8f79..5503b918d 100644--- a/app/components/TagContainerDnd.tsx+++ b/app/components/TagContainerDnd.tsx@@ -30,7 +30,7 @@ import DragItemTypes from './DragItemTypes';import TagContainer from './TagContainer';import { TS } from '-/tagspaces.namespace';import { extractTags } from '-/utils/paths';-import PlatformIO from '-/services/platform-io';+import PlatformIO from '-/services/platform-facade';import AppConfig from '-/config';const boxSource = {diff --git a/app/components/UserDetailsPopover.tsx b/app/components/UserDetailsPopover.tsxnew file mode 100644index 000000000..791ced06c--- /dev/null+++ b/app/components/UserDetailsPopover.tsx@@ -0,0 +1,212 @@+/**+ * TagSpaces - universal file and folder organizer+ * Copyright (C) 2017-present TagSpaces UG (haftungsbeschraenkt)+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License (version 3) as+ * published by the Free Software Foundation.+ *+ * This program is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ * GNU Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <https://www.gnu.org/licenses/>.+ *+ */++import React, { useState } from 'react';+import classNames from 'classnames';+import { CognitoUserInterface } from '@aws-amplify/ui-components';+import Typography from '@material-ui/core/Typography';+import Box from '@material-ui/core/Box';+import ListItem from '@material-ui/core/ListItem';+import ListItemIcon from '@material-ui/core/ListItemIcon';+import Avatar from '@material-ui/core/Avatar';+import Tooltip from '@material-ui/core/Tooltip';+import Button from '@material-ui/core/Button';+import Auth from '@aws-amplify/auth';+import ExitToAppIcon from '@material-ui/icons/ExitToApp';+import { withStyles } from '@material-ui/core/styles';+import { bindActionCreators } from 'redux';+import { connect } from 'react-redux';+import i18n from '-/services/i18n';+import styles from '-/components/SidePanels.css';+import { Pro } from '-/pro';+import { clearAllURLParams } from '-/utils/misc';++interface Props {+ classes?: any;+ theme?: any;+ user: CognitoUserInterface;+ // closeAllVerticalPanels: () => void;+ onClose: () => void;+}++const UserDetailsPopover = (props: Props) => {+ const [isSetupTOTPOpened, setSetupTOTPOpened] = useState<boolean>(false);+ const SetupTOTPDialog = Pro && Pro.UI ? Pro.UI.SetupTOTPDialog : false;++ let email;+ let initials;+ if (props.user && props.user.attributes && props.user.attributes.email) {+ ({ email } = props.user.attributes);+ const fullName = email.split('@')[0].split('.');+ const firstName = fullName[0];+ const lastName = fullName[fullName.length - 1];+ initials = firstName.charAt(0).toUpperCase();+ if (lastName) {+ initials += lastName.charAt(0).toUpperCase();+ }+ } else {+ return null;+ }++ const signOut = () => {+ Auth.signOut();+ clearAllURLParams();+ // props.closeAllVerticalPanels();+ props.onClose();+ };++ const { classes, theme } = props;++ return (+ <div+ style={{+ maxWidth: 400,+ height: '100%'+ }}+ >+ <Typography+ className={classNames(classes.panelTitle, classes.header)}+ variant="subtitle1"+ >+ User Profile+ </Typography>+ <Box>+ <ListItem>+ <ListItemIcon>+ <Avatar+ variant="rounded"+ style={{+ color: theme.palette.getContrastText(+ theme.palette.primary.light+ ),+ backgroundColor: theme.palette.primary.light+ }}+ >+ {initials}+ </Avatar>+ </ListItemIcon>+ <Typography style={{ color: theme.palette.text.primary }}>+ {email}+ </Typography>+ </ListItem>+ {SetupTOTPDialog && (+ <Box+ style={{+ width: '100%',+ textAlign: 'center'+ }}+ >+ {isSetupTOTPOpened && (+ <SetupTOTPDialog+ open={isSetupTOTPOpened}+ onClose={() => setSetupTOTPOpened(false)}+ user={props.user}+ confirmCallback={result => {+ if (result) {+ window.location.reload(); // TODO SOFTWARE_TOKEN_MFA is not refreshed in signed user without window.reload()+ }+ console.log('TOTP is:' + result);+ }}+ />+ )}+ {'SOFTWARE_TOKEN_MFA'.indexOf(props.user.preferredMFA) === -1 ? (+ <Tooltip title={i18n.t('core:setupTOTPHelp')}>+ <Button+ data-tid="setupTOTP"+ className={classes.mainActionButton}+ onClick={() => {+ setSetupTOTPOpened(true);+ }}+ size="small"+ variant="outlined"+ color="primary"+ style={{ width: '95%' }}+ >+ {i18n.t('core:setupTOTP')}+ </Button>+ </Tooltip>+ ) : (+ <>+ <Typography style={{ color: theme.palette.text.primary }}>+ {i18n.t('core:TOTPEnabled')}+ </Typography>+ <Button+ className={classes.mainActionButton}+ onClick={async () => {+ try {+ await Auth.setPreferredMFA(props.user, 'NOMFA');+ signOut();+ } catch (error) {+ console.error(error);+ }+ }}+ size="small"+ variant="outlined"+ color="primary"+ style={{ width: '95%' }}+ >+ {i18n.t('core:disableTOTP')}+ </Button>+ </>+ )}+ </Box>+ )}+ <Box+ style={{+ width: '100%',+ textAlign: 'center',+ marginBottom: 10+ }}+ >+ <Button+ data-tid="signOutTID"+ title={i18n.t('core:signOut')}+ className={classes.mainActionButton}+ onClick={signOut}+ size="small"+ variant="outlined"+ color="primary"+ style={{ width: '95%' }}+ >+ <ExitToAppIcon className={classNames(classes.leftIcon)} />+ {i18n.t('core:signOut')}+ </Button>+ </Box>+ </Box>+ </div>+ );+};++function mapStateToProps(state) {+ return {+ user: state.app.user+ };+}++/* function mapDispatchToProps(dispatch) {+ return bindActionCreators(+ {+ closeAllVerticalPanels: AppActions.closeAllVerticalPanels+ },+ dispatch+ );+} */++export default connect(mapStateToProps)(+ withStyles(styles, { withTheme: true })(UserDetailsPopover)+);diff --git a/app/components/dialogs/AddRemoveTagsDialog.tsx b/app/components/dialogs/AddRemoveTagsDialog.tsxindex f9cca028d..da1dfaa2b 100644--- a/app/components/dialogs/AddRemoveTagsDialog.tsx+++ b/app/components/dialogs/AddRemoveTagsDialog.tsx@@ -34,7 +34,7 @@ import Dialog from '@material-ui/core/Dialog';import TagsSelect from '../TagsSelect';import i18n from '-/services/i18n';import { extractFileName, extractDirectoryName } from '-/utils/paths';-import PlatformIO from '-/services/platform-io';+import PlatformIO from '-/services/platform-facade';import { TS } from '-/tagspaces.namespace';import DialogCloseButton from '-/components/dialogs/DialogCloseButton';diff --git a/app/components/dialogs/CreateDirectoryDialog.tsx b/app/components/dialogs/CreateDirectoryDialog.tsxindex be8f75182..7379e4eec 100644--- a/app/components/dialogs/CreateDirectoryDialog.tsx+++ b/app/components/dialogs/CreateDirectoryDialog.tsx@@ -31,7 +31,7 @@ import i18n from '-/services/i18n';import { actions as AppActions } from '-/reducers/app';import { joinPaths } from '-/utils/paths';import DialogCloseButton from '-/components/dialogs/DialogCloseButton';-import PlatformIO from '-/services/platform-io';+import PlatformIO from '-/services/platform-facade';interface Props {open: boolean;diff --git a/app/components/dialogs/CreateFileDialog.tsx b/app/components/dialogs/CreateFileDialog.tsxindex 4cee44f7f..2f41d9de9 100644--- a/app/components/dialogs/CreateFileDialog.tsx+++ b/app/components/dialogs/CreateFileDialog.tsx@@ -41,7 +41,7 @@ import { formatDateTime4Tag } from '-/utils/misc';import AppConfig from '-/config';import TaggingActions from '-/reducers/tagging-actions';import { actions as AppActions } from '-/reducers/app';-import PlatformIO from '-/services/platform-io';+import PlatformIO from '-/services/platform-facade';const styles = theme => ({root: {diff --git a/app/components/dialogs/FileUploadDialog.tsx b/app/components/dialogs/FileUploadDialog.tsxindex 1f7ab6f89..0d94ac2f2 100644--- a/app/components/dialogs/FileUploadDialog.tsx+++ b/app/components/dialogs/FileUploadDialog.tsx@@ -29,7 +29,7 @@ import Typography from '@material-ui/core/Typography';import Box from '@material-ui/core/Box';import { LinearProgress, Grid, Tooltip } from '@material-ui/core';import WarningIcon from '@material-ui/icons/Warning';-import PlatformIO from '-/services/platform-io';+import PlatformIO from '-/services/platform-facade';import { actions as AppActions, getProgress } from '-/reducers/app';import { extractFileName } from '-/utils/paths';import i18n from '-/services/i18n';diff --git a/app/components/dialogs/LicenseDialog.tsx b/app/components/dialogs/LicenseDialog.tsxindex 0d8abbe5a..186d86ef1 100644--- a/app/components/dialogs/LicenseDialog.tsx+++ b/app/components/dialogs/LicenseDialog.tsx@@ -27,7 +27,7 @@ import i18n from '-/services/i18n';import { Pro } from '-/pro';import AppConfig from '-/config';import LicenseContent from '-/LICENSE.txt';-import PlatformIO from '-/services/platform-io';+import PlatformIO from '-/services/platform-facade';import DialogCloseButton from '-/components/dialogs/DialogCloseButton';interface Props {diff --git a/app/components/dialogs/LocalForm.tsx b/app/components/dialogs/LocalForm.tsxindex 416b7c3cf..43c276657 100644--- a/app/components/dialogs/LocalForm.tsx+++ b/app/components/dialogs/LocalForm.tsx@@ -28,7 +28,7 @@ import FormHelperText from '@material-ui/core/FormHelperText';import Grid from '@material-ui/core/Grid';import i18n from '-/services/i18n';import { extractDirectoryName } from '-/utils/paths';-import PlatformIO from '-/services/platform-io';+import PlatformIO from '-/services/platform-facade';import AppConfig from '-/config';interface Props {diff --git a/app/components/dialogs/MoveCopyFilesDialog.tsx b/app/components/dialogs/MoveCopyFilesDialog.tsxindex f4916722a..57e9560d0 100644--- a/app/components/dialogs/MoveCopyFilesDialog.tsx+++ b/app/components/dialogs/MoveCopyFilesDialog.tsx@@ -37,7 +37,7 @@ import Typography from '@material-ui/core/Typography';import Dialog from '@material-ui/core/Dialog';import IconButton from '@material-ui/core/IconButton';import i18n from '-/services/i18n';-import PlatformIO from '-/services/platform-io';+import PlatformIO from '-/services/platform-facade';import AppConfig from '-/config';import IOActions from '-/reducers/io-actions';import { extractFileName } from '-/utils/paths';diff --git a/app/components/dialogs/RenameEntryDialog.tsx b/app/components/dialogs/RenameEntryDialog.tsxindex ad3c51883..7535ab89f 100644--- a/app/components/dialogs/RenameEntryDialog.tsx+++ b/app/components/dialogs/RenameEntryDialog.tsx@@ -34,7 +34,7 @@ import {extractFileName} from '-/utils/paths';import { actions as AppActions, getLastSelectedEntry } from '-/reducers/app';-import PlatformIO from '-/services/platform-io';+import PlatformIO from '-/services/platform-facade';import AppConfig from '-/config';import DialogCloseButton from '-/components/dialogs/DialogCloseButton';diff --git a/app/components/dialogs/settings/SettingsGeneral.tsx b/app/components/dialogs/settings/SettingsGeneral.tsxindex 41b51bd21..5bafabb89 100644--- a/app/components/dialogs/settings/SettingsGeneral.tsx+++ b/app/components/dialogs/settings/SettingsGeneral.tsx@@ -44,7 +44,7 @@ import ColorPickerDialog from '-/components/dialogs/ColorPickerDialog';import TransparentBackground from '-/components/TransparentBackground';import { BetaLabel } from '-/components/HelperComponents';import AppConfig from '-/config';-import PlatformIO from '-/services/platform-io';+import PlatformIO from '-/services/platform-facade';const styles: any = {root: {diff --git a/app/components/dialogs/settings/SettingsKeyBindings.tsx b/app/components/dialogs/settings/SettingsKeyBindings.tsxindex 874ee59a0..b2b33b509 100644--- a/app/components/dialogs/settings/SettingsKeyBindings.tsx+++ b/app/components/dialogs/settings/SettingsKeyBindings.tsx@@ -24,7 +24,7 @@ import TextField from '@material-ui/core/TextField';import Switch from '@material-ui/core/Switch';import ListItem from '@material-ui/core/ListItem';import ListItemText from '@material-ui/core/ListItemText';-import PlatformIO from '-/services/platform-io';+import PlatformIO from '-/services/platform-facade';import i18n from '-/services/i18n';import {actions as SettingsActions,diff --git a/app/components/menus/DirectoryMenu.tsx b/app/components/menus/DirectoryMenu.tsxindex 8dc37d00b..a1b7a8aef 100644--- a/app/components/menus/DirectoryMenu.tsx+++ b/app/components/menus/DirectoryMenu.tsx@@ -54,7 +54,7 @@ import {normalizePath,generateSharingLink} from '-/utils/paths';-import PlatformIO from '-/services/platform-io';+import PlatformIO from '-/services/platform-facade';import { formatDateTime4Tag } from '-/utils/misc';import {actions as AppActions,diff --git a/app/components/menus/FileMenu.tsx b/app/components/menus/FileMenu.tsxindex a92d1ff4c..cbdad20f0 100644--- a/app/components/menus/FileMenu.tsx+++ b/app/components/menus/FileMenu.tsx@@ -35,7 +35,7 @@ import RenameFile from '@material-ui/icons/FormatTextdirectionLToR';import DeleteForever from '@material-ui/icons/DeleteForever';import i18n from '-/services/i18n';import AppConfig from '-/config';-import PlatformIO from '-/services/platform-io';+import PlatformIO from '-/services/platform-facade';import {generateFileName,getAllPropertiesPromise,diff --git a/app/package-template.json b/app/package-template.jsonindex 617fd6974..7a6948b1e 100644--- a/app/package-template.json+++ b/app/package-template.json@@ -3,7 +3,7 @@"@tagspaces/extensions": "1.0.10"},"nodeDependencies": {- "@tagspaces/tagspaces-ws": "1.0.30",+ "@tagspaces/tagspaces-ws": "1.2.0","@tagspaces/extensions": "1.0.13","sharp": "^0.29.3"}diff --git a/app/package.json b/app/package.jsonindex cfabd8a09..912477684 100644--- a/app/package.json+++ b/app/package.json@@ -13,7 +13,7 @@"license": "AGPL-3.0","scripts": {},"dependencies": {- "@tagspaces/tagspaces-ws": "1.0.30",+ "@tagspaces/tagspaces-ws": "1.2.0","@tagspaces/extensions": "1.0.13","sharp": "^0.29.3"}diff --git a/app/perspectives/grid-perspective/components/CellContent.tsx b/app/perspectives/grid-perspective/components/CellContent.tsxindex 22ee530ba..a30ccfe0e 100644--- a/app/perspectives/grid-perspective/components/CellContent.tsx+++ b/app/perspectives/grid-perspective/components/CellContent.tsx@@ -38,7 +38,7 @@ import {import TagContainerDnd from '-/components/TagContainerDnd';import TagContainer from '-/components/TagContainer';import i18n from '-/services/i18n';-import PlatformIO from '-/services/platform-io';+import PlatformIO from '-/services/platform-facade';import AppConfig from '-/config';import EntryIcon from '-/components/EntryIcon';import { TS } from '-/tagspaces.namespace';diff --git a/app/perspectives/grid-perspective/components/MainContainer.tsx b/app/perspectives/grid-perspective/components/MainContainer.tsxindex 545ec281f..a6404c777 100644--- a/app/perspectives/grid-perspective/components/MainContainer.tsx+++ b/app/perspectives/grid-perspective/components/MainContainer.tsx@@ -60,7 +60,7 @@ import MainToolbar from './MainToolbar';import SortingMenu from './SortingMenu';import GridOptionsMenu from './GridOptionsMenu';import { getLocation, getLocations } from '-/reducers/locations';-import PlatformIO from '-/services/platform-io';+import PlatformIO from '-/services/platform-facade';import { getLocationPath } from '-/utils/paths';import GridPagination from '-/perspectives/grid-perspective/components/GridPagination';import GridSettingsDialog from '-/perspectives/grid-perspective/components/GridSettingsDialog';diff --git a/app/reducers/app.ts b/app/reducers/app.tsindex b1f40947c..2211072e3 100644--- a/app/reducers/app.ts+++ b/app/reducers/app.ts@@ -18,7 +18,7 @@import { v1 as uuidv1 } from 'uuid';import { getLocation, getDefaultLocationId } from './locations';-import PlatformIO from '../services/platform-io';+import PlatformIO from '../services/platform-facade';import AppConfig from '../config';import {deleteFilesPromise,@@ -218,7 +218,14 @@ export const initialState = {locationManagerPanelOpened: showLocations,tagLibraryPanelOpened: showTagLibrary,searchPanelOpened: showSearch,- helpFeedbackPanelOpened: false+ helpFeedbackPanelOpened: false,+ user: window.ExtDemoUser+ ? {+ attributes: window.ExtDemoUser,+ associateSoftwareToken: () => {},+ verifySoftwareToken: () => {}+ }+ : undefined};// The state described here will not be persisteddiff --git a/app/reducers/io-actions.ts b/app/reducers/io-actions.tsindex e5f85da39..a8a229f0f 100644--- a/app/reducers/io-actions.ts+++ b/app/reducers/io-actions.ts@@ -33,7 +33,7 @@ import {import i18n from '../services/i18n';import { Pro } from '../pro';import TaggingActions from './tagging-actions';-import PlatformIO from '-/services/platform-io';+import PlatformIO from '-/services/platform-facade';import AppConfig from '-/config';import { TS } from '-/tagspaces.namespace';diff --git a/app/reducers/location-index.ts b/app/reducers/location-index.tsindex dcee6798b..ad9dc841a 100644--- a/app/reducers/location-index.ts+++ b/app/reducers/location-index.ts@@ -29,7 +29,7 @@ import {import Search from '../services/search';import { actions as AppActions } from './app';import i18n from '../services/i18n';-import PlatformIO from '../services/platform-io';+import PlatformIO from '../services/platform-facade';import GlobalSearch from '../services/search-index';import AppConfig from '-/config';import { TS } from '-/tagspaces.namespace';diff --git a/app/reducers/locations.ts b/app/reducers/locations.tsindex de7009156..b4b606538 100644--- a/app/reducers/locations.ts+++ b/app/reducers/locations.ts@@ -20,7 +20,7 @@ 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 PlatformIO from '-/services/platform-facade';import { TS } from '-/tagspaces.namespace';export const types = {diff --git a/app/reducers/settings.ts b/app/reducers/settings.tsindex d8c6737c3..8fe50faeb 100644--- a/app/reducers/settings.ts+++ b/app/reducers/settings.ts@@ -20,7 +20,7 @@ import semver from 'semver';import { v1 as uuidv1 } from 'uuid';import i18n from '-/services/i18n';import defaultSettings from './settings-default';-import PlatformIO from '-/services/platform-io';+import PlatformIO from '-/services/platform-facade';import AppConfig from '-/config';import Links from '-/links';import versionMeta from '-/version.json';diff --git a/app/reducers/tagging-actions.ts b/app/reducers/tagging-actions.tsindex fa2367667..0081d5c85 100644--- a/app/reducers/tagging-actions.ts+++ b/app/reducers/tagging-actions.ts@@ -36,7 +36,7 @@ import {generateFileName} from '-/services/utils-io';import { formatDateTime4Tag, isGeoTag } from '-/utils/misc';-import PlatformIO from '../services/platform-io';+import PlatformIO from '../services/platform-facade';import { Pro } from '../pro';import GlobalSearch from '../services/search-index';import { getPersistTagsInSidecarFile } from './settings';diff --git a/app/services/cordova-io.ts b/app/services/cordova-io.tsdeleted file mode 100644index cad254544..000000000--- a/app/services/cordova-io.ts+++ /dev/null@@ -1,1432 +0,0 @@-/**- * TagSpaces - universal file and folder organizer- * Copyright (C) 2017-present TagSpaces UG (haftungsbeschraenkt)- *- * This program is free software: you can redistribute it and/or modify- * it under the terms of the GNU Affero General Public License (version 3) as- * published by the Free Software Foundation.- *- * This program is distributed in the hope that it will be useful,- * but WITHOUT ANY WARRANTY; without even the implied warranty of- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the- * GNU Affero General Public License for more details.- *- * You should have received a copy of the GNU Affero General Public License- * along with this program. If not, see <https://www.gnu.org/licenses/>.- *- */--/* globals cordova */-import AppConfig from '../config';-import { b64toBlob } from '-/utils/misc';-import {- extractParentDirectoryPath,- cleanTrailingDirSeparator,- extractFileName,- extractFileExtension,- getMetaFileLocationForDir,- getThumbFileLocationForDirectory-} from '-/utils/paths';-import { TS } from '-/tagspaces.namespace';--const appSettingFile = 'settings.json';-const appSettingTagsFile = 'settingsTags.json';-// let anotatedTree;-// let pendingCallbacks = 0;--declare let cordova;-declare let navigator;-export default class CordovaIO {- constructor() {- // Redefining the back button- document.addEventListener('backbutton', this.onDeviceBackButton, false);- document.addEventListener('deviceready', this.onDeviceReady, false);- document.addEventListener('resume', this.onDeviceResume, false);- document.addEventListener('initApp', this.onApplicationLoad, false);- }-- fsRoot;- urlFromIntent;- // widgetAction;- loadedSettings: any;- loadedSettingsTags: any;-- cordovaFileError = {- 1: 'NOT_FOUND_ERR',- 2: 'SECURITY_ERR',- 3: 'ABORT_ERR',- 4: 'NOT_READABLE_ERR',- 5: 'ENCODING_ERR',- 6: 'NO_MODIFICATION_ALLOWED_ERR',- 7: 'INVALID_STATE_ERR',- 8: 'SYNTAX_ERR',- 9: 'INVALID_MODIFICATION_ERR',- 10: 'QUOTA_EXCEEDED_ERR',- 11: 'TYPE_MISMATCH_ERR',- 12: 'PATH_EXISTS_ERR'- };-- onDeviceReady = () => {- console.log(- 'Device Ready: ' + window.device.platform + ' - ' + window.device.version- );-- // attachFastClick(document.body);- this.getFileSystem();-- // enabling the cordova-plugin-background-mode- if (window.plugins.backgroundMode) {- window.plugins.backgroundMode.enable();- }-- // iOS specific initialization- if (AppConfig.isCordovaiOS) {- window.plugins = window.plugins || {};- // TODO: use fileOpener2 plugin on all platforms- // https://build.phonegap.com/plugins/1117- window.plugins.fileOpener = cordova.plugins.fileOpener2;- }-- window.plugins.intentShim.onIntent(function(intent) {- /**- * intent:- action: "android.intent.action.VIEW"- component: "ComponentInfo{org.tagspaces.mobile/org.tagspaces.mobileapp.MainActivity}"- data: "file:///storage/emulated/0/Download/%D0%B4%D0%B5%D0%BA%D0%BB%D0%B0%D1%80%D0%B0%D1%86%D0%B8%D1%8F%20%D0%B7%D0%B0%20%D1%86%D0%BB%D1%80.pdf"- flags: 306184195- type: "application/pdf"- */- console.debug('Received Intent: ' + JSON.stringify(intent));- const protocol = window.location.protocol,- host = '//' + window.location.host,- path = window.location.pathname;- // query = window.location.search;-- const newUrl =- protocol +- host +- path +- // query +- // (query ? '&' : '?') +- '?cmdopen=' +- intent.data.replace('file:///storage/emulated/0', 'file:///sdcard');- // encodeURIComponent(intent.data);-- // window.history.pushState({ path: newUrl }, '', newUrl);- // TODO use event- window.location.replace(newUrl);- });-- /* if (window.plugins.webintent) {- window.plugins.webintent.getUri(- url => {- if (url) {- if (url === 'createTXTFile' || url.indexOf('TagSpaces') > 0) {- this.widgetAction = url;- } else {- this.urlFromIntent = url;- }- }- }- );- window.plugins.webintent.onNewIntent(url => {- this.widgetAction = url;- this.widgetActionHandler();- });- } */-- if (AppConfig.isCordovaiOS) {- setTimeout(() => {- navigator.splashscreen.hide();- }, 1000);-- // Enable TestFairy if available- /* if (PRODUCTION != 'true' && TestFairy) {- TestFairy.begin('ef5d3fd8bfa17164b8068e71ccb32e1beea25f2f');- } */- }- };-- onDeviceBackButton = e => {- e.preventDefault();- // send event to main app- };-- isWorkerAvailable = (): boolean => false;-- // Register ios file open handler- handleOpenURL = (url: string) => {- // const fileName = url.substring(url.lastIndexOf('/') + 1, url.length);- /* showConfirmDialog('File copied', 'File ' + fileName + ' is copied in inbox folder. Would you like to open it ?', () => {- FileOpener.openFile(url);- }); */- };-- // Platform specific functions-- normalizePath = (path: string) => {- // we set absolute path because some extensions didn't recognize cdvfile- // but in cordova.api implementation we didn't need absolute path so we strip nativeURL- if (path.indexOf(this.fsRoot.nativeURL) === 0) {- path = path.replace(this.fsRoot.nativeURL, '/');- }- if (path.indexOf(this.fsRoot.fullPath) === 0) {- path = path.substring(this.fsRoot.fullPath.length, path.length);- }- return path;- };-- onDeviceResume = () => {- // TODO: reload curtent dir after background operation- };-- // widgetActionHandler = () => {- /* if (currentPath === null) {- showAlertDialog('Please set location folder to use widget');- return;- }-- if (widgetAction === 'createTXTFile') {- createTXTFile();- } else {- const fileName = widgetAction.substring(widgetAction.lastIndexOf('/'), widgetAction.length);- const newFileName = currentPath + fileName;- const newFileFullPath = this.fsRoot.nativeURL + '/' + newFileName;- this.renameFile(widgetAction, newFileName);- FileOpener.openFile(newFileFullPath);- }-- widgetAction = undefined; */- // };-- onApplicationLoad = () => {- /* if (this.widgetAction) {- this.widgetActionHandler();- } */- };-- getDirSystemPromise = (dirPath: string): Promise<any> => {- console.log('getDirSystemPromise: ' + dirPath);- if (- dirPath &&- (dirPath.indexOf(cordova.file.applicationDirectory) === 0 ||- dirPath.startsWith('file:///'))- ) {- } else if (AppConfig.isCordovaiOS) {- dirPath = (cordova.file.documentsDirectory + '/' + dirPath).replace(- ':/',- ':///'- );- /*localPath = AppConfig.isCordovaiOS- ? path- .join(cordova.file.documentsDirectory, localPath)- .replace(':/', ':///')- : 'file:///' + localPath;*/- } else {- dirPath = (dirPath.startsWith('/') ? 'file://' : 'file:///') + dirPath;- }- dirPath = encodeURI(dirPath) + (dirPath.endsWith('/') ? '' : '/');- return new Promise((resolve, reject) => {- window.resolveLocalFileSystemURL(dirPath, resolve, error => {- console.error(- 'Error getting FileSystem ' +- dirPath +- ': ' +- this.cordovaFileError[error.code]- ); //JSON.stringify(error));- resolve(false); // reject(error);- });- });- };-- resolveFullPath = (localURL: string) => {- // Cordova file plugin didn't set fullpath so we set fullpath as absolute- // this solve problem with extensions which can't use the cdvfile- let URL = 'cdvfile://localhost/persistent/';- let fullPath = decodeURIComponent(localURL);- if (fullPath.indexOf('cdvfile://localhost/root/') === 0) {- URL = 'cdvfile://localhost/root/';- }-- fullPath =- this.fsRoot.nativeURL + fullPath.substring(URL.length, fullPath.length);- return fullPath;- };-- getAppStorageFileSystem = (fileName: string, fileCallback, fail) => {- const dataFolderPath = AppConfig.isCordovaiOS- ? cordova.file.dataDirectory- : cordova.file.externalApplicationStorageDirectory;-- window.resolveLocalFileSystemURL(- dataFolderPath,- (fs: any) => {- fs.getFile(fileName, { create: true }, fileCallback, fail);- },- error => {- console.error('Error getSettingsFileSystem: ' + JSON.stringify(error));- }- );- };-- getFileSystem = () => {- // on android cordova.file.externalRootDirectory points to sdcard0- const fsURL = AppConfig.isCordovaiOS- ? cordova.file.documentsDirectory- : 'file:///';- window.resolveLocalFileSystemURL(- fsURL,- fileSystem => {- this.fsRoot = fileSystem;- // console.log("Filesystem Details: " + JSON.stringify(this.fsRoot));- this.handleStartParameters();-- this.loadSettingsFile(appSettingFile, settings => {- this.loadedSettings = settings;- this.loadSettingsFile(appSettingTagsFile, settingsTags => {- this.loadedSettingsTags = settingsTags;- });- });- },- err => {- console.error(- 'Error resolving local file system url: ' + JSON.stringify(err)- );- }- );- };-- /**- * Creates recursively a tree structure for a given directory path- */- /* function generateDirectoryTree(entries) {- var tree = {};- var i;- for (i = 0; i < entries.length; i++) {- if (entries[i].isFile) {- console.log("File: " + entries[i].name);- tree.children.push({- "name": entries[i].name,- "isFile": entries[i].isFile,- "size": "", // TODO size and lmtd- "lmdt": "", //- "path": entries[i].fullPath- });- } else {- var directoryReader = entries[i].createReader();- pendingCallbacks++;- directoryReader.readEntries(- generateDirectoryTree,- function(error) {- console.error("Error reading dir entries: " + error.code);- }); // jshint ignore:line- }- }- pendingCallbacks--;- console.log("Pending recursions: " + pendingCallbacks);- if (pendingCallbacks <= 0) {- // .createDirectoryTree(anotatedTree);- }- } */-- saveSettingsFile = (fileName: string, data: string) => {- this.getAppStorageFileSystem(- fileName,- fileEntry => {- fileEntry.createWriter(- writer => {- writer.write(data);- },- error => {- console.error('Error creating writter: ' + JSON.stringify(error));- }- );- },- error => {- console.error(- 'Error getting app storage file system: ' + JSON.stringify(error)- );- }- );- };-- loadSettingsFile = (fileName: string, ready: (content: any) => void) => {- this.getAppStorageFileSystem(- fileName,- fileEntry => {- fileEntry.file(- file => {- const reader = new FileReader();- reader.onloadend = (evt: any) => {- let content = null;- if (evt.target.result.length > 0) {- content = evt.target.result;- }- ready(content);- };- reader.readAsText(file);- },- error => {- console.error('Error reading file: ' + JSON.stringify(error));- }- );- },- error => {- console.log(- 'Error getting app storage file system: ' + JSON.stringify(error)- );- }- );- };-- // Platform specific API calls-- saveSettings = settings => {- this.saveSettingsFile(appSettingFile, settings);- };-- loadSettings = () => this.loadedSettings;-- // saveSettingsTags = (tagGroups: Object) => {- // // TODO use js objects- // const jsonFormat =- // '{ "appName": "' +- // Config.DefaultSettings.appName +- // '", "appVersion": "' +- // Config.DefaultSettings.appVersion +- // '", "appBuild": "' +- // Config.DefaultSettings.appBuild +- // '", "settingsVersion": ' +- // Config.DefaultSettings.settingsVersion +- // ', "tagGroups": ' +- // tagGroups +- // ' }';- // this.saveSettingsFile(appSettingTagsFile, jsonFormat);- // };-- loadSettingsTags = () => this.loadedSettingsTags;-- sendFile = (filePath: string) => {- console.log('Sending file: ' + filePath);- if (filePath.indexOf('file://') === 0) {- window.plugins.fileOpener.send(filePath);- } else {- window.plugins.fileOpener.send('file://' + filePath);- }- };-- // Platform API-- getDevicePaths = (): Promise<Object> => {- let paths;- if (AppConfig.isCordovaiOS) {- paths = {- Documents: '/',- iCloud: cordova.file.syncedDataDirectory- };- } else {- paths = {- Photos: 'sdcard/DCIM/',- Pictures: 'sdcard/Pictures/',- Download: 'sdcard/Download/',- Music: 'sdcard/Music/',- Movies: 'sdcard/Movies/',- SDCard: 'sdcard/' // cordova.file.externalRootDirectory- };- }- return Promise.resolve(paths);- };-- /* getUserHomePath = (): string => '/';-- getAppDataPath = () => {- // const appDataPath = ipcRenderer.sendSync('app-data-path-request', 'notNeededArgument');- // return appDataPath;- }; */-- handleStartParameters = () => {- if (this.urlFromIntent !== undefined && this.urlFromIntent.length > 0) {- console.log('Intent URL: ' + this.urlFromIntent);- // const filePath = decodeURIComponent(this.urlFromIntent);- // TODO FileOpener.openFileOnStartup(filePath);- }- };-- quitApp = (): void => {- navigator.app.exitApp();- };-- /**- * Creates recursively a tree structure for a given directory path- */- createDirectoryTree = (dirPath: string) => {- console.warn('Creating directory tree is not supported in Cordova yet.');- };-- listMetaDirectoryPromise = async (path: string): Promise<Array<any>> => {- const promise: Promise<Array<any>> = new Promise(resolve => {- const entries = [];- const metaDirPath =- cleanTrailingDirSeparator(path) +- AppConfig.dirSeparator +- AppConfig.metaFolder +- AppConfig.dirSeparator;-- this.getDirSystemPromise(metaDirPath)- .then(fileSystem => {- const reader = fileSystem.createReader();- reader.readEntries(entr => {- entr.forEach(entry => {- const entryPath = entry.fullPath;- if (entryPath.toLowerCase() === metaDirPath.toLowerCase()) {- console.log('Skipping current folder');- } else {- const ee: any = {};- ee.name = entry.name;- ee.path = decodeURI(entryPath);- ee.isFile = true;- entries.push(ee);- }- });- resolve(entries);- });- return true;- })- .catch(err => {- console.error('Error getting listMetaDirectoryPromise:', err);- resolve(entries); // returning results even if any promise fails- });- });- const result = await promise; // this.listDirectoryPromise(normalizePath(path) + AppConfig.dirSeparator + AppConfig.metaFolder + AppConfig.dirSeparator, true);- return result;- };-- /**- * Creates a list with containing the files and the sub directories of a given directory- */- listDirectoryPromise = (- path: string,- mode = ['extractThumbPath']- ): Promise<any> =>- new Promise(async (resolve, reject) => {- console.time('listDirectoryPromise');- const metaContent = mode.includes('extractThumbPath')- ? await this.listMetaDirectoryPromise(path)- : [];-- const enhancedEntries = [];- const metaPromises = [];- this.getDirSystemPromise(path)- .then(- fileSystem => {- const reader = fileSystem.createReader();- reader.readEntries(- entries => {- entries.forEach(entry => {- const eentry: any = {};- eentry.name = entry.name;- eentry.path = entry.fullPath;- eentry.tags = [];- eentry.thumbPath = entry.isFile- ? ''- : getThumbFileLocationForDirectory(- eentry.path,- AppConfig.dirSeparator- );- // eentry.meta = {};- eentry.isFile = entry.isFile;- if (entry.isFile) {- entry.file(fileEntry => {- eentry.size = fileEntry.size;- eentry.lmdt = fileEntry.lastModifiedDate;- });- }-- if (mode.includes('extractThumbPath')) {- if (entry.isDirectory) {- // Read tsm.json from subfolders- if (- !eentry.path.includes(- AppConfig.dirSeparator + AppConfig.metaFolder- )- ) {- const folderMetaPath = getMetaFileLocationForDir(- eentry.path,- AppConfig.dirSeparator- );- metaPromises.push(- this.getEntryMeta(eentry, folderMetaPath)- );- }- } else {- const metaFileAvailable: any = metaContent.find(- (obj: any) =>- obj.name === entry.name + AppConfig.metaFileExt- );- if (metaFileAvailable && metaFileAvailable.path) {- metaPromises.push(- this.getEntryMeta(eentry, metaFileAvailable.path)- );- }-- // Finding if thumbnail available- const metaThumbAvailable: any = metaContent.find(- (obj: any) =>- obj.name === entry.name + AppConfig.thumbFileExt- );- if (metaThumbAvailable && metaThumbAvailable.path) {- eentry.thumbPath = metaThumbAvailable.path;- }- }- }-- enhancedEntries.push(eentry);-- /* if (entry.isDirectory) {- anotatedDirList.push({- name: entry.name,- path: entry.fullPath,- isFile: false,- size: '',- lmdt: ''- });- } else if (entry.isFile) {- if (lite) {- anotatedDirList.push({- name: entry.name,- path: entry.fullPath,- isFile: true,- size: '',- lmdt: ''- });- } else {- const filePromise = Promise.resolve({- then: (onFulfill, onReject) => {- entry.file(- fileEntry => {- if (!fileEntry.fullPath) {- fileEntry.fullPath = this.resolveFullPath(- fileEntry.localURL- );- }- anotatedDirList.push();- onFulfill({- name: fileEntry.name,- isFile: true,- size: fileEntry.size,- lmdt: fileEntry.lastModifiedDate,- path: fileEntry.fullPath- });- },- err => {- onReject('Error reading entry ' + path);- }- );- }- }); // jshint ignore:line- fileWorkers.push(filePromise);- }- } */- });-- Promise.all(metaPromises)- .then(() => {- resolve(enhancedEntries);- return true;- })- .catch(() => {- resolve(enhancedEntries);- });- /* Promise.all(fileWorkers).then(- entries => {- entries.forEach(entry => {- anotatedDirList.push(entry);- });- console.timeEnd('listDirectoryPromise');- resolve(anotatedDirList);- },- err => {- console.warn(- 'At least one file worker failed for ' +- path +- 'err ' +- JSON.stringify(err)- );- console.timeEnd('listDirectoryPromise');- resolve(anotatedDirList); // returning results even if any promise fails- }- ); */- },- err => {- console.warn(- 'Error reading entries promise from ' +- path +- 'err ' +- JSON.stringify(err)- );- resolve(enhancedEntries); // returning results even if any promise fails- }- );- return true;- },- () => {- console.warn('Error getting file system promise');- resolve(enhancedEntries); // returning results even if any promise fails- }- )- .catch(err => {- console.error('Error getting listDirectoryPromise:', err);- resolve(enhancedEntries); // returning results even if any promise fails- });- });-- getEntryMeta = (- eentry: TS.FileSystemEntry,- metaPath: string- ): Promise<any> => {- if (eentry.isFile) {- // const metaFilePath = getMetaFileLocationForFile(eentry.path);- return this.loadTextFilePromise(metaPath).then(result => {- // eslint-disable-next-line no-param-reassign- eentry.meta = JSON.parse(result.trim());- return eentry;- });- }- // const folderMetaPath = normalizePath(eentry.path) + AppConfig.dirSeparator + AppConfig.metaFolderFile; // getMetaFileLocationForDir(eentry.path);- if (!eentry.path.endsWith(AppConfig.metaFolder + '/')) {- // Skip the /.ts folder- return this.loadTextFilePromise(metaPath).then(result => {- // eslint-disable-next-line no-param-reassign- eentry.meta = JSON.parse(result.trim());- return eentry;- });- }-- return new Promise(resolve => {- resolve(eentry);- });- };-- /**- * Finds out the properties of a file or directory such last modification date or file size- */- getPropertiesPromise = (path: string): Promise<any> =>- new Promise((resolve, reject) => {- const entryPath = this.normalizePath(path);- // getFileSystemPromise(dir).then(function(fileSystem) {- const fileProperties: any = {};- this.fsRoot.getFile(- entryPath,- {- create: false,- exclusive: false- },- entry => {- if (entry.isFile) {- entry.file(- file => {- fileProperties.path = entry.fullPath;- fileProperties.size = file.size;- fileProperties.lmdt = file.lastModifiedDate;- fileProperties.mimetype = file.type;- fileProperties.isFile = entry.isFile;- fileProperties.name = file.name;- resolve(fileProperties);- },- () => {- console.log(- 'getPropertiesPromise: Error retrieving file properties of ' +- entryPath- );- resolve(false);- }- );- } else {- console.log(- 'getPropertiesPromise: Error getting file properties. ' +- entryPath +- ' is directory'- );- resolve(false);- }- },- err => {- this.getDirSystemPromise(entryPath).then(dirEntry => {- if (!dirEntry) {- resolve(false);- return false;- }- console.log(- "getPropertiesPromise: It's not file " + entryPath,- err- );- resolve({- path: dirEntry.fullPath,- isFile: dirEntry.isFile,- name: dirEntry.name- });- });- }- );- });-- /**- * Load the content of a text file- */- loadTextFilePromise = (- filePath: string,- isPreview: boolean = false- ): Promise<any> => this.getFileContentPromise(filePath, 'text', isPreview);-- /**- * Gets the content of file, useful for binary files- */- getFileContentPromise = (- filePath: string,- type: string,- isPreview: boolean- // resolvePath?: string- ): Promise<any> => {- // TODO refactor- const getFilePromise = (- filePath: string,- resolvePath: string- ): Promise<any> => {- const getFile = (fullPath, result, fail) => {- const filePath = this.normalizePath(fullPath);-- this.fsRoot.getFile(- filePath,- { create: false },- fileEntry => {- fileEntry.file(file => {- result(file);- }, fail);- },- fail- );- };-- return new Promise((resolve, reject) => {- if (resolvePath) {- this.getDirSystemPromise(resolvePath)- .then(resfs => {- resfs.getFile(- filePath,- { create: false },- fileEntry => {- fileEntry.file(resolve, reject);- },- reject- );- })- .catch(reject);- } else {- getFile(filePath, resolve, reject);- }- });- };-- if (isPreview) {- return new Promise(resolve =>- resolve('Previewing files is not supported on this platform')- );- }-- return new Promise((resolve, reject) => {- getFilePromise(filePath, undefined).then(file => {- const reader = new FileReader();- reader.onerror = function() {- reject(reader.error);- };- reader.onload = function() {- resolve(reader.result);- };- if (type === 'text') {- reader.readAsText(file);- } else {- reader.readAsArrayBuffer(file);- }- }, reject);- });- };-- /**- * Persists a given content(binary supported) to a specified filepath- */- saveFilePromise = (- filePath: string,- content,- overWrite: boolean,- isRaw?: boolean- ): Promise<TS.FileSystemEntry> => {- // eslint-disable-next-line no-param-reassign- filePath = this.normalizePath(filePath);- console.log('Saving file: ' + filePath);- return new Promise((resolve, reject) => {- let isNewFile = true;- // Checks if the file already exists- this.fsRoot.getFile(- filePath,- {- create: false,- exclusive: false- },- entry => {- if (entry.isFile) {- isNewFile = false;- }- },- () => {}- );- if (isNewFile || overWrite) {- this.fsRoot.getFile(- filePath,- {- create: true,- exclusive: false- },- entry => {- entry.createWriter(- writer => {- writer.onwriteend = function(evt) {- // resolve(this.fsRoot.fullPath + "/" + filePath);- resolve({- name: extractFileName(filePath, AppConfig.dirSeparator),- isFile: true,- path: filePath,- extension: extractFileExtension(- filePath,- AppConfig.dirSeparator- ),- size: 0, // TODO debug evt and set size- lmdt: new Date().getTime(),- isNewFile,- tags: []- });- };- if (isRaw) {- writer.write(content);- } else if (- typeof content === 'string' &&- content.indexOf(';base64,') > 0- ) {- const contentArray = content.split(';base64,');- const type =- contentArray.length > 1- ? contentArray[0].split(':')[1]- : '';- const newContent =- contentArray.length > 1 ? contentArray[1] : contentArray[0];- const data = b64toBlob(newContent, type, 512);- writer.write(data);- } else {- writer.write(content);- }- },- err => {- reject('Error creating file: ' + filePath + ' ' + err);- }- );- },- error => {- reject('Error getting file entry: ' + filePath + ' ' + error);- }- );- } else {- const errMsg = 'File already exists: ' + filePath; // i18n.t('ns.common:fileExists', { fileName: filePath });- // showAlertDialog(errMsg);- reject(errMsg);- }- });- };-- /**- * Persists a given text content to a specified filepath- */- saveTextFilePromise = (- filePath: string,- content: string,- overWrite: boolean- ): Promise<any> => {- console.log('Saving TEXT file: ' + filePath);- // Handling the UTF8 support for text files- /* var UTF8_BOM = "\ufeff";- if (content.indexOf(UTF8_BOM) === 0) {- console.log("Content beging with a UTF8 bom");- } else {- content = UTF8_BOM + content;- } */- return this.saveFilePromise(filePath, content, overWrite, true);- };-- /**- * Persists a given binary content to a specified filepath- */- saveBinaryFilePromise = (- filePath: string,- content: any,- overWrite: boolean- ): Promise<TS.FileSystemEntry> => {- console.log('Saving binary file: ' + filePath);- // var dataView = new Int8Array(content);- const dataView = content;- return this.saveFilePromise(filePath, dataView, overWrite);- };-- /**- * Creates a directory- */- createDirectoryPromise = (dirPath: string): Promise<any> => {- console.log('Creating directory: ' + dirPath);- return new Promise((resolve, reject) => {- this.checkDirExist(dirPath).then(exist => {- if (exist) {- reject('error createDirectory: ' + dirPath + ' exist!');- return;- }- dirPath = this.normalizePath(dirPath);- this.fsRoot.getDirectory(- dirPath,- {- create: true,- exclusive: false- },- dirEntry => {- resolve(dirPath);- },- error => {- reject(- 'Creating directory failed: ' +- dirPath +- ' failed with error code: ' +- error.code- );- }- );- });- });- };-- /**- * Copies a given file to a specified location- */- copyFilePromise = (- filePath: string,- newFilePath: string,- override: boolean = true- ): Promise<any> =>- new Promise(async (resolve, reject) => {- if (!override) {- const exist = await this.checkFileExist(newFilePath);- if (exist) {- reject('error copyFile: ' + newFilePath + ' exist!');- return;- }- }- // eslint-disable-next-line no-param-reassign- filePath = this.normalizePath(filePath);- const newFileName = newFilePath.substring(- newFilePath.lastIndexOf('/') + 1- );- const newFileParentPath = this.normalizePath(- newFilePath.substring(0, newFilePath.lastIndexOf('/'))- );- this.fsRoot.getDirectory(- newFileParentPath,- {- create: false,- exclusive: false- },- parentDirEntry => {- this.fsRoot.getFile(- filePath,- {- create: false,- exclusive: false- },- entry => {- entry.copyTo(- parentDirEntry,- newFileName,- () => {- console.log(- 'File copy: target: ' +- newFilePath +- ' source: ' +- entry.fullPath- );- resolve(newFilePath);- },- () => {- reject('error copying: ' + filePath);- }- );- },- () => {- reject('Error getting file: ' + filePath);- }- );- },- error => {- reject(- 'Getting dir: ' +- newFileParentPath +- ' failed with error code: ' +- error.code- );- }- );- });-- /**- * Renames a given file- */- renameFilePromise = (filePath: string, newFilePath: string): Promise<any> =>- new Promise((resolve, reject) => {- this.checkFileExist(newFilePath).then(exist => {- if (exist) {- reject('error renaming: ' + newFilePath + ' exist!');- return;- }- // eslint-disable-next-line no-param-reassign- filePath = this.normalizePath(filePath);- const newFileName = newFilePath.substring(- newFilePath.lastIndexOf('/') + 1- );- const newFileParentPath = this.normalizePath(- newFilePath.substring(0, newFilePath.lastIndexOf('/') + 1)- );- console.log(- 'renameFile: ' + newFileName + ' newFilePath: ' + newFilePath- );- this.fsRoot.getDirectory(- newFileParentPath,- {- create: false,- exclusive: false- },- parentDirEntry => {- this.fsRoot.getFile(- filePath,- {- create: false,- exclusive: false- },- entry => {- entry.moveTo(- parentDirEntry,- newFileName,- () => {- console.log(- 'File renamed to: ' +- newFilePath +- ' Old name: ' +- entry.fullPath- );- resolve([filePath, newFilePath]);- },- err => {- reject('error renaming: ' + filePath + ' ' + err);- }- );- },- error => {- reject('Error getting file: ' + filePath + ' ' + error);- }- );- },- error => {- console.error(- 'Getting dir: ' +- newFileParentPath +- ' failed with error code: ' +- error.code- );- reject(error);- }- );- });- });-- checkFileExist = filePath =>- new Promise(resolve => {- this.fsRoot.getFile(- filePath,- {- create: false,- exclusive: false- },- () => {- resolve(true);- },- () => {- resolve(false);- }- );- });-- checkDirExist = dirPath =>- new Promise(resolve => {- window.resolveLocalFileSystemURL(- (dirPath.startsWith('/') ? 'file://' : 'file:///') +- dirPath +- (dirPath.endsWith('/') ? '' : '/'),- () => {- resolve(true);- },- () => {- resolve(false);- }- );- });-- /**- * Rename a directory- */- renameDirectoryPromise = (- dirPath: string,- newDirName: string- ): Promise<any> =>- new Promise((resolve, reject) => {- let newDirPath =- extractParentDirectoryPath(dirPath, '/') +- AppConfig.dirSeparator +- newDirName;- // eslint-disable-next-line no-param-reassign- dirPath = this.normalizePath(dirPath);- const newDirParentPath = this.normalizePath(- newDirPath.substring(0, newDirPath.lastIndexOf('/'))- );- newDirPath = this.normalizePath(newDirPath);-- this.checkDirExist(newDirPath).then(exist => {- if (exist) {- reject('error renaming: ' + newDirName + ' exist!');- return;- }-- console.log(- 'renameDirectoryPromise: ' + dirPath + ' to: ' + newDirPath- );- this.fsRoot.getDirectory(- newDirParentPath,- {- create: false,- exclusive: false- },- parentDirEntry => {- this.fsRoot.getDirectory(- dirPath,- {- create: false,- exclusive: false- },- entry => {- entry.moveTo(- parentDirEntry,- newDirName,- () => {- console.log(- 'Directory renamed to: ' +- newDirPath +- ' from: ' +- entry.fullPath- );- resolve('/' + newDirPath);- },- err => {- reject('error renaming directory: ' + dirPath + ' ' + err);- }- );- },- error => {- reject('Error getting directory: ' + dirPath + ' ' + error);- }- );- },- error => {- console.error(- 'Getting dir: ' +- newDirParentPath +- ' failed with error code: ' +- error.code- );- reject(error);- }- );- });- });-- /**- * Delete a specified file- */- deleteFilePromise = (filePath: string): Promise<any> =>- new Promise((resolve, reject) => {- const path = this.normalizePath(filePath);- this.fsRoot.getFile(- path,- {- create: false,- exclusive: false- },- entry => {- entry.remove(- () => {- console.log('file deleted: ' + path);- resolve(filePath);- },- err => {- reject('error deleting: ' + filePath + ' ' + err);- }- );- },- error => {- reject('error getting file' + path + ' ' + error);- }- );- });-- /**- * Delete a specified directory, the directory should be empty, if the trash can functionality is not enabled- */- deleteDirectoryPromise = (dirPath: string): Promise<any> => {- console.log('Deleting directory: ' + dirPath);- return new Promise((resolve, reject) => {- const path = this.normalizePath(dirPath);-- this.fsRoot.getDirectory(- path,- {- create: false,- exclusive: false- },- entry => {- entry.remove(- () => {- console.log('file deleted: ' + path);- resolve(dirPath);- },- err => {- reject('error deleting dir: ' + dirPath + ' ' + err);- }- );- },- error => {- reject('error getting directory ' + dirPath + ' ' + error);- }- );- });- };-- /**- * Selects a directory with the help of a directory chooser- */- selectDirectory = () => {- console.log('Open select directory dialog.');- // showDirectoryBrowserDialog(this.fsRoot.fullPath);- };-- /**- * Selects a file with the help of a file chooser- */- selectFile = () => {- console.log('Operation selectFile not supported.');- };-- selectDirectoryDialog = (): Promise<any> => {- if (AppConfig.isCordovaiOS) {- console.log('Operation selectDirectoryDialog not supported.');- } else {- return new Promise((resolve, reject) => {- // @ts-ignore- window.OurCodeWorld.Filebrowser.folderPicker.single({- success: function(data) {- if (!data.length) {- reject('No folders selected');- return;- }-- // Array with paths- // ["file:///storage/emulated/0/360/security", "file:///storage/emulated/0/360/security"]- // fix https://trello.com/c/vV7D0kGf/500-tsn500-fix-folder-selector-in-create-edit-location-on-android-or-use-native-dialog- data[0] = data[0].replace(- 'file:///storage/emulated/0', // 'content://org.tagspaces.mobileapp.provider/root/storage/emulated/0', 'file:///storage/emulated/0',- 'sdcard'- );- resolve(data);- },- error: function(err) {- reject('Folders selection err:' + err);- }- });- });- }- };-- /**- * Opens a directory in the operating system's default file manager- */- openDirectory = (dirPath: string) => {- console.warn('function openDirectory not supported on cordova');- };-- /**- * Opens a directory in the operating system's default file manager, selecting the file- */- showInFileManager = (filePath: string) => {- console.warn('Showing item ' + filePath + ' not supported on cordova');- };-- /**- * Opens a file with the operating system's default program for the type of the file- */- openFile = (filePath: string) => {- console.log('Opening natively: ' + filePath);- if (- filePath.indexOf('http://') === 0 ||- filePath.indexOf('https://') === 0- ) {- window.open(filePath, '_system');- } else if (filePath.indexOf('file://') === 0) {- cordova.plugins.fileOpener2.open(filePath);- } else {- cordova.plugins.fileOpener2.open('file://' + filePath);- }- };-- openUrl = (url: string): void => {- window.open(url, '_system');- };-- /**- * Places the application window on top of the other windows- */- focusWindow = () => {- console.log('Focusing window is not implemented in cordova.');- };-- shareFiles = (files: Array<string>) => {- // this is the complete list of currently supported params you can pass to the plugin (all optional)- const options = {- // message: 'share file', // not supported on some apps (Facebook, Instagram)- subject: 'File sharing', // fi. for email- files, //: ['', ''], // an array of filenames either locally or remotely- // url: 'https://www.website.com/foo/#bar?a=b',- chooserTitle: 'Pick an app' // Android only, you can override the default share sheet title- //appPackageName: 'com.apple.social.facebook', // Android only, you can provide id of the App you want to share with- //iPadCoordinates: '0,0,0,0' //IOS only iPadCoordinates for where the popover should be point. Format with x,y,width,height- };-- const onSuccess = function(result) {- console.log('Share completed? ' + result.completed); // On Android apps mostly return false even while it's true- console.log('Shared to app: ' + result.app); // On Android result.app since plugin version 5.4.0 this is no longer empty. On iOS it's empty when sharing is cancelled (result.completed=false)- };-- const onError = function(msg) {- console.log('Sharing failed with message: ' + msg);- };-- window.plugins.socialsharing.shareWithOptions(options, onSuccess, onError);- };-}diff --git a/app/services/electron-io.ts b/app/services/electron-io.tsdeleted file mode 100644index 05c834e58..000000000--- a/app/services/electron-io.ts+++ /dev/null@@ -1,1071 +0,0 @@-/**- * TagSpaces - universal file and folder organizer- * Copyright (C) 2017-present TagSpaces UG (haftungsbeschraenkt)- *- * This program is free software: you can redistribute it and/or modify- * it under the terms of the GNU Affero General Public License (version 3) as- * published by the Free Software Foundation..- *- * This program is distributed in the hope that it will be useful,- * but WITHOUT ANY WARRANTY; without even the implied warranty of- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the- * GNU Affero General Public License for more details.- *- * You should have received a copy of the GNU Affero General Public License- * along with this program. If not, see <https://www.gnu.org/licenses/>.- *- */-import fsextra from 'fs-extra';-import pathLib from 'path';-import winattr from 'winattr';-import micromatch from 'micromatch';-import http from 'http';-import fetch from 'sync-fetch';-import {- extractFileExtension,- extractFileName,- extractParentDirectoryPath,- getMetaDirectoryPath,- getThumbFileLocationForDirectory-} from '-/utils/paths';-import { arrayBufferToBuffer } from '-/utils/misc';-import AppConfig from '../config';-import PlatformIO from './platform-io';-// import TrayIcon from '../assets/icons/trayIcon.png';-// import TrayIconWin from '../assets/icons/trayIcon.ico';-// import TrayIcon2x from '../assets/icons/[email protected]';-// import TrayIcon3x from '../assets/icons/[email protected]';-import { Pro } from '../pro';-import { TS } from '-/tagspaces.namespace';-import Settings from '-/settings';-import Config from '-/config/config.json';--export default class ElectronIO {- electron: any;-- ipcRenderer: any;-- pathUtils: any;-- fs: any;-- fsWatcher: any;-- webFrame: any;-- tsTray: any;-- constructor() {- if (window.require) {- this.electron = window.require('electron');- this.ipcRenderer = this.electron.ipcRenderer;- this.webFrame = this.electron.webFrame;- this.fs = fsextra;- this.pathUtils = window.require('path');- }- }-- /* initTrayMenu = (menuConfig: Array<Object>) => {- const mainWindow = this.win;- const { Menu } = this.remote;- const { Tray } = this.remote;- const { nativeImage } = this.remote;-- let nImage;- // let trayIconPath;- // if (process.platform === 'darwin') {- // trayIconPath = this.pathUtils.join(__dirname, '/assets/icons/64x64.png');- // } else if (process.platform === 'win32') {- // trayIconPath = this.pathUtils.join(__dirname, '/assets/icons/128x128.png');- // } else {- // trayIconPath = this.pathUtils.join(__dirname, '/assets/icons/64x64.png');- // }-- if (process.platform === 'win32') {- nImage = nativeImage.createFromDataURL(TrayIcon2x);- } else if (process.platform === 'darwin') {- nImage = nativeImage.createFromDataURL(TrayIcon);- nImage.addRepresentation({- scaleFactor: 2.0,- dataURL: TrayIcon2x- });- nImage.addRepresentation({- scaleFactor: 3.0,- dataURL: TrayIcon3x- });- } else {- nImage = nativeImage.createFromDataURL(TrayIcon2x);- }-- if (this.tsTray && this.tsTray.destroy) {- this.tsTray.destroy();- }- this.tsTray = new Tray(nImage);-- this.tsTray.on('click', () => {- if (mainWindow) {- mainWindow.show();- }- });- const trayMenu = Menu.buildFromTemplate(menuConfig);- this.tsTray.setToolTip('TagSpaces');- this.tsTray.setContextMenu(trayMenu);- }; */-- isWorkerAvailable = (): boolean => {- try {- const res = fetch('http://127.0.0.1:' + Settings.wsPort, {- method: 'HEAD'- });- return res.status === 200;- } catch (e) {- console.debug('isWorkerAvailable:', e);- }- return false;- };- // this.ipcRenderer.sendSync('is-worker-available', 'notNeededArgument');-- showMainWindow = (): void => {- this.ipcRenderer.send('show-main-window', 'notNeededArgument');- /* if (this.win.isMinimized()) {- this.win.restore();- }- this.win.show(); */- };-- setLanguage = (language: string): void => {- this.ipcRenderer.send('set-language', language);- };-- quitApp = (): void => {- // this.win.destroy();- this.ipcRenderer.send('quit-application', 'Bye, bye...');- };-- // Experimental functionality- watchDirectory = (dirPath: string, listener: Object): void => {- // stopWatchingDirectories();- this.fsWatcher = this.fs.watch(- dirPath,- { persistent: true, recursive: false },- listener- );- };-- // Sets the current window on top of the windows- focusWindow = (): void => {- this.ipcRenderer.send('focus-window', 'notNeededArgument');- // this.win.focus();- };-- getDevicePaths = (): Promise<Object> =>- this.ipcRenderer.invoke('get-device-paths');-- /* getUserHomePath = (): string =>- this.ipcRenderer.sendSync('get-user-home-path', 'notNeededArgument');-- getAppDataPath = (): string =>- this.ipcRenderer.sendSync('app-data-path-request', 'notNeededArgument'); */-- setZoomFactorElectron = (zoomLevel: number) =>- this.webFrame.setZoomFactor(zoomLevel);-- setGlobalShortcuts = (globalShortcutsEnabled: boolean) => {- this.ipcRenderer.send('global-shortcuts-enabled', globalShortcutsEnabled);- };-- /* getAppPath = (): string =>- this.ipcRenderer.sendSync('app-dir-path-request', 'notNeededArgument'); */-- createDirectoryTree = (directoryPath: string): Object => {- console.log('Creating directory index for: ' + directoryPath);- const generateDirectoryTree = (dirPath: string) => {- try {- const tree: any = {};- const dstats = this.fs.lstatSync(dirPath);- tree.name = this.pathUtils.basename(dirPath);- tree.isFile = false;- tree.lmdt = dstats.mtime;- tree.path = dirPath;- tree.children = [];- const dirList = this.fs.readdirSync(dirPath);- for (let i = 0; i < dirList.length; i += 1) {- const path = dirPath + AppConfig.dirSeparator + dirList[i];- const stats = this.fs.lstatSync(path);- if (stats.isFile()) {- tree.children.push({- name: this.pathUtils.basename(path),- isFile: true,- size: stats.size,- lmdt: stats.mtime,- path- });- } else {- tree.children.push(generateDirectoryTree(path));- }- }- return tree;- } catch (ex) {- console.error('Generating tree for ' + dirPath + ' failed ' + ex);- }- };- // console.log(JSON.stringify(directoryTree));- return generateDirectoryTree(directoryPath);- };-- postRequest = (payload: string, endpoint: string): Promise<any> =>- new Promise((resolve, reject) => {- const option = {- hostname: '127.0.0.1',- port: Settings.wsPort,- method: 'POST',- path: endpoint,- headers: {- Authorization: 'Bearer ' + Config.jwt,- 'Content-Type': 'application/json',- 'Content-Length': Buffer.byteLength(payload, 'utf8')- }- };- const reqPost = http- .request(option, resp => {- if (resp.statusCode >= 400) {- const chunks = [];- resp- .on('data', c => chunks.push(c))- .on('end', () => {- const err = new Error(- 'error http code:' + resp.statusCode + ' ' + endpoint- );- console.log(Buffer.concat(chunks).toString(), err);- reject(err);- });- } else {- // .get('http://127.0.0.1:8888/thumb-gen?' + search.toString(), resp => {- let data = '';-- // A chunk of data has been received.- resp.on('data', chunk => {- data += chunk;- });-- // The whole response has been received. Print out the result.- resp.on('end', () => {- // console.log(JSON.parse(data).explanation);- resolve(JSON.parse(data));- });- }- })- .on('error', err => {- console.log('Error: ' + err.message);- reject(err);- });- reqPost.write(payload);- reqPost.end();- });-- createDirectoryIndexInWorker = (- directoryPath: string,- extractText: boolean,- ignorePatterns: Array<string>- ): Promise<any> => {- const payload = JSON.stringify({- directoryPath,- extractText,- ignorePatterns- });- return this.postRequest(payload, '/indexer');- };-- /* new Promise((resolve, reject) => {- if (this.isWorkerAvailable()) {- const timestamp = new Date().getTime().toString();- this.ipcRenderer.send('worker', {- id: timestamp,- action: 'createDirectoryIndex',- path: directoryPath,- extractText,- ignorePatterns- });- this.ipcRenderer.once(timestamp, (event, data) => {- // console.log('Answer from worker recieved ' + data.result);- resolve(data.result);- });- } else {- reject('Worker window not available!');- }- }); */-- createThumbnailsInWorker = (- tmbGenerationList: Array<string>- ): Promise<any> => {- // const search = new URLSearchParams(tmbGenerationList.map(s => ['p', s]));- const payload = JSON.stringify(tmbGenerationList);- return this.postRequest(payload, '/thumb-gen');- };-- /* pm2.start(- {- script: 'generatethumbs.js', // Script to be run- cwd: 'app/node_modules/tagspaces-workers', // './process1', cwd: '/path/to/npm/module/',- args: ['-p false', ...tmbGenerationList], // '/Users/sytolk/Pictures'],- restartAt: []- // log: pathLib.join(process.cwd(), 'thumbGen.log') // 'C:\\Users\\smari\\IdeaProjects\\tagspaces-utils\\process1.log'- // log: '/Users/sytolk/IdeaProjects/tagspaces-utils/process1.log' // path.join(process.cwd(), 'process1.log'),- },- (err, pid) => {- if (err) {- reject(new Error('createThumbnailsInWorker crashed pid=' + pid));- }- }- );- pm2.onstopping(() => {- console.debug('PM2 stopping');- resolve([]);- }); */- /* const tmbGenChannel = 'TMB_GEN_CHANNEL';- this.ipcRenderer.removeAllListeners(tmbGenChannel);- if (this.isWorkerAvailable()) {- this.ipcRenderer.send('worker', {- id: tmbGenChannel,- action: 'createThumbnails',- tmbGenerationList- });- this.ipcRenderer.on(tmbGenChannel, (event, data) => {- // console.log('Answer from worker received!');- // allSettled => data.result[].status === fulfilled // payload in value- resolve(data.result);- });- } else {- reject('Worker window not available!');- } */-- /**- * @param path- * @param mode = ['extractTextContent', 'extractThumbPath']- * @param ignorePatterns- * @param showIgnored- */- listDirectoryPromise = (- path: string,- mode = ['extractThumbPath'],- ignorePatterns: Array<string> = [],- showIgnored: boolean = true- ): Promise<Array<Object>> =>- new Promise(resolve => {- const enhancedEntries = [];- let entryPath;- let metaFolderPath;- let stats;- let eentry;- let containsMetaFolder = false;- // const metaMetaFolder = AppConfig.metaFolder + AppConfig.dirSeparator + AppConfig.metaFolder;- /* if (path.startsWith('./')) {- // relative paths- path = pathLib.resolve(path);- } */- this.fs.readdir(path, (error, entries) => {- if (error) {- console.warn('Error listing directory ' + path);- resolve(enhancedEntries); // returning results even if any promise fails- return;- }-- if (window.walkCanceled) {- resolve(enhancedEntries); // returning results even if walk canceled- return;- }-- if (entries) {- console.debug(- 'Listing directory ' + path + ' entries:' + entries.length- );- if (!showIgnored && ignorePatterns.length > 0) {- // eslint-disable-next-line no-param-reassign- entries = entries.filter(- entry =>- !micromatch.isMatch(- path + AppConfig.dirSeparator + entry,- ignorePatterns- )- );- }- entries.forEach(entry => {- entryPath = path + AppConfig.dirSeparator + entry;- eentry = {};- eentry.name = entry;- eentry.path = entryPath;- eentry.tags = [];- eentry.thumbPath = '';- eentry.meta = {};- if (- ignorePatterns.length > 0 &&- micromatch.isMatch(entryPath, ignorePatterns) // { basename: true })- ) {- eentry.isIgnored = true;- }-- try {- stats = this.fs.statSync(entryPath);- // if (AppConfig.isWin && winattr.getSync(entryPath).hidden) {- // return;- // }- eentry.isFile = stats.isFile();- eentry.size = stats.size;- eentry.lmdt = stats.mtime.getTime();-- if (- !eentry.isFile &&- eentry.name.endsWith(AppConfig.metaFolder)- ) {- containsMetaFolder = true;- }-- // Read tsm.json from sub folders- if (- !eentry.isFile &&- mode.includes('extractThumbPath') &&- !eentry.path.includes(- PlatformIO.getDirSeparator() + AppConfig.metaFolder- )- ) {- const folderMetaPath =- eentry.path +- AppConfig.dirSeparator +- (!eentry.path.includes(- PlatformIO.getDirSeparator() + AppConfig.metaFolder- ) // TODO this will set parent folder description to /.ts folder too- ? AppConfig.metaFolder + AppConfig.dirSeparator- : '') +- AppConfig.metaFolderFile;- try {- eentry.meta = this.fs.readJsonSync(folderMetaPath);- // console.log('Success reading meta folder file ' + folderMetaPath);- } catch (err) {- console.log(- 'Failed reading meta folder file ' + folderMetaPath- );- }-- // Loading thumbs for folders- if (!eentry.path.includes('/' + AppConfig.metaFolder)) {- // skipping meta folder- const folderTmbPath = getThumbFileLocationForDirectory(- eentry.path,- AppConfig.dirSeparator- );- const tmbStats = this.fs.statSync(folderTmbPath);- if (tmbStats.isFile()) {- eentry.thumbPath = folderTmbPath;- }- }- }-- /* const fileName = eentry.name.toLowerCase();- if (- extractTextContent &&- eentry.isFile &&- Pro &&- Pro.Indexer &&- Pro.Indexer.extractTextContent &&- (fileName.endsWith('.txt') ||- fileName.endsWith('.md') ||- fileName.endsWith('.html'))- ) {- const fileContent = this.fs.readFileSync(eentry.path, 'utf8');- eentry.textContent = Pro.Indexer.extractTextContent(- fileName,- fileContent- );- } */-- if (window.walkCanceled) {- resolve(enhancedEntries);- return;- }- } catch (e) {- console.warn(- 'Can not load properties for: ' + entryPath + ' ' + e- );- }- enhancedEntries.push(eentry);- });-- // Read the .ts meta content- if (containsMetaFolder && mode.includes('extractThumbPath')) {- metaFolderPath = getMetaDirectoryPath(path, AppConfig.dirSeparator);- this.fs.readdir(metaFolderPath, (err, metaEntries) => {- if (err) {- console.log(- 'Error listing meta directory ' + metaFolderPath + ' - ' + err- );- resolve(enhancedEntries); // returning results even if any promise fails- return;- }-- if (window.walkCanceled) {- resolve(enhancedEntries); // returning results even if walk canceled- return;- }-- if (metaEntries) {- metaEntries.forEach(metaEntryName => {- /* if (metaEntryName === AppConfig.metaFolderFile) {- // Read meta folder path- } */-- // Reading meta json files with tags and description- if (metaEntryName.endsWith(AppConfig.metaFileExt)) {- const fileNameWithoutMetaExt = metaEntryName.substr(- 0,- metaEntryName.lastIndexOf(AppConfig.metaFileExt)- );- const origFile = enhancedEntries.find(- result => result.name === fileNameWithoutMetaExt- );- if (origFile) {- const metaFilePath =- metaFolderPath + AppConfig.dirSeparator + metaEntryName;- const metaFileObj = this.fs.readJsonSync(metaFilePath);- if (metaFileObj) {- enhancedEntries.map(enhancedEntry => {- if (enhancedEntry.name === fileNameWithoutMetaExt) {- enhancedEntry.meta = metaFileObj;- }- return true;- });- }- }- }-- // Finding if thumbnail available- if (metaEntryName.endsWith(AppConfig.thumbFileExt)) {- const fileNameWithoutMetaExt = metaEntryName.substr(- 0,- metaEntryName.lastIndexOf(AppConfig.thumbFileExt)- );- enhancedEntries.map(enhancedEntry => {- if (enhancedEntry.name === fileNameWithoutMetaExt) {- const thumbFilePath =- metaFolderPath +- AppConfig.dirSeparator +- encodeURIComponent(metaEntryName);- enhancedEntry.thumbPath = thumbFilePath;- }- return true;- });- }-- if (window.walkCanceled) {- resolve(enhancedEntries);- }- });- }- resolve(enhancedEntries);- });- } else {- resolve(enhancedEntries);- }- }- });- });-- // Create a promise that rejects in <ms> milliseconds- timeout = (ms: number): Promise<any> =>- new Promise((resolve, reject) => {- const id = setTimeout(() => {- clearTimeout(id);- reject(new Error('Timed out in ' + ms + 'ms.'));- }, ms);- });-- /**- * TODO lstat sometimes hangs on Electron e2e tests- * @param path- * return on success: resolve Promise<TS.FileSystemEntry>- * on error: resolve Promise<false> (file not exist) TODO rethink this to reject error too- * on timeout: reject error- */- getPropertiesPromise = (path: string): Promise<any> => {- const promise = new Promise(resolve => {- /* stats for file:- * "dev":41, "mode":33204, "nlink":1, "uid":1000, "gid":1000, "rdev":0,- * "blksize":4096, "ino":2634172, "size":230, "blocks":24, "atime":"2015-11-24T09:56:41.932Z",- * "mtime":"2015-11-23T14:29:29.689Z", "ctime":"2015-11-23T14:29:29.689Z", "birthtime":"2015-11-23T14:29:29.689Z",- * "isFile":true, "path":"/home/somefile.txt" */- this.fs.lstat(path, (err, stats) => {- if (err) {- resolve(false);- return;- }-- if (stats) {- resolve({- name: path.substring(- path.lastIndexOf(AppConfig.dirSeparator) + 1,- path.length- ),- isFile: stats.isFile(),- size: stats.size,- lmdt: stats.mtime.getTime(),- path- });- }- });- });- // Returns a race between our timeout and the passed in promise- return Promise.race([promise, this.timeout(2000)]);- };-- createDirectoryPromise = (dirPath: string): Promise<any> => {- console.log('Creating directory: ' + dirPath);- return new Promise((resolve, reject) => {- this.fs.mkdirp(dirPath, error => {- if (error) {- reject(- new Error('Error creating folder: ' + dirPath + ' with ' + error)- );- return;- }- // Make newly created .ts folders hidden under Windows- if (- AppConfig.isWin &&- !PlatformIO.haveObjectStoreSupport() &&- dirPath.endsWith('\\' + AppConfig.metaFolder)- ) {- winattr.set(dirPath, { hidden: true }, err => {- resolve(dirPath);- if (err) {- console.warn('Error setting hidden attr. to dir: ' + dirPath);- } else {- console.log('Success setting hidden attr. to dir: ' + dirPath);- }- });- } else {- resolve(dirPath);- }- });- });- };-- copyFilePromise = (- sourceFilePath: string,- targetFilePath: string- ): Promise<any> => {- console.log('Copying file: ' + sourceFilePath + ' to ' + targetFilePath);- return new Promise((resolve, reject) => {- if (sourceFilePath === targetFilePath) {- reject(- 'Trying to copy over the same file. Copying "' +- sourceFilePath +- '" failed'- );- } else if (this.fs.lstatSync(sourceFilePath).isDirectory()) {- reject('Trying to copy a file: ' + sourceFilePath + '. Copying failed');- /* } else if (this.fs.existsSync(targetFilePath)) {- reject('File "' + targetFilePath + '" exists. Copying failed.'); */- } else {- this.fs.copy(sourceFilePath, targetFilePath, error => {- if (error) {- reject('Copying: ' + sourceFilePath + ' failed.');- return;- }- resolve([sourceFilePath, targetFilePath]);- });- }- });- };-- renameFilePromise = (filePath: string, newFilePath: string): Promise<any> => {- console.log('Renaming file: ' + filePath + ' to ' + newFilePath);- // stopWatchingDirectories();- return new Promise((resolve, reject) => {- if (filePath === newFilePath) {- reject(- 'Source and target file paths are the same. Renaming of "' +- filePath +- '" failed'- );- return;- }- if (this.fs.lstatSync(filePath).isDirectory()) {- reject(- 'Trying to rename a directory. Renaming of "' + filePath + '" failed'- );- return;- }- if (!this.fs.existsSync(filePath)) {- reject(- 'Source file does not exist. Renaming of "' + filePath + '" failed'- );- return;- }- if (this.fs.existsSync(newFilePath)) {- reject(- 'Target filename "' +- newFilePath +- '" exists. Renaming of "' +- filePath +- '" failed'- );- return;- }- this.fs.move(filePath, newFilePath, { clobber: true }, error => {- if (error) {- reject('Renaming: ' + filePath + ' failed with: ' + error);- return;- }- resolve([filePath, newFilePath]);- });- });- };-- renameDirectoryPromise = (- dirPath: string,- newDirName: string- ): Promise<any> => {- const newDirPath =- extractParentDirectoryPath(dirPath, AppConfig.dirSeparator) +- AppConfig.dirSeparator +- newDirName;- console.log('Renaming dir: ' + dirPath + ' to ' + newDirPath);- // stopWatchingDirectories();- return new Promise((resolve, reject) => {- if (dirPath === newDirPath) {- reject('Trying to move in the same directory. Moving failed');- return;- }- if (this.fs.existsSync(newDirPath)) {- reject(- 'Directory "' +- newDirPath +- '" exists. Renaming of "' +- dirPath +- '" failed'- );- return;- }- const dirStatus = this.fs.lstatSync(dirPath);- if (dirStatus.isDirectory) {- this.fs.rename(dirPath, newDirPath, error => {- if (error) {- reject('Renaming "' + dirPath + '" failed with: ' + error);- return;- }- resolve(newDirPath);- });- } else {- reject('Path is not a directory. Renaming of ' + dirPath + ' failed.');- }- });- };-- loadTextFilePromise = (- filePath: string,- isPreview: boolean = false- ): Promise<string> =>- new Promise((resolve, reject) => {- if (isPreview) {- const stream = this.fs.createReadStream(filePath, {- start: 0,- end: 10000- });-- stream.on('error', err => {- reject(err);- });-- const chunks = [];- stream.on('data', chunk => {- chunks.push(chunk.toString());- // console.log('stream data ' + chunk);- });-- stream.on('end', () => {- const textContent = chunks.join('');- resolve(textContent);- // console.log('final output ' + string);- });- } else {- this.fs.readFile(filePath, 'utf8', (error, content) => {- if (error) {- reject(error);- } else {- resolve(content);- }- });- }- });-- getFileContentPromise = (fullPath: string, type: string): Promise<any> =>- new Promise((resolve, reject) => {- let fileURL = fullPath;- if (fileURL.indexOf('file://') === -1) {- fileURL = 'file://' + fileURL;- }- const xhr: any = new XMLHttpRequest();- xhr.open('GET', fileURL, true);- xhr.responseType = type || 'arraybuffer';- xhr.onerror = reject;-- xhr.onload = () => {- const response = xhr.response || xhr.responseText;- if (response) {- resolve(response);- } else {- reject('getFileContentPromise error');- }- };- xhr.send();- });-- /**- * TODO rethink return Promise<TS.FileSystemEntry> and optimize and remove getPropertiesPromise before save file- * @param filePath- * @param content- * @param overwrite- */- saveFilePromise = (- filePath: string,- content: any,- overwrite: boolean = true- ): Promise<TS.FileSystemEntry> =>- new Promise((resolve, reject) => {- const fileSystem = this.fs;- function saveFile(entry: TS.FileSystemEntry, tContent) {- fileSystem.writeFile(entry.path, tContent, 'utf8', error => {- if (error) {- reject(error);- return;- }- resolve(entry);- });- }-- this.getPropertiesPromise(filePath)- .then((entry: TS.FileSystemEntry) => {- if (entry) {- if (entry.isFile && overwrite) {- saveFile({ ...entry, isNewFile: false, tags: [] }, content);- }- } else {- saveFile(- {- name: extractFileName(filePath, AppConfig.dirSeparator),- isFile: true,- path: filePath,- extension: extractFileExtension(- filePath,- AppConfig.dirSeparator- ),- size: 0,- lmdt: new Date().getTime(),- isNewFile: true,- tags: []- },- content- );- }- return true;- })- .catch(error => {- // Trying to save as new file- console.log(- 'Getting properties for ' + filePath + ' failed with: ' + error- );- const fsEntry = {- name: extractFileName(filePath, AppConfig.dirSeparator),- isFile: true,- path: filePath,- extension: extractFileExtension(filePath, AppConfig.dirSeparator),- size: 0,- lmdt: new Date().getTime(),- isNewFile: true,- tags: []- };- saveFile(fsEntry, content);- });- });-- saveTextFilePromise = (- filePath: string,- content: string,- overwrite: boolean- ): Promise<TS.FileSystemEntry> => {- console.log('Saving file: ' + filePath);-- // Handling the UTF8 support for text files- const UTF8_BOM = '\ufeff';- let textContent = content;-- if (content.indexOf(UTF8_BOM) === 0) {- console.log('Content beging with a UTF8 bom');- } else {- textContent = UTF8_BOM + content;- }-- return this.saveFilePromise(filePath, textContent, overwrite);- };-- saveBinaryFilePromise = (- filePath: string,- content: any,- overwrite: boolean- ): Promise<TS.FileSystemEntry> => {- console.log('Saving binary file: ' + filePath);- const buff = arrayBufferToBuffer(content);- return this.saveFilePromise(filePath, buff, overwrite);- };-- deleteFilePromise = (- path: string,- useTrash: boolean = true- ): Promise<any> => {- if (useTrash) {- return new Promise((resolve, reject) => {- if (this.moveToTrash([path])) {- resolve(path);- } else {- // console.error('deleteDirectoryPromise '+path+' failed');- reject(new Error('deleteDirectoryPromise ' + path + ' failed'));- }- });- }-- return new Promise((resolve, reject) => {- this.fs.unlink(path, error => {- if (error) {- return reject(error);- }- return resolve(path);- });- });- };-- deleteDirectoryPromise = (- path: string,- useTrash: boolean = true- ): Promise<any> => {- if (useTrash) {- return new Promise((resolve, reject) => {- if (this.moveToTrash([path])) {- resolve(path);- } else {- // console.error('deleteDirectoryPromise '+path+' failed');- reject(new Error('deleteDirectoryPromise ' + path + ' failed'));- }- });- }-- return new Promise((resolve, reject) => {- this.fs.rmdir(path, error => {- if (error) {- return reject(error);- }- return resolve(path);- });- });- };-- moveToTrash = (files: Array<string>): Promise<boolean> =>- this.ipcRenderer- .invoke('move-to-trash', files)- .then(result => result && result.length > 0);- /* const result = [];- files.forEach(fullPath => {- result.push(this.electron.shell.trashItem(fullPath));- });- return Promise.all(result); */-- /* if (result) {- resolve(true);- } else {- reject('Moving of at least one file to trash failed.');- } */-- openDirectory = (dirPath: string): void => {- // if (AppConfig.isWin) {- this.electron.shell.showItemInFolder(dirPath);- // } else {- // this.electron.shell.showItemInFolder(- // dirPath + AppConfig.dirSeparator + '.'- // );- // }- };-- showInFileManager = (filePath: string): void => {- this.electron.shell.showItemInFolder(filePath);- };-- openFile = (filePath: string): void => {- this.electron.shell- .openPath(filePath)- .then(() => {- console.log('File successfully opened ' + filePath);- return true;- })- .catch(e => {- console.log('Opening path ' + filePath + ' failed with ' + e);- });- };-- openUrl = (url: string): void => {- console.log(url);- this.electron.shell.openExternal(url);- };-- resolveFilePath = (filePath: string): string => pathLib.resolve(filePath);-- /**- * not used- */- /* selectFileDialog = (): Promise<any> => {- const options = {- // filters: [- // {- // name: 'Images',- // extensions: ['jpg', 'png', 'gif']- // }- // ]- };- return new Promise((resolve, reject) => {- this.remote.dialog- .showOpenDialog(options)- .then(resultObject => {- if (resultObject.filePaths && resultObject.filePaths.length) {- // alert(JSON.stringify(resultObject.filePaths));- resolve(resultObject.filePaths);- } else {- reject('No file selected');- }- return true;- })- .catch(e => {- reject('Error opening file ' + e);- });- });- }; */-- selectDirectoryDialog = (): Promise<any> =>- this.ipcRenderer.invoke('select-directory-dialog', 'noArg');-- /* return new Promise((resolve, reject) => {- this.remote.dialog- .showOpenDialog(options)- .then(resultObject => {- if (resultObject.filePaths && resultObject.filePaths.length) {- // alert(JSON.stringify(resultObject.filePaths));- resolve(resultObject.filePaths);- } else {- reject('No directory selected');- }- return true;- })- .catch(e => {- reject('Error opening directory ' + e);- });- }); */-- shareFiles = (files: Array<string>) => {- console.log('shareFiles is not implemented in electron.');- };-}diff --git a/app/services/objectstore-io.ts b/app/services/objectstore-io.tsdeleted file mode 100644index 9342beb8f..000000000--- a/app/services/objectstore-io.ts+++ /dev/null@@ -1,936 +0,0 @@-/**- * TagSpaces - universal file and folder organizer- * Copyright (C) 2017-present TagSpaces UG (haftungsbeschraenkt)- *- * This program is free software: you can redistribute it and/or modify- * it under the terms of the GNU Affero General Public License (version 3) as- * published by the Free Software Foundation.- *- * This program is distributed in the hope that it will be useful,- * but WITHOUT ANY WARRANTY; without even the implied warranty of- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the- * GNU Affero General Public License for more details.- *- * You should have received a copy of the GNU Affero General Public License- * along with this program. If not, see <https://www.gnu.org/licenses/>.- *- */-/*--import uuidv1 from 'uuid';-import { ManagedUpload } from 'aws-sdk/clients/s3';-import AppConfig from '-/config';-import {- extractFileName,- extractParentDirectoryPath,- extractDirectoryName,- normalizePath,- getThumbFileLocationForFile,- getMetaFileLocationForFile,- extractFileExtension,- getMetaFileLocationForDir,- getThumbFileLocationForDirectory-} from '-/utils/paths';-import { TS } from '-/tagspaces.namespace';--export default class ObjectStoreIO {- objectStore = undefined;-- config = undefined;-- configure = (objectStoreConfig: Object): Promise<any> =>- new Promise((resolve, reject) => {- this.config = objectStoreConfig; // s3Config switch-- import(/!* webpackChunkName: "AWS" *!/ 'aws-sdk')- .then(({ default: AWS }) => {- const advancedMode =- this.config.endpointURL && this.config.endpointURL.length > 7;- if (advancedMode) {- const endpoint: unknown = new AWS.Endpoint(this.config.endpointURL);- this.objectStore = new AWS.S3({- endpoint: endpoint as string,- accessKeyId: this.config.accessKeyId,- secretAccessKey: this.config.secretAccessKey,- sessionToken: this.config.sessionToken,- s3ForcePathStyle: true, // needed for minio- signatureVersion: 'v4', // needed for minio- logger: console- });- } else {- this.objectStore = new AWS.S3({- region: this.config.region,- accessKeyId: this.config.accessKeyId,- secretAccessKey: this.config.secretAccessKey,- signatureVersion: 'v4'- });- }-- // return this.objectStore.getBucketPolicy({ Bucket: this.config.bucketName }).promise();- // Getting the properties of the root folder means the connections to AWS was successful- resolve();- // return this.getPropertiesPromise('/');- })- .catch(error => {- console.warn('An error occurred while loading the AWS-SDK: ' + error);- reject();- });- });-- getURLforPath = (path: string, expirationInSeconds: number = 900): string => {- if (!this.objectStore) {- console.log('Object store not configured in getURLforPath');- return '';- }- if (!path || path.length < 1) {- console.warn('Wrong path param for getURLforPath');- return '';- }- const params = {- Bucket: this.config.bucketName,- Key: path,- Expires: expirationInSeconds- };- try {- return this.objectStore.getSignedUrl('getObject', params);- } catch (e) {- console.warn('Error by getSignedUrl' + e.toString());- return '';- }- };-- quitApp = (): void => {- window.close();- };-- listMetaDirectoryPromise = async (path: string): Promise<Array<any>> =>- new Promise(resolve => {- const entries = [];- let entry;- if (!this.objectStore) {- console.log('Object store not configured. Exiting');- return resolve(entries);- }-- const normalizedPath = normalizePath(this.normalizeRootPath(path));- const metaDirPath =- normalizedPath.length > 0- ? normalizedPath + '/' + AppConfig.metaFolder + '/'- : AppConfig.metaFolder + '/';- const params = {- Delimiter: '/',- Prefix: metaDirPath,- Bucket: this.config.bucketName- };- this.objectStore.listObjectsV2(params, (error, data) => {- // console.log('listObjectsV2 ' + JSON.stringify(params));- if (error) {- console.warn('Error listing meta directory ' + path);- return resolve(entries); // returning results even if any promise fails- }-- if (window.walkCanceled) {- return resolve(entries); // returning results even if walk canceled- }-- // const truncated = data.IsTruncated;- // const nextMarker = data.NextMarker;-- // Handling files- data.Contents.forEach(file => {- // console.warn('Meta: ' + JSON.stringify(file));- entry = {};- entry.name = file.Key;- entry.path = file.Key;- entry.isFile = true;- entry.size = file.Size;- entry.lmdt = Date.parse(file.LastModified);- if (file.Key !== params.Prefix) {- // skipping the current folder- entries.push(entry);- }- });- return resolve(entries);- });- });-- listDirectoryPromise = (- path: string,- lite: boolean = true- ): Promise<Array<Object>> =>- new Promise(async resolve => {- const enhancedEntries = [];- // let entryPath;- // let metaFolderPath;- // let stats;- let eentry;- // const containsMetaFolder = false;- // const metaMetaFolder = AppConfig.metaFolder + AppConfig.dirSeparator + AppConfig.metaFolder;-- if (!this.objectStore) {- console.log('Object store not configured. Exiting');- resolve(undefined); //enhancedEntries); empty dir is not the same with this state- return;- }-- // this.listMetaDirectoryPromise(path).then((entries) => {- // console.log('Meta folder content: ' + JSON.stringify(entries));- // return true;- // }).catch((error) => {- // console.warn('Error loading meta files: ' + JSON.stringify(error));- // });- let metaContent = [];- if (!lite) {- metaContent = await this.listMetaDirectoryPromise(path);- }- // console.log('Meta folder content: ' + JSON.stringify(metaContent));-- const params = {- Delimiter: '/', // '/',- Prefix:- path.length > 0 && path !== '/'- ? normalizePath(this.normalizeRootPath(path)) + '/'- : '',- // MaxKeys: 10000, // It returns actually up to 1000- Bucket: this.config.bucketName- };- this.objectStore.listObjectsV2(params, (error, data) => {- // console.warn(data);- /!* data = {- Contents: [- {- ETag: "\"70ee1738b6b21\"",- Key: "example11.jpg",- LastModified: <Date Representation>,- Owner: {- DisplayName: "myname12",- ID: "12345example251"- },- Size: 112311,- StorageClass: "STANDARD"- },..- ],- NextMarker: "eyJNYXJrZXIiOiBudWxsLCAiYm90b190cnVuY2F0ZV9hbW91bnQiOiAyfQ=="- }- *!/- if (error) {- console.warn('Error listing directory ' + path);- resolve(enhancedEntries); // returning results even if any promise fails- return;- }-- if (window.walkCanceled) {- resolve(enhancedEntries); // returning results even if walk canceled- return;- }-- // const truncated = data.IsTruncated;- // const nextMarker = data.NextMarker;-- const metaPromises = [];-- // Handling "directories"- data.CommonPrefixes.forEach(dir => {- // console.warn(JSON.stringify(dir));- const prefix = normalizePath(this.normalizeRootPath(dir.Prefix));- eentry = {};- const prefixArray = prefix.split('/');- eentry.name = prefixArray[prefixArray.length - 1]; // dir.Prefix.substring(0, dir.Prefix.length - 1);- eentry.path = prefix + '/';- eentry.tags = [];- eentry.thumbPath = '';- eentry.meta = {};- eentry.isFile = false;- eentry.size = 0;- eentry.lmdt = 0;-- if (eentry.path !== params.Prefix) {- // skipping the current directory- enhancedEntries.push(eentry);- if (!lite) {- metaPromises.push(this.getEntryMeta(eentry));- }- }- if (window.walkCanceled) {- resolve(enhancedEntries);- }- });-- // Handling files- data.Contents.forEach(file => {- // console.warn(JSON.stringify(file));- let thumbPath = '';- if (!lite) {- const thumbFilePath = getThumbFileLocationForFile(file.Key, '/');- const thumbAvailable = metaContent.find(- (obj: any) => obj.path === thumbFilePath- );- if (thumbAvailable) {- thumbPath = this.getURLforPath(thumbFilePath, 604800); // 60 * 60 * 24 * 7 = 1 week- }- }-- eentry = {};- eentry.name = extractFileName(file.Key, '/');- eentry.path = file.Key;- eentry.tags = [];- eentry.thumbPath = thumbPath;- eentry.meta = {};- eentry.isFile = true;- eentry.size = file.Size;- eentry.lmdt = Date.parse(file.LastModified);- if (file.Key !== params.Prefix) {- // skipping the current folder- enhancedEntries.push(eentry);- if (!lite) {- const metaFilePath = getMetaFileLocationForFile(file.Key, '/');- const metaFileAvailable = metaContent.find(- (obj: any) => obj.path === metaFilePath- );- if (metaFileAvailable) {- metaPromises.push(this.getEntryMeta(eentry));- }- }- }- });-- Promise.all(metaPromises)- .then(entriesMeta => {- entriesMeta.forEach(entryMeta => {- enhancedEntries.some(enhancedEntry => {- if (enhancedEntry.path === entryMeta.path) {- enhancedEntry = entryMeta;- return true;- }- return false;- });- });- resolve(enhancedEntries);- return true;- })- .catch(() => {- resolve(enhancedEntries);- });- });- });-- getEntryMeta = async (eentry: TS.FileSystemEntry): Promise<Object> => {- const promise = new Promise(async resolve => {- if (eentry.isFile) {- const metaFilePath = getMetaFileLocationForFile(eentry.path, '/');- const metaFileContent = await this.loadTextFilePromise(metaFilePath);- eentry.meta = JSON.parse(metaFileContent.trim());- resolve(eentry);- // resolve({ ...eentry, meta: JSON.parse(metaFileContent.trim()) });- } else {- if (- !eentry.path.includes('/' + AppConfig.metaFolder) &&- !eentry.path.includes(AppConfig.metaFolder + '/')- ) {- // skipping meta folder- const folderTmbPath = getThumbFileLocationForDirectory(- eentry.path,- AppConfig.dirSeparator- );- const folderThumbProps = await this.getPropertiesPromise(- folderTmbPath- );- if (folderThumbProps.isFile) {- eentry.thumbPath = this.getURLforPath(folderTmbPath, 604800); // 60 * 60 * 24 * 7 = 1 week ;- }- // }- // if (!eentry.path.endsWith(AppConfig.metaFolder + '/')) { // Skip the /.ts folder- const folderMetaPath =- normalizePath(this.normalizeRootPath(eentry.path)) +- '/' +- AppConfig.metaFolder +- '/' +- AppConfig.metaFolderFile;- const folderProps = await this.getPropertiesPromise(folderMetaPath);- if (folderProps.isFile) {- const metaFileContent = await this.loadTextFilePromise(- folderMetaPath- );- eentry.meta = JSON.parse(metaFileContent.trim());- // console.log('Folder meta for ' + eentry.path + ' - ' + JSON.stringify(eentry.meta));- }- }- resolve(eentry);- }- });- const result = await promise;- return result;- };-- getPropertiesPromise = (path: string): Promise<any> =>- new Promise((resolve, reject) => {- const normalizedPath = this.normalizeRootPath(path); // normalizePath(path); don't clean trailing / for dir properties- if (normalizedPath) {- const params = {- Bucket: this.config.bucketName,- Key: normalizedPath- };- this.objectStore.headObject(params, (err, data) => {- if (err) {- // workaround for checking if a folder exists on s3- const listParams = {- Bucket: this.config.bucketName,- Prefix: normalizedPath,- MaxKeys: 1,- Delimiter: '/'- };- this.objectStore.listObjectsV2(- listParams,- (listError, listData) => {- if (listError) {- resolve(false);- return;- }- const folderExists =- (listData && listData.KeyCount && listData.KeyCount > 0) || // supported on aws s3- (listData &&- listData.CommonPrefixes &&- listData.CommonPrefixes.length > 0); // needed for DO- if (folderExists) {- resolve({- name: extractDirectoryName(normalizedPath, '/'),- isFile: false,- size: 0,- lmdt: undefined,- path: normalizedPath- });- } else {- resolve(false);- }- }- );- return;- }- /!*- data = {- "AcceptRanges":"bytes",- "LastModified":"2018-10-22T12:57:16.000Z",- "ContentLength":101003,- "ETag":"\"02cb1c856f4fdcde6b39062a29b95030\"",- "ContentType":"image/png",- "ServerSideEncryption":"AES256",- "Metadata":{}- }- *!/- // console.log('Properties: ' + path + ' - ' + JSON.stringify(data));- const isFile = !normalizedPath.endsWith('/');- resolve({- name: isFile- ? extractFileName(normalizedPath, '/')- : extractDirectoryName(normalizedPath, '/'),- isFile,- size: data.ContentLength,- lmdt: Date.parse(data.LastModified),- path: normalizedPath- });- });- } else {- // root folder- resolve({- name: this.config.bucketName,- isFile: false,- size: 0,- lmdt: undefined,- path: '/'- });- }- });-- loadTextFilePromise = (- filePath: string,- isPreview?: boolean- ): Promise<string> => this.getFileContentPromise(filePath, 'text', isPreview);-- /!**- * Use only for files (will not work for dirs)- * @param filePath- * @param type- * @param isPreview- * @returns {Promise<any>}- *!/- getFileContentPromise = async (- filePath: string,- type: string,- isPreview?: boolean- ): Promise<any> => {- const promise = new Promise((resolve, reject) => {- const normalizedPath = normalizePath(this.normalizeRootPath(filePath));- const params = {- Bucket: this.config.bucketName,- Key: normalizedPath,- Range: isPreview ? 'bytes=0-10000' : ''- };- this.objectStore.getObject(params, (err, data) => {- if (err) {- console.log('Error getObject ' + normalizedPath); // an error occurred- console.log(err, err.stack); // an error occurred- reject('getFileContentPromise error');- } else {- // data: {- // "AcceptRanges":"bytes",- // "LastModified":"2018-10-22T16:24:42.000Z",- // "ContentLength":99,- // "ETag":"\"407a96716a09a2cf36ca32759cf15497\"",- // "ContentType":"application/json",- // "ServerSideEncryption":"AES256",- // "Metadata":{},- // "Body":{"type":"Buffer","data":[123,....,10,125]}}- // if (data.Body) { // && data.Body.type && data.Body.type === 'Buffer'- // const enc = new TextDecoder('utf8');- // const content = enc.decode(data.Body);- // console.log('Content: ' + content);- // resolve(content);- // } else {- // reject('Error getting s3 content - wrong response type');- // }- // console.log('Content Raw for : ' + filePath + ' - ' + data);- const content = data.Body.toString('utf8');- // console.log('Content: ' + content);- resolve(content);- }- });- });- const result = await promise;- return result;- };-- /!**- * Persists a given content(binary supported) to a specified filepath (tested)- *!/- saveFilePromise = (- filePath: string,- content: string,- overWrite: boolean,- mode: string- ): Promise<Object> =>- new Promise((resolve, reject) => {- let isNewFile = false;- // eslint-disable-next-line no-param-reassign- filePath = normalizePath(this.normalizeRootPath(filePath));- this.getPropertiesPromise(filePath)- .then(result => {- if (result === false) {- isNewFile = true;- }- if (isNewFile || overWrite === true) {- // || mode === 'text') {- const fileExt = extractFileExtension(filePath, '/');-- let mimeType;- if (fileExt === 'md') {- mimeType = 'text/markdown';- } else if (fileExt === 'txt') {- mimeType = 'text/plain';- } else if (fileExt === 'html') {- mimeType = 'text/html';- } else {- // default type- mimeType = 'text/plain';- }- const params = {- Bucket: this.config.bucketName,- Key: filePath,- Body: content,- ContentType: mimeType- }; // fs.readFileSync(filePath)- this.objectStore.putObject(params, (err, data) => {- // putObject- if (err) {- console.log('Error upload ' + filePath); // an error occurred- console.log(err, err.stack); // an error occurred- reject('saveFilePromise error');- }- // const content = data.Body.toString('utf8');- // console.log('Content: ' + content);- // resolve(data);- resolve({- uuid: data.ETag,- name: data.Key ? data.Key : extractFileName(filePath, '/'),- url: data.Location,- isFile: true,- path: filePath,- extension: extractFileExtension(filePath, '/'),- size: content.length,- lmdt: new Date().getTime(),- isNewFile- });- });- }- return result;- })- .catch(err => reject(err));- });-- /!**- * Persists a given text content to a specified filepath (tested)- *!/- saveTextFilePromise(- filePath: string,- content: string,- overWrite: boolean- ): Promise<Object> {- filePath = normalizePath(this.normalizeRootPath(filePath));- console.log('Saving text file: ' + filePath);- return this.saveFilePromise(filePath, content, overWrite, 'text');- }-- normalizeRootPath(filePath: string) {- filePath = filePath.replace(new RegExp('//+', 'g'), '/');- /!* if(filePath.indexOf(AppConfig.dirSeparator) === 0){- filePath = filePath.substr(AppConfig.dirSeparator.length);- } *!/- if (filePath.indexOf('/') === 0) {- filePath = filePath.substr(1);- }- return decodeURIComponent(filePath);- }-- /!**- * Persists a given binary content to a specified filepath (tested)- *!/- saveBinaryFilePromise(- filePath: string,- content: string,- overWrite: boolean,- onUploadProgress?: (- progress: ManagedUpload.Progress,- request: () => any- ) => void,- onAbort?: () => void- ): Promise<TS.FileSystemEntry> {- return new Promise((resolve, reject) => {- let isNewFile = false;- // eslint-disable-next-line no-param-reassign- filePath = normalizePath(this.normalizeRootPath(filePath));- this.getPropertiesPromise(filePath)- .then(result => {- if (result === false) {- isNewFile = true;- }- if (isNewFile || overWrite === true) {- const params = {- Bucket: this.config.bucketName,- Key: filePath,- Body: content- };- const request = this.objectStore.upload(params);- if (onUploadProgress) {- request.on(- 'httpUploadProgress',- (progress: ManagedUpload.Progress) => {- if (onUploadProgress) {- onUploadProgress(progress, () => request.abort());- }- }- ); // onUploadProgress as any);- }- if (onAbort) {- onAbort = () => request.abort();- }- try {- request- .promise()- .then(data => {- resolve({- uuid: uuidv1(), // data.ETag,- name: data.Key ? data.Key : extractFileName(filePath, '/'),- url: data.Location,- isFile: true,- path: filePath,- extension: extractFileExtension(filePath, '/'),- size: content.length,- lmdt: new Date().getTime(),- tags: [],- isNewFile- });- })- .catch(err => {- reject(err);- });- } catch (err) {- console.log('Error upload ' + filePath); // an error occurred- console.log(err, err.stack); // an error occurred- reject('saveBinaryFilePromise error');- }- }- return result;- })- .catch(err => reject(err));- });- }-- /!**- * Creates a directory. S3 does not have folders or files; it has buckets and objects. Buckets are used to store objects (tested)- * dirPath = newDirectory/- *!/- createDirectoryPromise = (dirPath: string): Promise<Object> => {- // eslint-disable-next-line no-param-reassign- dirPath = normalizePath(this.normalizeRootPath(dirPath)) + '/';- console.log('Creating directory: ' + dirPath);- return this.objectStore- .putObject({- Bucket: this.config.bucketName,- Key: dirPath- })- .promise()- .then(result => {- const out = {- ...result,- dirPath- };- if (dirPath.endsWith(AppConfig.metaFolder + '/')) {- return out;- }- const metaFilePath = getMetaFileLocationForDir(dirPath, '/');- const metaContent = '{"id":"' + uuidv1() + '"}';- return this.saveTextFilePromise(metaFilePath, metaContent, false).then(- () => out- );- });- };-- /!**- * Copies a given file to a specified location (tested)- *!/- copyFilePromise = (- filePath: string,- newFilePath: string- ): Promise<Object> => {- const nFilePath = normalizePath(this.normalizeRootPath(filePath));- const nNewFilePath = normalizePath(this.normalizeRootPath(newFilePath));- console.log('Copying file: ' + nFilePath + ' to ' + nNewFilePath);- if (nFilePath.toLowerCase() === nNewFilePath.toLowerCase()) {- return new Promise((resolve, reject) => {- reject('Copying file failed, files have the same path');- });- }- return this.objectStore- .copyObject({- Bucket: this.config.bucketName,- CopySource: encodeURI(this.config.bucketName + '/' + nFilePath),- Key: nNewFilePath- })- .promise();- };-- /!**- * Renames a given file (tested)- * TODO for web minio copyObject -> The request signature we calculated does not match the signature you provided. Check your key and signing method.- *!/- renameFilePromise = (- filePath: string,- newFilePath: string- ): Promise<Object> => {- const nFilePath = normalizePath(this.normalizeRootPath(filePath));- const nNewFilePath = normalizePath(this.normalizeRootPath(newFilePath));- console.log('Renaming file: ' + nFilePath + ' to ' + newFilePath);- if (nFilePath === nNewFilePath) {- return new Promise((resolve, reject) => {- reject('Renaming file failed, files have the same path');- });- }- // Copy the object to a new location- return new Promise((resolve, reject) => {- this.objectStore- .copyObject({- Bucket: this.config.bucketName,- CopySource: encodeURI(this.config.bucketName + '/' + nFilePath), // this.encodeS3URI(nFilePath),- Key: nNewFilePath- })- .promise()- .then(() =>- // Delete the old object- this.objectStore- .deleteObject({- Bucket: this.config.bucketName,- Key: nFilePath- })- .promise()- .then(() => {- resolve([filePath, nNewFilePath]);- })- )- .catch(e => {- console.log(e);- reject('Renaming file failed' + e.code);- });- });- };-- /!**- * Rename a directory- *!/- renameDirectoryPromise = async (- dirPath: string,- newDirectoryPath: string- ): Promise<Object> => {- const parenDirPath = extractParentDirectoryPath(dirPath, '/');- const newDirPath = this.normalizeRootPath(- parenDirPath + '/' + newDirectoryPath- );- console.log('Renaming directory: ' + dirPath + ' to ' + newDirPath);- if (dirPath === newDirPath) {- return Promise.reject(- 'Renaming directory failed, directories have the same path'- );- }-- try {- const listParams = {- Bucket: this.config.bucketName,- Prefix: dirPath,- Delimiter: '/'- };- const listedObjects = await this.objectStore- .listObjectsV2(listParams)- .promise();-- if (listedObjects.Contents.length > 0) {- const promises = [];- listedObjects.Contents.forEach(({ Key }) => {- if (Key.endsWith('/')) {- promises.push(this.createDirectoryPromise(newDirectoryPath));- } else {- promises.push(- this.copyFilePromise(- Key,- parenDirPath +- '/' +- Key.replace(normalizePath(dirPath), newDirectoryPath)- )- );- }- });-- return Promise.all(promises).then(() =>- this.deleteDirectoryPromise(dirPath).then(() => newDirectoryPath)- );- } else {- // empty Dir- return this.createDirectoryPromise(newDirectoryPath).then(() =>- this.deleteDirectoryPromise(dirPath).then(() => newDirectoryPath)- );- }- } catch (e) {- console.log(e);- }- return Promise.reject('No directory exist:' + dirPath);- };-- /!**- * Delete a specified file- *!/- deleteFilePromise = (path: string): Promise<Object> =>- this.objectStore- .deleteObject({- Bucket: this.config.bucketName,- Key: path- })- .promise();-- /!**- * Delete a specified directory- *!/- deleteDirectoryPromise = async (path: string): Promise<Object> => {- const prefixes = await this.getDirectoryPrefixes(path);-- if (prefixes.length > 0) {- const deleteParams = {- Bucket: this.config.bucketName,- Delete: { Objects: prefixes }- };-- return this.objectStore.deleteObjects(deleteParams).promise();- }- return this.objectStore- .deleteObject({- Bucket: this.config.bucketName,- Key: path- })- .promise();- };-- /!**- * get recursively all aws directory prefixes- * @param path- *!/- getDirectoryPrefixes = async (path: string): Promise<any[]> => {- const prefixes = [];- const promises = [];- const listParams = {- Bucket: this.config.bucketName,- Prefix: this.normalizeRootPath(path),- Delimiter: '/'- };- const listedObjects = await this.objectStore- .listObjectsV2(listParams)- .promise();-- if (- listedObjects.Contents.length > 0 ||- listedObjects.CommonPrefixes.length > 0- ) {- listedObjects.Contents.forEach(({ Key }) => {- prefixes.push({ Key });- });-- listedObjects.CommonPrefixes.forEach(({ Prefix }) => {- prefixes.push({ Key: Prefix });- promises.push(this.getDirectoryPrefixes(Prefix));- });- // if (listedObjects.IsTruncated) await this.deleteDirectoryPromise(path);- }- const subPrefixes = await Promise.all(promises);- subPrefixes.map(arrPrefixes => {- arrPrefixes.map(prefix => {- prefixes.push(prefix);- });- });- return prefixes;- };-- /!**- * Choosing directory- *!/- selectDirectoryDialog = () => {- console.log('Selecting directory is not implemented in the s3 version');- };-- /!**- * Choosing file- *!/- selectFileDialog = () => {- console.log('Selecting file not relevant for the s3 version');- };-- /!**- * Opens directory in new tab / window- *!/- openDirectory = (dirPath: string) => {- console.log(- 'Opening directory ' + dirPath + ' not possible for the s3 version.'- );- };-- /!**- * Open the file url in a new tab / window- *!/- openFile = (filePath: string): void => {- console.log('Open file in new tab not supported yet');- // const url = this.getURLforPath(filePath);- // window.open(url, '_blank');- };-- /!**- * Places the application window on top of the other windows- *!/- focusWindow = (): void => {- window.focus();- };-}-*/diff --git a/app/services/platform-facade.ts b/app/services/platform-facade.tsnew file mode 100644index 000000000..01fe2d620--- /dev/null+++ b/app/services/platform-facade.ts@@ -0,0 +1,437 @@+/**+ * TagSpaces - universal file and folder organizer+ * Copyright (C) 2017-present TagSpaces UG (haftungsbeschraenkt)+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License (version 3) as+ * published by the Free Software Foundation.+ *+ * This program is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ * GNU Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <https://www.gnu.org/licenses/>.+ *+ */++import {+ platformHaveObjectStoreSupport,+ platformIsMinio,+ platformGetDirSeparator,+ platformEnableObjectStoreSupport,+ platformDisableObjectStoreSupport,+ platformWatchDirectory,+ platformSetLanguage,+ platformIsWorkerAvailable,+ platformSetZoomFactorElectron,+ platformSetGlobalShortcuts,+ platformShowMainWindow,+ platformQuitApp,+ platformFocusWindow,+ platformGetDevicePaths,+ platformCreateDirectoryTree,+ platformCreateDirectoryIndexInWorker,+ platformCreateThumbnailsInWorker,+ platformGetURLforPath,+ platformListDirectoryPromise,+ platformListObjectStoreDir,+ platformSaveFilePromise,+ platformGetPropertiesPromise,+ platformLoadTextFilePromise,+ platformSaveTextFilePromise,+ platformSaveBinaryFilePromise,+ platformCreateDirectoryPromise,+ platformCopyFilePromise,+ platformRenameFilePromise,+ platformRenameDirectoryPromise,+ platformDeleteFilePromise,+ platformDeleteDirectoryPromise,+ platformOpenDirectory,+ platformShowInFileManager,+ platformOpenFile,+ platformResolveFilePath,+ platformOpenUrl,+ platformSelectFileDialog,+ platformSelectDirectoryDialog,+ platformShareFiles+} from '@tagspaces/tagspaces-platforms/platform-io';+import { Pro } from '../pro';+import { TS } from '-/tagspaces.namespace';++let token: string;++export default class PlatformFacade {+ static enableObjectStoreSupport = (objectStoreConfig: any): Promise<any> =>+ platformEnableObjectStoreSupport(objectStoreConfig);++ static disableObjectStoreSupport = (): void =>+ platformDisableObjectStoreSupport();++ static haveObjectStoreSupport = (): boolean =>+ platformHaveObjectStoreSupport();++ static isMinio = (): boolean => platformIsMinio();++ static getDirSeparator = (): string => platformGetDirSeparator();++ static setLanguage = (language: string): void => {+ platformSetLanguage(language);+ };++ static setZoomFactorElectron = zoomLevel => {+ platformSetZoomFactorElectron(zoomLevel);+ };++ static setGlobalShortcuts = globalShortcutsEnabled => {+ platformSetGlobalShortcuts(globalShortcutsEnabled);+ };++ static showMainWindow = (): void => platformShowMainWindow();++ static quitApp = (): void => platformQuitApp();++ static watchDirectory = (dirPath: string, listener): void =>+ platformWatchDirectory(dirPath, listener);++ static focusWindow = (): void => platformFocusWindow();++ static getDevicePaths = (): Promise<Object> => platformGetDevicePaths();++ /* static getAppDataPath = (): string => nativeAPI.getAppDataPath();++ static getUserHomePath = (): string => nativeAPI.getUserHomePath(); */++ static getURLforPath = (path: string, expirationInSeconds?: number): string =>+ platformGetURLforPath(path, expirationInSeconds);++ static createDirectoryTree = (directoryPath: string): Object =>+ platformCreateDirectoryTree(directoryPath);++ static isWorkerAvailable = (): boolean => {+ if (token !== undefined) {+ return token !== 'not';+ }+ try {+ // eslint-disable-next-line global-require+ const config = require('-/config/config.json');+ if (platformIsWorkerAvailable()) {+ token = config.jwt;+ }+ } catch (e) {+ if (e && e.code && e.code === 'MODULE_NOT_FOUND') {+ console.debug('jwt token not available');+ token = 'not';+ }+ }+ return false;+ };++ static createDirectoryIndexInWorker = (+ directoryPath: string,+ extractText: boolean,+ ignorePatterns: Array<string>+ ): Promise<any> => {+ if (!PlatformFacade.isWorkerAvailable()) {+ return Promise.reject(new Error('no Worker Available!'));+ }+ return platformCreateDirectoryIndexInWorker(+ token,+ directoryPath,+ extractText,+ ignorePatterns+ );+ };++ static createThumbnailsInWorker = (+ tmbGenerationList: Array<string>+ ): Promise<any> => {+ if (!PlatformFacade.isWorkerAvailable()) {+ return Promise.reject(new Error('no Worker Available!'));+ }+ return platformCreateThumbnailsInWorker(token, tmbGenerationList);+ };++ /**+ * Promise === undefined on error+ * @param path+ * @param mode = ['extractTextContent', 'extractThumbPath']+ * @param ignorePatterns+ */+ static listDirectoryPromise = (+ path: string,+ mode = ['extractThumbPath'],+ ignorePatterns: Array<string> = []+ ): Promise<Array<any>> =>+ platformListDirectoryPromise(path, mode, ignorePatterns);++ static listObjectStoreDir = (+ param: Object,+ mode = ['extractThumbPath'],+ ignorePatterns: Array<string> = []+ ): Promise<Array<any>> =>+ platformListObjectStoreDir(param, mode, ignorePatterns);++ static getPropertiesPromise = (path: string): Promise<any> =>+ platformGetPropertiesPromise(path);++ static ignoreByWatcher = (...paths) => {+ if (Pro && Pro.Watcher && Pro.Watcher.isWatching()) {+ for (let i = 0; i < paths.length; i += 1) {+ Pro.Watcher.addToIgnored(paths[i]);+ }+ }+ };++ static deignoreByWatcher = (...paths) => {+ if (Pro && Pro.Watcher && Pro.Watcher.isWatching()) {+ for (let i = 0; i < paths.length; i += 1) {+ Pro.Watcher.removeFromIgnored(paths[i]);+ }+ }+ };++ static createDirectoryPromise = (dirPath: string): Promise<any> => {+ PlatformFacade.ignoreByWatcher(dirPath);++ return platformCreateDirectoryPromise(dirPath).then(result => {+ PlatformFacade.deignoreByWatcher(dirPath);+ /* if (AppConfig.isWin && dirPath.endsWith("\\" + AppConfig.metaFolder)) {+ // hide .ts folder on Windows+ return new Promise((resolve, reject) => {+ winattr.set(dirPath, { hidden: true }, (err) => {+ resolve(dirPath);+ if (err) {+ console.warn("Error setting hidden attr. to dir: " + dirPath);+ } else {+ console.log("Success setting hidden attr. to dir: " + dirPath);+ }+ });+ });+ } */+ return result;+ });+ };++ static copyFilePromise = async (+ sourceFilePath: string,+ targetFilePath: string,+ confirmMessage: string = 'File ' ++ targetFilePath ++ ' exist do you want to override it?'+ ): Promise<any> => {+ const isTargetExist = await PlatformFacade.getPropertiesPromise(+ targetFilePath+ ); // TODO rethink to create PlatformIO.isExistSync function+ if (isTargetExist) {+ // eslint-disable-next-line no-alert+ const confirmOverwrite = window && window.confirm(confirmMessage);+ if (confirmOverwrite === true) {+ return PlatformFacade.copyFilePromiseOverwrite(+ sourceFilePath,+ targetFilePath+ );+ }+ // eslint-disable-next-line prefer-promise-reject-errors+ return Promise.reject(+ 'File "' + targetFilePath + '" exists. Copying failed.'+ );+ }+ return PlatformFacade.copyFilePromiseOverwrite(+ sourceFilePath,+ targetFilePath+ );+ };++ /**+ * @param sourceFilePath+ * @param targetFilePath - if exist overwrite it+ */+ static copyFilePromiseOverwrite = (+ sourceFilePath: string,+ targetFilePath: string+ ): Promise<any> => {+ PlatformFacade.ignoreByWatcher(targetFilePath);++ return platformCopyFilePromise(sourceFilePath, targetFilePath).then(+ result => {+ PlatformFacade.deignoreByWatcher(targetFilePath);+ return result;+ }+ );+ };++ static renameFilePromise = (+ filePath: string,+ newFilePath: string+ ): Promise<any> => {+ PlatformFacade.ignoreByWatcher(filePath, newFilePath);++ return platformRenameFilePromise(filePath, newFilePath).then(result => {+ PlatformFacade.deignoreByWatcher(filePath, newFilePath);+ return result;+ });+ };++ static renameDirectoryPromise = (+ dirPath: string,+ newDirName: string+ ): Promise<any> => {+ PlatformFacade.ignoreByWatcher(dirPath, newDirName);++ return platformRenameDirectoryPromise(dirPath, newDirName).then(result => {+ PlatformFacade.deignoreByWatcher(dirPath, newDirName);+ return result;+ });+ };++ static loadTextFilePromise = (+ filePath: string,+ isPreview?: boolean+ ): Promise<any> => platformLoadTextFilePromise(filePath, isPreview);++ /* static getFileContentPromise = (+ filePath: string,+ type?: string+ ): Promise<Object> => {+ if (objectStoreAPI) {+ const param = {+ path: filePath,+ bucketName: objectStoreAPI.config().bucketName+ };+ return objectStoreAPI.getFileContentPromise(param, type);+ }+ return platformGetFileContentPromise(filePath, type);+ }; */++ static saveFilePromise = (+ filePath: string,+ content: any,+ overwrite: boolean+ ): Promise<any> => {+ PlatformFacade.ignoreByWatcher(filePath);++ return platformSaveFilePromise(filePath, content, overwrite).then(+ result => {+ PlatformFacade.deignoreByWatcher(filePath);+ return result;+ }+ );+ };++ static saveTextFilePlatform = (+ param: any,+ content: string,+ overwrite: boolean+ ): Promise<any> => {+ PlatformFacade.ignoreByWatcher(param.path);++ return PlatformFacade.saveTextFilePromise(+ param.path,+ content,+ overwrite+ ).then(result => {+ PlatformFacade.deignoreByWatcher(param.path);+ return result;+ });+ };++ static saveTextFilePromise = (+ filePath: string,+ content: string,+ overwrite: boolean+ ): Promise<any> => {+ PlatformFacade.ignoreByWatcher(filePath);++ return platformSaveTextFilePromise(filePath, content, overwrite).then(+ result => {+ PlatformFacade.deignoreByWatcher(filePath);+ return result;+ }+ );+ };++ static saveBinaryFilePromise = (+ filePath: string,+ content: any,+ overwrite: boolean,+ onUploadProgress?: (+ progress: any, // ManagedUpload.Progress,+ response: any // AWS.Response<AWS.S3.PutObjectOutput, AWS.AWSError>+ ) => void+ ): Promise<TS.FileSystemEntry> => {+ PlatformFacade.ignoreByWatcher(filePath);++ return platformSaveBinaryFilePromise(+ filePath,+ content,+ overwrite,+ onUploadProgress+ ).then(succeeded => {+ PlatformFacade.deignoreByWatcher(filePath);+ return succeeded;+ });+ };++ static deleteFilePromise = (+ path: string,+ useTrash?: boolean+ ): Promise<any> => {+ PlatformFacade.ignoreByWatcher(path);++ return platformDeleteFilePromise(path, useTrash).then(result => {+ PlatformFacade.deignoreByWatcher(path);+ return result;+ });+ };++ static deleteDirectoryPromise = (+ path: string,+ useTrash?: boolean+ ): Promise<any> => {+ PlatformFacade.ignoreByWatcher(path);++ return platformDeleteDirectoryPromise(path, useTrash).then(result => {+ PlatformFacade.deignoreByWatcher(path);+ return result;+ });+ };++ static openDirectory = (dirPath: string): void =>+ platformOpenDirectory(dirPath);++ static showInFileManager = (dirPath: string): void =>+ platformShowInFileManager(dirPath);++ static openFile = (+ filePath: string,+ warningOpeningFilesExternally: boolean+ ): void => {+ if (+ !warningOpeningFilesExternally ||+ // eslint-disable-next-line no-restricted-globals+ confirm(+ 'Do you really want to open "' ++ filePath ++ '"? Execution of some files can be potentially dangerous!'+ )+ ) {+ platformOpenFile(filePath);+ }+ };++ static resolveFilePath = (filePath: string): string =>+ platformResolveFilePath(filePath);++ static openUrl = (url: string): void => platformOpenUrl(url);++ static selectFileDialog = (): Promise<any> => platformSelectFileDialog();++ static selectDirectoryDialog = (): Promise<any> =>+ platformSelectDirectoryDialog();++ static shareFiles = (files: Array<string>): void => {+ platformShareFiles(files);+ };+}diff --git a/app/services/platform-io.ts b/app/services/platform-io.tsdeleted file mode 100644index 0b952deaa..000000000--- a/app/services/platform-io.ts+++ /dev/null@@ -1,550 +0,0 @@-/**- * TagSpaces - universal file and folder organizer- * Copyright (C) 2017-present TagSpaces UG (haftungsbeschraenkt)- *- * This program is free software: you can redistribute it and/or modify- * it under the terms of the GNU Affero General Public License (version 3) as- * published by the Free Software Foundation.- *- * This program is distributed in the hope that it will be useful,- * but WITHOUT ANY WARRANTY; without even the implied warranty of- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the- * GNU Affero General Public License for more details.- *- * You should have received a copy of the GNU Affero General Public License- * along with this program. If not, see <https://www.gnu.org/licenses/>.- *- */--// import { ManagedUpload } from 'aws-sdk/clients/s3';-// import { configure } from 'tagspaces-common-index/index'-import { Pro } from '../pro';-// @ts-ignore-import NativePlatformIO from './_PLATFORMIO_';-// import ObjectStoreIO from './objectstore-io';-import AppConfig from '-/config';-import { TS } from '-/tagspaces.namespace';-// import settings from '-/reducers/settings';--const nativeAPI: any = new NativePlatformIO();-let objectStoreAPI;-let workerAvailable: boolean;--export default class PlatformIO {- static enableObjectStoreSupport = (- objectStoreConfig: any // S3.Types.ClientConfiguration- ): Promise<any> =>- new Promise((resolve, reject) => {- if (Pro) {- if (- objectStoreAPI !== undefined &&- objectStoreAPI.config().bucketName === objectStoreConfig.bucketName &&- objectStoreAPI.config().secretAccessKey ===- objectStoreConfig.secretAccessKey &&- objectStoreAPI.config().region === objectStoreConfig.region &&- objectStoreAPI.config().endpointURL ===- objectStoreConfig.endpointURL &&- objectStoreAPI.config().accessKeyId === objectStoreConfig.accessKeyId- ) {- resolve();- } else {- import('@tagspaces/tagspaces-platforms/aws')- .then(AWS => {- // { default: IO }) => {- objectStoreAPI = AWS;- objectStoreAPI.configure(objectStoreConfig);- resolve();- return true;- })- .catch(e => {- reject(e);- });- // objectStoreAPI = new ObjectStoreIO();-- /* .then(() => {- resolve();- return true;- })- .catch(e => {- reject(e);- }); */- }- } else {- reject(new Error('ObjectStore support available in the PRO version'));- }- });-- static disableObjectStoreSupport = (): void => {- objectStoreAPI = undefined;- };-- static haveObjectStoreSupport = (): boolean => objectStoreAPI !== undefined;-- static isMinio = (): boolean =>- objectStoreAPI !== undefined && objectStoreAPI.config().endpointURL;-- static getDirSeparator = (): string => // TODO rethink usage for S3 on Win- PlatformIO.haveObjectStoreSupport() ? '/' : AppConfig.dirSeparator;-- /* static initMainMenu = (menuConfig: Array<Object>): void => {- if (nativeAPI.initMainMenu) {- nativeAPI.initMainMenu(menuConfig);- } else {- console.log('initMainMenu not supported');- }- };-- static initTrayMenu = (menuConfig: Array<Object>): void => {- if (nativeAPI.initTrayMenu) {- nativeAPI.initTrayMenu(menuConfig);- } else {- console.log('initTrayMenu not supported');- }- }; */-- static setLanguage = (language: string): void => {- if (nativeAPI.setLanguage) {- nativeAPI.setLanguage(language);- } else {- console.log('setLangauge not supported');- }- };-- static isWorkerAvailable = (): boolean => {- if (workerAvailable !== undefined) {- return workerAvailable;- }- workerAvailable = nativeAPI.isWorkerAvailable();- return workerAvailable;- };-- static setZoomFactorElectron = zoomLevel => {- if (nativeAPI.setZoomFactorElectron) {- nativeAPI.setZoomFactorElectron(zoomLevel);- } else {- console.log('setZoomFactorElectron not supported');- }- };-- static setGlobalShortcuts = globalShortcutsEnabled => {- if (nativeAPI.setGlobalShortcuts) {- nativeAPI.setGlobalShortcuts(globalShortcutsEnabled);- } else {- console.log('setGlobalShortcuts not supported');- }- };-- static showMainWindow = (): void => nativeAPI.showMainWindow();-- static quitApp = (): void => nativeAPI.quitApp();-- static watchDirectory = (dirPath: string, listener): void =>- nativeAPI.watchDirectory(dirPath, listener);-- static focusWindow = (): void => nativeAPI.focusWindow();-- static getDevicePaths = (): Promise<Object> => nativeAPI.getDevicePaths();-- /* static getAppDataPath = (): string => nativeAPI.getAppDataPath();-- static getUserHomePath = (): string => nativeAPI.getUserHomePath(); */-- static getURLforPath = (- path: string,- expirationInSeconds?: number- ): string => {- if (objectStoreAPI) {- const param = {- path,- bucketName: objectStoreAPI.config().bucketName- };- return objectStoreAPI.getURLforPath(param, expirationInSeconds);- }- };-- static createDirectoryTree = (directoryPath: string): Object =>- nativeAPI.createDirectoryTree(directoryPath);-- static createDirectoryIndexInWorker = (- directoryPath: string,- extractText: boolean,- ignorePatterns: Array<string>- ): Promise<any> =>- nativeAPI.createDirectoryIndexInWorker(- directoryPath,- extractText,- ignorePatterns- );-- static createThumbnailsInWorker = (- tmbGenerationList: Array<string>- ): Promise<any> => nativeAPI.createThumbnailsInWorker(tmbGenerationList);-- /**- * Promise === undefined on error- * @param path- * @param mode = ['extractTextContent', 'extractThumbPath']- * @param ignorePatterns- */- static listDirectoryPromise = (- path: string,- mode = ['extractThumbPath'],- ignorePatterns: Array<string> = []- ): Promise<Array<any>> => {- if (objectStoreAPI) {- const param = {- path,- bucketName: objectStoreAPI.config().bucketName- };- return PlatformIO.listObjectStoreDir(param, mode, ignorePatterns);- }- return nativeAPI.listDirectoryPromise(path, mode, ignorePatterns);- };-- static listObjectStoreDir = (- param: Object,- mode = ['extractThumbPath'],- ignorePatterns: Array<string> = []- ): Promise<Array<any>> =>- objectStoreAPI.listDirectoryPromise(param, mode, ignorePatterns);-- static getPropertiesPromise = (path: string): Promise<any> => {- if (objectStoreAPI) {- const param = {- path,- bucketName: objectStoreAPI.config().bucketName- };- return objectStoreAPI.getPropertiesPromise(param);- }- return nativeAPI.getPropertiesPromise(path);- };-- static ignoreByWatcher = (...paths) => {- if (Pro && Pro.Watcher && Pro.Watcher.isWatching()) {- for (let i = 0; i < paths.length; i += 1) {- Pro.Watcher.addToIgnored(paths[i]);- }- }- };-- static deignoreByWatcher = (...paths) => {- if (Pro && Pro.Watcher && Pro.Watcher.isWatching()) {- for (let i = 0; i < paths.length; i += 1) {- Pro.Watcher.removeFromIgnored(paths[i]);- }- }- };-- static createDirectoryPromise = (dirPath: string): Promise<any> => {- if (objectStoreAPI) {- const param = {- path: dirPath,- bucketName: objectStoreAPI.config().bucketName- };- return objectStoreAPI.createDirectoryPromise(param);- }- PlatformIO.ignoreByWatcher(dirPath);-- return nativeAPI.createDirectoryPromise(dirPath).then(result => {- PlatformIO.deignoreByWatcher(dirPath);- return result;- });- };-- static copyFilePromise = async (- sourceFilePath: string,- targetFilePath: string,- confirmMessage: string = 'File ' +- targetFilePath +- ' exist do you want to override it?'- ): Promise<any> => {- const isTargetExist = await PlatformIO.getPropertiesPromise(targetFilePath); // TODO rethink to create PlatformIO.isExistSync function- if (isTargetExist) {- // eslint-disable-next-line no-alert- const confirmOverwrite = window.confirm(confirmMessage);- if (confirmOverwrite === true) {- return PlatformIO.copyFilePromiseOverwrite(- sourceFilePath,- targetFilePath- );- }- // eslint-disable-next-line prefer-promise-reject-errors- return Promise.reject(- 'File "' + targetFilePath + '" exists. Copying failed.'- );- }- return PlatformIO.copyFilePromiseOverwrite(sourceFilePath, targetFilePath);- };-- /**- * @param sourceFilePath- * @param targetFilePath - if exist overwrite it- */- static copyFilePromiseOverwrite = (- sourceFilePath: string,- targetFilePath: string- ): Promise<any> => {- if (objectStoreAPI) {- const param = {- path: sourceFilePath,- bucketName: objectStoreAPI.config().bucketName- };- return objectStoreAPI.copyFilePromise(param, targetFilePath);- }- PlatformIO.ignoreByWatcher(targetFilePath);-- return nativeAPI- .copyFilePromise(sourceFilePath, targetFilePath)- .then(result => {- PlatformIO.deignoreByWatcher(targetFilePath);- return result;- });- };-- static renameFilePromise = (- filePath: string,- newFilePath: string- ): Promise<any> => {- const path = decodeURIComponent(filePath);- const newPath = decodeURIComponent(newFilePath);- if (objectStoreAPI) {- const param = {- path,- bucketName: objectStoreAPI.config().bucketName- };- return objectStoreAPI.renameFilePromise(param, newPath);- // .then(result => result);- }- PlatformIO.ignoreByWatcher(path, newPath);-- return nativeAPI.renameFilePromise(path, newPath).then(result => {- PlatformIO.deignoreByWatcher(path, newPath);- return result;- });- };-- static renameDirectoryPromise = (- dirPath: string,- newDirName: string- ): Promise<any> => {- if (objectStoreAPI) {- const param = {- path: dirPath,- bucketName: objectStoreAPI.config().bucketName- };- return objectStoreAPI.renameDirectoryPromise(param, newDirName);- }- PlatformIO.ignoreByWatcher(dirPath, newDirName);-- return nativeAPI- .renameDirectoryPromise(dirPath, newDirName)- .then(result => {- PlatformIO.deignoreByWatcher(dirPath, newDirName);- return result;- });- };-- static loadTextFilePromise = (- filePath: string,- isPreview?: boolean- ): Promise<any> => {- if (objectStoreAPI) {- const param = {- path: filePath,- bucketName: objectStoreAPI.config().bucketName- };- return objectStoreAPI.loadTextFilePromise(param, isPreview);- }- return nativeAPI.loadTextFilePromise(filePath, isPreview);- };-- static getFileContentPromise = (- filePath: string,- type?: string- ): Promise<Object> => {- if (objectStoreAPI) {- const param = {- path: filePath,- bucketName: objectStoreAPI.config().bucketName- };- return objectStoreAPI.getFileContentPromise(param, type);- }- return nativeAPI.getFileContentPromise(filePath, type);- };-- static saveFilePromise = (- filePath: string,- content: any,- overwrite: boolean- ): Promise<any> => {- if (objectStoreAPI) {- const param = {- path: filePath,- bucketName: objectStoreAPI.config().bucketName- };- return objectStoreAPI.saveFilePromise(param, content, overwrite);- }- PlatformIO.ignoreByWatcher(filePath);-- return nativeAPI- .saveFilePromise(filePath, content, overwrite)- .then(result => {- PlatformIO.deignoreByWatcher(filePath);- return result;- });- };-- static saveTextFilePlatform = (- param: any,- content: string,- overwrite: boolean- ): Promise<any> => {- if (objectStoreAPI) {- return objectStoreAPI.saveTextFilePromise(param, content, overwrite);- }-- PlatformIO.ignoreByWatcher(param.path);-- return nativeAPI- .saveTextFilePromise(param.path, content, overwrite)- .then(result => {- PlatformIO.deignoreByWatcher(param.path);- return result;- });- };-- static saveTextFilePromise = (- filePath: string,- content: string,- overwrite: boolean- ): Promise<any> => {- if (objectStoreAPI) {- const param = {- path: filePath,- bucketName: objectStoreAPI.config().bucketName- };- return objectStoreAPI.saveTextFilePromise(param, content, overwrite);- }-- PlatformIO.ignoreByWatcher(filePath);-- return nativeAPI- .saveTextFilePromise(filePath, content, overwrite)- .then(result => {- PlatformIO.deignoreByWatcher(filePath);- return result;- });- };-- static saveBinaryFilePromise = (- filePath: string,- content: any,- overwrite: boolean,- onUploadProgress?: (- progress: any, // ManagedUpload.Progress,- response: any // AWS.Response<AWS.S3.PutObjectOutput, AWS.AWSError>- ) => void- ): Promise<TS.FileSystemEntry> => {- if (objectStoreAPI) {- const param = {- path: filePath,- bucketName: objectStoreAPI.config().bucketName- };- return objectStoreAPI.saveBinaryFilePromise(- param,- content,- overwrite,- onUploadProgress- );- }- PlatformIO.ignoreByWatcher(filePath);-- return nativeAPI- .saveBinaryFilePromise(filePath, content, overwrite)- .then(succeeded => {- if (succeeded && onUploadProgress) {- onUploadProgress({ key: filePath, loaded: 1, total: 1 }, undefined);- }- PlatformIO.deignoreByWatcher(filePath);- return succeeded;- });- };-- static deleteFilePromise = (- path: string,- useTrash?: boolean- ): Promise<any> => {- if (objectStoreAPI) {- const param = {- path,- bucketName: objectStoreAPI.config().bucketName- };- return objectStoreAPI.deleteFilePromise(param, useTrash);- }- PlatformIO.ignoreByWatcher(path);-- return nativeAPI.deleteFilePromise(path, useTrash).then(result => {- PlatformIO.deignoreByWatcher(path);- return result;- });- };-- static deleteDirectoryPromise = (- path: string,- useTrash?: boolean- ): Promise<any> => {- if (objectStoreAPI) {- const param = {- path,- bucketName: objectStoreAPI.config().bucketName- };- return objectStoreAPI.deleteDirectoryPromise(param, useTrash);- }- PlatformIO.ignoreByWatcher(path);-- return nativeAPI.deleteDirectoryPromise(path, useTrash).then(result => {- PlatformIO.deignoreByWatcher(path);- return result;- });- };-- static openDirectory = (dirPath: string): void =>- nativeAPI.openDirectory(dirPath);-- static showInFileManager = (dirPath: string): void =>- nativeAPI.showInFileManager(dirPath);-- static openFile = (- filePath: string,- warningOpeningFilesExternally: boolean- ): void => {- if (- !warningOpeningFilesExternally ||- confirm(- 'Do you really want to open "' +- filePath +- '"? Execution of some files can be potentially dangerous!'- )- ) {- nativeAPI.openFile(filePath);- }- };-- static resolveFilePath = (filePath: string): string =>- objectStoreAPI ? filePath : nativeAPI.resolveFilePath(filePath);-- static openUrl = (url: string): void => nativeAPI.openUrl(url);-- static selectFileDialog = (): Promise<any> => nativeAPI.selectFileDialog();-- static selectDirectoryDialog = (): Promise<any> =>- nativeAPI.selectDirectoryDialog();-- static shareFiles = (files: Array<string>): void => {- if (AppConfig.isCordova) {- nativeAPI.shareFiles(files);- } else {- console.log('shareFiles is implemented in Cordova only.');- }- };-}diff --git a/app/services/thumbsgenerator.ts b/app/services/thumbsgenerator.tsindex 3c826640e..f7519f558 100644--- a/app/services/thumbsgenerator.ts+++ b/app/services/thumbsgenerator.ts@@ -27,7 +27,7 @@ import {} from '-/utils/paths';import { base64ToArrayBuffer } from '-/utils/misc';import AppConfig from '../config';-import PlatformIO from '../services/platform-io';+import PlatformIO from '../services/platform-facade';import { Pro } from '../pro';const maxSize = AppConfig.maxThumbSize;diff --git a/app/services/utils-io.ts b/app/services/utils-io.tsindex 9ff91c3f1..573becc90 100644--- a/app/services/utils-io.ts+++ b/app/services/utils-io.ts@@ -27,7 +27,7 @@ import {} from '@tagspaces/tagspaces-platforms/indexer';import { saveAs } from 'file-saver';import micromatch from 'micromatch';-import PlatformIO from './platform-io';+import PlatformIO from './platform-facade';import AppConfig from '../config';import {extractTagsAsObjects,@@ -241,7 +241,7 @@ export function prepareDirectoryContent();const isCloudLocation = currentLocation.type === locationType.TYPE_CLOUD;- function useGenerateThumbnails() {+ function genThumbnails() {if (directoryPath.endsWith(AppConfig.dirSeparator + AppConfig.metaFolder) ||directoryPath.endsWith(@@ -264,7 +264,7 @@ export function prepareDirectoryContent(dirEntries,isCloudLocation,settings.showUnixHiddenEntries,- generateThumbnails && useGenerateThumbnails(),+ generateThumbnails && genThumbnails(),true,undefined,settings.enableWS@@ -501,8 +501,8 @@ export function createDirectoryIndex(const dirPath = cleanTrailingDirSeparator(directoryPath);if (enableWS &&- PlatformIO.isWorkerAvailable() &&- !PlatformIO.haveObjectStoreSupport()+ !PlatformIO.haveObjectStoreSupport() &&+ PlatformIO.isWorkerAvailable()) {// Start indexing in worker if not in the object store modereturn PlatformIO.createDirectoryIndexInWorker(diff --git a/app/services/webdav-io.ts b/app/services/webdav-io.tsindex ae0dbc925..d968e35dd 100644--- a/app/services/webdav-io.ts+++ b/app/services/webdav-io.ts@@ -15,7 +15,7 @@* along with this program. If not, see <https://www.gnu.org/licenses/>.**/-import nl from '../utils/js-webdav-client';+/* import nl from '../utils/js-webdav-client';import {extractParentDirectoryPath,normalizePath,@@ -99,11 +99,11 @@ export default class WebDAVIO {return Promise.resolve(paths);};- /* getAppDataPath = (): string =>+ /!* getAppDataPath = (): string =>// TODO'SOMEPATH_FIX_ME';- getUserHomePath = (): string => '/'; */+ getUserHomePath = (): string => '/'; *!/getNameForPath = (entrypath: string, separator = '/') => {let path = entrypath;@@ -133,10 +133,10 @@ export default class WebDAVIO {window.close();};- /**+ /!*** Creates recursively a tree structure for a given directory path* @param {string} dirPath - the full path of the directory for which the tree will be generated- */+ *!/createDirectoryTree = (dirPath: string) => {console.log('Creating directory index for: ' + dirPath);const directoyTree = [];@@ -181,9 +181,9 @@ export default class WebDAVIO {return result;};- /**+ /!*** Creates a list with containing the files and the sub directories of a given directory- */+ *!/listDirectoryPromise = (directoryPath: string,lite: boolean = false@@ -287,7 +287,7 @@ export default class WebDAVIO {Promise.all(metaPromises).then(entriesMeta => {- /* entriesMeta.forEach((entryMeta) => {+ /!* entriesMeta.forEach((entryMeta) => {enhancedEntries.some((enhancedEntry) => {if (enhancedEntry.path === entryMeta.path) {// eslint-disable-next-line no-param-reassign@@ -296,7 +296,7 @@ export default class WebDAVIO {}return false;});- }); */+ }); *!/resolve(enhancedEntries);return true;})@@ -368,9 +368,9 @@ export default class WebDAVIO {resolve(eentry);});- /**+ /!*** Finds out the properties of a file or directory such last modification date or file size- */+ *!/getPropertiesPromise = (filePath: string): Promise<Object> =>new Promise((resolve, reject) => {this.davClient.propfind(@@ -412,15 +412,15 @@ export default class WebDAVIO {);});- /**+ /!*** Load the content of a text file- */+ *!/loadTextFilePromise = (filePath: string): Promise<string> =>this.getFileContentPromise(filePath, 'text');- /**+ /!*** Gets the content of file, useful for binary files- */+ *!/getFileContentPromise = (filePath: string, type): Promise<any> => {console.log('getFileContent file: ' + filePath);return new Promise((resolve, reject) => {@@ -441,9 +441,9 @@ export default class WebDAVIO {});};- /**+ /!*** Persists a given content(binary supported) to a specified filepath- */+ *!/saveFilePromise = (filePath: string,content: string,@@ -502,9 +502,9 @@ export default class WebDAVIO {);});- /**+ /!*** Persists a given text content to a specified filepath- */+ *!/saveTextFilePromise(filePath: string,content: string,@@ -514,9 +514,9 @@ export default class WebDAVIO {return this.saveFilePromise(filePath, content, overWrite, 'text');}- /**+ /!*** Persists a given binary content to a specified filepath- */+ *!/saveBinaryFilePromise(filePath: string,content: string,@@ -526,9 +526,9 @@ export default class WebDAVIO {return this.saveFilePromise(filePath, content, overWrite);}- /**+ /!*** Creates a directory- */+ *!/createDirectoryPromise = (dirPath: string): Promise<Object> => {console.log('Creating directory: ' + dirPath);return new Promise((resolve, reject) => {@@ -550,9 +550,9 @@ export default class WebDAVIO {});};- /**+ /!*** Copies a given file to a specified location- */+ *!/copyFilePromise = (filePath: string,newFilePath: string@@ -588,9 +588,9 @@ export default class WebDAVIO {);};- /**+ /!*** Renames a given file- */+ *!/renameFilePromise = (filePath: string,newFilePath: string@@ -624,9 +624,9 @@ export default class WebDAVIO {});};- /**+ /!*** Rename a directory- */+ *!/renameDirectoryPromise = (dirPath: string,newDirectoryPath: string@@ -662,15 +662,15 @@ export default class WebDAVIO {});};- /**+ /!*** Delete a specified file- */+ *!/deleteFilePromise = (path: string): Promise<Object> =>this.deleteDirectoryPromise(path);- /**+ /!*** Delete a specified directory, the directory should be empty, if the trash can functionality is not enabled- */+ *!/deleteDirectoryPromise = (path: string): Promise<Object> =>new Promise((resolve, reject) => {this.davClient.remove(encodeURI(path), (status, data, headers) => {@@ -690,41 +690,41 @@ export default class WebDAVIO {});});- /**+ /!*** Choosing directory- */+ *!/selectDirectoryDialog = () => {console.log('Selecting directory is not implemented in the web version');};- /**+ /!*** Choosing file- */+ *!/selectFileDialog = () => {console.log('Selecting file not relevant for the web version');};- /**+ /!*** Opens directory in new tab / window- */+ *!/openDirectory = (dirPath: string) => {console.log('Opening directory ' + dirPath + ' not possible for the web version.');};- /**+ /!*** Opens directory in new tab / window, selecting the file- */+ *!/showInFileManager = (filePath: string) => {console.log('Showing item ' + filePath + ' not possible for the web version.');};- /**+ /!*** Open the file url in a new tab / window- */+ *!/openFile = (filePath: string): void => {window.open(filePath, '_blank');};@@ -735,10 +735,10 @@ export default class WebDAVIO {resolveFilePath = (filePath: string): string => filePath;- /**+ /!*** Places the application window on top of the other windows- */+ *!/focusWindow = (): void => {window.focus();};-}+} */diff --git a/app/store/configureStore.dev.ts b/app/store/configureStore.dev.tsindex bfcaa03b6..2672cc4f2 100644--- a/app/store/configureStore.dev.ts+++ b/app/store/configureStore.dev.ts@@ -23,7 +23,7 @@ import thunk from 'redux-thunk';import { createLogger } from 'redux-logger';import rootReducer from '../reducers';import onlineListener from '../services/onlineListener';-import PlatformIO from '-/services/platform-io';+import PlatformIO from '-/services/platform-facade';const configureStore = initialState => {// Redux Configurationdiff --git a/app/store/configureStore.prod.ts b/app/store/configureStore.prod.tsindex 6481079ed..fb65a64d7 100644--- a/app/store/configureStore.prod.ts+++ b/app/store/configureStore.prod.ts@@ -21,7 +21,7 @@ import { persistStore } from 'redux-persist';import thunk from 'redux-thunk';import rootReducer from '../reducers';import onlineListener from '../services/onlineListener';-import PlatformIO from '-/services/platform-io';+import PlatformIO from '-/services/platform-facade';const enhancer = compose(applyMiddleware(thunk) // , router)diff --git a/app/tagspaces.d.ts b/app/tagspaces.d.tsindex 7abcdebf8..8fe400910 100644--- a/app/tagspaces.d.ts+++ b/app/tagspaces.d.ts@@ -52,6 +52,7 @@ declare interface Window {ExtShowAdvancedSearch?: string;ExtUseGenerateThumbnails?: boolean;ExtGeoTaggingFormat?: string;+ ExtDemoUser?: any;__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?: any;plugins?: any; // needed for CordovaresolveLocalFileSystemURL?: any; // needed for Cordovadiff --git a/app/utils/js-webdav-client.js b/app/utils/js-webdav-client.jsindex b7aeb1556..131ee06db 100644--- a/app/utils/js-webdav-client.js+++ b/app/utils/js-webdav-client.js@@ -1,3 +1,4 @@+/*(function(root, factory) {if (typeof module === 'object' && typeof module.exports === 'object') {var v = factory(exports);@@ -22,7 +23,7 @@// https://github.com/Microsoft/TypeScript/issues/5844#issuecomment-161425239Object.defineProperty(exports, '__esModule', { value: true });- /*+ /!** Copyright ©2012 SARA bv, The Netherlands** This file is part of js-webdav-client.@@ -39,33 +40,33 @@** You should have received a copy of the GNU Lesser General Public License* along with js-webdav-client. If not, see <http://www.gnu.org/licenses/>.- */+ *!/('use strict');- /**+ /!*** A webDAV client library for JavaScript* @author Niek Bosch- */+ *!/// Create the namespace if that's not done yetif (nl === undefined) {- /** @namespace */+ /!** @namespace *!/var nl = {};}if (nl.sara === undefined) {- /** @namespace */+ /!** @namespace *!/nl.sara = {};}if (nl.sara.webdav === undefined) {- /** @namespace The entire library is in this namespace. */+ /!** @namespace The entire library is in this namespace. *!/nl.sara.webdav = {};}if (nl.sara.webdav.codec === undefined) {- /** @namespace Holds all the standard codecs for converting properties */+ /!** @namespace Holds all the standard codecs for converting properties *!/nl.sara.webdav.codec = {};}- /*+ /!** Copyright ©2012 SARA bv, The Netherlands** This file is part of js-webdav-client.@@ -82,7 +83,7 @@** You should have received a copy of the GNU Lesser General Public License* along with js-webdav-client. If not, see <http://www.gnu.org/licenses/>.- */+ *!/('use strict');// If nl.sara.webdav.Exception is already defined, we have a namespace clash!@@ -90,13 +91,13 @@throw 'Class name nl.sara.webdav.Exception already taken, could not load JavaScript library for WebDAV connectivity.';}- /**+ /!*** @class An exception* @param {String} [message] Optional; A human readable message* @param {Number} [code] Optional; The error code. It is best to use the class constants to set this.* @property {String} message The exception message* @property {Number} code The exception code- */+ *!/nl.sara.webdav.Exception = function(message, code) {// First define public attributesObject.defineProperty(this, 'message', {@@ -121,9 +122,9 @@}};- /**#@++ /!**#@+* Declaration of the error code constants- */+ *!/nl.sara.webdav.Exception.WRONG_TYPE = 1;nl.sara.webdav.Exception.NAMESPACE_TAKEN = 2;nl.sara.webdav.Exception.UNEXISTING_PROPERTY = 3;@@ -132,21 +133,21 @@nl.sara.webdav.Exception.MISSING_REQUIRED_PARAMETER = 6;nl.sara.webdav.Exception.AJAX_ERROR = 7;nl.sara.webdav.Exception.NOT_IMPLEMENTED = 8;- /**#@-*/+ /!**#@-*!///########################## DEFINE PUBLIC METHODS #############################- /**+ /!*** Overloads the default toString() method so it returns the message of this exception** @returns {String} A string representation of this property- */+ *!/nl.sara.webdav.Exception.prototype.toString = function() {return this.message;};// End of library- /*+ /!** Copyright ©2012 SARA bv, The Netherlands** This file is part of js-webdav-client.@@ -163,7 +164,7 @@** You should have received a copy of the GNU Lesser General Public License* along with js-webdav-client. If not, see <http://www.gnu.org/licenses/>.- */+ *!/('use strict');// If nl.sara.webdav.Ie is already defined, we have a namespace clash!@@ -171,28 +172,28 @@throw 'Class name nl.sara.webdav.Ie already taken, could not load JavaScript library for WebDAV connectivity.';}- /**+ /!*** @class This class holds all IE hacks- */+ *!/nl.sara.webdav.Ie = {};- /**+ /!*** Although this library has no intent to work in IE older than versions 9, it should work in IE and sometimes requires some special attention for this wonderful browser** @var Boolean True if the current browser is IE- */+ *!/nl.sara.webdav.Ie.isIE = false;- /*@cc_on+ /!*@cc_onnl.sara.webdav.Ie.isIE = true;-@*/+@*!///########################## DEFINE PUBLIC METHODS #############################- /**+ /!*** Returns the localName of a DOM Node object** @param {Node} node The node to determine the localname for* @returns {String} The local name- */+ *!/nl.sara.webdav.Ie.getLocalName = function(node) {if (nl.sara.webdav.Ie.isIE && node.baseName) {return node.baseName;@@ -203,7 +204,7 @@ nl.sara.webdav.Ie.isIE = true;// End of library- /*+ /!** Copyright ©2012 SARA bv, The Netherlands** This file is part of js-webdav-client.@@ -220,7 +221,7 @@ nl.sara.webdav.Ie.isIE = true;** You should have received a copy of the GNU Lesser General Public License* along with js-webdav-client. If not, see <http://www.gnu.org/licenses/>.- */+ *!/('use strict');// If nl.sara.webdav.Client is already defined, we have a namespace clash!@@ -231,7 +232,7 @@ nl.sara.webdav.Ie.isIE = true;);}- /**+ /!*** @class Connection to a WebDAV server** @param {Array} [config] A configuration object. It can contain the following fields:@@ -250,7 +251,7 @@ nl.sara.webdav.Ie.isIE = true;* a username and password, you will have to use the* config array, you cannot pass them as extra normal* parameters.- */+ *!/nl.sara.webdav.Client = function(config, useHTTPS, port, defaultHeaders) {// First define private attributesObject.defineProperty(this, '_baseUrl', {@@ -319,24 +320,24 @@ nl.sara.webdav.Ie.isIE = true;}};- /**#@++ /!**#@+* Class constant- */+ *!/nl.sara.webdav.Client.PROPNAME = 1;nl.sara.webdav.Client.ALLPROP = 2;nl.sara.webdav.Client.INFINITY = 'infinity';nl.sara.webdav.Client.FAIL_ON_OVERWRITE = 3;nl.sara.webdav.Client.TRUNCATE_ON_OVERWRITE = 4;nl.sara.webdav.Client.SILENT_OVERWRITE = 5;- /**#@-*/+ /!**#@-*!///########################## DEFINE PUBLIC METHODS #############################- /**+ /!*** Converts a path to the full url (i.e. appends the protocol and host part)** @param {String} path The path on the server* @returns {String} The full url to the path- */+ *!/nl.sara.webdav.Client.prototype.getUrl = function(path) {if (path.substring(0, 1) !== '/') {path = '/' + path;@@ -348,7 +349,7 @@ nl.sara.webdav.Ie.isIE = true;}};- /**+ /!*** Perform a WebDAV PROPFIND request** @param {String} path The path get a PROPFIND for@@ -358,7 +359,7 @@ nl.sara.webdav.Ie.isIE = true;* @param {nl.sara.webdav.Property[]} [include] Optional; An array with Property objects used for the <include> element. This is only used for ALLPROP requests. When omitted, no <include> element is send. See RFC 4918.* @param {Array} headers Optional; Additional headers to set* @returns {nl.sara.webdav.Client} The client itself for chaining methods- */+ *!/nl.sara.webdav.Client.prototype.propfind = function(path,callback,@@ -499,7 +500,7 @@ nl.sara.webdav.Ie.isIE = true;return this;};- /**+ /!*** Perform a WebDAV PROPPATCH request** @param {String} path The path do a PROPPATCH on@@ -508,7 +509,7 @@ nl.sara.webdav.Ie.isIE = true;* @param {nl.sara.webdav.Property[]} [delProps] Optional; The properties to delete. If not set, setProps should be set.* @param {Array} headers Optional; Additional headers to set* @returns {nl.sara.webdav.Client} The client itself for chaining methods- */+ *!/nl.sara.webdav.Client.prototype.proppatch = function(path,callback,@@ -613,7 +614,7 @@ nl.sara.webdav.Ie.isIE = true;return this;};- /**+ /!*** Perform a WebDAV MKCOL request** @param {String} path The path to perform MKCOL on@@ -622,7 +623,7 @@ nl.sara.webdav.Ie.isIE = true;* @param {String} [contenttype='application/xml; charset="utf-8"'] Optional; the content type of the body (i.e. value for the Content-Type header). If omitted, but body is specified, then 'application/xml; charset="utf-8"' is assumed* @param {Array} headers Optional; Additional headers to set* @returns {nl.sara.webdav.Client} The client itself for chaining methods- */+ *!/nl.sara.webdav.Client.prototype.mkcol = function(path,callback,@@ -663,7 +664,7 @@ nl.sara.webdav.Ie.isIE = true;return this;};- /**+ /!*** Perform a WebDAV DELETE request** Because 'delete' is an operator in JavaScript, I had to name this method@@ -674,7 +675,7 @@ nl.sara.webdav.Ie.isIE = true;* @param {Function(status,body,headers)} callback Querying the server is done asynchronously, this callback function is called when the results are in* @param {Array} headers Optional; Additional headers to set* @returns {nl.sara.webdav.Client} The client itself for chaining methods- */+ *!/nl.sara.webdav.Client.prototype.remove = function(path, callback, headers) {if (path === undefined || callback === undefined) {throw new nl.sara.webdav.Exception(@@ -699,14 +700,14 @@ nl.sara.webdav.Ie.isIE = true;return this;};- /**+ /!*** Perform a WebDAV GET request** @param {String} path The path to GET* @param {Function(status,content)} callback Querying the server is done asynchronously, this callback function is called when the results are in* @param {Array} headers Optional; Additional headers to set* @returns {nl.sara.webdav.Client} The client itself for chaining methods- */+ *!/nl.sara.webdav.Client.prototype.get = function(path, callback, headers) {if (path === undefined || callback === undefined) {throw new nl.sara.webdav.Exception(@@ -732,14 +733,14 @@ nl.sara.webdav.Ie.isIE = true;return this;};- /**+ /!*** Perform a WebDAV HEAD request** @param {String} path The path to perform HEAD on* @param {Function(status,body,headers)} callback Querying the server is done asynchronously, this callback function is called when the results are in* @param {Array} headers Optional; Additional headers to set* @returns {nl.sara.webdav.Client} The client itself for chaining methods- */+ *!/nl.sara.webdav.Client.prototype.head = function(path, callback, headers) {if (path === undefined || callback === undefined) {throw new nl.sara.webdav.Exception(@@ -765,7 +766,7 @@ nl.sara.webdav.Ie.isIE = true;return this;};- /**+ /!*** Perform a WebDAV PUT request** @param {String} path The path to perform PUT on@@ -774,7 +775,7 @@ nl.sara.webdav.Ie.isIE = true;* @param {String} [contenttype] Optional; the content type of the body (i.e. value for the Content-Type header).* @param {Array} headers Optional; Additional headers to set* @returns {nl.sara.webdav.Client} The client itself for chaining methods- */+ *!/nl.sara.webdav.Client.prototype.put = function(path,callback,@@ -812,7 +813,7 @@ nl.sara.webdav.Ie.isIE = true;return this;};- /**+ /!*** Perform a WebDAV OPTIONS request** @param {String} path The path to perform OPTIONS on@@ -821,7 +822,7 @@ nl.sara.webdav.Ie.isIE = true;* @param {String} [contenttype='application/x-www-form-urlencoded'] Optional; the content type of the body (i.e. value for the Content-Type header). If omitted, but body is specified, then 'application/x-www-form-urlencoded' is assumed* @param {Array} headers Optional; Additional headers to set* @returns {nl.sara.webdav.Client} The client itself for chaining methods- */+ *!/nl.sara.webdav.Client.prototype.options = function(path,callback,@@ -869,7 +870,7 @@ nl.sara.webdav.Ie.isIE = true;return this;};- /**+ /!*** Perform a WebDAV POST request** @param {String} path The path to perform POST on@@ -878,7 +879,7 @@ nl.sara.webdav.Ie.isIE = true;* @param {String} [contenttype='application/x-www-form-urlencoded'] Optional; the content type of the body (i.e. value for the Content-Type header). If omitted, but body is specified, then 'application/x-www-form-urlencoded' is assumed* @param {Array} headers Optional; Additional headers to set* @returns {nl.sara.webdav.Client} The client itself for chaining methods- */+ *!/nl.sara.webdav.Client.prototype.post = function(path,callback,@@ -926,7 +927,7 @@ nl.sara.webdav.Ie.isIE = true;return this;};- /**+ /!*** Perform a WebDAV COPY request** @param {String} path The path to perform COPY on@@ -936,7 +937,7 @@ nl.sara.webdav.Ie.isIE = true;* @param {String} [depth] Optional; Should be '0' or 'infinity'. This is used in case of a collection; 0 means only copy the collection itself, infinity means copy also everything contained in the collection* @param {Array} headers Optional; Additional headers to set* @returns {nl.sara.webdav.Client} The client itself for chaining methods- */+ *!/nl.sara.webdav.Client.prototype.copy = function(path,callback,@@ -990,7 +991,7 @@ nl.sara.webdav.Ie.isIE = true;return this;};- /**+ /!*** Perform a WebDAV MOVE request** @param {String} path The path to perform MOVE on@@ -999,7 +1000,7 @@ nl.sara.webdav.Ie.isIE = true;* @param {Number} [overwriteMode=SILENT_OVERWRITE] Optional; Specify what to do when destination resource already exists. Should be either FAIL_ON_OVERWRITE, TRUNCATE_ON_OVERWRITE or SILENT_OVERWRITE. The default is SILENT_OVERWRITE.* @param {Array} headers Optional; Additional headers to set* @returns {nl.sara.webdav.Client} The client itself for chaining methods- */+ *!/nl.sara.webdav.Client.prototype.move = function(path,callback,@@ -1045,7 +1046,7 @@ nl.sara.webdav.Ie.isIE = true;return this;};- /**+ /!*** Perform a WebDAV LOCK request** @param {String} path The path to perform LOCK on@@ -1053,7 +1054,7 @@ nl.sara.webdav.Ie.isIE = true;* @param {Document} body Optional; The (XML DOM) document to parse and send as the request body* @param {Array} headers Optional; Additional headers to set* @returns {nl.sara.webdav.Client} The client itself for chaining methods- */+ *!/nl.sara.webdav.Client.prototype.lock = function(path,callback,@@ -1100,7 +1101,7 @@ nl.sara.webdav.Ie.isIE = true;return this;};- /**+ /!*** Perform a WebDAV UNLOCK request** @param {String} path The path to perform UNLOCK on@@ -1108,7 +1109,7 @@ nl.sara.webdav.Ie.isIE = true;* @param {String} lockToken The lock token to unlock* @param {Array} headers Optional; Additional headers to set* @returns {nl.sara.webdav.Client} The client itself for chaining methods- */+ *!/nl.sara.webdav.Client.prototype.unlock = function(path,callback,@@ -1144,7 +1145,7 @@ nl.sara.webdav.Ie.isIE = true;return this;};- /**+ /!*** Prepares a XMLHttpRequest object to be used for an AJAX request** @static@@ -1153,14 +1154,14 @@ nl.sara.webdav.Ie.isIE = true;* @param {Function(status,body,headers)} callback Querying the server is done asynchronously, this callback function is called when the results are in* @param {Array} headers Additional headers to set* @returns {XMLHttpRequest} A prepared XMLHttpRequest- */+ *!/nl.sara.webdav.Client.prototype.getAjax = function(method,url,callback,headers) {- var /** @type XMLHttpRequest */ ajax =+ var /!** @type XMLHttpRequest *!/ ajax =typeof Components !== 'undefined' &&typeof Components.classes !== 'undefined'? Components.classes[@@ -1190,14 +1191,14 @@ nl.sara.webdav.Ie.isIE = true;return ajax;};- /**+ /!*** AJAX request handler. Parses Multistatus (if available) and call a user specified callback function** @static* @param {XMLHttpRequest} ajax The XMLHttpRequest object which performed the request* @param {Function(status,body,headers)} callback Querying the server is done asynchronously, this callback function is called when the results are in* @returns {void}- */+ *!/nl.sara.webdav.Client.ajaxHandler = function(ajax, callback) {if (ajax.readyState === 4) {//if request has completed@@ -1227,7 +1228,7 @@ nl.sara.webdav.Ie.isIE = true;// End of library- /*+ /!** Copyright ©2012 SARA bv, The Netherlands** This file is part of js-webdav-client.@@ -1244,7 +1245,7 @@ nl.sara.webdav.Ie.isIE = true;** You should have received a copy of the GNU Lesser General Public License* along with js-webdav-client. If not, see <http://www.gnu.org/licenses/>.- */+ *!/('use strict');// If nl.sara.webdav.Codec is already defined, we have a namespace clash!@@ -1255,7 +1256,7 @@ nl.sara.webdav.Ie.isIE = true;);}- /**+ /!*** @class A codec transcodes the xml to a custom Javascript object** @param {String} [namespace] Optional; The namespace of the property to transcode@@ -1266,7 +1267,7 @@ nl.sara.webdav.Ie.isIE = true;* @property {String} tagname The tag name of the property to transcode* @property {function(mixed[,xmlDoc])} toXML Function which should return a Document with the NodeList of the documentElement as the value of this property* @property {function(NodeList)} fromXML Functions which should return a representation of xmlvalue- */+ *!/nl.sara.webdav.Codec = function(namespace, tagname, toXML, fromXML) {// First define public attributesObject.defineProperty(this, 'namespace', {@@ -1312,7 +1313,7 @@ nl.sara.webdav.Ie.isIE = true;// End of file- /*+ /!** Copyright ©2012 SARA bv, The Netherlands** This file is part of js-webdav-client.@@ -1329,7 +1330,7 @@ nl.sara.webdav.Ie.isIE = true;** You should have received a copy of the GNU Lesser General Public License* along with js-webdav-client. If not, see <http://www.gnu.org/licenses/>.- */+ *!/('use strict');// If nl.sara.webdav.Multistatus is already defined, we have a namespace clash!@@ -1340,12 +1341,12 @@ nl.sara.webdav.Ie.isIE = true;);}- /**+ /!*** @class WebDAV Multistatus response body** @param {Node} [xmlNode] Optional; the xmlNode describing the multistatus object (should be compliant with RFC 4918)* @property {String} responsedescription The response description- */+ *!/nl.sara.webdav.Multistatus = function(xmlNode) {// First define private attributesObject.defineProperty(this, '_responses', {@@ -1420,12 +1421,12 @@ nl.sara.webdav.Ie.isIE = true;};//########################## DEFINE PUBLIC METHODS #############################- /**+ /!*** Adds a Response** @param {nl.sara.webdav.Response} response The response* @returns {nl.sara.webdav.Multistatus} The multistatus itself for chaining methods- */+ *!/nl.sara.webdav.Multistatus.prototype.addResponse = function(response) {if (!nl.sara.webdav.Ie.isIE &&@@ -1441,28 +1442,28 @@ nl.sara.webdav.Ie.isIE = true;return this;};- /**+ /!*** Gets a Response** @param {String} name The name of the response to get* @returns {nl.sara.webdav.Response} The value of the WebDAV property or undefined if the WebDAV property doesn't exist- */+ *!/nl.sara.webdav.Multistatus.prototype.getResponse = function(name) {return this._responses[name];};- /**+ /!*** Gets the response names** @returns {String[]} The names of the different responses- */+ *!/nl.sara.webdav.Multistatus.prototype.getResponseNames = function() {return Object.keys(this._responses);};// End of library- /*+ /!** Copyright ©2012 SARA bv, The Netherlands** This file is part of js-webdav-client.@@ -1479,7 +1480,7 @@ nl.sara.webdav.Ie.isIE = true;** You should have received a copy of the GNU Lesser General Public License* along with js-webdav-client. If not, see <http://www.gnu.org/licenses/>.- */+ *!/('use strict');// If nl.sara.webdav.Property is already defined, we have a namespace clash!@@ -1490,7 +1491,7 @@ nl.sara.webdav.Ie.isIE = true;);}- /**+ /!*** @class a WebDAV property** @param {Node} [xmlNode] Optional; The xmlNode describing the propstat object (should be compliant with RFC 4918)@@ -1502,7 +1503,7 @@ nl.sara.webdav.Ie.isIE = true;* @property {NodeList} xmlvalue A NodeList with the value of this property* @property {Number} status The (HTTP) status code* @property {String} responsedescription The response description- */+ *!/nl.sara.webdav.Property = function(xmlNode,status,@@ -1592,7 +1593,7 @@ nl.sara.webdav.Ie.isIE = true;});//########################## DEFINE PUBLIC METHODS #############################- /**+ /!*** Adds functions to encode or decode properties** This allows exact control in how Property.xmlvalue is parsed when@@ -1605,7 +1606,7 @@ nl.sara.webdav.Ie.isIE = true;** @param {nl.sara.webdav.Codec} codec The codec to add* @returns {void}- */+ *!/nl.sara.webdav.Property.addCodec = function(codec) {if (typeof codec.namespace !== 'string') {throw new nl.sara.webdav.Exception(@@ -1628,7 +1629,7 @@ nl.sara.webdav.Ie.isIE = true;};};- /**+ /!*** Sets a new value and rebuilds xmlvalue** If a codec for this property is specified, it will use this codec to@@ -1637,7 +1638,7 @@ nl.sara.webdav.Ie.isIE = true;** @param {mixed} value The object to base the xmlvalue on* @return {void}- */+ *!/nl.sara.webdav.Property.prototype.setValueAndRebuildXml = function(value) {// Call codec to automatically create correct 'xmlvalue'var xmlDoc = document.implementation.createDocument(@@ -1665,7 +1666,7 @@ nl.sara.webdav.Ie.isIE = true;}};- /**+ /!*** Parses the xmlvalue** If a codec for this property is specified, it will use this codec to parse@@ -1675,7 +1676,7 @@ nl.sara.webdav.Ie.isIE = true;* codec. If no codec is specified and at least one node in xmlvalue is not a* text or CDATA node, it will return undefined. If xmlvalue is empty, it will* return null.- */+ *!/nl.sara.webdav.Property.prototype.getParsedValue = function() {// Call codec to automatically create correct 'value'if (this._xmlvalue.length > 0) {@@ -1708,12 +1709,12 @@ nl.sara.webdav.Ie.isIE = true;};})(); // Ends the static scope- /**+ /!*** Adds an error to this property** @param {Node} error The Node which represents the error* @returns {Property} Itself for chaining multiple methods- */+ *!/nl.sara.webdav.Property.prototype.addError = function(error) {if (!nl.sara.webdav.Ie.isIE && !(error instanceof Node)) {throw new nl.sara.webdav.Exception(@@ -1725,27 +1726,27 @@ nl.sara.webdav.Ie.isIE = true;return this;};- /**+ /!*** Returns all errors** @returns {array} An array of Node representing the error- */+ *!/nl.sara.webdav.Property.prototype.getErrors = function() {return this._errors;};- /**+ /!*** Overloads the default toString() method so it returns the value of this property** @returns {String} A string representation of this property- */+ *!/nl.sara.webdav.Property.prototype.toString = function() {return this.getParsedValue();};// End of Property- /*+ /!** Copyright ©2012 SARA bv, The Netherlands** This file is part of js-webdav-client.@@ -1762,7 +1763,7 @@ nl.sara.webdav.Ie.isIE = true;** You should have received a copy of the GNU Lesser General Public License* along with js-webdav-client. If not, see <http://www.gnu.org/licenses/>.- */+ *!/('use strict');// If nl.sara.webdav.Response is already defined, we have a namespace clash!@@ -1773,7 +1774,7 @@ nl.sara.webdav.Ie.isIE = true;);}- /**+ /!*** @class a WebDAV response** @param {Node} [xmlNode] Optional; the xmlNode describing the response object (should be compliant with RFC 4918)@@ -1782,7 +1783,7 @@ nl.sara.webdav.Ie.isIE = true;* @property {String} error The error text* @property {String} responsedescription The response description* @property {String} location In case of a 3XX response, the value that would normally be in the 'Location' header- */+ *!/nl.sara.webdav.Response = function(xmlNode) {// First define private attributesObject.defineProperty(this, '_namespaces', {@@ -1914,12 +1915,12 @@ nl.sara.webdav.Ie.isIE = true;};//########################## DEFINE PUBLIC METHODS #############################- /**+ /!*** Adds a WebDAV property** @param {nl.sara.webdav.Property} property The property* @returns {nl.sara.webdav.Response} The response itself for chaining methods- */+ *!/nl.sara.webdav.Response.prototype.addProperty = function(property) {if (!nl.sara.webdav.Ie.isIE &&@@ -1942,13 +1943,13 @@ nl.sara.webdav.Ie.isIE = true;return this;};- /**+ /!*** Gets a WebDAV property** @param {String} namespace The namespace of the WebDAV property* @param {String} prop The WebDAV property to get* @returns {nl.sara.webdav.Property} The value of the WebDAV property or undefined if the WebDAV property doesn't exist- */+ *!/nl.sara.webdav.Response.prototype.getProperty = function(namespace, prop) {if (this._namespaces[namespace] === undefined ||@@ -1959,21 +1960,21 @@ nl.sara.webdav.Ie.isIE = true;return this._namespaces[namespace][prop];};- /**+ /!*** Gets the namespace names** @returns {String[]} The names of the different namespaces- */+ *!/nl.sara.webdav.Response.prototype.getNamespaceNames = function() {return Object.keys(this._namespaces);};- /**+ /!*** Gets the property names of a namespace** @param {String} namespace The namespace of the WebDAV property* @returns {String[]} The names of the different properties of a namespace- */+ *!/nl.sara.webdav.Response.prototype.getPropertyNames = function(namespace) {if (this._namespaces[namespace] === undefined) {return new Array();@@ -1983,7 +1984,7 @@ nl.sara.webdav.Ie.isIE = true;// End of library- /*+ /!** Copyright ©2014 SARA bv, The Netherlands** This file is part of js-webdav-client.@@ -2000,7 +2001,7 @@ nl.sara.webdav.Ie.isIE = true;** You should have received a copy of the GNU Lesser General Public License* along with js-webdav-client. If not, see <http://www.gnu.org/licenses/>.- */+ *!/('use strict');// If nl.sara.webdav.codec.Principal_collection_setCodec is already defined, we have a namespace clash!@@ -2011,10 +2012,10 @@ nl.sara.webdav.Ie.isIE = true;);}- /**+ /!*** @class Adds a codec that converts DAV: principal-collection-setCodec to an array with the uri's object* @augments nl.sara.webdav.Codec- */+ *!/nl.sara.webdav.codec.Principal_collection_setCodec = new nl.sara.webdav.Codec();nl.sara.webdav.codec.Principal_collection_setCodec.namespace = 'DAV:';nl.sara.webdav.codec.Principal_collection_setCodec.tagname =@@ -2063,7 +2064,7 @@ nl.sara.webdav.Ie.isIE = true;);// End of file- /*+ /!** Copyright ©2014 SARA bv, The Netherlands** This file is part of js-webdav-client.@@ -2080,7 +2081,7 @@ nl.sara.webdav.Ie.isIE = true;** You should have received a copy of the GNU Lesser General Public License* along with js-webdav-client. If not, see <http://www.gnu.org/licenses/>.- */+ *!/('use strict');// If nl.sara.webdav.codec.Inherited_acl_setCodec is already defined, we have a namespace clash!@@ -2091,10 +2092,10 @@ nl.sara.webdav.Ie.isIE = true;);}- /**+ /!*** @class Adds a codec that converts DAV: inherited-acl-set to an array with the uri's object* @augments nl.sara.webdav.Codec- */+ *!/nl.sara.webdav.codec.Inherited_acl_setCodec = new nl.sara.webdav.Codec();nl.sara.webdav.codec.Inherited_acl_setCodec.namespace = 'DAV:';nl.sara.webdav.codec.Inherited_acl_setCodec.tagname = 'inherited-acl-set';@@ -2107,7 +2108,7 @@ nl.sara.webdav.Ie.isIE = true;nl.sara.webdav.Property.addCodec(nl.sara.webdav.codec.Inherited_acl_setCodec);// End of file- /*+ /!** Copyright ©2012 SARA bv, The Netherlands** This file is part of js-webdav-client.@@ -2124,7 +2125,7 @@ nl.sara.webdav.Ie.isIE = true;** You should have received a copy of the GNU Lesser General Public License* along with js-webdav-client. If not, see <http://www.gnu.org/licenses/>.- */+ *!/('use strict');// If nl.sara.webdav.Ace is already defined, we have a namespace clash!@@ -2135,7 +2136,7 @@ nl.sara.webdav.Ie.isIE = true;);}- /**+ /!*** @class WebDAV property** @param {Node} [xmlNode] Optional; the xmlNode describing the ace object (should be compliant with RFC 3744)@@ -2144,7 +2145,7 @@ nl.sara.webdav.Ie.isIE = true;* @property {Boolean} isprotected Whether this ACE is protected. Default is false.* @property {Number} grantdeny Grant or deny ACE? Is one of the class constants GRANT or DENY.* @property {mixed} inherited False if the ACE is not inherited, else a String with the path to the parent collection from which this ACE is inherited.- */+ *!/nl.sara.webdav.Ace = function(xmlNode) {// First define private attributesObject.defineProperty(this, '_namespaces', {@@ -2321,16 +2322,16 @@ nl.sara.webdav.Ie.isIE = true;}};- /**#@++ /!**#@+* Class constant- */+ *!/nl.sara.webdav.Ace.GRANT = 1;nl.sara.webdav.Ace.DENY = 2;nl.sara.webdav.Ace.ALL = 3;nl.sara.webdav.Ace.AUTHENTICATED = 4;nl.sara.webdav.Ace.UNAUTHENTICATED = 5;nl.sara.webdav.Ace.SELF = 6;- /**#@-*/+ /!**#@-*!///######################### DEFINE PUBLIC ATTRIBUTES ###########################Object.defineProperty(nl.sara.webdav.Ace.prototype, 'principal', {@@ -2408,12 +2409,12 @@ nl.sara.webdav.Ie.isIE = true;});//########################## DEFINE PUBLIC METHODS #############################- /**+ /!*** Adds a WebDAV privilege** @param {nl.sara.webdav.Privilege} privilege The privilege to add* @returns {nl.sara.webdav.Ace} The ace itself for chaining methods- */+ *!/nl.sara.webdav.Ace.prototype.addPrivilege = function(privilege) {if (!nl.sara.webdav.Ie.isIE &&@@ -2440,13 +2441,13 @@ nl.sara.webdav.Ie.isIE = true;return this;};- /**+ /!*** Gets a WebDAV privilege** @param {String} namespace The namespace of the privilege* @param {String} privilege The privilege to get* @returns {nl.sara.webdav.Privilege} The value of the privilege or undefined if the privilege doesn't exist- */+ *!/nl.sara.webdav.Ace.prototype.getPrivilege = function(namespace, privilege) {if (this._namespaces[namespace] === undefined ||@@ -2457,21 +2458,21 @@ nl.sara.webdav.Ie.isIE = true;return this._namespaces[namespace][privilege];};- /**+ /!*** Gets the namespace names** @returns {String[]} The names of the different namespaces- */+ *!/nl.sara.webdav.Ace.prototype.getNamespaceNames = function() {return Object.keys(this._namespaces);};- /**+ /!*** Gets the privilege names of a namespace** @param {String} namespace The namespace of the privilege* @returns {String[]} The names of the different privilege of a namespace- */+ *!/nl.sara.webdav.Ace.prototype.getPrivilegeNames = function(namespace) {if (this._namespaces[namespace] === undefined) {return new Array();@@ -2481,7 +2482,7 @@ nl.sara.webdav.Ie.isIE = true;// End of library- /*+ /!** Copyright ©2012 SARA bv, The Netherlands** This file is part of js-webdav-client.@@ -2498,7 +2499,7 @@ nl.sara.webdav.Ie.isIE = true;** You should have received a copy of the GNU Lesser General Public License* along with js-webdav-client. If not, see <http://www.gnu.org/licenses/>.- */+ *!/('use strict');// If nl.sara.webdav.Acl is already defined, we have a namespace clash!@@ -2509,11 +2510,11 @@ nl.sara.webdav.Ie.isIE = true;);}- /**+ /!*** @class Access Control List** @param {Node} [xmlNode] Optional; the xmlNode describing the acl object (should be compliant with RFC 3744)- */+ *!/nl.sara.webdav.Acl = function(xmlNode) {// First define private attributesObject.defineProperty(this, '_aces', {@@ -2551,13 +2552,13 @@ nl.sara.webdav.Ie.isIE = true;};//########################## DEFINE PUBLIC METHODS #############################- /**+ /!*** Adds an ACE** @param {nl.sara.webdav.Ace} ace The ACE to add* @param {Number} position Optional; The position to add this ACE. If the position is lower than 1, 0 is assumed, of the position is higher than the current length of the ACL or not specified, the ACE is appended to the end.* @returns {nl.sara.webdav.Acl} The ACL itself for chaining methods- */+ *!/nl.sara.webdav.Acl.prototype.addAce = function(ace, position) {if (!nl.sara.webdav.Ie.isIE && !(ace instanceof nl.sara.webdav.Ace)) {throw new nl.sara.webdav.Exception(@@ -2578,21 +2579,21 @@ nl.sara.webdav.Ie.isIE = true;return this;};- /**+ /!*** Gets the ACL as an array** @returns {nl.sara.webdav.Ace[]} An array of the ACE's in this ACL- */+ *!/nl.sara.webdav.Acl.prototype.getAces = function() {return this._aces;};- /**+ /!*** Gets one ACE from a certain position** @param {Number} position The position of the ACE* @returns {nl.sara.webdav.Ace} The ACE- */+ *!/nl.sara.webdav.Acl.prototype.getAce = function(position) {position = Number(position);if (position < 0 || position >= this.getLength()) {@@ -2604,18 +2605,18 @@ nl.sara.webdav.Ie.isIE = true;return this._aces[position];};- /**+ /!*** Gets the length of the ACL** @returns {Number} The length of the ACL- */+ *!/nl.sara.webdav.Acl.prototype.getLength = function() {return this._aces.length;};// End of library- /*+ /!** Copyright ©2012 SARA bv, The Netherlands** This file is part of js-webdav-client.@@ -2632,7 +2633,7 @@ nl.sara.webdav.Ie.isIE = true;** You should have received a copy of the GNU Lesser General Public License* along with js-webdav-client. If not, see <http://www.gnu.org/licenses/>.- */+ *!/('use strict');// If nl.sara.webdav.codec.AclCodec is already defined, we have a namespace clash!@@ -2643,10 +2644,10 @@ nl.sara.webdav.Ie.isIE = true;);}- /**+ /!*** @class Adds a codec that converts DAV: acl to an nl.sara.webdav.Acl object* @augments nl.sara.webdav.Codec- */+ *!/nl.sara.webdav.codec.AclCodec = new nl.sara.webdav.Codec();nl.sara.webdav.codec.AclCodec.namespace = 'DAV:';nl.sara.webdav.codec.AclCodec.tagname = 'acl';@@ -2776,7 +2777,7 @@ nl.sara.webdav.Ie.isIE = true;// End of file- /*+ /!** Copyright ©2012 SARA bv, The Netherlands** This file is part of js-webdav-client.@@ -2793,14 +2794,14 @@ nl.sara.webdav.Ie.isIE = true;** You should have received a copy of the GNU Lesser General Public License* along with js-webdav-client. If not, see <http://www.gnu.org/licenses/>.- */+ *!/('use strict');- /**+ /!*** This plugin adds acl capabilities to the WebDAV client class- */+ *!/- /**+ /!*** Perform a WebDAV ACL request** @param {String} path The path to perform ACL on@@ -2808,7 +2809,7 @@ nl.sara.webdav.Ie.isIE = true;* @param {nl.sara.webdav.Acl} acl The ACL to submit* @param {Array} headers Optional; Additional headers to set* @returns {nl.sara.webdav.Client} The client itself for chaining methods- */+ *!/nl.sara.webdav.Client.prototype.acl = function(path, callback, acl, headers) {if (path === undefined || callback === undefined) {throw new nl.sara.webdav.Exception(@@ -2856,7 +2857,7 @@ nl.sara.webdav.Ie.isIE = true;return this;};- /**+ /!*** Perform a WebDAV REPORT request** @param {String} path The path to perform REPORT on@@ -2864,7 +2865,7 @@ nl.sara.webdav.Ie.isIE = true;* @param {Document} body The (XML DOM) document to parse and send as the request body* @param {Array} headers Optional; Additional headers to set* @returns {nl.sara.webdav.Client} The client itself for chaining methods- */+ *!/nl.sara.webdav.Client.prototype.report = function(path,callback,@@ -2916,7 +2917,7 @@ nl.sara.webdav.Ie.isIE = true;// End of library- /*+ /!** Copyright ©2014 SURFsara bv, The Netherlands** This file is part of js-webdav-client.@@ -2933,7 +2934,7 @@ nl.sara.webdav.Ie.isIE = true;** You should have received a copy of the GNU Lesser General Public License* along with js-webdav-client. If not, see <http://www.gnu.org/licenses/>.- */+ *!/('use strict');// If nl.sara.webdav.codec.Current_user_privilege_setCodec is already defined, we have a namespace clash!@@ -2944,10 +2945,10 @@ nl.sara.webdav.Ie.isIE = true;);}- /**+ /!*** @class Adds a codec that converts DAV: current-user-privilege-set to an array of privileges* @augments nl.sara.webdav.Codec- */+ *!/nl.sara.webdav.codec.Current_user_privilege_setCodec = new nl.sara.webdav.Codec();nl.sara.webdav.codec.Current_user_privilege_setCodec.namespace = 'DAV:';nl.sara.webdav.codec.Current_user_privilege_setCodec.tagname =@@ -2986,7 +2987,7 @@ nl.sara.webdav.Ie.isIE = true;);// End of file- /*+ /!** Copyright ©2012 SARA bv, The Netherlands** This file is part of js-webdav-client.@@ -3003,7 +3004,7 @@ nl.sara.webdav.Ie.isIE = true;** You should have received a copy of the GNU Lesser General Public License* along with js-webdav-client. If not, see <http://www.gnu.org/licenses/>.- */+ *!/('use strict');// If nl.sara.webdav.Privilege is already defined, we have a namespace clash!@@ -3014,14 +3015,14 @@ nl.sara.webdav.Ie.isIE = true;);}- /**+ /!*** @class WebDAV ACL privilege** @param {Node} [xmlNode] Optional; the xmlNode describing the privilege object* @property {String} namespace The namespace* @property {String} tagname The tag name* @property {NodeList} xmlvalue A NodeList with the value of this privilege- */+ *!/nl.sara.webdav.Privilege = function(xmlNode) {// First define private attributesObject.defineProperty(this, '_xmlvalue', {@@ -3077,7 +3078,7 @@ nl.sara.webdav.Ie.isIE = true;});//########################## DEFINE PUBLIC METHODS #############################- /**+ /!*** Adds functions to encode or decode properties** This allows exact control in how Privilege.xmlvalue is parsed when@@ -3090,7 +3091,7 @@ nl.sara.webdav.Ie.isIE = true;** @param {nl.sara.webdav.Codec} codec The codec to add* @returns {void}- */+ *!/nl.sara.webdav.Privilege.addCodec = function(codec) {if (typeof codec.namespace !== 'string') {throw new nl.sara.webdav.Exception(@@ -3113,7 +3114,7 @@ nl.sara.webdav.Ie.isIE = true;};};- /**+ /!*** Sets a new value and rebuilds xmlvalue** If a codec for this privilege is specified, it will use this codec to@@ -3122,7 +3123,7 @@ nl.sara.webdav.Ie.isIE = true;** @param {mixed} value The object to base the xmlvalue on* @return {void}- */+ *!/nl.sara.webdav.Privilege.prototype.setValueAndRebuildXml = function(value) {// Call codec to automatically create correct 'xmlvalue'var xmlDoc = document.implementation.createDocument(@@ -3150,7 +3151,7 @@ nl.sara.webdav.Ie.isIE = true;}};- /**+ /!*** Parses the xmlvalue** If a codec for this privilege is specified, it will use this codec to parse@@ -3160,7 +3161,7 @@ nl.sara.webdav.Ie.isIE = true;* codec. If no codec is specified and at least one node in xmlvalue is not a* text or CDATA node, it will return undefined. If xmlvalue is empty, it will* return null.- */+ *!/nl.sara.webdav.Privilege.prototype.getParsedValue = function() {// Call codec to automatically create correct 'value'if (this._xmlvalue.length > 0) {@@ -3193,18 +3194,18 @@ nl.sara.webdav.Ie.isIE = true;};})(); // Ends the static scope- /**+ /!*** Overloads the default toString() method so it returns the value of this privilege** @returns {String} A string representation of this privilege- */+ *!/nl.sara.webdav.Privilege.prototype.toString = function() {return this.getParsedValue();};// End of library- /*+ /!** Copyright ©2012 SARA bv, The Netherlands** This file is part of js-webdav-client.@@ -3221,7 +3222,7 @@ nl.sara.webdav.Ie.isIE = true;** You should have received a copy of the GNU Lesser General Public License* along with js-webdav-client. If not, see <http://www.gnu.org/licenses/>.- */+ *!/('use strict');// If nl.sara.webdav.codec.CreationdateCodec is already defined, we have a namespace clash!@@ -3232,10 +3233,10 @@ nl.sara.webdav.Ie.isIE = true;);}- /**+ /!*** @class Adds a codec that converts DAV: creationdate to a Date object* @augments nl.sara.webdav.Codec- */+ *!/nl.sara.webdav.codec.CreationdateCodec = new nl.sara.webdav.Codec();nl.sara.webdav.codec.CreationdateCodec.namespace = 'DAV:';nl.sara.webdav.codec.CreationdateCodec.tagname = 'creationdate';@@ -3260,7 +3261,7 @@ nl.sara.webdav.Ie.isIE = true;nl.sara.webdav.Property.addCodec(nl.sara.webdav.codec.CreationdateCodec);// End of file- /*+ /!** Copyright ©2012 SARA bv, The Netherlands** This file is part of js-webdav-client.@@ -3277,7 +3278,7 @@ nl.sara.webdav.Ie.isIE = true;** You should have received a copy of the GNU Lesser General Public License* along with js-webdav-client. If not, see <http://www.gnu.org/licenses/>.- */+ *!/('use strict');// If nl.sara.webdav.codec.GetcontentlengthCodec is already defined, we have a namespace clash!@@ -3288,10 +3289,10 @@ nl.sara.webdav.Ie.isIE = true;);}- /**+ /!*** @class Adds a codec that converts DAV: getcontentlength to an integer* @augments nl.sara.webdav.Codec- */+ *!/nl.sara.webdav.codec.GetcontentlengthCodec = new nl.sara.webdav.Codec();nl.sara.webdav.codec.GetcontentlengthCodec.namespace = 'DAV:';nl.sara.webdav.codec.GetcontentlengthCodec.tagname = 'getcontentlength';@@ -3316,7 +3317,7 @@ nl.sara.webdav.Ie.isIE = true;nl.sara.webdav.Property.addCodec(nl.sara.webdav.codec.GetcontentlengthCodec);// End of file- /*+ /!** Copyright ©2012 SARA bv, The Netherlands** This file is part of js-webdav-client.@@ -3333,7 +3334,7 @@ nl.sara.webdav.Ie.isIE = true;** You should have received a copy of the GNU Lesser General Public License* along with js-webdav-client. If not, see <http://www.gnu.org/licenses/>.- */+ *!/('use strict');// If nl.sara.webdav.codec.GetlastmodifiedCodec is already defined, we have a namespace clash!@@ -3344,10 +3345,10 @@ nl.sara.webdav.Ie.isIE = true;);}- /**+ /!*** @class Adds a codec that converts DAV: getlastmodified to a Date object* @augments nl.sara.webdav.Codec- */+ *!/nl.sara.webdav.codec.GetlastmodifiedCodec = new nl.sara.webdav.Codec();nl.sara.webdav.codec.GetlastmodifiedCodec.namespace = 'DAV:';nl.sara.webdav.codec.GetlastmodifiedCodec.tagname = 'getlastmodified';@@ -3409,7 +3410,7 @@ nl.sara.webdav.Ie.isIE = true;nl.sara.webdav.Property.addCodec(nl.sara.webdav.codec.GetlastmodifiedCodec);// End of file- /*+ /!** Copyright ©2012 SARA bv, The Netherlands** This file is part of js-webdav-client.@@ -3426,7 +3427,7 @@ nl.sara.webdav.Ie.isIE = true;** You should have received a copy of the GNU Lesser General Public License* along with js-webdav-client. If not, see <http://www.gnu.org/licenses/>.- */+ *!/('use strict');// If nl.sara.webdav.codec.OwnerCodec is already defined, we have a namespace clash!@@ -3437,10 +3438,10 @@ nl.sara.webdav.Ie.isIE = true;);}- /**+ /!*** @class Adds a codec that converts DAV: owner to a Date object* @augments nl.sara.webdav.Codec- */+ *!/nl.sara.webdav.codec.OwnerCodec = new nl.sara.webdav.Codec();nl.sara.webdav.codec.OwnerCodec.namespace = 'DAV:';nl.sara.webdav.codec.OwnerCodec.tagname = 'owner';@@ -3477,7 +3478,7 @@ nl.sara.webdav.Ie.isIE = true;nl.sara.webdav.Property.addCodec(nl.sara.webdav.codec.OwnerCodec);// End of file- /*+ /!** Copyright ©2012 SARA bv, The Netherlands** This file is part of js-webdav-client.@@ -3494,7 +3495,7 @@ nl.sara.webdav.Ie.isIE = true;** You should have received a copy of the GNU Lesser General Public License* along with js-webdav-client. If not, see <http://www.gnu.org/licenses/>.- */+ *!/('use strict');// If it isn't done yet: create a namespace for all the default codecs@@ -3510,17 +3511,17 @@ nl.sara.webdav.Ie.isIE = true;);}- /**+ /!*** @class Adds a codec that converts DAV: resourcetype to a Date object* @augments nl.sara.webdav.Codec- */+ *!/nl.sara.webdav.codec.ResourcetypeCodec = new nl.sara.webdav.Codec();nl.sara.webdav.codec.ResourcetypeCodec.namespace = 'DAV:';nl.sara.webdav.codec.ResourcetypeCodec.tagname = 'resourcetype';- /**+ /!*** Class constants are a way to specify what the resource type is- */+ *!/nl.sara.webdav.codec.ResourcetypeCodec.COLLECTION = 1;nl.sara.webdav.codec.ResourcetypeCodec.UNSPECIFIED = 2;nl.sara.webdav.codec.ResourcetypeCodec.PRINCIPAL = 4;@@ -3560,3 +3561,4 @@ nl.sara.webdav.Ie.isIE = true;exports = nl;return exports;});+*/diff --git a/configs/webpack.config.cordova.dev.babel.js b/configs/webpack.config.cordova.dev.babel.jsindex 9db945d4d..7f58c7a6c 100644--- a/configs/webpack.config.cordova.dev.babel.js+++ b/configs/webpack.config.cordova.dev.babel.js@@ -200,7 +200,7 @@ export default merge(baseConfig, {filename: 'style.css'}),- new webpack.NormalModuleReplacementPlugin(+ /* new webpack.NormalModuleReplacementPlugin(/(.*)_PLATFORMIO_(\.*)/,resource => {resource.request = resource.request.replace(@@ -208,7 +208,7 @@ export default merge(baseConfig, {`${targetPlatform}`);}- ),+ ), */new webpack.NormalModuleReplacementPlugin(/(.*)_PDFDISTLIB_(\.*)/,diff --git a/configs/webpack.config.cordova.prod.babel.js b/configs/webpack.config.cordova.prod.babel.jsindex fc0a7c3e2..045c58182 100644--- a/configs/webpack.config.cordova.prod.babel.js+++ b/configs/webpack.config.cordova.prod.babel.js@@ -220,7 +220,7 @@ export default merge(baseConfig, {filename: 'style.css'}),- new webpack.NormalModuleReplacementPlugin(+ /* new webpack.NormalModuleReplacementPlugin(/(.*)_PLATFORMIO_(\.*)/,resource => {resource.request = resource.request.replace(@@ -228,7 +228,7 @@ export default merge(baseConfig, {`${targetPlatform}`);}- ),+ ), */new webpack.NormalModuleReplacementPlugin(/(.*)_PDFDISTLIB_(\.*)/,diff --git a/configs/webpack.config.main.prod.babel.js b/configs/webpack.config.main.prod.babel.jsindex ba3cec6ac..abddf593f 100644--- a/configs/webpack.config.main.prod.babel.js+++ b/configs/webpack.config.main.prod.babel.js@@ -47,7 +47,7 @@ export default merge(baseConfig, {openAnalyzer: process.env.OPEN_ANALYZER === 'true'}),- new webpack.NormalModuleReplacementPlugin(+ /* new webpack.NormalModuleReplacementPlugin(/(.*)_PLATFORMIO_(\.*)/,resource => {resource.request = resource.request.replace(@@ -55,7 +55,7 @@ export default merge(baseConfig, {`${targetPlatform}`);}- ),+ ), */new webpack.NormalModuleReplacementPlugin(/(.*)_PDFDISTLIB_(\.*)/,diff --git a/configs/webpack.config.renderer.dev.babel.js b/configs/webpack.config.renderer.dev.babel.jsindex 21a80d065..146d9548e 100644--- a/configs/webpack.config.renderer.dev.babel.js+++ b/configs/webpack.config.renderer.dev.babel.js@@ -206,7 +206,7 @@ export default merge(baseConfig, {multiStep: true}),- new webpack.NormalModuleReplacementPlugin(+ /* new webpack.NormalModuleReplacementPlugin(/(.*)_PLATFORMIO_(\.*)/,resource => {resource.request = resource.request.replace(@@ -214,7 +214,7 @@ export default merge(baseConfig, {`${targetPlatform}`);}- ),+ ), */new webpack.NormalModuleReplacementPlugin(/(.*)_PDFDISTLIB_(\.*)/,diff --git a/configs/webpack.config.renderer.dev.dll.babel.js b/configs/webpack.config.renderer.dev.dll.babel.jsindex 2daee5c48..01d5fdf10 100644--- a/configs/webpack.config.renderer.dev.dll.babel.js+++ b/configs/webpack.config.renderer.dev.dll.babel.js@@ -63,7 +63,7 @@ export default merge(baseConfig, {NODE_ENV: 'development'}),- new webpack.NormalModuleReplacementPlugin(+ /* new webpack.NormalModuleReplacementPlugin(/(.*)_PLATFORMIO_(\.*)/,resource => {resource.request = resource.request.replace(@@ -71,7 +71,7 @@ export default merge(baseConfig, {`${targetPlatform}`);}- ),+ ), */new webpack.NormalModuleReplacementPlugin(/(.*)_PDFDISTLIB_(\.*)/,diff --git a/configs/webpack.config.renderer.prod.babel.js b/configs/webpack.config.renderer.prod.babel.jsindex 3ee17cc00..c5c975845 100644--- a/configs/webpack.config.renderer.prod.babel.js+++ b/configs/webpack.config.renderer.prod.babel.js@@ -209,7 +209,7 @@ export default merge(baseConfig, {NODE_ENV: 'production'}),- new webpack.NormalModuleReplacementPlugin(+ /* new webpack.NormalModuleReplacementPlugin(/(.*)_PLATFORMIO_(\.*)/,resource => {resource.request = resource.request.replace(@@ -217,7 +217,7 @@ export default merge(baseConfig, {`${targetPlatform}`);}- ),+ ), */new webpack.NormalModuleReplacementPlugin(/(.*)_PDFDISTLIB_(\.*)/,diff --git a/configs/webpack.config.web.dev.babel.js b/configs/webpack.config.web.dev.babel.jsindex ea88b8992..e3cd2df46 100644--- a/configs/webpack.config.web.dev.babel.js+++ b/configs/webpack.config.web.dev.babel.js@@ -200,7 +200,7 @@ export default merge(baseConfig, {filename: 'style.css'}),- new webpack.NormalModuleReplacementPlugin(+ /* new webpack.NormalModuleReplacementPlugin(/(.*)_PLATFORMIO_(\.*)/,resource => {resource.request = resource.request.replace(@@ -208,7 +208,7 @@ export default merge(baseConfig, {`${targetPlatform}`);}- ),+ ), */new webpack.NormalModuleReplacementPlugin(/(.*)_PDFDISTLIB_(\.*)/,diff --git a/configs/webpack.config.web.prod.babel.js b/configs/webpack.config.web.prod.babel.jsindex bdfe94bcc..6a40e2f9c 100644--- a/configs/webpack.config.web.prod.babel.js+++ b/configs/webpack.config.web.prod.babel.js@@ -220,7 +220,7 @@ export default merge(baseConfig, {filename: 'style.css'}),- new webpack.NormalModuleReplacementPlugin(+ /* new webpack.NormalModuleReplacementPlugin(/(.*)_PLATFORMIO_(\.*)/,resource => {resource.request = resource.request.replace(@@ -228,7 +228,7 @@ export default merge(baseConfig, {`${targetPlatform}`);}- ),+ ), */new webpack.NormalModuleReplacementPlugin(/(.*)_PDFDISTLIB_(\.*)/,diff --git a/package.json b/package.jsonindex 7ad1dd573..41b5de57c 100644--- a/package.json+++ b/package.json@@ -48,7 +48,7 @@"cordova-list-emulators": "cd cordova && cordova run --list --emulator && cd ..","cordova-remove-android": "cd cordova && cordova platform remove android && cd ..","cordova-remove-ios": "cd cordova && cordova platform remove ios && cd ..",- "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",+ "dev": "yarn postinstall-electron-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 && npm install --ignore-scripts=false --verbose --platform=linux --arch=x64 && cd ..",@@ -83,11 +83,12 @@"playwright-show-trace": "npx playwright show-trace \"tests/test-reports/TST0813 - Delete file [web,minio,electron].zip\"","postinstall-cordova-check": "cross-env PD_PLATFORM=cordova node scripts/postinstall.js","postinstall-node-check": "cross-env PD_PLATFORM=node node scripts/postinstall.js",+ "postinstall-electron-check": "cross-env PD_PLATFORM=electron node scripts/postinstall.js","postinstall-web-check": "cross-env PD_PLATFORM=web node scripts/postinstall.js","precommit": "lint-staged","prepare-cordova": "yarn install-ext-web && yarn postinstall-cordova-check && rimraf cordova/www/dist && rimraf cordova/www/node_modules && shx cp -rL app/node_modules cordova/www && shx cp LICENSE.txt cordova/www","prepare-cordova-pro": "yarn install-ext-web && yarn postinstall-cordova-check && rimraf cordova/www/dist && rimraf cordova/www/node_modules && shx cp -rL app/node_modules cordova/www && shx cp extensions/tagspacespro/EULA.txt cordova/www",- "prepare-node": "yarn install-ext-node && yarn postinstall-node-check",+ "prepare-node": "yarn install-ext-node && yarn postinstall-electron-check","prepare-web-pro": "yarn version-meta && yarn install-ext-web && yarn postinstall-web-check && rimraf web/node_modules && shx cp -rL app/node_modules/ web && shx cp extensions/tagspacespro/EULA.txt web && yarn clean-maps && yarn build-web && node scripts/genswconf.js","prettier-check": "prettier --check **/*.{js,json,ts,tsx,yml}","prettier-format": "prettier --write **/*.{js,jsx,json,ts,tsx,yml}",@@ -143,7 +144,7 @@}},"dependencies": {- "@aws-amplify/ui-react": "^1.0.7",+ "@aws-amplify/ui-react": "^1.2.26","@date-io/date-fns": "^1.3.9","@elife/pm2": "^3.6.1","@gorillastack/jmespath": "^1.3.0",@@ -151,9 +152,9 @@"@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.64",- "aws-amplify": "^3.3.27",- "aws-sdk": "^2.984.0",+ "@tagspaces/tagspaces-platforms": "1.2.12",+ "aws-amplify": "^4.3.8",+ "aws-sdk": "^2.1035.0","babel-polyfill": "^6.26.0","bytesize-icons": "^1.4.0","chokidar": "^3.5.2",@@ -208,12 +209,10 @@"redux-thunk": "^2.3.0","semver": "^5.5.0","source-map-support": "^0.5.11",- "sync-fetch": "^0.3.0","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"+ "uuid": "^8.3.2"},"devDependencies": {"@babel/core": "^7.12.9",@@ -329,7 +328,7 @@"sass-loader": "^7.1.0","serve-static": "^1.14.1","sharp": "^0.29.2",- "shelljs": "^0.8.3",+ "shelljs": "^0.8.4","shx": "^0.3.2","sinon": "^2.3.1","style-loader": "^1.1.2",diff --git a/scripts/extconfig-demo-user.js b/scripts/extconfig-demo-user.jsnew file mode 100644index 000000000..bbbe24608--- /dev/null+++ b/scripts/extconfig-demo-user.js@@ -0,0 +1,11 @@+window.ExtLogoURL = 'assets/images/text-logo-dev.svg';+window.ExtShowAdvancedSearch = false;+window.ExtSidebarColor = '#3bc8ff';+window.ExtSidebarSelectionColor = '#85d5f5';+window.ExtLightThemeLightColor = '#a6def4';+window.ExtLightThemeMainColor = '#3bc8ff';+window.ExtDarkThemeLightColor = '#a6def4';+window.ExtDarkThemeMainColor = '#3bc8ff';+window.ExtIsFirstRun = false;+window.ExtUseGenerateThumbnails = true;+window.ExtDemoUser = { email: '[email protected]' };diff --git a/tests/e2e/general.pw.e2e.js b/tests/e2e/general.pw.e2e.jsindex 0038f9aa0..636bbe2e4 100644--- a/tests/e2e/general.pw.e2e.js+++ b/tests/e2e/general.pw.e2e.js@@ -54,6 +54,7 @@ describe('TST51 - Perspective Grid', () => {});it('TST0501 - Create HTML file [electron,web]', async () => {+ await global.client.waitForLoadState('networkidle');await createNewDirectory();await expectElementExist('[data-tid=fsEntryName_' + testFolder + ']',@@ -73,7 +74,7 @@ describe('TST51 - Perspective Grid', () => {await expectElementExist('[data-tid=fsEntryName_' + testFolder + ']',false,- 3000+ 2000);await takeScreenshot('TST0501 after deleteDirectory');});diff --git a/tests/e2e/perspective-grid.pw.e2e.js b/tests/e2e/perspective-grid.pw.e2e.jsindex 0d0a63f32..30a0c34ea 100644--- a/tests/e2e/perspective-grid.pw.e2e.js+++ b/tests/e2e/perspective-grid.pw.e2e.js@@ -163,11 +163,11 @@ describe('TST50 - Perspective Grid', () => {});// This scenario includes "Add tags" && "Remove tags" to be fulfilled- test('TST5005 - Add tags to the selected files [web,minio,electron]', async () => {+ test('TST5005/TST5006 - Add/Remove tags to the selected files [web,minio,electron]', async () => {//click on hide directoriesawait showDirectories(false);- const selectedIds = await selectRowFiles([0, 1, 2]);+ let selectedIds = await selectRowFiles([0, 1, 2]);const tags = ['test-tag1', 'test-tag2'];await AddRemoveTagsToSelectedFiles(tags);@@ -184,18 +184,12 @@ describe('TST50 - Perspective Grid', () => {true);}- });-- /**- * TODO merge with TST5005- */- test('TST5006 - Remove tags from selected files [web,minio,electron]', async () => {//click on hide directoriesawait showDirectories(false);- const selectedIds = await selectRowFiles([0, 1, 2]);+ selectedIds = await selectRowFiles([0, 1, 2]);- const tags = ['test-tag1', 'test-tag2'];+ // tags = ['test-tag1', 'test-tag2'];await AddRemoveTagsToSelectedFiles(tags, false);for (let i = 0; i < selectedIds.length; i++) {diff --git a/yarn.lock b/yarn.lockindex d70c920b4..b29488f58 100644--- a/yarn.lock+++ b/yarn.lock@@ -7,13 +7,13 @@resolved "https://registry.npmjs.org/7zip-bin/-/7zip-bin-5.1.1.tgz"integrity sha512-sAP4LldeWNz0lNzmTird3uWfFDWWTeg6V/MsmyyLR9X1idwKBWIgt/ZvinqQldJm3LecKEs1emkbquO6PCiLVQ==-"@aws-amplify/[email protected]":- version "4.0.18"- resolved "https://registry.npmjs.org/@aws-amplify/analytics/-/analytics-4.0.18.tgz"- integrity sha512-nOwpubv0jGOo0IhzHKIui0kiAEQoZ+PchBv47D4yCffV2pYiMua6NllFsAmxkHLD8EYTg3MYe932HNmM6+gSzg==+"@aws-amplify/[email protected]":+ version "5.1.6"+ resolved "https://registry.yarnpkg.com/@aws-amplify/analytics/-/analytics-5.1.6.tgz#5f24da3f0238664d667bb1005c9eb32bbea6ad18"+ integrity sha512-vaCRe+VGEzZsz7oG79QVGonUU9pwpwIP/IEeB7hDiK69bNb68gPvl7J0SdjrU3a65cQ0NB+D/WQH1oW+7SdqGQ==dependencies:- "@aws-amplify/cache" "3.1.55"- "@aws-amplify/core" "3.8.22"+ "@aws-amplify/cache" "4.0.28"+ "@aws-amplify/core" "4.3.8""@aws-sdk/client-firehose" "3.6.1""@aws-sdk/client-kinesis" "3.6.1""@aws-sdk/client-personalize-events" "3.6.1"@@ -22,59 +22,60 @@lodash "^4.17.20"uuid "^3.2.1"-"@aws-amplify/[email protected]":- version "1.2.30"- resolved "https://registry.npmjs.org/@aws-amplify/api-graphql/-/api-graphql-1.2.30.tgz"- integrity sha512-qbkgKu8e0DD0ZXtMQ5b3uVJlqlC8EeEwhs3zy/BEKz51dUFDI5p6KMUYjbYVw8oNAgsFBXkMGCkhY+etXJNc6w==- dependencies:- "@aws-amplify/api-rest" "1.2.30"- "@aws-amplify/auth" "3.4.30"- "@aws-amplify/cache" "3.1.55"- "@aws-amplify/core" "3.8.22"- "@aws-amplify/pubsub" "3.2.28"- graphql "14.0.0"+"@aws-amplify/[email protected]":+ version "2.2.15"+ resolved "https://registry.yarnpkg.com/@aws-amplify/api-graphql/-/api-graphql-2.2.15.tgz#e80737c0b55dff0c5a2ed1a070fc4bc44b6ca7af"+ integrity sha512-EVoWGsIlyuFfbcH95jLOQkU6MnOxuMy+KlCrM7Rr1ECLfeefxhQn8uOYPDBnlzA3D0Ew6oPv4SiYHA6y14ckJg==+ dependencies:+ "@aws-amplify/api-rest" "2.0.26"+ "@aws-amplify/auth" "4.3.16"+ "@aws-amplify/cache" "4.0.28"+ "@aws-amplify/core" "4.3.8"+ "@aws-amplify/pubsub" "4.2.2"+ graphql "14.5.0"uuid "^3.2.1"zen-observable-ts "0.8.19"-"@aws-amplify/[email protected]":- version "1.2.30"- resolved "https://registry.npmjs.org/@aws-amplify/api-rest/-/api-rest-1.2.30.tgz"- integrity sha512-mvcQ+u+j9dv1v2rSMZ2I31sSimIAi45UXmOTAUAjHEac/u8OYlUyLKG2DcTs1QmFKxNL0CHWqi060amjIIhfYg==+"@aws-amplify/[email protected]":+ version "2.0.26"+ resolved "https://registry.yarnpkg.com/@aws-amplify/api-rest/-/api-rest-2.0.26.tgz#8864e5313be3020c6c0eacf8d7875c2693a93ea4"+ integrity sha512-PM+NP2cr/fPHnEP1dXqw3WPyGBxv06KSl2hhm2d425GjDMsbn99GiCTCK5kYwq6LvTzq/+4JcLcVJrclfFuxgA==dependencies:- "@aws-amplify/core" "3.8.22"- axios "0.21.1"+ "@aws-amplify/core" "4.3.8"+ axios "0.21.4"-"@aws-amplify/[email protected]":- version "3.2.30"- resolved "https://registry.npmjs.org/@aws-amplify/api/-/api-3.2.30.tgz"- integrity sha512-3nTDDNMuWA81kAUc+2eV7aMJSYdWR7z4CtvMB7UGcfiKlXjyCZdXahbYLqyn3UGvNoGkoITD2J7jZ9Rc4ndXJQ==+"@aws-amplify/[email protected]":+ version "4.0.26"+ resolved "https://registry.yarnpkg.com/@aws-amplify/api/-/api-4.0.26.tgz#c337ba7f4b82aa626287f8e2072e06caedbce101"+ integrity sha512-omHphPBGpK5frFc0gKXL2yJCk9bp9Y1MpuSJtjeRdZ46iUJKIpg3tCAiEosqwZKL+boyf4mVkXouybQD8Bk2yw==dependencies:- "@aws-amplify/api-graphql" "1.2.30"- "@aws-amplify/api-rest" "1.2.30"+ "@aws-amplify/api-graphql" "2.2.15"+ "@aws-amplify/api-rest" "2.0.26"-"@aws-amplify/[email protected]":- version "3.4.30"- resolved "https://registry.npmjs.org/@aws-amplify/auth/-/auth-3.4.30.tgz"- integrity sha512-DYBDKU8JGZB8LRSVUj3BUKU/4qOcWkjfYoaVr3T3fvJvE2n2YOcXBVsYXUq24q1UlAuTfIbZQCrsbL7kBAxtAg==+"@aws-amplify/[email protected]":+ version "4.3.16"+ resolved "https://registry.yarnpkg.com/@aws-amplify/auth/-/auth-4.3.16.tgz#e28d58bb207b4e40da6d1d4c1e5ede13fb2a708d"+ integrity sha512-+COay64RXfYGIdWCZDE5phLE0/0JCxXI+6J1lloyDaUspi0kjWBBtxPLj+lTshnSfqTV0xs5pD0mhgKbk3wKjw==dependencies:- "@aws-amplify/cache" "3.1.55"- "@aws-amplify/core" "3.8.22"- amazon-cognito-identity-js "4.6.0"- crypto-js "^3.3.0"+ "@aws-amplify/cache" "4.0.28"+ "@aws-amplify/core" "4.3.8"+ amazon-cognito-identity-js "5.2.3"+ crypto-js "^4.1.1"-"@aws-amplify/[email protected]":- version "3.1.55"- resolved "https://registry.npmjs.org/@aws-amplify/cache/-/cache-3.1.55.tgz"- integrity sha512-3txk5bmC9wtijTaeKoAsype2rZiCfmYk6s8f5oiPo+dIU4a1mIliSHd8IAduKdOIbGdvJbzkzlplqXDQGJD+ng==+"@aws-amplify/[email protected]":+ version "4.0.28"+ resolved "https://registry.yarnpkg.com/@aws-amplify/cache/-/cache-4.0.28.tgz#eba75a5b7e4388fd5486e2213af3f445cbe50b13"+ integrity sha512-AenPVxrJNp9b8BylFzhnzUU0sKwz7a6sP5xt6KPqW+S8L4wGYkWbobYcDvdrnu/SqqJ+S6xOpLWXaeh5Cjzjyw==dependencies:- "@aws-amplify/core" "3.8.22"+ "@aws-amplify/core" "4.3.8"-"@aws-amplify/[email protected]":- version "3.8.22"- resolved "https://registry.npmjs.org/@aws-amplify/core/-/core-3.8.22.tgz"- integrity sha512-Plw0Gr6ik223bjBch/YicIUAhYTIEc8W3hx52u8jawpGMi1bcwmNAiuMMBvlSl50edbhmPgIw24GtyZNHLYDgQ==+"@aws-amplify/[email protected]":+ version "4.3.8"+ resolved "https://registry.yarnpkg.com/@aws-amplify/core/-/core-4.3.8.tgz#d1039a44b0c1a19258e7c283e09168fcc8702c3c"+ integrity sha512-mLoprQKRC55t7Xy4t7Xiro7qJ0z0mdLFAjJyGSiHHNXPbBcD1N5poHm16od/EJc9T7qldnVKvbPjUmxE2hEYrw==dependencies:"@aws-crypto/sha256-js" "1.0.0-alpha.0"+ "@aws-sdk/client-cloudwatch-logs" "3.6.1""@aws-sdk/client-cognito-identity" "3.6.1""@aws-sdk/credential-provider-cognito-identity" "3.6.1""@aws-sdk/types" "3.6.1"@@ -82,36 +83,47 @@universal-cookie "^4.0.4"zen-observable-ts "0.8.19"-"@aws-amplify/[email protected]":- version "2.9.16"- resolved "https://registry.npmjs.org/@aws-amplify/datastore/-/datastore-2.9.16.tgz"- integrity sha512-YCJryQdpqVNF4S2dxkm46PoZ46rW0IJAcb2jHQuuUKa8lFXA5a2q4/cT8pakCGgVjmdaJXNUWlAZQu0CHapgRg==+"@aws-amplify/[email protected]":+ version "3.7.0"+ resolved "https://registry.yarnpkg.com/@aws-amplify/datastore/-/datastore-3.7.0.tgz#85aec95d3becc731226ab4e3ea2c0173ca24fcdd"+ integrity sha512-GXHYu15+zJf3OTlMwuQwpWz9fK7vBem1DiyEtPoIpcVzy7TN/5pjO3cRR/aX6UMuGMww+HnGk713jcFfoz5q9w==dependencies:- "@aws-amplify/api" "3.2.30"- "@aws-amplify/core" "3.8.22"- "@aws-amplify/pubsub" "3.2.28"+ "@aws-amplify/api" "4.0.26"+ "@aws-amplify/auth" "4.3.16"+ "@aws-amplify/core" "4.3.8"+ "@aws-amplify/pubsub" "4.2.2"+ amazon-cognito-identity-js "5.2.3"idb "5.0.6"- immer "8.0.1"+ immer "9.0.6"ulid "2.3.0"uuid "3.3.2"zen-observable-ts "0.8.19"zen-push "0.2.1"-"@aws-amplify/[email protected]":- version "3.3.30"- resolved "https://registry.npmjs.org/@aws-amplify/interactions/-/interactions-3.3.30.tgz"- integrity sha512-RFDU+pptmxR+cPD4JlFz5JMFG5wIbY1M8PIpzOEhWPf1cnpSAVeDq9zvXDnyir45UrLfHxvJ8I3ocAZeAEa51g==+"@aws-amplify/[email protected]":+ version "1.1.8"+ resolved "https://registry.yarnpkg.com/@aws-amplify/geo/-/geo-1.1.8.tgz#ba9c02607e852b0b7aaaa7f4077850b0e5742d26"+ integrity sha512-+iFulG65fbKPz6tBwXYA8Ewx9imQOIx5DookgUZgvHcffzHydREoIBMOIZeMnyJ5ZLKUhMzX1NvUD0GLAE+qmw==dependencies:- "@aws-amplify/core" "3.8.22"+ "@aws-amplify/core" "4.3.8"+ "@aws-sdk/client-location" "3.41.0"+ camelcase-keys "6.2.2"++"@aws-amplify/[email protected]":+ version "4.0.26"+ resolved "https://registry.yarnpkg.com/@aws-amplify/interactions/-/interactions-4.0.26.tgz#7c891556f7bd8c4e693c569602a689fbf156c6dc"+ integrity sha512-JKwzCkQx7PAW+U597v3x2DsKqG8lzW/nc6XlCmxkjKwQrSEJFH2+PrcmxG9zUZkHHwaddnICfPAqEu+cr3ACdg==+ dependencies:+ "@aws-amplify/core" "4.3.8""@aws-sdk/client-lex-runtime-service" "3.6.1"-"@aws-amplify/[email protected]":- version "3.2.30"- resolved "https://registry.npmjs.org/@aws-amplify/predictions/-/predictions-3.2.30.tgz"- integrity sha512-dFv+FC4F/+RiX4m9/+SGWG4UHsssZiHTdrUxjHyXi2/9csFieG4GS78lhcEnk1/k4LGYvYwU0qtMwzO5tcZH4g==+"@aws-amplify/[email protected]":+ version "4.0.26"+ resolved "https://registry.yarnpkg.com/@aws-amplify/predictions/-/predictions-4.0.26.tgz#038512a4d22bc0b00871cc15e12d4be910304f50"+ integrity sha512-6O6WSLwT6nfjiKr3puVZWZSsFTS5xpcSHWyjC8pgRdQ+LMmvnbMacVqeQH+TY2DFF0nGUlt86WoYc7BbVGKHTw==dependencies:- "@aws-amplify/core" "3.8.22"- "@aws-amplify/storage" "3.4.0"+ "@aws-amplify/core" "4.3.8"+ "@aws-amplify/storage" "4.4.9""@aws-sdk/client-comprehend" "3.6.1""@aws-sdk/client-polly" "3.6.1""@aws-sdk/client-rekognition" "3.6.1"@@ -121,59 +133,59 @@"@aws-sdk/util-utf8-node" "3.6.1"uuid "^3.2.1"-"@aws-amplify/[email protected]":- version "3.2.28"- resolved "https://registry.npmjs.org/@aws-amplify/pubsub/-/pubsub-3.2.28.tgz"- integrity sha512-fsOHrs+EfKZDcJpIh9SgUodRR4/fXlQ1SCcc91XaDDcmLKY27TVPzDqIE08MVnqCKYQjCrqnhmzkiFcs3KV0hA==+"@aws-amplify/[email protected]":+ version "4.2.2"+ resolved "https://registry.yarnpkg.com/@aws-amplify/pubsub/-/pubsub-4.2.2.tgz#070951d512f81f2c659ec9bb11e3e96e236814fc"+ integrity sha512-cr3QB2wb8dB8ko1ULQPVrjr+diTBszUg1EVRWf73Dsk/NzQS6sL1nDisw5+AeAco1wBw19F+Y3LdNRwcblelMA==dependencies:- "@aws-amplify/auth" "3.4.30"- "@aws-amplify/cache" "3.1.55"- "@aws-amplify/core" "3.8.22"+ "@aws-amplify/auth" "4.3.16"+ "@aws-amplify/cache" "4.0.28"+ "@aws-amplify/core" "4.3.8"graphql "14.0.0"paho-mqtt "^1.1.0"uuid "^3.2.1"zen-observable-ts "0.8.19"-"@aws-amplify/[email protected]":- version "3.4.0"- resolved "https://registry.npmjs.org/@aws-amplify/storage/-/storage-3.4.0.tgz"- integrity sha512-76SzmtbTAQo/CZgzJKe9O/DwSyi2JVG8LAwau57wK/8Sn8QHwpycf1QI6BEedFcaopvtVqPWumzmLoWzL9kLjA==+"@aws-amplify/[email protected]":+ version "4.4.9"+ resolved "https://registry.yarnpkg.com/@aws-amplify/storage/-/storage-4.4.9.tgz#2bc83e6a59fa1b5ca4812cd3c96cc06594f05538"+ integrity sha512-FS9hGHOq1mv+rcZ+KND90FGfx5bcwmkN5rE0u2xiUvfJqlEApPhq5AARZwNfRVQP6rB0swpG9eFXVHwvlU2cGg==dependencies:- "@aws-amplify/core" "3.8.22"+ "@aws-amplify/core" "4.3.8""@aws-sdk/client-s3" "3.6.1""@aws-sdk/s3-request-presigner" "3.6.1""@aws-sdk/util-create-request" "3.6.1""@aws-sdk/util-format-url" "3.6.1"- axios "0.21.1"+ axios "0.21.4"events "^3.1.0"sinon "^7.5.0"-"@aws-amplify/[email protected]":- version "1.2.0"- resolved "https://registry.npmjs.org/@aws-amplify/ui-components/-/ui-components-1.2.0.tgz"- integrity sha512-qr06y/Hy/tTVHtJoPq5/0Qt7Xh8c5lN96ILHwEAVPz1M8YhuRwzh2lIBU0ijoDKAhVfY2QRq1PNV0VSj0BGBeA==+"@aws-amplify/[email protected]":+ version "1.9.6"+ resolved "https://registry.yarnpkg.com/@aws-amplify/ui-components/-/ui-components-1.9.6.tgz#42ec42a71396ccb6144f1d5dd8332393e0e62bf8"+ integrity sha512-NfN6mlDrS41qCQ7BNe/bTDQXAG4kUhRnXIQCbi9oY/lnWImtKLrx37zVieuXi5PF/coVCMT+M1OfBbo8LM2wiw==dependencies:qrcode "^1.4.4"uuid "^8.2.0"-"@aws-amplify/ui-react@^1.0.7":- version "1.0.7"- resolved "https://registry.npmjs.org/@aws-amplify/ui-react/-/ui-react-1.0.7.tgz"- integrity sha512-NDTwhlOA/ZT3Rw6CvNpsk2jy/pfTnhQYkvOS7Opcxl9bYuHy4hK2Ah5Qufb65cjM2Rt8fOqGkGfP36vpzDgIZw==+"@aws-amplify/ui-react@^1.2.26":+ version "1.2.26"+ resolved "https://registry.yarnpkg.com/@aws-amplify/ui-react/-/ui-react-1.2.26.tgz#4cb2b8f39537d99a505fcaa6f761d92834496c53"+ integrity sha512-GHKUewYORX7WH8jOrcTyst3B7j8+oj/bNLcEBrLMtbKUXBL9ui7z7LgsuTDVY9nrXb2HL3z1oc8gTEDbUJrtQA==dependencies:- "@aws-amplify/ui-components" "1.2.0"+ "@aws-amplify/ui-components" "1.9.6"-"@aws-amplify/[email protected]":- version "2.0.2"- resolved "https://registry.npmjs.org/@aws-amplify/ui/-/ui-2.0.2.tgz"- integrity sha512-OLdZmUCVK29+JV8PrkgVPjg+GIFtBnNjhC0JSRgrps+ynOFkibMQQPKeFXlTYtlukuCuepCelPSkjxvhcLq2ZA==+"@aws-amplify/[email protected]":+ version "2.0.3"+ resolved "https://registry.yarnpkg.com/@aws-amplify/ui/-/ui-2.0.3.tgz#7a88a416942aedbc6a6ea9850a2c98693c80340a"+ integrity sha512-LxbmPGD/S4bWzUh2PXMPSt/rXeUVJTsCbMpwH18XilTkXgOSmKH/eyVZNXUBY8C/xwqjzMTC68EtTlsM1DCq1A==-"@aws-amplify/[email protected]":- version "2.2.30"- resolved "https://registry.npmjs.org/@aws-amplify/xr/-/xr-2.2.30.tgz"- integrity sha512-BzfpLoiucYR4YoJIctFBoRefwcx77GKCOf5Pas8LnVIVvizozv1FIZZ3FE2lhNqd3fvd2+e1ogh/Y+chohDTGQ==+"@aws-amplify/[email protected]":+ version "3.0.26"+ resolved "https://registry.yarnpkg.com/@aws-amplify/xr/-/xr-3.0.26.tgz#9f5c3af4a0af68ec52262c9e62bfa1ba14605275"+ integrity sha512-WHqAt/06KdeHUok5TxmMwN+Y5OlYfsVX0PHodMX8HMsDNOhsIYnP5K5jFLUwyNXExbTQ4lwORNEvrbRrO/qHhQ==dependencies:- "@aws-amplify/core" "3.8.22"+ "@aws-amplify/core" "4.3.8""@aws-crypto/crc32@^1.0.0":version "1.0.0"@@ -189,6 +201,27 @@dependencies:tslib "^1.11.1"+"@aws-crypto/ie11-detection@^2.0.0":+ version "2.0.0"+ resolved "https://registry.yarnpkg.com/@aws-crypto/ie11-detection/-/ie11-detection-2.0.0.tgz#bb6c2facf8f03457e949dcf0921477397ffa4c6e"+ integrity sha512-pkVXf/dq6PITJ0jzYZ69VhL8VFOFoPZLZqtU/12SGnzYuJOOGNfF41q9GxdI1yqC8R13Rq3jOLKDFpUJFT5eTA==+ dependencies:+ tslib "^1.11.1"++"@aws-crypto/[email protected]":+ version "2.0.0"+ resolved "https://registry.yarnpkg.com/@aws-crypto/sha256-browser/-/sha256-browser-2.0.0.tgz#741c9024df55ec59b51e5b1f5d806a4852699fb5"+ integrity sha512-rYXOQ8BFOaqMEHJrLHul/25ckWH6GTJtdLSajhlqGMx0PmSueAuvboCuZCTqEKlxR8CQOwRarxYMZZSYlhRA1A==+ dependencies:+ "@aws-crypto/ie11-detection" "^2.0.0"+ "@aws-crypto/sha256-js" "^2.0.0"+ "@aws-crypto/supports-web-crypto" "^2.0.0"+ "@aws-crypto/util" "^2.0.0"+ "@aws-sdk/types" "^3.1.0"+ "@aws-sdk/util-locate-window" "^3.0.0"+ "@aws-sdk/util-utf8-browser" "^3.0.0"+ tslib "^1.11.1"+"@aws-crypto/sha256-browser@^1.0.0":version "1.1.0"resolved "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-1.1.0.tgz"@@ -211,6 +244,15 @@"@aws-sdk/util-utf8-browser" "^1.0.0-alpha.0"tslib "^1.9.3"+"@aws-crypto/[email protected]", "@aws-crypto/sha256-js@^2.0.0":+ version "2.0.0"+ resolved "https://registry.yarnpkg.com/@aws-crypto/sha256-js/-/sha256-js-2.0.0.tgz#f1f936039bdebd0b9e2dd834d65afdc2aac4efcb"+ integrity sha512-VZY+mCY4Nmrs5WGfitmNqXzaE873fcIZDu54cbaDaaamsaTOP1DBImV9F4pICc3EHjQXujyE8jig+PFCaew9ig==+ dependencies:+ "@aws-crypto/util" "^2.0.0"+ "@aws-sdk/types" "^3.1.0"+ tslib "^1.11.1"+"@aws-crypto/sha256-js@^1.0.0", "@aws-crypto/sha256-js@^1.1.0":version "1.1.0"resolved "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-1.1.0.tgz"@@ -227,6 +269,30 @@dependencies:tslib "^1.11.1"+"@aws-crypto/supports-web-crypto@^2.0.0":+ version "2.0.0"+ resolved "https://registry.yarnpkg.com/@aws-crypto/supports-web-crypto/-/supports-web-crypto-2.0.0.tgz#fd6cde30b88f77d5a4f57b2c37c560d918014f9e"+ integrity sha512-Ge7WQ3E0OC7FHYprsZV3h0QIcpdyJLvIeg+uTuHqRYm8D6qCFJoiC+edSzSyFiHtZf+NOQDJ1q46qxjtzIY2nA==+ dependencies:+ tslib "^1.11.1"++"@aws-crypto/util@^2.0.0":+ version "2.0.0"+ resolved "https://registry.yarnpkg.com/@aws-crypto/util/-/util-2.0.0.tgz#17ba6f83c7e447b70fc24b84c5f6714d1e329f4a"+ integrity sha512-YDooyH83m2P5A3h6lNH7hm6mIP93sU/dtzRmXIgtO4BCB7SvtX8ysVKQAE8tVky2DQ3HHxPCjNTuUe7YoAMrNQ==+ dependencies:+ "@aws-sdk/types" "^3.1.0"+ "@aws-sdk/util-utf8-browser" "^3.0.0"+ tslib "^1.11.1"++"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/abort-controller/-/abort-controller-3.40.0.tgz#e17299776782483835439d9b1b5300add24adc3f"+ integrity sha512-S7LzLvNuwuf0q7r4q7zqGzxd/W2xYsn8cpZ90MMb3ObolhbkLySrikUJujmXae8k+2/KFCOr+FVC0YLrATSUgQ==+ dependencies:+ "@aws-sdk/types" "3.40.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/abort-controller/-/abort-controller-3.6.1.tgz"@@ -250,6 +316,43 @@dependencies:tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.6.1"+ resolved "https://registry.yarnpkg.com/@aws-sdk/client-cloudwatch-logs/-/client-cloudwatch-logs-3.6.1.tgz#5e8dba495a2ba9a901b0a1a2d53edef8bd452398"+ integrity sha512-QOxIDnlVTpnwJ26Gap6RGz61cDLH6TKrIp30VqwdMeT1pCGy8mn9rWln6XA+ymkofHy/08RfpGp+VN4axwd4Lw==+ dependencies:+ "@aws-crypto/sha256-browser" "^1.0.0"+ "@aws-crypto/sha256-js" "^1.0.0"+ "@aws-sdk/config-resolver" "3.6.1"+ "@aws-sdk/credential-provider-node" "3.6.1"+ "@aws-sdk/fetch-http-handler" "3.6.1"+ "@aws-sdk/hash-node" "3.6.1"+ "@aws-sdk/invalid-dependency" "3.6.1"+ "@aws-sdk/middleware-content-length" "3.6.1"+ "@aws-sdk/middleware-host-header" "3.6.1"+ "@aws-sdk/middleware-logger" "3.6.1"+ "@aws-sdk/middleware-retry" "3.6.1"+ "@aws-sdk/middleware-serde" "3.6.1"+ "@aws-sdk/middleware-signing" "3.6.1"+ "@aws-sdk/middleware-stack" "3.6.1"+ "@aws-sdk/middleware-user-agent" "3.6.1"+ "@aws-sdk/node-config-provider" "3.6.1"+ "@aws-sdk/node-http-handler" "3.6.1"+ "@aws-sdk/protocol-http" "3.6.1"+ "@aws-sdk/smithy-client" "3.6.1"+ "@aws-sdk/types" "3.6.1"+ "@aws-sdk/url-parser" "3.6.1"+ "@aws-sdk/url-parser-native" "3.6.1"+ "@aws-sdk/util-base64-browser" "3.6.1"+ "@aws-sdk/util-base64-node" "3.6.1"+ "@aws-sdk/util-body-length-browser" "3.6.1"+ "@aws-sdk/util-body-length-node" "3.6.1"+ "@aws-sdk/util-user-agent-browser" "3.6.1"+ "@aws-sdk/util-user-agent-node" "3.6.1"+ "@aws-sdk/util-utf8-browser" "3.6.1"+ "@aws-sdk/util-utf8-node" "3.6.1"+ tslib "^2.0.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.6.1.tgz"@@ -440,6 +543,43 @@"@aws-sdk/util-utf8-node" "3.6.1"tslib "^2.0.0"+"@aws-sdk/[email protected]":+ version "3.41.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/client-location/-/client-location-3.41.0.tgz#2a32b05ad393bdb5a51d680790e69dc53d4a85cf"+ integrity sha512-PnRj3UM2DSBtH6kk2d08oVzzPdHnyPAFkIXpSuMo+3xtIPC7BysSFcFC8T7qVbngFGTgakjTYNfzc+6D3ZELbg==+ dependencies:+ "@aws-crypto/sha256-browser" "2.0.0"+ "@aws-crypto/sha256-js" "2.0.0"+ "@aws-sdk/client-sts" "3.41.0"+ "@aws-sdk/config-resolver" "3.40.0"+ "@aws-sdk/credential-provider-node" "3.41.0"+ "@aws-sdk/fetch-http-handler" "3.40.0"+ "@aws-sdk/hash-node" "3.40.0"+ "@aws-sdk/invalid-dependency" "3.40.0"+ "@aws-sdk/middleware-content-length" "3.40.0"+ "@aws-sdk/middleware-host-header" "3.40.0"+ "@aws-sdk/middleware-logger" "3.40.0"+ "@aws-sdk/middleware-retry" "3.40.0"+ "@aws-sdk/middleware-serde" "3.40.0"+ "@aws-sdk/middleware-signing" "3.40.0"+ "@aws-sdk/middleware-stack" "3.40.0"+ "@aws-sdk/middleware-user-agent" "3.40.0"+ "@aws-sdk/node-config-provider" "3.40.0"+ "@aws-sdk/node-http-handler" "3.40.0"+ "@aws-sdk/protocol-http" "3.40.0"+ "@aws-sdk/smithy-client" "3.41.0"+ "@aws-sdk/types" "3.40.0"+ "@aws-sdk/url-parser" "3.40.0"+ "@aws-sdk/util-base64-browser" "3.37.0"+ "@aws-sdk/util-base64-node" "3.37.0"+ "@aws-sdk/util-body-length-browser" "3.37.0"+ "@aws-sdk/util-body-length-node" "3.37.0"+ "@aws-sdk/util-user-agent-browser" "3.40.0"+ "@aws-sdk/util-user-agent-node" "3.40.0"+ "@aws-sdk/util-utf8-browser" "3.37.0"+ "@aws-sdk/util-utf8-node" "3.37.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/client-personalize-events/-/client-personalize-events-3.6.1.tgz"@@ -641,6 +781,79 @@fast-xml-parser "^3.16.0"tslib "^2.0.0"+"@aws-sdk/[email protected]":+ version "3.41.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/client-sso/-/client-sso-3.41.0.tgz#33d49e926ef6fff08278b256454241f1f982d8de"+ integrity sha512-xDvcy7wv3KdHhOpl5fZN+Ydw+dHBmsCZwMFI1ZdJVCSGO+ZKgl5KVWi1LCif6vjZP1pUuGl44oDOZz1ACqOzTg==+ dependencies:+ "@aws-crypto/sha256-browser" "2.0.0"+ "@aws-crypto/sha256-js" "2.0.0"+ "@aws-sdk/config-resolver" "3.40.0"+ "@aws-sdk/fetch-http-handler" "3.40.0"+ "@aws-sdk/hash-node" "3.40.0"+ "@aws-sdk/invalid-dependency" "3.40.0"+ "@aws-sdk/middleware-content-length" "3.40.0"+ "@aws-sdk/middleware-host-header" "3.40.0"+ "@aws-sdk/middleware-logger" "3.40.0"+ "@aws-sdk/middleware-retry" "3.40.0"+ "@aws-sdk/middleware-serde" "3.40.0"+ "@aws-sdk/middleware-stack" "3.40.0"+ "@aws-sdk/middleware-user-agent" "3.40.0"+ "@aws-sdk/node-config-provider" "3.40.0"+ "@aws-sdk/node-http-handler" "3.40.0"+ "@aws-sdk/protocol-http" "3.40.0"+ "@aws-sdk/smithy-client" "3.41.0"+ "@aws-sdk/types" "3.40.0"+ "@aws-sdk/url-parser" "3.40.0"+ "@aws-sdk/util-base64-browser" "3.37.0"+ "@aws-sdk/util-base64-node" "3.37.0"+ "@aws-sdk/util-body-length-browser" "3.37.0"+ "@aws-sdk/util-body-length-node" "3.37.0"+ "@aws-sdk/util-user-agent-browser" "3.40.0"+ "@aws-sdk/util-user-agent-node" "3.40.0"+ "@aws-sdk/util-utf8-browser" "3.37.0"+ "@aws-sdk/util-utf8-node" "3.37.0"+ tslib "^2.3.0"++"@aws-sdk/[email protected]":+ version "3.41.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/client-sts/-/client-sts-3.41.0.tgz#38bde53d0cd1254894d0b27b4cc3f056f5d2692e"+ integrity sha512-XTjmr53kMbXuVhH3B+g2jEYuhNralptsMSd4RcSHCB7BX1NmAMnMFKKTmVlmc5NizWi4x1CzExu86Q0YSqp0og==+ dependencies:+ "@aws-crypto/sha256-browser" "2.0.0"+ "@aws-crypto/sha256-js" "2.0.0"+ "@aws-sdk/config-resolver" "3.40.0"+ "@aws-sdk/credential-provider-node" "3.41.0"+ "@aws-sdk/fetch-http-handler" "3.40.0"+ "@aws-sdk/hash-node" "3.40.0"+ "@aws-sdk/invalid-dependency" "3.40.0"+ "@aws-sdk/middleware-content-length" "3.40.0"+ "@aws-sdk/middleware-host-header" "3.40.0"+ "@aws-sdk/middleware-logger" "3.40.0"+ "@aws-sdk/middleware-retry" "3.40.0"+ "@aws-sdk/middleware-sdk-sts" "3.40.0"+ "@aws-sdk/middleware-serde" "3.40.0"+ "@aws-sdk/middleware-signing" "3.40.0"+ "@aws-sdk/middleware-stack" "3.40.0"+ "@aws-sdk/middleware-user-agent" "3.40.0"+ "@aws-sdk/node-config-provider" "3.40.0"+ "@aws-sdk/node-http-handler" "3.40.0"+ "@aws-sdk/protocol-http" "3.40.0"+ "@aws-sdk/smithy-client" "3.41.0"+ "@aws-sdk/types" "3.40.0"+ "@aws-sdk/url-parser" "3.40.0"+ "@aws-sdk/util-base64-browser" "3.37.0"+ "@aws-sdk/util-base64-node" "3.37.0"+ "@aws-sdk/util-body-length-browser" "3.37.0"+ "@aws-sdk/util-body-length-node" "3.37.0"+ "@aws-sdk/util-user-agent-browser" "3.40.0"+ "@aws-sdk/util-user-agent-node" "3.40.0"+ "@aws-sdk/util-utf8-browser" "3.37.0"+ "@aws-sdk/util-utf8-node" "3.37.0"+ entities "2.2.0"+ fast-xml-parser "3.19.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/client-textract/-/client-textract-3.6.1.tgz"@@ -716,6 +929,16 @@tslib "^2.0.0"uuid "^3.0.0"+"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/config-resolver/-/config-resolver-3.40.0.tgz#d7bd3180aebced797800661a2ed778a5db8ac7e5"+ integrity sha512-QYy6J2k31QL6J74hPBfptnLW1kQYdN+xjwH4UQ1mv7EUhRoJN9ZY2soStJowFy4at6IIOOVWbyG5dyqvrbEovg==+ dependencies:+ "@aws-sdk/signature-v4" "3.40.0"+ "@aws-sdk/types" "3.40.0"+ "@aws-sdk/util-config-provider" "3.40.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/config-resolver/-/config-resolver-3.6.1.tgz"@@ -735,6 +958,15 @@"@aws-sdk/types" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-env/-/credential-provider-env-3.40.0.tgz#0ca7611f13520dd6654e8eac7fa3e767d027ede6"+ integrity sha512-qHZdf2vxhzZkSygjw2I4SEYFL2dMZxxYvO4QlkqQouKY81OVxs/j69oiNCjPasQzGz5jaZZKI8xEAIfkSyr1lg==+ dependencies:+ "@aws-sdk/property-provider" "3.40.0"+ "@aws-sdk/types" "3.40.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.6.1.tgz"@@ -744,6 +976,17 @@"@aws-sdk/types" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-imds/-/credential-provider-imds-3.40.0.tgz#7c324eff731f85d4d40763c484e78673aa5dedfb"+ integrity sha512-Ty/wVa+BQrCFrP06AGl5S1CeLifDt68YrlYXUnkRn603SX4DvxBgVO7XFeDH58G8ziDCiqxfmVl4yjbncPPeSw==+ dependencies:+ "@aws-sdk/node-config-provider" "3.40.0"+ "@aws-sdk/property-provider" "3.40.0"+ "@aws-sdk/types" "3.40.0"+ "@aws-sdk/url-parser" "3.40.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/credential-provider-imds/-/credential-provider-imds-3.6.1.tgz"@@ -753,6 +996,21 @@"@aws-sdk/types" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.41.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.41.0.tgz#a212444f6e4d03c0683ed1b6479bca72eab782dd"+ integrity sha512-98CGEHg7Tb6HxK5ZIdbAcijvD3IpLe0ddse1xMe/Ilhjz770FS/L2UNprOP6PZTqrSfBffiMrvfThUSuUaTlIQ==+ dependencies:+ "@aws-sdk/credential-provider-env" "3.40.0"+ "@aws-sdk/credential-provider-imds" "3.40.0"+ "@aws-sdk/credential-provider-sso" "3.41.0"+ "@aws-sdk/credential-provider-web-identity" "3.41.0"+ "@aws-sdk/property-provider" "3.40.0"+ "@aws-sdk/shared-ini-file-loader" "3.37.0"+ "@aws-sdk/types" "3.40.0"+ "@aws-sdk/util-credentials" "3.37.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.6.1.tgz"@@ -763,6 +1021,23 @@"@aws-sdk/types" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.41.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-node/-/credential-provider-node-3.41.0.tgz#ab4fc10ea6c7a2b42c903f4bdb68fea8ada5f5dd"+ integrity sha512-5FW6+wNJgyDCsbAd+mLm/1DBTDkyIYOMVzcxbr6Vi3pM4UrMFdeLdAP62edYW8usg78Xg+c6vaAoEv/M3zkS0Q==+ dependencies:+ "@aws-sdk/credential-provider-env" "3.40.0"+ "@aws-sdk/credential-provider-imds" "3.40.0"+ "@aws-sdk/credential-provider-ini" "3.41.0"+ "@aws-sdk/credential-provider-process" "3.40.0"+ "@aws-sdk/credential-provider-sso" "3.41.0"+ "@aws-sdk/credential-provider-web-identity" "3.41.0"+ "@aws-sdk/property-provider" "3.40.0"+ "@aws-sdk/shared-ini-file-loader" "3.37.0"+ "@aws-sdk/types" "3.40.0"+ "@aws-sdk/util-credentials" "3.37.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.6.1.tgz"@@ -777,6 +1052,17 @@"@aws-sdk/types" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-process/-/credential-provider-process-3.40.0.tgz#b4f16e43ca9c855002e833ac9dc8e409b3c7ca23"+ integrity sha512-qsaNCDesW2GasDbzpeOA371gxugi05JWxt3EKonLbUfkGKBK7kmmL6EgLIxZuNm2/Ve4RS07PKp8yBGm4xIx9w==+ dependencies:+ "@aws-sdk/property-provider" "3.40.0"+ "@aws-sdk/shared-ini-file-loader" "3.37.0"+ "@aws-sdk/types" "3.40.0"+ "@aws-sdk/util-credentials" "3.37.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.6.1.tgz"@@ -788,6 +1074,27 @@"@aws-sdk/types" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.41.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.41.0.tgz#66c83a776ec42f08b4ea6d619351f0240d57f76a"+ integrity sha512-9s7SWu3RVIQ/MTcBCt35EMzxNQm3avivrbpSOKfJwxR5L+oNKPsV+gSqMlkNZGwOVJyUicIsZGcq/4ON6CjrOg==+ dependencies:+ "@aws-sdk/client-sso" "3.41.0"+ "@aws-sdk/property-provider" "3.40.0"+ "@aws-sdk/shared-ini-file-loader" "3.37.0"+ "@aws-sdk/types" "3.40.0"+ "@aws-sdk/util-credentials" "3.37.0"+ tslib "^2.3.0"++"@aws-sdk/[email protected]":+ version "3.41.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.41.0.tgz#7f0e9cc5650eaf6ac32ef359fb0e0dea2ca0ce78"+ integrity sha512-VqvVoEh9C8xTXl4stKyJC5IKQhS8g1Gi5k6B9HPHLIxFRRfKxkE73DT4pMN6npnus7o0yi0MTFGQFQGYSrFO2g==+ dependencies:+ "@aws-sdk/property-provider" "3.40.0"+ "@aws-sdk/types" "3.40.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/eventstream-marshaller/-/eventstream-marshaller-3.6.1.tgz"@@ -835,6 +1142,17 @@"@aws-sdk/types" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/fetch-http-handler/-/fetch-http-handler-3.40.0.tgz#5e6ecfb7fe1f32a5709e4e9c13b0536073477737"+ integrity sha512-w1HiZromoU+/bbEo89uO81l6UO/M+c2uOMnXntZqe6t3ZHUUUo3AbvhKh0QGVFqRQa+Oi0+95KqWmTHa72/9Iw==+ dependencies:+ "@aws-sdk/protocol-http" "3.40.0"+ "@aws-sdk/querystring-builder" "3.40.0"+ "@aws-sdk/types" "3.40.0"+ "@aws-sdk/util-base64-browser" "3.37.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/fetch-http-handler/-/fetch-http-handler-3.6.1.tgz"@@ -856,6 +1174,15 @@"@aws-sdk/types" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/hash-node/-/hash-node-3.40.0.tgz#bf4d31a41652cbc3c937055087c80096cfab67ae"+ integrity sha512-yOXXK85DdGDktdnQtXgMdaVKii4wtMjEhJ1mrvx2A9nMFNaPhxvERkVVIUKSWlJRa9ZujOw5jWOx8d2R51/Kjg==+ dependencies:+ "@aws-sdk/types" "3.40.0"+ "@aws-sdk/util-buffer-from" "3.37.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/hash-node/-/hash-node-3.6.1.tgz"@@ -873,6 +1200,14 @@"@aws-sdk/types" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/invalid-dependency/-/invalid-dependency-3.40.0.tgz#023e37abfb2882676c3cef02da630342634aa429"+ integrity sha512-axIWtDwCBDDqEgAJipX1FB1ZNpWYXquVwKDMo+7G+ftPBZ4FEq4M1ELhXJL3hhNJ9ZmCQzv+4F6Wnt8dwuzUaQ==+ dependencies:+ "@aws-sdk/types" "3.40.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/invalid-dependency/-/invalid-dependency-3.6.1.tgz"@@ -881,6 +1216,13 @@"@aws-sdk/types" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.37.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/is-array-buffer/-/is-array-buffer-3.37.0.tgz#aa87619f8172b1a2a7ac8d573032025d98ae6c50"+ integrity sha512-XLjA/a6AuGnCvcJZLsMTy2jxF2upgGhqCCkoIJgLlzzXHSihur13KcmPvW/zcaGnCRj0SvKWXiJHl4vDlW75VQ==+ dependencies:+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/is-array-buffer/-/is-array-buffer-3.6.1.tgz"@@ -917,6 +1259,15 @@"@aws-sdk/util-arn-parser" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-content-length/-/middleware-content-length-3.40.0.tgz#affe235fc0eb43c7b8e21189f85a238fdd0b4c3f"+ integrity sha512-sybAJb8v7I/vvL08R3+TI/XDAg9gybQTZ2treC24Ap4+jAOz4QBTHJPMKaUlEeFlMUcq4rj6/u2897ebYH6opw==+ dependencies:+ "@aws-sdk/protocol-http" "3.40.0"+ "@aws-sdk/types" "3.40.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/middleware-content-length/-/middleware-content-length-3.6.1.tgz"@@ -945,6 +1296,15 @@"@aws-sdk/types" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-host-header/-/middleware-host-header-3.40.0.tgz#a6a1d52ab0da7f8e65a199c27d71750f8329eccc"+ integrity sha512-/wocR7JFOLM7/+BQM1DgAd6KCFYcdxYu1P7AhI451GlVNuYa5f89zh7p0gt3SRC6monI5lXgpL7RudhDm8fTrA==+ dependencies:+ "@aws-sdk/protocol-http" "3.40.0"+ "@aws-sdk/types" "3.40.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.6.1.tgz"@@ -962,6 +1322,14 @@"@aws-sdk/types" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-logger/-/middleware-logger-3.40.0.tgz#29d9616bd39dafa1493cef333a32363e4df2c607"+ integrity sha512-19kx0Xg5ymVRKoupmhdmfTBkROcv3DZj508agpyG2YAo0abOObMlIP4Jltg0VD4PhNjGzNh0jFGJnvhjdwv4/A==+ dependencies:+ "@aws-sdk/types" "3.40.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.6.1.tgz"@@ -970,6 +1338,17 @@"@aws-sdk/types" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-retry/-/middleware-retry-3.40.0.tgz#5cffe046b1fd208a62a09495de6659be48ef86f3"+ integrity sha512-SMUJrukugLL7YJE5X8B2ToukxMWMPwnf7jAFr84ptycCe8bdWv8x8klQ3EtVWpyqochtNlbTi6J/tTQBniUX7A==+ dependencies:+ "@aws-sdk/protocol-http" "3.40.0"+ "@aws-sdk/service-error-classification" "3.40.0"+ "@aws-sdk/types" "3.40.0"+ tslib "^2.3.0"+ uuid "^8.3.2"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/middleware-retry/-/middleware-retry-3.6.1.tgz"@@ -992,6 +1371,26 @@"@aws-sdk/util-arn-parser" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-sdk-sts/-/middleware-sdk-sts-3.40.0.tgz#3efefc29176d5078915b61d17105f8bbee86ff5e"+ integrity sha512-TcrbCvj1PkabFZiNczT3yePZtuEm2fAIw1OVnQyLcF2KW+p62Hv5YkK4MPOfx3LA/0lzjOUO1RNl2x7gzV443Q==+ dependencies:+ "@aws-sdk/middleware-signing" "3.40.0"+ "@aws-sdk/property-provider" "3.40.0"+ "@aws-sdk/protocol-http" "3.40.0"+ "@aws-sdk/signature-v4" "3.40.0"+ "@aws-sdk/types" "3.40.0"+ tslib "^2.3.0"++"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-serde/-/middleware-serde-3.40.0.tgz#90124ff60a7f23963bbcd00a5cc95862b29dddd9"+ integrity sha512-uOWfZjlAoBy6xPqp0d4ka83WNNbEVCWn9WwfqBUXThyoTdTooYSpXe5y2YzN0BJa8b+tEZTyWpgamnBpFLp47g==+ dependencies:+ "@aws-sdk/types" "3.40.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/middleware-serde/-/middleware-serde-3.6.1.tgz"@@ -1000,6 +1399,17 @@"@aws-sdk/types" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-signing/-/middleware-signing-3.40.0.tgz#bcbf5558a91db85a87918d5861ce98f306e40a88"+ integrity sha512-RqK5nPbfma0qInMvjtpVkDYY/KkFS6EKlOv3DWTdxbXJ4YuOxgKiuUromhmBUoyjFag0JO7LUWod07H+/DawoA==+ dependencies:+ "@aws-sdk/property-provider" "3.40.0"+ "@aws-sdk/protocol-http" "3.40.0"+ "@aws-sdk/signature-v4" "3.40.0"+ "@aws-sdk/types" "3.40.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/middleware-signing/-/middleware-signing-3.6.1.tgz"@@ -1018,6 +1428,13 @@"@aws-sdk/types" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-stack/-/middleware-stack-3.40.0.tgz#5aa614e49a4fc76cc63986fb45302f7afab6db87"+ integrity sha512-hby9HvESUYJxpdALX+6Dn2LPmS5jtMVurGB/+j3MWOvIcDYB4bcSXgVRvXzYnTKwbSupIdbX9zOE2ZAx2SJpUQ==+ dependencies:+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/middleware-stack/-/middleware-stack-3.6.1.tgz"@@ -1025,6 +1442,15 @@dependencies:tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.40.0.tgz#bf03d2deddc00689c85e7eadd9b4e02f24b61c08"+ integrity sha512-dzC2fxWnanetFJ1oYgil8df3N36bR1yc/OCOpbdfQNiUk1FrXiCXqH5rHNO8zCvnwJAj8GHFwpFGd9a2Qube2w==+ dependencies:+ "@aws-sdk/protocol-http" "3.40.0"+ "@aws-sdk/types" "3.40.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.6.1.tgz"@@ -1034,6 +1460,16 @@"@aws-sdk/types" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/node-config-provider/-/node-config-provider-3.40.0.tgz#54a8abc4f6d78503093b270e6dff3d6174c59f95"+ integrity sha512-AmokjgUDECG8osoMfdRsPNweqI+L1pn4bYGk5iTLmzbBi0o4ot0U1FdX8Rf0qJZZwS4t1TXc3s8/PDVknmPxKg==+ dependencies:+ "@aws-sdk/property-provider" "3.40.0"+ "@aws-sdk/shared-ini-file-loader" "3.37.0"+ "@aws-sdk/types" "3.40.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/node-config-provider/-/node-config-provider-3.6.1.tgz"@@ -1044,6 +1480,17 @@"@aws-sdk/types" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/node-http-handler/-/node-http-handler-3.40.0.tgz#26491f11dabbd673c6318376d06af154adc123df"+ integrity sha512-qjda6IbxDhbYr8NHmrMurKkbjgLUkfTMVgagDErDK24Nm3Dn5VaO6J4n6c0Q4OLHlmFaRcUfZSTrOo5DAubqCw==+ dependencies:+ "@aws-sdk/abort-controller" "3.40.0"+ "@aws-sdk/protocol-http" "3.40.0"+ "@aws-sdk/querystring-builder" "3.40.0"+ "@aws-sdk/types" "3.40.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/node-http-handler/-/node-http-handler-3.6.1.tgz"@@ -1055,6 +1502,14 @@"@aws-sdk/types" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/property-provider/-/property-provider-3.40.0.tgz#243cb1e87e36b1123ddc66d40d344e7580f80470"+ integrity sha512-Mx4lkShjsYRwW9ujHA1pcnuubrWQ4kF5/DXWNfUiXuSIO/0Lojp1qTLheyBm4vzkJIlx5umyP6NvRAUkEHSN4Q==+ dependencies:+ "@aws-sdk/types" "3.40.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/property-provider/-/property-provider-3.6.1.tgz"@@ -1063,6 +1518,14 @@"@aws-sdk/types" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/protocol-http/-/protocol-http-3.40.0.tgz#ce6c7170a59e0a0eb63df5cd7cec87fe05bae680"+ integrity sha512-f4ea7/HZkjpvGBrnRIuzc/bhrExWrgDv7eulj4htPukZGHdTqSJD3Jk8lEXWvFuX2vUKQDGhEhCDsqup7YWJQQ==+ dependencies:+ "@aws-sdk/types" "3.40.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/protocol-http/-/protocol-http-3.6.1.tgz"@@ -1071,6 +1534,15 @@"@aws-sdk/types" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/querystring-builder/-/querystring-builder-3.40.0.tgz#f57212e60519d2d79ce6173cbe00fbe17a69bc0d"+ integrity sha512-gO24oipnNaxJRBXB7lhLfa96vIMOd8gtMBqJTjelTjS2e1ZP1YY12CNKKTWwafSk8Ge021erZAG/YTOaXGpv+g==+ dependencies:+ "@aws-sdk/types" "3.40.0"+ "@aws-sdk/util-uri-escape" "3.37.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/querystring-builder/-/querystring-builder-3.6.1.tgz"@@ -1080,6 +1552,14 @@"@aws-sdk/util-uri-escape" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/querystring-parser/-/querystring-parser-3.40.0.tgz#5a5ba9c095ad3125a0daf37c33ed1cc8a600d53e"+ integrity sha512-XZIyaKQIiZAM6zelCBcsLHhVDOLafi7XIOd3jy6SymGN8ajj3HqUJ/vdQ5G6ISTk18OrqgqcCOI9oNzv+nrBcA==+ dependencies:+ "@aws-sdk/types" "3.40.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/querystring-parser/-/querystring-parser-3.6.1.tgz"@@ -1101,11 +1581,23 @@"@aws-sdk/util-format-url" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/service-error-classification/-/service-error-classification-3.40.0.tgz#c98cbb781bd50e5d90649742ff954d754201c44d"+ integrity sha512-c8btKmkvjXczWudXubGdbO3JgmjySBUVC/gCrZDNfwNGsG8RYJJQYYcnmt1gWjelUZsgMDl/2PIzxTlxVF91rA==+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/service-error-classification/-/service-error-classification-3.6.1.tgz"integrity sha512-kZ7ZhbrN1f+vrSRkTJvXsu7BlOyZgym058nPA745+1RZ1Rtv4Ax8oknf2RvJyj/1qRUi8LBaAREjzQ3C8tmLBA==+"@aws-sdk/[email protected]":+ version "3.37.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/shared-ini-file-loader/-/shared-ini-file-loader-3.37.0.tgz#ca595d9745150f46805f68be6a6c1607d618ad94"+ integrity sha512-+vRBSlfa48R9KL7DpQt3dsu5/+5atjRgoCISblWo3SLpjrx41pKcjKneo7a1u0aP1Xc2oG2TfIyqTWZuOXsmEQ==+ dependencies:+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/shared-ini-file-loader/-/shared-ini-file-loader-3.6.1.tgz"@@ -1113,6 +1605,17 @@dependencies:tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/signature-v4/-/signature-v4-3.40.0.tgz#9de1b4e1130f68394df3232882805896c2d20e45"+ integrity sha512-Q1GNZJRCS3W2qsRtDsX/b6EOSfMXfr6TW46N3LnLTGYZ3KAN2SOSJ1DsW59AuGpEZyRmOhJ9L/Q5U403+bZMXQ==+ dependencies:+ "@aws-sdk/is-array-buffer" "3.37.0"+ "@aws-sdk/types" "3.40.0"+ "@aws-sdk/util-hex-encoding" "3.37.0"+ "@aws-sdk/util-uri-escape" "3.37.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/signature-v4/-/signature-v4-3.6.1.tgz"@@ -1124,6 +1627,15 @@"@aws-sdk/util-uri-escape" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.41.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/smithy-client/-/smithy-client-3.41.0.tgz#61154b4813a01dc079e7083805a20e1bc05d3199"+ integrity sha512-ldhS0Pf3v6yHCd//kk5DvKcdyeUkKEwxNDRanAp+ekTW68J3XcYgKaPC9sNDhVTDH1zrywTvtEz5zWHEvXjQow==+ dependencies:+ "@aws-sdk/middleware-stack" "3.40.0"+ "@aws-sdk/types" "3.40.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/smithy-client/-/smithy-client-3.6.1.tgz"@@ -1133,6 +1645,11 @@"@aws-sdk/types" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/types/-/types-3.40.0.tgz#a9d7926fcb9b699bc46be975033559d2293e60d1"+ integrity sha512-KpILcfvRaL88TLvo3SY4OuCCg90SvcNLPyjDwUuBqiOyWODjrKShHtAPJzej4CLp92lofh+ul0UnBfV9Jb/5PA==+"@aws-sdk/[email protected]", "@aws-sdk/types@^3.1.0":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/types/-/types-3.6.1.tgz"@@ -1153,6 +1670,15 @@tslib "^1.8.0"url "^0.11.0"+"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/url-parser/-/url-parser-3.40.0.tgz#9ccd00a2026605d5eaef630e94b6632cc9598ec3"+ integrity sha512-HwNV+HX7bHgLk5FzTOgdXANsC0SeVz5PMC4Nh+TLz2IoeQnrw4H8dsA4YNonncjern5oC5veKRjQeOoCL5SlSQ==+ dependencies:+ "@aws-sdk/querystring-parser" "3.40.0"+ "@aws-sdk/types" "3.40.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/url-parser/-/url-parser-3.6.1.tgz"@@ -1169,6 +1695,13 @@dependencies:tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.37.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/util-base64-browser/-/util-base64-browser-3.37.0.tgz#4bf105de91e5e17ded644557dac6851c30e992d2"+ integrity sha512-o4s/rHVm5k8eC/T7grJQINyYA/mKfDmEWKMA9wk5iBroXlI2rUm7x649TBk5hzoddufk/mffEeNz/1wM7yTmlg==+ dependencies:+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/util-base64-browser/-/util-base64-browser-3.6.1.tgz"@@ -1176,6 +1709,14 @@dependencies:tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.37.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/util-base64-node/-/util-base64-node-3.37.0.tgz#81ff164d227db8faeb910af33ff5f861269d6d67"+ integrity sha512-1UPxly1GPrGZtlIWvbNCDIAund4Oyp8cFi9neA43TeNACvrmEQu/nG01pDbOoo0ENoVSVJrNAVBeqKEpqjH2GA==+ dependencies:+ "@aws-sdk/util-buffer-from" "3.37.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/util-base64-node/-/util-base64-node-3.6.1.tgz"@@ -1184,6 +1725,13 @@"@aws-sdk/util-buffer-from" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.37.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/util-body-length-browser/-/util-body-length-browser-3.37.0.tgz#2e3a375ac191a9bacd40a6b3479ee402dcb5769d"+ integrity sha512-tClmH1uYelqWT43xxmnOsVFbCQJiIwizp6y4E109G2LIof07inxrO0L8nbwBpjhugVplx6NZr9IaqTFqbdM1gA==+ dependencies:+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/util-body-length-browser/-/util-body-length-browser-3.6.1.tgz"@@ -1191,6 +1739,13 @@dependencies:tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.37.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/util-body-length-node/-/util-body-length-node-3.37.0.tgz#d6170dafd351799687d583f818a4a3924b61cbec"+ integrity sha512-aY3mXdbEajruRi9CHgq/heM89R+Gectj/Xrs1naewmamaN8NJrvjDm3s+cw//lqqSOW903LYHXDgm7wvCzUnFA==+ dependencies:+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/util-body-length-node/-/util-body-length-node-3.6.1.tgz"@@ -1198,6 +1753,14 @@dependencies:tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.37.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/util-buffer-from/-/util-buffer-from-3.37.0.tgz#298d4a925b9f0ca23f99617648cd9fb3896b573c"+ integrity sha512-aa3SBwjLwImuJoE4+hxDIWQ9REz3UFb3p7KFPe9qopdXb/yB12RTcbrXVb4whUux4i4mO6KRij0ZNjFZrjrKPg==+ dependencies:+ "@aws-sdk/is-array-buffer" "3.37.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/util-buffer-from/-/util-buffer-from-3.6.1.tgz"@@ -1206,6 +1769,13 @@"@aws-sdk/is-array-buffer" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/util-config-provider/-/util-config-provider-3.40.0.tgz#acefff264d6650450a1f8b056a63830a454b756d"+ integrity sha512-NjZGrA4mqhpr6gkVCAUweurP0Z9d3vFyXJCtulC0BFbpKAnKCf/crSK56NwUaNhAEMCkSuBvjRFzkbfT+HO8bA==+ dependencies:+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/util-create-request/-/util-create-request-3.6.1.tgz"@@ -1216,6 +1786,14 @@"@aws-sdk/types" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.37.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/util-credentials/-/util-credentials-3.37.0.tgz#76261c3d7c20bee5d28e5c17741adf19558b3b67"+ integrity sha512-zcLhSZDKgBLhUjSU5HoQpuQiP3v8oE86NmV/tiZVPEaO6YVULEAB2Cfj1hpM/b/JXWzjSHfT06KXT7QUODKS+A==+ dependencies:+ "@aws-sdk/shared-ini-file-loader" "3.37.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/util-format-url/-/util-format-url-3.6.1.tgz"@@ -1225,6 +1803,13 @@"@aws-sdk/types" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.37.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/util-hex-encoding/-/util-hex-encoding-3.37.0.tgz#40ce21b5ff682e811e98ac7476692ee55ae61493"+ integrity sha512-tn5UpfaeM+rZWqynoNqB8lwtcAXil5YYO3HLGH9himpWAdft/2Z7LK6bsYDpctaAI1WHgMDcL0bw3Id04ZUbhA==+ dependencies:+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/util-hex-encoding/-/util-hex-encoding-3.6.1.tgz"@@ -1239,6 +1824,13 @@dependencies:tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.37.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/util-uri-escape/-/util-uri-escape-3.37.0.tgz#42b8393a51dcc04f228e70d1c94c2fe38a738994"+ integrity sha512-8pKf4YJTELP5lm/CEgYw2atyJBB1RWWqFa0sZx6YJmTlOtLF5G6raUdAi4iDa2hldGt2B6IAdIIyuusT8zeU8Q==+ dependencies:+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/util-uri-escape/-/util-uri-escape-3.6.1.tgz"@@ -1246,6 +1838,15 @@dependencies:tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.40.0.tgz#d9f4f49af35895df260598a333a8b792b56e9f76"+ integrity sha512-C69sTI26bV2EprTv3DTXu9XP7kD9Wu4YVPBzqztOYArd2GDYw3w+jS8SEg3XRbjAKY/mOPZ2Thw4StjpZlWZiA==+ dependencies:+ "@aws-sdk/types" "3.40.0"+ bowser "^2.11.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.6.1.tgz"@@ -1255,6 +1856,15 @@bowser "^2.11.0"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.40.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.40.0.tgz#76240a4ee05e409ad1267854761c53e746e9bcdf"+ integrity sha512-cjIzd0hRZFTTh7iLJD6Bciu++Em1iaM1clyG02xRl0JD5DEtDSR1zO02uu+AeM7GSLGOxIvwOkK2j8ySPAOmBA==+ dependencies:+ "@aws-sdk/node-config-provider" "3.40.0"+ "@aws-sdk/types" "3.40.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.6.1.tgz"@@ -1264,6 +1874,13 @@"@aws-sdk/types" "3.6.1"tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.37.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/util-utf8-browser/-/util-utf8-browser-3.37.0.tgz#d896899f4c475ceeaf8b77c5d7cdc453e5fe6b83"+ integrity sha512-tuiOxzfqet1kKGYzlgpMGfhr64AHJnYsFx2jZiH/O6Yq8XQg43ryjQlbJlim/K/XHGNzY0R+nabeJg34q3Ua1g==+ dependencies:+ tslib "^2.3.0"+"@aws-sdk/[email protected]", "@aws-sdk/util-utf8-browser@^3.0.0":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/util-utf8-browser/-/util-utf8-browser-3.6.1.tgz"@@ -1278,6 +1895,14 @@dependencies:tslib "^1.8.0"+"@aws-sdk/[email protected]":+ version "3.37.0"+ resolved "https://registry.yarnpkg.com/@aws-sdk/util-utf8-node/-/util-utf8-node-3.37.0.tgz#300912cce55d72c18213190237d6ab943e17b5bf"+ integrity sha512-fUAgd7UTCULL36j9/vnXHxVhxvswnq23mYgTCIT8NQ7wHN30q2a89ym1e9DwGeQkJEBOkOcKLn6nsMsN7YQMDQ==+ dependencies:+ "@aws-sdk/util-buffer-from" "3.37.0"+ tslib "^2.3.0"+"@aws-sdk/[email protected]":version "3.6.1"resolved "https://registry.npmjs.org/@aws-sdk/util-utf8-node/-/util-utf8-node-3.6.1.tgz"@@ -3389,10 +4014,10 @@dependencies:defer-to-connect "^1.0.1"-"@tagspaces/[email protected]":- version "1.0.64"- resolved "https://registry.yarnpkg.com/@tagspaces/tagspaces-platforms/-/tagspaces-platforms-1.0.64.tgz#4a6c703bc140ca0da65e3dd11f1d9d492049a853"- integrity sha512-KdnFkbckYB29xq3GluNTeqbxGFKQdNFrONp0vwdbLhCQbPGAS0/bgUqibD5RszYe13VBvOn3y5hOTDtuRoeCrA==+"@tagspaces/[email protected]":+ version "1.2.12"+ resolved "https://registry.yarnpkg.com/@tagspaces/tagspaces-platforms/-/tagspaces-platforms-1.2.12.tgz#863314c7bf0e0288a1438c1dae13e32e0ba93113"+ integrity sha512-MZ/vyyVmLGGjXQyMVLPIblutwGqydzKkgwlRnz7KAK+HpYDztd02cg+dK4UIE1VFIAARb1+MtEPFHHRVQdq2uQ=="@testim/chrome-version@^1.0.7":version "1.0.7"@@ -4271,13 +4896,13 @@ alphanum-sort@^1.0.0:resolved "https://registry.npmjs.org/alphanum-sort/-/alphanum-sort-1.0.2.tgz"integrity sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=- version "4.6.0"- resolved "https://registry.npmjs.org/amazon-cognito-identity-js/-/amazon-cognito-identity-js-4.6.0.tgz"- integrity sha512-D62rs0mcfA4APccAAsliWh1beOU7MBu/xj21W0kSOsjdc9diujgLHwHiHN6z91HSmJvztf69PUq4w4KuVKEjCA==+ version "5.2.3"+ resolved "https://registry.yarnpkg.com/amazon-cognito-identity-js/-/amazon-cognito-identity-js-5.2.3.tgz#8a730641258c9f6ecfb91f58fe3a711346a955dc"+ integrity sha512-zTqhdUgvdGar+wjqcu8y9tnTYIS+6VxecZe7t5HAHXHjvzvENIjTehd4zrB6MvnU+oVKVH2wPlCg6jlWdSs0wg==dependencies:buffer "4.9.2"- crypto-js "^3.3.0"+ crypto-js "^4.1.1"fast-base64-decode "^1.0.0"isomorphic-unfetch "^3.0.0"js-cookie "^2.2.1"@@ -4767,28 +5392,29 @@ autoprefixer@^9.0.0:postcss "^7.0.32"postcss-value-parser "^4.1.0"-aws-amplify@^3.3.27:- version "3.3.27"- resolved "https://registry.npmjs.org/aws-amplify/-/aws-amplify-3.3.27.tgz"- integrity sha512-3roZdw59ss5C5hjEzZH4+OTRjuQURGOmgEFEcygcHqEHSVmGsH42+cRLD32H9ACMN+YfC0DvZ5gHoMuybRj1vg==- dependencies:- "@aws-amplify/analytics" "4.0.18"- "@aws-amplify/api" "3.2.30"- "@aws-amplify/auth" "3.4.30"- "@aws-amplify/cache" "3.1.55"- "@aws-amplify/core" "3.8.22"- "@aws-amplify/datastore" "2.9.16"- "@aws-amplify/interactions" "3.3.30"- "@aws-amplify/predictions" "3.2.30"- "@aws-amplify/pubsub" "3.2.28"- "@aws-amplify/storage" "3.4.0"- "@aws-amplify/ui" "2.0.2"- "@aws-amplify/xr" "2.2.30"--aws-sdk@^2.984.0:- version "2.1008.0"- resolved "https://registry.yarnpkg.com/aws-sdk/-/aws-sdk-2.1008.0.tgz#0f6b58ef6093afec2027a49c0696bec52bb79ef6"- integrity sha512-wBEon+ARCuMcwEPpOFZqRT3elBLfLtPqv8jMql3Hsr7Ua5toPlgKMmjf368iTzBNaY7TOZsjLAT9nAhvtSZ++g==+aws-amplify@^4.3.8:+ version "4.3.8"+ resolved "https://registry.yarnpkg.com/aws-amplify/-/aws-amplify-4.3.8.tgz#8e69bc0dbfb7f8dfe7b01b22a1b7e11037c5e610"+ integrity sha512-Hez6+46IpIiQiFvtk7FOG2zeWU5gKZnoJ6/BZjGKfae0xFiAEQeST0l2n2/9x8lqXZ59kOVvVDUxgEoQ+C5Y9g==+ dependencies:+ "@aws-amplify/analytics" "5.1.6"+ "@aws-amplify/api" "4.0.26"+ "@aws-amplify/auth" "4.3.16"+ "@aws-amplify/cache" "4.0.28"+ "@aws-amplify/core" "4.3.8"+ "@aws-amplify/datastore" "3.7.0"+ "@aws-amplify/geo" "1.1.8"+ "@aws-amplify/interactions" "4.0.26"+ "@aws-amplify/predictions" "4.0.26"+ "@aws-amplify/pubsub" "4.2.2"+ "@aws-amplify/storage" "4.4.9"+ "@aws-amplify/ui" "2.0.3"+ "@aws-amplify/xr" "3.0.26"++aws-sdk@^2.1035.0:+ version "2.1035.0"+ resolved "https://registry.yarnpkg.com/aws-sdk/-/aws-sdk-2.1035.0.tgz#89a34c5b1e76e8304201036bf5258bceeebf4137"+ integrity sha512-BjSGGZIQE/SCLDgj2T4AhtBG4A4NgXhV/Z/I/E7Mst/RpOepTqZGznUbgXTvO+Z3gKqx33jJa6mS7ZxStCb/Wg==dependencies:buffer "4.9.2"events "1.1.1"@@ -4815,7 +5441,14 @@ aws4@^1.2.1, aws4@^1.8.0:resolved "https://registry.npmjs.org/aws4/-/aws4-1.10.1.tgz"integrity sha512-zg7Hz2k5lI8kb7U32998pRRFin7zJlkfezGJjUc2heaD4Pw2wObakCDVzkKztTm/Ln7eiVvYsjqak0Ed4LkMDA==[email protected], axios@^0.21.1:+ version "0.21.4"+ resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.4.tgz#c67b90dc0568e5c1cf2b0b858c43ba28e2eda575"+ integrity sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==+ dependencies:+ follow-redirects "^1.14.0"++axios@^0.21.1:version "0.21.1"resolved "https://registry.npmjs.org/axios/-/axios-0.21.1.tgz"integrity sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA==@@ -5384,7 +6017,7 @@ buffer@^5.1.0:base64-js "^1.0.2"ieee754 "^1.1.4"-buffer@^5.4.3, buffer@^5.5.0, buffer@^5.7.0:+buffer@^5.4.3, buffer@^5.5.0:version "5.7.1"resolved "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz"integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==@@ -5549,6 +6182,15 @@ callsites@^3.0.0:resolved "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz"integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==[email protected], camelcase-keys@^6.2.2:+ version "6.2.2"+ resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-6.2.2.tgz#5e755d6ba51aa223ec7d3d52f25778210f9dc3c0"+ integrity sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==+ dependencies:+ camelcase "^5.3.1"+ map-obj "^4.0.0"+ quick-lru "^4.0.1"+camelcase-keys@^4.0.0:version "4.2.0"resolved "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-4.2.0.tgz"@@ -5558,15 +6200,6 @@ camelcase-keys@^4.0.0:map-obj "^2.0.0"quick-lru "^1.0.0"-camelcase-keys@^6.2.2:- version "6.2.2"- resolved "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-6.2.2.tgz"- integrity sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==- dependencies:- camelcase "^5.3.1"- map-obj "^4.0.0"- quick-lru "^4.0.1"-camelcase@^4.0.0, camelcase@^4.1.0:version "4.1.0"resolved "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz"@@ -6172,7 +6805,7 @@ commander@7:commander@^5.0.0:version "5.1.0"- resolved "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz"+ resolved "https://registry.yarnpkg.com/commander/-/commander-5.1.0.tgz#46abbd1652f8e059bddaef99bbdcb2ad9cf179ae"integrity sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==commander@^6.0.0, commander@^6.2.0:@@ -6566,16 +7199,16 @@ crypto-browserify@^3.11.0:randombytes "^2.0.0"randomfill "^1.0.3"-crypto-js@^3.3.0:- version "3.3.0"- resolved "https://registry.npmjs.org/crypto-js/-/crypto-js-3.3.0.tgz"- integrity sha512-DIT51nX0dCfKltpRiXV+/TVZq+Qq2NgF4644+K7Ttnla7zEzqc+kjJyiB96BHNyUTBxyjzRcZYpUdZa+QAqi6Q==-crypto-js@^4.0.0:version "4.0.0"resolved "https://registry.npmjs.org/crypto-js/-/crypto-js-4.0.0.tgz"integrity sha512-bzHZN8Pn+gS7DQA6n+iUmBfl0hO5DJq++QP3U6uTucDtk/0iGpXd/Gg7CGR0p8tJhofJyaKoWBuJI4eAO00BBg==+crypto-js@^4.1.1:+ version "4.1.1"+ resolved "https://registry.yarnpkg.com/crypto-js/-/crypto-js-4.1.1.tgz#9e485bcf03521041bd85844786b83fb7619736cf"+ integrity sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==+crypto-random-string@^1.0.0:version "1.0.0"resolved "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-1.0.0.tgz"@@ -8211,6 +8844,11 @@ enhanced-resolve@~0.9.0:memory-fs "^0.2.0"tapable "^0.1.8"+ version "2.2.0"+ resolved "https://registry.yarnpkg.com/entities/-/entities-2.2.0.tgz#098dc90ebb83d8dffa089d55256b351d34c4da55"+ integrity sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==+entities@^1.1.1, entities@~1.1.1:version "1.1.2"resolved "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz"@@ -9043,6 +9681,11 @@ fast-levenshtein@^2.0.6, fast-levenshtein@~2.0.6:resolved "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz"integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=+ version "3.19.0"+ resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-3.19.0.tgz#cb637ec3f3999f51406dd8ff0e6fc4d83e520d01"+ integrity sha512-4pXwmBplsCPv8FOY1WRakF970TjNGnGnfbOnLqjlYvMiF1SR3yOHyxMR/YCXpPTOspNF5gwudqktIP4VsWkvBg==+fast-xml-parser@^3.16.0:version "3.17.6"resolved "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-3.17.6.tgz"@@ -9308,6 +9951,11 @@ follow-redirects@^1.0.0, follow-redirects@^1.10.0:resolved "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.13.1.tgz"integrity sha512-SSG5xmZh1mkPGyKzjZP8zLjltIfpW32Y5QpdNJyjcfGxK3qo3NDDkZOZSFiGn1A6SclQxY9GzEwAHQ3dmYRWpg==+follow-redirects@^1.14.0:+ version "1.14.5"+ resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.5.tgz#f09a5848981d3c772b5392309778523f8d85c381"+ integrity sha512-wtphSXy7d4/OR+MvIFbCVBDzZ5520qV8XfPklSN5QtxuMUJZ+b0Wnst1e1lCDocfzuCkHqj8k0FpZqO+UIaKNA==+for-in@^1.0.2:version "1.0.2"resolved "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz"@@ -9484,11 +10132,6 @@ fsevents@^2.1.2, fsevents@~2.3.1, fsevents@~2.3.2:resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a"integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==-fswin@^3.18.918:- version "3.19.908"- resolved "https://registry.npmjs.org/fswin/-/fswin-3.19.908.tgz"- integrity sha512-xwq6wBg+KNuSjzQ3gZUOXt/FUhN9Wd+qQxz3yGM1xyTWu00ty82X+9Tc09z9XtMONYAhA8cCE3nolWoU7Rlz6g==-function-bind@^1.1.1:version "1.1.1"resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz"@@ -9942,6 +10585,13 @@ [email protected]:dependencies:iterall "^1.2.2"+ version "14.5.0"+ resolved "https://registry.yarnpkg.com/graphql/-/graphql-14.5.0.tgz#4801e6460942c9c591944617f6dd224a9e531520"+ integrity sha512-wnGcTD181L2xPnIwHHjx/moV4ulxA2Kms9zcUY+B/SIrK+2N+iOC6WNgnR2zVTmg1Z8P+CZq5KXibTnatg3WUw==+ dependencies:+ iterall "^1.2.2"+growly@^1.3.0:version "1.3.0"resolved "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz"@@ -10533,10 +11183,10 @@ immediate@~3.0.5:resolved "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz"integrity sha1-nbHb0Pr43m++D13V5Wu2BigN5ps=- version "8.0.1"- resolved "https://registry.npmjs.org/immer/-/immer-8.0.1.tgz"- integrity sha512-aqXhGP7//Gui2+UrEtvxZxSquQVXTpZ7KDxfCcKAF3Vysvw0CViVaW9RZ1j1xlIYqaaaipBoqdqeibkc18PNvA==+ version "9.0.6"+ resolved "https://registry.yarnpkg.com/immer/-/immer-9.0.6.tgz#7a96bf2674d06c8143e327cbf73539388ddf1a73"+ integrity sha512-G95ivKpy+EvVAnAab4fVa4YGYn24J1SpEktnJX7JJ45Bd7xqME/SCplFzYFmTbrkwZbQ4xJK1xMTUYBkN6pWsQ==import-fresh@^2.0.0:version "2.0.0"@@ -12123,7 +12773,7 @@ json5@^2.1.2:json5@^2.2.0:version "2.2.0"- resolved "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz"+ resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.0.tgz#2dfefe720c6ba525d9ebd909950f0515316c89a3"integrity sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==dependencies:minimist "^1.2.5"@@ -17597,9 +18247,9 @@ shebang-regex@^3.0.0:resolved "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz"integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==-shelljs@^0.8.1, shelljs@^0.8.3:+shelljs@^0.8.1, shelljs@^0.8.4:version "0.8.4"- resolved "https://registry.npmjs.org/shelljs/-/shelljs-0.8.4.tgz"+ resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.8.4.tgz#de7684feeb767f8716b326078a8a00875890e3c2"integrity sha512-7gk3UZ9kOfPLIAbslLzyWeGiEqx9e3rxwZM0KE6EL8GlGwjym9Mrlx5/p33bWTu9YG6vcS4MBxYZDHYr5lr8BQ==dependencies:glob "^7.0.0"@@ -18588,14 +19238,6 @@ symbol-tree@^3.2.2, symbol-tree@^3.2.4:resolved "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz"integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==-sync-fetch@^0.3.0:- version "0.3.0"- resolved "https://registry.npmjs.org/sync-fetch/-/sync-fetch-0.3.0.tgz"- integrity sha512-dJp4qg+x4JwSEW1HibAuMi0IIrBI3wuQr2GimmqB7OXR50wmwzfdusG+p39R9w3R6aFtZ2mzvxvWKQ3Bd/vx3g==- dependencies:- buffer "^5.7.0"- node-fetch "^2.6.1"-synchronous-promise@^2.0.6:version "2.0.13"resolved "https://registry.npmjs.org/synchronous-promise/-/synchronous-promise-2.0.13.tgz"@@ -19026,7 +19668,7 @@ tsconfig-paths@^3.9.0:tslib@^1.11.1, tslib@^1.8.0, tslib@^1.8.1, tslib@^1.9.0, tslib@^1.9.3:version "1.14.1"- resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz"+ resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==tslib@^2.0.0:@@ -19039,7 +19681,7 @@ tslib@^2.1.0:resolved "https://registry.npmjs.org/tslib/-/tslib-2.2.0.tgz"integrity sha512-gS9GVHRU+RGn5KQM2rllAlR3dU6m7AcpJKdtH8gFvQiC4Otgk98XnmMU+nZenHt/+VhnBPWwgrJsyrdcw6i23w==-tslib@^2.2.0:+tslib@^2.2.0, tslib@^2.3.0:version "2.3.1"resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01"integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==@@ -20051,13 +20693,6 @@ wildcard@^2.0.0:resolved "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz"integrity sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==-winattr@^3.0.0:- version "3.0.0"- resolved "https://registry.npmjs.org/winattr/-/winattr-3.0.0.tgz"- integrity sha512-dt33rYsTYcGbB+I1ubB6ZLODibRSCW//TgY/SuajLllR9kHnHnbUMqnXIe0osYsXUdRLGs770zb3t9z/ScGUpw==- dependencies:- fswin "^3.18.918"-word-wrap@~1.2.3:version "1.2.3"resolved "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz"@@ -20153,9 +20788,9 @@ [email protected]:mkdirp "^0.5.1"ws@^5.2.0:- version "5.2.3"- resolved "https://registry.yarnpkg.com/ws/-/ws-5.2.3.tgz#05541053414921bc29c63bee14b8b0dd50b07b3d"- integrity sha512-jZArVERrMsKUatIdnLzqvcfydI85dvd/Fp1u/VOpfdDWQ4c9qWXe+VIeAbQ5FrDwciAkr+lzofXLz3Kuf26AOA==+ version "5.2.2"+ resolved "https://registry.npmjs.org/ws/-/ws-5.2.2.tgz"+ integrity sha512-jaHFD6PFv6UgoIVda6qZllptQsMlDEJkTQcybzzXDYM1XO9Y8em691FGMPmM46WGyLU4z9KMgQN+qrux/nhlHA==dependencies:async-limiter "~1.0.0"