TagSpaces is an offline, open source, document manager with tagging support
QR code sharing link (#1861)
Stanimira8bdaf0bfb91
diff --git a/app/components/EntryProperties.tsx b/app/components/EntryProperties.tsxindex 9aa35962c..cd7c85c41 100644--- a/app/components/EntryProperties.tsx+++ b/app/components/EntryProperties.tsx@@ -103,6 +103,7 @@ import { bindActionCreators } from 'redux';import { actions as LocationActions } from '-/reducers/locations';import { actions as AppActions } from '-/reducers/app';import useFirstRender from '-/utils/useFirstRender';+import SharingLinkDialog from '-/components/dialogs/SharingLinkDialog';const ThumbnailChooserDialog =Pro && Pro.UI ? Pro.UI.ThumbnailChooserDialog : false;@@ -198,7 +199,6 @@ function EntryProperties(props: Props) {// const EntryProperties = React.memo((props: Props) => {const fileNameRef = useRef<HTMLInputElement>(null);const sharingLinkRef = useRef<HTMLInputElement>(null);- const objectStorageLinkRef = useRef<HTMLInputElement>(null);const fileDescriptionRef = useRef<MilkdownRef>(null);const disableConfirmButton = useRef<boolean>(true);const fileNameError = useRef<boolean>(false);@@ -236,11 +236,6 @@ function EntryProperties(props: Props) {props.openedEntry,props.tagDelimiter);-- const [signedLink, setSignedLink] = useStateWithCallbackLazy<string>('');- const [linkValidityDuration, setLinkValidityDuration] = useState<number>(- 60 * 15- );const [editName, setEditName] = useState<string>(undefined);const editDescription = useRef<string>(undefined);const [isMoveCopyFilesDialogOpened, setMoveCopyFilesDialogOpened] = useState<@@ -254,6 +249,9 @@ function EntryProperties(props: Props) {isFileThumbChooseDialogOpened,setFileThumbChooseDialogOpened] = useState<boolean>(false);+ const [showSharingLinkDialog, setShowSharingLinkDialog] = useState<boolean>(+ false+ );const [isBgndImgChooseDialogOpened, setBgndImgChooseDialogOpened] = useState<boolean>(false);@@ -709,18 +707,6 @@ function EntryProperties(props: Props) {const isCloudLocation = currentEntry.url && currentEntry.url.length > 5;- function generateCopySharingURL() {- setSignedLink(- PlatformIO.getURLforPath(currentEntry.path, linkValidityDuration),- currentSignedLink => {- if (currentSignedLink && currentSignedLink.length > 1) {- const promise = navigator.clipboard.writeText(currentSignedLink);- props.showNotification(i18n.t('Link copied to clipboard'));- }- }- );- }-const sanitizedDescription = currentEntry.description? convertMarkDown(currentEntry.description, directoryPath): i18n.t('core:addMarkdownDescription');@@ -1020,8 +1006,15 @@ function EntryProperties(props: Props) {</FormControl></Grid>- <Grid container item xs={12} spacing={1}>- <Grid item xs={showLinkForDownloading ? 6 : 12}>+ <Grid+ container+ item+ xs={12}+ spacing={1}+ alignItems="center"+ justifyContent="center"+ >+ <Grid item xs={showLinkForDownloading ? 8 : 12}><TextFieldmargin="dense"name="path"@@ -1071,10 +1064,10 @@ function EntryProperties(props: Props) {</Grid>{showLinkForDownloading && (- <Grid item xs={6}>+ <Grid item xs={4}><TextFieldmargin="dense"- name="path"+ name="downloadLink"label={<>{i18n.t('Link for downloading')}@@ -1085,43 +1078,18 @@ function EntryProperties(props: Props) {/></>}- fullWidth={true}- value={signedLink}- inputRef={objectStorageLinkRef}+ fullWidth+ value={' '}InputProps={{- startAdornment: (- <InputAdornment position="start">- <Tooltip title="Link validity duration time">- <TextField- select- // style={{ minWidth: 80 }}- variant="standard"- value={linkValidityDuration}- onChange={(event: ChangeEvent<HTMLInputElement>) => {- setLinkValidityDuration(- parseInt(event.target.value, 10)- );- }}- >- <MenuItem value={60 * 15}>15 min</MenuItem>- <MenuItem value={60 * 60}>1 hour</MenuItem>- <MenuItem value={60 * 60 * 24}>1 day</MenuItem>- <MenuItem value={60 * 60 * 24 * 3}>3 days</MenuItem>- <MenuItem value={60 * 60 * 24 * 7}>1 week</MenuItem>- </TextField>- </Tooltip>- </InputAdornment>- ),+ readOnly: true,endAdornment: (- <InputAdornment position="end">- <Tooltip title="Generate and copy the link to the clipboard">- <Button- color="primary"- onClick={generateCopySharingURL}- >- {i18n.t('Generate & Copy')}- </Button>- </Tooltip>+ <InputAdornment position="start">+ <Button+ fullWidth+ onClick={() => setShowSharingLinkDialog(true)}+ >+ {i18n.t('core:sharingLink')}+ </Button></InputAdornment>)}}@@ -1375,6 +1343,14 @@ function EntryProperties(props: Props) {setThumb={setThumb}/>)}+ {showSharingLinkDialog && (+ <SharingLinkDialog+ open={showSharingLinkDialog}+ onClose={() => setShowSharingLinkDialog(false)}+ path={currentEntry.path}+ showNotification={props.showNotification}+ />+ )}{BgndImgChooserDialog && (<BgndImgChooserDialogopen={isBgndImgChooseDialogOpened}diff --git a/app/components/SearchAutocomplete.tsx b/app/components/SearchAutocomplete.tsxindex 55152acc4..597767a78 100644--- a/app/components/SearchAutocomplete.tsx+++ b/app/components/SearchAutocomplete.tsx@@ -1430,7 +1430,11 @@ function SearchAutocomplete(props: Props) {onClose={handleClose}*/filterOptions={(options: Array<SearchOptionType>, state: any) => {const filteredOptions = options.filter(option => {- return option.label.toLowerCase().indexOf(state.inputValue.toLowerCase()) > -1;+ return (+ option.label+ .toLowerCase()+ .indexOf(state.inputValue.toLowerCase()) > -1+ );});if (filteredOptions.length === 0 && !haveEmptyAction()) {isOpen.current = false;diff --git a/app/components/dialogs/SharingLinkDialog.tsx b/app/components/dialogs/SharingLinkDialog.tsxnew file mode 100644index 000000000..97f51cb68--- /dev/null+++ b/app/components/dialogs/SharingLinkDialog.tsx@@ -0,0 +1,175 @@+/**+ * 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, { ChangeEvent, useRef, useState } from 'react';+import { Theme } from '@mui/material/styles';+import withStyles from '@mui/styles/withStyles';+import createStyles from '@mui/styles/createStyles';+import Button from '@mui/material/Button';+import DialogActions from '@mui/material/DialogActions';+import DialogContent from '@mui/material/DialogContent';+import DialogTitle from '@mui/material/DialogTitle';+import Dialog from '@mui/material/Dialog';+import i18n from '-/services/i18n';+import DialogCloseButton from '-/components/dialogs/DialogCloseButton';+import useTheme from '@mui/styles/useTheme';+import useMediaQuery from '@mui/material/useMediaQuery';+import { QRCode } from 'react-qrcode-logo';+import InfoIcon from '-/components/InfoIcon';+import InputAdornment from '@mui/material/InputAdornment';+import Tooltip from '-/components/Tooltip';+import TextField from '@mui/material/TextField';+import MenuItem from '@mui/material/MenuItem';+import PlatformIO from '-/services/platform-facade';+import InputLabel from '@mui/material/InputLabel';++interface Props {+ open: boolean;+ onClose: () => void;+ path: string;+ showNotification: (message: string) => void;+}++const QRTextField = withStyles((theme: Theme) =>+ createStyles({+ root: {+ '& .MuiInputBase-root': {+ height: 450+ }+ }+ })+)(TextField);++function SharingLinkDialog(props: Props) {+ const { open, onClose, path, showNotification } = props;+ const [linkValidityDuration, setLinkValidityDuration] = useState<number>(+ 60 * 15+ );+ const signedLink = useRef<string>(+ PlatformIO.getURLforPath(path, linkValidityDuration)+ );+ const theme = useTheme();+ const fullScreen = useMediaQuery(theme.breakpoints.down('md'));++ return (+ <Dialog+ open={open}+ onClose={onClose}+ fullScreen={fullScreen}+ keepMounted+ scroll="paper"+ >+ <DialogTitle>+ {i18n.t('core:sharingLink')} <DialogCloseButton onClose={onClose} />+ </DialogTitle>+ <DialogContent>+ <TextField+ style={{ marginTop: 8 }}+ select+ fullWidth={true}+ label={+ <>+ {i18n.t('core:linkValidity')}+ <InfoIcon tooltip={i18n.t('core:linkValidityTooltip')} />+ </>+ }+ value={linkValidityDuration}+ onChange={(event: ChangeEvent<HTMLInputElement>) => {+ const validityDuration = parseInt(event.target.value, 10);+ signedLink.current = PlatformIO.getURLforPath(+ path,+ validityDuration+ );+ setLinkValidityDuration(validityDuration);+ }}+ >+ <MenuItem value={60 * 15}>15 min</MenuItem>+ <MenuItem value={60 * 60}>1 hour</MenuItem>+ <MenuItem value={60 * 60 * 24}>1 day</MenuItem>+ <MenuItem value={60 * 60 * 24 * 3}>3 days</MenuItem>+ <MenuItem value={60 * 60 * 24 * 7}>1 week</MenuItem>+ </TextField>+ <QRTextField+ margin="dense"+ name="path"+ label={i18n.t('core:qrCode')}+ value={' '}+ InputProps={{+ readOnly: true,+ endAdornment: (+ <InputAdornment position="start" style={{ paddingRight: 50 }}>+ <QRCode+ id="qr-code-link"+ value={signedLink.current}+ size={400}+ enableCORS={true}+ // logoWidth={64}+ // logoHeight={64}+ // logoImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAMqElEQVR42u1ba3AV5RmOgL8cO23tHx0VrYqWjlOtWJ22o21n2k4vo9OpQAiEBHLhYhKSkCsXa4QmgXAxAZSABEICISGEcEu4g1xEQAQCAkqQcDMQciE5J+e2Z/ft857zfZmc2V1OC5yujnln3tndJOfsPs/33r9NWJ/0SZ/834WIems/6IAQa79e9/vWgb9PnH+/Vl9V1f4ulyfM7fYM1jStnIhKoSugy6El0GVClwotFvqh0EVCF0IXQIug7wudJ3Q29APoG70Itx681+vtb7d3h3V22R7FdWPHrS46f+GSerHpCn198d5p44VLisPhJEgh31e4g+Xg+7W2toc1N7c8hOuTN1vbaVLqDPewiCRlZFSqEjE65Z7oqOjJypv/HOc80XCW2BosJUCCVxRvv6SkGWFfnW96ANcHOjttlJaZp4yITKbY8VNobHzWPVP+vuGjJimnTn9Jwi0kAVaBV+7jgLdh4w5+iPrubidNmT5XCR81yfewY+Iy76nGjMsmtqoGPQGWgZepqNLt8VDOvxd4ho9MkuCtIiD04D0eH/j+fI5ov0T1qjRrzhJlWESiIXiYLz/8/6T4jGY9AXrwnOLkTTntFRCkaGGpMnSEBK9/aARCGgpyhsE6/luNHJvGJFhJgB58R0dnzw0Vr3cqQZYsWwPwCYbgY/HA4aOSaUbuQlpZvp6WLa+ikhVrb6f4m7VUWrZOQSBtHy1IsJQACV7eTLhAAkHKVtd63/KB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RcmYWKeItkSkSfFfXHYO39HW4fA5eHywuV3QzRJNx2js57ysOdJ+QdyR4a83+7vuHTIKgdPWiihP9g3FgnPrOXIVdB/KeBI/2Vgf+O0cCrCJevCSl6x9kasyaWqAguhMktxf4+ywAH9L+Qanf9rE2TPQPcRMAPnISpWflK/zCNGS2BI+//06C12+kulw9JIhpjW3f/qO+V2cQ7XmW6EE1GbBrg8GG1eBD3z98iqlRevYsF8pZgiyQs0iHw1rwoe8fNJXdYTDOLyI2EI6LJHgLzN6a/gGZAfHB/XOcv7e+druvgLICvPX/JaY//17+n2CY1D7pkz7pE6vkP90Jgxz9IElIAAAAAElFTkSuQmCC"+ />+ </InputAdornment>+ )+ }}+ />+ <TextField+ margin="dense"+ name="path"+ InputProps={{+ readOnly: true,+ endAdornment: (+ <InputAdornment position="start">+ <Button+ data-tid="copySharingLinkTID"+ onClick={() => {+ navigator.clipboard+ .writeText(signedLink.current)+ .then(() => {+ showNotification(i18n.t('Link copied to clipboard'));+ });+ }}+ color="primary"+ >+ {i18n.t('core:copy')}+ </Button>+ </InputAdornment>+ )+ }}+ label={+ <>+ {i18n.t('Link for downloading')}+ <InfoIcon+ tooltip={i18n.t(+ 'Link for time limited sharing on the Internet'+ )}+ />+ </>+ }+ fullWidth={true}+ value={signedLink.current}+ />+ </DialogContent>+ <DialogActions>+ <Button data-tid="closeLinkTID" onClick={onClose} color="primary">+ {i18n.t('core:close')}+ </Button>+ </DialogActions>+ </Dialog>+ );+}++export default SharingLinkDialog;diff --git a/app/locales/en/core.json b/app/locales/en/core.jsonindex 164ee433e..a940e08b9 100644--- a/app/locales/en/core.json+++ b/app/locales/en/core.json@@ -526,7 +526,7 @@"pageLimitHelp": "Set number of files per page","unspecified": "Unspecified","choosePerspective": "Set default perspective for this folder",- "sharingLink": "Link for internal sharing",+ "sharingLink": "Generate sharing link","folderLimit": "Max. folders to be displayed","filesLimit": "Max. files to be displayed in a folder","scrollFilesLimit": "Files to be loaded on scroll down",@@ -725,5 +725,8 @@"fileChanged": "File changed","actions": "Actions","query": "Search Query Composition",+ "qrCode": "QR Code",+ "linkValidity": "Link validity time",+ "linkValidityTooltip": "Time for which the link is valid","-": "-"}diff --git a/package-lock.json b/package-lock.jsonindex 4c5d05f2f..bcd00f0cb 100644--- a/package-lock.json+++ b/package-lock.json@@ -68,6 +68,7 @@"react-image-gallery": "^1.2.7","react-infinite-scroller": "^1.2.6","react-leaflet": "^2.8.0",+ "react-qrcode-logo": "^2.8.0","react-redux": "^8.0.2","react-swipeable-views": "0.14.0","redux": "^4.2.0",@@ -32172,6 +32173,11 @@"integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==","dev": true},+ "node_modules/lodash.isequal": {+ "version": "4.5.0",+ "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz",+ "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ=="+ },"node_modules/lodash.isinteger": {"version": "4.0.4","resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz",@@ -41011,6 +41017,11 @@"node": ">=10.13.0"}},+ "node_modules/qrcode-generator": {+ "version": "1.4.4",+ "resolved": "https://registry.npmjs.org/qrcode-generator/-/qrcode-generator-1.4.4.tgz",+ "integrity": "sha512-HM7yY8O2ilqhmULxGMpcHSF1EhJJ9yBj8gvDEuZ6M+KGJ0YY2hKpnXvRD+hZPLrDVck3ExIGhmPtSdcjC+guuw=="+ },"node_modules/qrcode.react": {"version": "1.0.1","resolved": "https://registry.npmjs.org/qrcode.react/-/qrcode.react-1.0.1.tgz",@@ -41693,6 +41704,19 @@"integrity": "sha512-oOanj84fJEXUg9FoEAQomA8ISG+DVIrTZ3qF7m69VQUJyOGYyDZmPqKcjvRku4KXlEH6hWO9i4ACLzNBh8gC0A==","peer": true},+ "node_modules/react-qrcode-logo": {+ "version": "2.8.0",+ "resolved": "https://registry.npmjs.org/react-qrcode-logo/-/react-qrcode-logo-2.8.0.tgz",+ "integrity": "sha512-dbEgjsg6C4tK6+oGmCRDlJ7urQAWqybaGBLJtp8Z6ZYvVUP302HBXk/F7VRk54yWTwzlHwig3VK6HMKCha2YFw==",+ "dependencies": {+ "lodash.isequal": "^4.5.0",+ "qrcode-generator": "^1.4.1"+ },+ "peerDependencies": {+ "react": ">=16.4.1",+ "react-dom": ">=16.4.1"+ }+ },"node_modules/react-redux": {"version": "8.0.5","resolved": "https://registry.npmjs.org/react-redux/-/react-redux-8.0.5.tgz",@@ -73906,6 +73930,11 @@"integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==","dev": true},+ "lodash.isequal": {+ "version": "4.5.0",+ "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz",+ "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ=="+ },"lodash.isinteger": {"version": "4.0.4","resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz",@@ -80516,6 +80545,11 @@}}},+ "qrcode-generator": {+ "version": "1.4.4",+ "resolved": "https://registry.npmjs.org/qrcode-generator/-/qrcode-generator-1.4.4.tgz",+ "integrity": "sha512-HM7yY8O2ilqhmULxGMpcHSF1EhJJ9yBj8gvDEuZ6M+KGJ0YY2hKpnXvRD+hZPLrDVck3ExIGhmPtSdcjC+guuw=="+ },"qrcode.react": {"version": "1.0.1","resolved": "https://registry.npmjs.org/qrcode.react/-/qrcode.react-1.0.1.tgz",@@ -80938,6 +80972,15 @@"integrity": "sha512-oOanj84fJEXUg9FoEAQomA8ISG+DVIrTZ3qF7m69VQUJyOGYyDZmPqKcjvRku4KXlEH6hWO9i4ACLzNBh8gC0A==","peer": true},+ "react-qrcode-logo": {+ "version": "2.8.0",+ "resolved": "https://registry.npmjs.org/react-qrcode-logo/-/react-qrcode-logo-2.8.0.tgz",+ "integrity": "sha512-dbEgjsg6C4tK6+oGmCRDlJ7urQAWqybaGBLJtp8Z6ZYvVUP302HBXk/F7VRk54yWTwzlHwig3VK6HMKCha2YFw==",+ "requires": {+ "lodash.isequal": "^4.5.0",+ "qrcode-generator": "^1.4.1"+ }+ },"react-redux": {"version": "8.0.5","resolved": "https://registry.npmjs.org/react-redux/-/react-redux-8.0.5.tgz",diff --git a/package.json b/package.jsonindex 2dd99f8c7..256aab512 100644--- a/package.json+++ b/package.json@@ -206,6 +206,7 @@"react-image-gallery": "^1.2.7","react-infinite-scroller": "^1.2.6","react-leaflet": "^2.8.0",+ "react-qrcode-logo": "^2.8.0","react-redux": "^8.0.2","react-swipeable-views": "0.14.0","redux": "^4.2.0",