{"version":3,"sources":["hooks/fileSubtitle.js","middleware/Api.ts","redux/explorer/async.ts","component/Placeholder/TextLoading.js","redux/explorer/reducer.ts","component/Dial/AutoHidden.js","middleware/Auth.ts","services/navigate.ts","redux/explorer/index.ts","utils/page.ts","i18n.ts","component/Uploader/core/utils/pool.ts","component/Uploader/core/utils/validator.ts","component/Uploader/core/utils/request.ts","services/file.ts","component/Navbar/DarkModeSwitcher.js","component/Navbar/PolicySwitcher.js","component/FileManager/Navigator/SubActions.js","component/Modals/Report.js","component/Modals/CreateShare.js","component/Modals/PurchaseShare.js","component/Modals/OptionSelector.js","component/Dial/Save.js","utils/index.js","component/Modals/Loading.js","component/Modals/Copy.js","component/Modals/DirectoryDownload.js","component/Modals/Decompress.js","component/Modals/Compress.js","component/Modals/Relocate.js","component/Modals/RemoteDownload.js","component/Modals/Delete.js","component/FileManager/Modals.js","component/Viewer/Text.js","component/Viewer/Code.js","component/Uploader/core/errors/index.ts","component/Uploader/core/utils/helper.ts","component/Uploader/core/utils/index.ts","component/Common/Snackbar.js","component/Navbar/UserAvatarPopover.js","component/Navbar/UserAvatar.js","component/Navbar/Navbar.js","utils/zip.js","utils/api.ts","utils/filesystem.ts","redux/explorer/action.ts","component/Navbar/SearchBar.js","component/Navbar/StorageBar.js","component/Navbar/UserInfo.js","component/Navbar/FileTags.js","component/FileManager/ImgPreview.js","config.ts","component/Uploader/core/types.ts","component/Uploader/core/uploader/base.ts","component/Uploader/core/logger.ts","component/Uploader/core/api/index.ts","component/Uploader/core/index.ts","component/Uploader/core/uploader/chunk.ts","component/Uploader/core/uploader/local.ts","component/Uploader/core/uploader/remote.ts","component/Uploader/core/uploader/onedrive.ts","component/Uploader/core/uploader/oss.ts","component/Uploader/core/uploader/qiniu.ts","component/Uploader/core/uploader/cos.ts","component/Uploader/core/uploader/upyun.ts","component/Uploader/core/uploader/s3.ts","component/Uploader/core/uploader/placeholder.ts","component/Dial/Create.js","component/Uploader/Popup/TaskDetail.js","component/Uploader/Popup/UploadTask.js","component/Uploader/UseUpload.js","component/Modals/ConcurrentOption.js","component/Uploader/Popup/MoreActions.js","component/Uploader/Popup/TaskList.js","component/Placeholder/DropFile.js","component/Uploader/Uploader.js","utils/datetime.js","redux/viewUpdate/action.ts","component/FileManager/TypeIcon.js","serviceWorker.js","middleware/AuthRoute.js","middleware/NoAuthRoute.js","component/Placeholder/PageLoading.js","component/Share/NotFound.js","component/Placeholder/Captcha.js","hooks/normal.js","component/Login/ReCaptchaWrapper.js","component/Login/ReCaptcha.js","hooks/recaptcha.js","hooks/tcaptcha.js","hooks/useCaptcha.js","component/Login/LoginForm.js","component/FileManager/Navigator/PathButton.js","component/FileManager/Navigator/DropDownItem.js","component/FileManager/Navigator/DropDown.js","component/FileManager/Navigator/Navigator.js","component/FileManager/FileName.js","component/FileManager/SmallIcon.js","component/FileManager/FileIcon.js","component/FileManager/Folder.js","component/FileManager/DnD/Preview.js","component/FileManager/DnD/DragLayer.js","component/FileManager/TableRow.js","component/FileManager/DnD/DropWarpper.js","component/FileManager/DnD/Scrolling.js","component/FileManager/ObjectIcon.js","component/FileManager/ContextMenu.js","component/FileManager/Explorer.js","hooks/pagination.js","component/Placeholder/ListLoading.js","component/FileManager/Sidebar/SideDrawer.js","component/FileManager/PaginationItem.js","component/FileManager/Pagination.js","component/FileManager/FileManager.js","component/Viewer/SelectMenu.js","component/Viewer/Video.js","component/Share/SearchResult.js","component/Share/MyShare.js","component/Modals/SelectFile.js","component/Download/DownloadingCard.js","component/Download/FinishedCard.js","component/Dial/Aria2.js","component/Download/Download.js","component/Share/LockedFile.js","component/Share/Creator.js","component/Share/SharedFile.js","component/Share/SharedFolder.js","component/Share/SharePreload.js","component/Viewer/Doc.js","component/VAS/Quota.js","component/VAS/PackSelect.js","component/VAS/PaymentDialog.js","component/VAS/BuyQuota.js","component/Modals/CreateWebDAVAccount.js","component/Modals/CreateWebDAVMount.js","component/Setting/AppQRCode.js","component/Setting/AppPromotion.js","component/Setting/WebDAV.js","component/Setting/Tasks.js","component/Setting/Profile.js","component/Setting/Authn.js","component/Modals/TimeZone.js","component/Modals/BindPhone.js","component/Setting/UserSetting.js","component/Login/QQ.js","component/Login/Register.js","component/Login/Activication.js","component/Login/ResetForm.js","component/Login/Reset.js","component/Modals/SiteNotice.js","component/FileManager/MusicPlayer.js","component/Viewer/Epub.js","App.js","middleware/Init.js","redux/viewUpdate/reducer.ts","reducers/index.js","component/Placeholder/ErrorBoundary.js","index.js","redux/combineReducers.ts","component/Placeholder/Nothing.js","component/FileManager/PathSelector.js"],"names":["UseFileSubTitle","query","math","location","dispatch","useDispatch","useState","title","setTitle","path","setPath","SetSubTitle","useCallback","changeSubTitle","useEffect","pathHelper","isSharePage","pathname","get","split","length","params","baseURL","getBaseURL","getPreviewURL","isShare","shareID","fileID","encodeURIComponent","instance","axios","create","withCredentials","AppError","message","code","error","i18next","exists","ns","t","includes","stack","Error","interceptors","response","use","rawData","data","undefined","Auth","signout","window","href","search","msg","Promise","reject","askForOption","options","getState","a","resolve","dialog","open","setOptionModal","onClose","callback","option","purchased","Map","trySharePurchase","share","router","score","Check","toggleSnackbar","closeAllModals","GetUser","group","shareFree","has","key","confirmPurchase","set","useStyles","makeStyles","theme","loader","width","padding","breakpoints","down","MyLoader","props","backgroundColor","dark","foregroundColor","className","TextLoading","useTheme","classes","palette","type","initState","dndSignal","dndTarget","dndSource","fileList","dirList","selected","selectProps","isMultiple","withFolder","withFile","withSourceEnabled","lastSelect","file","id","name","size","date","create_date","index","shiftSelectedIds","imgPreview","first","other","audioPreview","playingName","paused","isOpen","fileSave","sideBarOpen","checkSelectedProps","forEach","value","source_enabled","explorer","state","action","Object","assign","target","source","list","addedSelected","targets","newSelected","fileIds","filteredSelected","filter","keywords","searchPath","currentPolicy","policy","purchase","AutoHidden","children","enable","hide","element","hidden","setHidden","prev","scrollY","lastUpdate","addEventListener","e","currentTarget","current","scrollTop","handleNavigation","in","isAuthenticated","authenticate","cb","SetUser","JSON","parse","localStorage","getItem","newUser","setItem","stringify","anonymous","oldUser","SetPreference","preference","GetPreference","GetPreferenceWithDefault","defaultVal","apiURL","API","actions","reducers","setNavigator","navigatorLoading","navigateTo","navigator","setPagination","viewUpdate","pagination","page","navigateUp","pathSplit","pop","newPath","join","drawerToggleAction","dragAndDrop","changeViewMethod","method","toggleDaylightMode","changeContextMenu","menuType","setNavigatorLoadingStatus","status","setNavigatorError","openCreateFolderDialog","openCreateFileDialog","setUserPopover","anchor","setShareUserPopover","openRenameDialog","openResaveDialog","openMoveDialog","openRemoveDialog","openShareDialog","applyThemes","setSessionStatus","openMusicDialog","openRemoteDownloadDialog","openTorrentDownloadDialog","openDecompressDialog","openCompressDialog","openRelocateDialog","openGetSourceDialog","openCopyDialog","openLoadingDialog","text","vertical","horizontal","color","setModalsLoading","refreshFileList","searchMyFile","showImgPreivew","showAudioPreview","audioPreviewSetIsOpen","audioPreviewSetPlaying","refreshStorage","saveFile","setSiteConfig","config","openDirectoryDownloadDialog","downloading","log","done","statusHelper","isHomePage","startsWith","isAdminPage","isLoginPage","isMobile","innerWidth","i18n","ChainedBackend","LanguageDetector","initReactI18next","init","fallbackLng","debug","load","defaultNS","interpolation","escapeValue","backend","backends","LocalStorageBackend","Backend","backendOptions","expirationTime","queryStringParams","v","ASSETS_VERSION","loadPath","on","lng","document","documentElement","setAttribute","languages","displayName","Pool","limit","queue","processing","uploader","push","check","item","this","findIndex","task","dst","ProcessingTaskDuplicatedError","release","run","then","err","processingNum","availableNum","Math","max","slice","checkers","allowedSuffix","ext","FileValidateError","maxSize","validate","c","CancelToken","baseConfig","transformResponse","TransformResponseError","cdBackendConfig","request","url","catch","isCancel","RequestCanceledError","HTTPError","requestAPI","getDownloadURL","reqURL","downloadPath","put","icon","opacity","DarkModeSwitcher","position","useTranslation","ThemeType","useSelector","siteConfig","ToggleThemeMode","isDayLight","isDark","placement","classNames","onClick","uploadFromFile","blue","policySelected","green","header","fontSize","minWidth","maxHeight","overflow","PolicySwitcher","React","anchorEl","setAnchorEl","policies","setPolicies","loading","setLoading","ToggleSnackbar","RefreshFileList","handleClose","Boolean","event","anchorOrigin","transformOrigin","map","button","component","post","switchTo","primary","RouterLink","to","sideButton","marginRight","sortOptions","paginationOption","SubActions","isSmall","inherit","keyPrefix","vasT","viewMethod","explorerViewMethod","shareInfo","pageSize","OpenLoadingDialog","ChangeSortMethod","changeSortMethod","OpenResaveDialog","SetShareUserPopover","StartBatchDownloadAll","startBatchDownload","ChangePageSize","changePageSize","anchorSort","setAnchorSort","anchorPagination","setAnchorPagination","selectedIndex","setSelectedIndex","openReport","setOpenReport","handlePaginationChange","s","toggleViewMethod","newMethod","toString","parseInt","0","1","2","3","4","5","6","7","handleMenuItemClick","nick","creator","style","height","src","widthAnimation","shareUrl","wrapper","margin","spacing","buttonProgress","secondary","light","top","left","flexCenter","alignItems","noFlex","display","scoreCalc","marginTop","Report","reason","setReason","des","setDes","setTimeout","aria-labelledby","maxWidth","fullWidth","aria-label","onChange","reportReasons","k","control","label","multiline","variant","rows","disabled","expireLabel","whiteSpace","ExpansionPanel","withStyles","root","border","boxShadow","borderBottom","expanded","MuiExpansionPanel","ExpansionPanelSummary","content","MuiExpansionPanelSummary","ExpansionPanelDetails","background","default","MuiExpansionPanelDetails","CreatShare","console","scoreEnabled","score_enabled","scoreRate","share_score_rate","lastSubmit","useRef","initialScore","setInitialScore","setExpanded","shareURL","setShareURL","password","downloads","expires","showPassword","values","setValues","expire","preview","shareOption","setShareOption","customExpires","setCustomExpires","customDownloads","setCustomDownloads","handleChange","prop","newValue","numericValue","isNaN","handleExpand","panel","isExpanded","loadProps","object","fileSizeInMB","calculatedInitialScore","round","handleCheck","aria-controls","checked","htmlFor","endAdornment","random","substr","edge","onMouseDown","preventDefault","onIcon","offIcon","labelWidth","labelId","num","inputProps","min","marginLeft","ceil","onFocus","select","autoFocus","readonly","link","clipboard","writeText","submitFormBody","is_dir","modalsLoading","PurchaseShareDialog","OptionSelector","modals","dividers","o","description","fab","right","bottom","zIndex","badge","fabProgress","buttonSuccess","SaveButton","buttonClassname","clsx","sizeToString","bytes","i","floor","pow","toFixed","fixUrlHash","setGetParameter","paramName","paramValue","indexOf","prefix","substring","suffix","history","pushState","changeThemeColor","querySelector","bufferDecode","Uint8Array","from","atob","charCodeAt","bufferEncode","btoa","String","fromCharCode","apply","replace","pathBack","folders","filePath","hex2bin","hex","padStart","basename","pathList","filename","fileNameNoExt","lastIndexOf","randomStr","result","characters","charactersLength","charAt","getNumber","base","conditions","isMac","platform","toUpperCase","isMobileSafari","ua","userAgent","iOS","match","webkit","vhCheck","vh","innerHeight","setProperty","getSelectItemStyles","personName","fontWeight","typography","fontWeightRegular","fontWeightMedium","removeI18nCache","keys","removeItem","avatar","loadingContainer","LoadingDialog","loadingText","Dialog","DialogContent","DialogContentText","CircularProgress","contentFix","CopyDialog","selectedPath","setSelectedPath","selectedPathName","setSelectedPathName","SetModalsLoading","DialogTitle","PathSelector","presentPath","onSelect","folder","Trans","i18nKey","components","DialogActions","Button","dirs","items","src_dir","DirectoryDownloadDialog","logRef","autoScroll","setAutoScroll","previousLog","usePrevious","next","timer","setTimer","useInterval","scrollIntoView","behavior","block","TextField","ref","FormControlLabel","Checkbox","previous","cancelDirectoryDownload","DecompressDialog","SubmitDecompressTask","submitDecompressTask","CompressDialog","fileName","setFileName","SubmitCompressTask","submitCompressTask","input","RelocateDialog","selectedPolicy","setSelectedPolicy","Select","MenuItem","dst_policy_id","formGroup","marginBottom","forumInput","flexGrow","RemoteDownload","selectPathOpen","setSelectPathOpen","downloadTo","setDownloadTo","setUrl","nodes","setNodes","nodesLoading","setNodesLoading","preferredNode","setPreferredNode","useMediaQuery","user","selectNode","torrent","placeholder","InputProps","startAdornment","InputAdornment","FolderOpenOutlined","FormControl","formControl","InputLabel","DnsOutlined","node","preferred_node","failed","r","details","form","Delete","force","setForce","unlink","setUnlink","advanceDelete","FormLabel","FormGroup","Tooltip","delete","ModalsCompoment","newFolderName","newFileName","newName","secretShare","sharePwd","purchaseCallback","handleInputChange","setState","newNameSuffix","UNSAFE_componentWillReceiveProps","nextProps","dndSignale","modalsStatus","rename","dragMove","submitResave","shareKey","submitMove","patch","DragSelectedPath","doMove","submitRename","new_name","submitCreateNewFolder","submitCreateNewFile","setMoveTarget","copySource","getSource","PurchaseShare","createNewFolder","onSubmit","createNewFile","copy","move","resave","remove","remoteDownload","remoteDownloadTorrent","decompress","compress","relocate","directoryDownloading","directoryDownloadDone","directoryDownloadLog","Component","Modals","connect","withRouter","withTranslation","layout","up","player","borderRadius","shape","overflowX","TextViewer","setContent","setStatus","useRouteMatch","$vm","createRef","useLocation","URLSearchParams","useParams","requestURL","responseType","textdata","Buffer","toBase64","reader","FileReader","readAsDataURL","onload","onerror","save","addImg","$file","$img2Url","elevation","language","onSave","toolbar","h1","h2","h3","h4","img","expand","undo","redo","subfield","MonacoEditor","lazy","editor","toobar","textAlign","CodeViewer","setSuffix","wordWrap","setWordWrap","extension","codePreviewSuffix","Array","Set","fallback","readOnly","extraEditorClassName","UploaderErrorName","RETRY_ERROR_LIST","FailedCreateUploadSession","HTTPRequestFailed","LocalChunkUploadFailed","SlaveChunkUploadFailed","RequestCanceled","ProcessingTaskDuplicated","FailedTransformResponse","RETRY_CODE_LIST","UploaderError","field","InvalidFile","supported","UnknownPolicyError","UnknownPolicyType","APIError","appError","CreateUploadSessionError","DeleteUploadSessionError","FailedDeleteUploadSession","axiosErr","LocalChunkUploadError","chunkIndex","SlaveChunkUploadError","OneDriveChunkError","OneDriveChunkUploadFailed","retryAfterSeconds","retryAfter","OneDriveEmptyFileSelected","OneDriveEmptyFile","OneDriveFinishUploadError","FailedFinishOneDriveUpload","S3LikeChunkError","S3LikeChunkUploadFailed","getElementsByTagName","innerHTML","S3LikeFinishUploadError","QiniuChunkError","QiniuChunkUploadFailed","QiniuFinishUploadError","FailedFinishQiniuUpload","COSUploadError","COSPostUploadFailed","COSUploadCallbackError","COSUploadCallbackFailed","UpyunUploadError","UpyunPostUploadFailed","S3LikeUploadCallbackError","S3LikeUploadCallbackFailed","parseError","getChunks","chunkByteSize","chunks","count","chunk","sumChunk","reduce","loaded","getResumeCtxKey","setResumeCtx","logger","ctxKey","warn","WriteCtxFailed","removeResumeCtx","RemoveCtxFailed","cleanupResumeCtx","getResumeCtx","localInfoString","ReadCtxFailed","localInfo","InvalidCtxData","session","Date","now","CtxExpired","listResumeCtx","res","len","OBJtoXML","obj","xml","isArray","array","getFileInput","isFolder","createElement","multiple","body","appendChild","pathJoin","parts","sep","part","RegExp","trimPrefix","getDirectoryUploadDst","relPath","webkitRelativePath","fsPath","readEntriesPromise","directoryReader","readEntries","readFilePromise","fileReader","readAllDirectoryEntries","entries","getAllFileEntries","dataTransferItemList","fileEntries","webkitGetAsEntry","getAsFile","entry","shift","isFile","fullPath","isDirectory","createReader","isFileDrop","dataTransfer","types","variantIcon","success","CheckCircleIcon","warning","WarningIcon","ErrorIcon","info","InfoIcon","MySnackbarContentWrapper","main","iconVariant","Icon","aria-describedby","close","SnackbarCompoment","snackbar","toggle","autoHideDuration","AlertBar","UserAvatarPopoverCompoment","openURL","sigOut","reload","Popover","visitorMenu","Divider","ListItemIcon","registerEnabled","largeAvatarContainer","Avatar","largeAvatar","Typography","noWrap","nickname","user_name","Chip","UserAvatarPopover","userPopoverAnchorEl","UserAvatarCompoment","showUserInfo","returnHome","loginCheck","isLogin","mobileHidden","Grow","IconButton","Home","UserAvatar","ListItem","MuiListItem","NavbarCompoment","componentDidMount","handleDrawerToggle","mobileOpen","openDownload","startDownload","openDirectoryDownload","startDirectoryDownload","archiveDownload","signOut","finally","UploaderRef","unlisten","listen","drawer","upDrawer","minStickDrawer","paddingList","iconFix","allowRemoteDownload","process","browser","test","appBar","menuButton","handleDesktopToggle","desktopOpen","menuButtonDesktop","menuIcon","setSelectedTarget","subTitle","grow","sectionForFile","isPreviewable","openPreview","showDirectoryPicker","isSecureContext","disableClickAway","audioPreviewPlayingName","audioPreviewOpen","smUp","implementation","container","paper","drawerPaper","onOpen","disableDiscovery","ModalProps","keepMounted","xsDown","drawerPaperDesktop","drawerOpen","drawerClose","Navbar","loadUploader","audioPreviewIsOpen","withTheme","flexShrink","drawerDesktop","mixins","flexDirection","justifyContent","transition","transitions","easing","sharp","duration","enteringScreen","leavingScreen","nested","paddingLeft","extendedIcon","addButton","fabButton","badgeFix","dividerFix","folderShareIcon","verticalAlign","shareInfoContainer","textDecoration","shareAvatar","stickFooter","ownerInfo","overflowY","Crc32","crc","table","offset","prototype","j","getDataHelper","byteLength","uint8","view","DataView","buffer","ZIP","underlyingSource","ctrl","activeZipObject","closed","files","filenames","encoder","TextEncoder","activeZipIndex","processNextChunk","closeZip","zipWriter","enqueue","fileLike","TypeError","trim","lastModified","directory","endsWith","nameBuf","encode","zipObject","level","comment","compressedLength","uncompressedLength","writeHeader","setUint16","setUint32","getHours","getMinutes","getSeconds","getFullYear","getMonth","getDate","writeFooter","footer","indexFilename","setUint8","zipObj","read","outputData","append","stream","getReader","ReadableStream","start","pull","getPreviewPath","walk","f","objects","subs","getFileSystemDirectoryPaths","handle","parent","paths","fileSystemHandle","FileSystemFileHandle","createFileSystemDirectory","cur","getDirectoryHandle","saveFileToFileSystemDirectory","dir","getFileHandle","createWritable","writable","write","verifyFileSystemRWPermission","fileHandle","opts","mode","queryPermission","requestPermission","directoryDownloadAbortController","setFileList","setDirList","setSortMethod","setSideBar","setCurrentPolicy","removeSelectedTargets","addSelectedTargets","setLastSelect","setShiftSelectedIds","sortMethodFuncs","sizePos","b","sizeRes","namePos","localeCompare","numeric","ignorePunctuation","nameRev","timePos","timeRev","modifyTimePos","modifyTimeRev","selectAll","updateFileList","sortMethod","x","sortFunc","sort","total","toggleObjectInfoSidebar","closeContextMenu","serverSideBatchDownload","fileSources","postBody","shareDownload","allowArchiveDownload","walkSources","fileStream","streamSaver","createWriteStream","readableZipStream","previewPath","fetch","cache","WritableStream","pipeTo","abort","AbortController","startIn","fsPaths","duplicates","updateLog","signal","blob","getViewerURL","viewer","openViewer","selectFile","fileIndex","ctrlKey","metaKey","shiftKey","isMacbook","all","begin","end","newShiftSelected","encodings","encoding","encodingRequired","allOptions","batchGetSource","sourceBatch","openTorrentDownload","openParentFolder","configure","ignoreTags","keyMap","SEARCH","SearchBarCompoment","handlers","searchShare","blur","cancelSuggest","searchIcon","inputRoot","inputInput","onBlur","suggestBox","TransitionProps","timeout","square","SearchBar","fade","common","white","pointerEvents","paddingTop","paddingRight","paddingBottom","StorageBarCompoment","percent","used","showExpand","firstLoad","updateStatus","refresh","onMouseEnter","onMouseLeave","storageContainer","detail","bar","StorageBar","storageRefresh","textFix","textOverflow","UserInfoCompoment","userNav","flexAvatar","avatarImg","storageCircle","nickName","groupName","UserInfo","backgroundImage","backgroundSize","minHeight","transform","hiddenButton","subMenu","overFlow","paddingSummary","icons","Circle","CircleOutline","Heart","HeartOutline","Hexagon","HexagonOutline","Hexagram","HexagramOutline","Rhombus","RhombusOutline","Square","SquareOutline","Triangle","TriangleOutline","FolderHeartOutline","AddTag","FileTag","useHistory","tagOpen","setTagOpen","addTagModal","setAddTagModal","tagHover","setTagHover","tags","setTags","SearchMyFile","p","NavigateTo","onSuccess","tag","newTags","iconVideo","iconImg","iconAudio","iconDoc","expression","IconComponent","getIcon","ImagPreviewComponent","photoIndex","firstOne","newImg","intro","fileType","toLowerCase","imgPreviewSuffix","images","visible","onIndexChange","n","ImgPreivew","msDocPreviewSuffix","subtitleSuffix","audioPreviewSuffix","videoPreviewSuffix","pdfPreviewSuffix","editSuffix","epubSuffix","json","php","py","bat","cpp","h","cs","css","dockerfile","go","html","ini","java","js","jsx","less","lua","sh","sql","yaml","mediaType","audio","video","image","pdf","word","ppt","excel","zip","excute","android","python","epub","isTorrent","isCompressFile","taskStatus","taskType","taskProgress","getTaskStatus","getTaskType","getTaskProgress","setWopiExts","exts","PolicyType","TaskType","Status","Logger","allowLevel","args","getPrintPrefix","createUploadSession","req","cancel","cancelToken","localUploadChunk","sessionID","onProgress","headers","onUploadProgress","progressEvent","slaveUploadChunk","credential","Authorization","oneDriveUploadChunk","range","finishOneDriveUpload","s3LikeUploadChunk","etag","s3LikeFinishUpload","isOss","PartNumber","ETag","validateStatus","qiniuDriveUploadChunk","upToken","authorization","qiniuFinishUpload","partNumber","cosFormUploadChunk","keyTime","ak","bodyFormData","FormData","cosUploadCallback","upyunFormUploadChunk","s3LikeUploadCallback","resumePolicy","local","remote","qiniu","oss","onedrive","s3","Base","manager","child","added","subscriber","progress","lastTime","startTime","subscribe","transit","initialized","setError","queued","pool","preparing","cachedInfo","utils","policy_id","last_modified","mime_type","token","resumed","chunkProgress","upload","afterUpload","finished","cancelUploadSession","canceled","reset","deleteUploadSession","onTransition","newStatus","onError","onMsg","Retryable","fromCache","SelectType","Chunk","initBeforeUploadChunks","updateLocalCache","uploadChunk","chunkSize","notifyResumeProgress","getProgressInfoItem","Local","chunkInfo","updateChunkProgress","Remote","uploadURLs","OneDrive","rangeEnd","sendRange","innererror","alignChunkOffset","chunkOffset","rangeStatus","expectedStart","nextExpectedRanges","newChunkOffset","finishing","OSS","completeURL","Qiniu","chunkRes","COS","Upyun","ResumeHint","resumable","UploadManager","fileInput","directoryInput","currentPath","changeConcurrentLimit","newLimit","File","NoPolicySelected","onchange","ev","fileSelectCallback","click","resumeTasks","tasks","dispatchUploader","resumeHint","cleanupSessions","Event","onFileDroppedIn","onDropLeave","uploaders","onDropFileAdded","logLevel","concurrentLimit","dropZone","onDropOver","cos","upyun","S3","acceptVal","removeAttribute","UploadButton","setOpen","setQueued","OpenNewFolderDialog","OpenNewFileDialog","Queued","uploadClicked","openFileList","circularProgress","useMemo","totalSize","processedSize","taskListOpen","Badge","badgeContent","invisible","Backdrop","SpeedDial","tooltipTitle","SpeedDialIcon","openIcon","FabProps","ariaLabel","SpeedDialAction","tooltipOpen","Directory","infoTitle","infoValue","wordBreak","TaskDetail","navigateToDst","Link","datetime","locale","Grid","xs","progressContent","progressContainer","listAction","successStatus","errorStatus","disabledBadge","dstLink","fileNameContainer","getSpeedText","speed","speedAvg","useSpeedAvg","displayedSpeed","getErrMsg","errMsg","Message","UploadTask","useAvgSpeed","onCancel","onRefresh","taskHover","setTaskHover","startLoadedRef","setProgress","durationTotal","resAvg","retry","useUpload","fullScreen","statusText","uploaded","percentage","resumeLabel","continueLabel","progressBar","lighten","darken","taskDetail","u","stopRipple","stopPropagation","secondaryAction","show","onTouchStart","fileIcon","TypeIcon","isUpload","newExpanded","onMouseOver","ListItemText","ConcurrentOptionDialog","setCount","Input","step","MoreActions","uploadManager","deleteTask","setUseAvgSpeed","setFilter","sorter","setSorter","cleanFinished","retryFailed","concurrentDialog","setConcurrentDialog","RefreshStorage","listItems","tooltip","divider","Replay","ClearAll","Menu","enterNextDelay","dense","val","Transition","forwardRef","Slide","direction","rootOverwrite","flex","popup","inset","paddingZero","dialogContent","virtualList","expandIcon","shortest","expandIconExpanded","sorters","reverse","filters","ongoing","TaskList","taskList","setUploaders","refreshList","setRefreshList","Fade","currentList","Nothing","increaseViewportBy","itemContent","classnames","TransitionComponent","disableEnforceFocus","hideBackdrop","disableBackdropClick","disableScrollLock","Accordion","AppBar","Toolbar","disableGutters","MoreHoriz","AccordionDetails","createStyles","backdrop","DropFileBackground","totalProgressCollector","lastProgressStart","Uploader","setTaskListOpen","dropBgOpen","setDropBgOpen","processed","totalProgress","setTotalProgress","fileSelectCounter","openFileSelector","folderSelectCounter","openFolderSelector","enableUploader","taskAdded","original","onToast","setPolicy","unfinished","setInterval","dayjs","extend","utc","timezone","userTimezone","Intl","DateTimeFormat","resolvedOptions","timeZone","preferTimeZone","refreshTimeZone","formatLocalTime","time","tz","toDate","formatParams","year","month","day","hour","minute","second","validateTimeZone","format","setSubtitle","setShareInfo","selectLanguage","changeLanguage","AudioIcon","VideoIcon","ImageIcon","PdfIcon","FileWordBox","FilePowerpointBox","FileExcelBox","ScriptText","MagnetOn","ZipBox","WindowRestore","Android","FileShowIcon","LanguagePhp","LanguageGo","LanguagePython","LanguageC","LanguageCpp","LanguageJavascript","MenuBook","fileSuffix","getColor","getColorValue","iconClassName","registerValidSW","swUrl","serviceWorker","register","registration","onupdatefound","installingWorker","installing","onstatechange","controller","onUpdate","isLocalhost","hostname","AuthRoute","rest","render","NoAuthRoute","PageLoading","emptyContainer","emptyInfoBig","Notice","primaryColor","secondaryColor","y","rx","ry","captchaPlacholder","NormalCaptcha","captchaRef","useStyle","captcha","setCaptcha","captchaData","setCaptchaData","refreshCaptcha","captchaCode","captchaInputContainer","required","autoComplete","captchaImageContainer","captchaImage","alt","ReCAPTCHA","handleExpired","bind","handleErrored","handleRecaptchaRef","grecaptcha","_widgetId","getResponse","execute","_executeRequested","onExpired","onErrored","sitekey","tabindex","stoken","hl","explicitRender","delayOfCaptchaIframeRemoving","temporaryNode","firstChild","removeChild","elem","childProps","defaultProps","makeAsyncScriptLoader","callbackName","globalName","Recaptcha","reCaptchaKey","captcha_ReCaptchaKey","captchaContainer","ReCaptcha","TCaptcha","isValidateRef","submitRef","appid","tcaptcha_captcha_app_id","onLoad","TencentCaptcha","ret","ticket","randstr","isValidate","submit","cursor","defaultValidate","useCaptcha","captchaType","captcha_type","captchaLoading","setCaptchaLoading","captchaRefreshRef","normal","captchaParamsRef","CaptchaRender","useNormalCaptcha","recaptcha","useRecaptcha","tcaptcha","useTCaptcha","buttonContainer","authnLink","LoginForm","email","setEmail","pwd","setPwd","useAuthn","setUseAuthn","twoFA","setTwoFA","faCode","setFACode","loginCaptcha","QQLogin","authn","ApplyThemes","SetSessionStatus","afterLogin","Paper","login","userName","Password","EmailOutlined","VpnKeyOutlined","credentials","credentialRequestOptions","publicKey","challenge","allowCredentials","listItem","assertion","authData","authenticatorData","clientDataJSON","rawId","sig","signature","userHandle","Fingerprint","VpnKey","expandMore","active","textTransform","PathButton","inputRef","useDrop","accept","drop","more","collect","monitor","isOver","canDrop","isActive","last","DropDownItem","setActiveStatus","DropDown","clearTimeout","shouldClose","NavigatorComponent","currentID","hiddenFolders","hiddenMode","anchorHidden","URL","searchParams","renderPath","onpopstate","navigateToPath","max_size","file_type","checkOverFlow","redresh","componentDidUpdate","prevProps","prevStates","ms","drawerDesktopOpen","overflowInitLock","hasOverflowingChildren","offsetHeight","scrollHeight","offsetWidth","scrollWidth","showHiddenPath","performAction","newTarget","presentFolderMenu","disableAutoFocusItem","Archive","roundBorder","navigatorContainer","nav","rightIcon","optionContainer","Navigator","highlight","FileName","highlightClassName","searchWords","autoEscape","textToHighlight","SmallIconCompoment","nextState","nextContext","isSelectedCurrent","isSelectedNext","isSelected","ButtonBase","focusRipple","notSelected","onIconClick","iconSelected","iconNotSelected","checkIcon","folderName","folderNameSelected","folderNameNotSelected","SmallIcon","boxSizing","FileIconCompoment","showPicIcon","thumb","picPreview","noDrag","afterLoad","beforeLoad","loadingAnimation","previewIcon","iconBig","fileInfo","shareFix","FileIcon","objectFit","userDrag","Folder","dragging","cardDragged","diliverIcon","Preview","card","layerStyles","getItemStyles","initialOffset","currentOffset","pointerOffset","WebkitTransform","CustomDragLayer","useDragLayer","itemType","getItemType","getInitialSourceClientOffset","getSourceClientOffset","getInitialClientOffset","isDragging","TableRowCompoment","tableIcon","pref","onContextMenu","contextMenu","handleClick","onDoubleClick","handleDoubleClick","selectedShared","TableCell","dref","scope","tableRow","hideAuto","TableItem","hover","userSelect","FolderDropWarpper","isListView","useDragScrolling","isScrolling","goDown","isScrollEnd","requestAnimationFrame","goUp","throttleOnDragOver","throttle","isMouseOnTop","clientY","isMouseOnDown","addEventListenerForWindow","removeEventListenerForWindow","removeEventListener","fixFlex","ObjectIcon","navigatorPath","ContextMenu","SetSelectedTarget","NavitateTo","DragAndDrop","OpenPreview","StartDownload","SelectFile","enterFolder","handleIconClick","useDrag","dropResult","getDropResult","canDrag","drag","getEmptyImage","captureDraggingState","StyledListItemIcon","ContextMenuCompoment","X","Y","setPoint","clientX","openArchiveDownload","renderMenuItems","visibleCount","condition","menuOpen","anchorReference","anchorPosition","Unarchive","InfoOutlined","propover","contextType","contextOpen","rootTable","typeHeader","errorBox","errorMsg","flexFix","upButton","clickAway","rootShare","visuallyHidden","clip","gridContainer","gridTemplateColumns","gridItem","DELETE_FILE","SELECT_ALL_SHOWED","SELECT_ALL","DESELECT_ALL","Explorer","navigatorErrorMsg","navigatorError","OpenRemoveDialog","ChangeContextMenu","SelectAll","page_size","page_number","startIndex","usePagination","showView","listView","TableHead","TableSortLabel","TableBody","normalView","data-clickAway","dataset","clickaway","allowChanges","ListLoading","drawerContainer","placeContent","fileIconSVG","folderIcon","closeIcon","placeSelf","propsContainer","propsLabel","propsTime","propsValue","SideDrawer","SetSideBar","setTarget","setDetails","propsItem","d","toLocaleString","child_folder_num","child_file_num","updated_at","created_at","query_date","Hidden","Clear","Drawer","gutterBottom","CustomPaginationItem","PaginationItem","PaginationFooter","SetPagination","Pagination","renderItem","FileManager","DndProvider","HTML5Backend","DragLayer","SelectMenu","showIcon","Artplayer","externalPlayers","actionButton","VideoViewer","art","setArt","setFiles","subtitles","setSubtitles","playlist","setPlaylist","subtitleOpen","setSubtitleOpen","subtitleSelected","setSubtitleSelected","playlistOpen","setPlaylistOpen","externalPlayerOpen","setExternalPlayerOpen","autoHeight","pictureInPictureEnabled","playing","pip","pause","newURL","subtitle","switchUrl","switchSubtitle","switch","fileNameMatch","flip","setting","playbackRate","aspectRatio","hotkey","fullscreen","fullscreenWeb","whitelist","moreVideoAttr","playsInline","lang","getInstance","startIcon","Subtitles","PlaylistPlay","Launch","sub","cardContainer","shareTitle","avatarFile","avatarFolder","gird","loadMore","orderSelect","cardAction","SearchResult","tGlobal","setPage","setTotal","shareList","setShareList","orderBy","setOrderBy","order","sm","Card","CardHeader","subheader","MyShareCompoment","showPwd","loadList","removeShare","oldList","changePermission","newPwd","shareIndex","changePreviewOption","handlePageChange","handleOrderChange","isExpired","remain_downloads","md","CardActions","disableActionSpacing","VisibilityOff","MyShare","scroll","SelectFileDialog","filesCopy","row","iconContainer","borderInlineStart","contentSide","iconMultiple","subFile","subFileName","subFileIcon","subFileSize","subFilePercent","bitmap","DownloadingCard","canvasRef","setTask","selectDialogOpen","setSelectDialogOpen","selectFileOption","setSelectFileOption","bitfield","str","canvas","context","getContext","clearRect","strokeStyle","bit","numPieces","beginPath","moveTo","lineTo","stroke","getPercent","completed","activeFiles","getDownloadName","bittorrent","subFileList","processStyle","completedLength","subFileCell","newIndex","newFiles","gid","indexes","deleteFile","HighlightOff","Table","TableRow","CardContent","LinearProgress","downloaded","update","uploadLength","uploadSpeed","infoHash","numSeeders","seeder","pieceLength","FinishedCard","getTaskError","task_status","task_error","RemoteDownloadButton","OpenRemoteDownloadDialog","Fab","Add","DownloadComponent","interval","previousDownloading","finishedList","continue","loadDownloading","Download","LockedFileCompoment","setPassowrd","LockedFile","marginRottom","boxHeader","shareDes","Creator","userProfile","views","ImgPreview","SharedFileCompoment","scoreHandler","download","box","boxContent","fileSize","boxFooter","actionLeft","openResave","downloadButton","SharedFile","fileCotainer","buttonCotainer","ReadMe","SharedFolderComponent","handleClickAway","ignore","readmeShowed","ClickAwayListener","onClickAway","managerContainer","SharedFolder","shareUserPopoverAnchorEl","SharePreload","setShare","setPassword","locked","withPassword","iframe","DocViewer","setSession","setFile","shareOpened","modalLoading","CloseAllModals","OpenShareDialog","access_token","replaceAll","resolvedLanguage","handlePostMessage","origin","MessageId","frameholder","getElementById","office_frame","access_token_ttl","QuotaCompoment","basic","pack","r1","r2","r3","packs","usedR","baseR","packR","proBar","r1_block","note_block","r2_block","r3_block","align","activate_date","expiration","expiration_date","Quota","lineHeight","float","PackSelect","boxHead","packName","price","priceWithScore","boxBottom","codeContainer","PaymentDialog","payment","BuyQuotaCompoment","IntervalId","confirmRedeem","redeemCode","doRedeem","redeemInfo","buyPack","packType","selectedPack","packPayMethod","groups","selectedGroup","scoreNum","times","qr_code","querryLoop","clearInterval","handleChangeIndex","handleTexyChange","selectPack","selectGroup","selectPackPayMethod","scorePrice","alipay","payjs","wechat","custom","custom_name","score_price","methodSelect","RadioGroup","Radio","textField","Tabs","Tab","AccountBalanceWallet","payMethod","priceShow","tier","titleTypographyProps","subheaderTypographyProps","cardHeader","cardPricing","line","cardActions","redeemContainer","BuyQuota","grey","formIcon","CreateWebDAVAccount","setValue","pathSelectDialog","setPathSelectDialog","formContainer","LabelOutlined","CreateWebDAVMount","Storage","qrcode","AppQRCode","Box","PhoneSkeleton","xmlns","enableBackground","viewBox","fill","strokeMiterlimit","strokeWidth","cx","cy","phoneContainer","marginX","perspective","transformStyle","perspectiveOrigin","phoneFrame","phoneImage","bold","frameContainer","grid","ol","paddingInlineStart","li","AppPromotion","effect","cardContent","tableContainer","WebDAV","tab","setTab","setCreate","mount","setMount","accounts","setAccounts","setFolders","appPromotion","app_promotion","account","ID","CreatedAt","Name","Root","Readonly","mountInfo","indicatorColor","textColor","Alert","severity","TableContainer","accountCopy","toggleAccountReadonly","allowWebDAVProxy","UseProxy","use_proxy","toggleAccountUseProxy","CloudOff","Cloud","deleteAccount","policy_name","folderCopy","deleteMount","Tasks","setTasks","nowrap","getError","ProfileCompoment","listType","loadNext","loadPrev","avatarContainer","centered","infoContainer","infoItem","mobileHide","th","tableLink","Profile","backgroundPosition","borderRaidus","pageInfo","sectionTitle","desenList","flexContainer","Authn","setSelected","confirm","setConfirm","deleteCredential","List","fingerprint","ListItemSecondaryAction","credentialCreationOptions","excludeCredentials","attestationObject","add","TimeZoneDialog","timeZoneValue","setTimeZoneValue","smsCode","sendButton","BindPhone","countdownTimer","countdownSecond","phone","setPhone","verifyCode","setVerifyCode","countdown","setCountdown","UserSettingCompoment","avatarModal","nickModal","changePassword","oldPwd","webdavPwd","newPwdRepeat","twoFactor","authCode","changeTheme","chosenTheme","showWebDavUrl","showWebDavUserName","changeWebDavPwd","groupBackModal","changeTimeZone","bindPhone","settings","uid","group_expires","qq","homepage","two_factor","two_fa_secret","prefer_theme","themes","changeView","loadSetting","doChangeGroup","useGravatar","changeNick","bindQQ","uploadAvatar","formData","handleToggle","changhePwd","old","new","init2FA","handleAlignment","toggleThemeMode","newMode","ListItemAvatar","infoTextWithIcon","rightIconWithText","infoText","ConfirmationNumber","Switch","firstColor","secondColor","Brightness3","ListAlt","Schedule","Translate","webdav","userGravatar","paddingText","flexContainerResponse","desText","ToggleButtonGroup","exclusive","ToggleButton","themeBlock","UserSetting","yellow","QQCallback","setMsg","avatarSuccess","Register","password_repeat","setInput","emailActive","setEmailActive","regCaptcha","Activation","setSuccess","ResetForm","secret","Reset","forgetCaptcha","overflowWrap","SiteNotice","site_notice","setShow","newNotice","dangerouslySetInnerHTML","__html","MusicPlayerComponent","currentIndex","currentTime","progressText","looptype","myAudioRef","newItem","handleItemClick","backgroundPlay","bindEvents","ele","readyPlay","loopnext","timeUpdate","unbindEvents","play","formatTime","playOrPaues","isPlay","changeLoopType","lt","handleProgress","idx","Slider","slider_root","justify","Repeat","RepeatOne","Shuffle","MusicPlayer","ReactReader","m","EpubViewer","currentLocation","setLocation","fileUrl","locationChanged","epubcifi","epubInitOptions","openAs","showToc","PDFViewer","App","themeConfig","prefersDarkMode","prefer","createMuiTheme","overrides","MuiButton","MuiTab","Fragment","ThemeProvider","CssBaseline","exact","Text","Code","initUserConfig","store","defaultTheme","wopi_exts","preferListMethod","share_view_method","home_view_method","music","doNavigate","currntPath","defaultStatus","rawStore","configCache","InitSiteConfig","siteICPId","black","contrastText","hint","bgSelected","emptyIcon","ErrorBoundary","hasError","errorInfo","componentStack","Admin","hash","contentType","ready","unregister","checkValidServiceWorker","alert","waiting","postMessage","createBrowserHistory","reduxEnhance","applyMiddleware","routerMiddleware","thunk","createStore","viewUpdateState","explorerState","appState","cloudreveApp","combinedState","combinedReducer","combine","namespace","reducer","invariant","combineReducers","connectRouter","UpdateSiteConfig","ReactDOM","emptyInfoSmall","PathSelectorCompoment","selectedTarget","toBeLoad","back","api","unshift","displayNames","handleSelect","selector","primaryTypographyProps","showActionIcon","buttonIcon","iconWhite","actionIcon"],"mappings":"8jKAKe,SAASA,EAAgBC,EAAOC,EAAMC,GACjD,IAAMC,EAAWC,cAD0C,EAEjCC,mBAAS,IAFwB,mBAEpD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AAD,CACIzB,UAAWG,EAAQqrF,YAEnB,kBAAC,IAAD,CACIxrF,UAAW6P,IAAW,eACjB1P,EAAQsrF,UACL,EAAKhpF,MAAMqoF,iBACXrpF,IAERqO,QAAS,kBACK,IAAVrO,EACM,EAAKupF,OACL,EAAKjtB,YACc,MAAfz7D,EAAM/H,KACA+H,EAAM/H,KACF+H,EAAMjB,KACViB,EAAM/H,KACF,IACA+H,EAAMjB,QApD3C,SAACI,GAChB,MAA+B,MAA3B,EAAKgB,MAAMwgB,YACJ,kBAAC,IAAD,MAGG,IAAVxhB,EACO,kBAAC,IAAD,MAEJ,kBAAC,IAAD,MAgDsBiqF,CAAWjqF,e,GAjJhB+pB,aAmKrBE,iBAvMS,SAACjpB,GACrB,MAAO,CACHrF,OAAQqF,EAAMD,SAASpF,WAIJ,SAAClD,GACxB,MAAO,CACHwE,eAAgB,SAACqK,EAAUC,EAAY3L,EAAK4L,GACxC/O,EAASwE,YAAeqK,EAAUC,EAAY3L,EAAK4L,QA8LhDyiB,CAGbnU,aA5La,SAAClY,GAAD,MAAY,CACvBosF,UAAW,CACPxiF,MAAO5J,EAAMe,QAAQyqC,OAAOC,OAEhClqC,SAAU,CACNf,gBAAiBR,EAAMe,QAAQwR,QAAQ8lB,KAAO,aAC9C,sBAAuB,CACnBzuB,MAAO5J,EAAMe,QAAQyqC,OAAOC,QAGpCl5B,QAAS,GACT3C,KAAM,GACNu8E,WAAY,GACZH,SAAU,CACNh7E,SAAU,SAEdwsB,UAAW,CACPvsB,UAAW,QACXgvB,UAAW,YA0KjB/nB,CAAmBqU,cAAkBi/D,O","file":"static/js/main.e2240e15.chunk.js","sourcesContent":["import { useDispatch } from \"react-redux\";\nimport { useCallback, useEffect, useState } from \"react\";\nimport { changeSubTitle } from \"../redux/viewUpdate/action\";\nimport pathHelper from \"../utils/page\";\n\nexport default function UseFileSubTitle(query, math, location) {\n const dispatch = useDispatch();\n const [title, setTitle] = useState(\"\");\n const [path, setPath] = useState(\"\");\n const SetSubTitle = useCallback(\n (title) => dispatch(changeSubTitle(title)),\n [dispatch]\n );\n\n useEffect(() => {\n if (!pathHelper.isSharePage(location.pathname)) {\n const path = query.get(\"p\").split(\"/\");\n setPath(query.get(\"p\"));\n SetSubTitle(path[path.length - 1]);\n setTitle(path[path.length - 1]);\n } else {\n SetSubTitle(query.get(\"name\"));\n setTitle(query.get(\"name\"));\n setPath(query.get(\"share_path\"));\n }\n // eslint-disable-next-line\n }, [math.params[0], location]);\n\n return { title, path };\n}\n","import axios from \"axios\";\nimport Auth from \"./Auth\";\nimport i18next from \"../i18n\";\n\nexport const baseURL = \"/api/v3\";\n\nexport const getBaseURL = () => {\n return baseURL;\n};\n\nexport const getPreviewURL = (\n isShare: boolean,\n shareID: any,\n fileID: any,\n path: any\n): string => {\n return (\n getBaseURL() +\n (isShare\n ? \"/share/preview/\" +\n shareID +\n (path !== \"\" ? \"?path=\" + encodeURIComponent(path) : \"\")\n : \"/file/preview/\" + fileID)\n );\n};\n\n// eslint-disable-next-line @typescript-eslint/ban-ts-ignore\n// @ts-ignore\nconst instance = axios.create({\n baseURL: getBaseURL(),\n withCredentials: true,\n});\n\nexport class AppError extends Error {\n constructor(message: string | undefined, public code: any, error: any) {\n super(message);\n this.code = code;\n if (i18next.exists(`errors.${code}`, { ns: \"common\" })) {\n this.message = i18next.t(`errors.${code}`, {\n ns: \"common\",\n message,\n });\n } else if (i18next.exists(`vasErrors.${code}`, { ns: \"common\" })) {\n this.message = i18next.t(`vasErrors.${code}`, {\n ns: \"common\",\n message,\n });\n } else if (i18next.exists(`errors.${code}`, { ns: \"dashboard\" })) {\n this.message = i18next.t(`errors.${code}`, {\n ns: \"dashboard\",\n message,\n });\n } else {\n this.message =\n message || i18next.t(\"unknownError\", { ns: \"common\" });\n }\n\n this.message +=\n error && !this.message.includes(error) ? ` (${error})` : \"\";\n this.stack = new Error().stack;\n }\n}\n\ninstance.interceptors.response.use(\n function (response: any) {\n response.rawData = response.data;\n response.data = response.data.data;\n if (\n response.rawData.code !== undefined &&\n response.rawData.code !== 0 &&\n response.rawData.code !== 203\n ) {\n // Login expired\n if (response.rawData.code === 401) {\n Auth.signout();\n window.location.href =\n \"/login?redirect=\" +\n encodeURIComponent(\n window.location.pathname + window.location.search\n );\n }\n\n // Non-admin\n if (response.rawData.code === 40008) {\n window.location.href = \"/home\";\n }\n\n // Not binding mobile phone\n if (response.rawData.code === 40010) {\n window.location.href = \"/setting?modal=phone\";\n }\n throw new AppError(\n response.rawData.msg,\n response.rawData.code,\n response.rawData.error\n );\n }\n return response;\n },\n function (error) {\n return Promise.reject(error);\n }\n);\n\nexport default instance;\n","import { ThunkAction } from \"redux-thunk\";\nimport Auth from \"../../middleware/Auth\";\nimport pathHelper from \"../../utils/page\";\nimport { closeAllModals, confirmPurchase, toggleSnackbar } from \"./index\";\nimport { setOptionModal } from \"../viewUpdate/action\";\nimport i18next from \"../../i18n\";\n\nexport const askForOption = (\n options: any,\n title: string\n): ThunkAction => {\n return async (dispatch, getState): Promise => {\n return new Promise((resolve, reject) => {\n const dialog = {\n open: true,\n title: title,\n options: options,\n };\n dispatch(\n setOptionModal({\n ...dialog,\n onClose: () => {\n dispatch(setOptionModal({ ...dialog, open: false }));\n reject(i18next.t(\"fileManager.userDenied\"));\n },\n callback: (option: any) => {\n resolve(option);\n dispatch(setOptionModal({ ...dialog, open: false }));\n },\n })\n );\n });\n };\n};\n\nconst purchased = new Map();\n\nexport const trySharePurchase = (\n share: any\n): ThunkAction => {\n return async (dispatch, getState): Promise => {\n return new Promise((resolve, reject) => {\n const {\n router: {\n location: { pathname },\n },\n } = getState();\n if (pathHelper.isSharePage(pathname) && share && share.score > 0) {\n if (!Auth.Check()) {\n dispatch(\n toggleSnackbar(\n \"top\",\n \"right\",\n i18next.t(\"share.pleaseLogin\"),\n \"warning\"\n )\n );\n dispatch(closeAllModals());\n reject(i18next.t(\"fileManager.userDenied\"));\n return;\n }\n\n if (\n !Auth.GetUser().group.shareFree &&\n !purchased.has(share.key)\n ) {\n dispatch(\n confirmPurchase({\n score: share.score,\n onClose: () => {\n dispatch(confirmPurchase(undefined));\n reject(i18next.t(\"fileManager.userDenied\"));\n },\n callback: () => {\n purchased.set(share.key, true);\n resolve();\n dispatch(confirmPurchase(undefined));\n },\n })\n );\n return;\n }\n }\n\n resolve();\n });\n };\n};\n","import React from \"react\";\nimport { Code } from \"react-content-loader\";\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\n\nconst useStyles = makeStyles((theme) => ({\n loader: {\n width: \"70%\",\n padding: 40,\n [theme.breakpoints.down(\"md\")]: {\n width: \"100%\",\n padding: 10,\n },\n },\n}));\n\nconst MyLoader = (props) => (\n \n);\n\nfunction TextLoading() {\n const theme = useTheme();\n const classes = useStyles();\n\n return (\n
\n \n
\n );\n}\n\nexport default TextLoading;\n","/* eslint-disable no-case-declarations */\nimport { AnyAction } from \"redux\";\nimport { CloudreveFile } from \"../../types\";\nimport { Policy } from \"../../component/Uploader/core/types\";\n\ninterface SelectProps {\n isMultiple: boolean;\n withFolder: boolean;\n withFile: boolean;\n withSourceEnabled: boolean;\n}\n\nexport interface ExplorerState {\n dndSignal: boolean;\n dndTarget: any;\n dndSource: any;\n fileList: CloudreveFile[];\n dirList: CloudreveFile[];\n selected: CloudreveFile[];\n selectProps: SelectProps;\n lastSelect: {\n file: CloudreveFile;\n index: number;\n };\n shiftSelectedIds: string[];\n imgPreview: {\n first: CloudreveFile;\n other: [];\n };\n audioPreview: {\n first: CloudreveFile;\n other: [];\n playingName: any;\n paused: boolean;\n isOpen: boolean;\n };\n search?: {\n keywords: string;\n searchPath: string;\n };\n fileSave: boolean;\n sideBarOpen: boolean;\n currentPolicy?: Policy;\n purchase?: {\n callback: any;\n onClose: any;\n score: number;\n };\n}\n\nexport const initState: ExplorerState = {\n dndSignal: false,\n dndTarget: null,\n dndSource: null,\n fileList: [],\n dirList: [],\n selected: [],\n selectProps: {\n isMultiple: false,\n withFolder: false,\n withFile: false,\n withSourceEnabled: false,\n },\n lastSelect: {\n file: {\n id: \"\",\n name: \"\",\n size: 0,\n type: \"file\",\n date: \"\",\n path: \"\",\n create_date: \"\",\n },\n index: -1,\n },\n shiftSelectedIds: [],\n imgPreview: {\n first: {\n id: \"\",\n name: \"\",\n size: 0,\n type: \"file\",\n date: \"\",\n path: \"\",\n create_date: \"\",\n },\n other: [],\n },\n audioPreview: {\n first: {\n id: \"\",\n name: \"\",\n size: 0,\n type: \"file\",\n date: \"\",\n path: \"\",\n create_date: \"\",\n },\n other: [],\n playingName: null,\n paused: false,\n isOpen: false,\n },\n fileSave: false,\n sideBarOpen: false,\n};\n\nconst checkSelectedProps = (selected: CloudreveFile[]): SelectProps => {\n const isMultiple = selected.length > 1;\n let withFolder = false;\n let withFile = false;\n let withSourceEnabled = false;\n selected.forEach((value) => {\n if (value.type === \"dir\") {\n withFolder = true;\n withSourceEnabled = true;\n } else if (value.type === \"file\") {\n withFile = true;\n if (value.source_enabled) {\n withSourceEnabled = true;\n }\n }\n });\n return {\n isMultiple,\n withFolder,\n withFile,\n withSourceEnabled,\n };\n};\n\nconst explorer = (\n state: ExplorerState = initState,\n action: AnyAction\n): ExplorerState => {\n switch (action.type) {\n case \"DRAG_AND_DROP\":\n return Object.assign({}, state, {\n dndSignal: !state.dndSignal,\n dndTarget: action.target,\n dndSource: action.source,\n });\n case \"SET_FILE_LIST\":\n return Object.assign({}, state, {\n fileList: action.list,\n });\n case \"SET_DIR_LIST\":\n return Object.assign({}, state, {\n dirList: action.list,\n });\n case \"ADD_SELECTED_TARGETS\":\n const addedSelected = [...state.selected, ...action.targets];\n return Object.assign({}, state, {\n selected: addedSelected,\n selectProps: checkSelectedProps(addedSelected),\n });\n case \"SET_SELECTED_TARGET\":\n const newSelected = action.targets;\n return Object.assign({}, state, {\n selected: newSelected,\n selectProps: checkSelectedProps(newSelected),\n });\n case \"RMOVE_SELECTED_TARGETS\":\n const { fileIds } = action;\n const filteredSelected = state.selected.filter((file) => {\n return !fileIds.includes(file.id);\n });\n return Object.assign({}, state, {\n selected: filteredSelected,\n selectProps: checkSelectedProps(filteredSelected),\n });\n case \"REFRESH_FILE_LIST\":\n return Object.assign({}, state, {\n selected: [],\n selectProps: {\n isMultiple: false,\n withFolder: false,\n withFile: false,\n withSourceEnabled: false,\n },\n });\n case \"SEARCH_MY_FILE\":\n return Object.assign({}, state, {\n selected: [],\n selectProps: {\n isMultiple: false,\n withFolder: false,\n withFile: false,\n withSourceEnabled: false,\n },\n search: {\n keywords: action.keywords,\n searchPath: action.path,\n },\n });\n case \"SHOW_IMG_PREIVEW\":\n return Object.assign({}, state, {\n imgPreview: {\n first: action.first,\n other: state.fileList,\n },\n });\n case \"SHOW_AUDIO_PREVIEW\":\n return Object.assign({}, state, {\n audioPreview: {\n ...state.audioPreview,\n first: action.first,\n other: state.fileList,\n },\n });\n case \"AUDIO_PREVIEW_SET_IS_OPEN\":\n return Object.assign({}, state, {\n audioPreview: {\n ...state.audioPreview,\n isOpen: action.isOpen,\n },\n });\n case \"AUDIO_PREVIEW_SET_PLAYING\":\n return Object.assign({}, state, {\n audioPreview: {\n ...state.audioPreview,\n playingName: action.playingName,\n paused: action.paused,\n },\n });\n case \"SAVE_FILE\":\n return {\n ...state,\n fileSave: !state.fileSave,\n };\n case \"SET_LAST_SELECT\":\n const { file, index } = action;\n return {\n ...state,\n lastSelect: {\n file,\n index,\n },\n };\n case \"SET_SHIFT_SELECTED_IDS\":\n const { shiftSelectedIds } = action;\n return {\n ...state,\n shiftSelectedIds,\n };\n case \"SET_NAVIGATOR\":\n return {\n ...state,\n selected: [],\n selectProps: {\n isMultiple: false,\n withFolder: false,\n withFile: false,\n withSourceEnabled: false,\n },\n search: undefined,\n };\n case \"SET_SIDE_BAR\":\n return {\n ...state,\n sideBarOpen: action.open,\n };\n case \"SET_CURRENT_POLICY\":\n return {\n ...state,\n currentPolicy: action.policy,\n };\n case \"CONFIRM_PURCHASE\":\n return {\n ...state,\n purchase: action.purchase,\n };\n default:\n return state;\n }\n};\n\nexport default explorer;\n","import React, { useEffect, useState } from \"react\";\nimport Zoom from \"@material-ui/core/Zoom\";\n\nfunction AutoHidden({ children, enable, hide = false, element = null }) {\n const [hidden, setHidden] = useState(false);\n let prev = window.scrollY;\n let lastUpdate = window.scrollY;\n const show = 50;\n\n useEffect(() => {\n const handleNavigation = (e) => {\n const window = e.currentTarget;\n const current = element ? element.scrollTop : window.scrollY;\n\n if (prev > current) {\n if (lastUpdate - current > show) {\n lastUpdate = current;\n setHidden(false);\n }\n } else if (prev < current) {\n if (current - lastUpdate > show) {\n lastUpdate = current;\n setHidden(true);\n }\n }\n prev = current;\n };\n if (enable) {\n const target = element ? element : window;\n target.addEventListener(\"scroll\", (e) => handleNavigation(e));\n }\n // eslint-disable-next-line\n }, [enable]);\n\n return {children};\n}\n\nexport default AutoHidden;\n","const Auth = {\n isAuthenticated: false,\n authenticate(cb: any) {\n Auth.SetUser(cb);\n Auth.isAuthenticated = true;\n },\n GetUser() {\n return JSON.parse(localStorage.getItem(\"user\") || \"null\");\n },\n SetUser(newUser: any) {\n localStorage.setItem(\"user\", JSON.stringify(newUser));\n },\n Check(): boolean {\n if (Auth.isAuthenticated) {\n return true;\n }\n if (localStorage.getItem(\"user\") !== null) {\n return !Auth.GetUser().anonymous;\n }\n return false;\n },\n signout() {\n Auth.isAuthenticated = false;\n const oldUser = Auth.GetUser();\n oldUser.id = 0;\n localStorage.setItem(\"user\", JSON.stringify(oldUser));\n },\n SetPreference(key: string, value: any) {\n let preference = JSON.parse(\n localStorage.getItem(\"user_preference\") || \"{}\"\n );\n preference = preference == null ? {} : preference;\n preference[key] = value;\n localStorage.setItem(\"user_preference\", JSON.stringify(preference));\n },\n GetPreference(key: string): any | null {\n const preference = JSON.parse(\n localStorage.getItem(\"user_preference\") || \"{}\"\n );\n if (preference && preference[key] !== undefined) {\n return preference[key];\n }\n return null;\n },\n GetPreferenceWithDefault(key: string, defaultVal: any): any {\n return Auth.GetPreference(key) !== null\n ? Auth.GetPreference(key)\n : defaultVal;\n },\n};\n\nexport default Auth;\n","import API from \"../middleware/Api\";\n\nexport async function list(\n path: string,\n share: any,\n keywords: string,\n searchPath: string\n): Promise {\n let apiURL = \"\";\n if (share) {\n if (keywords === \"\") {\n apiURL = \"/share/list/\" + share.key;\n } else {\n apiURL = `/share/search/${share.key}/`;\n }\n } else {\n if (keywords === \"\") {\n apiURL = \"/directory\";\n } else {\n apiURL = \"/file/search/\";\n }\n }\n\n path = keywords === \"\" ? path : keywords;\n apiURL = apiURL + encodeURIComponent(path);\n if (searchPath) {\n apiURL = `${apiURL}?path=${encodeURIComponent(searchPath)}`;\n }\n return API.get(apiURL);\n}\n","import * as actions from \"./action\";\nimport * as reducers from \"./reducer\";\nimport { setPagination } from \"../viewUpdate/action\";\n\nexport default {\n actions,\n reducers,\n};\nexport { selectFile } from \"./action\";\nexport { openPreview } from \"./action\";\nexport { setShiftSelectedIds } from \"./action\";\nexport { setLastSelect } from \"./action\";\nexport { setSelectedTarget } from \"./action\";\nexport { addSelectedTargets } from \"./action\";\nexport { removeSelectedTargets } from \"./action\";\nexport const setNavigator = (path: any, navigatorLoading: any) => {\n return {\n type: \"SET_NAVIGATOR\",\n path,\n navigatorLoading,\n };\n};\nexport const navigateTo = (path: any) => {\n return (dispatch: any, getState: any) => {\n const state = getState();\n const navigatorLoading = path !== state.navigator.path;\n if (navigatorLoading) {\n dispatch(\n setPagination({\n ...state.viewUpdate.pagination,\n page: 1,\n })\n );\n }\n dispatch(setNavigator(path, navigatorLoading));\n };\n};\nexport const navigateUp = () => {\n return (dispatch, getState) => {\n const state = getState();\n const pathSplit = state.navigator.path.split(\"/\");\n pathSplit.pop();\n const newPath = pathSplit.length === 1 ? \"/\" : pathSplit.join(\"/\");\n const navigatorLoading = newPath !== state.navigator.path;\n if (navigatorLoading) {\n dispatch(\n setPagination({\n ...state.viewUpdate.pagination,\n page: 1,\n })\n );\n }\n dispatch(setNavigator(newPath, navigatorLoading));\n };\n};\nexport const drawerToggleAction = (open) => {\n return {\n type: \"DRAWER_TOGGLE\",\n open: open,\n };\n};\nexport const dragAndDrop = (source, target) => {\n return {\n type: \"DRAG_AND_DROP\",\n source: source,\n target: target,\n };\n};\nexport const changeViewMethod = (method) => {\n return {\n type: \"CHANGE_VIEW_METHOD\",\n method: method,\n };\n};\nexport const toggleDaylightMode = () => {\n return {\n type: \"TOGGLE_DAYLIGHT_MODE\",\n };\n};\n// Deprecated\nexport const changeContextMenu = (type, open) => {\n return {\n type: \"CHANGE_CONTEXT_MENU\",\n menuType: type,\n open: open,\n };\n};\nexport const setNavigatorLoadingStatus = (status) => {\n return {\n type: \"SET_NAVIGATOR_LOADING_STATUE\",\n status: status,\n };\n};\nexport const setNavigatorError = (status, msg) => {\n return {\n type: \"SET_NAVIGATOR_ERROR\",\n status: status,\n msg: msg,\n };\n};\nexport const openCreateFolderDialog = () => {\n return {\n type: \"OPEN_CREATE_FOLDER_DIALOG\",\n };\n};\nexport const openCreateFileDialog = () => {\n return {\n type: \"OPEN_CREATE_FILE_DIALOG\",\n };\n};\nexport const setUserPopover = (anchor) => {\n return {\n type: \"SET_USER_POPOVER\",\n anchor: anchor,\n };\n};\nexport const setShareUserPopover = (anchor) => {\n return {\n type: \"SET_SHARE_USER_POPOVER\",\n anchor: anchor,\n };\n};\nexport const openRenameDialog = () => {\n return {\n type: \"OPEN_RENAME_DIALOG\",\n };\n};\nexport const openResaveDialog = (key) => {\n return {\n type: \"OPEN_RESAVE_DIALOG\",\n key: key,\n };\n};\nexport const openMoveDialog = () => {\n return {\n type: \"OPEN_MOVE_DIALOG\",\n };\n};\nexport const openRemoveDialog = () => {\n return {\n type: \"OPEN_REMOVE_DIALOG\",\n };\n};\nexport const openShareDialog = () => {\n return {\n type: \"OPEN_SHARE_DIALOG\",\n };\n};\nexport const applyThemes = (theme) => {\n return {\n type: \"APPLY_THEME\",\n theme: theme,\n };\n};\nexport const setSessionStatus = (status) => {\n return {\n type: \"SET_SESSION_STATUS\",\n status: status,\n };\n};\nexport const openMusicDialog = () => {\n return {\n type: \"OPEN_MUSIC_DIALOG\",\n };\n};\nexport const openRemoteDownloadDialog = () => {\n return {\n type: \"OPEN_REMOTE_DOWNLOAD_DIALOG\",\n };\n};\nexport const openTorrentDownloadDialog = (selected) => {\n return {\n type: \"OPEN_TORRENT_DOWNLOAD_DIALOG\",\n selected: selected,\n };\n};\nexport const openDecompressDialog = () => {\n return {\n type: \"OPEN_DECOMPRESS_DIALOG\",\n };\n};\nexport const openCompressDialog = () => {\n return {\n type: \"OPEN_COMPRESS_DIALOG\",\n };\n};\nexport const openRelocateDialog = () => {\n return {\n type: \"OPEN_RELOCATE_DIALOG\",\n };\n};\nexport const openGetSourceDialog = (source) => {\n return {\n type: \"OPEN_GET_SOURCE_DIALOG\",\n source,\n };\n};\nexport const openCopyDialog = () => {\n return {\n type: \"OPEN_COPY_DIALOG\",\n };\n};\n// Deprecated\nexport const openLoadingDialog = (text) => {\n return {\n type: \"OPEN_LOADING_DIALOG\",\n text: text,\n };\n};\n// Deprecated\nexport const closeAllModals = () => {\n return {\n type: \"CLOSE_ALL_MODALS\",\n };\n};\nexport const toggleSnackbar = (vertical, horizontal, msg, color) => {\n return {\n type: \"TOGGLE_SNACKBAR\",\n vertical: vertical,\n horizontal: horizontal,\n msg: msg,\n color: color,\n };\n};\nexport const setModalsLoading = (status) => {\n return {\n type: \"SET_MODALS_LOADING\",\n status: status,\n };\n};\nexport const refreshFileList = () => {\n return {\n type: \"REFRESH_FILE_LIST\",\n };\n};\nexport const searchMyFile = (keywords, path) => {\n return {\n type: \"SEARCH_MY_FILE\",\n keywords: keywords,\n path: path,\n };\n};\nexport const showImgPreivew = (first) => {\n return {\n type: \"SHOW_IMG_PREIVEW\",\n first: first,\n };\n};\nexport const showAudioPreview = (first) => {\n return {\n type: \"SHOW_AUDIO_PREVIEW\",\n first: first,\n };\n};\nexport const audioPreviewSetIsOpen = (isOpen) => {\n return {\n type: \"AUDIO_PREVIEW_SET_IS_OPEN\",\n isOpen,\n };\n};\nexport const audioPreviewSetPlaying = (playingName, paused) => {\n return {\n type: \"AUDIO_PREVIEW_SET_PLAYING\",\n playingName, //the playing content name\n paused,\n };\n};\nexport const refreshStorage = () => {\n return {\n type: \"REFRESH_STORAGE\",\n };\n};\nexport const saveFile = () => {\n return {\n type: \"SAVE_FILE\",\n };\n};\n\nexport const setSiteConfig = (config) => {\n return {\n type: \"SET_SITE_CONFIG\",\n config: config,\n };\n};\n\nexport const openDirectoryDownloadDialog = (downloading, log, done) => {\n return {\n type: \"OPEN_DIRECTORY_DOWNLOAD_DIALOG\",\n downloading,\n log,\n done,\n };\n};\n\nexport const confirmPurchase = (purchase) => {\n return {\n type: \"CONFIRM_PURCHASE\",\n purchase: purchase,\n };\n};\n","const statusHelper = {\n isHomePage(path: string) {\n return path === \"/home\";\n },\n isSharePage(path: string) {\n return path && path.startsWith(\"/s/\");\n },\n isAdminPage(path: string) {\n return path && path.startsWith(\"/admin\");\n },\n isLoginPage(path: string) {\n return path && path.startsWith(\"/login\");\n },\n isMobile() {\n return window.innerWidth < 600;\n },\n};\nexport default statusHelper;\n","import i18n from \"i18next\";\nimport { initReactI18next } from \"react-i18next\";\n\nimport Backend from \"i18next-http-backend\";\n// eslint-disable-next-line @typescript-eslint/ban-ts-ignore\n// @ts-ignore\nimport ChainedBackend, { ChainedBackendOptions } from \"i18next-chained-backend\";\nimport LanguageDetector from \"i18next-browser-languagedetector\";\nimport LocalStorageBackend from \"i18next-localstorage-backend\";\n\ndeclare let ASSETS_VERSION: string;\n\n// eslint-disable-next-line @typescript-eslint/ban-ts-ignore\n// @ts-ignore\ni18n.use(ChainedBackend)\n .use(LanguageDetector)\n .use(initReactI18next)\n .init({\n fallbackLng: \"en-US\",\n debug: true,\n ns: [\"common\", \"application\"],\n load: \"currentOnly\",\n defaultNS: \"application\",\n interpolation: {\n escapeValue: false,\n },\n backend: {\n backends:\n process.env.NODE_ENV === \"development\"\n ? [Backend]\n : [LocalStorageBackend, Backend],\n backendOptions: [\n {\n expirationTime: 7 * 24 * 60 * 60 * 1000, // 7 days\n },\n {\n queryStringParams: { v: ASSETS_VERSION },\n loadPath: \"/locales/{{lng}}/{{ns}}.json\",\n },\n ],\n },\n });\n\ni18n.on(\"languageChanged\", (lng) => {\n document.documentElement.setAttribute(\"lang\", lng);\n});\n\nexport const languages = [\n {\n code: \"en-US\",\n displayName: \"English\",\n },\n {\n code: \"zh-CN\",\n displayName: \"简体中文\",\n },\n {\n code: \"zh-TW\",\n displayName: \"繁體中文\",\n },\n];\n\nexport default i18n;\n","import Base from \"../uploader/base\";\nimport { ProcessingTaskDuplicatedError } from \"../errors\";\n\nexport interface QueueContent {\n uploader: Base;\n resolve: () => void;\n reject: (err?: any) => void;\n}\n\nexport class Pool {\n queue: Array = [];\n processing: Array = [];\n\n constructor(public limit: number) {}\n\n enqueue(uploader: Base) {\n return new Promise((resolve, reject) => {\n this.queue.push({\n uploader,\n resolve,\n reject,\n });\n this.check();\n });\n }\n\n release(item: QueueContent) {\n this.processing = this.processing.filter((v) => v !== item);\n this.check();\n }\n\n run(item: QueueContent) {\n this.queue = this.queue.filter((v) => v !== item);\n if (\n this.processing.findIndex(\n (v) =>\n v.uploader.task.dst == item.uploader.task.dst &&\n v.uploader.task.file.name == item.uploader.task.name\n ) > -1\n ) {\n // 找到重名任务\n item.reject(new ProcessingTaskDuplicatedError());\n this.release(item);\n return;\n }\n\n this.processing.push(item);\n item.uploader.run().then(\n () => {\n item.resolve();\n this.release(item);\n },\n (err) => {\n item.reject(err);\n this.release(item);\n }\n );\n }\n\n check() {\n const processingNum = this.processing.length;\n const availableNum = Math.max(0, this.limit - processingNum);\n this.queue.slice(0, availableNum).forEach((item) => {\n this.run(item);\n });\n }\n}\n","import { Policy } from \"../types\";\nimport { FileValidateError } from \"../errors\";\n\ninterface Validator {\n (file: File, policy: Policy): void;\n}\n\n// validators\nconst checkers: Array = [\n function checkExt(file: File, policy: Policy) {\n if (\n policy.allowedSuffix != undefined &&\n policy.allowedSuffix.length > 0\n ) {\n const ext = file?.name.split(\".\").pop();\n if (ext === null || !ext || !policy.allowedSuffix.includes(ext))\n throw new FileValidateError(\n \"File suffix not allowed in policy.\",\n \"suffix\",\n policy\n );\n }\n },\n\n function checkSize(file: File, policy: Policy) {\n if (policy.maxSize > 0) {\n if (file.size > policy.maxSize) {\n throw new FileValidateError(\n \"File size exceeds maximum limit.\",\n \"size\",\n policy\n );\n }\n }\n },\n];\n\n/* 将每个 Validator 执行\n 失败返回 Error\n */\nexport function validate(file: File, policy: Policy) {\n checkers.forEach((c) => c(file, policy));\n}\n","import axios, { AxiosRequestConfig } from \"axios\";\nimport { Response } from \"../types\";\nimport {\n HTTPError,\n RequestCanceledError,\n TransformResponseError,\n} from \"../errors\";\n\nexport const { CancelToken } = axios;\nexport { CancelTokenSource } from \"axios\";\n\nconst baseConfig = {\n transformResponse: [\n (response: any) =>\n window.baseConfig\n ? window.baseConfig(\n (response, e) => new TransformResponseError(response, e)\n )(response)\n : null,\n ],\n};\n\nconst cdBackendConfig = {\n ...baseConfig,\n baseURL: \"/api/v3\",\n withCredentials: true,\n};\n\nexport function request(url: string, config?: AxiosRequestConfig) {\n return axios.request({ ...baseConfig, ...config, url }).catch((err) => {\n if (axios.isCancel(err)) {\n throw new RequestCanceledError();\n }\n\n if (err instanceof TransformResponseError) {\n throw err;\n }\n\n throw new HTTPError(err, url);\n });\n}\n\nexport function requestAPI(url: string, config?: AxiosRequestConfig) {\n return request>(url, { ...cdBackendConfig, ...config });\n}\n","import API from \"../middleware/Api\";\n\nexport async function getDownloadURL(file: any): Promise {\n let reqURL = \"\";\n if (file.key) {\n const downloadPath =\n file.path === \"/\"\n ? file.path + file.name\n : file.path + \"/\" + file.name;\n reqURL =\n \"/share/download/\" +\n file.key +\n \"?path=\" +\n encodeURIComponent(downloadPath);\n } else {\n reqURL = \"/file/download/\" + file.id;\n }\n\n return API.put(reqURL);\n}\n","import React, { useCallback } from \"react\";\nimport { IconButton, makeStyles } from \"@material-ui/core\";\nimport DayIcon from \"@material-ui/icons/Brightness7\";\nimport NightIcon from \"@material-ui/icons/Brightness4\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport Tooltip from \"@material-ui/core/Tooltip\";\nimport Auth from \"../../middleware/Auth\";\nimport classNames from \"classnames\";\nimport { toggleDaylightMode } from \"../../redux/explorer\";\nimport { useTranslation } from \"react-i18next\";\n\nconst useStyles = makeStyles(() => ({\n icon: {\n color: \"rgb(255, 255, 255)\",\n opacity: \"0.54\",\n },\n}));\n\nconst DarkModeSwitcher = ({ position }) => {\n const { t } = useTranslation();\n const ThemeType = useSelector(\n (state) => state.siteConfig.theme.palette.type\n );\n const dispatch = useDispatch();\n const ToggleThemeMode = useCallback(() => dispatch(toggleDaylightMode()), [\n dispatch,\n ]);\n const isDayLight = (ThemeType && ThemeType === \"light\") || !ThemeType;\n const isDark = ThemeType && ThemeType === \"dark\";\n const toggleMode = () => {\n Auth.SetPreference(\"theme_mode\", isDayLight ? \"dark\" : \"light\");\n ToggleThemeMode();\n };\n const classes = useStyles();\n return (\n \n \n {isDayLight && }\n {isDark && }\n \n \n );\n};\n\nexport default DarkModeSwitcher;\n","import React, { useCallback } from \"react\";\nimport {\n Avatar,\n CircularProgress,\n IconButton,\n ListItem,\n ListItemAvatar,\n ListItemText,\n makeStyles,\n} from \"@material-ui/core\";\nimport Tooltip from \"@material-ui/core/Tooltip\";\nimport { Nas } from \"mdi-material-ui\";\nimport Popover from \"@material-ui/core/Popover\";\nimport API from \"../../middleware/Api\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { Backup, Check } from \"@material-ui/icons\";\nimport { blue, green } from \"@material-ui/core/colors\";\nimport List from \"@material-ui/core/List\";\nimport { refreshFileList, toggleSnackbar } from \"../../redux/explorer\";\nimport Divider from \"@material-ui/core/Divider\";\nimport Box from \"@material-ui/core/Box\";\nimport Link from \"@material-ui/core/Link\";\nimport { Link as RouterLink } from \"react-router-dom\";\nimport pathHelper from \"../../utils/page\";\nimport { useTranslation } from \"react-i18next\";\n\nconst useStyles = makeStyles((theme) => ({\n uploadFromFile: {\n backgroundColor: blue[100],\n color: blue[600],\n },\n policySelected: {\n backgroundColor: green[100],\n color: green[800],\n },\n header: {\n padding: \"8px 16px\",\n fontSize: 14,\n },\n list: {\n minWidth: 300,\n maxHeight: 600,\n overflow: \"auto\",\n },\n}));\n\nconst PolicySwitcher = () => {\n const { t } = useTranslation();\n const [anchorEl, setAnchorEl] = React.useState(null);\n const [policies, setPolicies] = React.useState([]);\n const [loading, setLoading] = React.useState(null);\n const policy = useSelector((state) => state.explorer.currentPolicy);\n const path = useSelector((state) => state.navigator.path);\n const dispatch = useDispatch();\n const ToggleSnackbar = useCallback(\n (vertical, horizontal, msg, color) =>\n dispatch(toggleSnackbar(vertical, horizontal, msg, color)),\n [dispatch]\n );\n const RefreshFileList = useCallback(() => dispatch(refreshFileList()), [\n dispatch,\n ]);\n const search = useSelector((state) => state.explorer.search);\n\n const handleClick = (event) => {\n if (policies.length === 0) {\n API.get(\"/user/setting/policies\", {})\n .then((response) => {\n setPolicies(response.data);\n })\n .catch((error) => {\n ToggleSnackbar(\"top\", \"right\", error.message, \"error\");\n });\n }\n setAnchorEl(event.currentTarget);\n };\n\n const handleClose = () => {\n setAnchorEl(null);\n };\n\n const switchTo = (id) => {\n if (id === policy.id) {\n handleClose();\n return;\n }\n setLoading(id);\n API.post(\"/webdav/mount\", {\n path: path,\n policy: id,\n })\n .then(() => {\n ToggleSnackbar(\n \"top\",\n \"right\",\n t(\"vas.folderPolicySwitched\"),\n \"success\"\n );\n RefreshFileList();\n setLoading(null);\n handleClose();\n })\n .catch((error) => {\n ToggleSnackbar(\"top\", \"right\", error.message, \"error\");\n setLoading(null);\n handleClose();\n });\n };\n\n const open = Boolean(anchorEl);\n const id = open ? \"simple-popover\" : undefined;\n\n const classes = useStyles();\n return (\n <>\n {pathHelper.isHomePage(location.pathname) && !search && (\n \n \n \n \n \n )}\n \n
\n \n {t(\"vas.setPolicyForFolder\")}\n \n
\n\n \n \n {policies.map((value, index) => (\n switchTo(value.id)}\n >\n \n {value.id === loading && (\n \n )}\n {value.id !== loading && (\n <>\n {value.id === policy.id && (\n \n \n \n )}\n {value.id !== policy.id && (\n \n \n \n )}\n \n )}\n \n \n \n ))}\n \n \n
\n handleClose()}\n component={RouterLink}\n to={\"/connect?tab=1\"}\n color={\"secondary\"}\n >\n {t(\"vas.manageMount\")}\n \n
\n \n \n );\n};\n\nexport default PolicySwitcher;\n","import React, { useCallback, useState } from \"react\";\nimport { IconButton, makeStyles, Menu, MenuItem } from \"@material-ui/core\";\nimport ViewListIcon from \"@material-ui/icons/ViewList\";\nimport ViewSmallIcon from \"@material-ui/icons/ViewComfy\";\nimport ViewModuleIcon from \"@material-ui/icons/ViewModule\";\nimport TextTotateVerticalIcon from \"@material-ui/icons/TextRotateVertical\";\nimport SaveIcon from \"@material-ui/icons/Save\";\nimport { Report as ReportIcon } from \"@material-ui/icons\";\nimport DownloadIcon from \"@material-ui/icons/CloudDownload\";\nimport Avatar from \"@material-ui/core/Avatar\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport Auth from \"../../../middleware/Auth\";\nimport {\n changeSortMethod,\n startBatchDownload,\n} from \"../../../redux/explorer/action\";\nimport {\n changeViewMethod,\n openResaveDialog,\n setShareUserPopover,\n} from \"../../../redux/explorer\";\nimport { FormatPageBreak } from \"mdi-material-ui\";\nimport pathHelper from \"../../../utils/page\";\nimport { changePageSize } from \"../../../redux/viewUpdate/action\";\nimport Report from \"../../Modals/Report\";\nimport { useTranslation } from \"react-i18next\";\n\nconst useStyles = makeStyles((theme) => ({\n sideButton: {\n padding: \"8px\",\n marginRight: \"5px\",\n },\n}));\n\nconst sortOptions = [\n \"A-Z\",\n \"Z-A\",\n \"oldestUploaded\",\n \"newestUploaded\",\n \"oldestModified\",\n \"newestModified\",\n \"smallest\",\n \"largest\",\n];\n\nconst paginationOption = [\"50\", \"100\", \"200\", \"500\", \"1000\"];\n\nexport default function SubActions({ isSmall, inherit }) {\n const { t } = useTranslation(\"application\", { keyPrefix: \"fileManager\" });\n const { t: vasT } = useTranslation(\"application\", { keyPrefix: \"vas\" });\n const dispatch = useDispatch();\n const viewMethod = useSelector(\n (state) => state.viewUpdate.explorerViewMethod\n );\n const share = useSelector((state) => state.viewUpdate.shareInfo);\n const pageSize = useSelector((state) => state.viewUpdate.pagination.size);\n const OpenLoadingDialog = useCallback(\n (method) => dispatch(changeViewMethod(method)),\n [dispatch]\n );\n const ChangeSortMethod = useCallback(\n (method) => dispatch(changeSortMethod(method)),\n [dispatch]\n );\n const OpenResaveDialog = useCallback(\n (key) => dispatch(openResaveDialog(key)),\n [dispatch]\n );\n const SetShareUserPopover = useCallback(\n (e) => dispatch(setShareUserPopover(e)),\n [dispatch]\n );\n const StartBatchDownloadAll = useCallback(\n () => dispatch(startBatchDownload(share)),\n [dispatch, share]\n );\n const ChangePageSize = useCallback(\n (e) => dispatch(changePageSize(e)),\n [dispatch]\n );\n const [anchorSort, setAnchorSort] = useState(null);\n const [anchorPagination, setAnchorPagination] = useState(null);\n const [selectedIndex, setSelectedIndex] = useState(0);\n const [openReport, setOpenReport] = useState(false);\n const showSortOptions = (e) => {\n setAnchorSort(e.currentTarget);\n };\n const showPaginationOptions = (e) => {\n setAnchorPagination(e.currentTarget);\n };\n const handleMenuItemClick = (e, index) => {\n setSelectedIndex(index);\n const optionsTable = {\n 0: \"namePos\",\n 1: \"nameRev\",\n 2: \"timePos\",\n 3: \"timeRev\",\n 4: \"modifyTimePos\",\n 5: \"modifyTimeRev\",\n 6: \"sizePos\",\n 7: \"sizeRes\",\n };\n ChangeSortMethod(optionsTable[index]);\n setAnchorSort(null);\n };\n const handlePaginationChange = (s) => {\n ChangePageSize(s);\n setAnchorPagination(null);\n };\n\n const toggleViewMethod = () => {\n const newMethod =\n viewMethod === \"icon\"\n ? \"list\"\n : viewMethod === \"list\"\n ? \"smallIcon\"\n : \"icon\";\n Auth.SetPreference(\"view_method\", newMethod);\n OpenLoadingDialog(newMethod);\n };\n const isMobile = pathHelper.isMobile();\n\n const classes = useStyles();\n return (\n <>\n \n \n \n\n {viewMethod === \"icon\" && (\n \n \n \n )}\n {viewMethod === \"list\" && (\n \n \n \n )}\n\n {viewMethod === \"smallIcon\" && (\n \n \n \n )}\n\n {!isMobile && (\n \n \n \n )}\n setAnchorPagination(null)}\n >\n {paginationOption.map((option, index) => (\n handlePaginationChange(parseInt(option))}\n >\n {t(\"paginationOption\", { option })}\n \n ))}\n handlePaginationChange(-1)}\n >\n {t(\"noPagination\")}\n \n \n\n \n \n \n setAnchorSort(null)}\n >\n {sortOptions.map((option, index) => (\n handleMenuItemClick(event, index)}\n >\n {t(\"sortMethods.\" + option)}\n \n ))}\n \n {share && (\n <>\n OpenResaveDialog(share.key)}\n color={inherit ? \"inherit\" : \"default\"}\n >\n \n \n {!inherit && (\n <>\n setOpenReport(true)}\n >\n \n \n setOpenReport(false)}\n />\n \n )}\n \n )}\n {share && (\n SetShareUserPopover(e.currentTarget)}\n style={{ padding: 5 }}\n >\n \n \n )}\n \n );\n}\n","import React, { useCallback, useState } from \"react\";\nimport {\n Button,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n FormControl,\n makeStyles,\n TextField,\n} from \"@material-ui/core\";\nimport { useDispatch } from \"react-redux\";\nimport API from \"../../middleware/Api\";\nimport RadioGroup from \"@material-ui/core/RadioGroup\";\nimport FormControlLabel from \"@material-ui/core/FormControlLabel\";\nimport Radio from \"@material-ui/core/Radio\";\nimport { reportReasons } from \"../../config\";\nimport { toggleSnackbar } from \"../../redux/explorer\";\nimport { useTranslation } from \"react-i18next\";\n\nconst useStyles = makeStyles((theme) => ({\n widthAnimation: {},\n shareUrl: {\n minWidth: \"400px\",\n },\n wrapper: {\n margin: theme.spacing(1),\n position: \"relative\",\n },\n buttonProgress: {\n color: theme.palette.secondary.light,\n position: \"absolute\",\n top: \"50%\",\n left: \"50%\",\n },\n flexCenter: {\n alignItems: \"center\",\n },\n noFlex: {\n display: \"block\",\n },\n scoreCalc: {\n marginTop: 10,\n },\n}));\n\nexport default function Report(props) {\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const classes = useStyles();\n const [reason, setReason] = useState(\"0\");\n const [des, setDes] = useState(\"\");\n const [loading, setLoading] = useState(false);\n\n const ToggleSnackbar = useCallback(\n (vertical, horizontal, msg, color) =>\n dispatch(toggleSnackbar(vertical, horizontal, msg, color)),\n [dispatch]\n );\n\n const onClose = () => {\n props.onClose();\n setTimeout(() => {\n setDes(\"\");\n setReason(\"0\");\n }, 500);\n };\n\n const submitReport = () => {\n setLoading(true);\n API.post(\"/share/report/\" + props.share.key, {\n des: des,\n reason: parseInt(reason),\n })\n .then(() => {\n ToggleSnackbar(\n \"top\",\n \"right\",\n t(\"vas.reportSuccessful\"),\n \"success\"\n );\n setLoading(false);\n onClose();\n })\n .catch((error) => {\n ToggleSnackbar(\"top\", \"right\", error.message, \"error\");\n setLoading(false);\n });\n };\n\n return (\n \n {t(\"vas.report\")}\n \n \n setReason(e.target.value)}\n >\n {reportReasons.map((v, k) => (\n }\n label={t(v)}\n />\n ))}\n \n \n setDes(e.target.value)}\n variant=\"filled\"\n rows={4}\n />\n \n\n \n \n \n {t(\"ok\", { ns: \"common\" })}\n \n \n \n );\n}\n","import React, { useCallback, useRef, useEffect } from \"react\";\nimport {\n Button,\n Checkbox,\n CircularProgress,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n FormControl,\n Input,\n makeStyles,\n TextField,\n} from \"@material-ui/core\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport API from \"../../middleware/Api\";\nimport List from \"@material-ui/core/List\";\nimport ListItemText from \"@material-ui/core/ListItemText\";\nimport ListItem from \"@material-ui/core/ListItem\";\nimport ListItemIcon from \"@material-ui/core/ListItemIcon\";\nimport LockIcon from \"@material-ui/icons/Lock\";\nimport TimerIcon from \"@material-ui/icons/Timer\";\nimport CasinoIcon from \"@material-ui/icons/Casino\";\nimport AccountBalanceWalletIcon from \"@material-ui/icons/AccountBalanceWallet\";\nimport ListItemSecondaryAction from \"@material-ui/core/ListItemSecondaryAction\";\nimport Divider from \"@material-ui/core/Divider\";\nimport MuiExpansionPanel from \"@material-ui/core/ExpansionPanel\";\nimport MuiExpansionPanelSummary from \"@material-ui/core/ExpansionPanelSummary\";\nimport MuiExpansionPanelDetails from \"@material-ui/core/ExpansionPanelDetails\";\nimport Typography from \"@material-ui/core/Typography\";\nimport withStyles from \"@material-ui/core/styles/withStyles\";\nimport InputLabel from \"@material-ui/core/InputLabel\";\nimport { Visibility, VisibilityOff } from \"@material-ui/icons\";\nimport IconButton from \"@material-ui/core/IconButton\";\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\nimport OutlinedInput from \"@material-ui/core/OutlinedInput\";\nimport Tooltip from \"@material-ui/core/Tooltip\";\nimport MenuItem from \"@material-ui/core/MenuItem\";\nimport Select from \"@material-ui/core/Select\";\nimport ToggleIcon from \"material-ui-toggle-icon\";\nimport { toggleSnackbar } from \"../../redux/explorer\";\nimport { useTranslation } from \"react-i18next\";\n\nconst useStyles = makeStyles((theme) => ({\n widthAnimation: {},\n shareUrl: {\n minWidth: \"400px\",\n },\n wrapper: {\n margin: theme.spacing(1),\n position: \"relative\",\n },\n buttonProgress: {\n color: theme.palette.secondary.light,\n position: \"absolute\",\n top: \"50%\",\n left: \"50%\",\n },\n flexCenter: {\n alignItems: \"center\",\n },\n noFlex: {\n display: \"block\",\n },\n scoreCalc: {\n marginTop: 10,\n },\n expireLabel: {\n whiteSpace: \"nowrap\",\n },\n}));\n\nconst ExpansionPanel = withStyles({\n root: {\n border: \"0px solid rgba(0, 0, 0, .125)\",\n boxShadow: \"none\",\n \"&:not(:last-child)\": {\n borderBottom: 0,\n },\n \"&:before\": {\n display: \"none\",\n },\n \"&$expanded\": {\n margin: \"auto\",\n },\n },\n expanded: {},\n})(MuiExpansionPanel);\n\nconst ExpansionPanelSummary = withStyles({\n root: {\n padding: 0,\n \"&$expanded\": {},\n },\n content: {\n margin: 0,\n display: \"initial\",\n \"&$expanded\": {\n margin: \"0 0\",\n },\n },\n expanded: {},\n})(MuiExpansionPanelSummary);\n\nconst ExpansionPanelDetails = withStyles((theme) => ({\n root: {\n padding: 24,\n backgroundColor: theme.palette.background.default,\n },\n}))(MuiExpansionPanelDetails);\n\nexport default function CreatShare(props) {\n console.log(props);\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const classes = useStyles();\n\n const ToggleSnackbar = useCallback(\n (vertical, horizontal, msg, color) =>\n dispatch(toggleSnackbar(vertical, horizontal, msg, color)),\n [dispatch]\n );\n\n const scoreEnabled = useSelector((state) => state.siteConfig.score_enabled);\n const scoreRate = useSelector((state) => state.siteConfig.share_score_rate);\n const lastSubmit = useRef(null);\n const [initialScore, setInitialScore] = React.useState(0); // 新增状态来存储初始积分值\n\n const [expanded, setExpanded] = React.useState(false);\n const [shareURL, setShareURL] = React.useState(\"\");\n const [values, setValues] = React.useState({\n password: \"\",\n downloads: 1,\n expires: 24 * 3600,\n showPassword: false,\n score: 0,\n });\n const [shareOption, setShareOption] = React.useState({\n password: false,\n expire: false,\n score: false,\n preview: true,\n });\n const [customExpires, setCustomExpires] = React.useState(3600);\n const [customDownloads, setCustomDownloads] = React.useState(10);\n\n const handleChange = (prop) => (event) => {\n // 输入密码\n if (prop === \"password\") {\n if (event.target.value === \"\") {\n setShareOption({ ...shareOption, password: false });\n } else {\n setShareOption({ ...shareOption, password: true });\n }\n }\n // 输入积分\n if (prop === \"score\") {\n const newValue = event.target.value;\n if (event.target.value == \"0\") {\n setShareOption({ ...shareOption, score: false });\n } else {\n setShareOption({ ...shareOption, score: true });\n }\n // 允许用户清空输入框以便重新输入\n if (newValue === \"\") {\n setValues({ ...values, [prop]: newValue });\n return;\n }\n\n const numericValue = parseInt(newValue, 10);\n\n // 检测是否为有效的数字输入\n if (!isNaN(numericValue)) {\n if (numericValue >= initialScore || values[prop] === \"\") {\n setValues({ ...values, [prop]: numericValue });\n } else {\n ToggleSnackbar(\n \"top\",\n \"right\",\n \"积分不能低于初始值。\",\n \"warning\"\n );\n return;\n }\n }\n }\n\n setValues({ ...values, [prop]: event.target.value });\n };\n\n const handleClickShowPassword = () => {\n setValues({ ...values, showPassword: !values.showPassword });\n };\n\n const handleMouseDownPassword = (event) => {\n event.preventDefault();\n };\n\n const randomPassword = () => {\n setShareOption({ ...shareOption, password: true });\n setValues({\n ...values,\n password: Math.random().toString(36).substr(2).slice(2, 8),\n showPassword: true,\n });\n };\n\n const handleExpand = (panel) => (event, isExpanded) => {\n setExpanded(isExpanded ? panel : false);\n };\n const search = useSelector((state) => state.explorer.search);\n\n // 获取文件大小\n const loadProps = (object) => {\n console.log(\"object\", object);\n API.get(\n \"/object/property/\" +\n object.id +\n \"?trace_root=\" +\n (search ? \"true\" : \"false\") +\n \"&is_folder=\" +\n (object.type === \"dir\").toString()\n )\n .then((response) => {\n const fileSizeInMB = response.data.size / 1024 / 1024;\n const calculatedInitialScore = Math.round(fileSizeInMB / 100);\n console.log(\"calculatedInitialScore\", calculatedInitialScore);\n setInitialScore(calculatedInitialScore); // 设置初始积分值\n setValues((values) => ({\n ...values,\n score: Math.max(values.score, calculatedInitialScore),\n }));\n })\n .catch((error) => {\n ToggleSnackbar(\"top\", \"right\", error.message, \"error\");\n });\n };\n const handleCheck = (prop) => () => {\n if (!shareOption[prop]) {\n handleExpand(prop)(null, true);\n }\n if (prop === \"password\" && shareOption[prop]) {\n setValues({\n ...values,\n password: \"\",\n });\n }\n if (prop === \"score\" && shareOption[prop]) {\n console.log(\"values.score\", values.score);\n setValues({\n ...values,\n score: 0,\n });\n }\n loadProps(props.selected[0]);\n setShareOption({ ...shareOption, [prop]: !shareOption[prop] });\n };\n\n const onClose = () => {\n // 在关闭弹窗时如果expanded是打开的,关闭它\n if (expanded) {\n setExpanded(false);\n }\n setShareOption({ ...shareOption, score: false });\n setValues({\n ...values,\n score: 0, // 积分清零\n });\n props.onClose();\n setTimeout(() => {\n setShareURL(\"\");\n }, 500);\n };\n\n const senLink = () => {\n if (navigator.share) {\n let text = t(\"modals.shareLinkShareContent\", {\n name: props.selected[0].name,\n link: shareURL,\n });\n if (lastSubmit.current && lastSubmit.current.password) {\n text += t(\"modals.shareLinkPasswordInfo\", {\n password: lastSubmit.current.password,\n });\n }\n navigator.share({ text });\n } else if (navigator.clipboard) {\n navigator.clipboard.writeText(shareURL);\n ToggleSnackbar(\"top\", \"right\", t(\"modals.linkCopied\"), \"info\");\n }\n };\n\n const submitShare = (e) => {\n // 如果values.score小于初始积分值,提示用户\n if (values.score < initialScore) {\n ToggleSnackbar(\n \"top\",\n \"right\",\n \"积分不能低于初始计算值。\",\n \"warning\"\n );\n return;\n }\n\n e.preventDefault();\n props.setModalsLoading(true);\n const submitFormBody = {\n id: props.selected[0].id,\n is_dir: props.selected[0].type === \"dir\",\n password: values.password,\n downloads: shareOption.expire\n ? values.downloads === -1\n ? parseInt(customDownloads)\n : values.downloads\n : -1,\n expire:\n values.expires === -1\n ? parseInt(customExpires)\n : values.expires,\n score: parseInt(values.score),\n preview: shareOption.preview,\n };\n lastSubmit.current = submitFormBody;\n\n API.post(\"/share\", submitFormBody)\n .then((response) => {\n setShareURL(response.data);\n setValues({\n password: \"\",\n downloads: 1,\n expires: 24 * 3600,\n showPassword: false,\n score: 0,\n });\n setShareOption({\n password: false,\n expire: false,\n score: false,\n });\n props.setModalsLoading(false);\n })\n .catch((error) => {\n ToggleSnackbar(\"top\", \"right\", error.message, \"error\");\n props.setModalsLoading(false);\n });\n };\n\n const handleFocus = (event) => event.target.select();\n useEffect(() => {\n // 当弹窗打开时执行\n if (props.open && props.selected[0]) {\n loadProps(props.selected[0]);\n }\n }, [props.open, props.selected]);\n return (\n \n \n {t(\"modals.createShareLink\")}\n \n\n {shareURL === \"\" && (\n <>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {t(\"modals.sharePassword\")}\n \n \n \n \n \n \n \n \n }\n offIcon={\n \n }\n />\n \n \n }\n labelWidth={70}\n />\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {values.downloads >= 0 && (\n \n {[1, 2, 3, 4, 5, 20, 50, 100].map(\n (v) => (\n \n {t(\n \"modals.downloadLimitOptions\",\n { num: v }\n )}\n \n )\n )}\n \n {t(\"modals.custom\")}\n \n \n )}\n {values.downloads === -1 && (\n \n setCustomDownloads(\n e.target.value\n )\n }\n endAdornment={\n \n {t(\"modals.downloads\")}\n \n }\n />\n )}\n \n \n {t(\"modals.or\")}\n \n \n {values.expires >= 0 && (\n \n \n {t(\"modals.5minutes\")}\n \n \n {t(\"modals.1hour\")}\n \n \n {t(\"modals.1day\")}\n \n \n {t(\"modals.7days\")}\n \n \n {t(\"modals.30days\")}\n \n \n {t(\"modals.custom\")}\n \n \n )}\n {values.expires === -1 && (\n \n setCustomExpires(e.target.value)\n }\n endAdornment={\n \n {t(\"modals.seconds\")}\n \n }\n />\n )}\n \n \n {t(\"modals.downloadSuffix\")}\n \n \n \n {scoreEnabled && (\n \n \n \n \n \n \n \n \n \n \n\n \n \n \n {t(\"vas.creditToBePaid\")}\n \n \n \n {values.score !== 0 && scoreRate !== \"100\" && (\n \n {t(\"vas.creditGainPredict\", {\n num: Math.ceil(\n (values.score * scoreRate) /\n 100\n ),\n })}\n \n )}\n \n \n )}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {t(\"modals.allowPreviewDescription\")}\n \n \n \n \n \n \n )}\n {shareURL !== \"\" && (\n \n \n \n )}\n\n \n {shareURL !== \"\" && (\n
\n \n
\n )}\n \n\n {shareURL === \"\" && (\n
\n \n {t(\"modals.createShareLink\")}\n {props.modalsLoading && (\n \n )}\n \n
\n )}\n
\n \n );\n}\n","import React from \"react\";\nimport { Dialog } from \"@material-ui/core\";\nimport DialogTitle from \"@material-ui/core/DialogTitle\";\nimport DialogContent from \"@material-ui/core/DialogContent\";\nimport DialogActions from \"@material-ui/core/DialogActions\";\nimport Button from \"@material-ui/core/Button\";\nimport DialogContentText from \"@material-ui/core/DialogContentText\";\nimport { useSelector } from \"react-redux\";\nimport { useTranslation } from \"react-i18next\";\n\nexport default function PurchaseShareDialog() {\n const { t } = useTranslation();\n const purchase = useSelector((state) => state.explorer.purchase);\n return (\n <>\n {purchase && (\n \n \n {t(\"vas.sharePurchaseTitle\", { score: purchase.score })}\n \n \n \n {t(\"vas.sharePurchaseDescription\")}\n \n \n \n \n purchase.callback()}\n color=\"primary\"\n autoFocus\n >\n {t(\"ok\", { ns: \"common\" })}\n \n \n \n )}\n \n );\n}\n","import React from \"react\";\nimport {\n Button,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n List,\n ListItem,\n ListItemText,\n makeStyles,\n} from \"@material-ui/core\";\nimport { useSelector } from \"react-redux\";\nimport { useTranslation } from \"react-i18next\";\n\nconst useStyles = makeStyles((theme) => ({\n content: {\n minWidth: 250,\n },\n}));\n\nexport default function OptionSelector() {\n const { t } = useTranslation(\"common\");\n const classes = useStyles();\n const option = useSelector((state) => state.viewUpdate.modals.option);\n\n return (\n \n \n {option && option.title}\n \n \n \n {option &&\n option.options.map((o) => (\n option && option.callback(o)}\n button\n >\n \n \n ))}\n \n \n \n \n \n \n );\n}\n","import React from \"react\";\nimport { makeStyles } from \"@material-ui/core\";\nimport SaveIcon from \"@material-ui/icons/Save\";\nimport CheckIcon from \"@material-ui/icons/Check\";\nimport AutoHidden from \"./AutoHidden\";\nimport statusHelper from \"../../utils/page\";\nimport Fab from \"@material-ui/core/Fab\";\nimport Tooltip from \"@material-ui/core/Tooltip\";\nimport CircularProgress from \"@material-ui/core/CircularProgress\";\nimport { green } from \"@material-ui/core/colors\";\nimport clsx from \"clsx\";\n\nconst useStyles = makeStyles((theme) => ({\n fab: {\n margin: 0,\n top: \"auto\",\n right: 20,\n bottom: 20,\n left: \"auto\",\n zIndex: 5,\n position: \"fixed\",\n },\n badge: {\n position: \"absolute\",\n bottom: 26,\n top: \"auto\",\n zIndex: 9999,\n right: 7,\n },\n fabProgress: {\n color: green[500],\n position: \"absolute\",\n top: -6,\n left: -6,\n zIndex: 1,\n },\n wrapper: {\n margin: theme.spacing(1),\n position: \"relative\",\n },\n buttonSuccess: {\n backgroundColor: green[500],\n \"&:hover\": {\n backgroundColor: green[700],\n },\n },\n}));\n\nexport default function SaveButton(props) {\n const classes = useStyles();\n const buttonClassname = clsx({\n [classes.buttonSuccess]: props.status === \"success\",\n });\n\n return (\n \n
\n
\n \n \n {props.status === \"success\" ? (\n \n ) : (\n \n )}\n \n \n {props.status === \"loading\" && (\n \n )}\n
\n
\n
\n );\n}\n","export const sizeToString = (bytes) => {\n if (bytes === 0 || bytes === \"0\") return \"0 B\";\n const k = 1024;\n const sizes = [\"B\", \"KB\", \"MB\", \"GB\", \"TB\", \"PB\", \"EB\", \"ZB\", \"YB\"];\n const i = Math.floor(Math.log(bytes) / Math.log(k));\n return (bytes / Math.pow(k, i)).toFixed(1) + \" \" + sizes[i];\n};\n\nexport const fixUrlHash = (path) => {\n return path;\n};\n\nexport const setCookie = (name, value, days) => {\n if (days) {\n const date = new Date();\n date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);\n }\n document.cookie = name + \"=\" + (value || \"\") + \"; path=/\";\n};\n\nexport const setGetParameter = (paramName, paramValue) => {\n let url = window.location.href;\n\n if (url.indexOf(paramName + \"=\") >= 0) {\n const prefix = url.substring(0, url.indexOf(paramName));\n let suffix = url.substring(url.indexOf(paramName));\n suffix = suffix.substring(suffix.indexOf(\"=\") + 1);\n suffix =\n suffix.indexOf(\"&\") >= 0\n ? suffix.substring(suffix.indexOf(\"&\"))\n : \"\";\n url = prefix + paramName + \"=\" + paramValue + suffix;\n } else {\n if (url.indexOf(\"?\") < 0) url += \"?\" + paramName + \"=\" + paramValue;\n else url += \"&\" + paramName + \"=\" + paramValue;\n }\n if (url === window.location.href) {\n return;\n }\n window.history.pushState(null, null, url);\n};\n\nexport const checkGetParameters = (field) => {\n const url = window.location.href;\n if (url.indexOf(\"?\" + field + \"=\") !== -1) return true;\n else if (url.indexOf(\"&\" + field + \"=\") !== -1) return true;\n return false;\n};\n\nexport const changeThemeColor = (color) => {\n const metaThemeColor = window.document.querySelector(\n \"meta[name=theme-color]\"\n );\n metaThemeColor.setAttribute(\"content\", color);\n};\n\nexport function bufferDecode(value) {\n return Uint8Array.from(atob(value), (c) => c.charCodeAt(0));\n}\n\n// ArrayBuffer to URLBase64\nexport function bufferEncode(value) {\n return btoa(String.fromCharCode.apply(null, new Uint8Array(value)))\n .replace(/\\+/g, \"-\")\n .replace(/\\//g, \"_\")\n .replace(/=/g, \"\");\n}\n\nexport function pathBack(path) {\n const folders =\n path !== null\n ? path.substr(1).split(\"/\")\n : this.props.path.substr(1).split(\"/\");\n return \"/\" + folders.slice(0, folders.length - 1).join(\"/\");\n}\n\nexport function filePath(file) {\n return file.path === \"/\"\n ? file.path + file.name\n : file.path + \"/\" + file.name;\n}\n\nexport function hex2bin(hex) {\n return parseInt(hex, 16).toString(2).padStart(8, \"0\");\n}\n\nexport function pathJoin(parts, sep) {\n const separator = sep || \"/\";\n parts = parts.map((part, index) => {\n if (index) {\n part = part.replace(new RegExp(\"^\" + separator), \"\");\n }\n if (index !== parts.length - 1) {\n part = part.replace(new RegExp(separator + \"$\"), \"\");\n }\n return part;\n });\n return parts.join(separator);\n}\n\nexport function basename(path) {\n if (!path) {\n return \"\";\n }\n const pathList = path.split(\"/\");\n pathList.pop();\n return pathList.join(\"/\") === \"\" ? \"/\" : pathList.join(\"/\");\n}\n\nexport function filename(path) {\n const pathList = path.split(\"/\");\n return pathList.pop();\n}\n\nexport function fileNameNoExt(filename) {\n return filename.substring(0, filename.lastIndexOf(\".\")) || filename;\n}\n\nexport function randomStr(length) {\n let result = \"\";\n const characters =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\n const charactersLength = characters.length;\n for (let i = 0; i < length; i++) {\n result += characters.charAt(\n Math.floor(Math.random() * charactersLength)\n );\n }\n return result;\n}\n\nexport function getNumber(base, conditions) {\n conditions.forEach((v) => {\n if (v) {\n base++;\n }\n });\n return base;\n}\n\nexport const isMac = () => {\n return navigator.platform.toUpperCase().indexOf(\"MAC\") >= 0;\n};\n\nexport const isMobileSafari = () => {\n const ua = window.navigator.userAgent;\n const iOS = !!ua.match(/iPad/i) || !!ua.match(/iPhone/i);\n const webkit = !!ua.match(/WebKit/i);\n return iOS && webkit && !ua.match(/CriOS/i);\n};\n\nexport function vhCheck() {\n const vh = window.innerHeight;\n document.documentElement.style.setProperty(\"--vh\", `${vh}px`);\n}\n\nexport const getSelectItemStyles = (name, personName, theme) => {\n return {\n fontWeight:\n personName.indexOf(name) === -1\n ? theme.typography.fontWeightRegular\n : theme.typography.fontWeightMedium,\n };\n};\n\nexport const removeI18nCache = () => {\n Object.keys(localStorage).forEach(function (key) {\n if (key && key.startsWith(\"i18next_res_\")) {\n localStorage.removeItem(key);\n }\n });\n};\n","import React from \"react\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport CircularProgress from \"@material-ui/core/CircularProgress\";\nimport DialogContent from \"@material-ui/core/DialogContent\";\nimport Dialog from \"@material-ui/core/Dialog\";\nimport DialogContentText from \"@material-ui/core/DialogContentText\";\nimport { blue } from \"@material-ui/core/colors\";\nimport { useSelector } from \"react-redux\";\n\nconst useStyles = makeStyles({\n avatar: {\n backgroundColor: blue[100],\n color: blue[600],\n },\n loadingContainer: {\n display: \"flex\",\n },\n loading: {\n marginTop: 10,\n marginLeft: 20,\n },\n});\n\nexport default function LoadingDialog() {\n const classes = useStyles();\n const open = useSelector((state) => state.viewUpdate.modals.loading);\n const text = useSelector((state) => state.viewUpdate.modals.loadingText);\n\n return (\n \n \n \n \n
{text}
\n
\n
\n
\n );\n}\n","import React, { useCallback, useState } from \"react\";\nimport {\n Button,\n CircularProgress,\n Dialog,\n DialogActions,\n DialogContent,\n DialogContentText,\n DialogTitle,\n makeStyles,\n} from \"@material-ui/core\";\nimport PathSelector from \"../FileManager/PathSelector\";\nimport { useDispatch } from \"react-redux\";\nimport API from \"../../middleware/Api\";\nimport {\n refreshFileList,\n setModalsLoading,\n toggleSnackbar,\n} from \"../../redux/explorer\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nconst useStyles = makeStyles((theme) => ({\n contentFix: {\n padding: \"10px 24px 0px 24px\",\n },\n wrapper: {\n margin: theme.spacing(1),\n position: \"relative\",\n },\n buttonProgress: {\n color: theme.palette.secondary.light,\n position: \"absolute\",\n top: \"50%\",\n left: \"50%\",\n marginTop: -12,\n marginLeft: -12,\n },\n}));\n\nexport default function CopyDialog(props) {\n const { t } = useTranslation();\n const [selectedPath, setSelectedPath] = useState(\"\");\n const [selectedPathName, setSelectedPathName] = useState(\"\");\n\n const dispatch = useDispatch();\n const ToggleSnackbar = useCallback(\n (vertical, horizontal, msg, color) =>\n dispatch(toggleSnackbar(vertical, horizontal, msg, color)),\n [dispatch]\n );\n const SetModalsLoading = useCallback(\n (status) => {\n dispatch(setModalsLoading(status));\n },\n [dispatch]\n );\n const RefreshFileList = useCallback(() => {\n dispatch(refreshFileList());\n }, [dispatch]);\n\n const setMoveTarget = (folder) => {\n const path =\n folder.path === \"/\"\n ? folder.path + folder.name\n : folder.path + \"/\" + folder.name;\n setSelectedPath(path);\n setSelectedPathName(folder.name);\n };\n\n const submitMove = (e) => {\n if (e != null) {\n e.preventDefault();\n }\n SetModalsLoading(true);\n const dirs = [],\n items = [];\n // eslint-disable-next-line\n\n if (props.selected[0].type === \"dir\") {\n dirs.push(props.selected[0].id);\n } else {\n items.push(props.selected[0].id);\n }\n\n API.post(\"/object/copy\", {\n src_dir: props.selected[0].path,\n src: {\n dirs: dirs,\n items: items,\n },\n dst: selectedPath === \"//\" ? \"/\" : selectedPath,\n })\n .then(() => {\n props.onClose();\n RefreshFileList();\n SetModalsLoading(false);\n })\n .catch((error) => {\n ToggleSnackbar(\"top\", \"right\", error.message, \"error\");\n SetModalsLoading(false);\n });\n };\n\n const classes = useStyles();\n\n return (\n \n \n {t(\"fileManager.copyTo\")}\n \n \n\n {selectedPath !== \"\" && (\n \n \n ]}\n />\n \n \n )}\n \n \n
\n \n {t(\"ok\", { ns: \"common\" })}\n {props.modalsLoading && (\n \n )}\n \n
\n
\n \n );\n}\n","import React, { useState, useEffect, useRef } from \"react\";\nimport {\n Button,\n CircularProgress,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n makeStyles,\n FormControlLabel,\n Checkbox,\n} from \"@material-ui/core\";\nimport TextField from \"@material-ui/core/TextField\";\nimport { useTranslation } from \"react-i18next\";\nimport { useInterval, usePrevious, useGetState } from \"ahooks\";\nimport { cancelDirectoryDownload } from \"../../redux/explorer/action\";\nimport Auth from \"../../middleware/Auth\";\n\nconst useStyles = makeStyles((theme) => ({\n contentFix: {\n padding: \"10px 24px 0px 24px\",\n backgroundColor: theme.palette.background.default,\n },\n buttonProgress: {\n color: theme.palette.secondary.light,\n position: \"absolute\",\n top: \"50%\",\n left: \"50%\",\n marginTop: -12,\n marginLeft: -12,\n },\n}));\n\nexport default function DirectoryDownloadDialog(props) {\n const { t } = useTranslation();\n\n const classes = useStyles();\n\n const logRef = useRef();\n const [autoScroll, setAutoScroll] = useState(\n Auth.GetPreferenceWithDefault(\"autoScroll\", true)\n );\n const previousLog = usePrevious(props.log, (prev, next) => true);\n const [timer, setTimer] = useState(-1);\n\n useInterval(() => {\n if (autoScroll && logRef.current && previousLog !== props.log) {\n logRef.current.scrollIntoView({ behavior: \"smooth\", block: \"end\" });\n }\n }, timer);\n\n useEffect(() => {\n if (props.done) {\n setTimer(-1);\n } else if (props.open) {\n setTimer(1000);\n }\n }, [props.done, props.open]);\n\n return (\n \n \n {t(\"modals.directoryDownloadTitle\")}\n \n\n \n \n \n \n }\n checked={autoScroll}\n onChange={() =>\n setAutoScroll((previous) => {\n Auth.SetPreference(\"autoScroll\", !previous);\n return !previous;\n })\n }\n label={t(\"modals.directoryDownloadAutoscroll\")}\n />\n \n {t(\"cancel\", { ns: \"common\" })}\n \n
\n \n {t(\"ok\", { ns: \"common\" })}\n {!props.done && (\n \n )}\n \n
\n
\n \n );\n}\n","import React, { useCallback, useState } from \"react\";\nimport {\n Button,\n CircularProgress,\n Dialog,\n DialogActions,\n DialogContent,\n DialogContentText,\n DialogTitle,\n makeStyles,\n} from \"@material-ui/core\";\nimport PathSelector from \"../FileManager/PathSelector\";\nimport { useDispatch } from \"react-redux\";\nimport { setModalsLoading, toggleSnackbar } from \"../../redux/explorer\";\nimport { submitDecompressTask } from \"../../redux/explorer/action\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nconst useStyles = makeStyles((theme) => ({\n contentFix: {\n padding: \"10px 24px 0px 24px\",\n },\n wrapper: {\n margin: theme.spacing(1),\n position: \"relative\",\n },\n buttonProgress: {\n color: theme.palette.secondary.light,\n position: \"absolute\",\n top: \"50%\",\n left: \"50%\",\n marginTop: -12,\n marginLeft: -12,\n },\n}));\n\nexport default function DecompressDialog(props) {\n const { t } = useTranslation();\n const [selectedPath, setSelectedPath] = useState(\"\");\n const [selectedPathName, setSelectedPathName] = useState(\"\");\n\n const dispatch = useDispatch();\n const ToggleSnackbar = useCallback(\n (vertical, horizontal, msg, color) =>\n dispatch(toggleSnackbar(vertical, horizontal, msg, color)),\n [dispatch]\n );\n const SetModalsLoading = useCallback(\n (status) => {\n dispatch(setModalsLoading(status));\n },\n [dispatch]\n );\n const SubmitDecompressTask = useCallback(\n (path) => dispatch(submitDecompressTask(path)),\n [dispatch]\n );\n\n const setMoveTarget = (folder) => {\n const path =\n folder.path === \"/\"\n ? folder.path + folder.name\n : folder.path + \"/\" + folder.name;\n setSelectedPath(path);\n setSelectedPathName(folder.name);\n };\n\n const submitMove = (e) => {\n if (e != null) {\n e.preventDefault();\n }\n SetModalsLoading(true);\n SubmitDecompressTask(selectedPath)\n .then(() => {\n props.onClose();\n ToggleSnackbar(\n \"top\",\n \"right\",\n t(\"modals.taskCreated\"),\n \"success\"\n );\n SetModalsLoading(false);\n })\n .catch((error) => {\n ToggleSnackbar(\"top\", \"right\", error.message, \"error\");\n SetModalsLoading(false);\n });\n };\n\n const classes = useStyles();\n\n return (\n \n \n {t(\"modals.decompressTo\")}\n \n \n\n {selectedPath !== \"\" && (\n \n \n ]}\n />\n \n \n )}\n \n \n
\n \n {t(\"ok\", { ns: \"common\" })}\n {props.modalsLoading && (\n \n )}\n \n
\n
\n \n );\n}\n","import React, { useCallback, useState } from \"react\";\nimport {\n Button,\n CircularProgress,\n Dialog,\n DialogActions,\n DialogContent,\n DialogContentText,\n DialogTitle,\n makeStyles,\n} from \"@material-ui/core\";\nimport PathSelector from \"../FileManager/PathSelector\";\nimport { useDispatch } from \"react-redux\";\nimport TextField from \"@material-ui/core/TextField\";\nimport { setModalsLoading, toggleSnackbar } from \"../../redux/explorer\";\nimport { submitCompressTask } from \"../../redux/explorer/action\";\nimport { useTranslation } from \"react-i18next\";\n\nconst useStyles = makeStyles((theme) => ({\n contentFix: {\n padding: \"10px 24px 0px 24px\",\n backgroundColor: theme.palette.background.default,\n },\n wrapper: {\n margin: theme.spacing(1),\n position: \"relative\",\n },\n buttonProgress: {\n color: theme.palette.secondary.light,\n position: \"absolute\",\n top: \"50%\",\n left: \"50%\",\n marginTop: -12,\n marginLeft: -12,\n },\n}));\n\nexport default function CompressDialog(props) {\n const { t } = useTranslation();\n const [selectedPath, setSelectedPath] = useState(\"\");\n const [fileName, setFileName] = useState(\"\");\n // eslint-disable-next-line\n const [selectedPathName, setSelectedPathName] = useState(\"\");\n\n const dispatch = useDispatch();\n\n const ToggleSnackbar = useCallback(\n (vertical, horizontal, msg, color) =>\n dispatch(toggleSnackbar(vertical, horizontal, msg, color)),\n [dispatch]\n );\n\n const SetModalsLoading = useCallback(\n (status) => {\n dispatch(setModalsLoading(status));\n },\n [dispatch]\n );\n\n const SubmitCompressTask = useCallback(\n (name, path) => dispatch(submitCompressTask(name, path)),\n [dispatch]\n );\n\n const setMoveTarget = (folder) => {\n const path =\n folder.path === \"/\"\n ? folder.path + folder.name\n : folder.path + \"/\" + folder.name;\n setSelectedPath(path);\n setSelectedPathName(folder.name);\n };\n\n const submitMove = (e) => {\n if (e != null) {\n e.preventDefault();\n }\n SetModalsLoading(true);\n\n SubmitCompressTask(fileName, selectedPath)\n .then(() => {\n props.onClose();\n ToggleSnackbar(\n \"top\",\n \"right\",\n t(\"modals.taskCreated\"),\n \"success\"\n );\n SetModalsLoading(false);\n })\n .catch((error) => {\n ToggleSnackbar(\"top\", \"right\", error.message, \"error\");\n SetModalsLoading(false);\n });\n };\n\n const classes = useStyles();\n\n return (\n \n \n {t(\"modals.saveToTitle\")}\n \n \n\n {selectedPath !== \"\" && (\n \n \n setFileName(e.target.value)}\n value={fileName}\n fullWidth\n autoFocus\n id=\"standard-basic\"\n label={t(\"modals.zipFileName\")}\n />\n \n \n )}\n \n \n
\n \n {t(\"ok\", { ns: \"common\" })}\n {props.modalsLoading && (\n \n )}\n \n
\n
\n \n );\n}\n","import React, { useCallback, useEffect, useState } from \"react\";\nimport {\n Button,\n CircularProgress,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n makeStyles,\n} from \"@material-ui/core\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport API from \"../../middleware/Api\";\nimport Select from \"@material-ui/core/Select\";\nimport MenuItem from \"@material-ui/core/MenuItem\";\nimport { setModalsLoading, toggleSnackbar } from \"../../redux/explorer\";\nimport { useTranslation } from \"react-i18next\";\n\nconst useStyles = makeStyles((theme) => ({\n wrapper: {\n margin: theme.spacing(1),\n position: \"relative\",\n },\n buttonProgress: {\n color: theme.palette.secondary.light,\n position: \"absolute\",\n top: \"50%\",\n left: \"50%\",\n marginTop: -12,\n marginLeft: -12,\n },\n input: {\n width: 250,\n },\n}));\n\nexport default function RelocateDialog(props) {\n const { t } = useTranslation();\n const [selectedPolicy, setSelectedPolicy] = useState(\"\");\n const [policies, setPolicies] = useState([]);\n const dispatch = useDispatch();\n const policy = useSelector((state) => state.explorer.currentPolicy);\n const ToggleSnackbar = useCallback(\n (vertical, horizontal, msg, color) =>\n dispatch(toggleSnackbar(vertical, horizontal, msg, color)),\n [dispatch]\n );\n\n const SetModalsLoading = useCallback(\n (status) => {\n dispatch(setModalsLoading(status));\n },\n [dispatch]\n );\n\n const submitRelocate = (e) => {\n if (e != null) {\n e.preventDefault();\n }\n SetModalsLoading(true);\n\n const dirs = [],\n items = [];\n // eslint-disable-next-line\n props.selected.map((value) => {\n if (value.type === \"dir\") {\n dirs.push(value.id);\n } else {\n items.push(value.id);\n }\n });\n\n API.post(\"/file/relocate\", {\n src: {\n dirs: dirs,\n items: items,\n },\n dst_policy_id: selectedPolicy,\n })\n .then(() => {\n props.onClose();\n ToggleSnackbar(\n \"top\",\n \"right\",\n t(\"modals.taskCreated\"),\n \"success\"\n );\n SetModalsLoading(false);\n })\n .catch((error) => {\n ToggleSnackbar(\"top\", \"right\", error.message, \"error\");\n SetModalsLoading(false);\n });\n };\n\n useEffect(() => {\n if (props.open) {\n API.get(\"/user/setting/policies\")\n .then((response) => {\n setPolicies(response.data);\n setSelectedPolicy(policy.id);\n })\n .catch((error) => {\n ToggleSnackbar(\"top\", \"right\", error.message, \"error\");\n });\n }\n\n // eslint-disable-next-line\n }, [props.open]);\n\n const classes = useStyles();\n\n return (\n \n \n {t(\"vas.migrateStoragePolicy\")}\n \n\n \n setSelectedPolicy(e.target.value)}\n >\n {policies.map((v, k) => (\n \n {v.name}\n \n ))}\n \n \n\n \n \n
\n \n {t(\"ok\", { ns: \"common\" })}\n {props.modalsLoading && (\n \n )}\n \n
\n
\n \n );\n}\n","import React, { useCallback, useEffect, useState } from \"react\";\nimport {\n Button,\n CircularProgress,\n Dialog,\n DialogActions,\n DialogContent,\n DialogContentText,\n DialogTitle,\n makeStyles,\n MenuItem,\n TextField,\n} from \"@material-ui/core\";\nimport PathSelector from \"../FileManager/PathSelector\";\nimport { useDispatch } from \"react-redux\";\nimport API, { AppError } from \"../../middleware/Api\";\nimport { setModalsLoading, toggleSnackbar } from \"../../redux/explorer\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { DnsOutlined, FolderOpenOutlined } from \"@material-ui/icons\";\nimport { pathBack } from \"../../utils\";\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\nimport { useTheme } from \"@material-ui/core/styles\";\nimport useMediaQuery from \"@material-ui/core/useMediaQuery\";\nimport LinkIcon from \"@material-ui/icons/Link\";\nimport Auth from \"../../middleware/Auth\";\nimport FormControl from \"@material-ui/core/FormControl\";\nimport InputLabel from \"@material-ui/core/InputLabel\";\nimport Select from \"@material-ui/core/Select\";\n\nconst useStyles = makeStyles((theme) => ({\n contentFix: {\n padding: \"10px 24px 0px 24px\",\n },\n wrapper: {\n margin: theme.spacing(1),\n position: \"relative\",\n },\n buttonProgress: {\n color: theme.palette.secondary.light,\n position: \"absolute\",\n top: \"50%\",\n left: \"50%\",\n marginTop: -12,\n marginLeft: -12,\n },\n formGroup: {\n display: \"flex\",\n marginBottom: theme.spacing(3),\n },\n forumInput: {\n flexGrow: 1,\n },\n}));\n\nexport default function RemoteDownload(props) {\n const { t } = useTranslation();\n const [selectPathOpen, setSelectPathOpen] = useState(false);\n const [selectedPath, setSelectedPath] = useState(\"\");\n const [selectedPathName, setSelectedPathName] = useState(\"\");\n const [downloadTo, setDownloadTo] = useState(\"\");\n const [url, setUrl] = useState(\"\");\n const [nodes, setNodes] = useState([]);\n const [nodesLoading, setNodesLoading] = useState(false);\n const [preferredNode, setPreferredNode] = useState(0);\n const theme = useTheme();\n const isMobile = useMediaQuery(theme.breakpoints.down(\"sm\"));\n const user = Auth.GetUser();\n\n const dispatch = useDispatch();\n const ToggleSnackbar = useCallback(\n (vertical, horizontal, msg, color) =>\n dispatch(toggleSnackbar(vertical, horizontal, msg, color)),\n [dispatch]\n );\n\n useEffect(() => {\n if (props.open) {\n setDownloadTo(props.presentPath);\n\n if (user.group.selectNode && nodes.length === 0) {\n setNodesLoading(true);\n API.get(\"/user/setting/nodes\")\n .then((response) => {\n setNodes(response.data);\n setNodesLoading(false);\n })\n .catch(() => {\n setNodes([]);\n setNodesLoading(false);\n });\n }\n }\n }, [props.open]);\n\n const setDownloadToPath = (folder) => {\n const path =\n folder.path === \"/\"\n ? folder.path + folder.name\n : folder.path + \"/\" + folder.name;\n setSelectedPath(path);\n setSelectedPathName(folder.name);\n };\n\n const selectPath = () => {\n setDownloadTo(selectedPath === \"//\" ? \"/\" : selectedPath);\n setSelectPathOpen(false);\n };\n\n const submitTorrentDownload = (e) => {\n e.preventDefault();\n props.setModalsLoading(true);\n API.post(\"/aria2/torrent/\" + props.torrent.id, {\n dst: downloadTo === \"//\" ? \"/\" : downloadTo,\n preferred_node: preferredNode,\n })\n .then(() => {\n ToggleSnackbar(\n \"top\",\n \"right\",\n t(\"modals.taskCreated\"),\n \"success\"\n );\n props.onClose();\n props.setModalsLoading(false);\n })\n .catch((error) => {\n ToggleSnackbar(\"top\", \"right\", error.message, \"warning\");\n props.setModalsLoading(false);\n });\n };\n\n const submitDownload = (e) => {\n e.preventDefault();\n props.setModalsLoading(true);\n API.post(\"/aria2/url\", {\n url: url.split(\"\\n\"),\n dst: downloadTo === \"//\" ? \"/\" : downloadTo,\n preferred_node: preferredNode,\n })\n .then((response) => {\n const failed = response.data\n .filter((r) => r.code !== 0)\n .map((r) => new AppError(r.msg, r.code, r.error).message);\n if (failed.length > 0) {\n ToggleSnackbar(\n \"top\",\n \"right\",\n t(\"modals.taskCreateFailed\", {\n failed: failed.length,\n details: failed.join(\",\"),\n }),\n \"warning\"\n );\n } else {\n ToggleSnackbar(\n \"top\",\n \"right\",\n t(\"modals.taskCreated\"),\n \"success\"\n );\n }\n\n props.onClose();\n props.setModalsLoading(false);\n })\n .catch((error) => {\n ToggleSnackbar(\"top\", \"right\", error.message, \"error\");\n props.setModalsLoading(false);\n });\n };\n\n const classes = useStyles();\n\n return (\n <>\n \n \n {t(\"modals.newRemoteDownloadTitle\")}\n \n \n \n
\n
\n setUrl(e.target.value)}\n placeholder={t(\n \"modals.remoteDownloadURLDescription\"\n )}\n InputProps={{\n startAdornment: !isMobile && (\n \n \n \n ),\n }}\n />\n
\n
\n
\n
\n \n setDownloadTo(e.target.value)\n }\n className={classes.input}\n label={t(\"modals.remoteDownloadDst\")}\n InputProps={{\n startAdornment: !isMobile && (\n \n \n \n ),\n endAdornment: (\n \n \n setSelectPathOpen(true)\n }\n >\n {t(\n \"navbar.addTagDialog.selectFolder\"\n )}\n \n \n ),\n }}\n />\n
\n
\n
\n {user.group.selectNode && (\n
\n
\n \n \n {t(\"modals.remoteDownloadNode\")}\n \n \n {nodesLoading ? (\n \n ) : (\n \n )}\n \n )\n }\n labelId=\"demo-simple-select-label\"\n id=\"demo-simple-select\"\n label={t(\n \"modals.remoteDownloadNode\"\n )}\n value={preferredNode}\n onChange={(e) =>\n setPreferredNode(e.target.value)\n }\n >\n \n \n {t(\n \"modals.remoteDownloadNodeAuto\"\n )}\n \n \n {nodes.map((node) => (\n \n {node.name}\n \n ))}\n \n \n
\n
\n
\n )}\n
\n
\n \n \n
\n \n {t(\"modals.createTask\")}\n {props.modalsLoading && (\n \n )}\n \n
\n
\n \n\n setSelectPathOpen(false)}\n aria-labelledby=\"form-dialog-title\"\n >\n \n {t(\"modals.remoteDownloadDst\")}\n \n \n\n {selectedPathName !== \"\" && (\n \n \n ]}\n />\n \n \n )}\n \n \n \n {t(\"ok\", { ns: \"common\" })}\n \n \n \n \n );\n}\n","import React, { useCallback, useState } from \"react\";\nimport {\n Button,\n CircularProgress,\n Dialog,\n DialogActions,\n DialogContent,\n DialogContentText,\n DialogTitle,\n FormControl,\n makeStyles,\n Tooltip,\n} from \"@material-ui/core\";\nimport { useDispatch } from \"react-redux\";\nimport { toggleSnackbar } from \"../../redux/explorer\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { useTheme } from \"@material-ui/core/styles\";\nimport Auth from \"../../middleware/Auth\";\nimport API from \"../../middleware/Api\";\nimport FormLabel from \"@material-ui/core/FormLabel\";\nimport FormGroup from \"@material-ui/core/FormGroup\";\nimport FormControlLabel from \"@material-ui/core/FormControlLabel\";\nimport Checkbox from \"@material-ui/core/Checkbox\";\n\nconst useStyles = makeStyles((theme) => ({\n form: {\n marginTop: theme.spacing(2),\n },\n}));\n\nexport default function Delete(props) {\n const { t } = useTranslation();\n const theme = useTheme();\n const user = Auth.GetUser();\n const [force, setForce] = useState(false);\n const [unlink, setUnlink] = useState(false);\n\n const dispatch = useDispatch();\n const ToggleSnackbar = useCallback(\n (vertical, horizontal, msg, color) =>\n dispatch(toggleSnackbar(vertical, horizontal, msg, color)),\n [dispatch]\n );\n\n const submitRemove = (e) => {\n e.preventDefault();\n props.setModalsLoading(true);\n const dirs = [],\n items = [];\n // eslint-disable-next-line\n props.selected.map((value) => {\n if (value.type === \"dir\") {\n dirs.push(value.id);\n } else {\n items.push(value.id);\n }\n });\n API.delete(\"/object\", {\n data: {\n items: items,\n dirs: dirs,\n force,\n unlink,\n },\n })\n .then((response) => {\n if (response.rawData.code === 0) {\n props.onClose();\n setTimeout(props.refreshFileList, 500);\n } else {\n ToggleSnackbar(\n \"top\",\n \"right\",\n response.rawData.msg,\n \"warning\"\n );\n }\n props.setModalsLoading(false);\n props.refreshStorage();\n })\n .catch((error) => {\n ToggleSnackbar(\"top\", \"right\", error.message, \"error\");\n props.setModalsLoading(false);\n });\n };\n\n const classes = useStyles();\n\n return (\n \n \n {t(\"modals.deleteTitle\")}\n \n\n \n \n {props.selected.length === 1 && (\n ]}\n />\n )}\n {props.selected.length > 1 &&\n t(\"modals.deleteMultipleDescription\", {\n num: props.selected.length,\n })}\n \n {user.group.advanceDelete && (\n \n \n {t(\"modals.advanceOptions\")}\n \n \n \n \n setForce(e.target.checked)\n }\n />\n }\n label={t(\"modals.forceDelete\")}\n />\n \n \n \n setUnlink(e.target.checked)\n }\n />\n }\n label={t(\"modals.unlinkOnly\")}\n />\n \n \n \n )}\n \n \n \n
\n \n {t(\"ok\", { ns: \"common\" })}\n {props.modalsLoading && (\n \n )}\n \n
\n
\n \n );\n}\n","import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { connect } from \"react-redux\";\nimport PathSelector from \"./PathSelector\";\nimport API from \"../../middleware/Api\";\nimport {\n Button,\n CircularProgress,\n Dialog,\n DialogActions,\n DialogContent,\n DialogContentText,\n DialogTitle,\n TextField,\n withStyles,\n} from \"@material-ui/core\";\nimport Loading from \"../Modals/Loading\";\nimport CopyDialog from \"../Modals/Copy\";\nimport DirectoryDownloadDialog from \"../Modals/DirectoryDownload\";\nimport CreatShare from \"../Modals/CreateShare\";\nimport { withRouter } from \"react-router-dom\";\nimport PurchaseShareDialog from \"../Modals/PurchaseShare\";\nimport DecompressDialog from \"../Modals/Decompress\";\nimport CompressDialog from \"../Modals/Compress\";\nimport RelocateDialog from \"../Modals/Relocate\";\nimport {\n closeAllModals,\n openLoadingDialog,\n refreshFileList,\n refreshStorage,\n setModalsLoading,\n toggleSnackbar,\n} from \"../../redux/explorer\";\nimport OptionSelector from \"../Modals/OptionSelector\";\nimport { Trans, withTranslation } from \"react-i18next\";\nimport RemoteDownload from \"../Modals/RemoteDownload\";\nimport Delete from \"../Modals/Delete\";\n\nconst styles = (theme) => ({\n wrapper: {\n margin: theme.spacing(1),\n position: \"relative\",\n },\n buttonProgress: {\n color: theme.palette.secondary.light,\n position: \"absolute\",\n top: \"50%\",\n left: \"50%\",\n marginTop: -12,\n marginLeft: -12,\n },\n contentFix: {\n padding: \"10px 24px 0px 24px\",\n },\n});\n\nconst mapStateToProps = (state) => {\n return {\n path: state.navigator.path,\n selected: state.explorer.selected,\n modalsStatus: state.viewUpdate.modals,\n modalsLoading: state.viewUpdate.modalsLoading,\n dirList: state.explorer.dirList,\n fileList: state.explorer.fileList,\n dndSignale: state.explorer.dndSignal,\n dndTarget: state.explorer.dndTarget,\n dndSource: state.explorer.dndSource,\n loading: state.viewUpdate.modals.loading,\n loadingText: state.viewUpdate.modals.loadingText,\n };\n};\n\nconst mapDispatchToProps = (dispatch) => {\n return {\n closeAllModals: () => {\n dispatch(closeAllModals());\n },\n toggleSnackbar: (vertical, horizontal, msg, color) => {\n dispatch(toggleSnackbar(vertical, horizontal, msg, color));\n },\n setModalsLoading: (status) => {\n dispatch(setModalsLoading(status));\n },\n refreshFileList: () => {\n dispatch(refreshFileList());\n },\n refreshStorage: () => {\n dispatch(refreshStorage());\n },\n openLoadingDialog: (text) => {\n dispatch(openLoadingDialog(text));\n },\n };\n};\n\nclass ModalsCompoment extends Component {\n state = {\n newFolderName: \"\",\n newFileName: \"\",\n newName: \"\",\n selectedPath: \"\",\n selectedPathName: \"\",\n secretShare: false,\n sharePwd: \"\",\n shareUrl: \"\",\n purchaseCallback: null,\n };\n\n handleInputChange = (e) => {\n this.setState({\n [e.target.id]: e.target.value,\n });\n };\n\n newNameSuffix = \"\";\n\n UNSAFE_componentWillReceiveProps = (nextProps) => {\n if (this.props.dndSignale !== nextProps.dndSignale) {\n this.dragMove(nextProps.dndSource, nextProps.dndTarget);\n return;\n }\n\n if (this.props.modalsStatus.rename !== nextProps.modalsStatus.rename) {\n const name = nextProps.selected[0].name;\n this.setState({\n newName: name,\n });\n return;\n }\n };\n\n submitResave = (e) => {\n e.preventDefault();\n this.props.setModalsLoading(true);\n API.post(\"/share/save/\" + window.shareKey, {\n path:\n this.state.selectedPath === \"//\"\n ? \"/\"\n : this.state.selectedPath,\n })\n .then(() => {\n this.onClose();\n this.props.toggleSnackbar(\n \"top\",\n \"right\",\n this.props.t(\"vas.fileSaved\"),\n \"success\"\n );\n this.props.refreshFileList();\n this.props.setModalsLoading(false);\n })\n .catch((error) => {\n this.props.toggleSnackbar(\n \"top\",\n \"right\",\n error.message,\n \"error\"\n );\n this.props.setModalsLoading(false);\n });\n };\n\n submitMove = (e) => {\n if (e != null) {\n e.preventDefault();\n }\n this.props.setModalsLoading(true);\n const dirs = [],\n items = [];\n // eslint-disable-next-line\n this.props.selected.map((value) => {\n if (value.type === \"dir\") {\n dirs.push(value.id);\n } else {\n items.push(value.id);\n }\n });\n API.patch(\"/object\", {\n action: \"move\",\n src_dir: this.props.selected[0].path,\n src: {\n dirs: dirs,\n items: items,\n },\n dst: this.DragSelectedPath\n ? this.DragSelectedPath\n : this.state.selectedPath === \"//\"\n ? \"/\"\n : this.state.selectedPath,\n })\n .then(() => {\n this.onClose();\n this.props.refreshFileList();\n this.props.setModalsLoading(false);\n this.DragSelectedPath = \"\";\n })\n .catch((error) => {\n this.props.toggleSnackbar(\n \"top\",\n \"right\",\n error.message,\n \"error\"\n );\n this.props.setModalsLoading(false);\n this.DragSelectedPath = \"\";\n })\n .then(() => {\n this.props.closeAllModals();\n });\n };\n\n dragMove = (source, target) => {\n if (this.props.selected.length === 0) {\n this.props.selected[0] = source;\n }\n let doMove = true;\n\n // eslint-disable-next-line\n this.props.selected.map((value) => {\n // 根据ID过滤\n if (value.id === target.id && value.type === target.type) {\n doMove = false;\n // eslint-disable-next-line\n return;\n }\n // 根据路径过滤\n if (\n value.path ===\n target.path + (target.path === \"/\" ? \"\" : \"/\") + target.name\n ) {\n doMove = false;\n }\n });\n if (doMove) {\n this.DragSelectedPath =\n target.path === \"/\"\n ? target.path + target.name\n : target.path + \"/\" + target.name;\n this.props.openLoadingDialog(this.props.t(\"modals.processing\"));\n this.submitMove();\n }\n };\n\n submitRename = (e) => {\n e.preventDefault();\n this.props.setModalsLoading(true);\n const newName = this.state.newName;\n\n const src = {\n dirs: [],\n items: [],\n };\n\n if (this.props.selected[0].type === \"dir\") {\n src.dirs[0] = this.props.selected[0].id;\n } else {\n src.items[0] = this.props.selected[0].id;\n }\n\n // 检查重名\n if (\n this.props.dirList.findIndex((value) => {\n return value.name === newName;\n }) !== -1 ||\n this.props.fileList.findIndex((value) => {\n return value.name === newName;\n }) !== -1\n ) {\n this.props.toggleSnackbar(\n \"top\",\n \"right\",\n this.props.t(\"modals.duplicatedObjectName\"),\n \"warning\"\n );\n this.props.setModalsLoading(false);\n } else {\n API.post(\"/object/rename\", {\n action: \"rename\",\n src: src,\n new_name: newName,\n })\n .then(() => {\n this.onClose();\n this.props.refreshFileList();\n this.props.setModalsLoading(false);\n })\n .catch((error) => {\n this.props.toggleSnackbar(\n \"top\",\n \"right\",\n error.message,\n \"error\"\n );\n this.props.setModalsLoading(false);\n });\n }\n };\n\n submitCreateNewFolder = (e) => {\n e.preventDefault();\n this.props.setModalsLoading(true);\n if (\n this.props.dirList.findIndex((value) => {\n return value.name === this.state.newFolderName;\n }) !== -1\n ) {\n this.props.toggleSnackbar(\n \"top\",\n \"right\",\n this.props.t(\"modals.duplicatedFolderName\"),\n \"warning\"\n );\n this.props.setModalsLoading(false);\n } else {\n API.put(\"/directory\", {\n path:\n (this.props.path === \"/\" ? \"\" : this.props.path) +\n \"/\" +\n this.state.newFolderName,\n })\n .then(() => {\n this.onClose();\n this.props.refreshFileList();\n this.props.setModalsLoading(false);\n })\n .catch((error) => {\n this.props.setModalsLoading(false);\n\n this.props.toggleSnackbar(\n \"top\",\n \"right\",\n error.message,\n \"error\"\n );\n });\n }\n //this.props.toggleSnackbar();\n };\n\n submitCreateNewFile = (e) => {\n e.preventDefault();\n this.props.setModalsLoading(true);\n if (\n this.props.dirList.findIndex((value) => {\n return value.name === this.state.newFileName;\n }) !== -1\n ) {\n this.props.toggleSnackbar(\n \"top\",\n \"right\",\n this.props.t(\"modals.duplicatedFolderName\"),\n \"warning\"\n );\n this.props.setModalsLoading(false);\n } else {\n API.post(\"/file/create\", {\n path:\n (this.props.path === \"/\" ? \"\" : this.props.path) +\n \"/\" +\n this.state.newFileName,\n })\n .then(() => {\n this.onClose();\n this.props.refreshFileList();\n this.props.setModalsLoading(false);\n })\n .catch((error) => {\n this.props.setModalsLoading(false);\n\n this.props.toggleSnackbar(\n \"top\",\n \"right\",\n error.message,\n \"error\"\n );\n });\n }\n //this.props.toggleSnackbar();\n };\n\n setMoveTarget = (folder) => {\n const path =\n folder.path === \"/\"\n ? folder.path + folder.name\n : folder.path + \"/\" + folder.name;\n this.setState({\n selectedPath: path,\n selectedPathName: folder.name,\n });\n };\n\n onClose = () => {\n this.setState({\n newFolderName: \"\",\n newFileName: \"\",\n newName: \"\",\n selectedPath: \"\",\n selectedPathName: \"\",\n secretShare: false,\n sharePwd: \"\",\n shareUrl: \"\",\n });\n this.newNameSuffix = \"\";\n this.props.closeAllModals();\n };\n\n handleChange = (name) => (event) => {\n this.setState({ [name]: event.target.checked });\n };\n\n copySource = () => {\n if (navigator.clipboard) {\n navigator.clipboard.writeText(this.props.modalsStatus.getSource);\n this.props.toggleSnackbar(\n \"top\",\n \"right\",\n this.props.t(\"modals.linkCopied\"),\n \"info\"\n );\n }\n };\n\n render() {\n const { classes, t } = this.props;\n\n return (\n
\n \n \n \n \n \n {t(\"modals.getSourceLinkTitle\")}\n \n\n \n \n \n \n \n \n \n \n \n \n {t(\"fileManager.newFolder\")}\n \n\n \n
\n this.handleInputChange(e)}\n fullWidth\n />\n \n
\n \n \n
\n \n {t(\"modals.create\")}\n {this.props.modalsLoading && (\n \n )}\n \n
\n
\n \n\n \n \n {t(\"fileManager.newFile\")}\n \n\n \n
\n this.handleInputChange(e)}\n fullWidth\n />\n \n
\n \n \n
\n \n {t(\"modals.create\")}\n {this.props.modalsLoading && (\n \n )}\n \n
\n
\n \n\n \n \n {t(\"fileManager.rename\")}\n \n \n \n ]}\n />\n \n
\n this.handleInputChange(e)}\n fullWidth\n />\n \n
\n \n \n
\n \n {t(\"ok\", { ns: \"common\" })}\n {this.props.modalsLoading && (\n \n )}\n \n
\n
\n \n \n\n \n \n {t(\"modals.moveToTitle\")}\n \n \n\n {this.state.selectedPath !== \"\" && (\n \n \n ]}\n />\n \n \n )}\n \n \n
\n \n {t(\"ok\", { ns: \"common\" })}\n {this.props.modalsLoading && (\n \n )}\n \n
\n
\n \n \n \n {t(\"modals.saveToTitle\")}\n \n \n\n {this.state.selectedPath !== \"\" && (\n \n \n ]}\n />\n \n \n )}\n \n \n
\n \n {t(\"ok\", { ns: \"common\" })}\n {this.props.modalsLoading && (\n \n )}\n \n
\n
\n \n \n \n \n \n \n \n \n
\n );\n }\n}\n\nModalsCompoment.propTypes = {\n classes: PropTypes.object.isRequired,\n};\n\nconst Modals = connect(\n mapStateToProps,\n mapDispatchToProps\n)(withStyles(styles)(withRouter(withTranslation()(ModalsCompoment))));\n\nexport default Modals;\n","import React, { useCallback, useEffect, useState } from \"react\";\nimport { Paper } from \"@material-ui/core\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport { useLocation, useParams, useRouteMatch } from \"react-router\";\nimport API from \"../../middleware/Api\";\nimport { useDispatch } from \"react-redux\";\nimport Editor from \"for-editor\";\nimport SaveButton from \"../Dial/Save\";\nimport pathHelper from \"../../utils/page\";\nimport TextLoading from \"../Placeholder/TextLoading\";\nimport { toggleSnackbar } from \"../../redux/explorer\";\nimport UseFileSubTitle from \"../../hooks/fileSubtitle\";\nimport { useTranslation } from \"react-i18next\";\n\nconst useStyles = makeStyles((theme) => ({\n layout: {\n width: \"auto\",\n marginTop: \"30px\",\n marginLeft: theme.spacing(3),\n marginRight: theme.spacing(3),\n [theme.breakpoints.up(1100 + theme.spacing(3) * 2)]: {\n marginLeft: theme.spacing(12),\n marginRight: theme.spacing(12),\n },\n marginBottom: 50,\n },\n player: {\n borderRadius: theme.shape.borderRadius,\n },\n root: {\n backgroundColor: \"white\",\n borderRadius: theme.shape.borderRadius,\n },\n \"@global\": {\n \".for-toolbar\": {\n overflowX: \"auto!important\",\n },\n },\n}));\n\nfunction useQuery() {\n return new URLSearchParams(useLocation().search);\n}\n\nexport default function TextViewer() {\n const { t } = useTranslation();\n const [content, setContent] = useState(\"\");\n const [status, setStatus] = useState(\"\");\n const [loading, setLoading] = useState(true);\n const math = useRouteMatch();\n const $vm = React.createRef();\n const location = useLocation();\n const query = useQuery();\n const { id } = useParams();\n UseFileSubTitle(query, math, location);\n\n const dispatch = useDispatch();\n const ToggleSnackbar = useCallback(\n (vertical, horizontal, msg, color) =>\n dispatch(toggleSnackbar(vertical, horizontal, msg, color)),\n [dispatch]\n );\n\n useEffect(() => {\n let requestURL = \"/file/content/\" + query.get(\"id\");\n if (pathHelper.isSharePage(location.pathname)) {\n requestURL = \"/share/content/\" + id;\n if (query.get(\"share_path\") !== \"\") {\n requestURL +=\n \"?path=\" + encodeURIComponent(query.get(\"share_path\"));\n }\n }\n\n setLoading(true);\n API.get(requestURL, { responseType: \"arraybuffer\" })\n .then((response) => {\n const buffer = new Buffer(response.rawData, \"binary\");\n const textdata = buffer.toString(); // for string\n setContent(textdata);\n })\n .catch((error) => {\n ToggleSnackbar(\n \"top\",\n \"right\",\n t(\"fileManager.errorReadFileContent\", {\n msg: error.message,\n }),\n \"error\"\n );\n })\n .then(() => {\n setLoading(false);\n });\n // eslint-disable-next-line\n }, [math.params[0]]);\n\n const toBase64 = (file) =>\n new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.readAsDataURL(file);\n reader.onload = () => resolve(reader.result);\n reader.onerror = (error) => reject(error);\n });\n\n const save = () => {\n setStatus(\"loading\");\n API.put(\"/file/update/\" + query.get(\"id\"), content)\n .then(() => {\n setStatus(\"success\");\n setTimeout(() => setStatus(\"\"), 2000);\n })\n .catch((error) => {\n setStatus(\"\");\n ToggleSnackbar(\"top\", \"right\", error.message, \"error\");\n });\n };\n\n const addImg = async ($file) => {\n $vm.current.$img2Url($file.name, await toBase64($file));\n console.log($file);\n };\n\n const classes = useStyles();\n return (\n
\n \n {loading && }\n {!loading && (\n save()}\n addImg={($file) => addImg($file)}\n onChange={(value) => setContent(value)}\n toolbar={{\n h1: true, // h1\n h2: true, // h2\n h3: true, // h3\n h4: true, // h4\n img: true, // 图片\n link: true, // 链接\n code: true, // 代码块\n preview: true, // 预览\n expand: true, // 全屏\n /* v0.0.9 */\n undo: true, // 撤销\n redo: true, // 重做\n save: false, // 保存\n /* v0.2.3 */\n subfield: true, // 单双栏模式\n }}\n />\n )}\n \n {!pathHelper.isSharePage(location.pathname) && (\n \n )}\n
\n );\n}\n","import React, { Suspense, useCallback, useEffect, useState } from \"react\";\nimport { Paper, useTheme } from \"@material-ui/core\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport { useLocation, useParams, useRouteMatch } from \"react-router\";\nimport API from \"../../middleware/Api\";\nimport { useDispatch } from \"react-redux\";\nimport pathHelper from \"../../utils/page\";\nimport SaveButton from \"../Dial/Save\";\nimport { codePreviewSuffix } from \"../../config\";\nimport TextLoading from \"../Placeholder/TextLoading\";\nimport FormControl from \"@material-ui/core/FormControl\";\nimport FormControlLabel from \"@material-ui/core/FormControlLabel\";\nimport Select from \"@material-ui/core/Select\";\nimport Switch from \"@material-ui/core/Switch\";\nimport MenuItem from \"@material-ui/core/MenuItem\";\nimport Divider from \"@material-ui/core/Divider\";\nimport { toggleSnackbar } from \"../../redux/explorer\";\nimport UseFileSubTitle from \"../../hooks/fileSubtitle\";\nimport { useTranslation } from \"react-i18next\";\n\nconst MonacoEditor = React.lazy(() =>\n import(/* webpackChunkName: \"codeEditor\" */ \"react-monaco-editor\")\n);\n\nconst useStyles = makeStyles((theme) => ({\n layout: {\n width: \"auto\",\n marginTop: \"30px\",\n marginLeft: theme.spacing(3),\n marginRight: theme.spacing(3),\n [theme.breakpoints.up(1100 + theme.spacing(3) * 2)]: {\n width: 1100,\n marginLeft: \"auto\",\n marginRight: \"auto\",\n },\n marginBottom: 40,\n },\n editor: {\n borderRadius: theme.shape.borderRadius,\n },\n \"@global\": {\n \".overflow-guard\": {\n borderRadius: \"0 0 12px 12px!important\",\n },\n },\n formControl: {\n margin: \"8px 16px 8px 16px\",\n },\n toobar: {\n textAlign: \"right\",\n },\n}));\n\nfunction useQuery() {\n return new URLSearchParams(useLocation().search);\n}\n\nexport default function CodeViewer() {\n const { t } = useTranslation();\n const [content, setContent] = useState(\"\");\n const [status, setStatus] = useState(\"\");\n const [loading, setLoading] = useState(true);\n const [suffix, setSuffix] = useState(\"javascript\");\n const [wordWrap, setWordWrap] = useState(\"off\");\n\n const math = useRouteMatch();\n const location = useLocation();\n const query = useQuery();\n const { id } = useParams();\n const theme = useTheme();\n const { title } = UseFileSubTitle(query, math, location);\n\n const dispatch = useDispatch();\n const ToggleSnackbar = useCallback(\n (vertical, horizontal, msg, color) =>\n dispatch(toggleSnackbar(vertical, horizontal, msg, color)),\n [dispatch]\n );\n\n useEffect(() => {\n const extension = title.split(\".\");\n setSuffix(codePreviewSuffix[extension.pop()]);\n // eslint-disable-next-line\n }, [title]);\n\n useEffect(() => {\n let requestURL = \"/file/content/\" + query.get(\"id\");\n if (pathHelper.isSharePage(location.pathname)) {\n requestURL = \"/share/content/\" + id;\n if (query.get(\"share_path\") !== \"\") {\n requestURL +=\n \"?path=\" + encodeURIComponent(query.get(\"share_path\"));\n }\n }\n\n setLoading(true);\n API.get(requestURL, { responseType: \"arraybuffer\" })\n .then((response) => {\n const buffer = new Buffer(response.rawData, \"binary\");\n const textdata = buffer.toString(); // for string\n setContent(textdata);\n })\n .catch((error) => {\n ToggleSnackbar(\n \"top\",\n \"right\",\n t(\"fileManager.errorReadFileContent\", {\n msg: error.message,\n }),\n \"error\"\n );\n })\n .then(() => {\n setLoading(false);\n });\n // eslint-disable-next-line\n }, [math.params[0]]);\n\n const save = () => {\n setStatus(\"loading\");\n API.put(\"/file/update/\" + query.get(\"id\"), content)\n .then(() => {\n setStatus(\"success\");\n setTimeout(() => setStatus(\"\"), 2000);\n })\n .catch((error) => {\n setStatus(\"\");\n ToggleSnackbar(\"top\", \"right\", error.message, \"error\");\n });\n };\n\n const classes = useStyles();\n const isSharePage = pathHelper.isSharePage(location.pathname);\n return (\n
\n \n
\n \n \n setWordWrap(\n e.target.checked ? \"on\" : \"off\"\n )\n }\n />\n }\n label={t(\"fileManager.wordWrap\")}\n />\n \n \n setSuffix(e.target.value)}\n >\n {Array.from(\n new Set(\n Object.keys(codePreviewSuffix).map((k) => {\n return codePreviewSuffix[k];\n })\n )\n ).map((extension) => (\n // eslint-disable-next-line react/jsx-key\n \n {extension}\n \n ))}\n \n \n
\n \n {loading && }\n {!loading && (\n }>\n setContent(value)}\n />\n \n )}\n
\n {!isSharePage && }\n
\n );\n}\n","import {\n OneDriveError,\n Policy,\n QiniuError,\n Response,\n UpyunError,\n} from \"../types\";\nimport { sizeToString } from \"../utils\";\nimport i18next from \"../../../../i18n\";\nimport { AppError } from \"../../../../middleware/Api\";\n\nexport enum UploaderErrorName {\n InvalidFile = \"InvalidFile\",\n NoPolicySelected = \"NoPolicySelected\",\n UnknownPolicyType = \"UnknownPolicyType\",\n FailedCreateUploadSession = \"FailedCreateUploadSession\",\n FailedDeleteUploadSession = \"FailedDeleteUploadSession\",\n HTTPRequestFailed = \"HTTPRequestFailed\",\n LocalChunkUploadFailed = \"LocalChunkUploadFailed\",\n SlaveChunkUploadFailed = \"SlaveChunkUploadFailed\",\n WriteCtxFailed = \"WriteCtxFailed\",\n RemoveCtxFailed = \"RemoveCtxFailed\",\n ReadCtxFailed = \"ReadCtxFailed\",\n InvalidCtxData = \"InvalidCtxData\",\n CtxExpired = \"CtxExpired\",\n RequestCanceled = \"RequestCanceled\",\n ProcessingTaskDuplicated = \"ProcessingTaskDuplicated\",\n OneDriveChunkUploadFailed = \"OneDriveChunkUploadFailed\",\n OneDriveEmptyFile = \"OneDriveEmptyFile\",\n FailedFinishOneDriveUpload = \"FailedFinishOneDriveUpload\",\n S3LikeChunkUploadFailed = \"S3LikeChunkUploadFailed\",\n S3LikeUploadCallbackFailed = \"S3LikeUploadCallbackFailed\",\n COSUploadCallbackFailed = \"COSUploadCallbackFailed\",\n COSPostUploadFailed = \"COSPostUploadFailed\",\n UpyunPostUploadFailed = \"UpyunPostUploadFailed\",\n QiniuChunkUploadFailed = \"QiniuChunkUploadFailed\",\n FailedFinishOSSUpload = \"FailedFinishOSSUpload\",\n FailedFinishQiniuUpload = \"FailedFinishQiniuUpload\",\n FailedTransformResponse = \"FailedTransformResponse\",\n}\n\nconst RETRY_ERROR_LIST = [\n UploaderErrorName.FailedCreateUploadSession,\n UploaderErrorName.HTTPRequestFailed,\n UploaderErrorName.LocalChunkUploadFailed,\n UploaderErrorName.SlaveChunkUploadFailed,\n UploaderErrorName.RequestCanceled,\n UploaderErrorName.ProcessingTaskDuplicated,\n UploaderErrorName.FailedTransformResponse,\n];\n\nconst RETRY_CODE_LIST = [-1];\n\nexport class UploaderError implements Error {\n public stack: string | undefined;\n constructor(public name: UploaderErrorName, public message: string) {\n this.stack = new Error().stack;\n }\n\n public Message(): string {\n return this.message;\n }\n\n public Retryable(): boolean {\n return RETRY_ERROR_LIST.includes(this.name);\n }\n}\n\n// 文件未通过存储策略验证\nexport class FileValidateError extends UploaderError {\n // 未通过验证的文件属性\n public field: \"size\" | \"suffix\";\n\n // 对应的存储策略\n public policy: Policy;\n\n constructor(message: string, field: \"size\" | \"suffix\", policy: Policy) {\n super(UploaderErrorName.InvalidFile, message);\n this.field = field;\n this.policy = policy;\n }\n\n public Message(): string {\n if (this.field == \"size\") {\n return i18next.t(`uploader.sizeExceedLimitError`, {\n max: sizeToString(this.policy.maxSize),\n });\n }\n\n return i18next.t(`uploader.suffixNotAllowedError`, {\n supported: this.policy.allowedSuffix\n ? this.policy.allowedSuffix.join(\",\")\n : \"*\",\n });\n }\n}\n\n// 未知存储策略\nexport class UnknownPolicyError extends UploaderError {\n // 对应的存储策略\n public policy: Policy;\n\n constructor(message: string, policy: Policy) {\n super(UploaderErrorName.UnknownPolicyType, message);\n this.policy = policy;\n }\n}\n\n// 后端 API 出错\nexport class APIError extends UploaderError {\n private appError: AppError;\n constructor(\n name: UploaderErrorName,\n message: string,\n protected response: Response\n ) {\n super(name, message);\n this.appError = new AppError(response.msg, response.code, response.msg);\n }\n\n public Message(): string {\n return `${this.message}: ${this.appError.message}`;\n }\n\n public Retryable(): boolean {\n return (\n super.Retryable() && RETRY_CODE_LIST.includes(this.response.code)\n );\n }\n}\n\n// 无法创建上传会话\nexport class CreateUploadSessionError extends APIError {\n constructor(response: Response) {\n super(UploaderErrorName.FailedCreateUploadSession, \"\", response);\n }\n\n public Message(): string {\n this.message = i18next.t(`uploader.createUploadSessionError`);\n return super.Message();\n }\n}\n\n// 无法删除上传会话\nexport class DeleteUploadSessionError extends APIError {\n constructor(response: Response) {\n super(UploaderErrorName.FailedDeleteUploadSession, \"\", response);\n }\n\n public Message(): string {\n this.message = i18next.t(`uploader.deleteUploadSessionError`);\n return super.Message();\n }\n}\n\n// HTTP 请求出错\nexport class HTTPError extends UploaderError {\n public response?: any;\n constructor(public axiosErr: any, protected url: string) {\n super(UploaderErrorName.HTTPRequestFailed, axiosErr.message);\n this.response = axiosErr.response;\n }\n\n public Message(): string {\n return i18next.t(`uploader.requestError`, {\n msg: this.axiosErr,\n url: this.url,\n });\n }\n}\n\n// 本地分块上传失败\nexport class LocalChunkUploadError extends APIError {\n constructor(response: Response, protected chunkIndex: number) {\n super(UploaderErrorName.LocalChunkUploadFailed, \"\", response);\n }\n\n public Message(): string {\n this.message = i18next.t(`uploader.chunkUploadError`, {\n index: this.chunkIndex,\n });\n return super.Message();\n }\n}\n\n// 无法创建上传会话\nexport class RequestCanceledError extends UploaderError {\n constructor() {\n super(UploaderErrorName.RequestCanceled, \"Request canceled\");\n }\n}\n\n// 从机分块上传失败\nexport class SlaveChunkUploadError extends APIError {\n constructor(response: Response, protected chunkIndex: number) {\n super(UploaderErrorName.SlaveChunkUploadFailed, \"\", response);\n }\n\n public Message(): string {\n this.message = i18next.t(`uploader.chunkUploadError`, {\n index: this.chunkIndex,\n });\n return super.Message();\n }\n}\n\n// 上传任务冲突\nexport class ProcessingTaskDuplicatedError extends UploaderError {\n constructor() {\n super(\n UploaderErrorName.ProcessingTaskDuplicated,\n \"Processing task duplicated\"\n );\n }\n\n public Message(): string {\n return i18next.t(`uploader.conflictError`);\n }\n}\n\n// OneDrive 分块上传失败\nexport class OneDriveChunkError extends UploaderError {\n constructor(public response: OneDriveError) {\n super(\n UploaderErrorName.OneDriveChunkUploadFailed,\n response.error.message\n );\n }\n\n public Message(): string {\n let msg = i18next.t(`uploader.chunkUploadErrorWithMsg`, {\n msg: this.message,\n });\n\n if (this.response.error.retryAfterSeconds != undefined){\n msg += \" \"+i18next.t(`uploader.chunkUploadErrorWithRetryAfter`, {\n retryAfter: this.response.error.retryAfterSeconds,\n })\n }\n\n return msg;\n }\n\n public Retryable(): boolean {\n return (\n super.Retryable() || this.response.error.retryAfterSeconds != undefined\n );\n }\n}\n\n// OneDrive 选择了空文件上传\nexport class OneDriveEmptyFileSelected extends UploaderError {\n constructor() {\n super(UploaderErrorName.OneDriveEmptyFile, \"empty file not supported\");\n }\n\n public Message(): string {\n return i18next.t(\"uploader.emptyFileError\");\n }\n}\n\n// OneDrive 无法完成文件上传\nexport class OneDriveFinishUploadError extends APIError {\n constructor(response: Response) {\n super(UploaderErrorName.FailedFinishOneDriveUpload, \"\", response);\n }\n\n public Message(): string {\n this.message = i18next.t(\"uploader.finishUploadError\");\n return super.Message();\n }\n}\n\n// S3 类策略分块上传失败\nexport class S3LikeChunkError extends UploaderError {\n constructor(public response: Document) {\n super(\n UploaderErrorName.S3LikeChunkUploadFailed,\n response.getElementsByTagName(\"Message\")[0].innerHTML\n );\n }\n\n public Message(): string {\n return i18next.t(`uploader.chunkUploadErrorWithMsg`, {\n msg: this.message,\n });\n }\n}\n\n// OSS 完成传失败\nexport class S3LikeFinishUploadError extends UploaderError {\n constructor(public response: Document) {\n super(\n UploaderErrorName.S3LikeChunkUploadFailed,\n response.getElementsByTagName(\"Message\")[0].innerHTML\n );\n }\n\n public Message(): string {\n return i18next.t(`uploader.ossFinishUploadError`, {\n msg: this.message,\n code: this.response.getElementsByTagName(\"Code\")[0].innerHTML,\n });\n }\n}\n\n// qiniu 分块上传失败\nexport class QiniuChunkError extends UploaderError {\n constructor(public response: QiniuError) {\n super(UploaderErrorName.QiniuChunkUploadFailed, response.error);\n }\n\n public Message(): string {\n return i18next.t(`uploader.chunkUploadErrorWithMsg`, {\n msg: this.message,\n });\n }\n}\n\n// qiniu 完成传失败\nexport class QiniuFinishUploadError extends UploaderError {\n constructor(public response: QiniuError) {\n super(UploaderErrorName.FailedFinishQiniuUpload, response.error);\n }\n\n public Message(): string {\n return i18next.t(`uploader.finishUploadErrorWithMsg`, {\n msg: this.message,\n });\n }\n}\n\n// COS 上传失败\nexport class COSUploadError extends UploaderError {\n constructor(public response: Document) {\n super(\n UploaderErrorName.COSPostUploadFailed,\n response.getElementsByTagName(\"Message\")[0].innerHTML\n );\n }\n\n public Message(): string {\n return i18next.t(`uploader.cosUploadFailed`, {\n msg: this.message,\n code: this.response.getElementsByTagName(\"Code\")[0].innerHTML,\n });\n }\n}\n\n// COS 无法完成上传回调\nexport class COSUploadCallbackError extends APIError {\n constructor(response: Response) {\n super(UploaderErrorName.COSUploadCallbackFailed, \"\", response);\n }\n\n public Message(): string {\n this.message = i18next.t(\"uploader.finishUploadError\");\n return super.Message();\n }\n}\n\n// Upyun 上传失败\nexport class UpyunUploadError extends UploaderError {\n constructor(public response: UpyunError) {\n super(UploaderErrorName.UpyunPostUploadFailed, response.message);\n }\n\n public Message(): string {\n return i18next.t(\"uploader.upyunUploadFailed\", {\n msg: this.message,\n });\n }\n}\n\n// S3 无法完成上传回调\nexport class S3LikeUploadCallbackError extends APIError {\n constructor(response: Response) {\n super(UploaderErrorName.S3LikeUploadCallbackFailed, \"\", response);\n }\n\n public Message(): string {\n this.message = i18next.t(\"uploader.finishUploadError\");\n return super.Message();\n }\n}\n\n// 无法解析响应\nexport class TransformResponseError extends UploaderError {\n constructor(private response: string, parseError: Error) {\n super(UploaderErrorName.FailedTransformResponse, parseError.message);\n }\n\n public Message(): string {\n return i18next.t(\"uploader.parseResponseError\", {\n msg: this.message,\n content: this.response,\n });\n }\n}\n","import { Task } from \"../types\";\nimport Logger from \"../logger\";\nimport { UploaderError, UploaderErrorName } from \"../errors\";\nimport { ChunkProgress } from \"../uploader/chunk\";\n\nexport const sizeToString = (bytes: number): string => {\n if (bytes === 0) return \"0 B\";\n const k = 1024;\n const sizes = [\"B\", \"KB\", \"MB\", \"GB\", \"TB\", \"PB\", \"EB\", \"ZB\", \"YB\"];\n const i = Math.floor(Math.log(bytes) / Math.log(k));\n return (bytes / Math.pow(k, i)).toFixed(1) + \" \" + sizes[i];\n};\n\n// 文件分块\nexport function getChunks(\n file: File,\n chunkByteSize: number | undefined\n): Blob[] {\n // 如果 chunkByteSize 比文件大或为0,则直接取文件的大小\n if (!chunkByteSize || chunkByteSize > file.size || chunkByteSize == 0) {\n chunkByteSize = file.size;\n }\n\n const chunks: Blob[] = [];\n const count = Math.ceil(file.size / chunkByteSize);\n for (let i = 0; i < count; i++) {\n const chunk = file.slice(\n chunkByteSize * i,\n i === count - 1 ? file.size : chunkByteSize * (i + 1)\n );\n chunks.push(chunk);\n }\n\n if (chunks.length == 0) {\n chunks.push(file.slice(0));\n }\n return chunks;\n}\n\nexport function sumChunk(list: ChunkProgress[]) {\n return list.reduce((data, loaded) => data + loaded.loaded, 0);\n}\n\nconst resumeKeyPrefix = \"cd_upload_ctx_\";\n\nfunction isTask(toBeDetermined: Task | string): toBeDetermined is Task {\n return !!(toBeDetermined as Task).name;\n}\n\nexport function getResumeCtxKey(task: Task | string): string {\n if (isTask(task)) {\n return `${resumeKeyPrefix}name_${task.name}_dst_${task.dst}_size_${task.size}_policy_${task.policy.id}`;\n }\n\n return task;\n}\n\nexport function setResumeCtx(task: Task, logger: Logger) {\n const ctxKey = getResumeCtxKey(task);\n try {\n localStorage.setItem(ctxKey, JSON.stringify(task));\n } catch (err) {\n logger.warn(\n new UploaderError(\n UploaderErrorName.WriteCtxFailed,\n `setResumeCtx failed: ${ctxKey}`\n )\n );\n }\n}\n\nexport function removeResumeCtx(task: Task | string, logger: Logger) {\n const ctxKey = getResumeCtxKey(task);\n try {\n localStorage.removeItem(ctxKey);\n } catch (err) {\n logger.warn(\n new UploaderError(\n UploaderErrorName.RemoveCtxFailed,\n `removeResumeCtx failed. key: ${ctxKey}`\n )\n );\n }\n}\n\nexport function cleanupResumeCtx(logger: Logger) {\n for (let i = 0; i < localStorage.length; i++) {\n const key = localStorage.key(i);\n if (key && key.startsWith(resumeKeyPrefix)) {\n try {\n localStorage.removeItem(key);\n } catch (err) {\n logger.warn(\n new UploaderError(\n UploaderErrorName.RemoveCtxFailed,\n `removeResumeCtx failed. key: ${key}`\n )\n );\n }\n }\n }\n}\n\nexport function getResumeCtx(task: Task | string, logger: Logger): Task | null {\n const ctxKey = getResumeCtxKey(task);\n let localInfoString: string | null = null;\n try {\n localInfoString = localStorage.getItem(ctxKey);\n } catch {\n logger.warn(\n new UploaderError(\n UploaderErrorName.ReadCtxFailed,\n `getResumeCtx failed. key: ${ctxKey}`\n )\n );\n }\n\n if (localInfoString == null) {\n return null;\n }\n\n let localInfo: Task | null = null;\n try {\n localInfo = JSON.parse(localInfoString);\n } catch {\n // 本地信息已被破坏,直接删除\n removeResumeCtx(task, logger);\n logger.warn(\n new UploaderError(\n UploaderErrorName.InvalidCtxData,\n `getResumeCtx failed to parse. key: ${ctxKey}`\n )\n );\n }\n\n if (\n localInfo &&\n localInfo.session &&\n localInfo.session.expires < Math.floor(Date.now() / 1000)\n ) {\n removeResumeCtx(task, logger);\n logger.warn(\n new UploaderError(\n UploaderErrorName.CtxExpired,\n `upload session already expired at ${localInfo.session.expires}. key: ${ctxKey}`\n )\n );\n return null;\n }\n\n return localInfo;\n}\n\nexport function listResumeCtx(logger: Logger): Task[] {\n const res: Task[] = [];\n for (let i = 0, len = localStorage.length; i < len; i++) {\n const key = localStorage.key(i);\n if (key && key.startsWith(resumeKeyPrefix)) {\n const value = getResumeCtx(key, logger);\n if (value) {\n res.push(value);\n }\n }\n }\n\n return res;\n}\n\nexport function OBJtoXML(obj: any): string {\n let xml = \"\";\n for (const prop in obj) {\n xml += \"<\" + prop + \">\";\n if (Array.isArray(obj[prop])) {\n for (const array of obj[prop]) {\n // A real botch fix here\n xml += \"\";\n xml += \"<\" + prop + \">\";\n\n xml += OBJtoXML(new Object(array));\n }\n } else if (typeof obj[prop] == \"object\") {\n xml += OBJtoXML(new Object(obj[prop]));\n } else {\n xml += obj[prop];\n }\n xml += \"\";\n }\n return xml.replace(/<\\/?[0-9]{1,}>/g, \"\");\n}\n\nexport function getFileInput(id: number, isFolder: boolean): HTMLInputElement {\n const input = document.createElement(\"input\");\n input.type = \"file\";\n input.id = `upload-file-input-${id}`;\n if (isFolder) {\n input.id = `upload-folder-input-${id}`;\n input.setAttribute(\"webkitdirectory\", \"true\");\n input.setAttribute(\"mozdirectory\", \"true\");\n } else {\n input.id = `upload-file-input-${id}`;\n input.multiple = true;\n }\n input.hidden = true;\n document.body.appendChild(input);\n return input;\n}\n\nexport function pathJoin(parts: string[], sep = \"/\"): string {\n parts = parts.map((part, index) => {\n if (index) {\n part = part.replace(new RegExp(\"^\" + sep), \"\");\n }\n if (index !== parts.length - 1) {\n part = part.replace(new RegExp(sep + \"$\"), \"\");\n }\n return part;\n });\n return parts.join(sep);\n}\n\nfunction basename(path: string): string {\n const pathList = path.split(\"/\");\n pathList.pop();\n return pathList.join(\"/\") === \"\" ? \"/\" : pathList.join(\"/\");\n}\n\nexport function trimPrefix(src: string, prefix: string): string {\n if (src.startsWith(prefix)) {\n return src.slice(prefix.length);\n }\n return src;\n}\n\nexport function getDirectoryUploadDst(dst: string, file: any): string {\n let relPath = file.webkitRelativePath;\n if (!relPath || relPath == \"\") {\n relPath = file.fsPath;\n if (!relPath || relPath == \"\") {\n return dst;\n }\n }\n\n relPath = trimPrefix(relPath, \"/\");\n\n return basename(pathJoin([dst, relPath]));\n}\n\n// Wrap readEntries in a promise to make working with readEntries easier\nasync function readEntriesPromise(directoryReader: any): Promise {\n try {\n return await new Promise((resolve, reject) => {\n directoryReader.readEntries(resolve, reject);\n });\n } catch (err) {\n console.log(err);\n }\n}\n\nasync function readFilePromise(fileReader: any, path: string): Promise {\n try {\n return await new Promise((resolve, reject) => {\n fileReader.file((file: any) => {\n file.fsPath = path;\n resolve(file);\n });\n });\n } catch (err) {\n console.log(err);\n }\n}\n\n// Get all the entries (files or sub-directories) in a directory by calling readEntries until it returns empty array\nasync function readAllDirectoryEntries(directoryReader: any): Promise {\n const entries: any[] = [];\n let readEntries = await readEntriesPromise(directoryReader);\n while (readEntries.length > 0) {\n entries.push(...readEntries);\n readEntries = await readEntriesPromise(directoryReader);\n }\n return entries;\n}\n\n// Drop handler function to get all files\nexport async function getAllFileEntries(\n dataTransferItemList: DataTransferItemList\n): Promise {\n const fileEntries: any[] = [];\n // Use BFS to traverse entire directory/file structure\n const queue: any[] = [];\n // Unfortunately dataTransferItemList is not iterable i.e. no forEach\n for (let i = 0; i < dataTransferItemList.length; i++) {\n const fileEntry = dataTransferItemList[i].webkitGetAsEntry();\n if (!fileEntry) {\n const file = dataTransferItemList[i].getAsFile();\n if (file) {\n fileEntries.push(file);\n }\n }\n\n queue.push(dataTransferItemList[i].webkitGetAsEntry());\n }\n while (queue.length > 0) {\n const entry = queue.shift();\n if (!entry) {\n continue;\n }\n if (entry.isFile) {\n fileEntries.push(await readFilePromise(entry, entry.fullPath));\n } else if (entry.isDirectory) {\n const reader = entry.createReader();\n const entries: any = await readAllDirectoryEntries(reader);\n queue.push(...entries);\n }\n }\n return fileEntries;\n}\n\nexport function isFileDrop(e: DragEvent): boolean {\n return !!e.dataTransfer && e.dataTransfer.types.includes(\"Files\");\n}\n","export * from \"./pool\";\nexport * from \"./helper\";\nexport * from \"./validator\";\nexport * from \"./request\";\n","import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { connect } from \"react-redux\";\nimport classNames from \"classnames\";\nimport ErrorIcon from \"@material-ui/icons/Error\";\nimport InfoIcon from \"@material-ui/icons/Info\";\nimport CloseIcon from \"@material-ui/icons/Close\";\nimport CheckCircleIcon from \"@material-ui/icons/CheckCircle\";\nimport WarningIcon from \"@material-ui/icons/Warning\";\n\nimport {\n IconButton,\n Snackbar,\n SnackbarContent,\n withStyles,\n} from \"@material-ui/core\";\n\nconst mapStateToProps = (state) => {\n return {\n snackbar: state.viewUpdate.snackbar,\n };\n};\n\nconst mapDispatchToProps = () => {\n return {};\n};\n\nconst variantIcon = {\n success: CheckCircleIcon,\n warning: WarningIcon,\n error: ErrorIcon,\n info: InfoIcon,\n};\n\nconst styles1 = (theme) => ({\n success: {\n backgroundColor: theme.palette.success.main,\n },\n error: {\n backgroundColor: theme.palette.error.dark,\n },\n info: {\n backgroundColor: theme.palette.info.main,\n },\n warning: {\n backgroundColor: theme.palette.warning.main,\n },\n icon: {\n fontSize: 20,\n },\n iconVariant: {\n opacity: 0.9,\n marginRight: theme.spacing(1),\n },\n message: {\n display: \"flex\",\n alignItems: \"center\",\n },\n});\n\nfunction MySnackbarContent(props) {\n const { classes, className, message, onClose, variant, ...other } = props;\n const Icon = variantIcon[variant];\n\n return (\n \n \n {message}\n \n }\n action={[\n \n \n ,\n ]}\n {...other}\n />\n );\n}\nMySnackbarContent.propTypes = {\n classes: PropTypes.object.isRequired,\n className: PropTypes.string,\n message: PropTypes.node,\n onClose: PropTypes.func,\n variant: PropTypes.oneOf([\"alert\", \"success\", \"warning\", \"error\", \"info\"])\n .isRequired,\n};\n\nconst MySnackbarContentWrapper = withStyles(styles1)(MySnackbarContent);\nconst styles = (theme) => ({\n margin: {\n margin: theme.spacing(1),\n },\n});\nclass SnackbarCompoment extends Component {\n state = {\n open: false,\n };\n\n UNSAFE_componentWillReceiveProps = (nextProps) => {\n if (nextProps.snackbar.toggle !== this.props.snackbar.toggle) {\n this.setState({ open: true });\n }\n };\n\n handleClose = () => {\n this.setState({ open: false });\n };\n\n render() {\n return (\n \n \n \n );\n }\n}\n\nconst AlertBar = connect(\n mapStateToProps,\n mapDispatchToProps\n)(withStyles(styles)(SnackbarCompoment));\n\nexport default AlertBar;\n","import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { connect } from \"react-redux\";\nimport {\n AccountArrowRight,\n AccountPlus,\n DesktopMacDashboard,\n HomeAccount,\n LogoutVariant,\n} from \"mdi-material-ui\";\nimport { withRouter } from \"react-router-dom\";\nimport Auth from \"../../middleware/Auth\";\nimport {\n Avatar,\n Chip,\n Divider,\n ListItemIcon,\n MenuItem,\n Popover,\n Typography,\n withStyles,\n} from \"@material-ui/core\";\nimport API from \"../../middleware/Api\";\nimport pathHelper from \"../../utils/page\";\nimport {\n setSessionStatus,\n setUserPopover,\n toggleSnackbar,\n} from \"../../redux/explorer\";\nimport { withTranslation } from \"react-i18next\";\n\nconst mapStateToProps = (state) => {\n return {\n anchorEl: state.viewUpdate.userPopoverAnchorEl,\n registerEnabled: state.siteConfig.registerEnabled,\n };\n};\n\nconst mapDispatchToProps = (dispatch) => {\n return {\n setUserPopover: (anchor) => {\n dispatch(setUserPopover(anchor));\n },\n toggleSnackbar: (vertical, horizontal, msg, color) => {\n dispatch(toggleSnackbar(vertical, horizontal, msg, color));\n },\n setSessionStatus: (status) => {\n dispatch(setSessionStatus(status));\n },\n };\n};\nconst styles = () => ({\n avatar: {\n width: \"30px\",\n height: \"30px\",\n },\n header: {\n display: \"flex\",\n padding: \"20px 20px 20px 20px\",\n },\n largeAvatar: {\n height: \"90px\",\n width: \"90px\",\n },\n info: {\n marginLeft: \"10px\",\n width: \"139px\",\n },\n badge: {\n marginTop: \"10px\",\n },\n visitorMenu: {\n width: 200,\n },\n});\n\nclass UserAvatarPopoverCompoment extends Component {\n handleClose = () => {\n this.props.setUserPopover(null);\n };\n\n openURL = (url) => {\n window.location.href = url;\n };\n\n sigOut = () => {\n API.delete(\"/user/session/\")\n .then(() => {\n this.props.toggleSnackbar(\n \"top\",\n \"right\",\n this.props.t(\"login.loggedOut\"),\n \"success\"\n );\n Auth.signout();\n window.location.reload();\n this.props.setSessionStatus(false);\n })\n .catch((error) => {\n this.props.toggleSnackbar(\n \"top\",\n \"right\",\n error.message,\n \"warning\"\n );\n })\n .then(() => {\n this.handleClose();\n });\n };\n\n render() {\n const { classes, t } = this.props;\n const user = Auth.GetUser();\n const isAdminPage = pathHelper.isAdminPage(\n this.props.location.pathname\n );\n\n return (\n \n {!Auth.Check() && (\n
\n \n this.props.history.push(\"/login\")}\n >\n \n \n \n {t(\"login.signIn\")}\n \n {this.props.registerEnabled && (\n \n this.props.history.push(\"/signup\")\n }\n >\n \n \n \n {t(\"login.signUp\")}\n \n )}\n
\n )}\n {Auth.Check() && (\n
\n
\n
\n \n
\n
\n {user.nickname}\n \n {user.user_name}\n \n \n
\n
\n
\n \n {!isAdminPage && (\n {\n this.handleClose();\n this.props.history.push(\n \"/profile/\" + user.id\n );\n }}\n >\n \n \n \n {t(\"navbar.myProfile\")}\n \n )}\n {user.group.id === 1 && (\n {\n this.handleClose();\n this.props.history.push(\"/admin/home\");\n }}\n >\n \n \n \n {t(\"navbar.dashboard\")}\n \n )}\n\n \n \n \n \n {t(\"login.logout\")}\n \n
\n
\n )}\n \n );\n }\n}\n\nUserAvatarPopoverCompoment.propTypes = {\n classes: PropTypes.object.isRequired,\n};\n\nconst UserAvatarPopover = connect(\n mapStateToProps,\n mapDispatchToProps\n)(\n withStyles(styles)(\n withRouter(withTranslation()(UserAvatarPopoverCompoment))\n )\n);\n\nexport default UserAvatarPopover;\n","import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { connect } from \"react-redux\";\nimport SettingIcon from \"@material-ui/icons/Settings\";\nimport UserAvatarPopover from \"./UserAvatarPopover\";\nimport { AccountCircle } from \"mdi-material-ui\";\nimport Auth from \"../../middleware/Auth\";\nimport {\n Avatar,\n Grow,\n IconButton,\n Tooltip,\n withStyles,\n} from \"@material-ui/core\";\nimport { withRouter } from \"react-router-dom\";\nimport pathHelper from \"../../utils/page\";\nimport DarkModeSwitcher from \"./DarkModeSwitcher\";\nimport PolicySwitcher from \"./PolicySwitcher\";\nimport { Home } from \"@material-ui/icons\";\nimport { setUserPopover } from \"../../redux/explorer\";\nimport { withTranslation } from \"react-i18next\";\n\nconst mapStateToProps = (state) => {\n return {\n selected: state.explorer.selected,\n isMultiple: state.explorer.selectProps.isMultiple,\n withFolder: state.explorer.selectProps.withFolder,\n withFile: state.explorer.selectProps.withFile,\n isLogin: state.viewUpdate.isLogin,\n };\n};\n\nconst mapDispatchToProps = (dispatch) => {\n return {\n setUserPopover: (anchor) => {\n dispatch(setUserPopover(anchor));\n },\n };\n};\n\nconst styles = (theme) => ({\n mobileHidden: {\n [theme.breakpoints.down(\"xs\")]: {\n display: \"none\",\n },\n whiteSpace: \"nowrap\",\n },\n avatar: {\n width: \"30px\",\n height: \"30px\",\n },\n header: {\n display: \"flex\",\n padding: \"20px 20px 20px 20px\",\n },\n largeAvatar: {\n height: \"90px\",\n width: \"90px\",\n },\n info: {\n marginLeft: \"10px\",\n width: \"139px\",\n },\n badge: {\n marginTop: \"10px\",\n },\n visitorMenu: {\n width: 200,\n },\n});\n\nclass UserAvatarCompoment extends Component {\n state = {\n anchorEl: null,\n };\n\n showUserInfo = (e) => {\n this.props.setUserPopover(e.currentTarget);\n };\n\n handleClose = () => {\n this.setState({\n anchorEl: null,\n });\n };\n\n openURL = (url) => {\n window.location.href = url;\n };\n\n returnHome = () => {\n window.location.href = \"/home\";\n };\n\n render() {\n const { classes, t } = this.props;\n const loginCheck = Auth.Check(this.props.isLogin);\n const user = Auth.GetUser(this.props.isLogin);\n const isAdminPage = pathHelper.isAdminPage(\n this.props.location.pathname\n );\n\n return (\n
\n \n
\n {!isAdminPage && (\n <>\n \n {loginCheck && (\n <>\n \n \n \n this.props.history.push(\n \"/setting?\"\n )\n }\n color=\"inherit\"\n >\n \n \n \n \n )}\n \n )}\n {isAdminPage && (\n \n \n \n \n \n )}\n \n {!loginCheck && }\n {loginCheck && (\n \n )}\n {\" \"}\n
\n \n \n
\n );\n }\n}\n\nUserAvatarCompoment.propTypes = {\n classes: PropTypes.object.isRequired,\n};\n\nconst UserAvatar = connect(\n mapStateToProps,\n mapDispatchToProps\n)(withStyles(styles)(withRouter(withTranslation()(UserAvatarCompoment))));\n\nexport default UserAvatar;\n","import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport classNames from \"classnames\";\nimport { connect } from \"react-redux\";\nimport ShareIcon from \"@material-ui/icons/Share\";\nimport MusicNote from \"@material-ui/icons/MusicNote\";\nimport BackIcon from \"@material-ui/icons/ArrowBack\";\nimport SdStorage from \"@material-ui/icons/SdStorage\";\nimport OpenIcon from \"@material-ui/icons/OpenInNew\";\nimport DownloadIcon from \"@material-ui/icons/CloudDownload\";\nimport RenameIcon from \"@material-ui/icons/BorderColor\";\nimport MoveIcon from \"@material-ui/icons/Input\";\nimport DeleteIcon from \"@material-ui/icons/Delete\";\nimport MenuIcon from \"@material-ui/icons/Menu\";\nimport { isPreviewable } from \"../../config\";\nimport { changeThemeColor, sizeToString, vhCheck } from \"../../utils\";\nimport Uploader from \"../Uploader/Uploader.js\";\nimport pathHelper from \"../../utils/page\";\nimport SezrchBar from \"./SearchBar\";\nimport StorageBar from \"./StorageBar\";\nimport UserAvatar from \"./UserAvatar\";\nimport UserInfo from \"./UserInfo\";\nimport {\n FolderDownload,\n AccountArrowRight,\n AccountPlus,\n LogoutVariant,\n} from \"mdi-material-ui\";\nimport { withRouter } from \"react-router-dom\";\nimport {\n AppBar,\n Drawer,\n Grow,\n Hidden,\n IconButton,\n List,\n ListItemIcon,\n ListItemText,\n SwipeableDrawer,\n Toolbar,\n Tooltip,\n Typography,\n withStyles,\n withTheme\n} from \"@material-ui/core\";\nimport Auth from \"../../middleware/Auth\";\nimport API from \"../../middleware/Api\";\nimport FileTag from \"./FileTags\";\nimport { Assignment, Devices, MoreHoriz, Settings } from \"@material-ui/icons\";\nimport Divider from \"@material-ui/core/Divider\";\nimport SubActions from \"../FileManager/Navigator/SubActions\";\nimport {\n audioPreviewSetIsOpen,\n changeContextMenu,\n drawerToggleAction,\n navigateTo,\n openCreateFolderDialog,\n openLoadingDialog,\n openMoveDialog,\n openMusicDialog,\n openPreview,\n openRemoveDialog,\n openRenameDialog,\n openShareDialog,\n saveFile,\n setSelectedTarget,\n setSessionStatus,\n showImgPreivew,\n toggleSnackbar,\n} from \"../../redux/explorer\";\nimport {\n startBatchDownload,\n startDirectoryDownload,\n startDownload,\n} from \"../../redux/explorer/action\";\nimport PolicySwitcher from \"./PolicySwitcher\";\nimport { withTranslation } from \"react-i18next\";\nimport MuiListItem from \"@material-ui/core/ListItem\";\n\nvhCheck();\nconst drawerWidth = 240;\nconst drawerWidthMobile = 270;\n\nconst ListItem = withStyles((theme) => ({\n root: {\n borderRadius:theme.shape.borderRadius,\n },\n}))(MuiListItem);\n\nconst mapStateToProps = (state) => {\n return {\n desktopOpen: state.viewUpdate.open,\n selected: state.explorer.selected,\n isMultiple: state.explorer.selectProps.isMultiple,\n withFolder: state.explorer.selectProps.withFolder,\n withFile: state.explorer.selectProps.withFile,\n path: state.navigator.path,\n title: state.siteConfig.title,\n subTitle: state.viewUpdate.subTitle,\n loadUploader: state.viewUpdate.loadUploader,\n isLogin: state.viewUpdate.isLogin,\n shareInfo: state.viewUpdate.shareInfo,\n registerEnabled: state.siteConfig.registerEnabled,\n audioPreviewPlayingName: state.explorer.audioPreview.playingName,\n audioPreviewIsOpen: state.explorer.audioPreview.isOpen,\n };\n};\n\nconst mapDispatchToProps = (dispatch) => {\n return {\n handleDesktopToggle: (open) => {\n dispatch(drawerToggleAction(open));\n },\n setSelectedTarget: (targets) => {\n dispatch(setSelectedTarget(targets));\n },\n navigateTo: (path) => {\n dispatch(navigateTo(path));\n },\n openCreateFolderDialog: () => {\n dispatch(openCreateFolderDialog());\n },\n changeContextMenu: (type, open) => {\n dispatch(changeContextMenu(type, open));\n },\n saveFile: () => {\n dispatch(saveFile());\n },\n openMusicDialog: () => {\n dispatch(openMusicDialog());\n },\n showImgPreivew: (first) => {\n dispatch(showImgPreivew(first));\n },\n toggleSnackbar: (vertical, horizontal, msg, color) => {\n dispatch(toggleSnackbar(vertical, horizontal, msg, color));\n },\n openRenameDialog: () => {\n dispatch(openRenameDialog());\n },\n openMoveDialog: () => {\n dispatch(openMoveDialog());\n },\n openRemoveDialog: () => {\n dispatch(openRemoveDialog());\n },\n openShareDialog: () => {\n dispatch(openShareDialog());\n },\n openLoadingDialog: (text) => {\n dispatch(openLoadingDialog(text));\n },\n setSessionStatus: () => {\n dispatch(setSessionStatus());\n },\n openPreview: (share) => {\n dispatch(openPreview(share));\n },\n audioPreviewOpen: () => {\n dispatch(audioPreviewSetIsOpen(true));\n },\n startBatchDownload: (share) => {\n dispatch(startBatchDownload(share));\n },\n startDirectoryDownload: (share) => {\n dispatch(startDirectoryDownload(share));\n },\n startDownload: (share, file) => {\n dispatch(startDownload(share, file));\n },\n };\n};\n\nconst styles = (theme) => ({\n appBar: {\n marginLeft: drawerWidth,\n [theme.breakpoints.down(\"xs\")]: {\n marginLeft: drawerWidthMobile,\n },\n zIndex: theme.zIndex.drawer + 1,\n transition: \" background-color 250ms\",\n },\n\n drawer: {\n width: 0,\n flexShrink: 0,\n },\n drawerDesktop: {\n width: drawerWidth,\n flexShrink: 0,\n },\n icon: {\n marginRight: theme.spacing(2),\n },\n menuButton: {\n marginRight: 20,\n [theme.breakpoints.up(\"sm\")]: {\n display: \"none\",\n },\n },\n menuButtonDesktop: {\n marginRight: 20,\n [theme.breakpoints.down(\"xs\")]: {\n display: \"none\",\n },\n },\n menuIcon: {\n marginRight: 20,\n },\n toolbar: theme.mixins.toolbar,\n drawerPaper: {\n width: drawerWidthMobile,\n },\n drawerPaperDesktop: {\n width: drawerWidth,\n },\n upDrawer: {\n overflowX: \"hidden\",\n [theme.breakpoints.up(\"sm\")]: {\n display: \"flex\",\n flexDirection: \"column\",\n height: \"100%\",\n justifyContent: \"space-between\",\n },\n },\n drawerOpen: {\n width: drawerWidth,\n transition: theme.transitions.create(\"width\", {\n easing: theme.transitions.easing.sharp,\n duration: theme.transitions.duration.enteringScreen,\n }),\n },\n drawerClose: {\n transition: theme.transitions.create(\"width\", {\n easing: theme.transitions.easing.sharp,\n duration: theme.transitions.duration.leavingScreen,\n }),\n overflowX: \"hidden\",\n width: 0,\n },\n content: {\n flexGrow: 1,\n padding: theme.spacing(3),\n },\n grow: {\n flexGrow: 1,\n },\n badge: {\n top: 1,\n right: -15,\n },\n nested: {\n paddingLeft: theme.spacing(4),\n },\n sectionForFile: {\n display: \"flex\",\n },\n extendedIcon: {\n marginRight: theme.spacing(1),\n },\n addButton: {\n marginLeft: \"40px\",\n marginTop: \"25px\",\n marginBottom: \"15px\",\n },\n fabButton: {\n borderRadius: \"100px\",\n },\n badgeFix: {\n right: \"10px\",\n },\n iconFix: {\n marginLeft: \"16px\",\n },\n dividerFix: {\n marginTop: \"8px\",\n },\n folderShareIcon: {\n verticalAlign: \"sub\",\n marginRight: \"5px\",\n },\n shareInfoContainer: {\n display: \"flex\",\n marginTop: \"15px\",\n marginBottom: \"20px\",\n marginLeft: \"28px\",\n textDecoration: \"none\",\n },\n shareAvatar: {\n width: \"40px\",\n height: \"40px\",\n },\n stickFooter: {\n bottom: \"0px\",\n position: \"absolute\",\n backgroundColor: theme.palette.background.paper,\n width: \"100%\",\n },\n ownerInfo: {\n marginLeft: \"10px\",\n width: \"150px\",\n },\n minStickDrawer: {\n overflowY: \"auto\",\n },\n paddingList:{\n padding:theme.spacing(1),\n }\n});\nclass NavbarCompoment extends Component {\n constructor(props) {\n super(props);\n this.state = {\n mobileOpen: false,\n };\n this.UploaderRef = React.createRef();\n }\n\n UNSAFE_componentWillMount() {\n this.unlisten = this.props.history.listen(() => {\n this.setState(() => ({ mobileOpen: false }));\n });\n }\n componentWillUnmount() {\n this.unlisten();\n }\n\n componentDidMount = () => {\n changeThemeColor(\n this.props.selected.length <= 1 &&\n !(!this.props.isMultiple && this.props.withFile)\n ? this.props.theme.palette.primary.main\n : this.props.theme.palette.background.default\n );\n };\n\n UNSAFE_componentWillReceiveProps = (nextProps) => {\n if (\n (this.props.selected.length === 0) !==\n (nextProps.selected.length === 0)\n ) {\n changeThemeColor(\n !(this.props.selected.length === 0)\n ? this.props.theme.palette.type === \"dark\"\n ? this.props.theme.palette.background.default\n : this.props.theme.palette.primary.main\n : this.props.theme.palette.background.default\n );\n }\n };\n\n handleDrawerToggle = () => {\n this.setState((state) => ({ mobileOpen: !state.mobileOpen }));\n };\n\n openDownload = () => {\n this.props.startDownload(this.props.shareInfo, this.props.selected[0]);\n };\n\n openDirectoryDownload = (e) => {\n this.props.startDirectoryDownload(this.props.shareInfo);\n };\n\n archiveDownload = (e) => {\n this.props.startBatchDownload(this.props.shareInfo);\n };\n\n signOut = () => {\n API.delete(\"/user/session/\")\n .then(() => {\n this.props.toggleSnackbar(\n \"top\",\n \"right\",\n this.props.t(\"login.loggedOut\"),\n \"success\"\n );\n Auth.signout();\n window.location.reload();\n this.props.setSessionStatus(false);\n })\n .catch((error) => {\n this.props.toggleSnackbar(\n \"top\",\n \"right\",\n error.message,\n \"warning\"\n );\n })\n .finally(() => {\n this.handleClose();\n });\n };\n\n render() {\n const { classes, t } = this.props;\n const user = Auth.GetUser(this.props.isLogin);\n const isHomePage = pathHelper.isHomePage(this.props.location.pathname);\n const isSharePage = pathHelper.isSharePage(\n this.props.location.pathname\n );\n\n const drawer = (\n
\n {pathHelper.isMobile() && }\n\n {Auth.Check(this.props.isLogin) && (\n <>\n
\n \n \n \n this.props.history.push(\"/shares?\")\n }\n >\n \n \n \n \n \n {user.group.allowRemoteDownload && (\n \n this.props.history.push(\"/aria2?\")\n }\n >\n \n \n \n \n \n )}\n \n this.props.history.push(\"/quota?\")\n }\n >\n \n \n \n \n \n \n this.props.history.push(\"/connect?\")\n }\n >\n \n \n \n \n \n\n \n this.props.history.push(\"/tasks?\")\n }\n >\n \n \n \n \n \n {pathHelper.isMobile() && (\n <>\n \n \n this.props.history.push(\n \"/setting?\"\n )\n }\n >\n \n \n \n \n \n\n \n \n \n \n \n \n \n )}\n \n
\n
\n \n
\n \n )}\n\n {!Auth.Check(this.props.isLogin) && (\n
\n this.props.history.push(\"/login\")}\n >\n \n \n \n \n \n {this.props.registerEnabled && (\n \n this.props.history.push(\"/signup\")\n }\n >\n \n \n \n \n \n )}\n
\n )}\n
\n );\n const iOS =\n process.browser && /iPad|iPhone|iPod/.test(navigator.userAgent);\n return (\n
\n \n \n {this.props.selected.length === 0 && (\n \n \n \n )}\n {this.props.selected.length === 0 && (\n \n this.props.handleDesktopToggle(\n !this.props.desktopOpen\n )\n }\n className={classes.menuButtonDesktop}\n >\n \n \n )}\n {this.props.selected.length > 0 &&\n (isHomePage ||\n pathHelper.isSharePage(\n this.props.location.pathname\n )) && (\n 0}>\n \n this.props.setSelectedTarget([])\n }\n >\n \n \n \n )}\n {this.props.selected.length === 0 && (\n {\n this.props.history.push(\"/\");\n }}\n >\n {this.props.subTitle\n ? this.props.subTitle\n : this.props.title}\n \n )}\n\n {!this.props.isMultiple &&\n (this.props.withFile || this.props.withFolder) &&\n !pathHelper.isMobile() && (\n \n {this.props.selected[0].name}{\" \"}\n {this.props.withFile &&\n (isHomePage ||\n pathHelper.isSharePage(\n this.props.location.pathname\n )) &&\n \"(\" +\n sizeToString(\n this.props.selected[0].size\n ) +\n \")\"}\n \n )}\n\n {this.props.selected.length > 1 &&\n !pathHelper.isMobile() && (\n \n {t(\"navbar.objectsSelected\", {\n num: this.props.selected.length,\n })}\n \n )}\n {this.props.selected.length === 0 && }\n
\n {this.props.selected.length > 0 &&\n (isHomePage || isSharePage) && (\n
\n {!this.props.isMultiple &&\n this.props.withFile &&\n isPreviewable(\n this.props.selected[0].name\n ) && (\n \n \n \n this.props.openPreview(\n this.props\n .shareInfo\n )\n }\n >\n \n \n \n \n )}\n {!this.props.isMultiple &&\n this.props.withFile && (\n \n \n \n this.openDownload()\n }\n >\n \n \n \n \n )}\n {(this.props.isMultiple ||\n this.props.withFolder) &&\n window.showDirectoryPicker &&\n window.isSecureContext && (\n \n \n \n this.openDirectoryDownload()\n }\n >\n \n \n \n \n )}\n {(this.props.isMultiple ||\n this.props.withFolder) && (\n \n \n \n this.archiveDownload()\n }\n >\n \n \n \n \n )}\n {!this.props.isMultiple &&\n !pathHelper.isMobile() &&\n !isSharePage && (\n \n \n \n this.props.openShareDialog()\n }\n >\n \n \n \n \n )}\n {!this.props.isMultiple && !isSharePage && (\n \n \n \n this.props.openRenameDialog()\n }\n >\n \n \n \n \n )}\n {!isSharePage && (\n
\n {!pathHelper.isMobile() && (\n \n \n \n this.props.openMoveDialog()\n }\n >\n \n \n \n \n )}\n\n \n \n \n this.props.openRemoveDialog()\n }\n >\n \n \n \n \n\n {pathHelper.isMobile() && (\n \n \n \n this.props.changeContextMenu(\n \"file\",\n true\n )\n }\n >\n \n \n \n \n )}\n
\n )}\n
\n )}\n {this.props.selected.length <= 1 &&\n !(!this.props.isMultiple && this.props.withFile) &&\n this.props.audioPreviewPlayingName != null && (\n \n \n \n )}\n\n {this.props.selected.length === 0 && }\n {this.props.selected.length === 0 &&\n pathHelper.isMobile() && (\n <>\n {isHomePage && }\n {(isHomePage || this.props.shareInfo) && (\n \n )}\n \n )}\n \n \n \n\n \n \n this.setState(() => ({ mobileOpen: true }))\n }\n disableDiscovery={iOS}\n ModalProps={{\n keepMounted: true, // Better open performance on mobile.\n }}\n >\n {drawer}\n \n \n \n \n
\n {drawer}\n \n \n
\n );\n }\n}\nNavbarCompoment.propTypes = {\n classes: PropTypes.object.isRequired,\n theme: PropTypes.object.isRequired,\n};\n\nconst Navbar = connect(\n mapStateToProps,\n mapDispatchToProps\n)(\n withTheme(\n withStyles(styles)(withRouter(withTranslation()(NavbarCompoment)))\n )\n);\n\nexport default Navbar;\n","/* eslint-disable */\nclass Crc32 {\n constructor() {\n this.crc = -1;\n }\n\n append(data) {\n let crc = this.crc | 0;\n const table = this.table;\n for (let offset = 0, len = data.length | 0; offset < len; offset++) {\n crc = (crc >>> 8) ^ table[(crc ^ data[offset]) & 0xff];\n }\n this.crc = crc;\n }\n\n get() {\n return ~this.crc;\n }\n}\nCrc32.prototype.table = (() => {\n let i;\n let j;\n let t;\n const table = [];\n for (i = 0; i < 256; i++) {\n t = i;\n for (j = 0; j < 8; j++) {\n t = t & 1 ? (t >>> 1) ^ 0xedb88320 : t >>> 1;\n }\n table[i] = t;\n }\n return table;\n})();\n\nconst getDataHelper = (byteLength) => {\n const uint8 = new Uint8Array(byteLength);\n return {\n array: uint8,\n view: new DataView(uint8.buffer),\n };\n};\n\nconst pump = (zipObj) =>\n zipObj.reader.read().then((chunk) => {\n if (chunk.done) return zipObj.writeFooter();\n const outputData = chunk.value;\n zipObj.crc.append(outputData);\n zipObj.uncompressedLength += outputData.length;\n zipObj.compressedLength += outputData.length;\n zipObj.ctrl.enqueue(outputData);\n });\n\n/**\n * [createWriter description]\n * @param {Object} underlyingSource [description]\n * @return {Boolean} [description]\n */\nfunction createWriter(underlyingSource) {\n const files = Object.create(null);\n const filenames = [];\n const encoder = new TextEncoder();\n let offset = 0;\n let activeZipIndex = 0;\n let ctrl;\n let activeZipObject, closed;\n\n function next() {\n activeZipIndex++;\n activeZipObject = files[filenames[activeZipIndex]];\n if (activeZipObject) processNextChunk();\n else if (closed) closeZip();\n }\n\n const zipWriter = {\n enqueue(fileLike) {\n if (closed)\n throw new TypeError(\n \"Cannot enqueue a chunk into a readable stream that is closed or has been requested to be closed\"\n );\n\n let name = fileLike.name.trim();\n const date = new Date(\n typeof fileLike.lastModified === \"undefined\"\n ? Date.now()\n : fileLike.lastModified\n );\n\n if (fileLike.directory && !name.endsWith(\"/\")) name += \"/\";\n if (files[name]) throw new Error(\"File already exists.\");\n\n const nameBuf = encoder.encode(name);\n filenames.push(name);\n\n const zipObject = (files[name] = {\n level: 0,\n ctrl,\n directory: !!fileLike.directory,\n nameBuf,\n comment: encoder.encode(fileLike.comment || \"\"),\n compressedLength: 0,\n uncompressedLength: 0,\n writeHeader() {\n const header = getDataHelper(26);\n const data = getDataHelper(30 + nameBuf.length);\n\n zipObject.offset = offset;\n zipObject.header = header;\n if (zipObject.level !== 0 && !zipObject.directory) {\n header.view.setUint16(4, 0x0800);\n }\n header.view.setUint32(0, 0x14000808);\n header.view.setUint16(\n 6,\n (((date.getHours() << 6) | date.getMinutes()) << 5) |\n (date.getSeconds() / 2),\n true\n );\n header.view.setUint16(\n 8,\n ((((date.getFullYear() - 1980) << 4) |\n (date.getMonth() + 1)) <<\n 5) |\n date.getDate(),\n true\n );\n header.view.setUint16(22, nameBuf.length, true);\n data.view.setUint32(0, 0x504b0304);\n data.array.set(header.array, 4);\n data.array.set(nameBuf, 30);\n offset += data.array.length;\n ctrl.enqueue(data.array);\n },\n writeFooter() {\n const footer = getDataHelper(16);\n footer.view.setUint32(0, 0x504b0708);\n\n if (zipObject.crc) {\n zipObject.header.view.setUint32(\n 10,\n zipObject.crc.get(),\n true\n );\n zipObject.header.view.setUint32(\n 14,\n zipObject.compressedLength,\n true\n );\n zipObject.header.view.setUint32(\n 18,\n zipObject.uncompressedLength,\n true\n );\n footer.view.setUint32(4, zipObject.crc.get(), true);\n footer.view.setUint32(\n 8,\n zipObject.compressedLength,\n true\n );\n footer.view.setUint32(\n 12,\n zipObject.uncompressedLength,\n true\n );\n }\n\n ctrl.enqueue(footer.array);\n offset += zipObject.compressedLength + 16;\n next();\n },\n fileLike,\n });\n\n if (!activeZipObject) {\n activeZipObject = zipObject;\n processNextChunk();\n }\n },\n close() {\n if (closed)\n throw new TypeError(\n \"Cannot close a readable stream that has already been requested to be closed\"\n );\n if (!activeZipObject) closeZip();\n closed = true;\n },\n };\n\n function closeZip() {\n let length = 0;\n let index = 0;\n let indexFilename, file;\n for (\n indexFilename = 0;\n indexFilename < filenames.length;\n indexFilename++\n ) {\n file = files[filenames[indexFilename]];\n length += 46 + file.nameBuf.length + file.comment.length;\n }\n const data = getDataHelper(length + 22);\n for (\n indexFilename = 0;\n indexFilename < filenames.length;\n indexFilename++\n ) {\n file = files[filenames[indexFilename]];\n data.view.setUint32(index, 0x504b0102);\n data.view.setUint16(index + 4, 0x1400);\n data.array.set(file.header.array, index + 6);\n data.view.setUint16(index + 32, file.comment.length, true);\n if (file.directory) {\n data.view.setUint8(index + 38, 0x10);\n }\n data.view.setUint32(index + 42, file.offset, true);\n data.array.set(file.nameBuf, index + 46);\n data.array.set(file.comment, index + 46 + file.nameBuf.length);\n index += 46 + file.nameBuf.length + file.comment.length;\n }\n data.view.setUint32(index, 0x504b0506);\n data.view.setUint16(index + 8, filenames.length, true);\n data.view.setUint16(index + 10, filenames.length, true);\n data.view.setUint32(index + 12, length, true);\n data.view.setUint32(index + 16, offset, true);\n ctrl.enqueue(data.array);\n ctrl.close();\n }\n\n function processNextChunk() {\n if (!activeZipObject) return;\n if (activeZipObject.directory)\n return activeZipObject.writeFooter(activeZipObject.writeHeader());\n if (activeZipObject.reader) return pump(activeZipObject);\n if (activeZipObject.fileLike.stream) {\n activeZipObject.crc = new Crc32();\n activeZipObject.reader = activeZipObject.fileLike\n .stream()\n .getReader();\n activeZipObject.writeHeader();\n } else next();\n }\n return new ReadableStream({\n start: (c) => {\n ctrl = c;\n underlyingSource.start &&\n Promise.resolve(underlyingSource.start(zipWriter));\n },\n pull() {\n return (\n processNextChunk() ||\n (underlyingSource.pull &&\n Promise.resolve(underlyingSource.pull(zipWriter)))\n );\n },\n });\n}\n\nwindow.ZIP = createWriter;\n","import { CloudreveFile } from \"../types\";\nimport { list } from \"../services/navigate\";\nimport { pathJoin } from \"../component/Uploader/core/utils\";\n\nexport function getPreviewPath(selected: any): string {\n return encodeURIComponent(\n selected.path === \"/\"\n ? selected.path + selected.name\n : selected.path + \"/\" + selected.name\n );\n}\n\nexport async function walk(\n file: CloudreveFile[],\n share: any\n): Promise {\n let res: CloudreveFile[] = [];\n for (const f of file) {\n if (f.type === \"file\") {\n res.push(f);\n continue;\n }\n\n if (f.type === \"dir\") {\n const response = await list(\n pathJoin([f.path, f.name]),\n share,\n \"\",\n \"\"\n );\n const subs = await walk(response.data.objects, share);\n res = [...res, ...subs];\n }\n }\n\n return res;\n}\n","// get the paths of files (no directories) in the directory\n// parent: \"\" or \"/\"\nexport const getFileSystemDirectoryPaths = async (\n handle: FileSystemDirectoryHandle,\n parent = \"\"\n): Promise => {\n const paths: Array = [];\n\n for await (const [path, fileSystemHandle] of handle.entries()) {\n if (fileSystemHandle instanceof window.FileSystemFileHandle) {\n paths.push(`${parent}${path}`);\n } else {\n paths.push(\n ...(await getFileSystemDirectoryPaths(\n fileSystemHandle,\n `${parent}${path}/`\n ))\n );\n }\n }\n\n return paths;\n};\n\n// create the dst directory if it doesn't exist\n// return the dst directory handle\n// paths: \"/dir1/dir2\" => [\"dir1\",\"dir2\"]\nexport const createFileSystemDirectory = async (\n handle: FileSystemDirectoryHandle,\n paths: string[]\n) => {\n let cur = handle;\n while (paths.length > 0) {\n const path = paths.shift();\n if (!path) {\n break;\n }\n cur = await cur.getDirectoryHandle(path, { create: true });\n }\n return cur;\n};\n\n// save file into the dst directory\n// create the dst file if it doesn't exist by default\n// path: a/b/c.jpg\nexport const saveFileToFileSystemDirectory = async (\n handle: FileSystemDirectoryHandle,\n stream: FileSystemWriteChunkType,\n path: string,\n create = true\n) => {\n const paths = path.split(\"/\");\n const fileName = paths.pop();\n if (!fileName) return;\n\n const dir = await createFileSystemDirectory(handle, paths);\n const file = await dir.getFileHandle(fileName, { create });\n const writable = await file.createWritable();\n await writable.write(stream);\n await writable.close();\n};\n\n// verify or request the permission of the readwrite permission\nexport async function verifyFileSystemRWPermission(\n fileHandle: FileSystemDirectoryHandle\n) {\n const opts = { mode: \"readwrite\" as FileSystemPermissionMode };\n\n // Check if we already have permission, if so, return true.\n if ((await fileHandle.queryPermission(opts)) === \"granted\") {\n return true;\n }\n\n // Request permission to the file, if the user grants permission, return true.\n if ((await fileHandle.requestPermission(opts)) === \"granted\") {\n return true;\n }\n\n // The user did not grant permission, return false.\n return false;\n}\n","import { AnyAction } from \"redux\";\nimport { ThunkAction } from \"redux-thunk\";\nimport { CloudreveFile, SortMethod } from \"./../../types/index\";\nimport { closeContextMenu, setPagination } from \"../viewUpdate/action\";\nimport { Policy } from \"../../component/Uploader/core/types\";\nimport streamSaver from \"streamsaver\";\nimport \"../../utils/zip\";\nimport pathHelper from \"../../utils/page\";\nimport { filePath, isMac } from \"../../utils\";\nimport API, { getBaseURL } from \"../../middleware/Api\";\nimport { pathJoin, trimPrefix } from \"../../component/Uploader/core/utils\";\nimport { getPreviewPath, walk } from \"../../utils/api\";\nimport { askForOption, trySharePurchase } from \"./async\";\nimport Auth from \"../../middleware/Auth\";\nimport { encodingRequired, isPreviewable } from \"../../config\";\nimport { push } from \"connected-react-router\";\nimport {\n changeContextMenu,\n closeAllModals,\n navigateTo,\n openDirectoryDownloadDialog,\n openGetSourceDialog,\n openLoadingDialog,\n openTorrentDownloadDialog,\n showAudioPreview,\n showImgPreivew,\n toggleSnackbar,\n} from \"./index\";\nimport { getDownloadURL } from \"../../services/file\";\nimport i18next from \"../../i18n\";\nimport {\n getFileSystemDirectoryPaths,\n saveFileToFileSystemDirectory,\n verifyFileSystemRWPermission,\n} from \"../../utils/filesystem\";\n\nexport interface ActionSetFileList extends AnyAction {\n type: \"SET_FILE_LIST\";\n list: CloudreveFile[];\n}\nexport const setFileList = (list: CloudreveFile[]): ActionSetFileList => {\n return {\n type: \"SET_FILE_LIST\",\n list,\n };\n};\n\nexport interface ActionSetDirList extends AnyAction {\n type: \"SET_DIR_LIST\";\n list: CloudreveFile[];\n}\nexport const setDirList = (list: CloudreveFile[]): ActionSetDirList => {\n return {\n type: \"SET_DIR_LIST\",\n list,\n };\n};\n\nexport interface ActionSetSortMethod extends AnyAction {\n type: \"SET_SORT_METHOD\";\n method: SortMethod;\n}\nexport const setSortMethod = (method: SortMethod): ActionSetSortMethod => {\n return {\n type: \"SET_SORT_METHOD\",\n method,\n };\n};\n\nexport const setSideBar = (open: boolean) => {\n return {\n type: \"SET_SIDE_BAR\",\n open,\n };\n};\n\nexport const setCurrentPolicy = (policy: Policy) => {\n return {\n type: \"SET_CURRENT_POLICY\",\n policy,\n };\n};\n\nexport const removeSelectedTargets = (fileIds: any) => {\n return {\n type: \"RMOVE_SELECTED_TARGETS\",\n fileIds,\n };\n};\nexport const addSelectedTargets = (targets: any) => {\n return {\n type: \"ADD_SELECTED_TARGETS\",\n targets,\n };\n};\nexport const setSelectedTarget = (targets: any) => {\n return {\n type: \"SET_SELECTED_TARGET\",\n targets,\n };\n};\nexport const setLastSelect = (file: any, index: any) => {\n return {\n type: \"SET_LAST_SELECT\",\n file,\n index,\n };\n};\nexport const setShiftSelectedIds = (shiftSelectedIds: any) => {\n return {\n type: \"SET_SHIFT_SELECTED_IDS\",\n shiftSelectedIds,\n };\n};\n\ntype SortFunc = (a: CloudreveFile, b: CloudreveFile) => number;\nexport const sortMethodFuncs: Record = {\n sizePos: (a: CloudreveFile, b: CloudreveFile) => {\n return a.size - b.size;\n },\n sizeRes: (a: CloudreveFile, b: CloudreveFile) => {\n return b.size - a.size;\n },\n namePos: (a: CloudreveFile, b: CloudreveFile) => {\n return a.name.localeCompare(\n b.name,\n navigator.languages[0] || navigator.language,\n { numeric: true, ignorePunctuation: true }\n );\n },\n nameRev: (a: CloudreveFile, b: CloudreveFile) => {\n return b.name.localeCompare(\n a.name,\n navigator.languages[0] || navigator.language,\n { numeric: true, ignorePunctuation: true }\n );\n },\n timePos: (a: CloudreveFile, b: CloudreveFile) => {\n return Date.parse(a.create_date) - Date.parse(b.create_date);\n },\n timeRev: (a: CloudreveFile, b: CloudreveFile) => {\n return Date.parse(b.create_date) - Date.parse(a.create_date);\n },\n modifyTimePos: (a: CloudreveFile, b: CloudreveFile) => {\n return Date.parse(a.date) - Date.parse(b.date);\n },\n modifyTimeRev: (a: CloudreveFile, b: CloudreveFile) => {\n return Date.parse(b.date) - Date.parse(a.date);\n },\n};\n\nexport const selectAll = (): ThunkAction => {\n return (dispatch, getState): void => {\n const state = getState();\n const { selected, fileList, dirList } = state.explorer;\n if (selected.length >= dirList.length + fileList.length) {\n dispatch(setSelectedTarget([]));\n } else {\n dispatch(setSelectedTarget([...dirList, ...fileList]));\n }\n };\n};\n\nexport const updateFileList = (\n list: CloudreveFile[]\n): ThunkAction => {\n return (dispatch, getState): void => {\n const state = getState();\n // TODO: define state type\n const { sortMethod, pagination } = state.viewUpdate;\n const dirList = list.filter((x) => {\n return x.type === \"dir\";\n });\n const fileList = list.filter((x) => {\n return x.type === \"file\";\n });\n const sortFunc = sortMethodFuncs[sortMethod as SortMethod];\n dispatch(setDirList(dirList.sort(sortFunc)));\n dispatch(setFileList(fileList.sort(sortFunc)));\n const total = dirList.length + fileList.length;\n if (pagination.page * pagination.size > total) {\n dispatch(\n setPagination({\n ...pagination,\n page: Math.max(Math.ceil(total / pagination.size), 1),\n })\n );\n }\n };\n};\n\nexport const changeSortMethod = (\n method: SortMethod\n): ThunkAction => {\n return (dispatch, getState): void => {\n const state = getState();\n const { fileList, dirList } = state.explorer;\n const sortFunc = sortMethodFuncs[method];\n Auth.SetPreference(\"sort\", method);\n dispatch(setSortMethod(method));\n dispatch(setDirList(dirList.slice().sort(sortFunc)));\n dispatch(setFileList(fileList.slice().sort(sortFunc)));\n };\n};\n\nexport const toggleObjectInfoSidebar = (\n open: boolean\n): ThunkAction => {\n return (dispatch, getState): void => {\n const state = getState();\n if (open) {\n dispatch(closeContextMenu());\n }\n dispatch(setSideBar(true));\n };\n};\n\nexport const serverSideBatchDownload = (\n share: any\n): ThunkAction => {\n return (dispatch, getState): void => {\n dispatch(\n openLoadingDialog(i18next.t(\"fileManager.preparingBathDownload\"))\n );\n const {\n explorer: { selected, fileList, dirList },\n router: {\n location: { pathname },\n },\n } = getState();\n const dirs: string[] = [],\n items: string[] = [];\n const fileSources: CloudreveFile[] = selected.length ? selected : [...dirList, ...fileList];\n fileSources.map((value) => {\n if (value.type === \"dir\") {\n dirs.push(value.id);\n } else {\n items.push(value.id);\n }\n return null;\n });\n\n let reqURL = \"/file/archive\";\n const postBody = {\n items: items,\n dirs: dirs,\n };\n if (pathHelper.isSharePage(pathname)) {\n reqURL = \"/share/archive/\" + share.key;\n postBody[\"path\"] = fileSources[0].path;\n }\n\n API.post(reqURL, postBody)\n .then((response: any) => {\n if (response.rawData.code === 0) {\n dispatch(closeAllModals());\n window.location.assign(response.data);\n } else {\n dispatch(\n toggleSnackbar(\n \"top\",\n \"right\",\n response.rawData.msg,\n \"warning\"\n )\n );\n }\n dispatch(closeAllModals());\n })\n .catch((error) => {\n dispatch(\n toggleSnackbar(\"top\", \"right\", error.message, \"error\")\n );\n dispatch(closeAllModals());\n });\n };\n};\n\nexport const startDownload = (\n share: any,\n file: CloudreveFile\n): ThunkAction => {\n return async (dispatch, getState): Promise => {\n const {\n router: {\n location: { pathname },\n },\n } = getState();\n const user = Auth.GetUser();\n if (\n pathHelper.isSharePage(pathname) &&\n !Auth.Check() &&\n user &&\n !user.group.shareDownload\n ) {\n dispatch(\n toggleSnackbar(\n \"top\",\n \"right\",\n i18next.t(\"share.pleaseLogin\"),\n \"warning\"\n )\n );\n return;\n }\n\n dispatch(changeContextMenu(\"file\", false));\n\n try {\n await dispatch(trySharePurchase(share));\n } catch (e) {\n return;\n }\n\n dispatch(openLoadingDialog(i18next.t(\"fileManager.preparingDownload\")));\n try {\n const res = await getDownloadURL(file ? file : share);\n window.location.assign(res.data);\n dispatch(closeAllModals());\n } catch (e) {\n dispatch(toggleSnackbar(\"top\", \"right\", e.message, \"warning\"));\n dispatch(closeAllModals());\n }\n };\n};\n\nexport const startBatchDownload = (\n share: any\n): ThunkAction => {\n return async (dispatch, getState): Promise => {\n dispatch(changeContextMenu(\"file\", false));\n try {\n await dispatch(trySharePurchase(share));\n } catch (e) {\n return;\n }\n\n const user = Auth.GetUser();\n if (user.group.allowArchiveDownload) {\n let option: any;\n try {\n option = await dispatch(\n askForOption(\n [\n {\n key: \"client\",\n name: i18next.t(\n \"fileManager.browserBatchDownload\"\n ),\n description: i18next.t(\n \"fileManager.browserBatchDownloadDescription\"\n ),\n },\n {\n key: \"server\",\n name: i18next.t(\n \"fileManager.serverBatchDownload\"\n ),\n description: i18next.t(\n \"fileManager.serverBatchDownloadDescription\"\n ),\n },\n ],\n i18next.t(\"fileManager.selectArchiveMethod\")\n )\n );\n } catch (e) {\n return;\n }\n\n if (option.key === \"server\") {\n dispatch(serverSideBatchDownload(share));\n return;\n }\n }\n\n const {\n explorer: { selected, fileList, dirList },\n } = getState();\n\n dispatch(openLoadingDialog(i18next.t(\"modals.listingFiles\")));\n\n let queue: CloudreveFile[] = [];\n try {\n const walkSources = selected.length ? selected : [...dirList, ...fileList];\n queue = await walk(walkSources, share);\n } catch (e) {\n dispatch(\n toggleSnackbar(\n \"top\",\n \"right\",\n i18next.t(\"modals.listingFileError\", {\n message: e.message,\n }),\n \"warning\"\n )\n );\n dispatch(closeAllModals());\n return;\n }\n\n dispatch(closeAllModals());\n dispatch(\n toggleSnackbar(\n \"top\",\n \"center\",\n i18next.t(\"fileManager.batchDownloadStarted\"),\n \"info\"\n )\n );\n const fileStream = streamSaver.createWriteStream(\"archive.zip\");\n let failed = 0;\n const readableZipStream = new (window as any).ZIP({\n start(ctrl: any) {\n // ctrl.close()\n },\n async pull(ctrl: any) {\n while (queue.length > 0) {\n const next = queue.pop();\n if (next && next.type === \"file\") {\n const previewPath = getPreviewPath(next);\n const url =\n getBaseURL() +\n (pathHelper.isSharePage(location.pathname)\n ? \"/share/preview/\" +\n share.key +\n (previewPath !== \"\"\n ? \"?path=\" + previewPath\n : \"\")\n : \"/file/preview/\" + next.id);\n try {\n const res = await fetch(url, { cache: \"no-cache\" });\n const stream = () => res.body;\n const name = trimPrefix(\n pathJoin([next.path, next.name]),\n \"/\"\n );\n ctrl.enqueue({ name, stream });\n return;\n } catch (e) {\n failed++;\n }\n }\n }\n ctrl.close();\n },\n });\n\n // more optimized\n if (window.WritableStream && readableZipStream.pipeTo) {\n return readableZipStream\n .pipeTo(fileStream)\n .then(() => dispatch(closeAllModals()))\n .catch((e) => {\n console.log(e);\n toggleSnackbar(\n \"top\",\n \"right\",\n i18next.t(\"modals.batchDownloadError\", {\n message: e && e.message,\n }),\n \"warning\"\n );\n dispatch(closeAllModals());\n });\n }\n };\n};\n\nlet directoryDownloadAbortController: AbortController;\nexport const cancelDirectoryDownload = () =>\n directoryDownloadAbortController.abort();\n\nexport const startDirectoryDownload = (\n share: any\n): ThunkAction => {\n return async (dispatch, getState): Promise => {\n dispatch(changeContextMenu(\"file\", false));\n\n directoryDownloadAbortController = new AbortController();\n if (!window.showDirectoryPicker || !window.isSecureContext) {\n return;\n }\n let handle: FileSystemDirectoryHandle;\n // we should show directory picker at first\n // https://web.dev/file-system-access/#:~:text=handle%3B%0A%7D-,Gotchas,-Sometimes%20processing%20the\n try {\n // can't use suggestedName for showDirectoryPicker (only available showSaveFilePicker)\n handle = await window.showDirectoryPicker({\n startIn: \"downloads\",\n mode: \"readwrite\",\n });\n // we should obtain the readwrite permission for the directory at first\n if (!(await verifyFileSystemRWPermission(handle))) {\n throw new Error(\n i18next.t(\"fileManager.directoryDownloadPermissionError\")\n );\n }\n dispatch(closeAllModals());\n } catch (e) {\n dispatch(\n toggleSnackbar(\n \"top\",\n \"right\",\n i18next.t(\"modals.directoryDownloadError\", {\n msg: e && e.message,\n }),\n \"error\"\n )\n );\n dispatch(closeAllModals());\n return;\n }\n\n const {\n explorer: { selected },\n navigator: { path },\n } = getState();\n\n // list files to download\n dispatch(openLoadingDialog(i18next.t(\"modals.listingFiles\")));\n\n let queue: CloudreveFile[] = [];\n try {\n queue = await walk(selected, share);\n } catch (e) {\n dispatch(\n toggleSnackbar(\n \"top\",\n \"right\",\n i18next.t(\"modals.listingFileError\", {\n message: e.message,\n }),\n \"warning\"\n )\n );\n dispatch(closeAllModals());\n return;\n }\n\n dispatch(closeAllModals());\n\n let failed = 0;\n let option: any;\n // preparation for downloading\n // get the files in the directory to compare with queue files\n // parent: \"\"\n const fsPaths = await getFileSystemDirectoryPaths(handle, \"\");\n\n // path: / or /abc (no sep suffix)\n // file.path: /abc/d (no sep suffix)\n // fsPaths: [\"abc/d/e.bin\",]\n const duplicates = queue\n .map((file) =>\n trimPrefix(\n `${file.path}/${file.name}`,\n path === \"/\" ? \"/\" : path + \"/\"\n )\n )\n .filter((path) => fsPaths.includes(path));\n\n // we should ask users for the duplication handle method\n if (duplicates.length > 0) {\n try {\n option = await dispatch(\n askForOption(\n [\n {\n key: \"replace\",\n name: i18next.t(\n \"fileManager.directoryDownloadReplace\"\n ),\n description: i18next.t(\n \"fileManager.directoryDownloadReplaceDescription\",\n {\n // display the first three duplications\n duplicates: duplicates\n .slice(\n 0,\n duplicates.length >= 3\n ? 3\n : duplicates.length\n )\n .join(\", \"),\n num: duplicates.length,\n }\n ),\n },\n {\n key: \"skip\",\n name: i18next.t(\n \"fileManager.directoryDownloadSkip\"\n ),\n description: i18next.t(\n \"fileManager.directoryDownloadSkipDescription\",\n {\n duplicates: duplicates\n .slice(\n 0,\n duplicates.length >= 3\n ? 3\n : duplicates.length\n )\n .join(\", \"),\n num: duplicates.length,\n }\n ),\n },\n ],\n i18next.t(\n \"fileManager.selectDirectoryDuplicationMethod\"\n )\n )\n );\n } catch (e) {\n return;\n }\n }\n dispatch(closeAllModals());\n\n // start the download\n dispatch(\n toggleSnackbar(\n \"top\",\n \"center\",\n i18next.t(\"fileManager.directoryDownloadStarted\"),\n \"info\"\n )\n );\n\n const updateLog = (log, done) => {\n dispatch(openDirectoryDownloadDialog(true, log, done));\n };\n let log = \"\";\n\n while (queue.length > 0) {\n const next = queue.pop();\n if (next && next.type === \"file\") {\n // donload url\n const previewPath = getPreviewPath(next);\n const url =\n getBaseURL() +\n (pathHelper.isSharePage(location.pathname)\n ? \"/share/preview/\" +\n share.key +\n (previewPath !== \"\" ? \"?path=\" + previewPath : \"\")\n : \"/file/preview/\" + next.id);\n\n // path to save this file\n // path: / or /abc (no sep suffix)\n // next.path: /abc/d (no sep suffix)\n // name: d/e.bin\n const name = trimPrefix(\n pathJoin([next.path, next.name]),\n path === \"/\" ? \"/\" : path + \"/\"\n );\n // TODO: improve the display of log\n // can we turn the upload queue component to the transition queue?\n // then we can easily cancel or retry the download\n // and the batch download queue can show as well.\n log =\n (log === \"\" ? \"\" : log + \"\\n\\n\") +\n i18next.t(\"modals.directoryDownloadStarted\", { name });\n updateLog(log, false);\n try {\n if (duplicates.includes(name)) {\n if (option.key === \"skip\") {\n log +=\n \"\\n\" +\n i18next.t(\n \"modals.directoryDownloadSkipNotifiction\",\n {\n name,\n }\n );\n updateLog(log, false);\n continue;\n } else {\n log +=\n \"\\n\" +\n i18next.t(\n \"modals.directoryDownloadReplaceNotifiction\",\n {\n name,\n }\n );\n updateLog(log, false);\n }\n }\n\n // TODO: need concurrent task queue?\n const res = await fetch(url, {\n cache: \"no-cache\",\n signal: directoryDownloadAbortController.signal,\n });\n await saveFileToFileSystemDirectory(\n handle,\n await res.blob(),\n name\n );\n log += \"\\n\" + i18next.t(\"modals.directoryDownloadFinished\");\n updateLog(log, false);\n } catch (e) {\n if (e.name === \"AbortError\") {\n dispatch(\n toggleSnackbar(\n \"top\",\n \"right\",\n i18next.t(\"modals.directoryDownloadCancelled\"),\n \"warning\"\n )\n );\n log +=\n \"\\n\\n\" +\n i18next.t(\"modals.directoryDownloadCancelled\");\n updateLog(log, true);\n return;\n }\n\n failed++;\n dispatch(\n toggleSnackbar(\n \"top\",\n \"right\",\n i18next.t(\n \"modals.directoryDownloadErrorNotification\",\n {\n name,\n msg: e && e.message,\n }\n ),\n \"warning\"\n )\n );\n log +=\n \"\\n\" +\n i18next.t(\"modals.directoryDownloadError\", {\n msg: e.message,\n });\n updateLog(log, false);\n }\n }\n }\n log +=\n \"\\n\" +\n (failed === 0\n ? i18next.t(\"fileManager.directoryDownloadFinished\")\n : i18next.t(\"fileManager.directoryDownloadFinishedWithError\", {\n failed,\n }));\n updateLog(log, true);\n\n dispatch(\n toggleSnackbar(\n \"top\",\n \"center\",\n failed === 0\n ? i18next.t(\"fileManager.directoryDownloadFinished\")\n : i18next.t(\n \"fileManager.directoryDownloadFinishedWithError\",\n {\n failed,\n }\n ),\n \"success\"\n )\n );\n };\n};\n\nexport const getViewerURL = (\n viewer: string,\n file: any,\n isShare: boolean | \"\"\n): string => {\n const previewPath = getPreviewPath(file);\n if (isShare) {\n return (\n \"/s/\" +\n file.key +\n `/${viewer}?name=` +\n encodeURIComponent(file.name) +\n \"&share_path=\" +\n previewPath\n );\n }\n\n return `/${viewer}?p=` + previewPath + \"&id=\" + file.id;\n};\n\nexport const openViewer = (\n viewer: string,\n file: any,\n isShare: boolean | \"\"\n) => {\n return (dispatch: any, getState: any) => {\n dispatch(push(getViewerURL(viewer, file, isShare)));\n };\n};\n\nexport const openPreview = (share: any) => {\n return (dispatch: any, getState: any) => {\n const {\n explorer: { selected },\n router: {\n location: { pathname },\n },\n } = getState();\n const isShare = pathHelper.isSharePage(pathname);\n if (isShare) {\n const user = Auth.GetUser();\n if (!Auth.Check() && user && !user.group.shareDownload) {\n dispatch(\n toggleSnackbar(\n \"top\",\n \"right\",\n i18next.t(\"share.pleaseLogin\"),\n \"warning\"\n )\n );\n dispatch(changeContextMenu(\"file\", false));\n return;\n }\n }\n\n dispatch(changeContextMenu(\"file\", false));\n switch (isPreviewable(selected[0].name)) {\n case \"img\":\n dispatch(showImgPreivew(selected[0]));\n return;\n case \"msDoc\":\n dispatch(openViewer(\"doc\", selected[0], isShare));\n return;\n case \"audio\":\n dispatch(showAudioPreview(selected[0]));\n return;\n case \"video\":\n dispatch(openViewer(\"video\", selected[0], isShare));\n return;\n case \"pdf\":\n dispatch(openViewer(\"pdf\", selected[0], isShare));\n return;\n case \"edit\":\n dispatch(openViewer(\"text\", selected[0], isShare));\n return;\n case \"code\":\n dispatch(openViewer(\"code\", selected[0], isShare));\n return;\n case \"epub\":\n dispatch(openViewer(\"epub\", selected[0], isShare));\n return;\n default:\n dispatch(startDownload(share, selected[0]));\n return;\n }\n };\n};\nexport const selectFile = (file: any, event: any, fileIndex: any) => {\n const { ctrlKey, metaKey, shiftKey } = event;\n return (dispatch: any, getState: any) => {\n // 多种组合操作忽略\n if (\n [ctrlKey, shiftKey].filter(Boolean).length > 1 ||\n [metaKey, shiftKey].filter(Boolean).length > 1\n ) {\n return;\n }\n const isMacbook = isMac();\n const { explorer } = getState();\n const { selected, lastSelect, dirList, fileList, shiftSelectedIds } =\n explorer;\n if (shiftKey && !ctrlKey && !metaKey && selected.length !== 0) {\n // shift 多选\n // 取消原有选择\n dispatch(removeSelectedTargets(selected.map((v: any) => v.id)));\n const all = [...dirList, ...fileList];\n // 添加新选择\n const begin = Math.min(lastSelect.index, fileIndex);\n const end = Math.max(lastSelect.index, fileIndex);\n const list = file.type === \"dir\" ? dirList : fileList;\n const newShiftSelected = all.slice(begin, end + 1);\n return dispatch(addSelectedTargets(newShiftSelected));\n }\n dispatch(setLastSelect(file, fileIndex));\n dispatch(setShiftSelectedIds([]));\n if ((ctrlKey && !isMacbook) || (metaKey && isMacbook)) {\n // Ctrl/Command 单击添加/删除\n const presentIndex = selected.findIndex((value: any) => {\n return value.id === file.id;\n });\n if (presentIndex !== -1) {\n return dispatch(removeSelectedTargets([file.id]));\n }\n return dispatch(addSelectedTargets([file]));\n }\n // 单选\n return dispatch(setSelectedTarget([file]));\n };\n};\n\nexport const submitCompressTask = (fileName: string, path: string) => {\n return async (dispatch: any, getState: any) => {\n const {\n explorer: { selected },\n } = getState();\n const dirs: string[] = [],\n items: string[] = [];\n // eslint-disable-next-line\n selected.map((value) => {\n if (value.type === \"dir\") {\n dirs.push(value.id);\n } else {\n items.push(value.id);\n }\n });\n\n return await API.post(\"/file/compress\", {\n src: {\n dirs: dirs,\n items: items,\n },\n name: fileName,\n dst: path === \"//\" ? \"/\" : path,\n });\n };\n};\n\nconst encodings = [\n \"ibm866\",\n \"iso8859_2\",\n \"iso8859_3\",\n \"iso8859_4\",\n \"iso8859_5\",\n \"iso8859_6\",\n \"iso8859_7\",\n \"iso8859_8\",\n \"iso8859_8I\",\n \"iso8859_10\",\n \"iso8859_13\",\n \"iso8859_14\",\n \"iso8859_15\",\n \"iso8859_16\",\n \"koi8r\",\n \"koi8u\",\n \"macintosh\",\n \"windows874\",\n \"windows1250\",\n \"windows1251\",\n \"windows1252\",\n \"windows1253\",\n \"windows1254\",\n \"windows1255\",\n \"windows1256\",\n \"windows1257\",\n \"windows1258\",\n \"macintoshcyrillic\",\n \"gbk\",\n \"big5\",\n \"eucjp\",\n \"iso2022jp\",\n \"shiftjis\",\n \"euckr\",\n \"utf16be\",\n \"utf16le\",\n];\n\nexport const submitDecompressTask = (path: string) => {\n return async (dispatch: any, getState: any) => {\n const {\n explorer: { selected },\n } = getState();\n\n let encoding = \"\";\n if (selected.length > 0 && encodingRequired(selected[0].name)) {\n let option: any;\n try {\n const allOptions = encodings.map((e) => {\n return {\n key: e,\n name: e.toUpperCase(),\n };\n });\n option = await dispatch(\n askForOption(\n [\n {\n key: \"\",\n name: i18next.t(\"modals.defaultEncoding\"),\n },\n {\n key: \"gb18030\",\n name: \"GB18030\",\n description: i18next.t(\n \"modals.chineseMajorEncoding\"\n ),\n },\n ...allOptions,\n ],\n i18next.t(\"modals.selectEncoding\")\n )\n );\n } catch (e) {\n throw new Error(i18next.t(\"modals.noEncodingSelected\"));\n }\n\n encoding = option.key;\n }\n\n return await API.post(\"/file/decompress\", {\n src: filePath(selected[0]),\n dst: path === \"//\" ? \"/\" : path,\n encoding: encoding,\n });\n };\n};\n\nexport const batchGetSource = (): ThunkAction => {\n return async (dispatch, getState): Promise => {\n const {\n explorer: { selected },\n router: {\n location: { pathname },\n },\n } = getState();\n\n if (selected.findIndex((f) => f.type === \"dir\") >= 0) {\n dispatch(openLoadingDialog(i18next.t(\"modals.listingFiles\")));\n }\n\n let queue: CloudreveFile[] = [];\n try {\n queue = await walk(selected, null);\n } catch (e) {\n dispatch(\n toggleSnackbar(\n \"top\",\n \"right\",\n i18next.t(\"modals.listingFileError\", {\n message: e.message,\n }),\n \"warning\"\n )\n );\n dispatch(closeAllModals());\n return;\n }\n\n dispatch(openLoadingDialog(i18next.t(\"modals.generatingSourceLinks\")));\n\n const items = queue\n .filter((value) => value.source_enabled && value.type === \"file\")\n .map((v) => v.id);\n\n if (items.length === 0) {\n dispatch(\n toggleSnackbar(\n \"top\",\n \"right\",\n i18next.t(\"modals.noFileCanGenerateSourceLink\"),\n \"warning\"\n )\n );\n dispatch(closeAllModals());\n return;\n }\n\n const user = Auth.GetUser();\n if (items.length > user.group.sourceBatch) {\n dispatch(\n toggleSnackbar(\n \"top\",\n \"right\",\n i18next.t(\"modals.sourceBatchSizeExceeded\", {\n limit: user.group.sourceBatch,\n }),\n \"warning\"\n )\n );\n dispatch(closeAllModals());\n return;\n }\n\n API.post(\"/file/source\", { items: items })\n .then((response) => {\n dispatch(closeAllModals());\n if (response.data.length == 1 && response.data[0].error) {\n dispatch(\n toggleSnackbar(\n \"top\",\n \"right\",\n response.data[0].error,\n \"warning\"\n )\n );\n return;\n }\n\n dispatch(\n openGetSourceDialog(\n response.data.length == 1\n ? response.data[0].url\n : response.data\n .map(\n (res) =>\n `${res.name}: ${res.url}${\n res.error ? res.error : \"\"\n }`\n )\n .join(\"\\n\")\n )\n );\n })\n .catch((error) => {\n dispatch(\n toggleSnackbar(\"top\", \"right\", error.message, \"warning\")\n );\n dispatch(closeAllModals());\n });\n };\n};\n\nexport const openTorrentDownload = (): ThunkAction => {\n return (dispatch, getState): void => {\n const {\n explorer: { selected },\n } = getState();\n dispatch(openTorrentDownloadDialog(selected[0]));\n };\n};\n\nexport const openParentFolder = (): ThunkAction => {\n return async (dispatch, getState): Promise => {\n const {\n explorer: { selected },\n } = getState();\n\n dispatch(openLoadingDialog(i18next.t(\"modals.processing\")));\n API.get(\n \"/object/property/\" +\n selected[0].id +\n \"?trace_root=true&is_folder=\" +\n (selected[0].type === \"dir\").toString()\n )\n .then((response) => {\n const path =\n response.data.path === \"\"\n ? selected[0].path\n : response.data.path;\n dispatch(navigateTo(path));\n dispatch(closeAllModals());\n })\n .catch((error) => {\n dispatch(\n toggleSnackbar(\"top\", \"right\", error.message, \"warning\")\n );\n dispatch(closeAllModals());\n });\n };\n};\n","import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport SearchIcon from \"@material-ui/icons/Search\";\nimport { fade } from \"@material-ui/core/styles/colorManipulator\";\nimport FileIcon from \"@material-ui/icons/InsertDriveFile\";\nimport ShareIcon from \"@material-ui/icons/Share\";\nimport { connect } from \"react-redux\";\n\nimport {\n Fade,\n InputBase,\n ListItemIcon,\n ListItemText,\n MenuItem,\n Paper,\n Popper,\n Typography,\n withStyles,\n} from \"@material-ui/core\";\nimport { withRouter } from \"react-router\";\nimport pathHelper from \"../../utils/page\";\nimport { configure, HotKeys } from \"react-hotkeys\";\nimport { searchMyFile } from \"../../redux/explorer\";\nimport FolderIcon from \"@material-ui/icons/Folder\";\nimport { Trans, withTranslation } from \"react-i18next\";\n\nconfigure({\n ignoreTags: [],\n});\n\nconst mapStateToProps = (state) => {\n return {\n path: state.navigator.path,\n search: state.explorer.search,\n };\n};\n\nconst mapDispatchToProps = (dispatch) => {\n return {\n searchMyFile: (keywords, path) => {\n dispatch(searchMyFile(keywords, path));\n },\n };\n};\n\nconst styles = (theme) => ({\n search: {\n [theme.breakpoints.down(\"sm\")]: {\n display: \"none\",\n },\n position: \"relative\",\n borderRadius: theme.shape.borderRadius,\n backgroundColor: fade(theme.palette.common.white, 0.15),\n \"&:hover\": {\n backgroundColor: fade(theme.palette.common.white, 0.25),\n },\n marginRight: theme.spacing(2),\n marginLeft: 0,\n width: \"100%\",\n [theme.breakpoints.up(\"sm\")]: {\n marginLeft: theme.spacing(7.2),\n width: \"auto\",\n },\n },\n searchIcon: {\n width: theme.spacing(9),\n height: \"100%\",\n position: \"absolute\",\n pointerEvents: \"none\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n },\n inputRoot: {\n color: \"inherit\",\n width: \"100%\",\n },\n inputInput: {\n paddingTop: theme.spacing(1),\n paddingRight: theme.spacing(1),\n paddingBottom: theme.spacing(1),\n paddingLeft: theme.spacing(7),\n transition: theme.transitions.create(\"width\"),\n width: \"100%\",\n [theme.breakpoints.up(\"md\")]: {\n width: 200,\n \"&:focus\": {\n width: 300,\n },\n },\n },\n suggestBox: {\n zIndex: \"9999\",\n width: 364,\n },\n});\n\nconst keyMap = {\n SEARCH: \"enter\",\n};\n\nclass SearchBarCompoment extends Component {\n constructor(props) {\n super(props);\n this.state = {\n anchorEl: null,\n input: \"\",\n };\n }\n\n handlers = {\n SEARCH: (e) => {\n if (pathHelper.isHomePage(this.props.location.pathname)) {\n this.searchMyFile(\"\")();\n } else {\n this.searchShare();\n }\n e.target.blur();\n },\n };\n\n handleChange = (event) => {\n const { currentTarget } = event;\n this.input = event.target.value;\n this.setState({\n anchorEl: currentTarget,\n input: event.target.value,\n });\n };\n\n cancelSuggest = () => {\n this.setState({\n input: \"\",\n });\n };\n\n searchMyFile = (path) => () => {\n this.props.searchMyFile(\"keywords/\" + this.input, path);\n };\n\n searchShare = () => {\n this.props.history.push(\n \"/search?keywords=\" + encodeURIComponent(this.input)\n );\n };\n\n render() {\n const { classes, t } = this.props;\n const { anchorEl } = this.state;\n const id = this.state.input !== \"\" ? \"simple-popper\" : null;\n const isHomePage = pathHelper.isHomePage(this.props.location.pathname);\n\n return (\n
\n
\n \n
\n \n \n \n \n {({ TransitionProps }) => (\n \n \n {isHomePage && (\n \n \n \n \n \n ,\n ]}\n />\n \n }\n />\n \n )}\n\n {isHomePage &&\n this.props.path !== \"/\" &&\n !this.props.search && (\n \n \n \n \n \n ,\n ]}\n />\n \n }\n />\n \n )}\n\n \n \n \n \n \n ,\n ]}\n />\n \n }\n />\n \n \n \n )}\n \n
\n );\n }\n}\n\nSearchBarCompoment.propTypes = {\n classes: PropTypes.object.isRequired,\n};\n\nconst SearchBar = connect(\n mapStateToProps,\n mapDispatchToProps\n)(withStyles(styles)(withRouter(withTranslation()(SearchBarCompoment))));\n\nexport default SearchBar;\n","import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport StorageIcon from \"@material-ui/icons/Storage\";\nimport { connect } from \"react-redux\";\nimport API from \"../../middleware/Api\";\nimport { sizeToString } from \"../../utils\";\n\nimport {\n Divider,\n LinearProgress,\n Tooltip,\n Typography,\n withStyles,\n} from \"@material-ui/core\";\nimport ButtonBase from \"@material-ui/core/ButtonBase\";\nimport Link from \"@material-ui/core/Link\";\nimport { withRouter } from \"react-router\";\nimport { toggleSnackbar } from \"../../redux/explorer\";\nimport { Link as RouterLink } from \"react-router-dom\";\nimport { withTranslation } from \"react-i18next\";\n\nconst mapStateToProps = (state) => {\n return {\n refresh: state.viewUpdate.storageRefresh,\n isLogin: state.viewUpdate.isLogin,\n };\n};\n\nconst mapDispatchToProps = (dispatch) => {\n return {\n toggleSnackbar: (vertical, horizontal, msg, color) => {\n dispatch(toggleSnackbar(vertical, horizontal, msg, color));\n },\n };\n};\n\nconst styles = (theme) => ({\n iconFix: {\n marginLeft: \"32px\",\n marginRight: \"17px\",\n color: theme.palette.text.secondary,\n marginTop: \"2px\",\n },\n textFix: {\n padding: \" 0 0 0 16px\",\n },\n storageContainer: {\n display: \"flex\",\n marginTop: \"15px\",\n textAlign: \"left\",\n marginBottom: \"11px\",\n },\n detail: {\n width: \"100%\",\n marginRight: \"35px\",\n },\n info: {\n width: \"131px\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n [theme.breakpoints.down(\"xs\")]: {\n width: \"162px\",\n },\n marginTop: \"5px\",\n },\n bar: {\n marginTop: \"5px\",\n },\n stickFooter: {\n backgroundColor: theme.palette.background.paper,\n },\n});\n\n// TODO 使用 hooks 重构\nclass StorageBarCompoment extends Component {\n state = {\n percent: 0,\n used: null,\n total: null,\n showExpand: false,\n };\n\n firstLoad = true;\n\n componentDidMount = () => {\n if (this.firstLoad && this.props.isLogin) {\n this.firstLoad = !this.firstLoad;\n this.updateStatus();\n }\n };\n\n componentWillUnmount() {\n this.firstLoad = false;\n }\n\n UNSAFE_componentWillReceiveProps = (nextProps) => {\n if (\n (this.props.isLogin && this.props.refresh !== nextProps.refresh) ||\n (this.props.isLogin !== nextProps.isLogin && nextProps.isLogin)\n ) {\n this.updateStatus();\n }\n };\n\n updateStatus = () => {\n let percent = 0;\n API.get(\"/user/storage\")\n .then((response) => {\n if (response.data.used / response.data.total >= 1) {\n percent = 100;\n this.props.toggleSnackbar(\n \"top\",\n \"right\",\n this.props.t(\"vas.exceedQuota\"),\n \"warning\"\n );\n } else {\n percent = (response.data.used / response.data.total) * 100;\n }\n this.setState({\n percent: percent,\n used: sizeToString(response.data.used),\n total: sizeToString(response.data.total),\n });\n })\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n .catch(() => {});\n };\n\n render() {\n const { classes, t } = this.props;\n return (\n this.setState({ showExpand: true })}\n onMouseLeave={() => this.setState({ showExpand: false })}\n className={classes.stickFooter}\n >\n \n this.props.history.push(\"/quota\")}>\n
\n \n
\n \n {t(\"navbar.storage\") + \" \"}\n {this.state.showExpand && (\n \n {t(\"vas.extendStorage\")}\n \n )}\n \n\n \n
\n \n \n {this.state.used === null\n ? \" -- \"\n : this.state.used}\n {\" / \"}\n {this.state.total === null\n ? \" -- \"\n : this.state.total}\n \n \n
\n
\n
\n
\n
\n );\n }\n}\n\nStorageBarCompoment.propTypes = {\n classes: PropTypes.object.isRequired,\n};\n\nconst StorageBar = connect(\n mapStateToProps,\n mapDispatchToProps\n)(withStyles(styles)(withRouter(withTranslation()(StorageBarCompoment))));\n\nexport default StorageBar;\n","import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { connect } from \"react-redux\";\nimport { Typography, withStyles } from \"@material-ui/core\";\nimport Auth from \"../../middleware/Auth\";\nimport DarkModeSwitcher from \"./DarkModeSwitcher\";\nimport Avatar from \"@material-ui/core/Avatar\";\nimport { setUserPopover } from \"../../redux/explorer\";\nimport { withTranslation } from \"react-i18next\";\n\nconst mapStateToProps = (state) => {\n return {\n isLogin: state.viewUpdate.isLogin,\n };\n};\n\nconst mapDispatchToProps = (dispatch) => {\n return {\n setUserPopover: (anchor) => {\n dispatch(setUserPopover(anchor));\n },\n };\n};\n\nconst styles = (theme) => ({\n userNav: {\n height: \"170px\",\n backgroundColor: theme.palette.primary.main,\n padding: \"20px 20px 2em\",\n backgroundImage:\n \"url(\\\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cpolygon fill='\" +\n theme.palette.primary.light.replace(\"#\", \"%23\") +\n \"' points='957 450 539 900 1396 900'/%3E%3Cpolygon fill='\" +\n theme.palette.primary.dark.replace(\"#\", \"%23\") +\n \"' points='957 450 872.9 900 1396 900'/%3E%3Cpolygon fill='\" +\n theme.palette.secondary.main.replace(\"#\", \"%23\") +\n \"' points='-60 900 398 662 816 900'/%3E%3Cpolygon fill='\" +\n theme.palette.secondary.dark.replace(\"#\", \"%23\") +\n \"' points='337 900 398 662 816 900'/%3E%3Cpolygon fill='\" +\n theme.palette.secondary.light.replace(\"#\", \"%23\") +\n \"' points='1203 546 1552 900 876 900'/%3E%3Cpolygon fill='\" +\n theme.palette.secondary.main.replace(\"#\", \"%23\") +\n \"' points='1203 546 1552 900 1162 900'/%3E%3Cpolygon fill='\" +\n theme.palette.primary.dark.replace(\"#\", \"%23\") +\n \"' points='641 695 886 900 367 900'/%3E%3Cpolygon fill='\" +\n theme.palette.primary.main.replace(\"#\", \"%23\") +\n \"' points='587 900 641 695 886 900'/%3E%3Cpolygon fill='\" +\n theme.palette.secondary.light.replace(\"#\", \"%23\") +\n \"' points='1710 900 1401 632 1096 900'/%3E%3Cpolygon fill='\" +\n theme.palette.secondary.dark.replace(\"#\", \"%23\") +\n \"' points='1710 900 1401 632 1365 900'/%3E%3Cpolygon fill='\" +\n theme.palette.secondary.main.replace(\"#\", \"%23\") +\n \"' points='1210 900 971 687 725 900'/%3E%3Cpolygon fill='\" +\n theme.palette.secondary.dark.replace(\"#\", \"%23\") +\n \"' points='943 900 1210 900 971 687'/%3E%3C/svg%3E\\\")\",\n backgroundSize: \"cover\",\n },\n avatar: {\n display: \"block\",\n width: \"70px\",\n height: \"70px\",\n border: \" 2px solid #fff\",\n borderRadius: \"50%\",\n overflow: \"hidden\",\n boxShadow:\n \"0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12)\",\n },\n avatarImg: {\n width: \"66px\",\n height: \"66px\",\n },\n nickName: {\n color: \"#fff\",\n marginTop: \"15px\",\n fontSize: \"17px\",\n },\n flexAvatar: {\n display: \"flex\",\n justifyContent: \"space-between\",\n alignItems: \"flex-start\",\n },\n groupName: {\n color: \"#ffffff\",\n opacity: \"0.54\",\n },\n storageCircle: {\n width: \"200px\",\n },\n});\n\nclass UserInfoCompoment extends Component {\n showUserInfo = (e) => {\n this.props.setUserPopover(e.currentTarget);\n };\n\n render() {\n const { classes, t } = this.props;\n const isLogin = Auth.Check(this.props.isLogin);\n const user = Auth.GetUser(this.props.isLogin);\n\n return (\n
\n
\n {/* eslint-disable-next-line */}\n \n {isLogin && (\n \n )}\n {!isLogin && (\n \n )}\n \n \n
\n
\n \n {isLogin ? user.nickname : t(\"navbar.notLoginIn\")}\n \n \n {isLogin ? user.group.name : t(\"navbar.visitor\")}\n \n
\n
\n );\n }\n}\n\nUserInfoCompoment.propTypes = {\n classes: PropTypes.object.isRequired,\n};\n\nconst UserInfo = connect(\n mapStateToProps,\n mapDispatchToProps\n)(withStyles(styles)(withTranslation()(UserInfoCompoment)));\n\nexport default UserInfo;\n","import React, { Suspense, useCallback, useState } from \"react\";\nimport {\n Divider,\n List,\n ListItemIcon,\n ListItemText,\n makeStyles,\n withStyles,\n} from \"@material-ui/core\";\nimport { Clear, KeyboardArrowRight } from \"@material-ui/icons\";\nimport classNames from \"classnames\";\nimport FolderShared from \"@material-ui/icons/FolderShared\";\nimport UploadIcon from \"@material-ui/icons/CloudUpload\";\nimport VideoIcon from \"@material-ui/icons/VideoLibraryOutlined\";\nimport ImageIcon from \"@material-ui/icons/CollectionsOutlined\";\nimport MusicIcon from \"@material-ui/icons/LibraryMusicOutlined\";\nimport DocIcon from \"@material-ui/icons/FileCopyOutlined\";\nimport { useHistory, useLocation } from \"react-router\";\nimport pathHelper from \"../../utils/page\";\nimport MuiExpansionPanel from \"@material-ui/core/ExpansionPanel\";\nimport MuiExpansionPanelSummary from \"@material-ui/core/ExpansionPanelSummary\";\nimport MuiExpansionPanelDetails from \"@material-ui/core/ExpansionPanelDetails\";\nimport MuiListItem from \"@material-ui/core/ListItem\";\nimport { useDispatch } from \"react-redux\";\nimport Auth from \"../../middleware/Auth\";\nimport {\n Circle,\n CircleOutline,\n FolderHeartOutline,\n Heart,\n HeartOutline,\n Hexagon,\n HexagonOutline,\n Hexagram,\n HexagramOutline,\n Rhombus,\n RhombusOutline,\n Square,\n SquareOutline,\n TagPlus,\n Triangle,\n TriangleOutline,\n} from \"mdi-material-ui\";\nimport ListItemSecondaryAction from \"@material-ui/core/ListItemSecondaryAction\";\nimport IconButton from \"@material-ui/core/IconButton\";\nimport API from \"../../middleware/Api\";\nimport { navigateTo, searchMyFile, toggleSnackbar } from \"../../redux/explorer\";\nimport { useTranslation } from \"react-i18next\";\n\nconst ListItem = withStyles((theme) => ({\n root: {\n borderRadius:theme.shape.borderRadius,\n },\n}))(MuiListItem);\n\nconst ExpansionPanel = withStyles({\n root: {\n maxWidth: \"100%\",\n boxShadow: \"none\",\n \"&:not(:last-child)\": {\n borderBottom: 0,\n },\n \"&:before\": {\n display: \"none\",\n },\n \"&$expanded\": { margin: 0 },\n },\n expanded: {},\n})(MuiExpansionPanel);\n\nconst ExpansionPanelSummary = withStyles((theme) =>({\n root: {\n minHeight: 0,\n padding: 0,\n \"&$expanded\": {\n minHeight: 0,\n },\n },\n content: {\n maxWidth: \"100%\",\n margin: 0,\n display: \"block\",\n \"&$expanded\": {\n margin: \"0\",\n },\n },\n expanded: {},\n}))(MuiExpansionPanelSummary);\n\nconst ExpansionPanelDetails = withStyles((theme) => ({\n root: {\n display: \"block\",\n padding: theme.spacing(0),\n },\n}))(MuiExpansionPanelDetails);\n\nconst useStyles = makeStyles((theme) => ({\n expand: {\n display: \"none\",\n transition: \".15s all ease-in-out\",\n },\n expanded: {\n display: \"block\",\n transform: \"rotate(90deg)\",\n },\n iconFix: {\n marginLeft: \"16px\",\n },\n hiddenButton: {\n display: \"none\",\n },\n subMenu: {\n marginLeft: theme.spacing(2),\n },\n overFlow: {\n whiteSpace: \"nowrap\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n },\n paddingList:{\n padding:theme.spacing(1),\n },\n paddingSummary:{\n paddingLeft:theme.spacing(1),\n paddingRight:theme.spacing(1),\n }\n}));\n\nconst icons = {\n Circle: Circle,\n CircleOutline: CircleOutline,\n Heart: Heart,\n HeartOutline: HeartOutline,\n Hexagon: Hexagon,\n HexagonOutline: HexagonOutline,\n Hexagram: Hexagram,\n HexagramOutline: HexagramOutline,\n Rhombus: Rhombus,\n RhombusOutline: RhombusOutline,\n Square: Square,\n SquareOutline: SquareOutline,\n Triangle: Triangle,\n TriangleOutline: TriangleOutline,\n FolderHeartOutline: FolderHeartOutline,\n};\n\nconst AddTag = React.lazy(() => import(\"../Modals/AddTag\"));\n\nexport default function FileTag() {\n const classes = useStyles();\n const { t } = useTranslation();\n\n const location = useLocation();\n const history = useHistory();\n\n const isHomePage = pathHelper.isHomePage(location.pathname);\n\n const [tagOpen, setTagOpen] = useState(true);\n const [addTagModal, setAddTagModal] = useState(false);\n const [tagHover, setTagHover] = useState(null);\n const [tags, setTags] = useState(\n Auth.GetUser().tags ? Auth.GetUser().tags : []\n );\n\n const dispatch = useDispatch();\n const SearchMyFile = useCallback((k, p) => dispatch(searchMyFile(k, p)), [\n dispatch,\n ]);\n const NavigateTo = useCallback((k) => dispatch(navigateTo(k)), [dispatch]);\n\n const ToggleSnackbar = useCallback(\n (vertical, horizontal, msg, color) =>\n dispatch(toggleSnackbar(vertical, horizontal, msg, color)),\n [dispatch]\n );\n\n const getIcon = (icon, color) => {\n if (icons[icon]) {\n const IconComponent = icons[icon];\n return (\n \n );\n }\n return ;\n };\n\n const submitSuccess = (tag) => {\n const newTags = [...tags, tag];\n setTags(newTags);\n const user = Auth.GetUser();\n user.tags = newTags;\n Auth.SetUser(user);\n };\n\n const submitDelete = (id) => {\n API.delete(\"/tag/\" + id)\n .then(() => {\n const newTags = tags.filter((v) => {\n return v.id !== id;\n });\n setTags(newTags);\n const user = Auth.GetUser();\n user.tags = newTags;\n Auth.SetUser(user);\n })\n .catch((error) => {\n ToggleSnackbar(\"top\", \"right\", error.message, \"error\");\n });\n };\n\n return (\n <>\n \n setAddTagModal(false)}\n />\n \n isHomePage && setTagOpen(!tagOpen)}\n >\n \n
\n \n !isHomePage && history.push(\"/home?path=%2F\")\n }\n >\n \n \n {!(tagOpen && isHomePage) && (\n \n )}\n \n \n \n
\n\n \n \n\n \n setTagHover(null)}>\n \n \n \n \n \n \n \n \n \n \n \n \n {[\n {\n key: t(\"navbar.videos\"),\n id: \"video\",\n icon: (\n \n ),\n },\n {\n key: t(\"navbar.photos\"),\n id: \"image\",\n icon: (\n \n ),\n },\n {\n key: t(\"navbar.music\"),\n id: \"audio\",\n icon: (\n \n ),\n },\n {\n key: t(\"navbar.documents\"),\n id: \"doc\",\n icon: (\n \n ),\n },\n ].map((v) => (\n \n SearchMyFile(v.id + \"/internal\", \"\")\n }\n >\n \n {v.icon}\n \n \n \n ))}\n {tags.map((v) => (\n setTagHover(v.id)}\n onClick={() => {\n if (v.type === 0) {\n SearchMyFile(\"tag/\" + v.id, \"\");\n } else {\n NavigateTo(v.expression);\n }\n }}\n >\n \n {getIcon(\n v.type === 0\n ? v.icon\n : \"FolderHeartOutline\",\n v.type === 0 ? v.color : null\n )}\n \n \n\n {tagHover === v.id && (\n submitDelete(v.id)}\n >\n \n \n \n \n )}\n \n ))}\n\n setAddTagModal(true)}>\n \n \n \n \n \n {\" \"}\n \n \n \n \n );\n}\n","import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { connect } from \"react-redux\";\nimport { baseURL } from \"../../middleware/Api\";\nimport { imgPreviewSuffix } from \"../../config\";\nimport { withStyles } from \"@material-ui/core\";\nimport pathHelper from \"../../utils/page\";\nimport { withRouter } from \"react-router\";\nimport { PhotoSlider } from \"react-photo-view\";\nimport \"react-photo-view/dist/index.css\";\nimport * as explorer from \"../../redux/explorer/reducer\";\nimport { showImgPreivew } from \"../../redux/explorer\";\n\nconst styles = () => ({});\n\nconst mapStateToProps = (state) => {\n return {\n first: state.explorer.imgPreview.first,\n other: state.explorer.imgPreview.other,\n };\n};\n\nconst mapDispatchToProps = (dispatch) => {\n return {\n showImgPreivew: (first) => {\n dispatch(showImgPreivew(first));\n },\n };\n};\n\nclass ImagPreviewComponent extends Component {\n state = {\n items: [],\n photoIndex: 0,\n isOpen: false,\n };\n\n UNSAFE_componentWillReceiveProps = (nextProps) => {\n const items = [];\n let firstOne = 0;\n if (nextProps.first.id !== \"\") {\n if (\n pathHelper.isSharePage(this.props.location.pathname) &&\n !nextProps.first.path\n ) {\n const newImg = {\n intro: nextProps.first.name,\n src: baseURL + \"/share/preview/\" + nextProps.first.key,\n };\n firstOne = 0;\n items.push(newImg);\n this.setState({\n photoIndex: firstOne,\n items: items,\n isOpen: true,\n });\n return;\n }\n // eslint-disable-next-line\n nextProps.other.map((value) => {\n const fileType = value.name.split(\".\").pop().toLowerCase();\n if (imgPreviewSuffix.indexOf(fileType) !== -1) {\n let src = \"\";\n if (pathHelper.isSharePage(this.props.location.pathname)) {\n src = baseURL + \"/share/preview/\" + value.key;\n src =\n src +\n \"?path=\" +\n encodeURIComponent(\n value.path === \"/\"\n ? value.path + value.name\n : value.path + \"/\" + value.name\n );\n } else {\n src = baseURL + \"/file/preview/\" + value.id;\n }\n const newImg = {\n intro: value.name,\n src: src,\n };\n if (\n value.path === nextProps.first.path &&\n value.name === nextProps.first.name\n ) {\n firstOne = items.length;\n }\n items.push(newImg);\n }\n });\n this.setState({\n photoIndex: firstOne,\n items: items,\n isOpen: true,\n });\n }\n };\n\n handleClose = () => {\n this.props.showImgPreivew(explorer.initState.imgPreview.first);\n this.setState({\n isOpen: false,\n });\n };\n\n render() {\n const { photoIndex, isOpen, items } = this.state;\n\n return (\n
\n {isOpen && (\n this.handleClose()}\n index={photoIndex}\n onIndexChange={(n) =>\n this.setState({\n photoIndex: n,\n })\n }\n />\n )}\n
\n );\n }\n}\n\nImagPreviewComponent.propTypes = {\n classes: PropTypes.object.isRequired,\n};\n\nconst ImgPreivew = connect(\n mapStateToProps,\n mapDispatchToProps\n)(withStyles(styles)(withRouter(ImagPreviewComponent)));\n\nexport default ImgPreivew;\n","import i18next from \"./i18n\";\n\nexport const imgPreviewSuffix = [\n \"bmp\",\n \"png\",\n \"gif\",\n \"jpg\",\n \"jpeg\",\n \"svg\",\n \"webp\",\n];\nexport let msDocPreviewSuffix = [\n \"ppt\",\n \"pptx\",\n \"pps\",\n \"doc\",\n \"docx\",\n \"xlsx\",\n \"xls\",\n];\nexport const subtitleSuffix = [\"ass\", \"srt\", \"vrr\"];\nexport const audioPreviewSuffix = [\"mp3\", \"ogg\", \"wav\", \"flac\", \"m4a\"];\nexport const videoPreviewSuffix = [\"mp4\", \"mkv\", \"webm\", \"avi\", \"m3u8\", \"mov\"];\nexport const pdfPreviewSuffix = [\"pdf\"];\nexport const editSuffix = [\"md\", \"txt\"];\nexport const epubSuffix = [\"epub\"];\nexport const codePreviewSuffix = {\n json: \"json\",\n php: \"php\",\n py: \"python\",\n bat: \"bat\",\n cpp: \"cpp\",\n c: \"cpp\",\n h: \"cpp\",\n cs: \"csharp\",\n css: \"css\",\n dockerfile: \"dockerfile\",\n go: \"go\",\n html: \"html\",\n ini: \"ini\",\n java: \"java\",\n js: \"javascript\",\n jsx: \"javascript\",\n less: \"less\",\n lua: \"lua\",\n sh: \"shell\",\n sql: \"sql\",\n xml: \"xml\",\n yaml: \"yaml\",\n};\nexport const mediaType = {\n audio: [\"mp3\", \"flac\", \"ape\", \"wav\", \"acc\", \"ogg\", \"m4a\"],\n video: [\"mp4\", \"flv\", \"avi\", \"wmv\", \"mkv\", \"rm\", \"rmvb\", \"mov\", \"ogv\"],\n image: [\n \"bmp\",\n \"iff\",\n \"png\",\n \"gif\",\n \"jpg\",\n \"jpeg\",\n \"psd\",\n \"svg\",\n \"webp\",\n \"heif\",\n \"heic\",\n \"tiff\",\n \"avif\",\n ],\n pdf: [\"pdf\"],\n word: [\"doc\", \"docx\"],\n ppt: [\"ppt\", \"pptx\"],\n excel: [\"xls\", \"xlsx\", \"csv\"],\n text: [\"txt\", \"md\", \"html\"],\n torrent: [\"torrent\"],\n zip: [\"zip\", \"gz\", \"xz\", \"tar\", \"rar\", \"7z\"],\n excute: [\"exe\"],\n android: [\"apk\"],\n php: [\"php\"],\n go: [\"go\"],\n python: [\"py\"],\n cpp: [\"cpp\"],\n c: [\"c\"],\n js: [\"js\", \"jsx\"],\n epub: epubSuffix,\n};\nexport const isPreviewable = (name: any) => {\n const suffix = name.split(\".\").pop().toLowerCase();\n if (imgPreviewSuffix.indexOf(suffix) !== -1) {\n return \"img\";\n } else if (msDocPreviewSuffix.indexOf(suffix) !== -1) {\n return \"msDoc\";\n } else if (audioPreviewSuffix.indexOf(suffix) !== -1) {\n return \"audio\";\n } else if (videoPreviewSuffix.indexOf(suffix) !== -1) {\n return \"video\";\n } else if (editSuffix.indexOf(suffix) !== -1) {\n return \"edit\";\n } else if (pdfPreviewSuffix.indexOf(suffix) !== -1) {\n return \"pdf\";\n } else if (Object.keys(codePreviewSuffix).indexOf(suffix) !== -1) {\n return \"code\";\n } else if (epubSuffix.indexOf(suffix) !== -1) {\n return \"epub\";\n }\n return false;\n};\nexport const isTorrent = (name: any) => {\n const suffix = name.split(\".\").pop().toLowerCase();\n if (mediaType.torrent.indexOf(suffix) !== -1) {\n return true;\n }\n return false;\n};\n\nexport const isCompressFile = (name: any) => {\n const suffix = name.split(\".\").pop().toLowerCase();\n return suffix !== \"7z\" && mediaType[\"zip\"].indexOf(suffix) !== -1;\n};\n\nexport const encodingRequired = (name: any) => {\n const suffix = name.split(\".\").pop().toLowerCase();\n return suffix === \"zip\";\n};\n\nconst taskStatus = [\n \"setting.queueing\",\n \"setting.processing\",\n \"setting.failed\",\n \"setting.canceled\",\n \"setting.finished\",\n];\nconst taskType = [\n \"fileManager.compress\",\n \"fileManager.decompress\",\n \"setting.fileTransfer\",\n \"setting.importFiles\",\n \"vas.migrateStoragePolicy\",\n \"setting.fileRecycle\",\n];\nconst taskProgress = [\n \"setting.waiting\",\n \"setting.compressing\",\n \"setting.decompressing\",\n \"setting.downloading\",\n \"setting.transferring\",\n \"setting.indexing\",\n \"setting.listing\",\n];\n\nexport const getTaskStatus = (status: any) => {\n return i18next.t(taskStatus[status]);\n};\n\nexport const getTaskType = (status: any) => {\n return i18next.t(taskType[status]);\n};\n\nexport const getTaskProgress = (type: any, status: any) => {\n if (type === 2) {\n return i18next.t(\"setting.transferProgress\", {\n num: status,\n });\n }\n return i18next.t(taskProgress[status]);\n};\n\nexport const reportReasons = [\n \"vas.nsfw\",\n \"vas.malware\",\n \"vas.copyright\",\n \"vas.inappropriateStatements\",\n \"vas.other\",\n];\n\nexport const setWopiExts = (exts: string[]) => {\n msDocPreviewSuffix = exts;\n};\n","import { ChunkProgress } from \"./uploader/chunk\";\n\nexport enum PolicyType {\n local = \"local\",\n remote = \"remote\",\n oss = \"oss\",\n qiniu = \"qiniu\",\n onedrive = \"onedrive\",\n cos = \"cos\",\n upyun = \"upyun\",\n s3 = \"s3\",\n}\n\nexport interface Policy {\n id: number;\n name: string;\n allowedSuffix: Nullable;\n maxSize: number;\n type: PolicyType;\n}\n\nexport enum TaskType {\n file,\n resumeHint,\n}\n\nexport interface Task {\n type: TaskType;\n name: string;\n size: number;\n policy: Policy;\n dst: string;\n file: File;\n child?: Task[];\n session?: UploadCredential;\n chunkProgress: ChunkProgress[];\n resumed: boolean;\n}\n\ntype Nullable = T | null;\n\nexport interface Response {\n code: number;\n data: T;\n msg: string;\n error: string;\n}\n\nexport interface UploadSessionRequest {\n path: string;\n size: number;\n name: string;\n policy_id: number;\n last_modified?: number;\n\n mime_type?: string;\n}\n\nexport interface UploadCredential {\n sessionID: string;\n expires: number;\n chunkSize: number;\n uploadURLs: string[];\n credential: string;\n uploadID: string;\n callback: string;\n policy: string;\n ak: string;\n keyTime: string;\n path: string;\n completeURL: string;\n}\n\nexport interface OneDriveError {\n error: {\n code: string;\n message: string;\n innererror?: {\n code: string;\n };\n retryAfterSeconds?: number;\n };\n}\n\nexport interface OneDriveChunkResponse {\n expirationDateTime: string;\n nextExpectedRanges: string[];\n}\n\nexport interface QiniuChunkResponse {\n etag: string;\n md5: string;\n}\n\nexport interface QiniuError {\n error: string;\n}\n\nexport interface QiniuPartsInfo {\n etag: string;\n partNumber: number;\n}\n\nexport interface QiniuFinishUploadRequest {\n parts: QiniuPartsInfo[];\n}\n\nexport interface UpyunError {\n message: string;\n code: number;\n}\n\nexport interface S3Part {\n ETag: string;\n PartNumber: number;\n}\n","// 所有 Uploader 的基类\nimport { PolicyType, Task } from \"../types\";\nimport UploadManager from \"../index\";\nimport Logger from \"../logger\";\nimport { validate } from \"../utils/validator\";\nimport { CancelToken } from \"../utils/request\";\nimport axios, { CancelTokenSource } from \"axios\";\nimport { createUploadSession, deleteUploadSession } from \"../api\";\nimport * as utils from \"../utils\";\nimport { RequestCanceledError, UploaderError } from \"../errors\";\n\nexport enum Status {\n added,\n resumable,\n initialized,\n queued,\n preparing,\n processing,\n finishing,\n finished,\n error,\n canceled,\n}\n\nexport interface UploadHandlers {\n onTransition: (newStatus: Status) => void;\n onError: (err: Error) => void;\n onProgress: (data: UploadProgress) => void;\n onMsg: (msg: string, color: string) => void;\n}\n\nexport interface UploadProgress {\n total: ProgressCompose;\n chunks?: ProgressCompose[];\n}\n\nexport interface ProgressCompose {\n size: number;\n loaded: number;\n percent: number;\n fromCache?: boolean;\n}\n\nexport interface Progress {\n total: number;\n loaded: number;\n}\n\nconst resumePolicy = [\n PolicyType.local,\n PolicyType.remote,\n PolicyType.qiniu,\n PolicyType.oss,\n PolicyType.onedrive,\n PolicyType.s3,\n];\nconst deleteUploadSessionDelay = 500;\n\nexport default abstract class Base {\n public child?: Base[];\n public status: Status = Status.added;\n public error?: Error;\n\n public id = ++Base.id;\n private static id = 0;\n\n protected logger: Logger;\n protected subscriber: UploadHandlers;\n // 用于取消请求\n protected cancelToken: CancelTokenSource = CancelToken.source();\n protected progress: UploadProgress;\n\n public lastTime = Date.now();\n public startTime = Date.now();\n\n constructor(public task: Task, protected manager: UploadManager) {\n this.logger = new Logger(\n this.manager.logger.level,\n \"UPLOADER\",\n this.id\n );\n this.logger.info(\"Initialize new uploader for task: \", task);\n this.subscriber = {\n /* eslint-disable @typescript-eslint/no-empty-function */\n onTransition: (newStatus: Status) => {},\n onError: (err: Error) => {},\n onProgress: (data: UploadProgress) => {},\n onMsg: (msg, color: string) => {},\n /* eslint-enable @typescript-eslint/no-empty-function */\n };\n }\n\n public subscribe = (handlers: UploadHandlers) => {\n this.subscriber = handlers;\n };\n\n public start = async () => {\n this.logger.info(\"Activate uploading task\");\n this.transit(Status.initialized);\n this.lastTime = this.startTime = Date.now();\n\n try {\n validate(this.task.file, this.task.policy);\n } catch (e) {\n this.logger.error(\"File validate failed with error:\", e);\n this.setError(e);\n return;\n }\n\n this.logger.info(\"Enqueued in manager pool\");\n this.transit(Status.queued);\n this.manager.pool.enqueue(this).catch((e) => {\n this.logger.info(\"Upload task failed with error:\", e);\n this.setError(e);\n });\n };\n\n public run = async () => {\n this.logger.info(\"Start upload task, create upload session...\");\n this.transit(Status.preparing);\n const cachedInfo = utils.getResumeCtx(this.task, this.logger);\n if (cachedInfo == null) {\n this.task.session = await createUploadSession(\n {\n path: this.task.dst,\n size: this.task.file.size,\n name: this.task.file.name,\n policy_id: this.task.policy.id,\n last_modified: this.task.file.lastModified,\n mime_type: this.task.file.type,\n },\n this.cancelToken.token\n );\n this.logger.info(\"Upload session created:\", this.task.session);\n } else {\n this.task.session = cachedInfo.session;\n this.task.resumed = true;\n this.task.chunkProgress = cachedInfo.chunkProgress;\n this.logger.info(\"Resume upload from cached ctx:\", cachedInfo);\n }\n\n this.transit(Status.processing);\n await this.upload();\n await this.afterUpload();\n utils.removeResumeCtx(this.task, this.logger);\n this.transit(Status.finished);\n this.logger.info(\"Upload task completed\");\n };\n\n public abstract async upload(): Promise;\n protected async afterUpload(): Promise {\n return;\n }\n\n public cancel = async () => {\n if (this.status === Status.finished) {\n return;\n }\n\n this.cancelToken.cancel();\n await this.cancelUploadSession();\n this.transit(Status.canceled);\n };\n\n public reset = () => {\n this.cancelToken = axios.CancelToken.source();\n this.progress = {\n total: {\n size: 0,\n loaded: 0,\n percent: 0,\n },\n };\n };\n\n protected setError(e: Error) {\n if (\n !(e instanceof UploaderError && e.Retryable()) ||\n !resumePolicy.includes(this.task.policy.type)\n ) {\n this.logger.warn(\"Non-resume error occurs, clean resume ctx cache\");\n this.cancelUploadSession();\n }\n\n if (!(e instanceof RequestCanceledError)) {\n this.status = Status.error;\n this.error = e;\n this.subscriber.onError(e);\n }\n }\n\n protected cancelUploadSession = (): Promise => {\n return new Promise((resolve) => {\n utils.removeResumeCtx(this.task, this.logger);\n if (this.task.session) {\n setTimeout(() => {\n deleteUploadSession(this.task.session!?.sessionID)\n .catch((e) => {\n this.logger.warn(\n \"Failed to cancel upload session: \",\n e\n );\n })\n .finally(() => {\n resolve();\n });\n }, deleteUploadSessionDelay);\n } else {\n resolve();\n }\n });\n };\n\n protected transit(status: Status) {\n this.status = status;\n this.subscriber.onTransition(status);\n }\n\n public getProgressInfoItem(\n loaded: number,\n size: number,\n fromCache?: boolean\n ): ProgressCompose {\n return {\n size,\n loaded,\n percent: (loaded / size) * 100,\n ...(fromCache == null ? {} : { fromCache }),\n };\n }\n\n public key(): string {\n return utils.getResumeCtxKey(this.task);\n }\n}\n","export type LogLevel = \"INFO\" | \"WARN\" | \"ERROR\" | \"OFF\";\n\nexport default class Logger {\n constructor(\n public level: LogLevel = \"OFF\",\n private prefix = \"UPLOAD\",\n private id: number = 1\n ) {}\n\n private getPrintPrefix(level: LogLevel) {\n return `Cloudreve-Uploader [${level}][${this.prefix}#${this.id}]:`;\n }\n\n info(...args: unknown[]) {\n const allowLevel: LogLevel[] = [\"INFO\"];\n if (allowLevel.includes(this.level)) {\n // eslint-disable-next-line no-console\n console.log(this.getPrintPrefix(\"INFO\"), ...args);\n }\n }\n\n warn(...args: unknown[]) {\n const allowLevel: LogLevel[] = [\"INFO\", \"WARN\"];\n if (allowLevel.includes(this.level)) {\n // eslint-disable-next-line no-console\n console.warn(this.getPrintPrefix(\"WARN\"), ...args);\n }\n }\n\n error(...args: unknown[]) {\n const allowLevel: LogLevel[] = [\"INFO\", \"WARN\", \"ERROR\"];\n if (allowLevel.includes(this.level)) {\n // eslint-disable-next-line no-console\n console.error(this.getPrintPrefix(\"ERROR\"), ...args);\n }\n }\n}\n","import {\n OneDriveChunkResponse,\n QiniuChunkResponse,\n QiniuFinishUploadRequest,\n QiniuPartsInfo,\n S3Part,\n UploadCredential,\n UploadSessionRequest,\n} from \"../types\";\nimport { OBJtoXML, request, requestAPI } from \"../utils\";\nimport {\n COSUploadCallbackError,\n COSUploadError,\n CreateUploadSessionError,\n DeleteUploadSessionError,\n HTTPError,\n LocalChunkUploadError,\n OneDriveChunkError,\n OneDriveFinishUploadError,\n QiniuChunkError,\n QiniuFinishUploadError,\n S3LikeChunkError,\n S3LikeFinishUploadError,\n S3LikeUploadCallbackError,\n SlaveChunkUploadError,\n UpyunUploadError,\n} from \"../errors\";\nimport { ChunkInfo, ChunkProgress } from \"../uploader/chunk\";\nimport { Progress } from \"../uploader/base\";\nimport { CancelToken } from \"axios\";\n\nexport async function createUploadSession(\n req: UploadSessionRequest,\n cancel: CancelToken\n): Promise {\n const res = await requestAPI(\"file/upload\", {\n method: \"put\",\n data: req,\n cancelToken: cancel,\n });\n\n if (res.data.code != 0) {\n throw new CreateUploadSessionError(res.data);\n }\n\n return res.data.data;\n}\n\nexport async function deleteUploadSession(id: string): Promise {\n const res = await requestAPI(`file/upload/${id}`, {\n method: \"delete\",\n });\n\n if (res.data.code != 0) {\n throw new DeleteUploadSessionError(res.data);\n }\n\n return res.data.data;\n}\n\nexport async function localUploadChunk(\n sessionID: string,\n chunk: ChunkInfo,\n onProgress: (p: Progress) => void,\n cancel: CancelToken\n): Promise {\n const res = await requestAPI(\n `file/upload/${sessionID}/${chunk.index}`,\n {\n method: \"post\",\n headers: { \"content-type\": \"application/octet-stream\" },\n data: chunk.chunk,\n onUploadProgress: (progressEvent) => {\n onProgress({\n loaded: progressEvent.loaded,\n total: progressEvent.total,\n });\n },\n cancelToken: cancel,\n }\n );\n\n if (res.data.code != 0) {\n throw new LocalChunkUploadError(res.data, chunk.index);\n }\n\n return res.data.data;\n}\n\nexport async function slaveUploadChunk(\n url: string,\n credential: string,\n chunk: ChunkInfo,\n onProgress: (p: Progress) => void,\n cancel: CancelToken\n): Promise {\n const res = await request(`${url}?chunk=${chunk.index}`, {\n method: \"post\",\n headers: {\n \"content-type\": \"application/octet-stream\",\n Authorization: credential,\n },\n data: chunk.chunk,\n onUploadProgress: (progressEvent) => {\n onProgress({\n loaded: progressEvent.loaded,\n total: progressEvent.total,\n });\n },\n cancelToken: cancel,\n });\n\n if (res.data.code != 0) {\n throw new SlaveChunkUploadError(res.data, chunk.index);\n }\n\n return res.data.data;\n}\n\nexport async function oneDriveUploadChunk(\n url: string,\n range: string, // if range is empty, this will be an request to query the session status\n chunk: ChunkInfo,\n onProgress: (p: Progress) => void,\n cancel: CancelToken\n): Promise {\n const res = await request(url, {\n method: range === \"\" ? \"get\" : \"put\",\n headers: {\n \"content-type\": \"application/octet-stream\",\n ...(range !== \"\" && { \"content-range\": range }),\n },\n data: chunk.chunk,\n onUploadProgress: (progressEvent) => {\n onProgress({\n loaded: progressEvent.loaded,\n total: progressEvent.total,\n });\n },\n cancelToken: cancel,\n }).catch((e) => {\n if (e instanceof HTTPError && e.response) {\n throw new OneDriveChunkError(e.response.data);\n }\n\n throw e;\n });\n\n return res.data;\n}\n\nexport async function finishOneDriveUpload(\n sessionID: string,\n cancel: CancelToken\n): Promise {\n const res = await requestAPI(\n `callback/onedrive/finish/${sessionID}`,\n {\n method: \"post\",\n data: \"{}\",\n cancelToken: cancel,\n }\n );\n\n if (res.data.code != 0) {\n throw new OneDriveFinishUploadError(res.data);\n }\n\n return res.data.data;\n}\n\nexport async function s3LikeUploadChunk(\n url: string,\n chunk: ChunkInfo,\n onProgress: (p: Progress) => void,\n cancel: CancelToken\n): Promise {\n const res = await request(url, {\n method: \"put\",\n headers: {\n \"content-type\": \"application/octet-stream\",\n },\n data: chunk.chunk,\n onUploadProgress: (progressEvent) => {\n onProgress({\n loaded: progressEvent.loaded,\n total: progressEvent.total,\n });\n },\n cancelToken: cancel,\n responseType: \"document\",\n transformResponse: undefined,\n }).catch((e) => {\n if (e instanceof HTTPError && e.response) {\n throw new S3LikeChunkError(e.response.data);\n }\n\n throw e;\n });\n\n return res.headers.etag;\n}\n\nexport async function s3LikeFinishUpload(\n url: string,\n isOss: boolean,\n chunks: ChunkProgress[],\n cancel: CancelToken\n): Promise {\n let body = \"\";\n if (!isOss) {\n body += \"\";\n chunks.forEach((chunk) => {\n body += \"\";\n const part: S3Part = {\n PartNumber: chunk.index + 1,\n ETag: chunk.etag!,\n };\n body += OBJtoXML(part);\n body += \"\";\n });\n body += \"\";\n }\n\n const res = await request(url, {\n method: \"post\",\n cancelToken: cancel,\n responseType: \"document\",\n transformResponse: undefined,\n data: body,\n headers: isOss\n ? {\n \"content-type\": \"application/octet-stream\",\n \"x-oss-forbid-overwrite\": \"true\",\n \"x-oss-complete-all\": \"yes\",\n }\n : {\n \"content-type\": \"application/xhtml+xml\",\n },\n validateStatus: function (status) {\n return status == 200;\n },\n }).catch((e) => {\n if (e instanceof HTTPError && e.response) {\n throw new S3LikeFinishUploadError(e.response.data);\n }\n\n throw e;\n });\n\n return res.data;\n}\n\nexport async function qiniuDriveUploadChunk(\n url: string,\n upToken: string,\n chunk: ChunkInfo,\n onProgress: (p: Progress) => void,\n cancel: CancelToken\n): Promise {\n const res = await request(`${url}/${chunk.index + 1}`, {\n method: \"put\",\n headers: {\n \"content-type\": \"application/octet-stream\",\n authorization: \"UpToken \" + upToken,\n },\n data: chunk.chunk,\n onUploadProgress: (progressEvent) => {\n onProgress({\n loaded: progressEvent.loaded,\n total: progressEvent.total,\n });\n },\n cancelToken: cancel,\n }).catch((e) => {\n if (e instanceof HTTPError && e.response) {\n throw new QiniuChunkError(e.response.data);\n }\n\n throw e;\n });\n\n return res.data;\n}\n\nexport async function qiniuFinishUpload(\n url: string,\n upToken: string,\n chunks: ChunkProgress[],\n cancel: CancelToken\n): Promise {\n const content: QiniuFinishUploadRequest = {\n parts: chunks.map(\n (chunk): QiniuPartsInfo => {\n return {\n etag: chunk.etag!,\n partNumber: chunk.index + 1,\n };\n }\n ),\n };\n\n const res = await request(`${url}`, {\n method: \"post\",\n headers: {\n \"content-type\": \"application/json\",\n authorization: \"UpToken \" + upToken,\n },\n data: content,\n cancelToken: cancel,\n }).catch((e) => {\n if (e instanceof HTTPError && e.response) {\n throw new QiniuFinishUploadError(e.response.data);\n }\n\n throw e;\n });\n\n return res.data;\n}\n\nexport async function cosFormUploadChunk(\n url: string,\n file: File,\n policy: string,\n path: string,\n callback: string,\n sessionID: string,\n keyTime: string,\n credential: string,\n ak: string,\n onProgress: (p: Progress) => void,\n cancel: CancelToken\n): Promise {\n const bodyFormData = new FormData();\n bodyFormData.append(\"policy\", policy);\n bodyFormData.append(\"key\", path);\n bodyFormData.append(\"x-cos-meta-callback\", callback);\n bodyFormData.append(\"x-cos-meta-key\", sessionID);\n bodyFormData.append(\"q-sign-algorithm\", \"sha1\");\n bodyFormData.append(\"q-key-time\", keyTime);\n bodyFormData.append(\"q-ak\", ak);\n bodyFormData.append(\"q-signature\", credential);\n bodyFormData.append(\"name\", file.name);\n // File must be the last element in the form\n bodyFormData.append(\"file\", file);\n\n const res = await request(`${url}`, {\n method: \"post\",\n headers: {\n \"content-type\": \"multipart/form-data\",\n },\n data: bodyFormData,\n onUploadProgress: (progressEvent) => {\n onProgress({\n loaded: progressEvent.loaded,\n total: progressEvent.total,\n });\n },\n cancelToken: cancel,\n responseType: \"document\",\n transformResponse: undefined,\n }).catch((e) => {\n if (e instanceof HTTPError && e.response) {\n throw new COSUploadError(e.response.data);\n }\n\n throw e;\n });\n\n return res.data;\n}\n\nexport async function cosUploadCallback(\n sessionID: string,\n cancel: CancelToken\n): Promise {\n const res = await requestAPI(`callback/cos/${sessionID}`, {\n method: \"get\",\n data: \"{}\",\n cancelToken: cancel,\n });\n\n if (res.data.code != 0) {\n throw new COSUploadCallbackError(res.data);\n }\n\n return res.data.data;\n}\n\nexport async function upyunFormUploadChunk(\n url: string,\n file: File,\n policy: string,\n credential: string,\n onProgress: (p: Progress) => void,\n cancel: CancelToken\n): Promise {\n const bodyFormData = new FormData();\n bodyFormData.append(\"policy\", policy);\n bodyFormData.append(\"authorization\", credential);\n // File must be the last element in the form\n bodyFormData.append(\"file\", file);\n\n const res = await request(`${url}`, {\n method: \"post\",\n headers: {\n \"content-type\": \"multipart/form-data\",\n },\n data: bodyFormData,\n onUploadProgress: (progressEvent) => {\n onProgress({\n loaded: progressEvent.loaded,\n total: progressEvent.total,\n });\n },\n cancelToken: cancel,\n }).catch((e) => {\n if (e instanceof HTTPError && e.response) {\n throw new UpyunUploadError(e.response.data);\n }\n\n throw e;\n });\n\n return res.data;\n}\n\nexport async function s3LikeUploadCallback(\n sessionID: string,\n cancel: CancelToken\n): Promise {\n const res = await requestAPI(`callback/s3/${sessionID}`, {\n method: \"get\",\n data: \"{}\",\n cancelToken: cancel,\n });\n\n if (res.data.code != 0) {\n throw new S3LikeUploadCallbackError(res.data);\n }\n\n return res.data.data;\n}\n","import { Policy, PolicyType, Task, TaskType } from \"./types\";\nimport Logger, { LogLevel } from \"./logger\";\nimport { UnknownPolicyError, UploaderError, UploaderErrorName } from \"./errors\";\nimport Base from \"./uploader/base\";\nimport Local from \"./uploader/local\";\nimport { Pool } from \"./utils/pool\";\nimport {\n cleanupResumeCtx,\n getAllFileEntries,\n getDirectoryUploadDst,\n getFileInput,\n isFileDrop,\n listResumeCtx,\n} from \"./utils\";\nimport Remote from \"./uploader/remote\";\nimport OneDrive from \"./uploader/onedrive\";\nimport OSS from \"./uploader/oss\";\nimport Qiniu from \"./uploader/qiniu\";\nimport COS from \"./uploader/cos\";\nimport Upyun from \"./uploader/upyun\";\nimport S3 from \"./uploader/s3\";\nimport ResumeHint from \"./uploader/placeholder\";\n\nexport interface Option {\n logLevel: LogLevel;\n concurrentLimit: number;\n dropZone?: HTMLElement;\n onDropOver?: (e: DragEvent) => void;\n onDropLeave?: (e: DragEvent) => void;\n onToast: (type: string, msg: string) => void;\n onDropFileAdded?: (uploaders: Base[]) => void;\n}\n\nexport enum SelectType {\n File,\n Directory,\n}\n\nexport default class UploadManager {\n public logger: Logger;\n public pool: Pool;\n private static id = 0;\n private policy?: Policy;\n private fileInput: HTMLInputElement;\n private directoryInput: HTMLInputElement;\n private id = ++UploadManager.id;\n // used for proactive upload (drop, paste)\n private currentPath = \"/\";\n\n constructor(private o: Option) {\n this.logger = new Logger(o.logLevel, \"MANAGER\");\n this.logger.info(`Initialized with log level: ${o.logLevel}`);\n\n this.pool = new Pool(o.concurrentLimit);\n this.fileInput = getFileInput(this.id, false);\n this.directoryInput = getFileInput(this.id, true);\n\n if (o.dropZone) {\n this.logger.info(`Drag and drop container set to:`, o.dropZone);\n o.dropZone.addEventListener(\"dragenter\", (e) => {\n if (isFileDrop(e)) {\n e.preventDefault();\n if (o.onDropOver) {\n o.onDropOver(e);\n }\n }\n });\n\n o.dropZone.addEventListener(\"dragleave\", (e) => {\n if (isFileDrop(e)) {\n e.preventDefault();\n if (o.onDropLeave) {\n o.onDropLeave(e);\n }\n }\n });\n\n o.dropZone.addEventListener(\"drop\", this.onFileDroppedIn);\n }\n }\n\n changeConcurrentLimit = (newLimit: number) => {\n this.pool.limit = newLimit;\n };\n\n dispatchUploader(task: Task): Base {\n if (task.type == TaskType.resumeHint) {\n return new ResumeHint(task, this);\n }\n\n switch (task.policy.type) {\n case PolicyType.local:\n return new Local(task, this);\n case PolicyType.remote:\n return new Remote(task, this);\n case PolicyType.onedrive:\n return new OneDrive(task, this);\n case PolicyType.oss:\n return new OSS(task, this);\n case PolicyType.qiniu:\n return new Qiniu(task, this);\n case PolicyType.cos:\n return new COS(task, this);\n case PolicyType.upyun:\n return new Upyun(task, this);\n case PolicyType.s3:\n return new S3(task, this);\n default:\n throw new UnknownPolicyError(\n \"Unknown policy type.\",\n task.policy\n );\n }\n }\n\n // 设定当前存储策略\n public setPolicy(p: Policy, path: string) {\n this.policy = p;\n this.currentPath = path;\n if (p == undefined) {\n this.logger.info(`Currently no policy selected`);\n return;\n }\n\n this.logger.info(`Switching policy to:`, p);\n\n if (p.allowedSuffix != undefined && p.allowedSuffix.length > 0) {\n const acceptVal = p.allowedSuffix\n .map((v) => {\n return \".\" + v;\n })\n .join(\",\");\n this.logger.info(`Set allowed file suffix to ${acceptVal}`);\n this.fileInput.setAttribute(\"accept\", acceptVal);\n } else {\n this.logger.info(`Set allowed file suffix to *`);\n this.fileInput.removeAttribute(\"accept\");\n }\n }\n\n // 选择文件\n public select = (dst: string, type = SelectType.File): Promise => {\n return new Promise((resolve) => {\n if (this.policy == undefined) {\n this.logger.warn(\n `Calling file selector while no policy is set`\n );\n throw new UploaderError(\n UploaderErrorName.NoPolicySelected,\n \"No policy selected.\"\n );\n }\n\n this.fileInput.onchange = (ev: Event) =>\n this.fileSelectCallback(ev, dst, resolve);\n this.directoryInput.onchange = (ev: Event) =>\n this.fileSelectCallback(ev, dst, resolve);\n this.fileInput.value = \"\";\n this.directoryInput.value = \"\";\n type == SelectType.File\n ? this.fileInput.click()\n : this.directoryInput.click();\n });\n };\n\n public resumeTasks = (): Base[] => {\n const tasks = listResumeCtx(this.logger);\n if (tasks.length > 0) {\n this.logger.info(\n `Resumed ${tasks.length} unfinished task(s) from local storage:`,\n tasks\n );\n }\n return tasks\n .filter(\n (t) =>\n t.chunkProgress.length > 0 && t.chunkProgress[0].loaded > 0\n )\n .map((t) =>\n this.dispatchUploader({ ...t, type: TaskType.resumeHint })\n );\n };\n\n public cleanupSessions = () => {\n cleanupResumeCtx(this.logger);\n };\n\n private fileSelectCallback = (\n ev: Event | File[],\n dst: string,\n resolve: (value?: Base[] | PromiseLike | undefined) => void\n ) => {\n let files: File[] = [];\n if (ev instanceof Event) {\n const target = ev.target as HTMLInputElement;\n if (!ev || !target || !target.files) return;\n if (target.files.length > 0) {\n files = Array.from(target.files);\n }\n } else {\n files = ev as File[];\n }\n\n if (files.length > 0) {\n resolve(\n files.map(\n (file): Base =>\n this.dispatchUploader({\n type: TaskType.file,\n policy: this.policy as Policy,\n dst: getDirectoryUploadDst(dst, file),\n file: file,\n size: file.size,\n name: file.name,\n chunkProgress: [],\n resumed: false,\n })\n )\n );\n }\n };\n\n private onFileDroppedIn = async (e: DragEvent) => {\n const containFile =\n e.dataTransfer && e.dataTransfer.types.includes(\"Files\");\n if (containFile) {\n this.o.onDropLeave && this.o.onDropLeave(e);\n const items = await getAllFileEntries(e.dataTransfer!.items);\n console.log(items);\n const uploaders = await new Promise((resolve) =>\n this.fileSelectCallback(items, this.currentPath, resolve)\n );\n this.o.onDropFileAdded && this.o.onDropFileAdded(uploaders);\n }\n };\n}\n","import Base, { Status, UploadProgress } from \"./base\";\nimport * as utils from \"../utils\";\nimport { Task, TaskType } from \"../types\";\nimport UploadManager from \"../index\";\nimport Logger from \"../logger\";\n\nexport interface ChunkProgress {\n loaded: number;\n index: number;\n etag?: string;\n}\n\nexport interface ChunkInfo {\n chunk: Blob;\n index: number;\n}\n\nexport default abstract class Chunk extends Base {\n protected chunks: Blob[];\n\n public upload = async () => {\n this.logger.info(\"Preparing uploading file chunks.\");\n this.initBeforeUploadChunks();\n\n this.logger.info(\"Starting uploading file chunks:\", this.chunks);\n this.updateLocalCache();\n for (let i = 0; i < this.chunks.length; i++) {\n if (\n this.task.chunkProgress[i].loaded < this.chunks[i].size ||\n this.chunks[i].size == 0\n ) {\n await this.uploadChunk({ chunk: this.chunks[i], index: i });\n this.logger.info(`Chunk [${i}] uploaded.`);\n this.updateLocalCache();\n }\n }\n };\n\n private initBeforeUploadChunks() {\n this.chunks = utils.getChunks(\n this.task.file,\n this.task.session?.chunkSize\n );\n const cachedInfo = utils.getResumeCtx(this.task, this.logger);\n if (cachedInfo == null) {\n this.task.chunkProgress = this.chunks.map(\n (value, index): ChunkProgress => ({\n loaded: 0,\n index,\n })\n );\n }\n\n this.notifyResumeProgress();\n }\n\n protected abstract async uploadChunk(chunkInfo: ChunkInfo): Promise;\n\n protected updateChunkProgress(loaded: number, index: number) {\n this.task.chunkProgress[index].loaded = loaded;\n this.notifyResumeProgress();\n }\n\n private notifyResumeProgress() {\n this.progress = {\n total: this.getProgressInfoItem(\n utils.sumChunk(this.task.chunkProgress),\n this.task.file.size + 1\n ),\n chunks: this.chunks.map((chunk, index) => {\n return this.getProgressInfoItem(\n this.task.chunkProgress[index].loaded,\n chunk.size,\n false\n );\n }),\n };\n this.subscriber.onProgress(this.progress);\n }\n\n private updateLocalCache() {\n utils.setResumeCtx(this.task, this.logger);\n }\n}\n","import Chunk, { ChunkInfo } from \"./chunk\";\nimport { localUploadChunk } from \"../api\";\n\nexport default class Local extends Chunk {\n protected async uploadChunk(chunkInfo: ChunkInfo) {\n return localUploadChunk(\n this.task.session?.sessionID!,\n chunkInfo,\n (p) => {\n this.updateChunkProgress(p.loaded, chunkInfo.index);\n },\n this.cancelToken.token\n );\n }\n}\n","import Chunk, { ChunkInfo } from \"./chunk\";\nimport { slaveUploadChunk } from \"../api\";\n\nexport default class Remote extends Chunk {\n protected async uploadChunk(chunkInfo: ChunkInfo) {\n return slaveUploadChunk(\n `${this.task.session?.uploadURLs[0]!}`,\n this.task.session?.credential!,\n chunkInfo,\n (p) => {\n this.updateChunkProgress(p.loaded, chunkInfo.index);\n },\n this.cancelToken.token\n );\n }\n}\n","import Chunk, { ChunkInfo } from \"./chunk\";\nimport { finishOneDriveUpload, oneDriveUploadChunk } from \"../api\";\nimport { OneDriveChunkError, OneDriveEmptyFileSelected } from \"../errors\";\nimport { Status } from \"./base\";\n\nexport default class OneDrive extends Chunk {\n protected async uploadChunk(chunkInfo: ChunkInfo) {\n if (chunkInfo.chunk.size === 0) {\n throw new OneDriveEmptyFileSelected();\n }\n\n const rangeEnd = this.progress.total.loaded + chunkInfo.chunk.size - 1;\n return this.sendRange(\n chunkInfo,\n this.progress.total.loaded,\n rangeEnd,\n 0\n ).catch((e) => {\n if (\n e instanceof OneDriveChunkError &&\n e.response.error.innererror &&\n e.response.error.innererror.code == \"fragmentOverlap\"\n ) {\n return this.alignChunkOffset(chunkInfo);\n }\n\n throw e;\n });\n }\n\n private async sendRange(\n chunkInfo: ChunkInfo,\n start: number,\n end: number,\n chunkOffset: number\n ) {\n const range = `bytes ${start}-${end}/${this.task.file.size}`;\n return oneDriveUploadChunk(\n `${this.task.session?.uploadURLs[0]!}`,\n range,\n chunkInfo,\n (p) => {\n this.updateChunkProgress(\n chunkOffset + p.loaded,\n chunkInfo.index\n );\n },\n this.cancelToken.token\n );\n }\n\n private async alignChunkOffset(chunkInfo: ChunkInfo) {\n this.logger.info(\n `Chunk [${chunkInfo.index}] overlapped, checking next expected range...`\n );\n const rangeStatus = await oneDriveUploadChunk(\n `${this.task.session?.uploadURLs[0]!}`,\n \"\",\n chunkInfo,\n (p) => {\n return null;\n },\n this.cancelToken.token\n );\n const expectedStart = parseInt(\n rangeStatus.nextExpectedRanges[0].split(\"-\")[0]\n );\n this.logger.info(\n `Next expected range start from OneDrive is ${expectedStart}.`\n );\n\n if (expectedStart >= this.progress.total.loaded) {\n this.logger.info(`This whole chunk is overlapped, skipping...`);\n this.updateChunkProgress(chunkInfo.chunk.size, chunkInfo.index);\n return;\n } else {\n this.updateChunkProgress(0, chunkInfo.index);\n const rangeEnd =\n this.progress.total.loaded + chunkInfo.chunk.size - 1;\n const newChunkOffset = expectedStart - this.progress.total.loaded;\n chunkInfo.chunk = chunkInfo.chunk.slice(newChunkOffset);\n this.updateChunkProgress(newChunkOffset, chunkInfo.index);\n return this.sendRange(\n chunkInfo,\n expectedStart,\n rangeEnd,\n newChunkOffset\n );\n }\n }\n\n protected async afterUpload(): Promise {\n this.logger.info(`Finishing upload...`);\n this.transit(Status.finishing);\n return finishOneDriveUpload(\n this.task.session!.sessionID,\n this.cancelToken.token\n );\n }\n}\n","import Chunk, { ChunkInfo } from \"./chunk\";\nimport { s3LikeFinishUpload, s3LikeUploadChunk } from \"../api\";\nimport { Status } from \"./base\";\n\nexport default class OSS extends Chunk {\n protected async uploadChunk(chunkInfo: ChunkInfo) {\n return s3LikeUploadChunk(\n this.task.session?.uploadURLs[chunkInfo.index]!,\n chunkInfo,\n (p) => {\n this.updateChunkProgress(p.loaded, chunkInfo.index);\n },\n this.cancelToken.token\n );\n }\n\n protected async afterUpload(): Promise {\n this.logger.info(`Finishing multipart upload...`);\n this.transit(Status.finishing);\n return s3LikeFinishUpload(\n this.task.session!.completeURL,\n true,\n this.task.chunkProgress,\n this.cancelToken.token\n );\n }\n}\n","import Chunk, { ChunkInfo } from \"./chunk\";\nimport { qiniuDriveUploadChunk, qiniuFinishUpload } from \"../api\";\nimport { Status } from \"./base\";\n\nexport default class Qiniu extends Chunk {\n protected async uploadChunk(chunkInfo: ChunkInfo) {\n const chunkRes = await qiniuDriveUploadChunk(\n this.task.session?.uploadURLs[0]!,\n this.task.session?.credential!,\n chunkInfo,\n (p) => {\n this.updateChunkProgress(p.loaded, chunkInfo.index);\n },\n this.cancelToken.token\n );\n\n this.task.chunkProgress[chunkInfo.index].etag = chunkRes.etag;\n }\n\n protected async afterUpload(): Promise {\n this.logger.info(`Finishing multipart upload...`);\n this.transit(Status.finishing);\n return qiniuFinishUpload(\n this.task.session?.uploadURLs[0]!,\n this.task.session?.credential!,\n this.task.chunkProgress,\n this.cancelToken.token\n );\n }\n}\n","import Base, { Status } from \"./base\";\nimport { cosFormUploadChunk, cosUploadCallback } from \"../api\";\n\nexport default class COS extends Base {\n public upload = async () => {\n this.logger.info(\"Starting uploading file stream:\", this.task.file);\n await cosFormUploadChunk(\n this.task.session?.uploadURLs[0]!,\n this.task.file,\n this.task.session?.policy!,\n this.task.session?.path!,\n this.task.session?.callback!,\n this.task.session?.sessionID!,\n this.task.session?.keyTime!,\n this.task.session?.credential!,\n this.task.session?.ak!,\n (p) => {\n this.subscriber.onProgress({\n total: this.getProgressInfoItem(p.loaded, p.total),\n });\n },\n this.cancelToken.token\n );\n };\n\n protected async afterUpload(): Promise {\n this.transit(Status.finishing);\n this.logger.info(`Sending COS upload callback...`);\n try {\n await cosUploadCallback(\n this.task.session!.sessionID,\n this.cancelToken.token\n );\n } catch (e) {\n this.logger.warn(`Failed to finish COS upload:`, e);\n }\n }\n}\n","import Base from \"./base\";\nimport { upyunFormUploadChunk } from \"../api\";\n\nexport default class Upyun extends Base {\n public upload = async () => {\n this.logger.info(\"Starting uploading file stream:\", this.task.file);\n await upyunFormUploadChunk(\n this.task.session?.uploadURLs[0]!,\n this.task.file,\n this.task.session?.policy!,\n this.task.session?.credential!,\n (p) => {\n this.subscriber.onProgress({\n total: this.getProgressInfoItem(p.loaded, p.total),\n });\n },\n this.cancelToken.token\n );\n };\n}\n","import Chunk, { ChunkInfo } from \"./chunk\";\nimport {\n s3LikeFinishUpload,\n s3LikeUploadCallback,\n s3LikeUploadChunk,\n} from \"../api\";\nimport { Status } from \"./base\";\n\nexport default class OSS extends Chunk {\n protected async uploadChunk(chunkInfo: ChunkInfo) {\n const etag = await s3LikeUploadChunk(\n this.task.session?.uploadURLs[chunkInfo.index]!,\n chunkInfo,\n (p) => {\n this.updateChunkProgress(p.loaded, chunkInfo.index);\n },\n this.cancelToken.token\n );\n\n this.task.chunkProgress[chunkInfo.index].etag = etag;\n }\n\n protected async afterUpload(): Promise {\n this.logger.info(`Finishing multipart upload...`);\n this.transit(Status.finishing);\n await s3LikeFinishUpload(\n this.task.session!.completeURL,\n false,\n this.task.chunkProgress,\n this.cancelToken.token\n );\n\n this.logger.info(`Sending S3-like upload callback...`);\n return s3LikeUploadCallback(\n this.task.session!.sessionID,\n this.cancelToken.token\n );\n }\n}\n","import Chunk, { ChunkInfo } from \"./chunk\";\nimport { qiniuDriveUploadChunk, qiniuFinishUpload } from \"../api\";\nimport { Status } from \"./base\";\nimport { Task } from \"../types\";\nimport UploadManager from \"../index\";\nimport * as utils from \"../utils\";\n\nexport default class ResumeHint extends Chunk {\n constructor(task: Task, manager: UploadManager) {\n super(task, manager);\n this.status = Status.resumable;\n this.progress = {\n total: this.getProgressInfoItem(\n utils.sumChunk(this.task.chunkProgress),\n this.task.size + 1\n ),\n };\n this.subscriber.onProgress(this.progress);\n }\n\n protected async uploadChunk(chunkInfo: ChunkInfo) {\n return null;\n }\n}\n","import React, { useCallback, useEffect, useMemo, useState } from \"react\";\nimport { Badge, CircularProgress, makeStyles } from \"@material-ui/core\";\nimport SpeedDial from \"@material-ui/lab/SpeedDial\";\nimport SpeedDialIcon from \"@material-ui/lab/SpeedDialIcon\";\nimport SpeedDialAction from \"@material-ui/lab/SpeedDialAction\";\nimport CreateNewFolderIcon from \"@material-ui/icons/CreateNewFolder\";\nimport PublishIcon from \"@material-ui/icons/Publish\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport AutoHidden from \"./AutoHidden\";\nimport statusHelper from \"../../utils/page\";\nimport Backdrop from \"@material-ui/core/Backdrop\";\nimport { FilePlus, FolderUpload } from \"mdi-material-ui\";\nimport { green } from \"@material-ui/core/colors\";\nimport { SelectType } from \"../Uploader/core\";\nimport {\n openCreateFileDialog,\n openCreateFolderDialog,\n toggleSnackbar,\n} from \"../../redux/explorer\";\nimport { useTranslation } from \"react-i18next\";\n\nconst useStyles = makeStyles(() => ({\n fab: {\n margin: 0,\n top: \"auto\",\n right: 20,\n bottom: 20,\n left: \"auto\",\n zIndex: 5,\n position: \"fixed\",\n },\n badge: {\n position: \"absolute\",\n bottom: 26,\n top: \"auto\",\n zIndex: 9999,\n right: 7,\n },\n \"@global\": {\n \".MuiSpeedDialAction-staticTooltipLabel\": {\n whiteSpace: \"nowrap\",\n },\n },\n fabProgress: {\n color: green[500],\n position: \"absolute\",\n bottom: -6,\n left: -6,\n zIndex: 1,\n },\n buttonSuccess: {\n backgroundColor: green[500],\n \"&:hover\": {\n backgroundColor: green[700],\n },\n },\n}));\n\nexport default function UploadButton(props) {\n const { t } = useTranslation(\"application\", { keyPrefix: \"fileManager\" });\n const [open, setOpen] = useState(false);\n const [queued, setQueued] = useState(5);\n const path = useSelector((state) => state.navigator.path);\n const classes = useStyles();\n const dispatch = useDispatch();\n const ToggleSnackbar = useCallback(\n (vertical, horizontal, msg, color) =>\n dispatch(toggleSnackbar(vertical, horizontal, msg, color)),\n [dispatch]\n );\n const OpenNewFolderDialog = useCallback(\n () => dispatch(openCreateFolderDialog()),\n [dispatch]\n );\n const OpenNewFileDialog = useCallback(\n () => dispatch(openCreateFileDialog()),\n [dispatch]\n );\n\n useEffect(() => {\n setQueued(props.Queued);\n }, [props.Queued]);\n\n const uploadClicked = () => {\n if (open) {\n if (queued !== 0) {\n props.openFileList();\n } else {\n props.selectFile(path);\n }\n }\n };\n\n const handleOpen = () => {\n setOpen(true);\n };\n\n const handleClose = () => {\n setOpen(false);\n };\n\n const circularProgress = useMemo(() => {\n if (props.progress.totalSize > 0) {\n return (\n \n );\n }\n }, [classes, props.progress]);\n\n return (\n \n \n \n \n );\n}\n","import React from \"react\";\nimport { makeStyles } from \"@material-ui/core\";\nimport Grid from \"@material-ui/core/Grid\";\nimport { sizeToString } from \"../../../utils\";\nimport Link from \"@material-ui/core/Link\";\nimport TimeAgo from \"timeago-react\";\nimport { Status } from \"../core/uploader/base\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nconst useStyles = makeStyles((theme) => ({\n infoTitle: {\n fontWeight: 700,\n },\n infoValue: {\n color: theme.palette.text.secondary,\n wordBreak: \"break-all\",\n },\n}));\n\nexport default function TaskDetail({ uploader, navigateToDst, error }) {\n const { t } = useTranslation();\n const classes = useStyles();\n const items = [\n {\n name: t(\"uploader.fileName\"),\n value: uploader.task.name,\n },\n {\n name: t(\"uploader.fileSize\"),\n value: `${sizeToString(uploader.task.size)} ${\n uploader.task.session && uploader.task.session.chunkSize > 0\n ? t(\"uploader.chunkDescription\", {\n total: uploader.task.chunkProgress.length,\n size: sizeToString(uploader.task.session.chunkSize),\n })\n : t(\"uploader.noChunks\")\n }`,\n },\n {\n name: t(\"fileManager.storagePolicy\"),\n value: uploader.task.policy.name,\n },\n {\n name: t(\"uploader.destination\"),\n value: (\n navigateToDst(uploader.task.dst)}\n >\n {uploader.task.dst === \"/\"\n ? t(\"uploader.rootFolder\")\n : uploader.task.dst}\n \n ),\n },\n uploader.task.session\n ? {\n name: t(\"uploader.uploadSession\"),\n value: (\n <>\n ,\n ]}\n />\n \n ),\n }\n : null,\n uploader.status === Status.error\n ? {\n name: t(\"uploader.errorDetails\"),\n value: error,\n }\n : null,\n ];\n return (\n \n {items.map((i) => (\n <>\n {i && (\n \n \n {i.name}\n \n \n {i.value}\n \n \n )}\n \n ))}\n \n );\n}\n","import React, { useCallback, useEffect, useMemo, useState } from \"react\";\nimport {\n Divider,\n Grow,\n IconButton,\n ListItem,\n ListItemText,\n makeStyles,\n Tooltip,\n} from \"@material-ui/core\";\nimport TypeIcon from \"../../FileManager/TypeIcon\";\nimport { useUpload } from \"../UseUpload\";\nimport { Status } from \"../core/uploader/base\";\nimport { UploaderError } from \"../core/errors\";\nimport { filename, sizeToString } from \"../../../utils\";\nimport { darken, lighten } from \"@material-ui/core/styles/colorManipulator\";\nimport { useTheme } from \"@material-ui/core/styles\";\nimport Chip from \"@material-ui/core/Chip\";\nimport DeleteIcon from \"@material-ui/icons/Delete\";\nimport RefreshIcon from \"@material-ui/icons/Refresh\";\nimport useMediaQuery from \"@material-ui/core/useMediaQuery\";\nimport { useDispatch } from \"react-redux\";\nimport Link from \"@material-ui/core/Link\";\nimport PlayArrow from \"@material-ui/icons/PlayArrow\";\nimport withStyles from \"@material-ui/core/styles/withStyles\";\nimport MuiExpansionPanel from \"@material-ui/core/ExpansionPanel\";\nimport MuiExpansionPanelSummary from \"@material-ui/core/ExpansionPanelSummary\";\nimport MuiExpansionPanelDetails from \"@material-ui/core/ExpansionPanelDetails\";\nimport TaskDetail from \"./TaskDetail\";\nimport { SelectType } from \"../core\";\nimport { navigateTo } from \"../../../redux/explorer\";\nimport { useTranslation } from \"react-i18next\";\n\nconst useStyles = makeStyles((theme) => ({\n progressContent: {\n position: \"relative\",\n zIndex: 9,\n },\n progress: {\n transition: \"width .4s linear\",\n zIndex: 1,\n height: \"100%\",\n position: \"absolute\",\n left: 0,\n top: 0,\n },\n progressContainer: {\n position: \"relative\",\n },\n listAction: {\n marginLeft: 20,\n marginRight: 20,\n },\n wordBreak: {\n wordBreak: \"break-all\",\n whiteSpace: \"nowrap\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n },\n successStatus: {\n color: theme.palette.success.main,\n },\n errorStatus: {\n color: theme.palette.warning.main,\n wordBreak: \"break-all\",\n [theme.breakpoints.up(\"sm\")]: {\n whiteSpace: \"nowrap\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n },\n },\n disabledBadge: {\n marginLeft: theme.spacing(1),\n height: 18,\n },\n delete: {\n zIndex: 9,\n },\n dstLink: {\n color: theme.palette.success.main,\n fontWeight: 600,\n },\n fileNameContainer: {\n display: \"flex\",\n alignItems: \"center\",\n },\n}));\n\nconst ExpansionPanel = withStyles({\n root: {\n maxWidth: \"100%\",\n boxShadow: \"none\",\n \"&:not(:last-child)\": {\n borderBottom: 0,\n },\n \"&:before\": {\n display: \"none\",\n },\n \"&$expanded\": {\n margin: 0,\n },\n },\n expanded: {},\n})(MuiExpansionPanel);\n\nconst ExpansionPanelSummary = withStyles({\n root: {\n minHeight: 0,\n padding: 0,\n display: \"block\",\n \"&$expanded\": {},\n },\n content: {\n margin: 0,\n display: \"block\",\n \"&$expanded\": {\n margin: \"0\",\n },\n },\n expanded: {},\n})(MuiExpansionPanelSummary);\n\nconst ExpansionPanelDetails = withStyles((theme) => ({\n root: {\n paddingLeft: 16,\n paddingRight: 16,\n paddingTop: 8,\n paddingBottom: 8,\n display: \"block\",\n backgroundColor: theme.palette.background.default,\n },\n}))(MuiExpansionPanelDetails);\n\nconst getSpeedText = (speed, speedAvg, useSpeedAvg) => {\n let displayedSpeed = speedAvg;\n if (!useSpeedAvg) {\n displayedSpeed = speed;\n }\n\n return `${sizeToString(displayedSpeed ? displayedSpeed : 0)} /s`;\n};\n\nconst getErrMsg = (error) => {\n let errMsg = error.message;\n if (error instanceof UploaderError) {\n errMsg = error.Message(\"\");\n }\n\n return errMsg;\n};\n\nexport default function UploadTask({\n uploader,\n useAvgSpeed,\n onCancel,\n onClose,\n selectFile,\n onRefresh,\n}) {\n const { t } = useTranslation(\"application\", { keyPrefix: \"uploader\" });\n const classes = useStyles();\n const theme = useTheme();\n const [taskHover, setTaskHover] = useState(false);\n const [expanded, setExpanded] = useState(false);\n const { status, error, progress, speed, speedAvg, retry } = useUpload(\n uploader\n );\n const fullScreen = useMediaQuery(theme.breakpoints.down(\"sm\"));\n const [loading, setLoading] = useState(false);\n const dispatch = useDispatch();\n const NavigateTo = useCallback((k) => dispatch(navigateTo(k)), [dispatch]);\n const navigateToDst = (path) => {\n onClose(null, \"backdropClick\");\n NavigateTo(path);\n };\n\n const toggleDetail = (event, newExpanded) => {\n setExpanded(!!newExpanded);\n };\n\n useEffect(() => {\n if (status >= Status.finished) {\n onRefresh();\n }\n }, [status]);\n\n const statusText = useMemo(() => {\n const parent = filename(uploader.task.dst);\n switch (status) {\n case Status.added:\n case Status.initialized:\n case Status.queued:\n return
{t(\"pendingInQueue\")}
;\n case Status.preparing:\n return
{t(\"preparing\")}
;\n case Status.error:\n return (\n
\n {getErrMsg(error)}\n
\n
\n );\n case Status.finishing:\n return
{t(\"processing\")}
;\n case Status.resumable:\n return (\n
\n {t(\"progressDescription\", {\n uploaded: sizeToString(progress.total.loaded),\n total: sizeToString(progress.total.size),\n percentage: progress.total.percent.toFixed(2),\n })}\n
\n );\n case Status.processing:\n if (progress) {\n return (\n
\n {t(\"progressDescriptionFull\", {\n speed: getSpeedText(\n speed,\n speedAvg,\n useAvgSpeed\n ),\n uploaded: sizeToString(progress.total.loaded),\n total: sizeToString(progress.total.size),\n percentage: progress.total.percent.toFixed(2),\n })}\n
\n );\n }\n return
{t(\"progressDescriptionPlaceHolder\")}
;\n case Status.finished:\n return (\n
\n {t(\"uploadedTo\")}\n \n navigateToDst(uploader.task.dst)}\n >\n {parent === \"\" ? t(\"rootFolder\") : parent}\n \n \n
\n
\n );\n default:\n return
{t(\"unknownStatus\")}
;\n }\n }, [status, error, progress, speed, speedAvg, useAvgSpeed]);\n\n const resumeLabel = useMemo(\n () =>\n uploader.task.resumed && !fullScreen ? (\n \n ) : null,\n [status, fullScreen]\n );\n\n const continueLabel = useMemo(\n () =>\n status === Status.resumable && !fullScreen ? (\n \n ) : null,\n [status, fullScreen]\n );\n\n const progressBar = useMemo(\n () =>\n (status === Status.processing ||\n status === Status.finishing ||\n status === Status.resumable) &&\n progress ? (\n \n ) : null,\n [status, progress, theme]\n );\n\n const taskDetail = useMemo(() => {\n return (\n \n );\n }, [uploader, expanded]);\n\n const cancel = () => {\n setLoading(true);\n uploader.cancel().then(() => {\n setLoading(false);\n onCancel((u) => u.id != uploader.id);\n });\n };\n\n const stopRipple = (e) => {\n e.stopPropagation();\n };\n\n const secondaryAction = useMemo(() => {\n if (!taskHover && !fullScreen) {\n return <>;\n }\n\n const actions = [\n {\n show: status === Status.error,\n title: t(\"retry\"),\n click: retry,\n icon: ,\n loading: false,\n },\n {\n show: true,\n title:\n status === Status.finished\n ? t(\"deleteTask\")\n : t(\"cancelAndDelete\"),\n click: cancel,\n icon: ,\n loading: loading,\n },\n {\n show: status === Status.resumable,\n title: t(\"selectAndResume\"),\n click: () =>\n selectFile(uploader.task.dst, SelectType.File, uploader),\n icon: ,\n loading: false,\n },\n ];\n\n return (\n <>\n {actions.map((a) => (\n <>\n {a.show && (\n \n \n {\n e.stopPropagation();\n a.click();\n }}\n >\n {a.icon}\n \n \n \n )}\n \n ))}\n \n );\n }, [status, loading, taskHover, fullScreen, uploader]);\n\n const fileIcon = useMemo(() => {\n if (!fullScreen) {\n return ;\n }\n }, [uploader, fullScreen]);\n\n return (\n <>\n \n \n setTaskHover(false)}\n onMouseOver={() => setTaskHover(true)}\n >\n {progressBar}\n \n {fileIcon}\n \n
\n {uploader.task.name}\n
\n
{resumeLabel}
\n
{continueLabel}
\n
\n }\n secondary={\n
\n {statusText}\n
\n }\n />\n {secondaryAction}\n \n \n \n {taskDetail}\n \n \n \n );\n}\n","import React, { useCallback, useEffect, useRef, useState } from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport { toggleSnackbar } from \"../../redux/explorer\";\n\nexport function useUpload(uploader) {\n const startLoadedRef = useRef(0);\n const [status, setStatus] = useState(uploader.status);\n const [error, setError] = useState(uploader.error);\n const [progress, setProgress] = useState(uploader.progress);\n const dispatch = useDispatch();\n\n const ToggleSnackbar = useCallback(\n (vertical, horizontal, msg, color) =>\n dispatch(toggleSnackbar(vertical, horizontal, msg, color)),\n [dispatch]\n );\n\n useEffect(() => {\n /* eslint-disable @typescript-eslint/no-empty-function */\n uploader.subscribe({\n onTransition: (newStatus) => {\n setStatus(newStatus);\n },\n onError: (err) => {\n setError(err);\n setStatus(uploader.status);\n },\n onProgress: (data) => {\n setProgress(data);\n },\n onMsg: (msg, color) => {\n ToggleSnackbar(\"top\", \"right\", msg, color);\n },\n });\n }, []);\n\n // 获取上传速度\n const [speed, speedAvg] = React.useMemo(() => {\n if (\n progress == null ||\n progress.total == null ||\n progress.total.loaded == null\n )\n return [0, 0];\n const duration = (Date.now() - (uploader.lastTime || 0)) / 1000;\n const durationTotal = (Date.now() - (uploader.startTime || 0)) / 1000;\n const res =\n progress.total.loaded > startLoadedRef.current\n ? Math.floor(\n (progress.total.loaded - startLoadedRef.current) /\n duration\n )\n : 0;\n const resAvg =\n progress.total.loaded > 0\n ? Math.floor(progress.total.loaded / durationTotal)\n : 0;\n\n startLoadedRef.current = progress.total.loaded;\n uploader.lastTime = Date.now();\n return [res, resAvg];\n }, [progress]);\n\n const retry = () => {\n uploader.reset();\n uploader.start();\n };\n\n return { status, error, progress, speed, speedAvg, retry };\n}\n","import React, { useState } from \"react\";\nimport {\n Button,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n Input,\n InputLabel,\n makeStyles,\n} from \"@material-ui/core\";\nimport FormControl from \"@material-ui/core/FormControl\";\nimport Auth from \"../../middleware/Auth\";\nimport { useTranslation } from \"react-i18next\";\n\nconst useStyles = makeStyles((theme) => ({}));\n\nexport default function ConcurrentOptionDialog({ open, onClose, onSave }) {\n const { t } = useTranslation();\n const [count, setCount] = useState(\n Auth.GetPreferenceWithDefault(\"concurrent_limit\", \"5\")\n );\n const classes = useStyles();\n\n return (\n \n \n {t(\"uploader.setConcurrent\")}\n \n\n \n \n \n {t(\"uploader.concurrentTaskNumber\")}\n \n setCount(e.target.value)}\n />\n \n \n\n \n \n
\n onSave(count)}\n >\n {t(\"ok\", { ns: \"common\" })}\n \n
\n
\n \n );\n}\n","import {\n Icon,\n ListItemIcon,\n makeStyles,\n Menu,\n MenuItem,\n Tooltip,\n} from \"@material-ui/core\";\nimport React, { useCallback, useMemo, useState } from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport API from \"../../../middleware/Api\";\nimport { TaskType } from \"../core/types\";\nimport { refreshStorage, toggleSnackbar } from \"../../../redux/explorer\";\nimport Divider from \"@material-ui/core/Divider\";\nimport CheckIcon from \"@material-ui/icons/Check\";\nimport { DeleteEmpty } from \"mdi-material-ui\";\nimport DeleteIcon from \"@material-ui/icons/Delete\";\nimport ConcurrentOptionDialog from \"../../Modals/ConcurrentOption\";\nimport Auth from \"../../../middleware/Auth\";\nimport { ClearAll, Replay } from \"@material-ui/icons\";\nimport { useTranslation } from \"react-i18next\";\n\nconst useStyles = makeStyles((theme) => ({\n icon: {\n minWidth: 38,\n },\n}));\n\nexport default function MoreActions({\n anchorEl,\n onClose,\n uploadManager,\n deleteTask,\n useAvgSpeed,\n setUseAvgSpeed,\n filter,\n setFilter,\n sorter,\n setSorter,\n cleanFinished,\n retryFailed,\n}) {\n const { t } = useTranslation(\"application\", { keyPrefix: \"uploader\" });\n const classes = useStyles();\n const dispatch = useDispatch();\n const [concurrentDialog, setConcurrentDialog] = useState(false);\n const ToggleSnackbar = useCallback(\n (vertical, horizontal, msg, color) =>\n dispatch(toggleSnackbar(vertical, horizontal, msg, color)),\n [dispatch]\n );\n const RefreshStorage = useCallback(\n () => dispatch(refreshStorage()),\n [dispatch]\n );\n\n const actionClicked = (next) => () => {\n onClose();\n next();\n };\n\n const cleanupSessions = () => {\n uploadManager.cleanupSessions();\n API.delete(\"/file/upload\")\n .then((response) => {\n if (response.rawData.code === 0) {\n ToggleSnackbar(\n \"top\",\n \"right\",\n t(\"uploadSessionCleaned\"),\n \"success\"\n );\n } else {\n ToggleSnackbar(\n \"top\",\n \"right\",\n response.rawData.msg,\n \"warning\"\n );\n }\n deleteTask((u) => u.task.type !== TaskType.resumeHint);\n RefreshStorage();\n })\n .catch((error) => {\n ToggleSnackbar(\"top\", \"right\", error.message, \"error\");\n });\n };\n\n const open = Boolean(anchorEl);\n const id = open ? \"uploader-action-popover\" : undefined;\n\n const listItems = useMemo(\n () => [\n {\n tooltip: t(\"hideCompletedTooltip\"),\n onClick: () =>\n setFilter(filter === \"default\" ? \"ongoing\" : \"default\"),\n icon: filter !== \"default\" ? : ,\n text: t(\"hideCompleted\"),\n divider: true,\n },\n {\n tooltip: t(\"addTimeAscTooltip\"),\n onClick: () => setSorter(\"default\"),\n icon: sorter === \"default\" ? : ,\n text: t(\"addTimeAsc\"),\n divider: false,\n },\n {\n tooltip: t(\"addTimeDescTooltip\"),\n onClick: () => setSorter(\"reverse\"),\n icon: sorter === \"reverse\" ? : ,\n text: t(\"addTimeDesc\"),\n divider: true,\n },\n {\n tooltip: t(\"showInstantSpeedTooltip\"),\n onClick: () => setUseAvgSpeed(false),\n icon: useAvgSpeed ? : ,\n text: t(\"showInstantSpeed\"),\n divider: false,\n },\n {\n tooltip: t(\"showAvgSpeedTooltip\"),\n onClick: () => setUseAvgSpeed(true),\n icon: !useAvgSpeed ? : ,\n text: t(\"showAvgSpeed\"),\n divider: true,\n },\n {\n tooltip: t(\"cleanAllSessionTooltip\"),\n onClick: () => cleanupSessions(),\n icon: ,\n text: t(\"cleanAllSession\"),\n divider: false,\n },\n {\n tooltip: t(\"cleanCompletedTooltip\"),\n onClick: () => cleanFinished(),\n icon: ,\n text: t(\"cleanCompleted\"),\n divider: false,\n },\n {\n tooltip: t(\"retryFailedTasksTooltip\"),\n onClick: () => retryFailed(),\n icon: ,\n text: t(\"retryFailedTasks\"),\n divider: true,\n },\n {\n tooltip: t(\"setConcurrentTooltip\"),\n onClick: () => setConcurrentDialog(true),\n icon: ,\n text: t(\"setConcurrent\"),\n divider: false,\n },\n ],\n [\n useAvgSpeed,\n setUseAvgSpeed,\n sorter,\n setSorter,\n filter,\n setFilter,\n cleanFinished,\n ]\n );\n\n const onConcurrentLimitSave = (val) => {\n val = parseInt(val);\n if (val > 0) {\n Auth.SetPreference(\"concurrent_limit\", val);\n uploadManager.changeConcurrentLimit(parseInt(val));\n }\n setConcurrentDialog(false);\n };\n\n return (\n <>\n \n {listItems.map((item) => (\n <>\n \n \n \n {item.icon}\n \n {item.text}\n \n \n {item.divider && }\n \n ))}\n \n setConcurrentDialog(false)}\n onSave={onConcurrentLimitSave}\n />\n \n );\n}\n","import React, { useMemo, useState } from \"react\";\nimport {\n Accordion,\n AccordionDetails,\n AppBar,\n Dialog,\n DialogContent,\n Fade,\n IconButton,\n makeStyles,\n Slide,\n Toolbar,\n Tooltip,\n Typography,\n} from \"@material-ui/core\";\nimport { useTheme } from \"@material-ui/core/styles\";\nimport useMediaQuery from \"@material-ui/core/useMediaQuery\";\nimport CloseIcon from \"@material-ui/icons/Close\";\nimport ExpandMoreIcon from \"@material-ui/icons/ExpandLess\";\nimport AddIcon from \"@material-ui/icons/Add\";\nimport classnames from \"classnames\";\nimport UploadTask from \"./UploadTask\";\nimport { MoreHoriz } from \"@material-ui/icons\";\nimport MoreActions from \"./MoreActions\";\nimport { useSelector } from \"react-redux\";\nimport { Virtuoso } from \"react-virtuoso\";\nimport Nothing from \"../../Placeholder/Nothing\";\nimport { lighten } from \"@material-ui/core/styles/colorManipulator\";\nimport { Status } from \"../core/uploader/base\";\nimport Auth from \"../../../middleware/Auth\";\nimport { useTranslation } from \"react-i18next\";\nimport { useUpload } from \"../UseUpload\";\n\nconst Transition = React.forwardRef(function Transition(props, ref) {\n return ;\n});\n\nconst useStyles = makeStyles((theme) => ({\n rootOverwrite: {\n top: \"auto!important\",\n left: \"auto!important\",\n },\n appBar: {\n position: \"relative\",\n },\n flex: {\n flex: 1,\n },\n popup: {\n alignItems: \"flex-end\",\n justifyContent: \"flex-end\",\n },\n dialog: {\n margin: 0,\n right: 10,\n bottom: 10,\n zIndex: 9999,\n position: \"fixed\",\n inset: \"-1!important\",\n },\n paddingZero: {\n padding: 0,\n },\n dialogContent: {\n [theme.breakpoints.up(\"md\")]: {\n width: 500,\n minHeight: 300,\n maxHeight: \"calc(100vh - 140px)\",\n },\n padding: 0,\n paddingTop: \"0!important\",\n },\n virtualList: {\n height: \"100%\",\n maxHeight: \"calc(100vh - 56px)\",\n [theme.breakpoints.up(\"md\")]: {\n minHeight: 300,\n maxHeight: \"calc(100vh - 140px)\",\n },\n },\n expandIcon: {\n transform: \"rotate(0deg)\",\n transition: theme.transitions.create(\"transform\", {\n duration: theme.transitions.duration.shortest,\n }),\n },\n expandIconExpanded: {\n transform: \"rotate(180deg)\",\n },\n toolbar: {\n paddingLeft: theme.spacing(1),\n paddingRight: theme.spacing(1),\n },\n progress: {\n transition: \"width .4s linear\",\n zIndex: -1,\n height: \"100%\",\n position: \"absolute\",\n left: 0,\n top: 0,\n },\n}));\n\nconst sorters = {\n default: (a, b) => a.id - b.id,\n reverse: (a, b) => b.id - a.id,\n};\n\nconst filters = {\n default: (u) => true,\n ongoing: (u) => u.status < Status.finished,\n};\n\nexport default function TaskList({\n open,\n onClose,\n selectFile,\n taskList,\n onCancel,\n uploadManager,\n progress,\n setUploaders,\n}) {\n const { t } = useTranslation(\"application\", { keyPrefix: \"uploader\" });\n const classes = useStyles();\n const theme = useTheme();\n const fullScreen = useMediaQuery(theme.breakpoints.down(\"sm\"));\n const path = useSelector((state) => state.navigator.path);\n const [expanded, setExpanded] = useState(true);\n const [useAvgSpeed, setUseAvgSpeed] = useState(\n Auth.GetPreferenceWithDefault(\"use_avg_speed\", true)\n );\n const [anchorEl, setAnchorEl] = useState(null);\n const [filter, setFilter] = useState(\n Auth.GetPreferenceWithDefault(\"task_filter\", \"default\")\n );\n const [sorter, setSorter] = useState(\n Auth.GetPreferenceWithDefault(\"task_sorter\", \"default\")\n );\n const [refreshList, setRefreshList] = useState(false);\n\n const handleActionClick = (event) => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleActionClose = () => {\n setAnchorEl(null);\n };\n\n const close = (e, reason) => {\n if (reason !== \"backdropClick\") {\n onClose();\n } else {\n setExpanded(false);\n }\n };\n const handlePanelChange = (event, isExpanded) => {\n setExpanded(isExpanded);\n };\n\n useMemo(() => {\n if (open) {\n setExpanded(true);\n }\n }, [taskList]);\n\n const progressBar = useMemo(\n () =>\n progress.totalSize > 0 ? (\n 0 && !expanded}>\n
\n \n
\n
\n ) : null,\n [progress, expanded, classes, theme]\n );\n\n const list = useMemo(() => {\n const currentList = taskList\n .filter(filters[filter])\n .sort(sorters[sorter]);\n if (currentList.length === 0) {\n return ;\n }\n\n return (\n (\n setRefreshList((r) => !r)}\n />\n )}\n />\n );\n }, [\n classes,\n taskList,\n useAvgSpeed,\n fullScreen,\n filter,\n sorter,\n refreshList,\n ]);\n\n const retryFailed = () => {\n taskList.forEach((task) => {\n if (task.status === Status.error) {\n task.reset();\n task.start();\n }\n });\n };\n\n return (\n <>\n {\n Auth.SetPreference(\"use_avg_speed\", v);\n setUseAvgSpeed(v);\n }}\n filter={filter}\n sorter={sorter}\n setFilter={(v) => {\n Auth.SetPreference(\"task_filter\", v);\n setFilter(v);\n }}\n setSorter={(v) => {\n Auth.SetPreference(\"task_sorter\", v);\n setSorter(v);\n }}\n retryFailed={retryFailed}\n cleanFinished={() =>\n setUploaders((u) => u.filter(filters[\"ongoing\"]))\n }\n />\n \n \n \n {progressBar}\n \n \n \n \n \n \n \n {t(\"uploadTasks\")}\n \n \n \n \n \n \n \n selectFile(path)}\n >\n \n \n \n {!fullScreen && (\n \n setExpanded(!expanded)}\n >\n \n \n \n )}\n \n \n \n \n {list}\n \n \n \n \n \n );\n}\n","import React from \"react\";\nimport Backdrop from \"@material-ui/core/Backdrop\";\nimport { createStyles, makeStyles } from \"@material-ui/core/styles\";\nimport UploadIcon from \"@material-ui/icons/CloudUpload\";\nimport { Typography } from \"@material-ui/core\";\nimport { useTranslation } from \"react-i18next\";\n\nconst useStyles = makeStyles((theme) =>\n createStyles({\n backdrop: {\n zIndex: theme.zIndex.drawer + 1,\n color: \"#fff\",\n flexDirection: \"column\",\n },\n })\n);\n\nexport function DropFileBackground({ open }) {\n const classes = useStyles();\n const { t } = useTranslation();\n return (\n \n
\n \n
\n
\n \n {t(\"uploader.dropFileHere\")}\n \n
\n
\n );\n}\n","import React, { useCallback, useEffect, useMemo, useState } from \"react\";\nimport UploadManager, { SelectType } from \"./core\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport UploadButton from \"../Dial/Create\";\nimport pathHelper from \"../../utils/page\";\nimport { useLocation } from \"react-router-dom\";\nimport { UploaderError } from \"./core/errors\";\nimport TaskList from \"./Popup/TaskList\";\nimport { Status } from \"./core/uploader/base\";\nimport { DropFileBackground } from \"../Placeholder/DropFile\";\nimport {\n refreshFileList,\n refreshStorage,\n toggleSnackbar,\n} from \"../../redux/explorer\";\nimport Auth from \"../../middleware/Auth\";\nimport { useTranslation } from \"react-i18next\";\n\nlet totalProgressCollector = null;\nlet lastProgressStart = -1;\nlet dragCounter = 0;\n\nexport default function Uploader() {\n const { t } = useTranslation(\"application\", { keyPrefix: \"uploader\" });\n const [uploaders, setUploaders] = useState([]);\n const [taskListOpen, setTaskListOpen] = useState(false);\n const [dropBgOpen, setDropBgOpen] = useState(0);\n const [totalProgress, setTotalProgress] = useState({\n totalSize: 0,\n processedSize: 0,\n total: 0,\n processed: 0,\n });\n const search = useSelector((state) => state.explorer.search);\n const policy = useSelector((state) => state.explorer.currentPolicy);\n const isLogin = useSelector((state) => state.viewUpdate.isLogin);\n const path = useSelector((state) => state.navigator.path);\n const fileSelectCounter = useSelector(\n (state) => state.viewUpdate.openFileSelector\n );\n const folderSelectCounter = useSelector(\n (state) => state.viewUpdate.openFolderSelector\n );\n const location = useLocation();\n const dispatch = useDispatch();\n const ToggleSnackbar = useCallback(\n (vertical, horizontal, msg, color) =>\n dispatch(toggleSnackbar(vertical, horizontal, msg, color)),\n [dispatch]\n );\n const RefreshFileList = useCallback(() => dispatch(refreshFileList()), [\n dispatch,\n ]);\n const RefreshStorage = useCallback(() => dispatch(refreshStorage()), [\n dispatch,\n ]);\n\n const enableUploader = useMemo(\n () => pathHelper.isHomePage(location.pathname) && isLogin && !search,\n [location.pathname, isLogin, search]\n );\n\n const taskAdded = (original = null) => (tasks) => {\n if (original !== null) {\n if (tasks.length !== 1 || tasks[0].key() !== original.key()) {\n ToggleSnackbar(\n \"top\",\n \"right\",\n t(\"fileNotMatchError\"),\n \"warning\"\n );\n return;\n }\n }\n\n tasks.forEach((t) => t.start());\n\n setTaskListOpen(true);\n setUploaders((uploaders) => {\n if (original !== null) {\n uploaders = uploaders.filter((u) => u.key() !== original.key());\n }\n\n return [...uploaders, ...tasks];\n });\n };\n\n const uploadManager = useMemo(() => {\n return new UploadManager({\n logLevel: \"INFO\",\n concurrentLimit: parseInt(\n Auth.GetPreferenceWithDefault(\"concurrent_limit\", \"5\")\n ),\n dropZone: document.querySelector(\"body\"),\n onToast: (type, msg) => {\n ToggleSnackbar(\"top\", \"right\", msg, type);\n },\n onDropOver: (e) => {\n dragCounter++;\n setDropBgOpen((value) => !value);\n },\n onDropLeave: (e) => {\n dragCounter--;\n setDropBgOpen((value) => !value);\n },\n onDropFileAdded: taskAdded(),\n });\n }, []);\n\n useEffect(() => {\n uploadManager.setPolicy(policy, path);\n }, [policy]);\n\n useEffect(() => {\n const unfinished = uploadManager.resumeTasks();\n setUploaders((uploaders) => [...uploaders, ...unfinished]);\n if (!totalProgressCollector) {\n totalProgressCollector = setInterval(() => {\n const progress = {\n totalSize: 0,\n processedSize: 0,\n total: 0,\n processed: 0,\n };\n setUploaders((uploaders) => {\n uploaders.forEach((u) => {\n if (u.id <= lastProgressStart) {\n return;\n }\n\n progress.totalSize += u.task.size;\n progress.total += 1;\n\n if (\n u.status === Status.finished ||\n u.status === Status.canceled ||\n u.status === Status.error\n ) {\n progress.processedSize += u.task.size;\n progress.processed += 1;\n }\n\n if (\n u.status === Status.added ||\n u.status === Status.initialized ||\n u.status === Status.queued ||\n u.status === Status.preparing ||\n u.status === Status.processing ||\n u.status === Status.finishing\n ) {\n progress.processedSize += u.progress\n ? u.progress.total.loaded\n : 0;\n }\n });\n\n if (\n progress.total > 0 &&\n progress.processed === progress.total\n ) {\n lastProgressStart = uploaders[uploaders.length - 1].id;\n }\n return uploaders;\n });\n\n if (\n progress.total > 0 &&\n progress.total === progress.processed\n ) {\n RefreshFileList();\n RefreshStorage();\n }\n\n setTotalProgress(progress);\n }, 2000);\n }\n }, []);\n\n const selectFile = (path, type = SelectType.File, original = null) => {\n setTaskListOpen(true);\n\n // eslint-disable-next-line no-unreachable\n uploadManager\n .select(path, type)\n .then(taskAdded(original))\n .catch((e) => {\n if (e instanceof UploaderError) {\n ToggleSnackbar(\"top\", \"right\", e.Message(), \"warning\");\n } else {\n ToggleSnackbar(\n \"top\",\n \"right\",\n t(\"unknownError\", { msg: e.message }),\n \"error\"\n );\n }\n });\n };\n\n useEffect(() => {\n if (fileSelectCounter > 0) {\n selectFile(path);\n }\n }, [fileSelectCounter]);\n\n useEffect(() => {\n if (folderSelectCounter > 0) {\n selectFile(path, SelectType.Directory);\n }\n }, [folderSelectCounter]);\n\n const deleteTask = (filter) => {\n setUploaders((uploaders) => uploaders.filter(filter));\n };\n\n return (\n <>\n {enableUploader && (\n <>\n 0} />\n setTaskListOpen(true)}\n />\n setTaskListOpen(false)}\n setUploaders={setUploaders}\n />\n \n )}\n \n );\n}\n","import dayjs from \"dayjs\";\nimport timezone from \"dayjs/plugin/timezone\";\nimport utc from \"dayjs/plugin/utc\";\nimport Auth from \"../middleware/Auth\";\nimport i18next from \"../i18n\";\n\ndayjs.extend(utc);\ndayjs.extend(timezone);\n\nlet userTimezone = \"\";\ntry {\n userTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone;\n} catch (e) {\n console.log(e);\n}\n\nif (!userTimezone || userTimezone==\"Etc/Unknown\") {\n userTimezone = \"Asia/Shanghai\";\n}\n\nconst preferTimeZone = Auth.GetPreference(\"timeZone\");\nexport let timeZone = preferTimeZone ? preferTimeZone : userTimezone;\n\nexport function refreshTimeZone() {\n timeZone = Auth.GetPreference(\"timeZone\");\n timeZone = timeZone ? timeZone : userTimezone;\n}\n\nexport function formatLocalTime(time) {\n return i18next.t(\"intlDateTime\", {\n ns: \"common\",\n val: dayjs(time).tz(timeZone).toDate(),\n formatParams: {\n val: {\n year: \"numeric\",\n month: \"numeric\",\n day: \"numeric\",\n hour: \"numeric\",\n minute: \"numeric\",\n second: \"numeric\",\n },\n },\n });\n}\n\nexport function validateTimeZone(name) {\n try {\n dayjs().tz(name).format();\n } catch (e) {\n return false;\n }\n return true;\n}\n","import { ThunkAction } from \"redux-thunk\";\nimport { AnyAction } from \"redux\";\nimport Auth from \"../../middleware/Auth\";\nimport { askForOption } from \"../explorer/async\";\nimport i18next, { languages } from \"../../i18n\";\n\nexport interface ActionSetSubtitle extends AnyAction {\n type: \"SET_SUBTITLE\";\n title: string;\n}\n\nexport const setSubtitle = (title: string): ActionSetSubtitle => {\n return {\n type: \"SET_SUBTITLE\",\n title,\n };\n};\n\nexport const closeContextMenu = () => {\n return {\n type: \"CLOSE_CONTEXT_MENU\",\n };\n};\n\nexport const changeContextMenu = (type: string, open: boolean) => {\n return {\n type: \"CHANGE_CONTEXT_MENU\",\n menuType: type,\n open: open,\n };\n};\n\nexport const changeSubTitle = (\n title: string\n): ThunkAction => {\n return (dispatch, getState) => {\n const state = getState();\n document.title =\n title === null || title === undefined\n ? state.siteConfig.title\n : title + \" - \" + state.siteConfig.title;\n dispatch(setSubtitle(title));\n };\n};\n\nexport const setOptionModal = (option: any) => {\n return {\n type: \"SET_OPTION_MODAL\",\n option: option,\n };\n};\n\nexport const openFileSelector = () => {\n return {\n type: \"OPEN_FILE_SELECTOR\",\n };\n};\n\nexport const openFolderSelector = () => {\n return {\n type: \"OPEN_FOLDER_SELECTOR\",\n };\n};\n\nexport const setPagination = (pagination) => {\n return {\n type: \"SET_PAGINATION\",\n pagination: pagination,\n };\n};\n\nexport const setShareInfo = (shareInfo) => {\n return {\n type: \"SET_SHARE_INFO\",\n shareInfo: shareInfo,\n };\n};\n\nexport const changePageSize = (\n size: number\n): ThunkAction => {\n return (dispatch, getState) => {\n const {\n explorer: { dirList, fileList },\n viewUpdate: { pagination },\n } = getState();\n const total = dirList.length + fileList.length;\n let page = pagination.page;\n if (pagination.page * size > total) {\n page = Math.max(Math.ceil(total / size), 1);\n } else if (size === -1) {\n page = 1;\n }\n Auth.SetPreference(\"pagination\", size);\n dispatch(\n setPagination({\n ...pagination,\n size: size,\n page: page,\n })\n );\n };\n};\n\nexport const selectLanguage = (): ThunkAction => {\n return async (dispatch, getState) => {\n let option: any;\n let lng = \"\";\n try {\n const allOptions = languages.map((e) => {\n return {\n key: e.code,\n name: e.displayName,\n };\n });\n option = await dispatch(\n askForOption(allOptions, i18next.t(\"setting.language\"))\n );\n } catch (e) {\n console.log(e);\n return;\n }\n\n lng = option.key;\n await i18next.changeLanguage(lng);\n };\n};\n","import React from \"react\";\nimport { mediaType } from \"../../config\";\nimport ImageIcon from \"@material-ui/icons/PhotoSizeSelectActual\";\nimport VideoIcon from \"@material-ui/icons/Videocam\";\nimport AudioIcon from \"@material-ui/icons/Audiotrack\";\nimport PdfIcon from \"@material-ui/icons/PictureAsPdf\";\nimport {\n Android,\n FileExcelBox,\n FilePowerpointBox,\n FileWordBox,\n LanguageC,\n LanguageCpp,\n LanguageGo,\n LanguageJavascript,\n LanguagePhp,\n LanguagePython,\n MagnetOn,\n ScriptText,\n WindowRestore,\n ZipBox,\n} from \"mdi-material-ui\";\nimport FileShowIcon from \"@material-ui/icons/InsertDriveFile\";\nimport { lighten } from \"@material-ui/core/styles\";\nimport useTheme from \"@material-ui/core/styles/useTheme\";\nimport { Avatar } from \"@material-ui/core\";\nimport { MenuBook } from \"@material-ui/icons\";\n\nconst icons = {\n audio: {\n color: \"#651fff\",\n icon: AudioIcon,\n },\n video: {\n color: \"#d50000\",\n icon: VideoIcon,\n },\n image: {\n color: \"#d32f2f\",\n icon: ImageIcon,\n },\n pdf: {\n color: \"#f44336\",\n icon: PdfIcon,\n },\n word: {\n color: \"#538ce5\",\n icon: FileWordBox,\n },\n ppt: {\n color: \"rgb(239, 99, 63)\",\n icon: FilePowerpointBox,\n },\n excel: {\n color: \"#4caf50\",\n icon: FileExcelBox,\n },\n text: {\n color: \"#607d8b\",\n icon: ScriptText,\n },\n torrent: {\n color: \"#5c6bc0\",\n icon: MagnetOn,\n },\n zip: {\n color: \"#f9a825\",\n icon: ZipBox,\n },\n excute: {\n color: \"#1a237e\",\n icon: WindowRestore,\n },\n android: {\n color: \"#8bc34a\",\n icon: Android,\n },\n file: {\n color: \"#607d8b\",\n icon: FileShowIcon,\n },\n php: {\n color: \"#777bb3\",\n icon: LanguagePhp,\n },\n go: {\n color: \"#16b3da\",\n icon: LanguageGo,\n },\n python: {\n color: \"#3776ab\",\n icon: LanguagePython,\n },\n c: {\n color: \"#a8b9cc\",\n icon: LanguageC,\n },\n cpp: {\n color: \"#004482\",\n icon: LanguageCpp,\n },\n js: {\n color: \"#f4d003\",\n icon: LanguageJavascript,\n },\n epub: {\n color: \"#81b315\",\n icon: MenuBook,\n },\n};\n\nconst getColor = (theme, color) =>\n theme.palette.type === \"light\" ? color : lighten(color, 0.2);\n\nlet color;\n\nconst TypeIcon = (props) => {\n const theme = useTheme();\n\n const fileSuffix = props.fileName.split(\".\").pop().toLowerCase();\n let fileType = \"file\";\n Object.keys(mediaType).forEach((k) => {\n if (mediaType[k].indexOf(fileSuffix) !== -1) {\n fileType = k;\n }\n });\n const IconComponent = icons[fileType].icon;\n color = getColor(theme, icons[fileType].color);\n if (props.getColorValue) {\n props.getColorValue(color);\n }\n\n return (\n <>\n {props.isUpload && (\n \n \n \n )}\n {!props.isUpload && (\n \n )}\n \n );\n};\n\nexport default TypeIcon;\n","// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\nfunction registerValidSW(swUrl, config) {\n navigator.serviceWorker\n .register(swUrl)\n .then((registration) => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n if (installingWorker == null) {\n return;\n }\n installingWorker.onstatechange = () => {\n if (installingWorker.state === \"installed\") {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log(\n \"New content is available and will be used when all \" +\n \"tabs for this page are closed. See https://bit.ly/CRA-PWA.\"\n );\n\n // Execute callback\n if (config && config.onUpdate) {\n config.onUpdate(registration);\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log(\"Content is cached for offline use.\");\n\n // Execute callback\n if (config && config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch((error) => {\n console.error(\"Error during service worker registration:\", error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl)\n .then((response) => {\n // Ensure service worker exists, and that we really are getting a JS file.\n const contentType = response.headers.get(\"content-type\");\n if (\n response.status === 404 ||\n (contentType != null &&\n contentType.indexOf(\"javascript\") === -1)\n ) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then((registration) => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config);\n }\n })\n .catch(() => {\n console.log(\n \"No internet connection found. App is running in offline mode.\"\n );\n });\n}\n\nconst isLocalhost = Boolean(\n window.location.hostname === \"localhost\" ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === \"[::1]\" ||\n // 127.0.0.1/8 is considered localhost for IPv4.\n window.location.hostname.match(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )\n);\n\nexport function register(config) {\n if (process.env.NODE_ENV === \"production\" && \"serviceWorker\" in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener(\"load\", () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n \"This web app is being served cache-first by a service \" +\n \"worker. To learn more, visit https://bit.ly/CRA-PWA\"\n );\n });\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nexport function unregister() {\n if (\"serviceWorker\" in navigator) {\n navigator.serviceWorker.ready.then((registration) => {\n registration.unregister();\n });\n }\n}\n","import React from \"react\";\nimport Auth from \"./Auth\";\nimport { Route, Redirect } from \"react-router-dom\";\n\nfunction AuthRoute({ children, ...rest }) {\n return (\n \n Auth.Check(rest.isLogin) ? (\n children\n ) : (\n \n )\n }\n />\n );\n}\n\nexport default AuthRoute;\n","import React from \"react\";\nimport Auth from \"./Auth\";\nimport { Route, Redirect } from \"react-router-dom\";\n\nfunction NoAuthRoute({ children, ...rest }) {\n return (\n \n !Auth.Check(rest.isLogin) ? (\n children\n ) : (\n \n )\n }\n />\n );\n}\n\nexport default NoAuthRoute;\n","import React from \"react\";\nimport { Facebook } from \"react-content-loader\";\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\n\nconst useStyles = makeStyles((theme) => ({\n loader: {\n width: \"80%\",\n [theme.breakpoints.up(\"md\")]: {\n width: \" 50%\",\n },\n\n marginTop: 30,\n },\n}));\n\nconst MyLoader = (props) => {\n return (\n \n );\n};\n\nfunction PageLoading() {\n const theme = useTheme();\n const classes = useStyles();\n\n return (\n \n \n \n );\n}\n\nexport default PageLoading;\n","import React from \"react\";\nimport SentimentVeryDissatisfiedIcon from \"@material-ui/icons/SentimentVeryDissatisfied\";\nimport { lighten, makeStyles } from \"@material-ui/core/styles\";\n\nconst useStyles = makeStyles((theme) => ({\n icon: {\n fontSize: \"160px\",\n },\n emptyContainer: {\n bottom: \"0\",\n height: \"300px\",\n margin: \"50px auto\",\n width: \"300px\",\n color: lighten(theme.palette.text.disabled, 0.4),\n textAlign: \"center\",\n paddingTop: \"20px\",\n },\n emptyInfoBig: {\n fontSize: \"25px\",\n color: lighten(theme.palette.text.disabled, 0.4),\n },\n}));\n\nexport default function Notice(props) {\n const classes = useStyles();\n return (\n
\n \n
{props.msg}
\n
\n );\n}\n","import React from \"react\";\nimport ContentLoader from \"react-content-loader\";\n\nconst MyLoader = () => (\n \n \n \n);\n\nfunction captchaPlacholder() {\n return ;\n}\n\nexport default captchaPlacholder;\n","import React, {\n forwardRef,\n useCallback,\n useEffect,\n useRef,\n useState,\n} from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport API from \"../middleware/Api\";\nimport {\n FormControl,\n Input,\n InputAdornment,\n InputLabel,\n makeStyles,\n TextField,\n} from \"@material-ui/core\";\nimport Placeholder from \"../component/Placeholder/Captcha\";\nimport { defaultValidate, useStyle } from \"./useCaptcha\";\nimport { toggleSnackbar } from \"../redux/explorer\";\nimport { useTranslation } from \"react-i18next\";\n\nconst NormalCaptcha = forwardRef(function NormalCaptcha(\n { captchaRef, setLoading },\n ref\n) {\n const { t } = useTranslation();\n const classes = useStyle();\n\n const [captcha, setCaptcha] = useState(\"\");\n const [captchaData, setCaptchaData] = useState(null);\n\n const dispatch = useDispatch();\n const ToggleSnackbar = useCallback(\n (vertical, horizontal, msg, color) =>\n dispatch(toggleSnackbar(vertical, horizontal, msg, color)),\n [dispatch]\n );\n\n const refreshCaptcha = () => {\n API.get(\"/site/captcha\")\n .then((response) => {\n setCaptchaData(response.data);\n setLoading(false);\n })\n .catch((error) => {\n ToggleSnackbar(\n \"top\",\n \"right\",\n t(\"login.captchaError\", { message: error.message }),\n \"error\"\n );\n });\n };\n\n useEffect(() => {\n ref.current = refreshCaptcha;\n refreshCaptcha();\n }, []);\n\n useEffect(() => {\n captchaRef.current.captchaCode = captcha;\n }, [captcha]);\n\n return (\n
\n \n setCaptcha(e.target.value)}\n value={captcha}\n autoComplete\n InputProps={{\n endAdornment: (\n \n \n {captchaData === null && }\n {captchaData !== null && (\n \n )}\n
\n \n ),\n }}\n />\n {\" \"}\n \n );\n});\n\nexport default function useNormalCaptcha(captchaRefreshRef, setLoading) {\n const isValidate = useRef({\n isValidate: true,\n });\n\n const captchaParamsRef = useRef({\n captchaCode: \"\",\n });\n\n const CaptchaRender = useCallback(\n function Normal() {\n return (\n \n );\n },\n [captchaParamsRef, captchaRefreshRef, setLoading]\n );\n\n return {\n isValidate,\n validate: defaultValidate,\n captchaParamsRef,\n CaptchaRender,\n };\n}\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nexport default class ReCAPTCHA extends React.Component {\n constructor() {\n super();\n this.handleExpired = this.handleExpired.bind(this);\n this.handleErrored = this.handleErrored.bind(this);\n this.handleChange = this.handleChange.bind(this);\n this.handleRecaptchaRef = this.handleRecaptchaRef.bind(this);\n }\n\n getValue() {\n if (this.props.grecaptcha && this._widgetId !== undefined) {\n return this.props.grecaptcha.getResponse(this._widgetId);\n }\n return null;\n }\n\n getWidgetId() {\n if (this.props.grecaptcha && this._widgetId !== undefined) {\n return this._widgetId;\n }\n return null;\n }\n\n execute() {\n const { grecaptcha } = this.props;\n\n if (grecaptcha && this._widgetId !== undefined) {\n return grecaptcha.execute(this._widgetId);\n } else {\n this._executeRequested = true;\n }\n }\n\n reset() {\n if (this.props.grecaptcha && this._widgetId !== undefined) {\n this.props.grecaptcha.reset(this._widgetId);\n }\n }\n\n handleExpired() {\n if (this.props.onExpired) {\n this.props.onExpired();\n } else {\n this.handleChange(null);\n }\n }\n\n handleErrored() {\n if (this.props.onErrored) this.props.onErrored();\n }\n\n handleChange(token) {\n if (this.props.onChange) this.props.onChange(token);\n }\n\n explicitRender() {\n if (\n this.props.grecaptcha &&\n this.props.grecaptcha.render &&\n this._widgetId === undefined\n ) {\n const wrapper = document.createElement(\"div\");\n this._widgetId = this.props.grecaptcha.render(wrapper, {\n sitekey: this.props.sitekey,\n callback: this.handleChange,\n theme: this.props.theme,\n type: this.props.type,\n tabindex: this.props.tabindex,\n \"expired-callback\": this.handleExpired,\n \"error-callback\": this.handleErrored,\n size: this.props.size,\n stoken: this.props.stoken,\n hl: this.props.hl,\n badge: this.props.badge,\n });\n this.captcha.appendChild(wrapper);\n }\n if (\n this._executeRequested &&\n this.props.grecaptcha &&\n this._widgetId !== undefined\n ) {\n this._executeRequested = false;\n this.execute();\n }\n }\n\n componentDidMount() {\n this.explicitRender();\n }\n\n componentDidUpdate() {\n this.explicitRender();\n }\n\n componentWillUnmount() {\n if (this._widgetId !== undefined) {\n this.delayOfCaptchaIframeRemoving();\n this.reset();\n }\n }\n\n delayOfCaptchaIframeRemoving() {\n const temporaryNode = document.createElement(\"div\");\n document.body.appendChild(temporaryNode);\n temporaryNode.style.display = \"none\";\n\n // move of the recaptcha to a temporary node\n while (this.captcha.firstChild) {\n temporaryNode.appendChild(this.captcha.firstChild);\n }\n\n // delete the temporary node after reset will be done\n setTimeout(() => {\n document.body.removeChild(temporaryNode);\n }, 5000);\n }\n\n handleRecaptchaRef(elem) {\n this.captcha = elem;\n }\n\n render() {\n // consume properties owned by the reCATPCHA, pass the rest to the div so the user can style it.\n /* eslint-disable no-unused-vars */\n /* eslint-disable @typescript-eslint/no-unused-vars */\n const {\n sitekey,\n onChange,\n theme,\n type,\n tabindex,\n onExpired,\n onErrored,\n size,\n stoken,\n grecaptcha,\n badge,\n hl,\n ...childProps\n } = this.props;\n /* eslint-enable no-unused-vars */\n return
;\n }\n}\n\nReCAPTCHA.displayName = \"ReCAPTCHA\";\nReCAPTCHA.propTypes = {\n sitekey: PropTypes.string.isRequired,\n onChange: PropTypes.func,\n grecaptcha: PropTypes.object,\n theme: PropTypes.oneOf([\"dark\", \"light\"]),\n type: PropTypes.oneOf([\"image\", \"audio\"]),\n tabindex: PropTypes.number,\n onExpired: PropTypes.func,\n onErrored: PropTypes.func,\n size: PropTypes.oneOf([\"compact\", \"normal\", \"invisible\"]),\n stoken: PropTypes.string,\n hl: PropTypes.string,\n badge: PropTypes.oneOf([\"bottomright\", \"bottomleft\", \"inline\"]),\n};\nReCAPTCHA.defaultProps = {\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n onChange: () => {},\n theme: \"light\",\n type: \"image\",\n tabindex: 0,\n size: \"normal\",\n badge: \"bottomright\",\n};\n","import ReCAPTCHA from \"./ReCaptchaWrapper\";\nimport makeAsyncScriptLoader from \"react-async-script\";\n\nconst callbackName = \"onloadcallback\";\nconst globalName = \"grecaptcha\";\n\nfunction getURL() {\n const hostname = \"recaptcha.net\";\n return `https://${hostname}/recaptcha/api.js?onload=${callbackName}&render=explicit`;\n}\n\nexport default makeAsyncScriptLoader(getURL, {\n callbackName,\n globalName,\n})(ReCAPTCHA);\n","import React, { useCallback, useEffect, useRef, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { FormControl } from \"@material-ui/core\";\nimport ReCaptcha from \"../component/Login/ReCaptcha\";\nimport { defaultValidate, useStyle } from \"./useCaptcha\";\n\nconst Recaptcha = ({ captchaRef, setLoading }) => {\n const classes = useStyle();\n\n const [captcha, setCaptcha] = useState(\"\");\n\n const reCaptchaKey = useSelector(\n (state) => state.siteConfig.captcha_ReCaptchaKey\n );\n\n useEffect(() => {\n captchaRef.current.captchaCode = captcha;\n }, [captcha]);\n\n useEffect(() => setLoading(false), []);\n\n return (\n
\n \n
\n setCaptcha(value)}\n id=\"captcha\"\n name=\"captcha\"\n />\n
\n
{\" \"}\n
\n );\n};\n\nexport default function useRecaptcha(setLoading) {\n const isValidate = useRef({\n isValidate: true,\n });\n\n const captchaParamsRef = useRef({\n captchaCode: \"\",\n });\n\n const CaptchaRender = useCallback(\n function RecaptchaRender() {\n return (\n \n );\n },\n [captchaParamsRef, setLoading]\n );\n\n return {\n isValidate,\n validate: defaultValidate,\n captchaParamsRef,\n CaptchaRender,\n };\n}\n","import React, { forwardRef, useCallback, useRef } from \"react\";\nimport Script from \"react-load-script\";\nimport { useSelector } from \"react-redux\";\n\nconst TCaptcha = forwardRef(function TCaptcha(\n { captchaRef, setLoading, isValidateRef, submitRef },\n ref\n) {\n const appid = useSelector(\n (state) => state.siteConfig.tcaptcha_captcha_app_id\n );\n const onLoad = () => {\n try {\n ref.current = new window.TencentCaptcha(appid, function (res) {\n if (res.ret === 0) {\n captchaRef.current.ticket = res.ticket;\n captchaRef.current.randstr = res.randstr;\n\n isValidateRef.current.isValidate = true;\n submitRef.current.submit();\n console.log(submitRef);\n } else {\n submitRef.current.setLoading(false);\n }\n });\n } catch (e) {\n console.error(e);\n }\n setLoading(false);\n };\n return (\n \n );\n});\n\nexport default function useTCaptcha(setLoading) {\n const isValidate = useRef({\n isValidate: false,\n });\n const captchaParamsRef = useRef({\n ticket: \"\",\n randstr: \"\",\n });\n const submitRef = useRef({\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n submit: () => {},\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n setLoading: () => {},\n });\n\n const captchaRef = useRef();\n\n const CaptchaRender = useCallback(\n function TCaptchaRender() {\n return (\n \n );\n },\n [captchaParamsRef, setLoading, isValidate, submitRef, captchaRef]\n );\n\n return {\n isValidate: isValidate,\n validate: (submit, setLoading) => {\n submitRef.current.submit = submit;\n submitRef.current.setLoading = setLoading;\n captchaRef.current.show();\n },\n captchaParamsRef,\n CaptchaRender,\n };\n}\n","import { useSelector } from \"react-redux\";\nimport { useRef, useState } from \"react\";\nimport { makeStyles } from \"@material-ui/core\";\nimport useNormalCaptcha from \"./normal\";\nimport useRecaptcha from \"./recaptcha\";\nimport useTCaptcha from \"./tcaptcha\";\n\nexport const useStyle = makeStyles((theme) => ({\n captchaContainer: {\n display: \"flex\",\n marginTop: \"10px\",\n alignItems: \"center\",\n [theme.breakpoints.down(\"sm\")]: {\n marginTop: 0,\n display: \"block\",\n },\n },\n captchaInputContainer: {\n marginTop: 0,\n },\n captchaImageContainer: {\n cursor: \"pointer\",\n marginLeft: \"1rem\",\n [theme.breakpoints.down(\"sm\")]: {\n marginLeft: 0,\n },\n },\n captchaImage: {\n borderRadius: theme.shape.borderRadius,\n height: 48,\n marginTop: 4,\n },\n}));\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/no-empty-function\nexport const defaultValidate = (submit, setLoading) => {};\n\nexport const useCaptcha = () => {\n const captchaType = useSelector((state) => state.siteConfig.captcha_type);\n\n const [captchaLoading, setCaptchaLoading] = useState(true);\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n const captchaRefreshRef = useRef(() => {});\n\n const normal = useNormalCaptcha(captchaRefreshRef, setCaptchaLoading);\n const recaptcha = useRecaptcha(setCaptchaLoading);\n const tcaptcha = useTCaptcha(setCaptchaLoading);\n\n switch (captchaType) {\n case \"normal\":\n return { ...normal, captchaRefreshRef, captchaLoading };\n case \"recaptcha\":\n return { ...recaptcha, captchaRefreshRef, captchaLoading };\n case \"tcaptcha\":\n return { ...tcaptcha, captchaRefreshRef, captchaLoading };\n default:\n return { ...normal, captchaRefreshRef, captchaLoading };\n }\n};\n","import React, { useCallback, useEffect, useState } from \"react\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport LockOutlinedIcon from \"@material-ui/icons/LockOutlined\";\nimport {\n Avatar,\n Button,\n Divider,\n FormControl,\n Link,\n makeStyles,\n Paper,\n TextField,\n Typography,\n} from \"@material-ui/core\";\nimport { Link as RouterLink, useHistory } from \"react-router-dom\";\nimport API from \"../../middleware/Api\";\nimport Auth from \"../../middleware/Auth\";\nimport { bufferDecode, bufferEncode } from \"../../utils/index\";\nimport {\n EmailOutlined,\n Fingerprint,\n VpnKey,\n VpnKeyOutlined,\n} from \"@material-ui/icons\";\nimport VpnIcon from \"@material-ui/icons/VpnKeyOutlined\";\nimport { useLocation } from \"react-router\";\nimport { useCaptcha } from \"../../hooks/useCaptcha\";\nimport {\n applyThemes,\n setSessionStatus,\n toggleSnackbar,\n} from \"../../redux/explorer\";\nimport { useTranslation } from \"react-i18next\";\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\nimport useMediaQuery from \"@material-ui/core/useMediaQuery\";\nimport { useTheme } from \"@material-ui/core/styles\";\n\nconst useStyles = makeStyles((theme) => ({\n layout: {\n width: \"auto\",\n marginTop: \"110px\",\n marginLeft: theme.spacing(3),\n marginRight: theme.spacing(3),\n [theme.breakpoints.up(\"sm\")]: {\n width: 400,\n marginLeft: \"auto\",\n marginRight: \"auto\",\n },\n marginBottom: 110,\n },\n paper: {\n marginTop: theme.spacing(8),\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n padding: `${theme.spacing(2)}px ${theme.spacing(3)}px ${theme.spacing(\n 3\n )}px`,\n },\n avatar: {\n margin: theme.spacing(1),\n backgroundColor: theme.palette.secondary.main,\n },\n form: {\n width: \"100%\", // Fix IE 11 issue.\n marginTop: theme.spacing(1),\n },\n submit: {\n marginTop: theme.spacing(3),\n },\n link: {\n marginTop: \"20px\",\n display: \"flex\",\n width: \"100%\",\n justifyContent: \"space-between\",\n },\n buttonContainer: {\n display: \"flex\",\n },\n authnLink: {\n textAlign: \"center\",\n marginTop: 16,\n },\n}));\n\nfunction useQuery() {\n return new URLSearchParams(useLocation().search);\n}\n\nfunction LoginForm() {\n const { t } = useTranslation();\n\n const [email, setEmail] = useState(\"\");\n const [pwd, setPwd] = useState(\"\");\n const [loading, setLoading] = useState(false);\n const [useAuthn, setUseAuthn] = useState(false);\n const [twoFA, setTwoFA] = useState(false);\n const [faCode, setFACode] = useState(\"\");\n\n const loginCaptcha = useSelector((state) => state.siteConfig.loginCaptcha);\n const registerEnabled = useSelector(\n (state) => state.siteConfig.registerEnabled\n );\n const title = useSelector((state) => state.siteConfig.title);\n const QQLogin = useSelector((state) => state.siteConfig.QQLogin);\n const authn = useSelector((state) => state.siteConfig.authn);\n const theme = useTheme();\n const isMobile = useMediaQuery(theme.breakpoints.down(\"sm\"));\n\n const dispatch = useDispatch();\n const ToggleSnackbar = useCallback(\n (vertical, horizontal, msg, color) =>\n dispatch(toggleSnackbar(vertical, horizontal, msg, color)),\n [dispatch]\n );\n const ApplyThemes = useCallback(\n (theme) => dispatch(applyThemes(theme)),\n [dispatch]\n );\n const SetSessionStatus = useCallback(\n (status) => dispatch(setSessionStatus(status)),\n [dispatch]\n );\n\n const history = useHistory();\n const location = useLocation();\n const {\n captchaLoading,\n isValidate,\n validate,\n CaptchaRender,\n captchaRefreshRef,\n captchaParamsRef,\n } = useCaptcha();\n const query = useQuery();\n\n const classes = useStyles();\n\n useEffect(() => {\n setEmail(query.get(\"username\"));\n }, [location]);\n\n const afterLogin = (data) => {\n Auth.authenticate(data);\n\n // 设置用户主题色\n if (data[\"preferred_theme\"] !== \"\") {\n ApplyThemes(data[\"preferred_theme\"]);\n }\n\n // 设置登录状态\n SetSessionStatus(true);\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n if (query.get(\"redirect\")) {\n history.push(query.get(\"redirect\"));\n } else {\n history.push(\"/home\");\n }\n ToggleSnackbar(\"top\", \"right\", t(\"login.success\"), \"success\");\n\n localStorage.removeItem(\"siteConfigCache\");\n };\n\n const authnLogin = (e) => {\n e.preventDefault();\n if (!navigator.credentials) {\n ToggleSnackbar(\n \"top\",\n \"right\",\n t(\"login.browserNotSupport\"),\n \"warning\"\n );\n\n return;\n }\n\n setLoading(true);\n\n API.get(\"/user/authn/\" + email)\n .then((response) => {\n const credentialRequestOptions = response.data;\n console.log(credentialRequestOptions);\n credentialRequestOptions.publicKey.challenge = bufferDecode(\n credentialRequestOptions.publicKey.challenge\n );\n credentialRequestOptions.publicKey.allowCredentials.forEach(\n function (listItem) {\n listItem.id = bufferDecode(listItem.id);\n }\n );\n\n return navigator.credentials.get({\n publicKey: credentialRequestOptions.publicKey,\n });\n })\n .then((assertion) => {\n const authData = assertion.response.authenticatorData;\n const clientDataJSON = assertion.response.clientDataJSON;\n const rawId = assertion.rawId;\n const sig = assertion.response.signature;\n const userHandle = assertion.response.userHandle;\n\n return API.post(\n \"/user/authn/finish/\" + email,\n JSON.stringify({\n id: assertion.id,\n rawId: bufferEncode(rawId),\n type: assertion.type,\n response: {\n authenticatorData: bufferEncode(authData),\n clientDataJSON: bufferEncode(clientDataJSON),\n signature: bufferEncode(sig),\n userHandle: bufferEncode(userHandle),\n },\n })\n );\n })\n .then((response) => {\n afterLogin(response.data);\n })\n .catch((error) => {\n console.log(error);\n ToggleSnackbar(\"top\", \"right\", error.message, \"warning\");\n })\n .then(() => {\n setLoading(false);\n });\n };\n\n const login = (e) => {\n e.preventDefault();\n setLoading(true);\n if (!isValidate.current.isValidate && loginCaptcha) {\n validate(() => login(e), setLoading);\n return;\n }\n API.post(\"/user/session\", {\n userName: email,\n Password: pwd,\n ...captchaParamsRef.current,\n })\n .then((response) => {\n setLoading(false);\n if (response.rawData.code === 203) {\n setTwoFA(true);\n } else {\n afterLogin(response.data);\n }\n })\n .catch((error) => {\n setLoading(false);\n ToggleSnackbar(\"top\", \"right\", error.message, \"warning\");\n captchaRefreshRef.current();\n });\n };\n\n const initQQLogin = () => {\n setLoading(true);\n API.post(\"/user/qq\")\n .then((response) => {\n window.location.href = response.data;\n })\n .catch((error) => {\n setLoading(false);\n ToggleSnackbar(\"top\", \"right\", error.message, \"warning\");\n });\n };\n\n const twoFALogin = (e) => {\n e.preventDefault();\n setLoading(true);\n API.post(\"/user/2fa\", {\n code: faCode,\n })\n .then((response) => {\n setLoading(false);\n afterLogin(response.data);\n })\n .catch((error) => {\n setLoading(false);\n ToggleSnackbar(\"top\", \"right\", error.message, \"warning\");\n });\n };\n\n return (\n
\n {!twoFA && (\n <>\n \n \n \n \n \n {t(\"login.title\", { title })}\n \n {!useAuthn && (\n
\n \n \n setEmail(e.target.value)\n }\n InputProps={{\n startAdornment: !isMobile && (\n \n \n \n ),\n }}\n autoComplete\n value={email}\n autoFocus\n />\n \n \n setPwd(e.target.value)}\n InputProps={{\n startAdornment: !isMobile && (\n \n \n \n ),\n }}\n value={pwd}\n autoComplete\n />\n \n {loginCaptcha && }\n {QQLogin && (\n
\n \n {t(\"login.signIn\")}\n \n \n {t(\"vas.loginWithQQ\")}\n \n
\n )}\n {!QQLogin && (\n \n {t(\"login.signIn\")}\n \n )}\n \n )}\n {useAuthn && (\n
\n \n \n \n \n ),\n }}\n onChange={(e) =>\n setEmail(e.target.value)\n }\n autoComplete\n value={email}\n autoFocus\n required\n />\n \n \n {t(\"login.continue\")}\n \n \n )}\n \n
\n
\n \n {t(\"login.forgetPassword\")}\n \n
\n
\n {registerEnabled && (\n \n {t(\"login.signUpAccount\")}\n \n )}\n
\n
\n
\n\n {authn && (\n
\n setUseAuthn(!useAuthn)}\n >\n {!useAuthn && (\n <>\n \n {t(\"login.useFIDO2\")}\n \n )}\n {useAuthn && (\n <>\n \n {t(\"login.usePassword\")}\n \n )}\n \n
\n )}\n \n )}\n {twoFA && (\n \n \n \n \n \n {t(\"login.2FA\")}\n \n
\n \n \n setFACode(event.target.value)\n }\n autoComplete\n value={faCode}\n autoFocus\n />\n \n \n {t(\"login.continue\")}\n {\" \"}\n {\" \"}\n \n
\n )}\n
\n );\n}\n\nexport default LoginForm;\n","import React, { useEffect } from \"react\";\nimport ExpandMore from \"@material-ui/icons/ExpandMore\";\nimport { Button } from \"@material-ui/core\";\nimport { makeStyles } from \"@material-ui/core\";\nimport { useDrop } from \"react-dnd\";\nimport classNames from \"classnames\";\nimport MoreIcon from \"@material-ui/icons/MoreHoriz\";\n\nconst useStyles = makeStyles((theme) => ({\n expandMore: {\n color: \"#8d8d8d\",\n },\n active: {\n boxShadow: \"0 0 0 2px \" + theme.palette.primary.light,\n },\n button: {\n textTransform: \"none\",\n },\n}));\n\nexport default function PathButton(props) {\n const inputRef = React.useRef(null);\n\n const [{ canDrop, isOver }, drop] = useDrop({\n accept: \"object\",\n drop: () => {\n if (props.more) {\n inputRef.current.click();\n } else {\n return {\n folder: {\n id: -1,\n path: props.path,\n name: props.folder === \"/\" ? \"\" : props.folder,\n },\n };\n }\n },\n collect: (monitor) => ({\n isOver: monitor.isOver(),\n canDrop: monitor.canDrop(),\n }),\n });\n\n const isActive = canDrop && isOver;\n\n useEffect(() => {\n if (props.more && isActive) {\n inputRef.current.click();\n }\n // eslint-disable-next-line\n }, [isActive]);\n\n const classes = useStyles();\n return (\n \n \n {props.more && }\n {!props.more && (\n <>\n {props.folder}\n {props.last && (\n \n )}\n \n )}\n \n \n );\n}\n","import React, { useEffect } from \"react\";\nimport { makeStyles } from \"@material-ui/core\";\nimport FolderIcon from \"@material-ui/icons/Folder\";\nimport { MenuItem, ListItemIcon, ListItemText } from \"@material-ui/core\";\nimport { useDrop } from \"react-dnd\";\nimport classNames from \"classnames\";\n\nconst useStyles = makeStyles((theme) => ({\n active: {\n border: \"2px solid \" + theme.palette.primary.light,\n },\n}));\n\nexport default function DropDownItem(props) {\n const [{ canDrop, isOver }, drop] = useDrop({\n accept: \"object\",\n drop: () => {\n console.log({\n folder: {\n id: -1,\n path: props.path,\n name: props.folder === \"/\" ? \"\" : props.folder,\n },\n });\n },\n collect: (monitor) => ({\n isOver: monitor.isOver(),\n canDrop: monitor.canDrop(),\n }),\n });\n\n const isActive = canDrop && isOver;\n\n useEffect(() => {\n props.setActiveStatus(props.id, isActive);\n // eslint-disable-next-line\n }, [isActive]);\n\n const classes = useStyles();\n return (\n props.navigateTo(e, props.id)}\n >\n \n \n \n \n \n );\n}\n","import React from \"react\";\nimport DropDownItem from \"./DropDownItem\";\n\nexport default function DropDown(props) {\n let timer;\n let first = props.folders.length;\n const status = [];\n for (let index = 0; index < props.folders.length; index++) {\n status[index] = false;\n }\n\n const setActiveStatus = (id, value) => {\n status[id] = value;\n if (value) {\n clearTimeout(timer);\n } else {\n let shouldClose = true;\n status.forEach((element) => {\n if (element) {\n shouldClose = false;\n }\n });\n if (shouldClose) {\n if (first <= 0) {\n timer = setTimeout(() => {\n props.onClose();\n }, 100);\n } else {\n first--;\n }\n }\n }\n console.log(status);\n };\n\n return (\n <>\n {props.folders.map((folder, id) => (\n // eslint-disable-next-line react/jsx-key\n \n ))}\n \n );\n}\n","import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { connect } from \"react-redux\";\nimport { withRouter } from \"react-router-dom\";\nimport RightIcon from \"@material-ui/icons/KeyboardArrowRight\";\nimport ShareIcon from \"@material-ui/icons/Share\";\nimport NewFolderIcon from \"@material-ui/icons/CreateNewFolder\";\nimport RefreshIcon from \"@material-ui/icons/Refresh\";\nimport explorer, {\n drawerToggleAction,\n navigateTo,\n navigateUp,\n openCompressDialog,\n openCreateFileDialog,\n openCreateFolderDialog,\n openShareDialog,\n refreshFileList,\n setNavigatorError,\n setNavigatorLoadingStatus,\n setSelectedTarget,\n} from \"../../../redux/explorer\";\nimport { fixUrlHash, setGetParameter } from \"../../../utils/index\";\nimport {\n Divider,\n ListItemIcon,\n Menu,\n MenuItem,\n withStyles,\n} from \"@material-ui/core\";\nimport PathButton from \"./PathButton\";\nimport DropDown from \"./DropDown\";\nimport pathHelper from \"../../../utils/page\";\nimport classNames from \"classnames\";\nimport Auth from \"../../../middleware/Auth\";\nimport { Archive } from \"@material-ui/icons\";\nimport { FilePlus } from \"mdi-material-ui\";\nimport SubActions from \"./SubActions\";\nimport { setCurrentPolicy } from \"../../../redux/explorer/action\";\nimport { list } from \"../../../services/navigate\";\nimport { withTranslation } from \"react-i18next\";\n\nconst mapStateToProps = (state) => {\n return {\n path: state.navigator.path,\n refresh: state.navigator.refresh,\n drawerDesktopOpen: state.viewUpdate.open,\n viewMethod: state.viewUpdate.explorerViewMethod,\n search: state.explorer.search,\n sortMethod: state.viewUpdate.sortMethod,\n };\n};\n\nconst mapDispatchToProps = (dispatch) => {\n return {\n navigateToPath: (path) => {\n dispatch(navigateTo(path));\n },\n navigateUp: () => {\n dispatch(navigateUp());\n },\n setNavigatorError: (status, msg) => {\n dispatch(setNavigatorError(status, msg));\n },\n updateFileList: (list) => {\n dispatch(explorer.actions.updateFileList(list));\n },\n setNavigatorLoadingStatus: (status) => {\n dispatch(setNavigatorLoadingStatus(status));\n },\n refreshFileList: () => {\n dispatch(refreshFileList());\n },\n setSelectedTarget: (target) => {\n dispatch(setSelectedTarget(target));\n },\n openCreateFolderDialog: () => {\n dispatch(openCreateFolderDialog());\n },\n openCreateFileDialog: () => {\n dispatch(openCreateFileDialog());\n },\n openShareDialog: () => {\n dispatch(openShareDialog());\n },\n handleDesktopToggle: (open) => {\n dispatch(drawerToggleAction(open));\n },\n openCompressDialog: () => {\n dispatch(openCompressDialog());\n },\n setCurrentPolicy: (policy) => {\n dispatch(setCurrentPolicy(policy));\n },\n };\n};\n\nconst delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms));\n\nconst styles = (theme) => ({\n container: {\n [theme.breakpoints.down(\"xs\")]: {\n display: \"none\",\n },\n backgroundColor: theme.palette.background.paper,\n },\n navigatorContainer: {\n display: \"flex\",\n justifyContent: \"space-between\",\n },\n nav: {\n height: \"48px\",\n padding: \"5px 15px\",\n display: \"flex\",\n },\n optionContainer: {\n paddingTop: \"6px\",\n marginRight: \"10px\",\n },\n rightIcon: {\n marginTop: \"6px\",\n verticalAlign: \"top\",\n color: \"#868686\",\n },\n expandMore: {\n color: \"#8d8d8d\",\n },\n roundBorder: {\n borderRadius: \"4px 4px 0 0\",\n },\n});\n\nclass NavigatorComponent extends Component {\n search = undefined;\n currentID = 0;\n\n state = {\n hidden: false,\n hiddenFolders: [],\n folders: [],\n anchorEl: null,\n hiddenMode: false,\n anchorHidden: null,\n };\n\n constructor(props) {\n super(props);\n this.element = React.createRef();\n }\n\n componentDidMount = () => {\n const url = new URL(fixUrlHash(window.location.href));\n const c = url.searchParams.get(\"path\");\n this.renderPath(c === null ? \"/\" : c);\n\n if (!this.props.isShare) {\n // 如果是在个人文件管理页,首次加载时打开侧边栏\n this.props.handleDesktopToggle(true);\n }\n\n // 后退操作时重新导航\n window.onpopstate = () => {\n const url = new URL(fixUrlHash(window.location.href));\n const c = url.searchParams.get(\"path\");\n if (c !== null) {\n this.props.navigateToPath(c);\n }\n };\n };\n\n renderPath = (path = null) => {\n this.props.setNavigatorError(false, null);\n this.setState({\n folders:\n path !== null\n ? path.substr(1).split(\"/\")\n : this.props.path.substr(1).split(\"/\"),\n });\n const newPath = path !== null ? path : this.props.path;\n list(\n newPath,\n this.props.share,\n this.search ? this.search.keywords : \"\",\n this.search ? this.search.searchPath : \"\"\n )\n .then((response) => {\n this.currentID = response.data.parent;\n this.props.updateFileList(response.data.objects);\n this.props.setNavigatorLoadingStatus(false);\n if (!this.search) {\n setGetParameter(\"path\", encodeURIComponent(newPath));\n }\n if (response.data.policy) {\n this.props.setCurrentPolicy({\n id: response.data.policy.id,\n name: response.data.policy.name,\n type: response.data.policy.type,\n maxSize: response.data.policy.max_size,\n allowedSuffix: response.data.policy.file_type,\n });\n }\n })\n .catch((error) => {\n this.props.setNavigatorError(true, error);\n });\n\n this.checkOverFlow(true);\n };\n\n redresh = (path) => {\n this.props.setNavigatorLoadingStatus(true);\n this.props.setNavigatorError(false, \"error\");\n this.renderPath(path);\n };\n\n UNSAFE_componentWillReceiveProps = (nextProps) => {\n if (this.props.search !== nextProps.search) {\n this.search = nextProps.search;\n }\n if (this.props.path !== nextProps.path) {\n this.renderPath(nextProps.path);\n }\n if (this.props.refresh !== nextProps.refresh) {\n this.redresh(nextProps.path);\n }\n };\n\n componentWillUnmount() {\n this.props.updateFileList([]);\n }\n\n componentDidUpdate = (prevProps, prevStates) => {\n if (this.state.folders !== prevStates.folders) {\n this.checkOverFlow(true);\n }\n if (this.props.drawerDesktopOpen !== prevProps.drawerDesktopOpen) {\n delay(500).then(() => this.checkOverFlow());\n }\n };\n\n checkOverFlow = (force) => {\n if (this.overflowInitLock && !force) {\n return;\n }\n if (this.element.current !== null) {\n const hasOverflowingChildren =\n this.element.current.offsetHeight <\n this.element.current.scrollHeight ||\n this.element.current.offsetWidth <\n this.element.current.scrollWidth;\n if (hasOverflowingChildren) {\n this.overflowInitLock = true;\n this.setState({ hiddenMode: true });\n }\n if (!hasOverflowingChildren && this.state.hiddenMode) {\n this.setState({ hiddenMode: false });\n }\n }\n };\n\n navigateTo = (event, id) => {\n if (id === this.state.folders.length - 1) {\n //最后一个路径\n this.setState({ anchorEl: event.currentTarget });\n } else if (\n id === -1 &&\n this.state.folders.length === 1 &&\n this.state.folders[0] === \"\"\n ) {\n this.props.refreshFileList();\n this.handleClose();\n } else if (id === -1) {\n this.props.navigateToPath(\"/\");\n this.handleClose();\n } else {\n this.props.navigateToPath(\n \"/\" + this.state.folders.slice(0, id + 1).join(\"/\")\n );\n this.handleClose();\n }\n };\n\n handleClose = () => {\n this.setState({ anchorEl: null, anchorHidden: null, anchorSort: null });\n };\n\n showHiddenPath = (e) => {\n this.setState({ anchorHidden: e.currentTarget });\n };\n\n performAction = (e) => {\n this.handleClose();\n if (e === \"refresh\") {\n this.redresh();\n return;\n }\n const presentPath = this.props.path.split(\"/\");\n const newTarget = [\n {\n id: this.currentID,\n type: \"dir\",\n name: presentPath.pop(),\n path: presentPath.length === 1 ? \"/\" : presentPath.join(\"/\"),\n },\n ];\n //this.props.navitateUp();\n switch (e) {\n case \"share\":\n this.props.setSelectedTarget(newTarget);\n this.props.openShareDialog();\n break;\n case \"newfolder\":\n this.props.openCreateFolderDialog();\n break;\n case \"compress\":\n this.props.setSelectedTarget(newTarget);\n this.props.openCompressDialog();\n break;\n case \"newFile\":\n this.props.openCreateFileDialog();\n break;\n default:\n break;\n }\n };\n\n render() {\n const { classes, t } = this.props;\n const isHomePage = pathHelper.isHomePage(this.props.location.pathname);\n const user = Auth.GetUser();\n\n const presentFolderMenu = (\n \n this.performAction(\"refresh\")}>\n \n \n \n {t(\"fileManager.refresh\")}\n \n {!this.props.search && isHomePage && (\n
\n \n this.performAction(\"share\")}>\n \n \n \n {t(\"fileManager.share\")}\n \n {user.group.compress && (\n this.performAction(\"compress\")}\n >\n \n \n \n {t(\"fileManager.compress\")}\n \n )}\n \n this.performAction(\"newfolder\")}\n >\n \n \n \n {t(\"fileManager.newFolder\")}\n \n\n this.performAction(\"newFile\")}>\n \n \n \n {t(\"fileManager.newFile\")}\n \n
\n )}\n \n );\n\n return (\n \n
\n
\n \n this.navigateTo(e, -1)}\n />\n \n \n {this.state.hiddenMode && (\n \n \n \n \n \n \n \n this.navigateTo(\n e,\n this.state.folders.length - 1\n )\n }\n />\n {presentFolderMenu}\n \n )}\n {!this.state.hiddenMode &&\n this.state.folders.map((folder, id, folders) => (\n \n {folder !== \"\" && (\n \n \n this.navigateTo(e, id)\n }\n />\n {id === folders.length - 1 &&\n presentFolderMenu}\n {id !== folders.length - 1 && (\n \n )}\n \n )}\n \n ))}\n
\n
\n \n
\n
\n \n
\n );\n }\n}\n\nNavigatorComponent.propTypes = {\n classes: PropTypes.object.isRequired,\n path: PropTypes.string.isRequired,\n};\n\nconst Navigator = connect(\n mapStateToProps,\n mapDispatchToProps\n)(withStyles(styles)(withRouter(withTranslation()(NavigatorComponent))));\n\nexport default Navigator;\n","import Highlighter from \"react-highlight-words\";\nimport { trimPrefix } from \"../Uploader/core/utils\";\nimport React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { makeStyles } from \"@material-ui/core/styles\";\n\nconst useStyles = makeStyles((theme) => ({\n highlight: {\n backgroundColor: theme.palette.warning.light,\n },\n}));\n\nexport default function FileName({ name }) {\n const classes = useStyles();\n const search = useSelector((state) => state.explorer.search);\n if (!search) {\n return name;\n }\n\n return (\n \n );\n}\n","import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { connect } from \"react-redux\";\nimport classNames from \"classnames\";\nimport {\n ButtonBase,\n fade,\n Tooltip,\n Typography,\n withStyles,\n} from \"@material-ui/core\";\nimport TypeIcon from \"./TypeIcon\";\nimport CheckCircleRoundedIcon from \"@material-ui/icons/CheckCircleRounded\";\nimport Grow from \"@material-ui/core/Grow\";\nimport { Folder } from \"@material-ui/icons\";\nimport FileName from \"./FileName\";\n\nconst styles = (theme) => ({\n container: {\n padding: \"7px\",\n },\n\n selected: {\n \"&:hover\": {\n border: \"1px solid #d0d0d0\",\n },\n backgroundColor: fade(\n theme.palette.primary.main,\n theme.palette.type === \"dark\" ? 0.3 : 0.18\n ),\n },\n notSelected: {\n \"&:hover\": {\n backgroundColor: theme.palette.background.default,\n border: \"1px solid #d0d0d0\",\n },\n backgroundColor: theme.palette.background.paper,\n },\n\n button: {\n height: \"50px\",\n border: \"1px solid \" + theme.palette.divider,\n width: \"100%\",\n borderRadius: theme.shape.borderRadius,\n boxSizing: \"border-box\",\n transition:\n \"background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms\",\n display: \"flex\",\n justifyContent: \"left\",\n alignItems: \"initial\",\n },\n icon: {\n margin: \"10px 10px 10px 16px\",\n height: \"30px\",\n minWidth: \"30px\",\n backgroundColor: theme.palette.background.paper,\n borderRadius: \"90%\",\n paddingTop: \"3px\",\n color: theme.palette.text.secondary,\n },\n folderNameSelected: {\n color:\n theme.palette.type === \"dark\" ? \"#fff\" : theme.palette.primary.dark,\n fontWeight: \"500\",\n },\n folderNameNotSelected: {\n color: theme.palette.text.secondary,\n },\n folderName: {\n marginTop: \"15px\",\n textOverflow: \"ellipsis\",\n whiteSpace: \"nowrap\",\n overflow: \"hidden\",\n marginRight: \"20px\",\n },\n checkIcon: {\n color: theme.palette.primary.main,\n },\n});\n\nconst mapStateToProps = (state) => {\n return {\n selected: state.explorer.selected,\n };\n};\n\nconst mapDispatchToProps = () => {\n return {};\n};\n\nclass SmallIconCompoment extends Component {\n state = {};\n\n shouldComponentUpdate(nextProps, nextState, nextContext) {\n const isSelectedCurrent =\n this.props.selected.findIndex((value) => {\n return value === this.props.file;\n }) !== -1;\n const isSelectedNext =\n nextProps.selected.findIndex((value) => {\n return value === this.props.file;\n }) !== -1;\n if (\n nextProps.selected !== this.props.selected &&\n isSelectedCurrent === isSelectedNext\n ) {\n return false;\n }\n\n return true;\n }\n\n render() {\n const { classes } = this.props;\n const isSelected =\n this.props.selected.findIndex((value) => {\n return value === this.props.file;\n }) !== -1;\n\n return (\n \n \n {!isSelected && (\n <>\n {this.props.isFolder && }\n {!this.props.isFolder && (\n \n )}\n \n )}\n {isSelected && (\n \n \n \n )}\n \n \n \n \n \n \n \n );\n }\n}\n\nSmallIconCompoment.propTypes = {\n classes: PropTypes.object.isRequired,\n file: PropTypes.object.isRequired,\n};\n\nconst SmallIcon = connect(\n mapStateToProps,\n mapDispatchToProps\n)(withStyles(styles)(SmallIconCompoment));\n\nexport default SmallIcon;\n","import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { connect } from \"react-redux\";\nimport classNames from \"classnames\";\nimport { LazyLoadImage } from \"react-lazy-load-image-component\";\nimport ContentLoader from \"react-content-loader\";\nimport { baseURL } from \"../../middleware/Api\";\nimport {\n ButtonBase,\n Divider,\n fade,\n Tooltip,\n Typography,\n withStyles,\n} from \"@material-ui/core\";\nimport TypeIcon from \"./TypeIcon\";\nimport { withRouter } from \"react-router\";\nimport pathHelper from \"../../utils/page\";\nimport statusHelper from \"../../utils/page\";\nimport CheckCircleRoundedIcon from \"@material-ui/icons/CheckCircleRounded\";\nimport Grow from \"@material-ui/core/Grow\";\nimport FileName from \"./FileName\";\n\nconst styles = (theme) => ({\n container: {},\n\n selected: {\n \"&:hover\": {\n border: \"1px solid #d0d0d0\",\n },\n backgroundColor: fade(\n theme.palette.primary.main,\n theme.palette.type === \"dark\" ? 0.3 : 0.18\n ),\n },\n\n notSelected: {\n \"&:hover\": {\n backgroundColor: theme.palette.background.default,\n border: \"1px solid #d0d0d0\",\n },\n backgroundColor: theme.palette.background.paper,\n },\n\n button: {\n border: \"1px solid \" + theme.palette.divider,\n width: \"100%\",\n borderRadius: theme.shape.borderRadius,\n boxSizing: \"border-box\",\n transition:\n \"background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms\",\n alignItems: \"initial\",\n display: \"initial\",\n },\n folderNameSelected: {\n color:\n theme.palette.type === \"dark\" ? \"#fff\" : theme.palette.primary.dark,\n fontWeight: \"500\",\n },\n folderNameNotSelected: {\n color: theme.palette.text.secondary,\n },\n folderName: {\n marginTop: \"15px\",\n textOverflow: \"ellipsis\",\n whiteSpace: \"nowrap\",\n overflow: \"hidden\",\n marginRight: \"20px\",\n },\n preview: {\n overflow: \"hidden\",\n height: \"150px\",\n width: \"100%\",\n borderRadius: \"12px 12px 0 0\",\n backgroundColor: theme.palette.background.default,\n },\n previewIcon: {\n overflow: \"hidden\",\n height: \"149px\",\n width: \"100%\",\n borderRadius: \"12px 12px 0 0\",\n backgroundColor: theme.palette.background.paper,\n paddingTop: \"50px\",\n },\n iconBig: {\n fontSize: 50,\n },\n picPreview: {\n objectFit: \"cover\",\n width: \"100%\",\n height: \"100%\",\n },\n fileInfo: {\n height: \"50px\",\n display: \"flex\",\n },\n icon: {\n margin: \"10px 10px 10px 16px\",\n height: \"30px\",\n minWidth: \"30px\",\n backgroundColor: theme.palette.background.paper,\n borderRadius: \"90%\",\n paddingTop: \"3px\",\n color: theme.palette.text.secondary,\n },\n hide: {\n display: \"none\",\n },\n loadingAnimation: {\n borderRadius: \"12px 12px 0 0\",\n height: \"100%\",\n width: \"100%\",\n },\n shareFix: {\n marginLeft: \"20px\",\n },\n checkIcon: {\n color: theme.palette.primary.main,\n },\n noDrag: {\n userDrag: \"none\",\n },\n});\n\nconst mapStateToProps = (state) => {\n return {\n path: state.navigator.path,\n selected: state.explorer.selected,\n shareInfo: state.viewUpdate.shareInfo,\n };\n};\n\nconst mapDispatchToProps = () => {\n return {};\n};\n\nclass FileIconCompoment extends Component {\n static defaultProps = {\n share: false,\n };\n\n state = {\n loading: false,\n showPicIcon: false,\n };\n\n shouldComponentUpdate(nextProps, nextState, nextContext) {\n const isSelectedCurrent =\n this.props.selected.findIndex((value) => {\n return value === this.props.file;\n }) !== -1;\n const isSelectedNext =\n nextProps.selected.findIndex((value) => {\n return value === this.props.file;\n }) !== -1;\n if (\n nextProps.selected !== this.props.selected &&\n isSelectedCurrent === isSelectedNext\n ) {\n return false;\n }\n\n return true;\n }\n\n render() {\n const { classes } = this.props;\n const isSelected =\n this.props.selected.findIndex((value) => {\n return value === this.props.file;\n }) !== -1;\n const isSharePage = pathHelper.isSharePage(\n this.props.location.pathname\n );\n const isMobile = statusHelper.isMobile();\n\n return (\n
\n \n {this.props.file.thumb && !this.state.showPicIcon && (\n
\n \n this.setState({ loading: false })\n }\n beforeLoad={() =>\n this.setState({ loading: true })\n }\n onError={() =>\n this.setState({ showPicIcon: true })\n }\n />\n \n \n \n
\n )}\n {(!this.props.file.thumb || this.state.showPicIcon) && (\n
\n \n
\n )}\n {(!this.props.file.thumb || this.state.showPicIcon) && (\n \n )}\n
\n {!this.props.share && (\n \n {!isSelected && (\n \n )}\n {isSelected && (\n \n \n \n )}\n
\n )}\n \n \n \n \n \n
\n \n \n );\n }\n}\n\nFileIconCompoment.propTypes = {\n classes: PropTypes.object.isRequired,\n file: PropTypes.object.isRequired,\n};\n\nconst FileIcon = connect(\n mapStateToProps,\n mapDispatchToProps\n)(withStyles(styles)(withRouter(FileIconCompoment)));\n\nexport default FileIcon;\n","import React from \"react\";\nimport FolderIcon from \"@material-ui/icons/Folder\";\nimport classNames from \"classnames\";\nimport {\n ButtonBase,\n fade,\n makeStyles,\n Tooltip,\n Typography,\n} from \"@material-ui/core\";\nimport { useSelector } from \"react-redux\";\nimport statusHelper from \"../../utils/page\";\nimport CheckCircleRoundedIcon from \"@material-ui/icons/CheckCircleRounded\";\n\nconst useStyles = makeStyles((theme) => ({\n container: {\n padding: \"7px\",\n },\n\n selected: {\n \"&:hover\": {\n border: \"1px solid #d0d0d0\",\n },\n backgroundColor: fade(\n theme.palette.primary.main,\n theme.palette.type === \"dark\" ? 0.3 : 0.18\n ),\n },\n\n notSelected: {\n \"&:hover\": {\n backgroundColor: theme.palette.background.default,\n border: \"1px solid #d0d0d0\",\n },\n backgroundColor: theme.palette.background.paper,\n },\n\n button: {\n height: \"50px\",\n border: \"1px solid \" + theme.palette.divider,\n width: \"100%\",\n borderRadius: theme.shape.borderRadius,\n boxSizing: \"border-box\",\n transition:\n \"background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms\",\n display: \"flex\",\n justifyContent: \"left\",\n alignItems: \"initial\",\n },\n icon: {\n margin: \"10px 10px 10px 16px\",\n height: \"30px\",\n minWidth: \"30px\",\n backgroundColor: theme.palette.background.paper,\n borderRadius: \"90%\",\n paddingTop: \"3px\",\n color: theme.palette.text.secondary,\n },\n folderNameSelected: {\n color:\n theme.palette.type === \"dark\" ? \"#fff\" : theme.palette.primary.dark,\n fontWeight: \"500\",\n },\n folderNameNotSelected: {\n color: theme.palette.text.secondary,\n },\n folderName: {\n marginTop: \"15px\",\n textOverflow: \"ellipsis\",\n whiteSpace: \"nowrap\",\n overflow: \"hidden\",\n marginRight: \"20px\",\n },\n active: {\n boxShadow: \"0 0 0 2px \" + theme.palette.primary.light,\n },\n checkIcon: {\n color: theme.palette.primary.main,\n },\n}));\n\nexport default function Folder({ folder, isActive, onIconClick }) {\n const selected = useSelector((state) => state.explorer.selected);\n const classes = useStyles();\n const isMobile = statusHelper.isMobile();\n const isSelected =\n selected.findIndex((value) => {\n return value === folder;\n }) !== -1;\n\n return (\n \n \n {!isSelected && }\n {isSelected && (\n \n )}\n \n \n \n {folder.name}\n \n \n \n );\n}\n","import React from \"react\";\nimport SmallIcon from \"../SmallIcon\";\nimport FileIcon from \"../FileIcon\";\nimport { useSelector } from \"react-redux\";\nimport { makeStyles } from \"@material-ui/core\";\nimport Folder from \"../Folder\";\n\nconst useStyles = makeStyles(() => ({\n dragging: {\n width: \"200px\",\n },\n cardDragged: {\n position: \"absolute\",\n \"transform-origin\": \"bottom left\",\n },\n}));\n\nconst diliverIcon = (object, viewMethod, classes) => {\n if (object.type === \"dir\") {\n return (\n
\n \n
\n );\n }\n if (object.type === \"file\" && viewMethod === \"icon\") {\n return (\n
\n \n
\n );\n }\n if (\n (object.type === \"file\" && viewMethod === \"smallIcon\") ||\n viewMethod === \"list\"\n ) {\n return (\n
\n \n
\n );\n }\n};\n\nconst Preview = (props) => {\n const selected = useSelector((state) => state.explorer.selected);\n const viewMethod = useSelector(\n (state) => state.viewUpdate.explorerViewMethod\n );\n const classes = useStyles();\n return (\n <>\n {selected.length === 0 &&\n diliverIcon(props.object, viewMethod, classes)}\n {selected.length > 0 && (\n <>\n {selected.slice(0, 3).map((card, i) => (\n \n {diliverIcon(card, viewMethod, classes)}\n \n ))}\n \n )}\n \n );\n};\nexport default Preview;\n","import React, { useMemo } from \"react\";\nimport { useDragLayer } from \"react-dnd\";\nimport Preview from \"./Preview\";\nimport { useSelector } from \"react-redux\";\n\nconst layerStyles = {\n position: \"fixed\",\n pointerEvents: \"none\",\n zIndex: 100,\n left: 0,\n top: 0,\n width: \"100%\",\n height: \"100%\",\n};\n\nfunction getItemStyles(\n initialOffset,\n currentOffset,\n pointerOffset,\n viewMethod\n) {\n if (!initialOffset || !currentOffset) {\n return {\n display: \"none\",\n };\n }\n let { x, y } = currentOffset;\n if (viewMethod === \"list\") {\n x += pointerOffset.x - initialOffset.x;\n y += pointerOffset.y - initialOffset.y;\n }\n\n const transform = `translate(${x}px, ${y}px)`;\n return {\n opacity: 0.5,\n transform,\n WebkitTransform: transform,\n };\n}\nconst CustomDragLayer = (props) => {\n const {\n itemType,\n isDragging,\n item,\n initialOffset,\n currentOffset,\n pointerOffset,\n } = useDragLayer((monitor) => ({\n item: monitor.getItem(),\n itemType: monitor.getItemType(),\n initialOffset: monitor.getInitialSourceClientOffset(),\n currentOffset: monitor.getSourceClientOffset(),\n pointerOffset: monitor.getInitialClientOffset(),\n isDragging: monitor.isDragging(),\n }));\n const viewMethod = useSelector(\n (state) => state.viewUpdate.explorerViewMethod\n );\n const image = useMemo(() => {\n switch (itemType) {\n case \"object\":\n return ;\n default:\n return null;\n }\n }, [itemType, item]);\n if (!isDragging) {\n return null;\n }\n return (\n
\n \n {image}\n
\n \n );\n};\nexport default CustomDragLayer;\n","import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { connect } from \"react-redux\";\n\nimport FolderIcon from \"@material-ui/icons/Folder\";\nimport classNames from \"classnames\";\nimport { sizeToString } from \"../../utils/index\";\nimport {\n fade,\n TableCell,\n TableRow,\n Typography,\n withStyles,\n} from \"@material-ui/core\";\nimport TypeIcon from \"./TypeIcon\";\nimport pathHelper from \"../../utils/page\";\nimport statusHelper from \"../../utils/page\";\nimport { withRouter } from \"react-router\";\nimport KeyboardReturnIcon from \"@material-ui/icons/KeyboardReturn\";\nimport CheckCircleRoundedIcon from \"@material-ui/icons/CheckCircleRounded\";\nimport Grow from \"@material-ui/core/Grow\";\nimport { formatLocalTime } from \"../../utils/datetime\";\nimport FileName from \"./FileName\";\n\nconst styles = (theme) => ({\n selected: {\n \"&:hover\": {},\n backgroundColor: fade(theme.palette.primary.main, 0.18),\n },\n\n selectedShared: {\n \"&:hover\": {},\n backgroundColor: fade(theme.palette.primary.main, 0.18),\n },\n\n notSelected: {\n \"&:hover\": {\n backgroundColor: theme.palette.action.hover,\n },\n },\n icon: {\n verticalAlign: \"middle\",\n marginRight: \"20px\",\n color: theme.palette.text.secondary,\n },\n tableIcon: {\n marginRight: \"20px\",\n verticalAlign: \"middle\",\n },\n folderNameSelected: {\n color:\n theme.palette.type === \"dark\" ? \"#fff\" : theme.palette.primary.dark,\n fontWeight: \"500\",\n userSelect: \"none\",\n },\n folderNameNotSelected: {\n color: theme.palette.text.secondary,\n userSelect: \"none\",\n },\n folderName: {\n marginRight: \"20px\",\n display: \"flex\",\n alignItems: \"center\",\n },\n hideAuto: {\n [theme.breakpoints.down(\"sm\")]: {\n display: \"none\",\n },\n },\n tableRow: {\n padding: \"10px 16px\",\n },\n checkIcon: {\n color: theme.palette.primary.main,\n },\n active: {\n backgroundColor: fade(theme.palette.primary.main, 0.1),\n },\n});\n\nconst mapStateToProps = (state) => {\n return {\n selected: state.explorer.selected,\n };\n};\n\nconst mapDispatchToProps = () => {\n return {};\n};\n\nclass TableRowCompoment extends Component {\n state = {};\n\n shouldComponentUpdate(nextProps, nextState, nextContext) {\n const isSelectedCurrent =\n this.props.selected.findIndex((value) => {\n return value === this.props.file;\n }) !== -1;\n const isSelectedNext =\n nextProps.selected.findIndex((value) => {\n return value === this.props.file;\n }) !== -1;\n if (\n nextProps.selected !== this.props.selected &&\n isSelectedCurrent === isSelectedNext\n ) {\n return false;\n }\n\n return true;\n }\n\n render() {\n const { classes } = this.props;\n const isShare = pathHelper.isSharePage(this.props.location.pathname);\n\n let icon;\n if (this.props.file.type === \"dir\") {\n icon = ;\n } else if (this.props.file.type === \"up\") {\n icon = ;\n } else {\n icon = (\n \n );\n }\n const isSelected =\n this.props.selected.findIndex((value) => {\n return value === this.props.file;\n }) !== -1;\n const isMobile = statusHelper.isMobile();\n\n return (\n \n \n \n \n {!isSelected && icon}\n {isSelected && (\n \n \n \n )}\n \n \n \n \n \n \n {\" \"}\n {this.props.file.type !== \"dir\" &&\n this.props.file.type !== \"up\" &&\n sizeToString(this.props.file.size)}\n \n \n \n \n {\" \"}\n {formatLocalTime(this.props.file.date)}\n \n \n \n );\n }\n}\n\nTableRowCompoment.propTypes = {\n classes: PropTypes.object.isRequired,\n file: PropTypes.object.isRequired,\n};\n\nconst TableItem = connect(\n mapStateToProps,\n mapDispatchToProps\n)(withStyles(styles)(withRouter(TableRowCompoment)));\n\nexport default TableItem;\n","import React from \"react\";\nimport { useDrop } from \"react-dnd\";\nimport Folder from \"../Folder\";\nimport classNames from \"classnames\";\nimport TableItem from \"../TableRow\";\nexport default function FolderDropWarpper({\n isListView,\n folder,\n onIconClick,\n contextMenu,\n handleClick,\n handleDoubleClick,\n className,\n pref,\n}) {\n const [{ canDrop, isOver }, drop] = useDrop({\n accept: \"object\",\n drop: () => ({ folder }),\n collect: (monitor) => ({\n isOver: monitor.isOver(),\n canDrop: monitor.canDrop(),\n }),\n });\n const isActive = canDrop && isOver;\n if (!isListView) {\n return (\n
\n \n
\n );\n }\n return (\n \n );\n}\n","import { useRef } from \"react\";\nimport { throttle } from \"lodash\";\n\nconst useDragScrolling = () => {\n const isScrolling = useRef(false);\n const target = document.querySelector(\"#explorer-container\");\n\n const goDown = () => {\n target.scrollTop += 10;\n\n const { offsetHeight, scrollTop, scrollHeight } = target;\n const isScrollEnd = offsetHeight + scrollTop >= scrollHeight;\n\n if (isScrolling.current && !isScrollEnd) {\n window.requestAnimationFrame(goDown);\n }\n };\n\n const goUp = () => {\n target.scrollTop -= 10;\n\n if (isScrolling.current && target.scrollTop > 0) {\n window.requestAnimationFrame(goUp);\n }\n };\n\n const onDragOver = (event) => {\n const isMouseOnTop = event.clientY < 100;\n const isMouseOnDown = window.innerHeight - event.clientY < 100;\n\n if (!isScrolling.current && (isMouseOnTop || isMouseOnDown)) {\n isScrolling.current = true;\n\n if (isMouseOnTop) {\n window.requestAnimationFrame(goUp);\n }\n\n if (isMouseOnDown) {\n window.requestAnimationFrame(goDown);\n }\n } else if (!isMouseOnTop && !isMouseOnDown) {\n isScrolling.current = false;\n }\n };\n\n const throttleOnDragOver = throttle(onDragOver, 300);\n\n const addEventListenerForWindow = () => {\n window.addEventListener(\"dragover\", throttleOnDragOver, false);\n };\n\n const removeEventListenerForWindow = () => {\n window.removeEventListener(\"dragover\", throttleOnDragOver, false);\n isScrolling.current = false;\n };\n\n return {\n addEventListenerForWindow,\n removeEventListenerForWindow,\n };\n};\n\nexport default useDragScrolling;\n","import React, { useCallback, useEffect } from \"react\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport statusHelper from \"../../utils/page\";\nimport FileIcon from \"./FileIcon\";\nimport SmallIcon from \"./SmallIcon\";\nimport TableItem from \"./TableRow\";\nimport classNames from \"classnames\";\nimport { makeStyles } from \"@material-ui/core\";\nimport { useDrag } from \"react-dnd\";\nimport { getEmptyImage } from \"react-dnd-html5-backend\";\nimport DropWarpper from \"./DnD/DropWarpper\";\nimport { useLocation } from \"react-router-dom\";\nimport { pathBack } from \"../../utils\";\nimport {\n changeContextMenu,\n dragAndDrop,\n navigateTo,\n openLoadingDialog,\n openPreview,\n selectFile,\n setSelectedTarget,\n toggleSnackbar,\n} from \"../../redux/explorer\";\nimport useDragScrolling from \"./DnD/Scrolling\";\n\nconst useStyles = makeStyles(() => ({\n container: {\n padding: \"7px\",\n },\n fixFlex: {\n minWidth: 0,\n },\n dragging: {\n opacity: 0.4,\n },\n}));\n\nexport default function ObjectIcon(props) {\n const path = useSelector((state) => state.navigator.path);\n const shareInfo = useSelector((state) => state.viewUpdate.shareInfo);\n const selected = useSelector((state) => state.explorer.selected);\n const viewMethod = useSelector(\n (state) => state.viewUpdate.explorerViewMethod\n );\n const navigatorPath = useSelector((state) => state.navigator.path);\n const location = useLocation();\n\n const dispatch = useDispatch();\n const ContextMenu = useCallback(\n (type, open) => dispatch(changeContextMenu(type, open)),\n [dispatch]\n );\n const SetSelectedTarget = useCallback(\n (targets) => dispatch(setSelectedTarget(targets)),\n [dispatch]\n );\n\n const NavitateTo = useCallback((targets) => dispatch(navigateTo(targets)), [\n dispatch,\n ]);\n const ToggleSnackbar = useCallback(\n (vertical, horizontal, msg, color) =>\n dispatch(toggleSnackbar(vertical, horizontal, msg, color)),\n [dispatch]\n );\n const DragAndDrop = useCallback(\n (source, target) => dispatch(dragAndDrop(source, target)),\n [dispatch]\n );\n const OpenLoadingDialog = useCallback(\n (text) => dispatch(openLoadingDialog(text)),\n [dispatch]\n );\n const OpenPreview = useCallback((share) => dispatch(openPreview(share)), [\n dispatch,\n ]);\n const StartDownload = useCallback(\n (share, file) => dispatch(StartDownload(share, file)),\n [dispatch]\n );\n\n const classes = useStyles();\n\n const contextMenu = (e) => {\n if (props.file.type === \"up\") {\n return;\n }\n e.preventDefault();\n if (\n selected.findIndex((value) => {\n return value === props.file;\n }) === -1\n ) {\n SetSelectedTarget([props.file]);\n }\n ContextMenu(\"file\", true);\n };\n\n const SelectFile = (e) => {\n dispatch(selectFile(props.file, e, props.index));\n };\n const enterFolder = () => {\n NavitateTo(\n path === \"/\" ? path + props.file.name : path + \"/\" + props.file.name\n );\n };\n const handleClick = (e) => {\n if (props.file.type === \"up\") {\n NavitateTo(pathBack(navigatorPath));\n return;\n }\n\n SelectFile(e);\n if (\n props.file.type === \"dir\" &&\n !e.ctrlKey &&\n !e.metaKey &&\n !e.shiftKey\n ) {\n enterFolder();\n }\n };\n\n const handleDoubleClick = () => {\n if (props.file.type === \"up\") {\n return;\n }\n if (props.file.type === \"dir\") {\n enterFolder();\n return;\n }\n\n OpenPreview(shareInfo);\n };\n\n const handleIconClick = (e) => {\n e.stopPropagation();\n if (!e.shiftKey) {\n e.ctrlKey = true;\n }\n SelectFile(e);\n return false;\n };\n\n const {\n addEventListenerForWindow,\n removeEventListenerForWindow,\n } = useDragScrolling();\n\n const [{ isDragging }, drag, preview] = useDrag({\n item: {\n object: props.file,\n type: \"object\",\n selected: [...selected],\n viewMethod: viewMethod,\n },\n begin: () => {\n addEventListenerForWindow();\n },\n end: (item, monitor) => {\n removeEventListenerForWindow();\n const dropResult = monitor.getDropResult();\n if (item && dropResult) {\n if (dropResult.folder) {\n if (\n item.object.id !== dropResult.folder.id ||\n item.object.type !== dropResult.folder.type\n ) {\n DragAndDrop(item.object, dropResult.folder);\n }\n }\n }\n },\n canDrag: () => {\n return (\n !statusHelper.isMobile() &&\n statusHelper.isHomePage(location.pathname)\n );\n },\n collect: (monitor) => ({\n isDragging: monitor.isDragging(),\n }),\n });\n\n useEffect(() => {\n preview(getEmptyImage(), { captureDraggingState: true });\n // eslint-disable-next-line\n }, []);\n\n if (viewMethod === \"list\") {\n return (\n <>\n {props.file.type === \"dir\" && (\n \n )}\n {props.file.type !== \"dir\" && (\n \n )}\n \n );\n }\n\n return (\n \n \n {props.file.type === \"dir\" && viewMethod !== \"list\" && (\n \n )}\n {props.file.type === \"file\" && viewMethod === \"icon\" && (\n \n )}\n {props.file.type === \"file\" && viewMethod === \"smallIcon\" && (\n \n )}\n \n \n );\n}\n","import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { connect } from \"react-redux\";\nimport { isCompressFile, isPreviewable, isTorrent } from \"../../config\";\nimport UploadIcon from \"@material-ui/icons/CloudUpload\";\nimport DownloadIcon from \"@material-ui/icons/CloudDownload\";\nimport NewFolderIcon from \"@material-ui/icons/CreateNewFolder\";\nimport OpenFolderIcon from \"@material-ui/icons/FolderOpen\";\nimport FileCopyIcon from \"@material-ui/icons/FileCopy\";\nimport ShareIcon from \"@material-ui/icons/Share\";\nimport RenameIcon from \"@material-ui/icons/BorderColor\";\nimport MoveIcon from \"@material-ui/icons/Input\";\nimport LinkIcon from \"@material-ui/icons/InsertLink\";\nimport DeleteIcon from \"@material-ui/icons/Delete\";\nimport OpenIcon from \"@material-ui/icons/OpenInNew\";\nimport {\n FolderDownload,\n FilePlus,\n FolderUpload,\n MagnetOn,\n Transfer,\n} from \"mdi-material-ui\";\nimport {\n Divider,\n ListItemIcon,\n MenuItem,\n Typography,\n withStyles,\n} from \"@material-ui/core\";\nimport pathHelper from \"../../utils/page\";\nimport { withRouter } from \"react-router-dom\";\nimport Auth from \"../../middleware/Auth\";\nimport { Archive, InfoOutlined, Unarchive } from \"@material-ui/icons\";\nimport Menu from \"@material-ui/core/Menu\";\nimport RefreshIcon from \"@material-ui/icons/Refresh\";\nimport {\n batchGetSource,\n openParentFolder,\n openPreview,\n openTorrentDownload,\n setSelectedTarget,\n startBatchDownload,\n startDirectoryDownload,\n startDownload,\n toggleObjectInfoSidebar,\n} from \"../../redux/explorer/action\";\nimport {\n changeContextMenu,\n navigateTo,\n openCompressDialog,\n openCopyDialog,\n openCreateFileDialog,\n openCreateFolderDialog,\n openDecompressDialog,\n openLoadingDialog,\n openMoveDialog,\n openMusicDialog,\n openRelocateDialog,\n openRemoteDownloadDialog,\n openRemoveDialog,\n openRenameDialog,\n openShareDialog,\n refreshFileList,\n setNavigatorLoadingStatus,\n showImgPreivew,\n toggleSnackbar,\n} from \"../../redux/explorer\";\nimport { pathJoin } from \"../Uploader/core/utils\";\nimport {\n openFileSelector,\n openFolderSelector,\n} from \"../../redux/viewUpdate/action\";\nimport { withTranslation } from \"react-i18next\";\n\nconst styles = () => ({\n propover: {},\n divider: {\n marginTop: 4,\n marginBottom: 4,\n },\n});\n\nconst StyledListItemIcon = withStyles({\n root: {\n minWidth: 38,\n },\n})(ListItemIcon);\n\nconst mapStateToProps = (state) => {\n return {\n menuType: state.viewUpdate.contextType,\n menuOpen: state.viewUpdate.contextOpen,\n isMultiple: state.explorer.selectProps.isMultiple,\n withFolder: state.explorer.selectProps.withFolder,\n withFile: state.explorer.selectProps.withFile,\n withSourceEnabled: state.explorer.selectProps.withSourceEnabled,\n path: state.navigator.path,\n selected: state.explorer.selected,\n search: state.explorer.search,\n };\n};\n\nconst mapDispatchToProps = (dispatch) => {\n return {\n changeContextMenu: (type, open) => {\n dispatch(changeContextMenu(type, open));\n },\n setNavigatorLoadingStatus: (status) => {\n dispatch(setNavigatorLoadingStatus(status));\n },\n setSelectedTarget: (targets) => {\n dispatch(setSelectedTarget(targets));\n },\n navigateTo: (path) => {\n dispatch(navigateTo(path));\n },\n openCreateFolderDialog: () => {\n dispatch(openCreateFolderDialog());\n },\n openCreateFileDialog: () => {\n dispatch(openCreateFileDialog());\n },\n openRenameDialog: () => {\n dispatch(openRenameDialog());\n },\n openMoveDialog: () => {\n dispatch(openMoveDialog());\n },\n openRemoveDialog: () => {\n dispatch(openRemoveDialog());\n },\n openShareDialog: () => {\n dispatch(openShareDialog());\n },\n showImgPreivew: (first) => {\n dispatch(showImgPreivew(first));\n },\n openMusicDialog: () => {\n dispatch(openMusicDialog());\n },\n toggleSnackbar: (vertical, horizontal, msg, color) => {\n dispatch(toggleSnackbar(vertical, horizontal, msg, color));\n },\n openRemoteDownloadDialog: () => {\n dispatch(openRemoteDownloadDialog());\n },\n openTorrentDownloadDialog: () => {\n dispatch(openTorrentDownload());\n },\n openCopyDialog: () => {\n dispatch(openCopyDialog());\n },\n openLoadingDialog: (text) => {\n dispatch(openLoadingDialog(text));\n },\n openDecompressDialog: () => {\n dispatch(openDecompressDialog());\n },\n openCompressDialog: () => {\n dispatch(openCompressDialog());\n },\n refreshFileList: () => {\n dispatch(refreshFileList());\n },\n openRelocateDialog: () => {\n dispatch(openRelocateDialog());\n },\n openPreview: (share) => {\n dispatch(openPreview(share));\n },\n toggleObjectInfoSidebar: (open) => {\n dispatch(toggleObjectInfoSidebar(open));\n },\n startBatchDownload: (share) => {\n dispatch(startBatchDownload(share));\n },\n openFileSelector: () => {\n dispatch(openFileSelector());\n },\n openFolderSelector: () => {\n dispatch(openFolderSelector());\n },\n startDownload: (share, file) => {\n dispatch(startDownload(share, file));\n },\n batchGetSource: () => {\n dispatch(batchGetSource());\n },\n startDirectoryDownload: (share) => {\n dispatch(startDirectoryDownload(share));\n },\n openParentFolder: () => {\n dispatch(openParentFolder());\n },\n };\n};\n\nclass ContextMenuCompoment extends Component {\n X = 0;\n Y = 0;\n\n state = {};\n\n componentDidMount = () => {\n window.document.addEventListener(\"mousemove\", this.setPoint);\n };\n\n setPoint = (e) => {\n this.Y = e.clientY;\n this.X = e.clientX;\n };\n\n openArchiveDownload = () => {\n this.props.startBatchDownload(this.props.share);\n };\n\n openDirectoryDownload = () => {\n this.props.startDirectoryDownload(this.props.share);\n };\n\n openDownload = () => {\n this.props.startDownload(this.props.share, this.props.selected[0]);\n };\n\n enterFolder = () => {\n this.props.navigateTo(\n pathJoin([this.props.path, this.props.selected[0].name])\n );\n };\n\n // 暂时只对空白处右键菜单使用这个函数,疑似有bug会导致的一个菜单被默认选中。\n // 相关issue: https://github.com/mui-org/material-ui/issues/23747\n renderMenuItems = (items) => {\n const res = [];\n let key = 0;\n\n [\"top\", \"center\", \"bottom\"].forEach((position) => {\n let visibleCount = 0;\n items[position].forEach((item) => {\n if (item.condition) {\n res.push(\n \n {item.icon}\n \n {item.text}\n \n \n );\n key++;\n visibleCount++;\n }\n });\n if (visibleCount > 0 && position != \"bottom\") {\n res.push(\n \n );\n key++;\n }\n });\n\n return res;\n };\n\n render() {\n const { classes, t } = this.props;\n const user = Auth.GetUser();\n const isHomePage = pathHelper.isHomePage(this.props.location.pathname);\n const emptyMenuList = {\n top: [\n {\n condition: true,\n onClick: () => {\n this.props.refreshFileList();\n this.props.changeContextMenu(\n this.props.menuType,\n false\n );\n },\n icon: ,\n text: \"刷新\",\n },\n ],\n center: [\n {\n condition: true,\n onClick: () => this.props.openFileSelector(),\n icon: ,\n text: \"上传文件\",\n },\n {\n condition: true,\n onClick: () => this.props.openFolderSelector(),\n icon: ,\n text: \"上传目录\",\n },\n {\n condition: user.group.allowRemoteDownload,\n onClick: () => this.props.openRemoteDownloadDialog(),\n icon: ,\n text: \"离线下载\",\n },\n ],\n bottom: [\n {\n condition: true,\n onClick: () => this.props.openCreateFolderDialog(),\n icon: ,\n text: \"创建文件夹\",\n },\n {\n condition: true,\n onClick: () => this.props.openCreateFileDialog(),\n icon: ,\n text: \"创建文件\",\n },\n ],\n };\n\n return (\n
\n \n this.props.changeContextMenu(this.props.menuType, false)\n }\n anchorReference=\"anchorPosition\"\n anchorPosition={{ top: this.Y, left: this.X }}\n anchorOrigin={{\n vertical: \"top\",\n horizontal: \"left\",\n }}\n transformOrigin={{\n vertical: \"top\",\n horizontal: \"left\",\n }}\n >\n {this.props.menuType === \"empty\" && (\n
\n {\n this.props.refreshFileList();\n this.props.changeContextMenu(\n this.props.menuType,\n false\n );\n }}\n >\n \n \n \n \n {t(\"fileManager.refresh\")}\n \n \n \n this.props.openFileSelector()}\n >\n \n \n \n \n {t(\"fileManager.uploadFiles\")}\n \n \n this.props.openFolderSelector()}\n >\n \n \n \n \n {t(\"fileManager.uploadFolder\")}\n \n \n {user.group.allowRemoteDownload && (\n \n this.props.openRemoteDownloadDialog()\n }\n >\n \n \n \n \n {t(\"fileManager.newRemoteDownloads\")}\n \n \n )}\n\n \n \n this.props.openCreateFolderDialog()\n }\n >\n \n \n \n \n {t(\"fileManager.newFolder\")}\n \n \n \n this.props.openCreateFileDialog()\n }\n >\n \n \n \n \n {t(\"fileManager.newFile\")}\n \n \n
\n )}\n {this.props.menuType !== \"empty\" && (\n
\n {!this.props.isMultiple && this.props.withFolder && (\n
\n \n \n \n \n \n {t(\"fileManager.enter\")}\n \n \n {isHomePage && (\n \n )}\n
\n )}\n {!this.props.isMultiple &&\n this.props.withFile &&\n (!this.props.share ||\n this.props.share.preview) &&\n isPreviewable(this.props.selected[0].name) && (\n
\n \n this.props.openPreview()\n }\n >\n \n \n \n \n {t(\"fileManager.open\")}\n \n \n
\n )}\n\n {this.props.search && !this.props.isMultiple && (\n
\n \n this.props.openParentFolder()\n }\n >\n \n \n \n \n {t(\"fileManager.openParentFolder\")}\n \n \n
\n )}\n\n {!this.props.isMultiple && this.props.withFile && (\n
\n \n this.openDownload(this.props.share)\n }\n >\n \n \n \n \n {t(\"fileManager.download\")}\n \n \n {isHomePage && (\n \n )}\n
\n )}\n\n {(this.props.isMultiple || this.props.withFolder) &&\n window.showDirectoryPicker &&\n window.isSecureContext && (\n \n this.openDirectoryDownload()\n }\n >\n \n \n \n \n {t(\"fileManager.download\")}\n \n \n )}\n\n {(this.props.isMultiple ||\n this.props.withFolder) && (\n this.openArchiveDownload()}\n >\n \n \n \n \n {t(\"fileManager.batchDownload\")}\n \n \n )}\n\n {isHomePage &&\n user.group.sourceBatch > 0 &&\n this.props.withSourceEnabled && (\n \n this.props.batchGetSource()\n }\n >\n \n \n \n \n {this.props.isMultiple ||\n (this.props.withFolder &&\n !this.props.withFile)\n ? t(\n \"fileManager.getSourceLinkInBatch\"\n )\n : t(\n \"fileManager.getSourceLink\"\n )}\n \n \n )}\n\n {!this.props.isMultiple &&\n isHomePage &&\n user.group.allowRemoteDownload &&\n this.props.withFile &&\n isTorrent(this.props.selected[0].name) && (\n \n this.props.openTorrentDownloadDialog()\n }\n >\n \n \n \n \n {t(\n \"fileManager.createRemoteDownloadForTorrent\"\n )}\n \n \n )}\n {!this.props.isMultiple &&\n isHomePage &&\n user.group.compress &&\n this.props.withFile &&\n isCompressFile(this.props.selected[0].name) && (\n \n this.props.openDecompressDialog()\n }\n >\n \n \n \n \n {t(\"fileManager.decompress\")}\n \n \n )}\n\n {isHomePage && user.group.compress && (\n \n this.props.openCompressDialog()\n }\n >\n \n \n \n \n {t(\"fileManager.compress\")}\n \n \n )}\n\n {isHomePage && user.group.relocate && (\n \n this.props.openRelocateDialog()\n }\n >\n \n \n \n \n {t(\"vas.migrateStoragePolicy\")}\n \n \n )}\n\n {!this.props.isMultiple && isHomePage && (\n this.props.openShareDialog()}\n >\n \n \n \n \n {t(\"fileManager.createShareLink\")}\n \n \n )}\n\n {!this.props.isMultiple && isHomePage && (\n \n this.props.toggleObjectInfoSidebar(true)\n }\n >\n \n \n \n \n {t(\"fileManager.viewDetails\")}\n \n \n )}\n\n {!this.props.isMultiple && isHomePage && (\n \n )}\n\n {!this.props.isMultiple && isHomePage && (\n
\n \n this.props.openRenameDialog()\n }\n >\n \n \n \n \n {t(\"fileManager.rename\")}\n \n \n {!this.props.search && (\n \n this.props.openCopyDialog()\n }\n >\n \n \n \n \n {t(\"fileManager.copy\")}\n \n \n )}\n
\n )}\n {isHomePage && (\n
\n {!this.props.search && (\n \n this.props.openMoveDialog()\n }\n >\n \n \n \n \n {t(\"fileManager.move\")}\n \n \n )}\n\n \n \n this.props.openRemoveDialog()\n }\n >\n \n \n \n \n {t(\"fileManager.delete\")}\n \n \n
\n )}\n
\n )}\n \n
\n );\n }\n}\n\nContextMenuCompoment.propTypes = {\n classes: PropTypes.object.isRequired,\n menuType: PropTypes.string.isRequired,\n};\n\nconst ContextMenu = connect(\n mapStateToProps,\n mapDispatchToProps\n)(withStyles(styles)(withRouter(withTranslation()(ContextMenuCompoment))));\n\nexport default ContextMenu;\n","import React, { useCallback, useEffect, useMemo } from \"react\";\nimport explorer, {\n changeContextMenu,\n openRemoveDialog,\n setSelectedTarget,\n} from \"../../redux/explorer\";\nimport ObjectIcon from \"./ObjectIcon\";\nimport ContextMenu from \"./ContextMenu\";\nimport classNames from \"classnames\";\nimport ImgPreivew from \"./ImgPreview\";\nimport pathHelper from \"../../utils/page\";\nimport { isMac } from \"../../utils\";\nimport {\n CircularProgress,\n Grid,\n Paper,\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableRow,\n Typography,\n} from \"@material-ui/core\";\nimport { configure, GlobalHotKeys } from \"react-hotkeys\";\nimport TableSortLabel from \"@material-ui/core/TableSortLabel\";\nimport Nothing from \"../Placeholder/Nothing\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { useLocation } from \"react-router\";\nimport { usePagination } from \"../../hooks/pagination\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport { useTranslation } from \"react-i18next\";\n\nconst useStyles = makeStyles((theme) => ({\n paper: {\n padding: theme.spacing(2),\n textAlign: \"center\",\n color: theme.palette.text.secondary,\n margin: \"10px\",\n },\n root: {\n padding: \"10px\",\n [theme.breakpoints.up(\"sm\")]: {\n height: \"calc(100vh - 113px)\",\n },\n },\n rootTable: {\n padding: \"0px\",\n backgroundColor: theme.palette.background.paper.white,\n [theme.breakpoints.up(\"sm\")]: {\n height: \"calc(100vh - 113px)\",\n },\n },\n typeHeader: {\n margin: \"10px 25px\",\n color: \"#6b6b6b\",\n fontWeight: \"500\",\n },\n loading: {\n justifyContent: \"center\",\n display: \"flex\",\n marginTop: \"40px\",\n },\n errorBox: {\n padding: theme.spacing(4),\n },\n errorMsg: {\n marginTop: \"10px\",\n },\n hideAuto: {\n [theme.breakpoints.down(\"sm\")]: {\n display: \"none\",\n },\n },\n flexFix: {\n minWidth: 0,\n },\n upButton: {\n marginLeft: \"20px\",\n marginTop: \"10px\",\n marginBottom: \"10px\",\n },\n clickAway: {\n height: \"100%\",\n width: \"100%\",\n },\n rootShare: {\n height: \"100%\",\n minHeight: 500,\n },\n visuallyHidden: {\n border: 0,\n clip: \"rect(0 0 0 0)\",\n height: 1,\n margin: -1,\n overflow: \"hidden\",\n padding: 0,\n position: \"absolute\",\n top: 20,\n width: 1,\n },\n gridContainer: {\n [theme.breakpoints.down(\"sm\")]: {\n gridTemplateColumns:\n \"repeat(auto-fill,minmax(180px,1fr))!important\",\n },\n [theme.breakpoints.up(\"md\")]: {\n gridTemplateColumns:\n \"repeat(auto-fill,minmax(220px,1fr))!important\",\n },\n display: \"grid!important\",\n },\n gridItem: {\n flex: \"1 1 220px!important\",\n },\n}));\n\nconst keyMap = {\n DELETE_FILE: \"del\",\n SELECT_ALL_SHOWED: `${isMac() ? \"command\" : \"ctrl\"}+a`,\n SELECT_ALL: `${isMac() ? \"command\" : \"ctrl\"}+shift+a`,\n DESELECT_ALL: \"esc\",\n};\n\nexport default function Explorer({ share }) {\n const { t } = useTranslation(\"application\", { keyPrefix: \"fileManager\" });\n const location = useLocation();\n const dispatch = useDispatch();\n const selected = useSelector((state) => state.explorer.selected);\n const search = useSelector((state) => state.explorer.search);\n const loading = useSelector((state) => state.viewUpdate.navigatorLoading);\n const path = useSelector((state) => state.navigator.path);\n const sortMethod = useSelector((state) => state.viewUpdate.sortMethod);\n const navigatorErrorMsg = useSelector(\n (state) => state.viewUpdate.navigatorErrorMsg\n );\n const navigatorError = useSelector(\n (state) => state.viewUpdate.navigatorError\n );\n const viewMethod = useSelector(\n (state) => state.viewUpdate.explorerViewMethod\n );\n\n const OpenRemoveDialog = useCallback(() => dispatch(openRemoveDialog()), [\n dispatch,\n ]);\n const SetSelectedTarget = useCallback(\n (targets) => dispatch(setSelectedTarget(targets)),\n [dispatch]\n );\n const ChangeContextMenu = useCallback(\n (type, open) => dispatch(changeContextMenu(type, open)),\n [dispatch]\n );\n const ChangeSortMethod = useCallback(\n (method) => dispatch(explorer.actions.changeSortMethod(method)),\n [dispatch]\n );\n const SelectAll = useCallback(\n () => dispatch(explorer.actions.selectAll()),\n [dispatch]\n );\n\n const { dirList, fileList, startIndex } = usePagination();\n\n const handlers = {\n DELETE_FILE: () => {\n if (selected.length > 0 && !share) {\n OpenRemoveDialog();\n }\n },\n SELECT_ALL_SHOWED: (e) => {\n e.preventDefault();\n if (selected.length >= dirList.length + fileList.length) {\n SetSelectedTarget([]);\n } else {\n SetSelectedTarget([...dirList, ...fileList]);\n }\n },\n SELECT_ALL: (e) => {\n e.preventDefault();\n SelectAll();\n },\n DESELECT_ALL: (e) => {\n e.preventDefault();\n SetSelectedTarget([]);\n },\n };\n\n useEffect(\n () =>\n configure({\n ignoreTags: [\"input\", \"select\", \"textarea\"],\n }),\n []\n );\n\n const contextMenu = (e) => {\n e.preventDefault();\n if (!search && !pathHelper.isSharePage(location.pathname)) {\n if (!loading) {\n ChangeContextMenu(\"empty\", true);\n }\n }\n };\n\n const ClickAway = (e) => {\n const element = e.target;\n if (element.dataset.clickaway) {\n SetSelectedTarget([]);\n }\n };\n\n const classes = useStyles();\n const isHomePage = pathHelper.isHomePage(location.pathname);\n\n const showView =\n !loading && (dirList.length !== 0 || fileList.length !== 0);\n\n const listView = useMemo(\n () => (\n \n \n \n \n {\n ChangeSortMethod(\n sortMethod === \"namePos\"\n ? \"nameRev\"\n : \"namePos\"\n );\n }}\n >\n {t(\"name\")}\n {sortMethod === \"namePos\" ||\n sortMethod === \"nameRev\" ? (\n \n {sortMethod === \"nameRev\"\n ? \"sorted descending\"\n : \"sorted ascending\"}\n \n ) : null}\n \n \n \n {\n ChangeSortMethod(\n sortMethod === \"sizePos\"\n ? \"sizeRes\"\n : \"sizePos\"\n );\n }}\n >\n {t(\"size\")}\n {sortMethod === \"sizePos\" ||\n sortMethod === \"sizeRes\" ? (\n \n {sortMethod === \"sizeRes\"\n ? \"sorted descending\"\n : \"sorted ascending\"}\n \n ) : null}\n \n \n \n {\n ChangeSortMethod(\n sortMethod === \"modifyTimePos\"\n ? \"modifyTimeRev\"\n : \"modifyTimePos\"\n );\n }}\n >\n {t(\"lastModified\")}\n {sortMethod === \"modifyTimePos\" ||\n sortMethod === \"modifyTimeRev\" ? (\n \n {sortMethod === \"sizeRes\"\n ? \"sorted descending\"\n : \"sorted ascending\"}\n \n ) : null}\n \n \n \n \n \n {pathHelper.isMobile() && path !== \"/\" && (\n \n )}\n {dirList.map((value, index) => (\n \n ))}\n {fileList.map((value, index) => (\n \n ))}\n \n
\n ),\n [dirList, fileList, path, sortMethod, ChangeSortMethod, classes]\n );\n\n const normalView = useMemo(\n () => (\n
\n {dirList.length !== 0 && (\n <>\n \n {t(\"folders\")}\n \n \n {dirList.map((value, index) => (\n \n \n \n ))}\n \n \n )}\n {fileList.length !== 0 && (\n <>\n \n {t(\"files\")}\n \n \n {fileList.map((value, index) => (\n \n \n \n ))}\n \n \n )}\n
\n ),\n [dirList, fileList, classes]\n );\n\n const view = viewMethod === \"list\" ? listView : normalView;\n\n return (\n \n \n \n \n {navigatorError && (\n \n \n {t(\"listError\")}\n \n \n {navigatorErrorMsg.message}\n \n \n )}\n\n {loading && !navigatorError && (\n
\n \n
\n )}\n\n {!search &&\n isHomePage &&\n dirList.length === 0 &&\n fileList.length === 0 &&\n !loading &&\n !navigatorError && (\n \n )}\n {((search &&\n dirList.length === 0 &&\n fileList.length === 0 &&\n !loading &&\n !navigatorError) ||\n (dirList.length === 0 &&\n fileList.length === 0 &&\n !loading &&\n !navigatorError &&\n !isHomePage)) && }\n {showView && view}\n \n );\n}\n","import React, { useMemo } from \"react\";\nimport { useSelector } from \"react-redux\";\n\nconst paginate = (array, page_size, page_number) =>\n page_size === -1\n ? array\n : array.slice((page_number - 1) * page_size, page_number * page_size);\n\nexport function usePagination() {\n const files = useSelector((state) => state.explorer.fileList);\n const folders = useSelector((state) => state.explorer.dirList);\n const pagination = useSelector((state) => state.viewUpdate.pagination);\n\n const { dirList, fileList, startIndex } = useMemo(() => {\n const all = paginate(\n [...folders, ...files],\n pagination.size,\n pagination.page\n );\n const dirList = [];\n const fileList = [];\n all.forEach((v) =>\n v.type === \"dir\" ? dirList.push(v) : fileList.push(v)\n );\n const startIndex = pagination.size * (pagination.page - 1);\n return { dirList, fileList, startIndex };\n }, [folders, files, pagination]);\n return { dirList, fileList, startIndex };\n}\n","import React from \"react\";\nimport { BulletList } from \"react-content-loader\";\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\n\nconst useStyles = makeStyles((theme) => ({\n loader: {\n width: \"100%\",\n // padding: 40,\n // [theme.breakpoints.down(\"md\")]: {\n // width: \"100%\",\n // padding: 10\n // }\n },\n}));\n\nconst MyLoader = (props) => (\n \n);\n\nfunction ListLoading() {\n const theme = useTheme();\n const classes = useStyles();\n\n return (\n
\n \n
\n );\n}\n\nexport default ListLoading;\n","import React, { useCallback, useEffect, useState } from \"react\";\nimport { makeStyles } from \"@material-ui/core\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport Drawer from \"@material-ui/core/Drawer\";\nimport Toolbar from \"@material-ui/core/Toolbar\";\nimport { Clear, Folder } from \"@material-ui/icons\";\nimport Divider from \"@material-ui/core/Divider\";\nimport { setSideBar } from \"../../../redux/explorer/action\";\nimport TypeIcon from \"../TypeIcon\";\nimport Typography from \"@material-ui/core/Typography\";\nimport IconButton from \"@material-ui/core/IconButton\";\nimport Grid from \"@material-ui/core/Grid\";\nimport API from \"../../../middleware/Api\";\nimport { filename, sizeToString } from \"../../../utils\";\nimport Link from \"@material-ui/core/Link\";\nimport Tooltip from \"@material-ui/core/Tooltip\";\nimport TimeAgo from \"timeago-react\";\nimport ListLoading from \"../../Placeholder/ListLoading\";\nimport Hidden from \"@material-ui/core/Hidden\";\nimport Dialog from \"@material-ui/core/Dialog\";\nimport Slide from \"@material-ui/core/Slide\";\nimport AppBar from \"@material-ui/core/AppBar\";\nimport { formatLocalTime } from \"../../../utils/datetime\";\nimport { navigateTo, toggleSnackbar } from \"../../../redux/explorer\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nconst drawerWidth = 350;\n\nconst useStyles = makeStyles((theme) => ({\n drawer: {\n width: drawerWidth,\n flexShrink: 0,\n },\n drawerPaper: {\n width: drawerWidth,\n boxShadow:\n \"0px 8px 10px -5px rgb(0 0 0 / 20%), 0px 16px 24px 2px rgb(0 0 0 / 14%), 0px 6px 30px 5px rgb(0 0 0 / 12%)\",\n },\n drawerContainer: {\n overflow: \"auto\",\n },\n header: {\n display: \"flex\",\n padding: theme.spacing(3),\n placeContent: \"space-between\",\n },\n fileIcon: { width: 33, height: 33 },\n fileIconSVG: { fontSize: 20 },\n folderIcon: {\n color: theme.palette.text.secondary,\n width: 33,\n height: 33,\n },\n fileName: {\n marginLeft: theme.spacing(2),\n marginRight: theme.spacing(2),\n wordBreak: \"break-all\",\n flexGrow: 2,\n },\n closeIcon: {\n placeSelf: \"flex-start\",\n marginTop: 2,\n },\n propsContainer: {\n padding: theme.spacing(3),\n },\n propsLabel: {\n color: theme.palette.text.secondary,\n padding: theme.spacing(1),\n },\n propsTime: {\n color: theme.palette.text.disabled,\n padding: theme.spacing(1),\n },\n propsValue: {\n padding: theme.spacing(1),\n wordBreak: \"break-all\",\n },\n appBar: {\n position: \"relative\",\n },\n title: {\n marginLeft: theme.spacing(2),\n flex: 1,\n },\n}));\n\nconst Transition = React.forwardRef(function Transition(props, ref) {\n return ;\n});\n\nexport default function SideDrawer() {\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const sideBarOpen = useSelector((state) => state.explorer.sideBarOpen);\n const selected = useSelector((state) => state.explorer.selected);\n const SetSideBar = useCallback(\n (open) => dispatch(setSideBar(open)),\n [dispatch]\n );\n const ToggleSnackbar = useCallback(\n (vertical, horizontal, msg, color) =>\n dispatch(toggleSnackbar(vertical, horizontal, msg, color)),\n [dispatch]\n );\n const NavigateTo = useCallback((k) => dispatch(navigateTo(k)), [dispatch]);\n const search = useSelector((state) => state.explorer.search);\n const [target, setTarget] = useState(null);\n const [details, setDetails] = useState(null);\n const loadProps = (object) => {\n console.log(\"object\", object);\n API.get(\n \"/object/property/\" +\n object.id +\n \"?trace_root=\" +\n (search ? \"true\" : \"false\") +\n \"&is_folder=\" +\n (object.type === \"dir\").toString()\n )\n .then((response) => {\n setDetails(response.data);\n })\n .catch((error) => {\n ToggleSnackbar(\"top\", \"right\", error.message, \"error\");\n });\n };\n\n useEffect(() => {\n setDetails(null);\n if (sideBarOpen) {\n if (selected.length !== 1) {\n SetSideBar(false);\n } else {\n setTarget(selected[0]);\n loadProps(selected[0]);\n }\n }\n }, [selected, sideBarOpen]);\n\n const classes = useStyles();\n const propsItem = [\n {\n label: t(\"fileManager.size\"),\n value: (d, target) =>\n sizeToString(d.size) +\n t(\"fileManager.bytes\", { bytes: d.size.toLocaleString() }),\n show: (d) => true,\n },\n {\n label: t(\"fileManager.storagePolicy\"),\n value: (d, target) => d.policy,\n show: (d) => d.type === \"file\",\n },\n {\n label: t(\"fileManager.storagePolicy\"),\n value: (d, target) =>\n d.policy === \"\"\n ? t(\"fileManager.inheritedFromParent\")\n : d.policy,\n show: (d) => d.type === \"dir\",\n },\n {\n label: t(\"fileManager.childFolders\"),\n value: (d, target) =>\n t(\"fileManager.childCount\", {\n num: d.child_folder_num.toLocaleString(),\n }),\n show: (d) => d.type === \"dir\",\n },\n {\n label: t(\"fileManager.childFiles\"),\n value: (d, target) =>\n t(\"fileManager.childCount\", {\n num: d.child_file_num.toLocaleString(),\n }),\n show: (d) => d.type === \"dir\",\n },\n {\n label: t(\"fileManager.parentFolder\"),\n // eslint-disable-next-line react/display-name\n value: (d, target) => {\n const path = d.path === \"\" ? target.path : d.path;\n const name = filename(path);\n return (\n \n NavigateTo(path)}\n >\n {name === \"\" ? t(\"fileManager.rootFolder\") : name}\n \n \n );\n },\n show: (d) => true,\n },\n {\n label: t(\"fileManager.modifiedAt\"),\n value: (d, target) => formatLocalTime(d.updated_at),\n show: (d) => true,\n },\n {\n label: t(\"fileManager.createdAt\"),\n value: (d) => formatLocalTime(d.created_at),\n show: (d) => true,\n },\n ];\n const content = (\n \n {!details && }\n {details && (\n <>\n {propsItem.map((item) => {\n if (item.show(target)) {\n return (\n <>\n \n {item.label}\n \n \n {item.value(details, target)}\n \n \n );\n }\n })}\n {target.type === \"dir\" && (\n \n ,\n ,\n ,\n ]}\n />\n \n )}\n \n )}\n \n );\n return (\n <>\n \n \n {target && (\n <>\n \n \n SetSideBar(false)}\n aria-label=\"close\"\n >\n \n \n \n {target.name}\n \n \n \n {content}\n \n )}\n \n \n \n \n \n
\n {target && (\n <>\n
\n {target.type === \"dir\" && (\n \n )}\n {target.type !== \"dir\" && (\n \n )}\n
\n \n {target.name}\n \n
\n SetSideBar(false)}\n className={classes.closeIcon}\n aria-label=\"close\"\n size={\"small\"}\n >\n \n \n
\n \n )}\n \n {content}\n
\n \n
\n \n );\n}\n","import React, { useEffect, useRef } from \"react\";\nimport { useDrop } from \"react-dnd\";\nimport { PaginationItem } from \"@material-ui/lab\";\n\nexport default function CustomPaginationItem(props) {\n const inputRef = useRef(null);\n\n const [{ canDrop, isOver }, drop] = useDrop({\n accept: \"object\",\n collect: (monitor) => ({\n isOver: monitor.isOver(),\n canDrop: monitor.canDrop(),\n }),\n });\n\n const isActive = canDrop && isOver;\n\n useEffect(() => {\n if (\n isActive &&\n props.onClick &&\n props.type !== \"start-ellipsis\" &&\n props.type !== \"end-ellipsis\"\n ) {\n console.log(\"ss\");\n props.onClick();\n }\n }, [isActive, inputRef]);\n\n if (\n props.isMobile &&\n (props.type === \"start-ellipsis\" ||\n props.type === \"end-ellipsis\" ||\n props.type === \"page\")\n ) {\n if (props.selected) {\n return (\n
\n {props.page} / {props.count}\n
\n );\n }\n return <>;\n }\n return (\n
\n \n
\n );\n}\n","import React, { useCallback, useMemo } from \"react\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { Pagination } from \"@material-ui/lab\";\nimport CustomPaginationItem from \"./PaginationItem\";\nimport { setPagination } from \"../../redux/viewUpdate/action\";\nimport AutoHidden from \"../Dial/AutoHidden\";\nimport statusHelper from \"../../utils/page\";\nimport { useLocation } from \"react-router-dom\";\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n position: \"fixed\",\n bottom: 23,\n /* left: 8px; */\n background: theme.palette.background.paper,\n borderRadius: 24,\n boxShadow:\n \" 0px 3px 5px -1px rgb(0 0 0 / 20%), 0px 6px 10px 0px rgb(0 0 0 / 14%), 0px 1px 18px 0px rgb(0 0 0 / 12%)\",\n padding: \"8px 4px 8px 4px\",\n marginLeft: 20,\n },\n placeholder: {\n marginTop: 80,\n },\n}));\n\nexport default function PaginationFooter() {\n const classes = useStyles();\n const dispatch = useDispatch();\n const files = useSelector((state) => state.explorer.fileList);\n const folders = useSelector((state) => state.explorer.dirList);\n const pagination = useSelector((state) => state.viewUpdate.pagination);\n const loading = useSelector((state) => state.viewUpdate.navigatorLoading);\n const location = useLocation();\n\n const SetPagination = useCallback((p) => dispatch(setPagination(p)), [\n dispatch,\n ]);\n\n const handleChange = (event, value) => {\n SetPagination({ ...pagination, page: value });\n };\n\n const count = useMemo(\n () => Math.ceil((files.length + folders.length) / pagination.size),\n [files, folders, pagination.size]\n );\n\n const isMobile = statusHelper.isMobile();\n const isSharePage = statusHelper.isSharePage(location.pathname);\n\n if (count > 1 && !loading) {\n return (\n <>\n {!isMobile && !isSharePage && (\n
\n )}\n \n
\n (\n \n )}\n color=\"secondary\"\n count={count}\n page={pagination.page}\n onChange={handleChange}\n />\n
\n \n \n );\n }\n return
;\n}\n","import React, { Component } from \"react\";\n\nimport Navigator from \"./Navigator/Navigator\";\nimport { DndProvider } from \"react-dnd\";\nimport HTML5Backend from \"react-dnd-html5-backend\";\nimport DragLayer from \"./DnD/DragLayer\";\nimport Explorer from \"./Explorer\";\nimport Modals from \"./Modals\";\nimport { withStyles } from \"@material-ui/core\";\nimport { connect } from \"react-redux\";\nimport { changeSubTitle } from \"../../redux/viewUpdate/action\";\nimport { withRouter } from \"react-router-dom\";\nimport pathHelper from \"../../utils/page\";\nimport SideDrawer from \"./Sidebar/SideDrawer\";\nimport classNames from \"classnames\";\nimport { ImageLoader } from \"@abslant/cd-image-loader\";\nimport {\n closeAllModals,\n navigateTo,\n setSelectedTarget,\n toggleSnackbar,\n} from \"../../redux/explorer\";\nimport PaginationFooter from \"./Pagination\";\n\nconst styles = (theme) => ({\n root: {\n display: \"flex\",\n flexDirection: \"column\",\n height: \"calc(100vh - 64px)\",\n [theme.breakpoints.down(\"xs\")]: {\n height: \"100%\",\n },\n },\n rootShare: {\n display: \"flex\",\n flexDirection: \"column\",\n height: \"100%\",\n minHeight: 500,\n },\n explorer: {\n display: \"flex\",\n flexDirection: \"column\",\n overflowY: \"auto\",\n },\n});\n\nconst mapStateToProps = () => ({});\n\nconst mapDispatchToProps = (dispatch) => {\n return {\n changeSubTitle: (text) => {\n dispatch(changeSubTitle(text));\n },\n setSelectedTarget: (targets) => {\n dispatch(setSelectedTarget(targets));\n },\n toggleSnackbar: (vertical, horizontal, msg, color) => {\n dispatch(toggleSnackbar(vertical, horizontal, msg, color));\n },\n closeAllModals: () => {\n dispatch(closeAllModals());\n },\n navigateTo: (path) => {\n dispatch(navigateTo(path));\n },\n };\n};\n\nclass FileManager extends Component {\n constructor(props) {\n super(props);\n }\n\n componentWillUnmount() {\n this.props.setSelectedTarget([]);\n this.props.closeAllModals();\n this.props.navigateTo(\"/\");\n }\n\n componentDidMount() {\n if (pathHelper.isHomePage(this.props.location.pathname)) {\n this.props.changeSubTitle(null);\n }\n }\n\n render() {\n const { classes } = this.props;\n return (\n \n \n \n \n
\n \n \n
\n\n \n \n
\n \n
\n );\n }\n}\n\nFileManager.propTypes = {};\n\nexport default connect(\n mapStateToProps,\n mapDispatchToProps\n)(withStyles(styles)(withRouter(FileManager)));\n","import React from \"react\";\nimport {\n Icon,\n ListItemIcon,\n makeStyles,\n Menu,\n MenuItem,\n} from \"@material-ui/core\";\nimport CheckIcon from \"@material-ui/icons/Check\";\n\nconst useStyles = makeStyles((theme) => ({\n icon: {\n minWidth: 38,\n },\n}));\n\nexport default function SelectMenu({\n options,\n anchorEl,\n handleClose,\n callback,\n selected,\n showIcon = true,\n}) {\n const classes = useStyles();\n\n return (\n \n {options.map((item) => (\n <>\n callback(item)}\n >\n {showIcon && (\n \n {item.name !== selected ? (\n \n ) : (\n \n )}\n \n )}\n\n {item.name}\n \n \n ))}\n \n );\n}\n","import React, { Suspense, useCallback, useEffect, useState } from \"react\";\nimport { Button, Paper } from \"@material-ui/core\";\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\nimport { useLocation, useParams, useRouteMatch } from \"react-router\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport pathHelper from \"../../utils/page\";\nimport UseFileSubTitle from \"../../hooks/fileSubtitle\";\nimport { getPreviewURL } from \"../../middleware/Api\";\nimport { useHistory } from \"react-router-dom\";\nimport { basename, fileNameNoExt, isMobileSafari } from \"../../utils\";\nimport { list } from \"../../services/navigate\";\nimport { getViewerURL } from \"../../redux/explorer/action\";\nimport { subtitleSuffix, videoPreviewSuffix } from \"../../config\";\nimport { toggleSnackbar } from \"../../redux/explorer\";\nimport { pathJoin } from \"../Uploader/core/utils\";\nimport { Launch, PlaylistPlay, Subtitles } from \"@material-ui/icons\";\nimport TextLoading from \"../Placeholder/TextLoading\";\nimport SelectMenu from \"./SelectMenu\";\nimport { getDownloadURL } from \"../../services/file\";\nimport { sortMethodFuncs } from \"../../redux/explorer/action\";\nimport { useTranslation } from \"react-i18next\";\n\nconst Artplayer = React.lazy(() =>\n import(\n /* webpackChunkName: \"artplayer\" */ \"artplayer/examples/react/Artplayer\"\n )\n);\n\nconst externalPlayers = [\n {\n name: \"PotPlayer\",\n url: (source, title) => `potplayer://${source}`,\n },\n {\n name: \"VLC\",\n url: (source, title) => `vlc://${source}`,\n },\n {\n name: \"IINA\",\n url: (source, title) => `iina://weblink?url=${source}`,\n },\n {\n name: \"nPlayer\",\n url: (source, title) => `nplayer-${source}`,\n },\n {\n name: \"MXPlayer (Free)\",\n url: (source, title) =>\n `intent:${source}#Intent;package=com.mxtech.videoplayer.ad;S.title=${title};end`,\n },\n {\n name: \"MXPlayer (Pro)\",\n url: (source, title) =>\n `intent:${source}#Intent;package=com.mxtech.videoplayer.pro;S.title=${title};end`,\n },\n];\n\nconst useStyles = makeStyles((theme) => ({\n layout: {\n width: \"auto\",\n marginTop: 30,\n marginBottom: 20,\n marginLeft: theme.spacing(3),\n marginRight: theme.spacing(3),\n [theme.breakpoints.up(1100 + theme.spacing(3) * 2)]: {\n width: 1100,\n marginLeft: \"auto\",\n marginRight: \"auto\",\n },\n },\n player: {\n height: \"100vh\",\n maxHeight: \"calc(100vh - 180px)\",\n },\n actions: {\n marginTop: theme.spacing(2),\n },\n actionButton: {\n marginRight: theme.spacing(1),\n marginTop: theme.spacing(1),\n },\n \"@global\": {\n \"video,.art-video-player,.art-bottom\":{\n borderRadius: theme.shape.borderRadius,\n }\n }\n}));\n\nfunction useQuery() {\n return new URLSearchParams(useLocation().search);\n}\n\nexport default function VideoViewer() {\n const { t } = useTranslation();\n const math = useRouteMatch();\n const location = useLocation();\n const query = useQuery();\n const { id } = useParams();\n const dispatch = useDispatch();\n const ToggleSnackbar = useCallback(\n (vertical, horizontal, msg, color) =>\n dispatch(toggleSnackbar(vertical, horizontal, msg, color)),\n [dispatch]\n );\n const { title, path } = UseFileSubTitle(query, math, location);\n const theme = useTheme();\n const [art, setArt] = useState(null);\n const history = useHistory();\n const [files, setFiles] = useState([]);\n const [subtitles, setSubtitles] = useState([]);\n const [playlist, setPlaylist] = useState([]);\n const [subtitleOpen, setSubtitleOpen] = useState(null);\n const [subtitleSelected, setSubtitleSelected] = useState(\"\");\n const [playlistOpen, setPlaylistOpen] = useState(null);\n const [externalPlayerOpen, setExternalPlayerOpen] = useState(null);\n const isShare = pathHelper.isSharePage(location.pathname);\n const sortMethod = useSelector((state) => state.viewUpdate.sortMethod);\n const sortFunc = sortMethodFuncs[sortMethod];\n\n useEffect(() => {\n art &&\n art.on(\"ready\", () => {\n art.autoHeight = true;\n });\n return () => {\n if (\n art !== null &&\n !isMobileSafari() &&\n document.pictureInPictureEnabled &&\n art.playing\n ) {\n art.pip = true;\n art.query(\".art-video\").addEventListener(\n \"leavepictureinpicture\",\n () => {\n art.pause();\n },\n false\n );\n }\n };\n }, [art]);\n\n const classes = useStyles();\n\n useEffect(() => {\n if (art !== null) {\n const newURL = getPreviewURL(\n isShare,\n id,\n query.get(\"id\"),\n query.get(\"share_path\")\n );\n if (newURL !== art.url) {\n if (art.subtitle) {\n art.subtitle.show = false;\n }\n art.switchUrl(newURL);\n if (path && path !== \"\") {\n list(\n basename(path),\n isShare ? { key: id } : null,\n \"\",\n \"\"\n ).then((res) => {\n setFiles(\n res.data.objects.sort(sortFunc).filter((o) => o.type === \"file\")\n );\n setPlaylist(\n res.data.objects.filter(\n (o) =>\n o.type === \"file\" &&\n videoPreviewSuffix.indexOf(\n o.name.split(\".\").pop().toLowerCase()\n ) !== -1\n )\n );\n });\n }\n }\n }\n }, [art, id, location, path]);\n\n const switchSubtitle = (f) => {\n if (art !== null) {\n const fileType = f.name.split(\".\").pop().toLowerCase();\n art.subtitle.switch(\n getPreviewURL(\n isShare,\n id,\n f.id,\n pathJoin([basename(query.get(\"share_path\")), f.name])\n ),\n {\n type: fileType,\n }\n );\n art.subtitle.show = true;\n setSubtitleSelected(f.name);\n ToggleSnackbar(\n \"top\",\n \"center\",\n t(\"fileManager.subtitleSwitchTo\", {\n subtitle: f.name,\n }),\n \"info\"\n );\n }\n };\n\n useEffect(() => {\n if (files.length > 0) {\n const fileNameMatch = fileNameNoExt(title) + \".\";\n const options = files.filter((f) => {\n const fileType = f.name.split(\".\").pop().toLowerCase();\n return subtitleSuffix.indexOf(fileType) !== -1;\n }).sort((a, b) => {\n return (a.name.startsWith(fileNameMatch) && !b.name.startsWith(fileNameMatch)) ? -1 : 0;\n });\n if (options.length > 0 && options[0].name.startsWith(fileNameMatch)) {\n switchSubtitle(options[0]);\n }\n setSubtitles(options);\n }\n }, [files]);\n\n const switchVideo = (file) => {\n setSubtitleSelected(null);\n if (isShare) {\n file.key = id;\n }\n if (isMobileSafari()) {\n window.location.href = getViewerURL(\"video\", file, isShare);\n } else {\n history.push(getViewerURL(\"video\", file, isShare));\n }\n };\n\n const setSubtitle = (sub) => {\n setSubtitleOpen(null);\n switchSubtitle(sub);\n };\n\n const startSelectSubTitle = (e) => {\n if (subtitles.length === 0) {\n ToggleSnackbar(\n \"top\",\n \"right\",\n t(\"fileManager.noSubtitleAvailable\"),\n \"warning\"\n );\n return;\n }\n setSubtitleOpen(e.currentTarget);\n };\n\n const openInExternalPlayer = (player) => {\n const current = { name: title };\n current.id = query.get(\"id\");\n current.path = basename(path);\n if (isShare) {\n current.key = id;\n }\n\n setExternalPlayerOpen(null);\n getDownloadURL(current)\n .then((response) => {\n window.location.assign(player.url(response.data, title));\n })\n .catch((error) => {\n ToggleSnackbar(\"top\", \"right\", error.message, \"error\");\n });\n };\n\n return (\n
\n \n }>\n setArt(a)}\n />\n \n \n
\n }\n variant=\"outlined\"\n >\n {t(\"fileManager.subtitle\")}\n \n {playlist.length >= 2 && (\n setPlaylistOpen(e.currentTarget)}\n className={classes.actionButton}\n startIcon={}\n variant=\"outlined\"\n >\n {t(\"fileManager.playlist\")}\n \n )}\n setExternalPlayerOpen(e.currentTarget)}\n className={classes.actionButton}\n startIcon={}\n variant=\"outlined\"\n >\n {t(\"fileManager.openInExternalPlayer\")}\n \n
\n setSubtitleOpen(null)}\n />\n setPlaylistOpen(null)}\n />\n setExternalPlayerOpen(null)}\n />\n
\n );\n}\n","import React, { useCallback, useEffect, useState } from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport OpenIcon from \"@material-ui/icons/OpenInNew\";\nimport Pagination from \"@material-ui/lab/Pagination\";\nimport FolderIcon from \"@material-ui/icons/Folder\";\n\nimport {\n Avatar,\n Card,\n CardHeader,\n Grid,\n IconButton,\n Tooltip,\n Typography,\n} from \"@material-ui/core\";\nimport API from \"../../middleware/Api\";\nimport TypeIcon from \"../FileManager/TypeIcon\";\nimport Select from \"@material-ui/core/Select\";\nimport MenuItem from \"@material-ui/core/MenuItem\";\nimport FormControl from \"@material-ui/core/FormControl\";\nimport { useHistory } from \"react-router-dom\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport { useLocation } from \"react-router\";\nimport TimeAgo from \"timeago-react\";\nimport { toggleSnackbar } from \"../../redux/explorer\";\nimport Nothing from \"../Placeholder/Nothing\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nconst useStyles = makeStyles((theme) => ({\n cardContainer: {\n padding: theme.spacing(1),\n },\n card: {\n maxWidth: 400,\n margin: \"0 auto\",\n },\n actions: {\n display: \"flex\",\n },\n layout: {\n width: \"auto\",\n marginTop: \"50px\",\n marginLeft: theme.spacing(3),\n marginRight: theme.spacing(3),\n [theme.breakpoints.up(1100 + theme.spacing(3) * 2)]: {\n width: 1100,\n marginLeft: \"auto\",\n marginRight: \"auto\",\n },\n },\n shareTitle: {\n maxWidth: \"200px\",\n },\n avatarFile: {\n backgroundColor: theme.palette.primary.light,\n },\n avatarFolder: {\n backgroundColor: theme.palette.secondary.light,\n },\n gird: {\n marginTop: \"30px\",\n },\n loadMore: {\n textAlign: \"right\",\n marginTop: \"20px\",\n marginBottom: \"40px\",\n },\n badge: {\n marginLeft: theme.spacing(1),\n height: 17,\n },\n orderSelect: {\n textAlign: \"right\",\n marginTop: 5,\n },\n cardAction: {\n marginTop: 0,\n },\n}));\n\nfunction useQuery() {\n return new URLSearchParams(useLocation().search);\n}\n\nexport default function SearchResult() {\n const { t } = useTranslation(\"application\", { keyPrefix: \"share\" });\n const { t: tGlobal } = useTranslation();\n const classes = useStyles();\n const dispatch = useDispatch();\n\n const query = useQuery();\n const location = useLocation();\n const history = useHistory();\n\n const [page, setPage] = useState(1);\n const [total, setTotal] = useState(0);\n const [shareList, setShareList] = useState([]);\n const [orderBy, setOrderBy] = useState(\"created_at DESC\");\n\n const ToggleSnackbar = useCallback(\n (vertical, horizontal, msg, color) =>\n dispatch(toggleSnackbar(vertical, horizontal, msg, color)),\n [dispatch]\n );\n\n const search = (keywords, page, orderBy) => {\n const order = orderBy.split(\" \");\n API.get(\n \"/share/search?page=\" +\n page +\n \"&order_by=\" +\n order[0] +\n \"&order=\" +\n order[1] +\n \"&keywords=\" +\n encodeURIComponent(keywords)\n )\n .then((response) => {\n setTotal(response.data.total);\n setShareList(response.data.items);\n })\n .catch(() => {\n ToggleSnackbar(\"top\", \"right\", t(\"listLoadingError\"), \"error\");\n });\n };\n\n useEffect(() => {\n const keywords = query.get(\"keywords\");\n if (keywords) {\n search(keywords, page, orderBy);\n } else {\n ToggleSnackbar(\"top\", \"right\", t(\"enterKeywords\"), \"warning\");\n }\n }, [location]);\n\n const handlePageChange = (event, value) => {\n setPage(value);\n const keywords = query.get(\"keywords\");\n search(keywords, value, orderBy);\n };\n\n const handleOrderChange = (event) => {\n setOrderBy(event.target.value);\n const keywords = query.get(\"keywords\");\n search(keywords, page, event.target.value);\n };\n\n return (\n
\n \n \n \n {t(\"searchResult\")}\n \n \n \n \n \n \n {t(\"createdAtDesc\")}\n \n \n {t(\"createdAtAsc\")}\n \n \n {t(\"downloadsDesc\")}\n \n \n {t(\"downloadsAsc\")}\n \n \n {t(\"viewsDesc\")}\n \n \n {t(\"viewsAsc\")}\n \n \n \n \n \n \n {shareList.length === 0 && }\n {shareList.map((value) => (\n \n \n \n {!value.is_dir && (\n \n )}{\" \"}\n {value.is_dir && (\n \n \n \n )}\n
\n }\n action={\n \n \n history.push(\"/s/\" + value.key)\n }\n >\n \n \n \n }\n title={\n \n \n {value.source\n ? value.source.name\n : t(\"sourceNotFound\")}\n \n \n }\n subheader={\n \n ,\n ]}\n />\n \n }\n />\n \n \n ))}\n \n
\n \n
{\" \"}\n \n );\n}\n","import React, { Component } from \"react\";\nimport { connect } from \"react-redux\";\nimport OpenIcon from \"@material-ui/icons/OpenInNew\";\nimport Pagination from \"@material-ui/lab/Pagination\";\nimport FolderIcon from \"@material-ui/icons/Folder\";\nimport LockIcon from \"@material-ui/icons/Lock\";\nimport UnlockIcon from \"@material-ui/icons/LockOpen\";\nimport EyeIcon from \"@material-ui/icons/RemoveRedEye\";\nimport DeleteIcon from \"@material-ui/icons/Delete\";\n\nimport {\n Avatar,\n Button,\n Card,\n CardActions,\n CardHeader,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n Grid,\n IconButton,\n TextField,\n Tooltip,\n Typography,\n withStyles,\n} from \"@material-ui/core\";\nimport API from \"../../middleware/Api\";\nimport TypeIcon from \"../FileManager/TypeIcon\";\nimport Chip from \"@material-ui/core/Chip\";\nimport Divider from \"@material-ui/core/Divider\";\nimport { VisibilityOff, VpnKey } from \"@material-ui/icons\";\nimport Select from \"@material-ui/core/Select\";\nimport MenuItem from \"@material-ui/core/MenuItem\";\nimport FormControl from \"@material-ui/core/FormControl\";\nimport { withRouter } from \"react-router-dom\";\nimport ToggleIcon from \"material-ui-toggle-icon\";\nimport { formatLocalTime } from \"../../utils/datetime\";\nimport { toggleSnackbar } from \"../../redux/explorer\";\nimport Nothing from \"../Placeholder/Nothing\";\nimport { withTranslation } from \"react-i18next\";\n\nconst styles = (theme) => ({\n cardContainer: {\n padding: theme.spacing(1),\n },\n card: {\n maxWidth: 400,\n margin: \"0 auto\",\n },\n actions: {\n display: \"flex\",\n },\n layout: {\n width: \"auto\",\n marginTop: \"50px\",\n marginLeft: theme.spacing(3),\n marginRight: theme.spacing(3),\n [theme.breakpoints.up(1100 + theme.spacing(3) * 2)]: {\n width: 1100,\n marginLeft: \"auto\",\n marginRight: \"auto\",\n },\n },\n shareTitle: {\n maxWidth: \"200px\",\n },\n avatarFile: {\n backgroundColor: theme.palette.primary.light,\n },\n avatarFolder: {\n backgroundColor: theme.palette.secondary.light,\n },\n gird: {\n marginTop: \"30px\",\n },\n loadMore: {\n textAlign: \"right\",\n marginTop: \"20px\",\n marginBottom: \"40px\",\n },\n badge: {\n marginLeft: theme.spacing(1),\n height: 17,\n },\n orderSelect: {\n textAlign: \"right\",\n marginTop: 5,\n },\n});\nconst mapStateToProps = () => {\n return {};\n};\n\nconst mapDispatchToProps = (dispatch) => {\n return {\n toggleSnackbar: (vertical, horizontal, msg, color) => {\n dispatch(toggleSnackbar(vertical, horizontal, msg, color));\n },\n };\n};\n\nclass MyShareCompoment extends Component {\n state = {\n page: 1,\n total: 0,\n shareList: [],\n showPwd: null,\n orderBy: \"created_at DESC\",\n };\n\n componentDidMount = () => {\n this.loadList(1, this.state.orderBy);\n };\n\n showPwd = (pwd) => {\n this.setState({ showPwd: pwd });\n };\n\n handleClose = () => {\n this.setState({ showPwd: null });\n };\n\n removeShare = (id) => {\n API.delete(\"/share/\" + id)\n .then(() => {\n let oldList = this.state.shareList;\n oldList = oldList.filter((value) => {\n return value.key !== id;\n });\n this.setState({\n shareList: oldList,\n total: this.state.total - 1,\n });\n this.props.toggleSnackbar(\n \"top\",\n \"right\",\n this.props.t(\"share.shareCanceled\"),\n \"success\"\n );\n if (oldList.length === 0) {\n this.loadList(1, this.state.orderBy);\n }\n })\n .catch((error) => {\n this.props.toggleSnackbar(\n \"top\",\n \"right\",\n error.message,\n \"error\"\n );\n });\n };\n\n changePermission = (id) => {\n const newPwd = Math.random().toString(36).substr(2).slice(2, 8);\n const oldList = this.state.shareList;\n const shareIndex = oldList.findIndex((value) => {\n return value.key === id;\n });\n API.patch(\"/share/\" + id, {\n prop: \"password\",\n value: oldList[shareIndex].password === \"\" ? newPwd : \"\",\n })\n .then((response) => {\n oldList[shareIndex].password = response.data;\n this.setState({\n shareList: oldList,\n });\n })\n .catch((error) => {\n this.props.toggleSnackbar(\n \"top\",\n \"right\",\n error.message,\n \"error\"\n );\n });\n };\n\n changePreviewOption = (id) => {\n const oldList = this.state.shareList;\n const shareIndex = oldList.findIndex((value) => {\n return value.key === id;\n });\n API.patch(\"/share/\" + id, {\n prop: \"preview_enabled\",\n value: oldList[shareIndex].preview ? \"false\" : \"true\",\n })\n .then((response) => {\n oldList[shareIndex].preview = response.data;\n this.setState({\n shareList: oldList,\n });\n })\n .catch((error) => {\n this.props.toggleSnackbar(\n \"top\",\n \"right\",\n error.message,\n \"error\"\n );\n });\n };\n\n loadList = (page, orderBy) => {\n const order = orderBy.split(\" \");\n API.get(\n \"/share?page=\" +\n page +\n \"&order_by=\" +\n order[0] +\n \"&order=\" +\n order[1]\n )\n .then((response) => {\n this.setState({\n total: response.data.total,\n shareList: response.data.items,\n });\n })\n .catch(() => {\n this.props.toggleSnackbar(\n \"top\",\n \"right\",\n this.props.t(\"share.listLoadingError\"),\n \"error\"\n );\n });\n };\n\n handlePageChange = (event, value) => {\n this.setState({\n page: value,\n });\n this.loadList(value, this.state.orderBy);\n };\n\n handleOrderChange = (event) => {\n this.setState({\n orderBy: event.target.value,\n });\n this.loadList(this.state.page, event.target.value);\n };\n\n isExpired = (share) => {\n return share.expire < -1 || share.remain_downloads === 0;\n };\n\n render() {\n const { classes, t } = this.props;\n\n return (\n
\n \n \n \n {t(\"share.sharedFiles\")}\n \n \n \n \n \n \n {t(\"share.createdAtDesc\")}\n \n \n {t(\"share.createdAtAsc\")}\n \n \n {t(\"share.downloadsDesc\")}\n \n \n {t(\"share.downloadsAsc\")}\n \n \n {t(\"share.viewsDesc\")}\n \n \n {t(\"share.viewsAsc\")}\n \n \n \n \n \n \n {this.state.shareList.length === 0 && (\n \n )}\n {this.state.shareList.map((value) => (\n \n \n \n {!value.is_dir && (\n \n )}{\" \"}\n {value.is_dir && (\n \n \n \n )}\n
\n }\n title={\n \n \n {value.source\n ? value.source.name\n : t(\"share.sourceNotFound\")}\n \n \n }\n subheader={\n \n {formatLocalTime(value.create_date)}\n {this.isExpired(value) && (\n \n )}\n \n }\n />\n \n \n \n \n this.props.history.push(\n \"/s/\" +\n value.key +\n (value.password === \"\"\n ? \"\"\n : \"?password=\" +\n value.password)\n )\n }\n >\n \n \n {\" \"}\n {value.password !== \"\" && (\n <>\n \n this.changePermission(\n value.key\n )\n }\n >\n \n \n \n \n \n this.showPwd(value.password)\n }\n >\n \n \n \n \n \n )}\n {value.password === \"\" && (\n \n this.changePermission(value.key)\n }\n >\n \n \n \n \n )}\n \n this.changePreviewOption(value.key)\n }\n >\n \n \n }\n offIcon={\n \n }\n />\n \n \n \n this.removeShare(value.key)\n }\n >\n \n \n \n \n \n \n \n ))}\n \n
\n \n
{\" \"}\n \n {t(\"share.sharePassword\")} {\" \"}\n \n \n {\" \"}\n \n {\" \"}\n {\" \"}\n {\" \"}\n \n );\n }\n}\n\nconst MyShare = connect(\n mapStateToProps,\n mapDispatchToProps\n)(withStyles(styles)(withRouter(withTranslation()(MyShareCompoment))));\n\nexport default MyShare;\n","import React, { useEffect, useState } from \"react\";\nimport {\n Button,\n CircularProgress,\n Dialog,\n DialogActions,\n DialogContent,\n DialogTitle,\n makeStyles,\n} from \"@material-ui/core\";\nimport FormGroup from \"@material-ui/core/FormGroup\";\nimport FormControlLabel from \"@material-ui/core/FormControlLabel\";\nimport Checkbox from \"@material-ui/core/Checkbox\";\nimport MenuItem from \"@material-ui/core/MenuItem\";\nimport { Virtuoso } from \"react-virtuoso\";\nimport { useTranslation } from \"react-i18next\";\n\nconst useStyles = makeStyles((theme) => ({\n contentFix: {\n padding: \"10px 24px 0px 24px\",\n },\n wrapper: {\n margin: theme.spacing(1),\n position: \"relative\",\n },\n buttonProgress: {\n color: theme.palette.secondary.light,\n position: \"absolute\",\n top: \"50%\",\n left: \"50%\",\n marginTop: -12,\n marginLeft: -12,\n },\n content: {\n padding: 0,\n },\n scroll: {\n maxHeight: \"calc(100vh - 200px)\",\n },\n}));\n\nexport default function SelectFileDialog(props) {\n const { t } = useTranslation();\n const [files, setFiles] = useState(props.files);\n\n useEffect(() => {\n setFiles(props.files);\n }, [props.files]);\n\n const handleChange = (index) => (event) => {\n const filesCopy = [...files];\n // eslint-disable-next-line\n filesCopy.map((v, k) => {\n if (v.index === index) {\n filesCopy[k] = {\n ...filesCopy[k],\n selected: event.target.checked ? \"true\" : \"false\",\n };\n }\n });\n setFiles(filesCopy);\n };\n\n const submit = () => {\n const index = [];\n // eslint-disable-next-line\n files.map((v) => {\n if (v.selected === \"true\") {\n index.push(parseInt(v.index));\n }\n });\n props.onSubmit(index);\n };\n\n const classes = useStyles();\n\n return (\n \n \n {t(\"download.selectDownloadingFile\")}\n \n \n (\n \n \n \n }\n label={v.path}\n />\n \n \n )}\n />\n \n \n \n
\n \n {t(\"ok\", { ns: \"common\" })}\n {props.modalsLoading && (\n \n )}\n \n
\n
\n \n );\n}\n","import React, { useCallback, useEffect,useMemo } from \"react\";\nimport {\n Card,\n CardContent,\n darken,\n IconButton,\n lighten,\n LinearProgress,\n makeStyles,\n Typography,\n useTheme,\n} from \"@material-ui/core\";\nimport { useDispatch } from \"react-redux\";\nimport { hex2bin, sizeToString } from \"../../utils\";\nimport PermMediaIcon from \"@material-ui/icons/PermMedia\";\nimport TypeIcon from \"../FileManager/TypeIcon\";\nimport MuiExpansionPanel from \"@material-ui/core/ExpansionPanel\";\nimport MuiExpansionPanelSummary from \"@material-ui/core/ExpansionPanelSummary\";\nimport MuiExpansionPanelDetails from \"@material-ui/core/ExpansionPanelDetails\";\nimport withStyles from \"@material-ui/core/styles/withStyles\";\nimport Divider from \"@material-ui/core/Divider\";\nimport { ExpandMore, HighlightOff } from \"@material-ui/icons\";\nimport classNames from \"classnames\";\nimport TableRow from \"@material-ui/core/TableRow\";\nimport TableCell from \"@material-ui/core/TableCell\";\nimport TableBody from \"@material-ui/core/TableBody\";\nimport Table from \"@material-ui/core/Table\";\nimport Badge from \"@material-ui/core/Badge\";\nimport Tooltip from \"@material-ui/core/Tooltip\";\nimport API from \"../../middleware/Api\";\nimport Button from \"@material-ui/core/Button\";\nimport Grid from \"@material-ui/core/Grid\";\nimport TimeAgo from \"timeago-react\";\nimport SelectFileDialog from \"../Modals/SelectFile\";\nimport { useHistory } from \"react-router\";\nimport { toggleSnackbar } from \"../../redux/explorer\";\nimport { useTranslation } from \"react-i18next\";\nimport { TableVirtuoso } from \"react-virtuoso\";\n\nconst ExpansionPanel = withStyles({\n root: {\n maxWidth: \"100%\",\n boxShadow: \"none\",\n \"&:not(:last-child)\": {\n borderBottom: 0,\n },\n \"&:before\": {\n display: \"none\",\n },\n \"&$expanded\": {},\n },\n expanded: {},\n})(MuiExpansionPanel);\n\nconst ExpansionPanelSummary = withStyles({\n root: {\n minHeight: 0,\n padding: 0,\n\n \"&$expanded\": {\n minHeight: 56,\n },\n },\n content: {\n maxWidth: \"100%\",\n margin: 0,\n display: \"flex\",\n \"&$expanded\": {\n margin: \"0\",\n },\n },\n expanded: {},\n})(MuiExpansionPanelSummary);\n\nconst ExpansionPanelDetails = withStyles((theme) => ({\n root: {\n display: \"block\",\n padding: theme.spacing(0),\n },\n}))(MuiExpansionPanelDetails);\n\nconst useStyles = makeStyles((theme) => ({\n card: {\n marginTop: \"20px\",\n justifyContent: \"space-between\",\n },\n iconContainer: {\n width: \"90px\",\n height: \"96px\",\n padding: \" 35px 29px 29px 29px\",\n paddingLeft: \"35px\",\n [theme.breakpoints.down(\"sm\")]: {\n display: \"none\",\n },\n },\n content: {\n width: \"100%\",\n minWidth: 0,\n [theme.breakpoints.up(\"sm\")]: {\n borderInlineStart: \"1px \" + theme.palette.divider + \" solid\",\n },\n },\n contentSide: {\n minWidth: 0,\n paddingTop: \"24px\",\n paddingRight: \"28px\",\n [theme.breakpoints.down(\"sm\")]: {\n display: \"none\",\n },\n },\n iconBig: {\n fontSize: \"30px\",\n },\n iconMultiple: {\n fontSize: \"30px\",\n color: \"#607D8B\",\n },\n progress: {\n marginTop: 8,\n marginBottom: 4,\n },\n expand: {\n transition: \".15s transform ease-in-out\",\n },\n expanded: {\n transform: \"rotate(180deg)\",\n },\n subFile: {\n width: \"100%\",\n minWidth: 300,\n wordBreak: \"break-all\",\n },\n subFileName: {\n display: \"flex\",\n },\n subFileIcon: {\n marginRight: \"20px\",\n },\n subFileSize: {\n minWidth: 120,\n },\n subFilePercent: {\n minWidth: 105,\n },\n scroll: {\n overflow: \"auto\",\n maxHeight: \"300px\",\n },\n action: {\n padding: theme.spacing(2),\n textAlign: \"right\",\n },\n actionButton: {\n marginLeft: theme.spacing(1),\n },\n info: {\n padding: theme.spacing(2),\n },\n infoTitle: {\n fontWeight: 700,\n textAlign: \"left\",\n },\n infoValue: {\n color: theme.palette.text.secondary,\n textAlign: \"left\",\n paddingLeft:theme.spacing(1),\n },\n bitmap: {\n width: \"100%\",\n height: \"50px\",\n backgroundColor: theme.palette.background.default,\n },\n}));\n\nexport default function DownloadingCard(props) {\n const { t } = useTranslation(\"application\", { keyPrefix: \"download\" });\n const { t: tGlobal } = useTranslation();\n const canvasRef = React.createRef();\n const classes = useStyles();\n const theme = useTheme();\n const history = useHistory();\n\n const [expanded, setExpanded] = React.useState(\"\");\n const [task, setTask] = React.useState(props.task);\n const [loading, setLoading] = React.useState(false);\n const [selectDialogOpen, setSelectDialogOpen] = React.useState(false);\n const [selectFileOption, setSelectFileOption] = React.useState([]);\n\n const handleChange = (panel) => (event, newExpanded) => {\n setExpanded(newExpanded ? panel : false);\n };\n\n const dispatch = useDispatch();\n const ToggleSnackbar = useCallback(\n (vertical, horizontal, msg, color) =>\n dispatch(toggleSnackbar(vertical, horizontal, msg, color)),\n [dispatch]\n );\n\n useEffect(() => {\n setTask(props.task);\n }, [props.task]);\n\n useEffect(() => {\n if (task.info.bitfield === \"\") {\n return;\n }\n let result = \"\";\n task.info.bitfield.match(/.{1,2}/g).forEach((str) => {\n result += hex2bin(str);\n });\n const canvas = canvasRef.current;\n const context = canvas.getContext(\"2d\");\n context.clearRect(0, 0, canvas.width, canvas.height);\n context.strokeStyle = theme.palette.primary.main;\n for (let i = 0; i < canvas.width; i++) {\n let bit =\n result[\n Math.round(((i + 1) / canvas.width) * task.info.numPieces)\n ];\n bit = bit ? bit : result.slice(-1);\n if (bit === \"1\") {\n context.beginPath();\n context.moveTo(i, 0);\n context.lineTo(i, canvas.height);\n context.stroke();\n }\n }\n // eslint-disable-next-line\n }, [task.info.bitfield, task.info.numPieces, theme]);\n\n const getPercent = (completed, total) => {\n if (total === 0) {\n return 0;\n }\n return (completed / total) * 100;\n };\n\n const activeFiles = useCallback(() => {\n return task.info.files.filter((v) => v.selected === \"true\");\n }, [task.info.files]);\n\n const deleteFile = (index) => {\n setLoading(true);\n const current = activeFiles();\n const newIndex = [];\n const newFiles = [];\n // eslint-disable-next-line\n current.map((v) => {\n if (v.index !== index && v.selected) {\n newIndex.push(parseInt(v.index));\n newFiles.push({\n ...v,\n selected: \"true\",\n });\n } else {\n newFiles.push({\n ...v,\n selected: \"false\",\n });\n }\n });\n API.put(\"/aria2/select/\" + task.info.gid, {\n indexes: newIndex,\n })\n .then(() => {\n setTask({\n ...task,\n info: {\n ...task.info,\n files: newFiles,\n },\n });\n ToggleSnackbar(\"top\", \"right\", t(\"taskFileDeleted\"), \"success\");\n })\n .catch((error) => {\n ToggleSnackbar(\"top\", \"right\", error.message, \"error\");\n })\n .then(() => {\n setLoading(false);\n });\n };\n\n const getDownloadName = useCallback(() => {\n if (task.info.bittorrent.info.name !== \"\") {\n return task.info.bittorrent.info.name;\n }\n return task.name === \".\" ? t(\"unknownTaskName\") : task.name;\n }, [task]);\n\n const getIcon = useCallback(() => {\n if (task.info.bittorrent.mode === \"multi\") {\n return (\n \n \n \n );\n } else {\n return (\n \n );\n }\n // eslint-disable-next-line\n }, [task, classes]);\n\n const cancel = () => {\n setLoading(true);\n API.delete(\"/aria2/task/\" + task.info.gid)\n .then(() => {\n ToggleSnackbar(\"top\", \"right\", t(\"taskCanceled\"), \"success\");\n })\n .catch((error) => {\n ToggleSnackbar(\"top\", \"right\", error.message, \"error\");\n })\n .then(() => {\n setLoading(false);\n });\n };\n\n const changeSelectedFile = (fileIndex) => {\n setLoading(true);\n API.put(\"/aria2/select/\" + task.info.gid, {\n indexes: fileIndex,\n })\n .then(() => {\n ToggleSnackbar(\n \"top\",\n \"right\",\n t(\"operationSubmitted\"),\n \"success\"\n );\n setSelectDialogOpen(false);\n })\n .catch((error) => {\n ToggleSnackbar(\"top\", \"right\", error.message, \"error\");\n })\n .then(() => {\n setLoading(false);\n });\n };\n\n const subFileList = useMemo(() => {\n const processStyle = (value) => ({\n background:\n \"linear-gradient(to right, \" +\n (theme.palette.type ===\n \"dark\"\n ? darken(\n theme.palette\n .primary\n .main,\n 0.4\n )\n : lighten(\n theme.palette\n .primary\n .main,\n 0.85\n )) +\n \" 0%,\" +\n (theme.palette.type ===\n \"dark\"\n ? darken(\n theme.palette\n .primary\n .main,\n 0.4\n )\n : lighten(\n theme.palette\n .primary\n .main,\n 0.85\n )) +\n \" \" +\n getPercent(\n value.completedLength,\n value.length\n ).toFixed(0) +\n \"%,\" +\n theme.palette.background\n .paper +\n \" \" +\n getPercent(\n value.completedLength,\n value.length\n ).toFixed(0) +\n \"%,\" +\n theme.palette.background\n .paper +\n \" 100%)\",\n });\n\n const subFileCell = (value) => (\n <>\n \n \n \n {value.path}\n \n \n \n \n {\" \"}\n {sizeToString(\n value.length\n )}\n \n \n \n \n {getPercent(\n value.completedLength,\n value.length\n ).toFixed(2)}\n %\n \n \n \n \n \n deleteFile(\n value.index\n )\n }\n disabled={loading}\n size={\"small\"}\n >\n \n \n \n \n \n );\n\n return activeFiles().length > 5 ? (\n ,\n // eslint-disable-next-line react/display-name\n TableRow: (props) => {\n const index = props[\"data-index\"];\n const value = activeFiles()[index];\n return (\n \n );\n },\n }}\n data={activeFiles()}\n itemContent={(index, value) => (\n subFileCell(value)\n )}\n />\n ) : (\n
\n
\n \n {activeFiles().map((value) => {\n return (\n \n {subFileCell(value)}\n \n );\n })}\n \n
\n \n );\n }, [\n classes,\n theme,\n activeFiles,\n ]);\n\n return (\n \n setSelectDialogOpen(false)}\n modalsLoading={loading}\n files={selectFileOption}\n onSubmit={changeSelectedFile}\n />\n \n \n
{getIcon()}
\n \n \n \n {getDownloadName()}\n \n \n \n \n {task.total > 0 && (\n \n {getPercent(\n task.downloaded,\n task.total\n ).toFixed(2)}\n % -{\" \"}\n {task.downloaded === 0\n ? \"0Bytes\"\n : sizeToString(task.downloaded)}\n /\n {task.total === 0\n ? \"0Bytes\"\n : sizeToString(task.total)}{\" \"}\n -{\" \"}\n {task.speed === \"0\"\n ? \"0B/s\"\n : sizeToString(task.speed) + \"/s\"}\n \n )}\n {task.total === 0 && - }\n \n \n \n \n \n \n \n \n \n \n {task.info.bittorrent.mode === \"multi\" && subFileList}\n
\n \n history.push(\n \"/home?path=\" + encodeURIComponent(task.dst)\n )\n }\n >\n {t(\"openDstFolder\")}\n \n {task.info.bittorrent.mode === \"multi\" && (\n {\n setSelectDialogOpen(true);\n setSelectFileOption([\n ...props.task.info.files,\n ]);\n }}\n >\n {t(\"selectDownloadingFile\")}\n \n )}\n \n {t(\"cancelTask\")}\n \n
\n \n
\n {task.info.bitfield !== \"\" && (\n \n )}\n\n \n \n \n {t(\"updatedAt\")}\n \n \n \n \n \n \n \n {t(\"uploaded\")}\n \n \n {sizeToString(task.info.uploadLength)}\n \n \n \n \n {t(\"uploadSpeed\")}\n \n \n {sizeToString(task.info.uploadSpeed)} / s\n \n \n {task.info.bittorrent.mode !== \"\" && (\n <>\n \n \n {t(\"InfoHash\")}\n \n \n {task.info.infoHash}\n \n \n \n \n {t(\"seederCount\")}\n \n \n {task.info.numSeeders}\n \n \n \n \n {t(\"seeding\")}\n \n \n {task.info.seeder === \"true\"\n ? t(\"isSeeding\")\n : t(\"notSeeding\")}\n \n \n \n )}\n \n \n {t(\"chunkSize\")}\n \n \n {sizeToString(task.info.pieceLength)}\n \n \n \n \n {t(\"chunkNumbers\")}\n \n \n {task.info.numPieces}\n \n \n {props.task.node && \n \n {t(\"downloadNode\")}\n \n \n {props.task.node}\n \n }\n \n
\n
\n \n
\n );\n}\n","import React, { useCallback, useMemo } from \"react\";\nimport {\n Card,\n CardContent,\n IconButton,\n makeStyles,\n Typography,\n useTheme,\n} from \"@material-ui/core\";\nimport { sizeToString } from \"../../utils\";\nimport PermMediaIcon from \"@material-ui/icons/PermMedia\";\nimport TypeIcon from \"../FileManager/TypeIcon\";\nimport MuiExpansionPanel from \"@material-ui/core/ExpansionPanel\";\nimport MuiExpansionPanelSummary from \"@material-ui/core/ExpansionPanelSummary\";\nimport MuiExpansionPanelDetails from \"@material-ui/core/ExpansionPanelDetails\";\nimport withStyles from \"@material-ui/core/styles/withStyles\";\nimport Divider from \"@material-ui/core/Divider\";\nimport { ExpandMore } from \"@material-ui/icons\";\nimport classNames from \"classnames\";\nimport Table from \"@material-ui/core/Table\";\nimport TableBody from \"@material-ui/core/TableBody\";\nimport TableRow from \"@material-ui/core/TableRow\";\nimport TableCell from \"@material-ui/core/TableCell\";\nimport Badge from \"@material-ui/core/Badge\";\nimport Tooltip from \"@material-ui/core/Tooltip\";\nimport Button from \"@material-ui/core/Button\";\nimport Grid from \"@material-ui/core/Grid\";\nimport API from \"../../middleware/Api\";\nimport { useDispatch } from \"react-redux\";\nimport { useHistory } from \"react-router\";\nimport { formatLocalTime } from \"../../utils/datetime\";\nimport { toggleSnackbar } from \"../../redux/explorer\";\nimport { TableVirtuoso } from \"react-virtuoso\";\nimport { useTranslation } from \"react-i18next\";\n\nconst ExpansionPanel = withStyles({\n root: {\n maxWidth: \"100%\",\n boxShadow: \"none\",\n \"&:not(:last-child)\": {\n borderBottom: 0,\n },\n \"&:before\": {\n display: \"none\",\n },\n \"&$expanded\": {},\n },\n expanded: {},\n})(MuiExpansionPanel);\n\nconst ExpansionPanelSummary = withStyles({\n root: {\n minHeight: 0,\n padding: 0,\n\n \"&$expanded\": {\n minHeight: 56,\n },\n },\n content: {\n maxWidth: \"100%\",\n margin: 0,\n display: \"flex\",\n \"&$expanded\": {\n margin: \"0\",\n },\n },\n expanded: {},\n})(MuiExpansionPanelSummary);\n\nconst ExpansionPanelDetails = withStyles((theme) => ({\n root: {\n display: \"block\",\n padding: theme.spacing(0),\n },\n}))(MuiExpansionPanelDetails);\n\nconst useStyles = makeStyles((theme) => ({\n card: {\n marginTop: \"20px\",\n justifyContent: \"space-between\",\n },\n iconContainer: {\n width: \"90px\",\n height: \"96px\",\n padding: \" 35px 29px 29px 29px\",\n paddingLeft: \"35px\",\n [theme.breakpoints.down(\"sm\")]: {\n display: \"none\",\n },\n },\n content: {\n width: \"100%\",\n minWidth: 0,\n [theme.breakpoints.up(\"sm\")]: {\n borderInlineStart: \"1px \" + theme.palette.divider + \" solid\",\n },\n textAlign: \"left\",\n },\n contentSide: {\n minWidth: 0,\n paddingTop: \"24px\",\n paddingRight: \"28px\",\n [theme.breakpoints.down(\"sm\")]: {\n display: \"none\",\n },\n },\n iconBig: {\n fontSize: \"30px\",\n },\n iconMultiple: {\n fontSize: \"30px\",\n color: \"#607D8B\",\n },\n progress: {\n marginTop: 8,\n marginBottom: 4,\n },\n expand: {\n transition: \".15s transform ease-in-out\",\n },\n expanded: {\n transform: \"rotate(180deg)\",\n },\n subFile: {\n width: \"100%\",\n minWidth: 300,\n wordBreak: \"break-all\",\n },\n subFileName: {\n display: \"flex\",\n },\n subFileIcon: {\n marginRight: \"20px\",\n },\n subFileSize: {\n minWidth: 115,\n },\n subFilePercent: {\n minWidth: 100,\n },\n scroll: {\n overflow: \"auto\",\n maxHeight: \"300px\",\n },\n action: {\n padding: theme.spacing(2),\n textAlign: \"right\",\n },\n actionButton: {\n marginLeft: theme.spacing(1),\n },\n info: {\n padding: theme.spacing(2),\n },\n infoTitle: {\n fontWeight: 700,\n textAlign: \"left\",\n },\n infoValue: {\n color: theme.palette.text.secondary,\n textAlign: \"left\",\n paddingLeft: theme.spacing(1),\n },\n}));\n\nexport default function FinishedCard(props) {\n const { t } = useTranslation(\"application\", { keyPrefix: \"download\" });\n const classes = useStyles();\n const theme = useTheme();\n const history = useHistory();\n\n const [expanded, setExpanded] = React.useState(false);\n const [loading, setLoading] = React.useState(false);\n\n const dispatch = useDispatch();\n const ToggleSnackbar = useCallback(\n (vertical, horizontal, msg, color) =>\n dispatch(toggleSnackbar(vertical, horizontal, msg, color)),\n [dispatch]\n );\n\n const handleChange = () => (event, newExpanded) => {\n setExpanded(!!newExpanded);\n };\n\n const cancel = () => {\n setLoading(true);\n API.delete(\"/aria2/task/\" + props.task.gid)\n .then(() => {\n ToggleSnackbar(\"top\", \"right\", t(\"taskDeleted\"), \"success\");\n })\n .catch((error) => {\n ToggleSnackbar(\"top\", \"right\", error.message, \"error\");\n })\n .then(() => {\n window.location.reload();\n });\n };\n\n const getPercent = (completed, total) => {\n if (total == 0) {\n return 0;\n }\n return (completed / total) * 100;\n };\n\n const getDownloadName = useCallback(() => {\n return props.task.name === \".\" ? t(\"unknownTaskName\") : props.task.name;\n }, [props.task.name]);\n\n const activeFiles = useCallback(() => {\n return props.task.files.filter((v) => v.selected === \"true\");\n }, [props.task.files]);\n\n const getIcon = useCallback(() => {\n if (props.task.files.length > 1) {\n return (\n \n \n \n );\n } else {\n return (\n \n );\n }\n }, [props.task, classes]);\n\n const getTaskError = (error) => {\n try {\n const res = JSON.parse(error);\n return res.msg + \":\" + res.error;\n } catch (e) {\n return t(\"transferFailed\");\n }\n };\n\n const subFileList = useMemo(() => {\n const subFileCell = (value) => (\n <>\n \n \n \n {value.path}\n \n \n \n \n {\" \"}\n {sizeToString(value.length)}\n \n \n \n \n {getPercent(\n value.completedLength,\n value.length\n ).toFixed(2)}\n %\n \n \n \n );\n\n return activeFiles().length > 5 ? (\n ,\n }}\n data={activeFiles()}\n itemContent={(index, value) => subFileCell(value)}\n />\n ) : (\n
\n
\n \n {activeFiles().map((value) => {\n return (\n \n {subFileCell(value)}\n \n );\n })}\n \n
\n \n );\n }, [classes, activeFiles]);\n\n return (\n \n \n \n
{getIcon()}
\n \n \n \n {getDownloadName()}\n \n \n {props.task.status === 3 && (\n \n \n {t(\"downloadFailed\", {\n msg: props.task.error,\n })}\n \n \n )}\n {props.task.status === 5 && (\n \n {t(\"canceledStatus\")}\n {props.task.error !== \"\" && (\n ({props.task.error})\n )}\n \n )}\n {props.task.status === 4 &&\n props.task.task_status === 4 && (\n \n {t(\"finishedStatus\")}\n \n )}\n {props.task.status === 4 &&\n props.task.task_status === 0 && (\n \n {t(\"pending\")}\n \n )}\n {props.task.status === 4 &&\n props.task.task_status === 1 && (\n \n {t(\"transferring\")}\n \n )}\n {props.task.status === 4 &&\n props.task.task_status === 2 && (\n \n \n {getTaskError(props.task.task_error)}\n \n \n )}\n \n \n \n \n \n \n \n \n \n {props.task.files.length > 1 && subFileList}\n
\n \n history.push(\n \"/home?path=\" +\n encodeURIComponent(props.task.dst)\n )\n }\n >\n {t(\"openDstFolder\")}\n \n \n {t(\"deleteRecord\")}\n \n
\n \n
\n \n \n \n {t(\"createdAt\")}\n \n \n {formatLocalTime(props.task.create)}\n \n \n \n \n {t(\"updatedAt\")}\n \n \n {formatLocalTime(props.task.update)}\n \n \n {props.task.node && (\n \n \n {t(\"downloadNode\")}\n \n \n {props.task.node}\n \n \n )}\n \n
\n
\n \n
\n );\n}\n","import React, { useCallback } from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport AutoHidden from \"./AutoHidden\";\nimport { makeStyles } from \"@material-ui/core\";\nimport Fab from \"@material-ui/core/Fab\";\nimport { Add } from \"@material-ui/icons\";\nimport Modals from \"../FileManager/Modals\";\nimport { openRemoteDownloadDialog } from \"../../redux/explorer\";\n\nconst useStyles = makeStyles(() => ({\n fab: {\n margin: 0,\n top: \"auto\",\n right: 20,\n bottom: 20,\n left: \"auto\",\n zIndex: 5,\n position: \"fixed\",\n },\n}));\n\nexport default function RemoteDownloadButton() {\n const classes = useStyles();\n const dispatch = useDispatch();\n\n const OpenRemoteDownloadDialog = useCallback(\n () => dispatch(openRemoteDownloadDialog()),\n [dispatch]\n );\n\n return (\n <>\n \n \n OpenRemoteDownloadDialog()}\n >\n \n \n \n \n );\n}\n","import React, { Component } from \"react\";\nimport { connect } from \"react-redux\";\nimport RefreshIcon from \"@material-ui/icons/Refresh\";\nimport API from \"../../middleware/Api\";\nimport { Button, IconButton, Typography, withStyles } from \"@material-ui/core\";\nimport DownloadingCard from \"./DownloadingCard\";\nimport FinishedCard from \"./FinishedCard\";\nimport RemoteDownloadButton from \"../Dial/Aria2\";\nimport Auth from \"../../middleware/Auth\";\nimport { toggleSnackbar } from \"../../redux/explorer\";\nimport Nothing from \"../Placeholder/Nothing\";\nimport { withTranslation } from \"react-i18next\";\n\nconst styles = (theme) => ({\n actions: {\n display: \"flex\",\n },\n title: {\n marginTop: \"20px\",\n },\n layout: {\n width: \"auto\",\n marginTop: \"30px\",\n marginLeft: theme.spacing(3),\n marginRight: theme.spacing(3),\n [theme.breakpoints.up(1100 + theme.spacing(3) * 2)]: {\n width: 700,\n marginLeft: \"auto\",\n marginRight: \"auto\",\n },\n },\n shareTitle: {\n maxWidth: \"200px\",\n },\n avatarFile: {\n backgroundColor: theme.palette.primary.light,\n },\n avatarFolder: {\n backgroundColor: theme.palette.secondary.light,\n },\n gird: {\n marginTop: \"30px\",\n },\n hide: {\n display: \"none\",\n },\n loadingAnimation: {\n borderRadius: \"6px 6px 0 0\",\n },\n shareFix: {\n marginLeft: \"20px\",\n },\n loadMore: {\n textAlign: \"center\",\n marginTop: \"20px\",\n marginBottom: \"20px\",\n },\n margin: {\n marginTop: theme.spacing(2),\n },\n});\nconst mapStateToProps = () => {\n return {};\n};\n\nconst mapDispatchToProps = (dispatch) => {\n return {\n toggleSnackbar: (vertical, horizontal, msg, color) => {\n dispatch(toggleSnackbar(vertical, horizontal, msg, color));\n },\n };\n};\n\nclass DownloadComponent extends Component {\n page = 0;\n interval = 0;\n previousDownloading = -1;\n\n state = {\n downloading: [],\n loading: false,\n finishedList: [],\n continue: true,\n };\n\n componentDidMount = () => {\n this.loadDownloading();\n };\n\n componentWillUnmount() {\n clearTimeout(this.interval);\n }\n\n loadDownloading = () => {\n this.setState({\n loading: true,\n });\n API.get(\"/aria2/downloading\")\n .then((response) => {\n this.setState({\n downloading: response.data,\n loading: false,\n });\n // 设定自动更新\n clearTimeout(this.interval);\n if (response.data.length > 0) {\n this.interval = setTimeout(\n this.loadDownloading,\n 1000 *\n response.data.reduce(function (prev, current) {\n return prev.interval < current.interval\n ? prev\n : current;\n }).interval\n );\n }\n\n // 下载中条目变更时刷新已完成列表\n if (response.data.length !== this.previousDownloading) {\n this.page = 0;\n this.setState({\n finishedList: [],\n continue: true,\n });\n this.loadMore();\n }\n this.previousDownloading = response.data.length;\n })\n .catch((error) => {\n this.props.toggleSnackbar(\n \"top\",\n \"right\",\n error.message,\n \"error\"\n );\n });\n };\n\n loadMore = () => {\n this.setState({\n loading: true,\n });\n API.get(\"/aria2/finished?page=\" + ++this.page)\n .then((response) => {\n this.setState({\n finishedList: [\n ...this.state.finishedList,\n ...response.data,\n ],\n loading: false,\n continue: response.data.length >= 10,\n });\n })\n .catch(() => {\n this.props.toggleSnackbar(\n \"top\",\n \"right\",\n this.props.t(\"download.failedToLoad\"),\n \"error\"\n );\n this.setState({\n loading: false,\n });\n });\n };\n\n render() {\n const { classes, t } = this.props;\n const user = Auth.GetUser();\n\n return (\n
\n {user.group.allowRemoteDownload && }\n \n {t(\"download.active\")}\n \n \n \n \n {this.state.downloading.length === 0 && (\n \n )}\n {this.state.downloading.map((value, k) => (\n \n ))}\n \n {t(\"download.finished\")}\n \n
\n {this.state.finishedList.length === 0 && (\n \n )}\n {this.state.finishedList.map((value, k) => {\n if (value.files) {\n return ;\n }\n return null;\n })}\n \n {t(\"download.loadMore\")}\n \n
\n
\n );\n }\n}\n\nconst Download = connect(\n mapStateToProps,\n mapDispatchToProps\n)(withStyles(styles)(withTranslation()(DownloadComponent)));\n\nexport default Download;\n","import React, { Component } from \"react\";\nimport { connect } from \"react-redux\";\n\nimport {\n Avatar,\n Button,\n Card,\n CardActions,\n CardContent,\n CardHeader,\n Divider,\n TextField,\n withStyles,\n} from \"@material-ui/core\";\nimport { withRouter } from \"react-router\";\nimport { formatLocalTime } from \"../../utils/datetime\";\nimport { toggleSnackbar } from \"../../redux/explorer\";\nimport { withTranslation } from \"react-i18next\";\n\nconst styles = (theme) => ({\n card: {\n maxWidth: 400,\n margin: \"0 auto\",\n },\n actions: {\n display: \"flex\",\n },\n layout: {\n width: \"auto\",\n marginTop: \"110px\",\n marginLeft: theme.spacing(3),\n marginRight: theme.spacing(3),\n [theme.breakpoints.up(1100 + theme.spacing(3) * 2)]: {\n width: 1100,\n marginLeft: \"auto\",\n marginRight: \"auto\",\n },\n },\n continue: {\n marginLeft: \"auto\",\n marginRight: \"10px\",\n marginRottom: \"10px\",\n },\n});\nconst mapStateToProps = () => {\n return {};\n};\n\nconst mapDispatchToProps = (dispatch) => {\n return {\n toggleSnackbar: (vertical, horizontal, msg, color) => {\n dispatch(toggleSnackbar(vertical, horizontal, msg, color));\n },\n };\n};\n\nclass LockedFileCompoment extends Component {\n constructor(props) {\n super(props);\n const query = new URLSearchParams(this.props.location.search);\n this.state = {\n pwd: query.get(\"password\"),\n };\n }\n\n handleChange = (name) => (event) => {\n this.setState({ [name]: event.target.value });\n };\n\n submit = (e) => {\n e.preventDefault();\n if (this.state.pwd === \"\") {\n return;\n }\n this.props.setPassowrd(this.state.pwd);\n };\n\n render() {\n const { classes, t } = this.props;\n\n return (\n
\n \n \n }\n title={t(\"share.privateShareTitle\", {\n nick: this.props.share.creator.nick,\n })}\n subheader={formatLocalTime(\n this.props.share.create_date\n )}\n />\n \n \n
\n \n \n
\n \n \n {t(\"share.continue\")}\n \n \n
\n
\n );\n }\n}\n\nconst LockedFile = connect(\n mapStateToProps,\n mapDispatchToProps\n)(withStyles(styles)(withRouter(withTranslation()(LockedFileCompoment))));\n\nexport default LockedFile;\n","import React from \"react\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport { Avatar, Typography } from \"@material-ui/core\";\nimport { useHistory } from \"react-router\";\nimport Link from \"@material-ui/core/Link\";\nimport { formatLocalTime } from \"../../utils/datetime\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nconst useStyles = makeStyles((theme) => ({\n boxHeader: {\n textAlign: \"center\",\n padding: 24,\n },\n avatar: {\n backgroundColor: theme.palette.secondary.main,\n margin: \"0 auto\",\n width: 50,\n height: 50,\n cursor: \"pointer\",\n },\n shareDes: {\n marginTop: 12,\n },\n shareInfo: {\n color: theme.palette.text.disabled,\n fontSize: 14,\n },\n}));\n\nexport default function Creator(props) {\n const { t } = useTranslation(\"application\", { keyPrefix: \"share\" });\n const classes = useStyles();\n const history = useHistory();\n\n const getSecondDes = () => {\n if (props.share.expire > 0) {\n if (props.share.expire >= 24 * 3600) {\n return t(\"expireInXDays\", {\n num: Math.round(props.share.expire / (24 * 3600)),\n });\n }\n\n return t(\"expireInXHours\", {\n num: Math.round(props.share.expire / 3600),\n });\n }\n return formatLocalTime(props.share.create_date);\n };\n\n const userProfile = () => {\n history.push(\"/profile/\" + props.share.creator.key);\n props.onClose && props.onClose();\n };\n\n return (\n
\n userProfile()}\n />\n \n {props.isFolder && (\n userProfile()}\n href={\"javascript:void(0)\"}\n color=\"inherit\"\n />,\n ]}\n />\n )}\n {!props.isFolder && (\n userProfile()}\n href={\"javascript:void(0)\"}\n color=\"inherit\"\n />,\n ]}\n />\n )}\n \n \n {t(\"statistics\", {\n views: props.share.views,\n downloads: props.share.downloads,\n time: getSecondDes(),\n })}\n \n
\n );\n}\n","import React, { Component } from \"react\";\nimport { connect } from \"react-redux\";\nimport { sizeToString, vhCheck } from \"../../utils\";\nimport { isPreviewable } from \"../../config\";\nimport { Button, Typography, withStyles } from \"@material-ui/core\";\nimport Divider from \"@material-ui/core/Divider\";\nimport TypeIcon from \"../FileManager/TypeIcon\";\nimport Auth from \"../../middleware/Auth\";\nimport PurchaseShareDialog from \"../Modals/PurchaseShare\";\nimport { withRouter } from \"react-router-dom\";\nimport Creator from \"./Creator\";\nimport pathHelper from \"../../utils/page\";\nimport Report from \"../Modals/Report\";\nimport {\n openMusicDialog,\n openResaveDialog,\n setSelectedTarget,\n showAudioPreview,\n showImgPreivew,\n toggleSnackbar,\n} from \"../../redux/explorer\";\nimport { startDownload } from \"../../redux/explorer/action\";\nimport { trySharePurchase } from \"../../redux/explorer/async\";\nimport { withTranslation } from \"react-i18next\";\n\nvhCheck();\nconst styles = (theme) => ({\n layout: {\n width: \"auto\",\n marginTop: \"90px\",\n marginLeft: theme.spacing(3),\n marginRight: theme.spacing(3),\n [theme.breakpoints.up(1100 + theme.spacing(3) * 2)]: {\n width: 1100,\n marginTop: \"90px\",\n marginLeft: \"auto\",\n marginRight: \"auto\",\n },\n [theme.breakpoints.down(\"sm\")]: {\n marginTop: 0,\n marginLeft: 0,\n marginRight: 0,\n },\n justifyContent: \"center\",\n display: \"flex\",\n },\n player: {\n borderRadius: \"4px\",\n },\n fileCotainer: {\n width: \"200px\",\n margin: \"0 auto\",\n },\n buttonCotainer: {\n width: \"400px\",\n margin: \"0 auto\",\n textAlign: \"center\",\n marginTop: \"20px\",\n },\n paper: {\n padding: theme.spacing(2),\n },\n icon: {\n borderRadius: \"10%\",\n marginTop: 2,\n },\n\n box: {\n width: \"100%\",\n maxWidth: 490,\n backgroundColor: theme.palette.background.paper,\n borderRadius: theme.shape.borderRadius,\n boxShadow: \"0 8px 16px rgba(29,39,55,.25)\",\n [theme.breakpoints.down(\"sm\")]: {\n height: \"calc(var(--vh, 100vh) - 56px)\",\n borderRadius: 0,\n maxWidth: 1000,\n },\n display: \"flex\",\n flexDirection: \"column\",\n },\n boxContent: {\n padding: 24,\n display: \"flex\",\n flex: \"1\",\n },\n fileName: {\n marginLeft: 20,\n },\n fileSize: {\n color: theme.palette.text.disabled,\n fontSize: 14,\n },\n boxFooter: {\n display: \"flex\",\n padding: \"20px 16px\",\n justifyContent: \"space-between\",\n },\n downloadButton: {\n marginLeft: 8,\n },\n});\nconst mapStateToProps = () => {\n return {};\n};\n\nconst mapDispatchToProps = (dispatch) => {\n return {\n toggleSnackbar: (vertical, horizontal, msg, color) => {\n dispatch(toggleSnackbar(vertical, horizontal, msg, color));\n },\n openMusicDialog: (first) => {\n dispatch(showAudioPreview(first));\n },\n setSelectedTarget: (targets) => {\n dispatch(setSelectedTarget(targets));\n },\n showImgPreivew: (first) => {\n dispatch(showImgPreivew(first));\n },\n openResave: (key) => {\n dispatch(openResaveDialog(key));\n },\n startDownload: (share, file) => {\n dispatch(startDownload(share, file));\n },\n trySharePurchase: (share) => dispatch(trySharePurchase(share)),\n };\n};\n\nconst Modals = React.lazy(() => import(\"../FileManager/Modals\"));\nconst ImgPreview = React.lazy(() => import(\"../FileManager/ImgPreview\"));\n\nclass SharedFileCompoment extends Component {\n state = {\n anchorEl: null,\n open: false,\n purchaseCallback: null,\n loading: false,\n openReport: false,\n };\n\n downloaded = false;\n\n // TODO merge into react thunk\n preview = () => {\n if (pathHelper.isSharePage(this.props.location.pathname)) {\n const user = Auth.GetUser();\n if (!Auth.Check() && user && !user.group.shareDownload) {\n this.props.toggleSnackbar(\n \"top\",\n \"right\",\n this.props.t(\"share.pleaseLogin\"),\n \"warning\"\n );\n return;\n }\n }\n\n switch (isPreviewable(this.props.share.source.name)) {\n case \"img\":\n this.props.showImgPreivew({\n key: this.props.share.key,\n name: this.props.share.source.name,\n });\n return;\n case \"msDoc\":\n this.props.history.push(\n this.props.share.key +\n \"/doc?name=\" +\n encodeURIComponent(this.props.share.source.name)\n );\n return;\n case \"audio\":\n this.props.openMusicDialog({\n key: this.props.share.key,\n name: this.props.share.source.name,\n type: \"share\",\n });\n return;\n case \"video\":\n this.props.history.push(\n this.props.share.key +\n \"/video?name=\" +\n encodeURIComponent(this.props.share.source.name)\n );\n return;\n case \"edit\":\n this.props.history.push(\n this.props.share.key +\n \"/text?name=\" +\n encodeURIComponent(this.props.share.source.name)\n );\n return;\n case \"pdf\":\n this.props.history.push(\n this.props.share.key +\n \"/pdf?name=\" +\n encodeURIComponent(this.props.share.source.name)\n );\n return;\n case \"code\":\n this.props.history.push(\n this.props.share.key +\n \"/code?name=\" +\n encodeURIComponent(this.props.share.source.name)\n );\n return;\n case \"epub\":\n this.props.history.push(\n this.props.share.key +\n \"/epub?name=\" +\n encodeURIComponent(this.props.share.source.name)\n );\n return;\n default:\n this.props.toggleSnackbar(\n \"top\",\n \"right\",\n this.props.t(\"share.cannotShare\"),\n \"warning\"\n );\n return;\n }\n };\n\n scoreHandler = (callback) => (event) => {\n this.props.trySharePurchase(this.props.share).then(() => callback());\n };\n\n componentWillUnmount() {\n this.props.setSelectedTarget([]);\n }\n\n download = () => {\n this.props.startDownload(this.props.share, null);\n };\n\n render() {\n const { classes, t } = this.props;\n const user = Auth.GetUser();\n const isLogin = Auth.Check();\n\n return (\n
\n \n \n \n this.setState({ openReport: false })}\n />\n
\n \n \n
\n \n
\n \n {this.props.share.source.name}\n \n \n {sizeToString(this.props.share.source.size)}\n \n
\n
\n \n
\n
\n \n this.props.openResave(this.props.share.key)\n }\n color=\"secondary\"\n >\n {t(\"vas.saveToMyFiles\")}\n \n \n this.setState({ openReport: true })\n }\n color=\"secondary\"\n >\n {t(\"vas.report\")}\n \n
\n
\n {this.props.share.preview && (\n \n {t(\"share.preview\")}\n \n )}\n \n {t(\"fileManager.download\")}\n {this.props.share.score > 0 &&\n (!isLogin || !user.group.shareFree) &&\n t(\"vas.creditPrice\", {\n num: this.props.share.score,\n })}\n {this.props.share.score > 0 &&\n isLogin &&\n user.group.shareFree &&\n t(\"vas.creditFree\")}\n \n
\n
\n
\n
\n );\n }\n}\n\nconst SharedFile = connect(\n mapStateToProps,\n mapDispatchToProps\n)(withStyles(styles)(withRouter(withTranslation()(SharedFileCompoment))));\n\nexport default SharedFile;\n","import React, { Component } from \"react\";\nimport { connect } from \"react-redux\";\nimport { Typography, withStyles } from \"@material-ui/core\";\nimport { withRouter } from \"react-router-dom\";\nimport FileManager from \"../FileManager/FileManager\";\nimport Paper from \"@material-ui/core/Paper\";\nimport Popover from \"@material-ui/core/Popover\";\nimport Creator from \"./Creator\";\nimport ClickAwayListener from \"@material-ui/core/ClickAwayListener\";\nimport pathHelper from \"../../utils/page\";\nimport {\n openMusicDialog,\n openResaveDialog,\n setSelectedTarget,\n setShareUserPopover,\n showImgPreivew,\n toggleSnackbar,\n} from \"../../redux/explorer\";\nimport { setShareInfo } from \"../../redux/viewUpdate/action\";\n\nconst styles = (theme) => ({\n layout: {\n width: \"auto\",\n marginTop: 30,\n marginBottom: 30,\n marginLeft: theme.spacing(3),\n marginRight: theme.spacing(3),\n [theme.breakpoints.up(1100 + theme.spacing(3) * 2)]: {\n width: 1100,\n marginLeft: \"auto\",\n marginRight: \"auto\",\n },\n [theme.breakpoints.down(\"sm\")]: {\n marginTop: theme.spacing(2),\n marginLeft: theme.spacing(1),\n marginRight: theme.spacing(1),\n },\n },\n managerContainer: {\n overflowY: \"auto\",\n },\n});\n\nconst ReadMe = React.lazy(() => import(\"./ReadMe\"));\n\nconst mapStateToProps = (state) => {\n return {\n anchorEl: state.viewUpdate.shareUserPopoverAnchorEl,\n fileList: state.explorer.fileList,\n };\n};\n\nconst mapDispatchToProps = (dispatch) => {\n return {\n toggleSnackbar: (vertical, horizontal, msg, color) => {\n dispatch(toggleSnackbar(vertical, horizontal, msg, color));\n },\n openMusicDialog: () => {\n dispatch(openMusicDialog());\n },\n setSelectedTarget: (targets) => {\n dispatch(setSelectedTarget(targets));\n },\n showImgPreivew: (first) => {\n dispatch(showImgPreivew(first));\n },\n openResave: (key) => {\n dispatch(openResaveDialog(key));\n },\n setShareUserPopover: (e) => {\n dispatch(setShareUserPopover(e));\n },\n setShareInfo: (s) => {\n dispatch(setShareInfo(s));\n },\n };\n};\n\nclass SharedFolderComponent extends Component {\n state = {};\n\n UNSAFE_componentWillMount() {\n this.props.setShareInfo(this.props.share);\n }\n\n componentWillUnmount() {\n this.props.setShareInfo(null);\n this.props.setSelectedTarget([]);\n }\n\n handleClickAway = (e) => {\n const ignore = e && e.clientY && e.clientY <= 64;\n if (!pathHelper.isMobile() && !ignore) {\n this.props.setSelectedTarget([]);\n }\n };\n\n render() {\n const { classes } = this.props;\n let readmeShowed = false;\n const id = this.props.anchorEl !== null ? \"simple-popover\" : undefined;\n\n return (\n
\n \n \n \n \n \n {/* eslint-disable-next-line */}\n {this.props.fileList.map((value) => {\n if (\n (value.name.toLowerCase() === \"readme.md\" ||\n value.name.toLowerCase() === \"readme.txt\") &&\n !readmeShowed\n ) {\n readmeShowed = true;\n return ;\n }\n })}\n this.props.setShareUserPopover(null)}\n anchorOrigin={{\n vertical: \"bottom\",\n horizontal: \"center\",\n }}\n transformOrigin={{\n vertical: \"top\",\n horizontal: \"center\",\n }}\n >\n \n this.props.setShareUserPopover(null)}\n share={this.props.share}\n />\n \n \n
\n );\n }\n}\n\nconst SharedFolder = connect(\n mapStateToProps,\n mapDispatchToProps\n)(withStyles(styles)(withRouter(SharedFolderComponent)));\n\nexport default SharedFolder;\n","import React, { Suspense, useCallback, useEffect, useState } from \"react\";\nimport PageLoading from \"../Placeholder/PageLoading\";\nimport { useParams } from \"react-router\";\nimport API from \"../../middleware/Api\";\nimport { changeSubTitle } from \"../../redux/viewUpdate/action\";\nimport { useDispatch } from \"react-redux\";\nimport Notice from \"./NotFound\";\nimport LockedFile from \"./LockedFile\";\nimport SharedFile from \"./SharedFile\";\nimport SharedFolder from \"./SharedFolder\";\nimport { toggleSnackbar } from \"../../redux/explorer\";\nimport { useTranslation } from \"react-i18next\";\n\nexport default function SharePreload() {\n const { t } = useTranslation(\"application\", { keyPrefix: \"share\" });\n const dispatch = useDispatch();\n const { id } = useParams();\n\n const [share, setShare] = useState(undefined);\n const [loading, setLoading] = useState(false);\n const [password, setPassword] = useState(\"\");\n\n const SetSubTitle = useCallback(\n (title) => dispatch(changeSubTitle(title)),\n [dispatch]\n );\n\n const ToggleSnackbar = useCallback(\n (vertical, horizontal, msg, color) =>\n dispatch(toggleSnackbar(vertical, horizontal, msg, color)),\n [dispatch]\n );\n\n useEffect(() => {\n if (share) {\n if (share.locked) {\n SetSubTitle(\n t(\"privateShareTitle\", { nick: share.creator.nick })\n );\n if (password !== \"\") {\n ToggleSnackbar(\n \"top\",\n \"right\",\n t(\"incorrectPassword\"),\n \"warning\"\n );\n }\n } else {\n SetSubTitle(share.source.name);\n }\n } else {\n SetSubTitle();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [share, SetSubTitle, ToggleSnackbar]);\n\n useEffect(() => {\n return () => {\n SetSubTitle();\n };\n // eslint-disable-next-line\n }, []);\n\n useEffect(() => {\n setLoading(true);\n let withPassword = \"\";\n if (password !== \"\") {\n withPassword = \"?password=\" + password;\n }\n API.get(\"/share/info/\" + id + withPassword)\n .then((response) => {\n setShare(response.data);\n setLoading(false);\n })\n .catch((error) => {\n setLoading(false);\n if (error.code === 404) {\n setShare(null);\n } else {\n ToggleSnackbar(\"top\", \"right\", error.message, \"error\");\n }\n });\n }, [id, password, ToggleSnackbar]);\n\n return (\n }>\n {share === undefined && }\n {share === null && }\n {share && share.locked && (\n \n )}\n {share && !share.locked && !share.is_dir && (\n \n )}\n {share && !share.locked && share.is_dir && (\n \n )}\n \n );\n}\n","import React, { useCallback, useEffect, useState } from \"react\";\nimport { makeStyles, useTheme } from \"@material-ui/core/styles\";\nimport { useLocation, useParams, useRouteMatch } from \"react-router\";\nimport API from \"../../middleware/Api\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport pathHelper from \"../../utils/page\";\nimport {\n closeAllModals,\n openShareDialog,\n setModalsLoading,\n setSelectedTarget,\n toggleSnackbar,\n} from \"../../redux/explorer\";\nimport UseFileSubTitle from \"../../hooks/fileSubtitle\";\nimport i18n from \"i18next\";\nimport CreatShare from \"../Modals/CreateShare\";\n\nconst useStyles = makeStyles(() => ({\n layout: {\n width: \"auto\",\n },\n \"@global\": {\n iframe: {\n border: \"none\",\n width: \"100%\",\n height: \"calc(100vh - 64px)\",\n marginBottom: -10,\n },\n },\n}));\n\nfunction useQuery() {\n return new URLSearchParams(useLocation().search);\n}\n\nexport default function DocViewer() {\n const [session, setSession] = useState(null);\n const [file, setFile] = useState(null);\n const math = useRouteMatch();\n const location = useLocation();\n const query = useQuery();\n const { id } = useParams();\n const theme = useTheme();\n const { title } = UseFileSubTitle(query, math, location);\n\n const shareOpened = useSelector((state) => state.viewUpdate.modals.share);\n const modalLoading = useSelector((state) => state.viewUpdate.modalsLoading);\n const dispatch = useDispatch();\n const ToggleSnackbar = useCallback(\n (vertical, horizontal, msg, color) =>\n dispatch(toggleSnackbar(vertical, horizontal, msg, color)),\n [dispatch]\n );\n const CloseAllModals = useCallback(\n () => dispatch(closeAllModals()),\n [dispatch]\n );\n const OpenShareDialog = useCallback(\n () => dispatch(openShareDialog()),\n [dispatch]\n );\n const SetModalsLoading = useCallback(\n (status) => dispatch(setModalsLoading(status)),\n [dispatch]\n );\n\n useEffect(() => {\n let requestURL = \"/file/doc/\" + query.get(\"id\");\n if (pathHelper.isSharePage(location.pathname)) {\n requestURL = \"/share/doc/\" + id;\n if (query.get(\"share_path\") !== \"\") {\n requestURL +=\n \"?path=\" + encodeURIComponent(query.get(\"share_path\"));\n }\n }\n API.get(requestURL)\n .then((response) => {\n if (response.data.access_token) {\n response.data.url = response.data.url.replaceAll(\n \"lng\",\n i18n.resolvedLanguage.toLowerCase()\n );\n response.data.url = response.data.url.replaceAll(\n \"darkmode\",\n theme.palette.type === \"dark\" ? \"2\" : \"1\"\n );\n }\n\n setSession(response.data);\n })\n .catch((error) => {\n ToggleSnackbar(\"top\", \"right\", error.message, \"error\");\n });\n // eslint-disable-next-line\n }, [math.params[0], location]);\n\n const classes = useStyles();\n\n const handlePostMessage = (e) => {\n console.log(\"Received PostMessage from \" + e.origin, e.data);\n let msg;\n try {\n msg = JSON.parse(e.data);\n } catch (e) {\n return;\n }\n\n if (msg.MessageId === \"UI_Sharing\") {\n setFile([\n {\n name: title,\n id: query.get(\"id\"),\n type: \"file\",\n },\n ]);\n OpenShareDialog();\n }\n };\n\n useEffect(() => {\n const frameholder = document.getElementById(\"frameholder\");\n const office_frame = document.createElement(\"iframe\");\n if (session && session.access_token && frameholder) {\n office_frame.name = \"office_frame\";\n office_frame.id = \"office_frame\";\n\n // The title should be set for accessibility\n office_frame.title = \"Office Frame\";\n\n // This attribute allows true fullscreen mode in slideshow view\n // when using PowerPoint's 'view' action.\n office_frame.setAttribute(\"allowfullscreen\", \"true\");\n\n // The sandbox attribute is needed to allow automatic redirection to the O365 sign-in page in the business user flow\n office_frame.setAttribute(\n \"sandbox\",\n \"allow-scripts allow-same-origin allow-forms allow-popups allow-top-navigation allow-popups-to-escape-sandbox\"\n );\n frameholder.appendChild(office_frame);\n document.getElementById(\"office_form\").submit();\n window.addEventListener(\"message\", handlePostMessage, false);\n\n return () => {\n window.removeEventListener(\"message\", handlePostMessage, false);\n };\n }\n }, [session]);\n\n return (\n
\n CloseAllModals()}\n modalsLoading={modalLoading}\n setModalsLoading={SetModalsLoading}\n selected={file}\n />\n {session && !session.access_token && (\n