octo-deno/lib/make/command.js

61 lines
2 KiB
JavaScript
Raw Normal View History

2017-06-28 20:14:01 +00:00
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
make.command = {
_data: {
'backcolor': function () { return make.colors.any() },
'bold': null,
2017-07-06 14:18:04 +00:00
'contentReadOnly': function () { return random.bool() },
2017-06-28 20:14:01 +00:00
'copy': null,
2017-07-06 14:18:04 +00:00
'createlink': function () { return make.uri.any() },
2017-06-28 20:14:01 +00:00
'cut': null,
'decreasefontsize': null,
'delete': null,
2017-07-06 14:18:04 +00:00
'enableInlineTableEditing': function () { return random.bool() },
'enableObjectResizing': function () { return random.bool() },
'fontname': function () { return make.font.family() },
'fontsize': function () { return make.font.relativeSize() },
2017-06-28 20:14:01 +00:00
'formatblock': ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ol', 'ul', 'pre', 'address', 'blockquote', 'dl', 'div'],
'forwarddelete': null,
2017-07-06 14:18:04 +00:00
'forecolor': function () { return make.colors.any() },
2017-06-28 20:14:01 +00:00
'gethtml': null,
'heading': null,
2017-07-06 14:18:04 +00:00
'hilitecolor': function () { return make.colors.any() },
2017-06-28 20:14:01 +00:00
'increasefontsize': null,
'indent': null,
2017-07-06 14:18:04 +00:00
'insertBrOnReturn': function () { return random.bool() },
2017-06-28 20:14:01 +00:00
'inserthorizontalrule': null,
// 'inserthtml': function () { },
'insertlinebreak': null,
2017-07-06 14:18:04 +00:00
'insertimage': function () { return make.uri.any() },
2017-06-28 20:14:01 +00:00
'insertorderedlist': null,
'insertparagraph': null,
2017-07-06 14:18:04 +00:00
'inserttext': function () { return make.text.any() },
2017-06-28 20:14:01 +00:00
'insertunorderedlist': null,
'italic': null,
'justifycenter': null,
'justifyfull': null,
'justifyleft': null,
'justifyright': null,
'outdent': null,
'paste': null,
'redo': null,
'removeformat': null,
'selectall': null,
'strikethrough': null,
2017-07-06 14:18:04 +00:00
'styleWithCSS': function () { return random.bool() },
2017-06-28 20:14:01 +00:00
'subscript': null,
'superscript': null,
'underline': null,
'undo': null,
'unlink': null
},
name: function () {
return random.item(Object.keys(this._data))
},
value: function (name) {
return random.pick(this._data[name])
}
}