mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-09 02:42:47 +00:00
feat: sf metadata display (#6249)
* feat: sf metadata display * feat: update code * feat: update code * feat: lock react version * feat: bug * feat: optimize code * feat: update transalte * feat: update transalte * feat: rebase code * Feat: update code * Feat: update code --------- Co-authored-by: 杨国璇 <ygx@192.168.1.5> Co-authored-by: 杨国璇 <ygx@Hello-word.local> Co-authored-by: 杨国璇 <ygx@192.168.1.13>
This commit is contained in:
@@ -4,6 +4,7 @@ import React from 'react';
|
||||
import toaster from '../components/toast';
|
||||
import PermissionDeniedTip from '../components/permission-denied-tip';
|
||||
import { compareTwoString } from './compare-two-string';
|
||||
import { PRIVATE_FILE_TYPE } from '../constants';
|
||||
|
||||
export const Utils = {
|
||||
|
||||
@@ -872,6 +873,10 @@ export const Utils = {
|
||||
}
|
||||
},
|
||||
|
||||
isFileMetadata: function(type) {
|
||||
return type === PRIVATE_FILE_TYPE.FILE_EXTENDED_PROPERTIES;
|
||||
},
|
||||
|
||||
isInternalFileLink: function(url, repoID) {
|
||||
var re = new RegExp(serviceURL + '/lib/' + repoID + '/file.*');
|
||||
return re.test(url);
|
||||
|
Reference in New Issue
Block a user