yks-element 1.5.2 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/019e34e85139cfc611bf23efa096c980.js +18 -0
- package/lib/07567125b93045706d81f17f7d04e262.js +120 -0
- package/lib/0d56a1f26e052a1bafd10a87782fc74b.js +3380 -0
- package/lib/27846e85433e54a3ec0ab34d62233dc5.js +186 -0
- package/lib/2f25a4dc442bc9aebc58cae30c50c3e2.js +192 -0
- package/lib/2f55cddc8eb85b63ee5b4ce0e5488230.js +67 -0
- package/lib/2fe2904fc024afaf81732563cb83e547.js +116 -0
- package/lib/3b02cca9e95276a74f3ed2bbc7a64ce6.js +409 -0
- package/lib/70efbabef77fb217f904f41dbf7fe8bf.js +380 -0
- package/lib/7cec85e554cfaf2464511da505025098.js +74 -0
- package/lib/852f0ecd7b17e3bfd700a821ff438f7e.js +330 -0
- package/lib/88730abfeb4a23e692ac7933882f12eb.js +255 -0
- package/lib/8b8336037f074d9dcbd20eab535b803f.js +227 -0
- package/lib/9979f39c4d2773e02151a6cf1558101b.js +768 -0
- package/lib/af6e31c060c273848b5fec9fdba8814d.js +3066 -0
- package/lib/babd8df6809ef43238f1b280c2cebfe3.js +265 -0
- package/lib/bb1365c0983ce5ad50060b24788b9630.js +459 -0
- package/lib/c0a8aa1d5e0611259e47c2008cb203ee.js +197 -0
- package/lib/c530988d2b1966fd10a4d99fa3877e1b.js +9 -0
- package/lib/c8acc93023012737a3bf8fb767b66838.js +1293 -0
- package/lib/d0415105402964718010284fcfa8b2ea.js +48 -0
- package/lib/d11ab4aa7dd9123fdecb075ff5c5a748.js +790 -0
- package/lib/d1907231dc06c32481fefd6d47da973b.js +344 -0
- package/lib/d429602e0ebf3c1ec040e070e9b05b9b.js +184 -0
- package/lib/e4fc956693373117f057fe9914e983fc.js +7090 -0
- package/lib/f15362a7feef894b2e7f706252e6c510.js +45 -0
- package/lib/f666b5647087bcfdf6623f8b14d56657.js +136 -0
- package/lib/fac0ce75e0690947a9e9e6f5b35c1ea8.js +1067 -0
- package/lib/fec23c6964d6cf25681d1f3e24b076a4.js +56 -0
- package/lib/yks.js +1 -1
- package/package.json +1 -1
- package/lib/6c6d192b6860b4508a14c2d04769a35e.js +0 -15404
- package/lib/c3832579be376308fa819b04e7b0c66f.js +0 -3788
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
ace.define("ace/ext/textarea",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/ace"], function(require, exports, module){"use strict";
|
|
2
|
+
var event = require("../lib/event");
|
|
3
|
+
var UA = require("../lib/useragent");
|
|
4
|
+
var ace = require("../ace");
|
|
5
|
+
module.exports = exports = ace;
|
|
6
|
+
var getCSSProperty = function (element, container, property) {
|
|
7
|
+
var ret = element.style[property];
|
|
8
|
+
if (!ret) {
|
|
9
|
+
if (window.getComputedStyle) {
|
|
10
|
+
ret = window.getComputedStyle(element, '').getPropertyValue(property);
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
ret = element.currentStyle[property];
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
if (!ret || ret == 'auto' || ret == 'intrinsic') {
|
|
17
|
+
ret = container.style[property];
|
|
18
|
+
}
|
|
19
|
+
return ret;
|
|
20
|
+
};
|
|
21
|
+
function applyStyles(elm, styles) {
|
|
22
|
+
for (var style in styles) {
|
|
23
|
+
elm.style[style] = styles[style];
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function setupContainer(element, getValue) {
|
|
27
|
+
if (element.type != 'textarea') {
|
|
28
|
+
throw new Error("Textarea required!");
|
|
29
|
+
}
|
|
30
|
+
var parentNode = element.parentNode;
|
|
31
|
+
var container = document.createElement('div');
|
|
32
|
+
var resizeEvent = function () {
|
|
33
|
+
var style = 'position:relative;';
|
|
34
|
+
[
|
|
35
|
+
'margin-top', 'margin-left', 'margin-right', 'margin-bottom'
|
|
36
|
+
].forEach(function (item) {
|
|
37
|
+
style += item + ':' +
|
|
38
|
+
getCSSProperty(element, container, item) + ';';
|
|
39
|
+
});
|
|
40
|
+
var width = getCSSProperty(element, container, 'width') || (element.clientWidth + "px");
|
|
41
|
+
var height = getCSSProperty(element, container, 'height') || (element.clientHeight + "px");
|
|
42
|
+
style += 'height:' + height + ';width:' + width + ';';
|
|
43
|
+
style += 'display:inline-block;';
|
|
44
|
+
container.style.cssText = style;
|
|
45
|
+
};
|
|
46
|
+
event.addListener(window, 'resize', resizeEvent);
|
|
47
|
+
resizeEvent();
|
|
48
|
+
parentNode.insertBefore(container, element.nextSibling);
|
|
49
|
+
while (parentNode !== document) {
|
|
50
|
+
if (parentNode.tagName.toUpperCase() === 'FORM') {
|
|
51
|
+
var oldSumit = parentNode.onsubmit;
|
|
52
|
+
parentNode.onsubmit = function (evt) {
|
|
53
|
+
element.value = getValue();
|
|
54
|
+
if (oldSumit) {
|
|
55
|
+
oldSumit.call(this, evt);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
parentNode = parentNode.parentNode;
|
|
61
|
+
}
|
|
62
|
+
return container;
|
|
63
|
+
}
|
|
64
|
+
exports.transformTextarea = function (element, options) {
|
|
65
|
+
var isFocused = element.autofocus || document.activeElement == element;
|
|
66
|
+
var session;
|
|
67
|
+
var container = setupContainer(element, function () {
|
|
68
|
+
return session.getValue();
|
|
69
|
+
});
|
|
70
|
+
element.style.display = 'none';
|
|
71
|
+
container.style.background = 'white';
|
|
72
|
+
var editorDiv = document.createElement("div");
|
|
73
|
+
applyStyles(editorDiv, {
|
|
74
|
+
top: "0px",
|
|
75
|
+
left: "0px",
|
|
76
|
+
right: "0px",
|
|
77
|
+
bottom: "0px",
|
|
78
|
+
border: "1px solid gray",
|
|
79
|
+
position: "absolute"
|
|
80
|
+
});
|
|
81
|
+
container.appendChild(editorDiv);
|
|
82
|
+
var settingOpener = document.createElement("div");
|
|
83
|
+
applyStyles(settingOpener, {
|
|
84
|
+
position: "absolute",
|
|
85
|
+
right: "0px",
|
|
86
|
+
bottom: "0px",
|
|
87
|
+
cursor: "nw-resize",
|
|
88
|
+
border: "solid 9px",
|
|
89
|
+
borderColor: "lightblue gray gray #ceade6",
|
|
90
|
+
zIndex: 101
|
|
91
|
+
});
|
|
92
|
+
var settingDiv = document.createElement("div");
|
|
93
|
+
var settingDivStyles = {
|
|
94
|
+
top: "0px",
|
|
95
|
+
left: "20%",
|
|
96
|
+
right: "0px",
|
|
97
|
+
bottom: "0px",
|
|
98
|
+
position: "absolute",
|
|
99
|
+
padding: "5px",
|
|
100
|
+
zIndex: 100,
|
|
101
|
+
color: "white",
|
|
102
|
+
display: "none",
|
|
103
|
+
overflow: "auto",
|
|
104
|
+
fontSize: "14px",
|
|
105
|
+
boxShadow: "-5px 2px 3px gray"
|
|
106
|
+
};
|
|
107
|
+
if (!UA.isOldIE) {
|
|
108
|
+
settingDivStyles.backgroundColor = "rgba(0, 0, 0, 0.6)";
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
settingDivStyles.backgroundColor = "#333";
|
|
112
|
+
}
|
|
113
|
+
applyStyles(settingDiv, settingDivStyles);
|
|
114
|
+
container.appendChild(settingDiv);
|
|
115
|
+
options = options || exports.defaultOptions;
|
|
116
|
+
var editor = ace.edit(editorDiv);
|
|
117
|
+
session = editor.getSession();
|
|
118
|
+
session.setValue(element.value || element.innerHTML);
|
|
119
|
+
if (isFocused)
|
|
120
|
+
editor.focus();
|
|
121
|
+
container.appendChild(settingOpener);
|
|
122
|
+
setupApi(editor, editorDiv, settingDiv, ace, options);
|
|
123
|
+
setupSettingPanel(settingDiv, settingOpener, editor);
|
|
124
|
+
var state = "";
|
|
125
|
+
event.addListener(settingOpener, "mousemove", function (e) {
|
|
126
|
+
var rect = this.getBoundingClientRect();
|
|
127
|
+
var x = e.clientX - rect.left, y = e.clientY - rect.top;
|
|
128
|
+
if (x + y < (rect.width + rect.height) / 2) {
|
|
129
|
+
this.style.cursor = "pointer";
|
|
130
|
+
state = "toggle";
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
state = "resize";
|
|
134
|
+
this.style.cursor = "nw-resize";
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
event.addListener(settingOpener, "mousedown", function (e) {
|
|
138
|
+
e.preventDefault();
|
|
139
|
+
if (state == "toggle") {
|
|
140
|
+
editor.setDisplaySettings();
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
container.style.zIndex = "100000";
|
|
144
|
+
var rect = container.getBoundingClientRect();
|
|
145
|
+
var startX = rect.width + rect.left - e.clientX;
|
|
146
|
+
var startY = rect.height + rect.top - e.clientY;
|
|
147
|
+
event.capture(settingOpener, function (e) {
|
|
148
|
+
container.style.width = e.clientX - rect.left + startX + "px";
|
|
149
|
+
container.style.height = e.clientY - rect.top + startY + "px";
|
|
150
|
+
editor.resize();
|
|
151
|
+
}, function () { });
|
|
152
|
+
});
|
|
153
|
+
return editor;
|
|
154
|
+
};
|
|
155
|
+
function setupApi(editor, editorDiv, settingDiv, ace, options) {
|
|
156
|
+
function toBool(value) {
|
|
157
|
+
return value === "true" || value == true;
|
|
158
|
+
}
|
|
159
|
+
editor.setDisplaySettings = function (display) {
|
|
160
|
+
if (display == null)
|
|
161
|
+
display = settingDiv.style.display == "none";
|
|
162
|
+
if (display) {
|
|
163
|
+
settingDiv.style.display = "block";
|
|
164
|
+
settingDiv.hideButton.focus();
|
|
165
|
+
editor.on("focus", function onFocus() {
|
|
166
|
+
editor.removeListener("focus", onFocus);
|
|
167
|
+
settingDiv.style.display = "none";
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
editor.focus();
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
editor.$setOption = editor.setOption;
|
|
175
|
+
editor.$getOption = editor.getOption;
|
|
176
|
+
editor.setOption = function (key, value) {
|
|
177
|
+
switch (key) {
|
|
178
|
+
case "mode":
|
|
179
|
+
editor.$setOption("mode", "ace/mode/" + value);
|
|
180
|
+
break;
|
|
181
|
+
case "theme":
|
|
182
|
+
editor.$setOption("theme", "ace/theme/" + value);
|
|
183
|
+
break;
|
|
184
|
+
case "keybindings":
|
|
185
|
+
switch (value) {
|
|
186
|
+
case "vim":
|
|
187
|
+
editor.setKeyboardHandler("ace/keyboard/vim");
|
|
188
|
+
break;
|
|
189
|
+
case "emacs":
|
|
190
|
+
editor.setKeyboardHandler("ace/keyboard/emacs");
|
|
191
|
+
break;
|
|
192
|
+
default:
|
|
193
|
+
editor.setKeyboardHandler(null);
|
|
194
|
+
}
|
|
195
|
+
break;
|
|
196
|
+
case "wrap":
|
|
197
|
+
case "fontSize":
|
|
198
|
+
editor.$setOption(key, value);
|
|
199
|
+
break;
|
|
200
|
+
default:
|
|
201
|
+
editor.$setOption(key, toBool(value));
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
editor.getOption = function (key) {
|
|
205
|
+
switch (key) {
|
|
206
|
+
case "mode":
|
|
207
|
+
return editor.$getOption("mode").substr("ace/mode/".length);
|
|
208
|
+
break;
|
|
209
|
+
case "theme":
|
|
210
|
+
return editor.$getOption("theme").substr("ace/theme/".length);
|
|
211
|
+
break;
|
|
212
|
+
case "keybindings":
|
|
213
|
+
var value = editor.getKeyboardHandler();
|
|
214
|
+
switch (value && value.$id) {
|
|
215
|
+
case "ace/keyboard/vim":
|
|
216
|
+
return "vim";
|
|
217
|
+
case "ace/keyboard/emacs":
|
|
218
|
+
return "emacs";
|
|
219
|
+
default:
|
|
220
|
+
return "ace";
|
|
221
|
+
}
|
|
222
|
+
break;
|
|
223
|
+
default:
|
|
224
|
+
return editor.$getOption(key);
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
editor.setOptions(options);
|
|
228
|
+
return editor;
|
|
229
|
+
}
|
|
230
|
+
function setupSettingPanel(settingDiv, settingOpener, editor) {
|
|
231
|
+
var BOOL = null;
|
|
232
|
+
var desc = {
|
|
233
|
+
mode: "Mode:",
|
|
234
|
+
wrap: "Soft Wrap:",
|
|
235
|
+
theme: "Theme:",
|
|
236
|
+
fontSize: "Font Size:",
|
|
237
|
+
showGutter: "Display Gutter:",
|
|
238
|
+
keybindings: "Keyboard",
|
|
239
|
+
showPrintMargin: "Show Print Margin:",
|
|
240
|
+
useSoftTabs: "Use Soft Tabs:",
|
|
241
|
+
showInvisibles: "Show Invisibles"
|
|
242
|
+
};
|
|
243
|
+
var optionValues = {
|
|
244
|
+
mode: {
|
|
245
|
+
text: "Plain",
|
|
246
|
+
javascript: "JavaScript",
|
|
247
|
+
xml: "XML",
|
|
248
|
+
html: "HTML",
|
|
249
|
+
css: "CSS",
|
|
250
|
+
scss: "SCSS",
|
|
251
|
+
python: "Python",
|
|
252
|
+
php: "PHP",
|
|
253
|
+
java: "Java",
|
|
254
|
+
ruby: "Ruby",
|
|
255
|
+
c_cpp: "C/C++",
|
|
256
|
+
coffee: "CoffeeScript",
|
|
257
|
+
json: "json",
|
|
258
|
+
perl: "Perl",
|
|
259
|
+
clojure: "Clojure",
|
|
260
|
+
ocaml: "OCaml",
|
|
261
|
+
csharp: "C#",
|
|
262
|
+
haxe: "haXe",
|
|
263
|
+
svg: "SVG",
|
|
264
|
+
textile: "Textile",
|
|
265
|
+
groovy: "Groovy",
|
|
266
|
+
liquid: "Liquid",
|
|
267
|
+
Scala: "Scala"
|
|
268
|
+
},
|
|
269
|
+
theme: {
|
|
270
|
+
clouds: "Clouds",
|
|
271
|
+
clouds_midnight: "Clouds Midnight",
|
|
272
|
+
cobalt: "Cobalt",
|
|
273
|
+
crimson_editor: "Crimson Editor",
|
|
274
|
+
dawn: "Dawn",
|
|
275
|
+
gob: "Green on Black",
|
|
276
|
+
eclipse: "Eclipse",
|
|
277
|
+
idle_fingers: "Idle Fingers",
|
|
278
|
+
kr_theme: "Kr Theme",
|
|
279
|
+
merbivore: "Merbivore",
|
|
280
|
+
merbivore_soft: "Merbivore Soft",
|
|
281
|
+
mono_industrial: "Mono Industrial",
|
|
282
|
+
monokai: "Monokai",
|
|
283
|
+
pastel_on_dark: "Pastel On Dark",
|
|
284
|
+
solarized_dark: "Solarized Dark",
|
|
285
|
+
solarized_light: "Solarized Light",
|
|
286
|
+
textmate: "Textmate",
|
|
287
|
+
twilight: "Twilight",
|
|
288
|
+
vibrant_ink: "Vibrant Ink"
|
|
289
|
+
},
|
|
290
|
+
showGutter: BOOL,
|
|
291
|
+
fontSize: {
|
|
292
|
+
"10px": "10px",
|
|
293
|
+
"11px": "11px",
|
|
294
|
+
"12px": "12px",
|
|
295
|
+
"14px": "14px",
|
|
296
|
+
"16px": "16px"
|
|
297
|
+
},
|
|
298
|
+
wrap: {
|
|
299
|
+
off: "Off",
|
|
300
|
+
40: "40",
|
|
301
|
+
80: "80",
|
|
302
|
+
free: "Free"
|
|
303
|
+
},
|
|
304
|
+
keybindings: {
|
|
305
|
+
ace: "ace",
|
|
306
|
+
vim: "vim",
|
|
307
|
+
emacs: "emacs"
|
|
308
|
+
},
|
|
309
|
+
showPrintMargin: BOOL,
|
|
310
|
+
useSoftTabs: BOOL,
|
|
311
|
+
showInvisibles: BOOL
|
|
312
|
+
};
|
|
313
|
+
var table = [];
|
|
314
|
+
table.push("<table><tr><th>Setting</th><th>Value</th></tr>");
|
|
315
|
+
function renderOption(builder, option, obj, cValue) {
|
|
316
|
+
if (!obj) {
|
|
317
|
+
builder.push("<input type='checkbox' title='", option, "' ", cValue + "" == "true" ? "checked='true'" : "", "'></input>");
|
|
318
|
+
return;
|
|
319
|
+
}
|
|
320
|
+
builder.push("<select title='" + option + "'>");
|
|
321
|
+
for (var value in obj) {
|
|
322
|
+
builder.push("<option value='" + value + "' ");
|
|
323
|
+
if (cValue == value) {
|
|
324
|
+
builder.push(" selected ");
|
|
325
|
+
}
|
|
326
|
+
builder.push(">", obj[value], "</option>");
|
|
327
|
+
}
|
|
328
|
+
builder.push("</select>");
|
|
329
|
+
}
|
|
330
|
+
for (var option in exports.defaultOptions) {
|
|
331
|
+
table.push("<tr><td>", desc[option], "</td>");
|
|
332
|
+
table.push("<td>");
|
|
333
|
+
renderOption(table, option, optionValues[option], editor.getOption(option));
|
|
334
|
+
table.push("</td></tr>");
|
|
335
|
+
}
|
|
336
|
+
table.push("</table>");
|
|
337
|
+
settingDiv.innerHTML = table.join("");
|
|
338
|
+
var onChange = function (e) {
|
|
339
|
+
var select = e.currentTarget;
|
|
340
|
+
editor.setOption(select.title, select.value);
|
|
341
|
+
};
|
|
342
|
+
var onClick = function (e) {
|
|
343
|
+
var cb = e.currentTarget;
|
|
344
|
+
editor.setOption(cb.title, cb.checked);
|
|
345
|
+
};
|
|
346
|
+
var selects = settingDiv.getElementsByTagName("select");
|
|
347
|
+
for (var i = 0; i < selects.length; i++)
|
|
348
|
+
selects[i].onchange = onChange;
|
|
349
|
+
var cbs = settingDiv.getElementsByTagName("input");
|
|
350
|
+
for (var i = 0; i < cbs.length; i++)
|
|
351
|
+
cbs[i].onclick = onClick;
|
|
352
|
+
var button = document.createElement("input");
|
|
353
|
+
button.type = "button";
|
|
354
|
+
button.value = "Hide";
|
|
355
|
+
event.addListener(button, "click", function () {
|
|
356
|
+
editor.setDisplaySettings(false);
|
|
357
|
+
});
|
|
358
|
+
settingDiv.appendChild(button);
|
|
359
|
+
settingDiv.hideButton = button;
|
|
360
|
+
}
|
|
361
|
+
exports.defaultOptions = {
|
|
362
|
+
mode: "javascript",
|
|
363
|
+
theme: "textmate",
|
|
364
|
+
wrap: "off",
|
|
365
|
+
fontSize: "12px",
|
|
366
|
+
showGutter: "false",
|
|
367
|
+
keybindings: "ace",
|
|
368
|
+
showPrintMargin: "false",
|
|
369
|
+
useSoftTabs: "true",
|
|
370
|
+
showInvisibles: "false"
|
|
371
|
+
};
|
|
372
|
+
|
|
373
|
+
}); (function() {
|
|
374
|
+
ace.require(["ace/ext/textarea"], function(m) {
|
|
375
|
+
if (typeof module == "object" && typeof exports == "object" && module) {
|
|
376
|
+
module.exports = m;
|
|
377
|
+
}
|
|
378
|
+
});
|
|
379
|
+
})();
|
|
380
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
ace.define("ace/ext/themelist",["require","exports","module"], function(require, exports, module){/**
|
|
2
|
+
* Generates a list of themes available when ace was built.
|
|
3
|
+
* @fileOverview Generates a list of themes available when ace was built.
|
|
4
|
+
* @author <a href="mailto:matthewkastor@gmail.com">
|
|
5
|
+
* Matthew Christopher Kastor-Inare III </a><br />
|
|
6
|
+
* ☭ Hial Atropa!! ☭
|
|
7
|
+
*/
|
|
8
|
+
"use strict";
|
|
9
|
+
var themeData = [
|
|
10
|
+
["Chrome"],
|
|
11
|
+
["Clouds"],
|
|
12
|
+
["Crimson Editor"],
|
|
13
|
+
["Dawn"],
|
|
14
|
+
["Dreamweaver"],
|
|
15
|
+
["Eclipse"],
|
|
16
|
+
["GitHub Light Default"],
|
|
17
|
+
["GitHub (Legacy)", "github", "light"],
|
|
18
|
+
["IPlastic"],
|
|
19
|
+
["Solarized Light"],
|
|
20
|
+
["TextMate"],
|
|
21
|
+
["Tomorrow"],
|
|
22
|
+
["XCode"],
|
|
23
|
+
["Kuroir"],
|
|
24
|
+
["KatzenMilch"],
|
|
25
|
+
["SQL Server", "sqlserver", "light"],
|
|
26
|
+
["CloudEditor", "cloud_editor", "light"],
|
|
27
|
+
["Ambiance", "ambiance", "dark"],
|
|
28
|
+
["Chaos", "chaos", "dark"],
|
|
29
|
+
["Clouds Midnight", "clouds_midnight", "dark"],
|
|
30
|
+
["Dracula", "", "dark"],
|
|
31
|
+
["Cobalt", "cobalt", "dark"],
|
|
32
|
+
["Gruvbox", "gruvbox", "dark"],
|
|
33
|
+
["Green on Black", "gob", "dark"],
|
|
34
|
+
["idle Fingers", "idle_fingers", "dark"],
|
|
35
|
+
["krTheme", "kr_theme", "dark"],
|
|
36
|
+
["Merbivore", "merbivore", "dark"],
|
|
37
|
+
["Merbivore Soft", "merbivore_soft", "dark"],
|
|
38
|
+
["Mono Industrial", "mono_industrial", "dark"],
|
|
39
|
+
["Monokai", "monokai", "dark"],
|
|
40
|
+
["Nord Dark", "nord_dark", "dark"],
|
|
41
|
+
["One Dark", "one_dark", "dark"],
|
|
42
|
+
["Pastel on dark", "pastel_on_dark", "dark"],
|
|
43
|
+
["Solarized Dark", "solarized_dark", "dark"],
|
|
44
|
+
["Terminal", "terminal", "dark"],
|
|
45
|
+
["Tomorrow Night", "tomorrow_night", "dark"],
|
|
46
|
+
["Tomorrow Night Blue", "tomorrow_night_blue", "dark"],
|
|
47
|
+
["Tomorrow Night Bright", "tomorrow_night_bright", "dark"],
|
|
48
|
+
["Tomorrow Night 80s", "tomorrow_night_eighties", "dark"],
|
|
49
|
+
["Twilight", "twilight", "dark"],
|
|
50
|
+
["Vibrant Ink", "vibrant_ink", "dark"],
|
|
51
|
+
["GitHub Dark", "github_dark", "dark"],
|
|
52
|
+
["CloudEditor Dark", "cloud_editor_dark", "dark"]
|
|
53
|
+
];
|
|
54
|
+
exports.themesByName = {};
|
|
55
|
+
exports.themes = themeData.map(function (data) {
|
|
56
|
+
var name = data[1] || data[0].replace(/ /g, "_").toLowerCase();
|
|
57
|
+
var theme = {
|
|
58
|
+
caption: data[0],
|
|
59
|
+
theme: "ace/theme/" + name,
|
|
60
|
+
isDark: data[2] == "dark",
|
|
61
|
+
name: name
|
|
62
|
+
};
|
|
63
|
+
exports.themesByName[name] = theme;
|
|
64
|
+
return theme;
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
}); (function() {
|
|
68
|
+
ace.require(["ace/ext/themelist"], function(m) {
|
|
69
|
+
if (typeof module == "object" && typeof exports == "object" && module) {
|
|
70
|
+
module.exports = m;
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
})();
|
|
74
|
+
|