2020-11-07 17:59:37 +02:00
|
|
|
import { CommandDeclaration } from '@joplin/lib/services/CommandService';
|
|
|
|
import { _ } from '@joplin/lib/locale';
|
2020-07-03 23:32:39 +02:00
|
|
|
|
|
|
|
const declarations:CommandDeclaration[] = [
|
|
|
|
{
|
|
|
|
name: 'insertText',
|
|
|
|
},
|
2020-10-09 19:35:46 +02:00
|
|
|
{
|
|
|
|
name: 'scrollToHash',
|
|
|
|
},
|
2020-07-03 23:32:39 +02:00
|
|
|
{
|
|
|
|
name: 'textCopy',
|
|
|
|
label: () => _('Copy'),
|
|
|
|
role: 'copy',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'textCut',
|
|
|
|
label: () => _('Cut'),
|
|
|
|
role: 'cut',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'textPaste',
|
|
|
|
label: () => _('Paste'),
|
|
|
|
role: 'paste',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'textSelectAll',
|
|
|
|
label: () => _('Select all'),
|
|
|
|
role: 'selectAll',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'textBold',
|
|
|
|
label: () => _('Bold'),
|
2020-09-15 15:01:07 +02:00
|
|
|
iconName: 'icon-bold',
|
2020-07-03 23:32:39 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'textItalic',
|
|
|
|
label: () => _('Italic'),
|
2020-09-15 15:01:07 +02:00
|
|
|
iconName: 'icon-italic',
|
2020-07-03 23:32:39 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'textLink',
|
|
|
|
label: () => _('Hyperlink'),
|
2020-09-15 15:01:07 +02:00
|
|
|
iconName: 'icon-link',
|
2020-07-03 23:32:39 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'textCode',
|
|
|
|
label: () => _('Code'),
|
2020-09-15 15:01:07 +02:00
|
|
|
iconName: 'icon-code',
|
2020-07-03 23:32:39 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'attachFile',
|
|
|
|
label: () => _('Attach file'),
|
2020-09-15 15:01:07 +02:00
|
|
|
iconName: 'icon-attachment',
|
2020-07-03 23:32:39 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'textNumberedList',
|
|
|
|
label: () => _('Numbered List'),
|
2020-09-15 15:01:07 +02:00
|
|
|
iconName: 'icon-numbered-list',
|
2020-07-03 23:32:39 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'textBulletedList',
|
|
|
|
label: () => _('Bulleted List'),
|
2020-09-15 15:01:07 +02:00
|
|
|
iconName: 'icon-bulleted-list',
|
2020-07-03 23:32:39 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'textCheckbox',
|
|
|
|
label: () => _('Checkbox'),
|
2020-09-15 15:01:07 +02:00
|
|
|
iconName: 'icon-to-do-list',
|
2020-07-03 23:32:39 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'textHeading',
|
|
|
|
label: () => _('Heading'),
|
2020-09-15 15:01:07 +02:00
|
|
|
iconName: 'icon-heading',
|
2020-07-03 23:32:39 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'textHorizontalRule',
|
|
|
|
label: () => _('Horizontal Rule'),
|
2020-09-15 15:01:07 +02:00
|
|
|
iconName: 'fas fa-ellipsis-h',
|
2020-07-03 23:32:39 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'insertDateTime',
|
|
|
|
label: () => _('Insert Date Time'),
|
2020-09-15 15:01:07 +02:00
|
|
|
iconName: 'icon-add-date',
|
2020-07-03 23:32:39 +02:00
|
|
|
},
|
2020-10-09 19:35:46 +02:00
|
|
|
{
|
|
|
|
name: 'selectedText',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'replaceSelection',
|
|
|
|
},
|
2020-07-03 23:32:39 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
export default declarations;
|