mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 07:27:04 +00:00
Contextmenu improve (#3238)
* add a commen contextmenu component * optimized translate for menu * repair contextmenu bug * optimized share btn show code * repair showShareBtn bug * optimized contextmenu * optimized contextmenu code * complete dirent-item-menu logic * optimized contextmenu code * complete dirent-container-menu logic * complete tree-node-contextmenu logic * delete unnecessary code * optimized contextmenu func * repair bug * optimized code style * optimized code style * add a dirent-none-view for dir-list-view mode * optimized dirent-container-menu&dirent-item-menu * add select-item contextmenu * repair rebase bug
This commit is contained in:
24
frontend/src/utils/text-translation.js
Normal file
24
frontend/src/utils/text-translation.js
Normal file
@@ -0,0 +1,24 @@
|
||||
import { gettext } from './constants';
|
||||
|
||||
// item --> '' : {key : '', value : gettext('')};
|
||||
const TextTranslation = {
|
||||
// app-menu
|
||||
'NEW_FOLDER' : {key : 'New Folder', value : gettext('New Folder')},
|
||||
'NEW_FILE' : {key : 'New File', value : gettext('New File')},
|
||||
'SHARE' : {key : 'Share', value : gettext('Share')},
|
||||
'DOWNLOAD' : {key : 'Download', value : gettext('Download')},
|
||||
'DELETE' : {key : 'Delete', value : gettext('Delete')},
|
||||
'RENAME' : {key : 'Rename', value : gettext('Rename')},
|
||||
'MOVE' : {key : 'Move', value : gettext('Move')},
|
||||
'COPY' : {key : 'Copy', value : gettext('Copy')},
|
||||
'PERMISSION' : {key : 'Permission', value : gettext('Permission')},
|
||||
'DETAILS' : {key : 'Details', value : gettext('Details')},
|
||||
'OPEN_VIA_CLIENT' : {key : 'Open via Client', value : gettext('Open via Client')},
|
||||
'LOCK' : {key : 'Lock', value : gettext('Lock')},
|
||||
'UNLOCK' : {key : 'Unlock', value : gettext('Unlock')},
|
||||
'COMMENT' : {key : 'Comment', value : gettext('Comment')},
|
||||
'HISTORY' : {key : 'History', value : gettext('History')},
|
||||
'ACCESS_LOG' : {key : 'Access Log', value : gettext('Access Log')},
|
||||
};
|
||||
|
||||
export default TextTranslation;
|
Reference in New Issue
Block a user