@muze-nl/simplystore 0.3.5 → 0.4.0

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.
Files changed (331) hide show
  1. package/package.json +2 -2
  2. package/package.json~ +33 -0
  3. package/src/commands.mjs +1 -0
  4. package/src/server.mjs +69 -62
  5. package/src/worker-command-init.mjs +2 -1
  6. package/src/worker-command.mjs +3 -3
  7. package/www/codemirror/addon/comment/comment.js +0 -211
  8. package/www/codemirror/addon/comment/continuecomment.js +0 -114
  9. package/www/codemirror/addon/dialog/dialog.css +0 -32
  10. package/www/codemirror/addon/dialog/dialog.js +0 -163
  11. package/www/codemirror/addon/display/autorefresh.js +0 -47
  12. package/www/codemirror/addon/display/fullscreen.css +0 -6
  13. package/www/codemirror/addon/display/fullscreen.js +0 -41
  14. package/www/codemirror/addon/display/panel.js +0 -133
  15. package/www/codemirror/addon/display/placeholder.js +0 -78
  16. package/www/codemirror/addon/display/rulers.js +0 -51
  17. package/www/codemirror/addon/edit/closebrackets.js +0 -201
  18. package/www/codemirror/addon/edit/closetag.js +0 -185
  19. package/www/codemirror/addon/edit/continuelist.js +0 -101
  20. package/www/codemirror/addon/edit/matchbrackets.js +0 -160
  21. package/www/codemirror/addon/edit/matchtags.js +0 -66
  22. package/www/codemirror/addon/edit/trailingspace.js +0 -27
  23. package/www/codemirror/addon/fold/brace-fold.js +0 -119
  24. package/www/codemirror/addon/fold/comment-fold.js +0 -59
  25. package/www/codemirror/addon/fold/foldcode.js +0 -159
  26. package/www/codemirror/addon/fold/foldgutter.css +0 -20
  27. package/www/codemirror/addon/fold/foldgutter.js +0 -169
  28. package/www/codemirror/addon/fold/indent-fold.js +0 -48
  29. package/www/codemirror/addon/fold/markdown-fold.js +0 -49
  30. package/www/codemirror/addon/fold/xml-fold.js +0 -184
  31. package/www/codemirror/addon/hint/anyword-hint.js +0 -41
  32. package/www/codemirror/addon/hint/css-hint.js +0 -66
  33. package/www/codemirror/addon/hint/html-hint.js +0 -351
  34. package/www/codemirror/addon/hint/javascript-hint.js +0 -162
  35. package/www/codemirror/addon/hint/show-hint.css +0 -37
  36. package/www/codemirror/addon/hint/show-hint.js +0 -523
  37. package/www/codemirror/addon/hint/sql-hint.js +0 -304
  38. package/www/codemirror/addon/hint/xml-hint.js +0 -132
  39. package/www/codemirror/addon/lint/coffeescript-lint.js +0 -47
  40. package/www/codemirror/addon/lint/css-lint.js +0 -40
  41. package/www/codemirror/addon/lint/html-lint.js +0 -59
  42. package/www/codemirror/addon/lint/json-lint.js +0 -40
  43. package/www/codemirror/addon/lint/yaml-lint.js +0 -41
  44. package/www/codemirror/addon/merge/merge.css +0 -119
  45. package/www/codemirror/addon/merge/merge.js +0 -1018
  46. package/www/codemirror/addon/mode/loadmode.js +0 -66
  47. package/www/codemirror/addon/mode/multiplex.js +0 -136
  48. package/www/codemirror/addon/mode/multiplex_test.js +0 -49
  49. package/www/codemirror/addon/mode/overlay.js +0 -90
  50. package/www/codemirror/addon/mode/simple.js +0 -216
  51. package/www/codemirror/addon/runmode/colorize.js +0 -40
  52. package/www/codemirror/addon/runmode/runmode-standalone.js +0 -334
  53. package/www/codemirror/addon/runmode/runmode.js +0 -76
  54. package/www/codemirror/addon/runmode/runmode.node.js +0 -329
  55. package/www/codemirror/addon/scroll/annotatescrollbar.js +0 -128
  56. package/www/codemirror/addon/scroll/scrollpastend.js +0 -48
  57. package/www/codemirror/addon/scroll/simplescrollbars.css +0 -66
  58. package/www/codemirror/addon/scroll/simplescrollbars.js +0 -152
  59. package/www/codemirror/addon/search/jump-to-line.js +0 -53
  60. package/www/codemirror/addon/search/match-highlighter.js +0 -167
  61. package/www/codemirror/addon/search/matchesonscrollbar.css +0 -8
  62. package/www/codemirror/addon/search/matchesonscrollbar.js +0 -97
  63. package/www/codemirror/addon/search/search.js +0 -295
  64. package/www/codemirror/addon/search/searchcursor.js +0 -305
  65. package/www/codemirror/addon/selection/active-line.js +0 -72
  66. package/www/codemirror/addon/selection/mark-selection.js +0 -119
  67. package/www/codemirror/addon/selection/selection-pointer.js +0 -98
  68. package/www/codemirror/addon/tern/tern.css +0 -87
  69. package/www/codemirror/addon/tern/tern.js +0 -756
  70. package/www/codemirror/addon/tern/worker.js +0 -44
  71. package/www/codemirror/addon/wrap/hardwrap.js +0 -160
  72. package/www/codemirror/bin/source-highlight +0 -48
  73. package/www/codemirror/keymap/emacs.js +0 -545
  74. package/www/codemirror/keymap/sublime.js +0 -720
  75. package/www/codemirror/keymap/vim.js +0 -5978
  76. package/www/codemirror/mode/apl/apl.js +0 -174
  77. package/www/codemirror/mode/asciiarmor/asciiarmor.js +0 -74
  78. package/www/codemirror/mode/asn.1/asn.1.js +0 -204
  79. package/www/codemirror/mode/asterisk/asterisk.js +0 -220
  80. package/www/codemirror/mode/brainfuck/brainfuck.js +0 -85
  81. package/www/codemirror/mode/clike/clike.js +0 -940
  82. package/www/codemirror/mode/clojure/clojure.js +0 -292
  83. package/www/codemirror/mode/cmake/cmake.js +0 -97
  84. package/www/codemirror/mode/cobol/cobol.js +0 -255
  85. package/www/codemirror/mode/coffeescript/coffeescript.js +0 -359
  86. package/www/codemirror/mode/commonlisp/commonlisp.js +0 -125
  87. package/www/codemirror/mode/crystal/crystal.js +0 -433
  88. package/www/codemirror/mode/css/css.js +0 -862
  89. package/www/codemirror/mode/cypher/cypher.js +0 -152
  90. package/www/codemirror/mode/d/d.js +0 -223
  91. package/www/codemirror/mode/dart/dart.js +0 -166
  92. package/www/codemirror/mode/diff/diff.js +0 -47
  93. package/www/codemirror/mode/django/django.js +0 -356
  94. package/www/codemirror/mode/dockerfile/dockerfile.js +0 -211
  95. package/www/codemirror/mode/dtd/dtd.js +0 -142
  96. package/www/codemirror/mode/dylan/dylan.js +0 -352
  97. package/www/codemirror/mode/ebnf/ebnf.js +0 -195
  98. package/www/codemirror/mode/ecl/ecl.js +0 -206
  99. package/www/codemirror/mode/eiffel/eiffel.js +0 -160
  100. package/www/codemirror/mode/elm/elm.js +0 -245
  101. package/www/codemirror/mode/erlang/erlang.js +0 -619
  102. package/www/codemirror/mode/factor/factor.js +0 -85
  103. package/www/codemirror/mode/fcl/fcl.js +0 -173
  104. package/www/codemirror/mode/forth/forth.js +0 -180
  105. package/www/codemirror/mode/fortran/fortran.js +0 -188
  106. package/www/codemirror/mode/gas/gas.js +0 -353
  107. package/www/codemirror/mode/gfm/gfm.js +0 -129
  108. package/www/codemirror/mode/gherkin/gherkin.js +0 -178
  109. package/www/codemirror/mode/go/go.js +0 -187
  110. package/www/codemirror/mode/groovy/groovy.js +0 -247
  111. package/www/codemirror/mode/haml/haml.js +0 -161
  112. package/www/codemirror/mode/handlebars/handlebars.js +0 -70
  113. package/www/codemirror/mode/haskell/haskell.js +0 -268
  114. package/www/codemirror/mode/haskell-literate/haskell-literate.js +0 -43
  115. package/www/codemirror/mode/haxe/haxe.js +0 -515
  116. package/www/codemirror/mode/htmlembedded/htmlembedded.js +0 -37
  117. package/www/codemirror/mode/htmlmixed/htmlmixed.js +0 -153
  118. package/www/codemirror/mode/http/http.js +0 -113
  119. package/www/codemirror/mode/idl/idl.js +0 -290
  120. package/www/codemirror/mode/jinja2/jinja2.js +0 -193
  121. package/www/codemirror/mode/jsx/jsx.js +0 -148
  122. package/www/codemirror/mode/julia/julia.js +0 -390
  123. package/www/codemirror/mode/livescript/livescript.js +0 -280
  124. package/www/codemirror/mode/lua/lua.js +0 -160
  125. package/www/codemirror/mode/markdown/markdown.js +0 -886
  126. package/www/codemirror/mode/mathematica/mathematica.js +0 -176
  127. package/www/codemirror/mode/mbox/mbox.js +0 -129
  128. package/www/codemirror/mode/meta.js +0 -221
  129. package/www/codemirror/mode/mirc/mirc.js +0 -193
  130. package/www/codemirror/mode/mllike/mllike.js +0 -359
  131. package/www/codemirror/mode/modelica/modelica.js +0 -245
  132. package/www/codemirror/mode/mscgen/mscgen.js +0 -175
  133. package/www/codemirror/mode/mumps/mumps.js +0 -148
  134. package/www/codemirror/mode/nginx/nginx.js +0 -178
  135. package/www/codemirror/mode/nsis/nsis.js +0 -95
  136. package/www/codemirror/mode/ntriples/ntriples.js +0 -195
  137. package/www/codemirror/mode/octave/octave.js +0 -139
  138. package/www/codemirror/mode/oz/oz.js +0 -252
  139. package/www/codemirror/mode/pascal/pascal.js +0 -136
  140. package/www/codemirror/mode/pegjs/pegjs.js +0 -111
  141. package/www/codemirror/mode/perl/perl.js +0 -836
  142. package/www/codemirror/mode/php/php.js +0 -234
  143. package/www/codemirror/mode/pig/pig.js +0 -178
  144. package/www/codemirror/mode/powershell/powershell.js +0 -398
  145. package/www/codemirror/mode/properties/properties.js +0 -78
  146. package/www/codemirror/mode/protobuf/protobuf.js +0 -72
  147. package/www/codemirror/mode/pug/pug.js +0 -591
  148. package/www/codemirror/mode/puppet/puppet.js +0 -220
  149. package/www/codemirror/mode/python/python.js +0 -402
  150. package/www/codemirror/mode/q/q.js +0 -139
  151. package/www/codemirror/mode/r/r.js +0 -190
  152. package/www/codemirror/mode/rpm/changes/index.html +0 -66
  153. package/www/codemirror/mode/rpm/rpm.js +0 -109
  154. package/www/codemirror/mode/rst/rst.js +0 -557
  155. package/www/codemirror/mode/ruby/ruby.js +0 -303
  156. package/www/codemirror/mode/rust/rust.js +0 -72
  157. package/www/codemirror/mode/sas/sas.js +0 -303
  158. package/www/codemirror/mode/sass/sass.js +0 -459
  159. package/www/codemirror/mode/scheme/scheme.js +0 -284
  160. package/www/codemirror/mode/shell/shell.js +0 -168
  161. package/www/codemirror/mode/sieve/sieve.js +0 -193
  162. package/www/codemirror/mode/slim/slim.js +0 -575
  163. package/www/codemirror/mode/smalltalk/smalltalk.js +0 -168
  164. package/www/codemirror/mode/smarty/smarty.js +0 -225
  165. package/www/codemirror/mode/solr/solr.js +0 -104
  166. package/www/codemirror/mode/soy/soy.js +0 -665
  167. package/www/codemirror/mode/sparql/sparql.js +0 -184
  168. package/www/codemirror/mode/spreadsheet/spreadsheet.js +0 -112
  169. package/www/codemirror/mode/sql/sql.js +0 -525
  170. package/www/codemirror/mode/stex/stex.js +0 -264
  171. package/www/codemirror/mode/stylus/stylus.js +0 -775
  172. package/www/codemirror/mode/swift/swift.js +0 -221
  173. package/www/codemirror/mode/tcl/tcl.js +0 -140
  174. package/www/codemirror/mode/textile/textile.js +0 -469
  175. package/www/codemirror/mode/tiddlywiki/tiddlywiki.css +0 -14
  176. package/www/codemirror/mode/tiddlywiki/tiddlywiki.js +0 -308
  177. package/www/codemirror/mode/tiki/tiki.css +0 -26
  178. package/www/codemirror/mode/tiki/tiki.js +0 -312
  179. package/www/codemirror/mode/toml/toml.js +0 -88
  180. package/www/codemirror/mode/tornado/tornado.js +0 -68
  181. package/www/codemirror/mode/troff/troff.js +0 -84
  182. package/www/codemirror/mode/ttcn/ttcn.js +0 -283
  183. package/www/codemirror/mode/ttcn-cfg/ttcn-cfg.js +0 -214
  184. package/www/codemirror/mode/turtle/turtle.js +0 -162
  185. package/www/codemirror/mode/twig/twig.js +0 -141
  186. package/www/codemirror/mode/vb/vb.js +0 -275
  187. package/www/codemirror/mode/vbscript/vbscript.js +0 -350
  188. package/www/codemirror/mode/velocity/velocity.js +0 -202
  189. package/www/codemirror/mode/verilog/verilog.js +0 -781
  190. package/www/codemirror/mode/vhdl/vhdl.js +0 -189
  191. package/www/codemirror/mode/vue/vue.js +0 -77
  192. package/www/codemirror/mode/wast/wast.js +0 -132
  193. package/www/codemirror/mode/webidl/webidl.js +0 -195
  194. package/www/codemirror/mode/xml/xml.js +0 -417
  195. package/www/codemirror/mode/xquery/xquery.js +0 -448
  196. package/www/codemirror/mode/yacas/yacas.js +0 -204
  197. package/www/codemirror/mode/yaml/yaml.js +0 -120
  198. package/www/codemirror/mode/yaml-frontmatter/yaml-frontmatter.js +0 -72
  199. package/www/codemirror/mode/z80/z80.js +0 -116
  200. package/www/codemirror/rollup.config.js +0 -52
  201. package/www/codemirror/src/addon/runmode/codemirror-standalone.js +0 -24
  202. package/www/codemirror/src/addon/runmode/codemirror.node.js +0 -21
  203. package/www/codemirror/src/addon/runmode/runmode-standalone.js +0 -2
  204. package/www/codemirror/src/addon/runmode/runmode.node.js +0 -2
  205. package/www/codemirror/src/codemirror.js +0 -3
  206. package/www/codemirror/src/display/Display.js +0 -116
  207. package/www/codemirror/src/display/focus.js +0 -50
  208. package/www/codemirror/src/display/gutters.js +0 -44
  209. package/www/codemirror/src/display/highlight_worker.js +0 -55
  210. package/www/codemirror/src/display/line_numbers.js +0 -48
  211. package/www/codemirror/src/display/mode_state.js +0 -22
  212. package/www/codemirror/src/display/operations.js +0 -206
  213. package/www/codemirror/src/display/scroll_events.js +0 -132
  214. package/www/codemirror/src/display/scrollbars.js +0 -194
  215. package/www/codemirror/src/display/scrolling.js +0 -186
  216. package/www/codemirror/src/display/selection.js +0 -173
  217. package/www/codemirror/src/display/update_display.js +0 -267
  218. package/www/codemirror/src/display/update_line.js +0 -189
  219. package/www/codemirror/src/display/update_lines.js +0 -82
  220. package/www/codemirror/src/display/view_tracking.js +0 -153
  221. package/www/codemirror/src/edit/CodeMirror.js +0 -217
  222. package/www/codemirror/src/edit/commands.js +0 -178
  223. package/www/codemirror/src/edit/deleteNearSelection.js +0 -30
  224. package/www/codemirror/src/edit/drop_events.js +0 -130
  225. package/www/codemirror/src/edit/fromTextArea.js +0 -61
  226. package/www/codemirror/src/edit/global_events.js +0 -45
  227. package/www/codemirror/src/edit/key_events.js +0 -163
  228. package/www/codemirror/src/edit/legacy.js +0 -62
  229. package/www/codemirror/src/edit/main.js +0 -69
  230. package/www/codemirror/src/edit/methods.js +0 -555
  231. package/www/codemirror/src/edit/mouse_events.js +0 -417
  232. package/www/codemirror/src/edit/options.js +0 -194
  233. package/www/codemirror/src/edit/utils.js +0 -7
  234. package/www/codemirror/src/input/ContentEditableInput.js +0 -546
  235. package/www/codemirror/src/input/TextareaInput.js +0 -380
  236. package/www/codemirror/src/input/indent.js +0 -71
  237. package/www/codemirror/src/input/input.js +0 -134
  238. package/www/codemirror/src/input/keymap.js +0 -147
  239. package/www/codemirror/src/input/keynames.js +0 -17
  240. package/www/codemirror/src/input/movement.js +0 -111
  241. package/www/codemirror/src/line/highlight.js +0 -284
  242. package/www/codemirror/src/line/line_data.js +0 -349
  243. package/www/codemirror/src/line/pos.js +0 -40
  244. package/www/codemirror/src/line/saw_special_spans.js +0 -10
  245. package/www/codemirror/src/line/spans.js +0 -390
  246. package/www/codemirror/src/line/utils_line.js +0 -85
  247. package/www/codemirror/src/measurement/position_measurement.js +0 -702
  248. package/www/codemirror/src/measurement/widgets.js +0 -26
  249. package/www/codemirror/src/model/Doc.js +0 -436
  250. package/www/codemirror/src/model/change_measurement.js +0 -61
  251. package/www/codemirror/src/model/changes.js +0 -339
  252. package/www/codemirror/src/model/chunk.js +0 -167
  253. package/www/codemirror/src/model/document_data.js +0 -112
  254. package/www/codemirror/src/model/history.js +0 -228
  255. package/www/codemirror/src/model/line_widget.js +0 -78
  256. package/www/codemirror/src/model/mark_text.js +0 -293
  257. package/www/codemirror/src/model/selection.js +0 -84
  258. package/www/codemirror/src/model/selection_updates.js +0 -216
  259. package/www/codemirror/src/modes.js +0 -96
  260. package/www/codemirror/src/util/StringStream.js +0 -90
  261. package/www/codemirror/src/util/bidi.js +0 -215
  262. package/www/codemirror/src/util/browser.js +0 -34
  263. package/www/codemirror/src/util/dom.js +0 -101
  264. package/www/codemirror/src/util/event.js +0 -103
  265. package/www/codemirror/src/util/feature_detection.js +0 -84
  266. package/www/codemirror/src/util/misc.js +0 -168
  267. package/www/codemirror/src/util/operation_group.js +0 -72
  268. package/www/codemirror/theme/3024-day.css +0 -41
  269. package/www/codemirror/theme/3024-night.css +0 -39
  270. package/www/codemirror/theme/abbott.css +0 -268
  271. package/www/codemirror/theme/abcdef.css +0 -32
  272. package/www/codemirror/theme/ambiance-mobile.css +0 -5
  273. package/www/codemirror/theme/ambiance.css +0 -74
  274. package/www/codemirror/theme/ayu-dark.css +0 -44
  275. package/www/codemirror/theme/ayu-mirage.css +0 -45
  276. package/www/codemirror/theme/base16-dark.css +0 -40
  277. package/www/codemirror/theme/base16-light.css +0 -38
  278. package/www/codemirror/theme/bespin.css +0 -34
  279. package/www/codemirror/theme/blackboard.css +0 -32
  280. package/www/codemirror/theme/cobalt.css +0 -25
  281. package/www/codemirror/theme/colorforth.css +0 -33
  282. package/www/codemirror/theme/darcula.css +0 -53
  283. package/www/codemirror/theme/dracula.css +0 -40
  284. package/www/codemirror/theme/duotone-dark.css +0 -35
  285. package/www/codemirror/theme/duotone-light.css +0 -36
  286. package/www/codemirror/theme/eclipse.css +0 -23
  287. package/www/codemirror/theme/elegant.css +0 -13
  288. package/www/codemirror/theme/erlang-dark.css +0 -34
  289. package/www/codemirror/theme/gruvbox-dark.css +0 -39
  290. package/www/codemirror/theme/hopscotch.css +0 -34
  291. package/www/codemirror/theme/icecoder.css +0 -43
  292. package/www/codemirror/theme/idea.css +0 -42
  293. package/www/codemirror/theme/isotope.css +0 -34
  294. package/www/codemirror/theme/juejin.css +0 -30
  295. package/www/codemirror/theme/lesser-dark.css +0 -47
  296. package/www/codemirror/theme/liquibyte.css +0 -95
  297. package/www/codemirror/theme/lucario.css +0 -37
  298. package/www/codemirror/theme/material-darker.css +0 -135
  299. package/www/codemirror/theme/material-palenight.css +0 -141
  300. package/www/codemirror/theme/material.css +0 -141
  301. package/www/codemirror/theme/mbo.css +0 -37
  302. package/www/codemirror/theme/mdn-like.css +0 -46
  303. package/www/codemirror/theme/midnight.css +0 -39
  304. package/www/codemirror/theme/monokai.css +0 -41
  305. package/www/codemirror/theme/moxer.css +0 -143
  306. package/www/codemirror/theme/neat.css +0 -12
  307. package/www/codemirror/theme/neo.css +0 -43
  308. package/www/codemirror/theme/night.css +0 -27
  309. package/www/codemirror/theme/nord.css +0 -42
  310. package/www/codemirror/theme/oceanic-next.css +0 -46
  311. package/www/codemirror/theme/panda-syntax.css +0 -85
  312. package/www/codemirror/theme/paraiso-dark.css +0 -38
  313. package/www/codemirror/theme/paraiso-light.css +0 -38
  314. package/www/codemirror/theme/pastel-on-dark.css +0 -52
  315. package/www/codemirror/theme/railscasts.css +0 -34
  316. package/www/codemirror/theme/rubyblue.css +0 -25
  317. package/www/codemirror/theme/seti.css +0 -44
  318. package/www/codemirror/theme/shadowfox.css +0 -52
  319. package/www/codemirror/theme/solarized.css +0 -165
  320. package/www/codemirror/theme/ssms.css +0 -16
  321. package/www/codemirror/theme/the-matrix.css +0 -30
  322. package/www/codemirror/theme/tomorrow-night-bright.css +0 -35
  323. package/www/codemirror/theme/tomorrow-night-eighties.css +0 -38
  324. package/www/codemirror/theme/ttcn.css +0 -64
  325. package/www/codemirror/theme/twilight.css +0 -32
  326. package/www/codemirror/theme/vibrant-ink.css +0 -34
  327. package/www/codemirror/theme/xq-dark.css +0 -53
  328. package/www/codemirror/theme/xq-light.css +0 -43
  329. package/www/codemirror/theme/yeti.css +0 -44
  330. package/www/codemirror/theme/yonce.css +0 -59
  331. package/www/codemirror/theme/zenburn.css +0 -37
