mirror of https://github.com/doccano/doccano.git
Bramble Xu
5 years ago
13 changed files with 144 additions and 23 deletions
Split View
Diff Options
-
16app/server/static/bundle/document_classification.js
-
14app/server/static/bundle/label.js
-
2app/server/static/bundle/seq2seq.js
-
16app/server/static/bundle/sequence_labeling.js
-
3app/server/static/js/document_classification.js
-
10app/server/static/js/filter.js
-
48app/server/static/js/label.js
-
8app/server/static/js/mixin.js
-
3app/server/static/js/sequence_labeling.js
-
38app/server/templates/admin/label.html
-
4app/server/templates/annotation/document_classification.html
-
4app/server/templates/annotation/sequence_labeling.html
-
1app/server/templates/base.html
16
app/server/static/bundle/document_classification.js
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
2
app/server/static/bundle/seq2seq.js
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
16
app/server/static/bundle/sequence_labeling.js
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,10 @@ |
|||
export default function simpleShortcut(shortcut) { |
|||
if (shortcut === null) { |
|||
shortcut = ''; |
|||
} else { |
|||
shortcut = shortcut.replace('ctrl', 'C'); |
|||
shortcut = shortcut.replace('shift', 'S'); |
|||
shortcut = shortcut.split(' ').join('-'); |
|||
} |
|||
return shortcut; |
|||
} |
Write
Preview
Loading…
Cancel
Save