@@ -1,101 +0,0 @@
1
- import { ie, ios } from "./browser.js"
2
-
3
- export function classTest(cls) { return new RegExp("(^|\\s)" + cls + "(?:$|\\s)\\s*") }
4
-
5
- export let rmClass = function(node, cls) {
6
- let current = node.className
7
- let match = classTest(cls).exec(current)
8
- if (match) {
9
- let after = current.slice(match.index + match[0].length)
10
- node.className = current.slice(0, match.index) + (after ? match[1] + after : "")
11
- }
12
- }
13
-
14
- export function removeChildren(e) {
15
- for (let count = e.childNodes.length; count > 0; --count)
16
- e.removeChild(e.firstChild)
17
- return e
18
- }
19
-
20
- export function removeChildrenAndAdd(parent, e) {
21
- return removeChildren(parent).appendChild(e)
22
- }
23
-
24
- export function elt(tag, content, className, style) {
25
- let e = document.createElement(tag)
26
- if (className) e.className = className
27
- if (style) e.style.cssText = style
28
- if (typeof content == "string") e.appendChild(document.createTextNode(content))
29
- else if (content) for (let i = 0; i < content.length; ++i) e.appendChild(content[i])
30
- return e
31
- }
32
- // wrapper for elt, which removes the elt from the accessibility tree
33
- export function eltP(tag, content, className, style) {
34
- let e = elt(tag, content, className, style)
35
- e.setAttribute("role", "presentation")
36
- return e
37
- }
38
-
39
- export let range
40
- if (document.createRange) range = function(node, start, end, endNode) {
41
- let r = document.createRange()
42
- r.setEnd(endNode || node, end)
43
- r.setStart(node, start)
44
- return r
45
- }
46
- else range = function(node, start, end) {
47
- let r = document.body.createTextRange()
48
- try { r.moveToElementText(node.parentNode) }
49
- catch(e) { return r }
50
- r.collapse(true)
51
- r.moveEnd("character", end)
52
- r.moveStart("character", start)
53
- return r
54
- }
55
-
56
- export function contains(parent, child) {
57
- if (child.nodeType == 3) // Android browser always returns false when child is a textnode
58
- child = child.parentNode
59
- if (parent.contains)
60
- return parent.contains(child)
61
- do {
62
- if (child.nodeType == 11) child = child.host
63
- if (child == parent) return true
64
- } while (child = child.parentNode)
65
- }
66
-
67
- export function activeElt(doc) {
68
- // IE and Edge may throw an "Unspecified Error" when accessing document.activeElement.
69
- // IE < 10 will throw when accessed while the page is loading or in an iframe.
70
- // IE > 9 and Edge will throw when accessed in an iframe if document.body is unavailable.
71
- let activeElement
72
- try {
73
- activeElement = doc.activeElement
74
- } catch(e) {
75
- activeElement = doc.body || null
76
- }
77
- while (activeElement && activeElement.shadowRoot && activeElement.shadowRoot.activeElement)
78
- activeElement = activeElement.shadowRoot.activeElement
79
- return activeElement
80
- }
81
-
82
- export function addClass(node, cls) {
83
- let current = node.className
84
- if (!classTest(cls).test(current)) node.className += (current ? " " : "") + cls
85
- }
86
- export function joinClasses(a, b) {
87
- let as = a.split(" ")
88
- for (let i = 0; i < as.length; i++)
89
- if (as[i] && !classTest(as[i]).test(b)) b += " " + as[i]
90
- return b
91
- }
92
-
93
- export let selectInput = function(node) { node.select() }
94
- if (ios) // Mobile Safari apparently has a bug where select() is broken.
95
- selectInput = function(node) { node.selectionStart = 0; node.selectionEnd = node.value.length }
96
- else if (ie) // Suppress mysterious IE10 errors
97
- selectInput = function(node) { try { node.select() } catch(_e) {} }
98
-
99
- export function doc(cm) { return cm.display.wrapper.ownerDocument }
100
-
101
- export function win(cm) { return doc(cm).defaultView }
@@ -1,103 +0,0 @@
1
- import { mac } from "./browser.js"
2
- import { indexOf } from "./misc.js"
3
-
4
- // EVENT HANDLING
5
-
6
- // Lightweight event framework. on/off also work on DOM nodes,
7
- // registering native DOM handlers.
8
-
9
- const noHandlers = []
10
-
11
- export let on = function(emitter, type, f) {
12
- if (emitter.addEventListener) {
13
- emitter.addEventListener(type, f, false)
14
- } else if (emitter.attachEvent) {
15
- emitter.attachEvent("on" + type, f)
16
- } else {
17
- let map = emitter._handlers || (emitter._handlers = {})
18
- map[type] = (map[type] || noHandlers).concat(f)
19
- }
20
- }
21
-
22
- export function getHandlers(emitter, type) {
23
- return emitter._handlers && emitter._handlers[type] || noHandlers
24
- }
25
-
26
- export function off(emitter, type, f) {
27
- if (emitter.removeEventListener) {
28
- emitter.removeEventListener(type, f, false)
29
- } else if (emitter.detachEvent) {
30
- emitter.detachEvent("on" + type, f)
31
- } else {
32
- let map = emitter._handlers, arr = map && map[type]
33
- if (arr) {
34
- let index = indexOf(arr, f)
35
- if (index > -1)
36
- map[type] = arr.slice(0, index).concat(arr.slice(index + 1))
37
- }
38
- }
39
- }
40
-
41
- export function signal(emitter, type /*, values...*/) {
42
- let handlers = getHandlers(emitter, type)
43
- if (!handlers.length) return
44
- let args = Array.prototype.slice.call(arguments, 2)
45
- for (let i = 0; i < handlers.length; ++i) handlers[i].apply(null, args)
46
- }
47
-
48
- // The DOM events that CodeMirror handles can be overridden by
49
- // registering a (non-DOM) handler on the editor for the event name,
50
- // and preventDefault-ing the event in that handler.
51
- export function signalDOMEvent(cm, e, override) {
52
- if (typeof e == "string")
53
- e = {type: e, preventDefault: function() { this.defaultPrevented = true }}
54
- signal(cm, override || e.type, cm, e)
55
- return e_defaultPrevented(e) || e.codemirrorIgnore
56
- }
57
-
58
- export function signalCursorActivity(cm) {
59
- let arr = cm._handlers && cm._handlers.cursorActivity
60
- if (!arr) return
61
- let set = cm.curOp.cursorActivityHandlers || (cm.curOp.cursorActivityHandlers = [])
62
- for (let i = 0; i < arr.length; ++i) if (indexOf(set, arr[i]) == -1)
63
- set.push(arr[i])
64
- }
65
-
66
- export function hasHandler(emitter, type) {
67
- return getHandlers(emitter, type).length > 0
68
- }
69
-
70
- // Add on and off methods to a constructor's prototype, to make
71
- // registering events on such objects more convenient.
72
- export function eventMixin(ctor) {
73
- ctor.prototype.on = function(type, f) {on(this, type, f)}
74
- ctor.prototype.off = function(type, f) {off(this, type, f)}
75
- }
76
-
77
- // Due to the fact that we still support jurassic IE versions, some
78
- // compatibility wrappers are needed.
79
-
80
- export function e_preventDefault(e) {
81
- if (e.preventDefault) e.preventDefault()
82
- else e.returnValue = false
83
- }
84
- export function e_stopPropagation(e) {
85
- if (e.stopPropagation) e.stopPropagation()
86
- else e.cancelBubble = true
87
- }
88
- export function e_defaultPrevented(e) {
89
- return e.defaultPrevented != null ? e.defaultPrevented : e.returnValue == false
90
- }
91
- export function e_stop(e) {e_preventDefault(e); e_stopPropagation(e)}
92
-
93
- export function e_target(e) {return e.target || e.srcElement}
94
- export function e_button(e) {
95
- let b = e.which
96
- if (b == null) {
97
- if (e.button & 1) b = 1
98
- else if (e.button & 2) b = 3
99
- else if (e.button & 4) b = 2
100
- }
101
- if (mac && e.ctrlKey && b == 1) b = 3
102
- return b
103
- }
@@ -1,84 +0,0 @@
1
- import { elt, range, removeChildren, removeChildrenAndAdd } from "./dom.js"
2
- import { ie, ie_version } from "./browser.js"
3
-
4
- // Detect drag-and-drop
5
- export let dragAndDrop = function() {
6
- // There is *some* kind of drag-and-drop support in IE6-8, but I
7
- // couldn't get it to work yet.
8
- if (ie && ie_version < 9) return false
9
- let div = elt('div')
10
- return "draggable" in div || "dragDrop" in div
11
- }()
12
-
13
- let zwspSupported
14
- export function zeroWidthElement(measure) {
15
- if (zwspSupported == null) {
16
- let test = elt("span", "\u200b")
17
- removeChildrenAndAdd(measure, elt("span", [test, document.createTextNode("x")]))
18
- if (measure.firstChild.offsetHeight != 0)
19
- zwspSupported = test.offsetWidth <= 1 && test.offsetHeight > 2 && !(ie && ie_version < 8)
20
- }
21
- let node = zwspSupported ? elt("span", "\u200b") :
22
- elt("span", "\u00a0", null, "display: inline-block; width: 1px; margin-right: -1px")
23
- node.setAttribute("cm-text", "")
24
- return node
25
- }
26
-
27
- // Feature-detect IE's crummy client rect reporting for bidi text
28
- let badBidiRects
29
- export function hasBadBidiRects(measure) {
30
- if (badBidiRects != null) return badBidiRects
31
- let txt = removeChildrenAndAdd(measure, document.createTextNode("A\u062eA"))
32
- let r0 = range(txt, 0, 1).getBoundingClientRect()
33
- let r1 = range(txt, 1, 2).getBoundingClientRect()
34
- removeChildren(measure)
35
- if (!r0 || r0.left == r0.right) return false // Safari returns null in some cases (#2780)
36
- return badBidiRects = (r1.right - r0.right < 3)
37
- }
38
-
39
- // See if "".split is the broken IE version, if so, provide an
40
- // alternative way to split lines.
41
- export let splitLinesAuto = "\n\nb".split(/\n/).length != 3 ? string => {
42
- let pos = 0, result = [], l = string.length
43
- while (pos <= l) {
44
- let nl = string.indexOf("\n", pos)
45
- if (nl == -1) nl = string.length
46
- let line = string.slice(pos, string.charAt(nl - 1) == "\r" ? nl - 1 : nl)
47
- let rt = line.indexOf("\r")
48
- if (rt != -1) {
49
- result.push(line.slice(0, rt))
50
- pos += rt + 1
51
- } else {
52
- result.push(line)
53
- pos = nl + 1
54
- }
55
- }
56
- return result
57
- } : string => string.split(/\r\n?|\n/)
58
-
59
- export let hasSelection = window.getSelection ? te => {
60
- try { return te.selectionStart != te.selectionEnd }
61
- catch(e) { return false }
62
- } : te => {
63
- let range
64
- try {range = te.ownerDocument.selection.createRange()}
65
- catch(e) {}
66
- if (!range || range.parentElement() != te) return false
67
- return range.compareEndPoints("StartToEnd", range) != 0
68
- }
69
-
70
- export let hasCopyEvent = (() => {
71
- let e = elt("div")
72
- if ("oncopy" in e) return true
73
- e.setAttribute("oncopy", "return;")
74
- return typeof e.oncopy == "function"
75
- })()
76
-
77
- let badZoomedRects = null
78
- export function hasBadZoomedRects(measure) {
79
- if (badZoomedRects != null) return badZoomedRects
80
- let node = removeChildrenAndAdd(measure, elt("span", "x"))
81
- let normal = node.getBoundingClientRect()
82
- let fromRange = range(node, 0, 1).getBoundingClientRect()
83
- return badZoomedRects = Math.abs(normal.left - fromRange.left) > 1
84
- }
@@ -1,168 +0,0 @@
1
- export function bind(f) {
2
- let args = Array.prototype.slice.call(arguments, 1)
3
- return function(){return f.apply(null, args)}
4
- }
5
-
6
- export function copyObj(obj, target, overwrite) {
7
- if (!target) target = {}
8
- for (let prop in obj)
9
- if (obj.hasOwnProperty(prop) && (overwrite !== false || !target.hasOwnProperty(prop)))
10
- target[prop] = obj[prop]
11
- return target
12
- }
13
-
14
- // Counts the column offset in a string, taking tabs into account.
15
- // Used mostly to find indentation.
16
- export function countColumn(string, end, tabSize, startIndex, startValue) {
17
- if (end == null) {
18
- end = string.search(/[^\s\u00a0]/)
19
- if (end == -1) end = string.length
20
- }
21
- for (let i = startIndex || 0, n = startValue || 0;;) {
22
- let nextTab = string.indexOf("\t", i)
23
- if (nextTab < 0 || nextTab >= end)
24
- return n + (end - i)
25
- n += nextTab - i
26
- n += tabSize - (n % tabSize)
27
- i = nextTab + 1
28
- }
29
- }
30
-
31
- export class Delayed {
32
- constructor() {
33
- this.id = null
34
- this.f = null
35
- this.time = 0
36
- this.handler = bind(this.onTimeout, this)
37
- }
38
- onTimeout(self) {
39
- self.id = 0
40
- if (self.time <= +new Date) {
41
- self.f()
42
- } else {
43
- setTimeout(self.handler, self.time - +new Date)
44
- }
45
- }
46
- set(ms, f) {
47
- this.f = f
48
- const time = +new Date + ms
49
- if (!this.id || time < this.time) {
50
- clearTimeout(this.id)
51
- this.id = setTimeout(this.handler, ms)
52
- this.time = time
53
- }
54
- }
55
- }
56
-
57
- export function indexOf(array, elt) {
58
- for (let i = 0; i < array.length; ++i)
59
- if (array[i] == elt) return i
60
- return -1
61
- }
62
-
63
- // Number of pixels added to scroller and sizer to hide scrollbar
64
- export let scrollerGap = 50
65
-
66
- // Returned or thrown by various protocols to signal 'I'm not
67
- // handling this'.
68
- export let Pass = {toString: function(){return "CodeMirror.Pass"}}
69
-
70
- // Reused option objects for setSelection & friends
71
- export let sel_dontScroll = {scroll: false}, sel_mouse = {origin: "*mouse"}, sel_move = {origin: "+move"}
72
-
73
- // The inverse of countColumn -- find the offset that corresponds to
74
- // a particular column.
75
- export function findColumn(string, goal, tabSize) {
76
- for (let pos = 0, col = 0;;) {
77
- let nextTab = string.indexOf("\t", pos)
78
- if (nextTab == -1) nextTab = string.length
79
- let skipped = nextTab - pos
80
- if (nextTab == string.length || col + skipped >= goal)
81
- return pos + Math.min(skipped, goal - col)
82
- col += nextTab - pos
83
- col += tabSize - (col % tabSize)
84
- pos = nextTab + 1
85
- if (col >= goal) return pos
86
- }
87
- }
88
-
89
- let spaceStrs = [""]
90
- export function spaceStr(n) {
91
- while (spaceStrs.length <= n)
92
- spaceStrs.push(lst(spaceStrs) + " ")
93
- return spaceStrs[n]
94
- }
95
-
96
- export function lst(arr) { return arr[arr.length-1] }
97
-
98
- export function map(array, f) {
99
- let out = []
100
- for (let i = 0; i < array.length; i++) out[i] = f(array[i], i)
101
- return out
102
- }
103
-
104
- export function insertSorted(array, value, score) {
105
- let pos = 0, priority = score(value)
106
- while (pos < array.length && score(array[pos]) <= priority) pos++
107
- array.splice(pos, 0, value)
108
- }
109
-
110
- function nothing() {}
111
-
112
- export function createObj(base, props) {
113
- let inst
114
- if (Object.create) {
115
- inst = Object.create(base)
116
- } else {
117
- nothing.prototype = base
118
- inst = new nothing()
119
- }
120
- if (props) copyObj(props, inst)
121
- return inst
122
- }
123
-
124
- let nonASCIISingleCaseWordChar = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/
125
- export function isWordCharBasic(ch) {
126
- return /\w/.test(ch) || ch > "\x80" &&
127
- (ch.toUpperCase() != ch.toLowerCase() || nonASCIISingleCaseWordChar.test(ch))
128
- }
129
- export function isWordChar(ch, helper) {
130
- if (!helper) return isWordCharBasic(ch)
131
- if (helper.source.indexOf("\\w") > -1 && isWordCharBasic(ch)) return true
132
- return helper.test(ch)
133
- }
134
-
135
- export function isEmpty(obj) {
136
- for (let n in obj) if (obj.hasOwnProperty(n) && obj[n]) return false
137
- return true
138
- }
139
-
140
- // Extending unicode characters. A series of a non-extending char +
141
- // any number of extending chars is treated as a single unit as far
142
- // as editing and measuring is concerned. This is not fully correct,
143
- // since some scripts/fonts/browsers also treat other configurations
144
- // of code points as a group.
145
- let extendingChars = /[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/
146
- export function isExtendingChar(ch) { return ch.charCodeAt(0) >= 768 && extendingChars.test(ch) }
147
-
148
- // Returns a number from the range [`0`; `str.length`] unless `pos` is outside that range.
149
- export function skipExtendingChars(str, pos, dir) {
150
- while ((dir < 0 ? pos > 0 : pos < str.length) && isExtendingChar(str.charAt(pos))) pos += dir
151
- return pos
152
- }
153
-
154
- // Returns the value from the range [`from`; `to`] that satisfies
155
- // `pred` and is closest to `from`. Assumes that at least `to`
156
- // satisfies `pred`. Supports `from` being greater than `to`.
157
- export function findFirst(pred, from, to) {
158
- // At any point we are certain `to` satisfies `pred`, don't know
159
- // whether `from` does.
160
- let dir = from > to ? -1 : 1
161
- for (;;) {
162
- if (from == to) return from
163
- let midF = (from + to) / 2, mid = dir < 0 ? Math.ceil(midF) : Math.floor(midF)
164
- if (mid == from) return pred(mid) ? from : to
165
- if (pred(mid)) to = mid
166
- else from = mid + dir
167
- }
168
- }
@@ -1,72 +0,0 @@
1
- import { getHandlers } from "./event.js"
2
-
3
- let operationGroup = null
4
-
5
- export function pushOperation(op) {
6
- if (operationGroup) {
7
- operationGroup.ops.push(op)
8
- } else {
9
- op.ownsGroup = operationGroup = {
10
- ops: [op],
11
- delayedCallbacks: []
12
- }
13
- }
14
- }
15
-
16
- function fireCallbacksForOps(group) {
17
- // Calls delayed callbacks and cursorActivity handlers until no
18
- // new ones appear
19
- let callbacks = group.delayedCallbacks, i = 0
20
- do {
21
- for (; i < callbacks.length; i++)
22
- callbacks[i].call(null)
23
- for (let j = 0; j < group.ops.length; j++) {
24
- let op = group.ops[j]
25
- if (op.cursorActivityHandlers)
26
- while (op.cursorActivityCalled < op.cursorActivityHandlers.length)
27
- op.cursorActivityHandlers[op.cursorActivityCalled++].call(null, op.cm)
28
- }
29
- } while (i < callbacks.length)
30
- }
31
-
32
- export function finishOperation(op, endCb) {
33
- let group = op.ownsGroup
34
- if (!group) return
35
-
36
- try { fireCallbacksForOps(group) }
37
- finally {
38
- operationGroup = null
39
- endCb(group)
40
- }
41
- }
42
-
43
- let orphanDelayedCallbacks = null
44
-
45
- // Often, we want to signal events at a point where we are in the
46
- // middle of some work, but don't want the handler to start calling
47
- // other methods on the editor, which might be in an inconsistent
48
- // state or simply not expect any other events to happen.
49
- // signalLater looks whether there are any handlers, and schedules
50
- // them to be executed when the last operation ends, or, if no
51
- // operation is active, when a timeout fires.
52
- export function signalLater(emitter, type /*, values...*/) {
53
- let arr = getHandlers(emitter, type)
54
- if (!arr.length) return
55
- let args = Array.prototype.slice.call(arguments, 2), list
56
- if (operationGroup) {
57
- list = operationGroup.delayedCallbacks
58
- } else if (orphanDelayedCallbacks) {
59
- list = orphanDelayedCallbacks
60
- } else {
61
- list = orphanDelayedCallbacks = []
62
- setTimeout(fireOrphanDelayed, 0)
63
- }
64
- for (let i = 0; i < arr.length; ++i)
65
- list.push(() => arr[i].apply(null, args))
66
- }
67
-
68
- function fireOrphanDelayed() {
69
- let delayed = orphanDelayedCallbacks
70
- orphanDelayedCallbacks = null
71
- for (let i = 0; i < delayed.length; ++i) delayed[i]()
72
- }
@@ -1,41 +0,0 @@
1
- /*
2
-
3
- Name: 3024 day
4
- Author: Jan T. Sott (http://github.com/idleberg)
5
-
6
- CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)
7
- Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
8
-
9
- */
10
-
11
- .cm-s-3024-day.CodeMirror { background: #f7f7f7; color: #3a3432; }
12
- .cm-s-3024-day div.CodeMirror-selected { background: #d6d5d4; }
13
-
14
- .cm-s-3024-day .CodeMirror-line::selection, .cm-s-3024-day .CodeMirror-line > span::selection, .cm-s-3024-day .CodeMirror-line > span > span::selection { background: #d6d5d4; }
15
- .cm-s-3024-day .CodeMirror-line::-moz-selection, .cm-s-3024-day .CodeMirror-line > span::-moz-selection, .cm-s-3024-day .CodeMirror-line > span > span::selection { background: #d9d9d9; }
16
-
17
- .cm-s-3024-day .CodeMirror-gutters { background: #f7f7f7; border-right: 0px; }
18
- .cm-s-3024-day .CodeMirror-guttermarker { color: #db2d20; }
19
- .cm-s-3024-day .CodeMirror-guttermarker-subtle { color: #807d7c; }
20
- .cm-s-3024-day .CodeMirror-linenumber { color: #807d7c; }
21
-
22
- .cm-s-3024-day .CodeMirror-cursor { border-left: 1px solid #5c5855; }
23
-
24
- .cm-s-3024-day span.cm-comment { color: #cdab53; }
25
- .cm-s-3024-day span.cm-atom { color: #a16a94; }
26
- .cm-s-3024-day span.cm-number { color: #a16a94; }
27
-
28
- .cm-s-3024-day span.cm-property, .cm-s-3024-day span.cm-attribute { color: #01a252; }
29
- .cm-s-3024-day span.cm-keyword { color: #db2d20; }
30
- .cm-s-3024-day span.cm-string { color: #fded02; }
31
-
32
- .cm-s-3024-day span.cm-variable { color: #01a252; }
33
- .cm-s-3024-day span.cm-variable-2 { color: #01a0e4; }
34
- .cm-s-3024-day span.cm-def { color: #e8bbd0; }
35
- .cm-s-3024-day span.cm-bracket { color: #3a3432; }
36
- .cm-s-3024-day span.cm-tag { color: #db2d20; }
37
- .cm-s-3024-day span.cm-link { color: #a16a94; }
38
- .cm-s-3024-day span.cm-error { background: #db2d20; color: #5c5855; }
39
-
40
- .cm-s-3024-day .CodeMirror-activeline-background { background: #e8f2ff; }
41
- .cm-s-3024-day .CodeMirror-matchingbracket { text-decoration: underline; color: #a16a94 !important; }
@@ -1,39 +0,0 @@
1
- /*
2
-
3
- Name: 3024 night
4
- Author: Jan T. Sott (http://github.com/idleberg)
5
-
6
- CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)
7
- Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
8
-
9
- */
10
-
11
- .cm-s-3024-night.CodeMirror { background: #090300; color: #d6d5d4; }
12
- .cm-s-3024-night div.CodeMirror-selected { background: #3a3432; }
13
- .cm-s-3024-night .CodeMirror-line::selection, .cm-s-3024-night .CodeMirror-line > span::selection, .cm-s-3024-night .CodeMirror-line > span > span::selection { background: rgba(58, 52, 50, .99); }
14
- .cm-s-3024-night .CodeMirror-line::-moz-selection, .cm-s-3024-night .CodeMirror-line > span::-moz-selection, .cm-s-3024-night .CodeMirror-line > span > span::-moz-selection { background: rgba(58, 52, 50, .99); }
15
- .cm-s-3024-night .CodeMirror-gutters { background: #090300; border-right: 0px; }
16
- .cm-s-3024-night .CodeMirror-guttermarker { color: #db2d20; }
17
- .cm-s-3024-night .CodeMirror-guttermarker-subtle { color: #5c5855; }
18
- .cm-s-3024-night .CodeMirror-linenumber { color: #5c5855; }
19
-
20
- .cm-s-3024-night .CodeMirror-cursor { border-left: 1px solid #807d7c; }
21
-
22
- .cm-s-3024-night span.cm-comment { color: #cdab53; }
23
- .cm-s-3024-night span.cm-atom { color: #a16a94; }
24
- .cm-s-3024-night span.cm-number { color: #a16a94; }
25
-
26
- .cm-s-3024-night span.cm-property, .cm-s-3024-night span.cm-attribute { color: #01a252; }
27
- .cm-s-3024-night span.cm-keyword { color: #db2d20; }
28
- .cm-s-3024-night span.cm-string { color: #fded02; }
29
-
30
- .cm-s-3024-night span.cm-variable { color: #01a252; }
31
- .cm-s-3024-night span.cm-variable-2 { color: #01a0e4; }
32
- .cm-s-3024-night span.cm-def { color: #e8bbd0; }
33
- .cm-s-3024-night span.cm-bracket { color: #d6d5d4; }
34
- .cm-s-3024-night span.cm-tag { color: #db2d20; }
35
- .cm-s-3024-night span.cm-link { color: #a16a94; }
36
- .cm-s-3024-night span.cm-error { background: #db2d20; color: #807d7c; }
37
-
38
- .cm-s-3024-night .CodeMirror-activeline-background { background: #2F2F2F; }
39
- .cm-s-3024-night .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; }