ace-rails-ap 4.1.3 → 4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitmodules +1 -1
- data/Gemfile +2 -3
- data/ace-rails-ap.gemspec +0 -2
- data/lib/ace/rails/version.rb +1 -1
- data/update.sh +1 -1
- data/vendor/assets/javascripts/ace/ace.js +5192 -3414
- data/vendor/assets/javascripts/ace/ext-beautify.js +281 -288
- data/vendor/assets/javascripts/ace/ext-code_lens.js +238 -0
- data/vendor/assets/javascripts/ace/ext-elastic_tabstops_lite.js +6 -3
- data/vendor/assets/javascripts/ace/ext-emmet.js +353 -246
- data/vendor/assets/javascripts/ace/ext-error_marker.js +6 -3
- data/vendor/assets/javascripts/ace/ext-keybinding_menu.js +61 -38
- data/vendor/assets/javascripts/ace/ext-language_tools.js +532 -343
- data/vendor/assets/javascripts/ace/ext-linking.js +8 -5
- data/vendor/assets/javascripts/ace/ext-modelist.js +46 -12
- data/vendor/assets/javascripts/ace/ext-options.js +793 -0
- data/vendor/assets/javascripts/ace/ext-prompt.js +2783 -0
- data/vendor/assets/javascripts/ace/ext-rtl.js +122 -0
- data/vendor/assets/javascripts/ace/ext-searchbox.js +45 -40
- data/vendor/assets/javascripts/ace/ext-settings_menu.js +520 -369
- data/vendor/assets/javascripts/ace/ext-spellcheck.js +6 -4
- data/vendor/assets/javascripts/ace/ext-split.js +7 -46
- data/vendor/assets/javascripts/ace/ext-static_highlight.js +90 -22
- data/vendor/assets/javascripts/ace/ext-statusbar.js +9 -6
- data/vendor/assets/javascripts/ace/ext-textarea.js +21 -18
- data/vendor/assets/javascripts/ace/ext-themelist.js +10 -6
- data/vendor/assets/javascripts/ace/ext-whitespace.js +13 -6
- data/vendor/assets/javascripts/ace/keybinding-emacs.js +49 -61
- data/vendor/assets/javascripts/ace/keybinding-sublime.js +422 -0
- data/vendor/assets/javascripts/ace/keybinding-vim.js +620 -287
- data/vendor/assets/javascripts/ace/keybinding-vscode.js +262 -0
- data/vendor/assets/javascripts/ace/mode-abap.js +10 -3
- data/vendor/assets/javascripts/ace/mode-abc.js +14 -4
- data/vendor/assets/javascripts/ace/mode-actionscript.js +13 -5
- data/vendor/assets/javascripts/ace/mode-ada.js +54 -4
- data/vendor/assets/javascripts/ace/mode-alda.js +311 -0
- data/vendor/assets/javascripts/ace/mode-apache_conf.js +12 -5
- data/vendor/assets/javascripts/ace/mode-apex.js +457 -0
- data/vendor/assets/javascripts/ace/mode-applescript.js +11 -4
- data/vendor/assets/javascripts/ace/mode-aql.js +102 -0
- data/vendor/assets/javascripts/ace/mode-asciidoc.js +9 -2
- data/vendor/assets/javascripts/ace/mode-asl.js +422 -0
- data/vendor/assets/javascripts/ace/mode-assembly_x86.js +11 -4
- data/vendor/assets/javascripts/ace/mode-autohotkey.js +17 -8
- data/vendor/assets/javascripts/ace/mode-batchfile.js +12 -5
- data/vendor/assets/javascripts/ace/mode-c9search.js +9 -3
- data/vendor/assets/javascripts/ace/mode-c_cpp.js +23 -7
- data/vendor/assets/javascripts/ace/mode-cirru.js +11 -4
- data/vendor/assets/javascripts/ace/mode-clojure.js +9 -1
- data/vendor/assets/javascripts/ace/mode-cobol.js +8 -1
- data/vendor/assets/javascripts/ace/mode-coffee.js +12 -4
- data/vendor/assets/javascripts/ace/mode-coldfusion.js +163 -134
- data/vendor/assets/javascripts/ace/mode-crystal.js +642 -0
- data/vendor/assets/javascripts/ace/mode-csharp.js +13 -6
- data/vendor/assets/javascripts/ace/mode-csound_document.js +4036 -0
- data/vendor/assets/javascripts/ace/mode-csound_orchestra.js +2966 -0
- data/vendor/assets/javascripts/ace/mode-csound_score.js +462 -0
- data/vendor/assets/javascripts/ace/mode-csp.js +59 -0
- data/vendor/assets/javascripts/ace/mode-css.js +48 -27
- data/vendor/assets/javascripts/ace/mode-curly.js +162 -133
- data/vendor/assets/javascripts/ace/mode-d.js +12 -5
- data/vendor/assets/javascripts/ace/mode-dart.js +46 -20
- data/vendor/assets/javascripts/ace/mode-diff.js +11 -3
- data/vendor/assets/javascripts/ace/mode-django.js +164 -134
- data/vendor/assets/javascripts/ace/mode-dockerfile.js +12 -4
- data/vendor/assets/javascripts/ace/mode-dot.js +11 -4
- data/vendor/assets/javascripts/ace/mode-drools.js +46 -5
- data/vendor/assets/javascripts/ace/mode-edifact.js +166 -0
- data/vendor/assets/javascripts/ace/mode-eiffel.js +8 -1
- data/vendor/assets/javascripts/ace/mode-ejs.js +832 -298
- data/vendor/assets/javascripts/ace/mode-elixir.js +11 -4
- data/vendor/assets/javascripts/ace/mode-elm.js +10 -3
- data/vendor/assets/javascripts/ace/mode-erlang.js +13 -5
- data/vendor/assets/javascripts/ace/mode-forth.js +12 -5
- data/vendor/assets/javascripts/ace/mode-fortran.js +10 -3
- data/vendor/assets/javascripts/ace/mode-fsharp.js +316 -0
- data/vendor/assets/javascripts/ace/{mode-mipsassembler.js → mode-fsl.js} +91 -28
- data/vendor/assets/javascripts/ace/mode-ftl.js +23 -12
- data/vendor/assets/javascripts/ace/mode-gcode.js +8 -1
- data/vendor/assets/javascripts/ace/mode-gherkin.js +9 -4
- data/vendor/assets/javascripts/ace/mode-gitignore.js +8 -1
- data/vendor/assets/javascripts/ace/mode-glsl.js +24 -8
- data/vendor/assets/javascripts/ace/mode-gobstones.js +267 -99
- data/vendor/assets/javascripts/ace/mode-golang.js +11 -4
- data/vendor/assets/javascripts/ace/mode-graphqlschema.js +11 -3
- data/vendor/assets/javascripts/ace/mode-groovy.js +14 -5
- data/vendor/assets/javascripts/ace/mode-haml.js +442 -116
- data/vendor/assets/javascripts/ace/mode-handlebars.js +162 -133
- data/vendor/assets/javascripts/ace/mode-haskell.js +14 -6
- data/vendor/assets/javascripts/ace/mode-haskell_cabal.js +8 -1
- data/vendor/assets/javascripts/ace/mode-haxe.js +11 -4
- data/vendor/assets/javascripts/ace/mode-hjson.js +13 -6
- data/vendor/assets/javascripts/ace/mode-html.js +162 -133
- data/vendor/assets/javascripts/ace/mode-html_elixir.js +165 -136
- data/vendor/assets/javascripts/ace/mode-html_ruby.js +832 -298
- data/vendor/assets/javascripts/ace/mode-ini.js +8 -1
- data/vendor/assets/javascripts/ace/mode-io.js +14 -12
- data/vendor/assets/javascripts/ace/mode-jack.js +10 -3
- data/vendor/assets/javascripts/ace/mode-jade.js +272 -376
- data/vendor/assets/javascripts/ace/mode-java.js +110 -7
- data/vendor/assets/javascripts/ace/mode-javascript.js +14 -5
- data/vendor/assets/javascripts/ace/mode-json.js +13 -3
- data/vendor/assets/javascripts/ace/mode-json5.js +360 -0
- data/vendor/assets/javascripts/ace/mode-jsoniq.js +25 -12
- data/vendor/assets/javascripts/ace/mode-jsp.js +60 -15
- data/vendor/assets/javascripts/ace/mode-jssm.js +325 -0
- data/vendor/assets/javascripts/ace/mode-jsx.js +11 -4
- data/vendor/assets/javascripts/ace/mode-julia.js +12 -5
- data/vendor/assets/javascripts/ace/mode-kotlin.js +18 -7
- data/vendor/assets/javascripts/ace/mode-latex.js +87 -15
- data/vendor/assets/javascripts/ace/mode-less.js +47 -27
- data/vendor/assets/javascripts/ace/mode-liquid.js +2030 -472
- data/vendor/assets/javascripts/ace/mode-lisp.js +9 -2
- data/vendor/assets/javascripts/ace/mode-livescript.js +10 -2
- data/vendor/assets/javascripts/ace/mode-logiql.js +10 -3
- data/vendor/assets/javascripts/ace/mode-logtalk.js +352 -0
- data/vendor/assets/javascripts/ace/mode-lsl.js +11 -3
- data/vendor/assets/javascripts/ace/mode-lua.js +40 -12
- data/vendor/assets/javascripts/ace/mode-luapage.js +194 -144
- data/vendor/assets/javascripts/ace/mode-lucene.js +106 -22
- data/vendor/assets/javascripts/ace/mode-makefile.js +11 -3
- data/vendor/assets/javascripts/ace/mode-markdown.js +530 -201
- data/vendor/assets/javascripts/ace/mode-mask.js +101 -84
- data/vendor/assets/javascripts/ace/mode-matlab.js +8 -1
- data/vendor/assets/javascripts/ace/mode-maze.js +11 -3
- data/vendor/assets/javascripts/ace/mode-mediawiki.js +592 -0
- data/vendor/assets/javascripts/ace/mode-mel.js +11 -4
- data/vendor/assets/javascripts/ace/mode-mixal.js +122 -0
- data/vendor/assets/javascripts/ace/mode-mushcode.js +9 -2
- data/vendor/assets/javascripts/ace/mode-mysql.js +11 -4
- data/vendor/assets/javascripts/ace/mode-nginx.js +298 -0
- data/vendor/assets/javascripts/ace/mode-nim.js +363 -0
- data/vendor/assets/javascripts/ace/mode-nix.js +23 -7
- data/vendor/assets/javascripts/ace/mode-nsis.js +15 -8
- data/vendor/assets/javascripts/ace/mode-nunjucks.js +2698 -0
- data/vendor/assets/javascripts/ace/mode-objectivec.js +23 -8
- data/vendor/assets/javascripts/ace/mode-ocaml.js +8 -1
- data/vendor/assets/javascripts/ace/mode-pascal.js +92 -67
- data/vendor/assets/javascripts/ace/mode-perl.js +11 -3
- data/vendor/assets/javascripts/ace/mode-perl6.js +593 -0
- data/vendor/assets/javascripts/ace/mode-pgsql.js +314 -71
- data/vendor/assets/javascripts/ace/mode-php.js +1042 -995
- data/vendor/assets/javascripts/ace/mode-php_laravel_blade.js +13104 -0
- data/vendor/assets/javascripts/ace/mode-pig.js +13 -6
- data/vendor/assets/javascripts/ace/mode-plain_text.js +8 -1
- data/vendor/assets/javascripts/ace/mode-powershell.js +10 -3
- data/vendor/assets/javascripts/ace/mode-praat.js +17 -7
- data/vendor/assets/javascripts/ace/mode-prisma.js +489 -0
- data/vendor/assets/javascripts/ace/mode-prolog.js +12 -5
- data/vendor/assets/javascripts/ace/mode-properties.js +8 -1
- data/vendor/assets/javascripts/ace/mode-protobuf.js +23 -7
- data/vendor/assets/javascripts/ace/mode-puppet.js +368 -0
- data/vendor/assets/javascripts/ace/mode-python.js +306 -63
- data/vendor/assets/javascripts/ace/mode-qml.js +381 -0
- data/vendor/assets/javascripts/ace/mode-r.js +15 -4
- data/vendor/assets/javascripts/ace/mode-razor.js +166 -136
- data/vendor/assets/javascripts/ace/mode-rdoc.js +41 -3
- data/vendor/assets/javascripts/ace/mode-red.js +450 -0
- data/vendor/assets/javascripts/ace/mode-redshift.js +360 -0
- data/vendor/assets/javascripts/ace/mode-rhtml.js +162 -133
- data/vendor/assets/javascripts/ace/mode-rst.js +9 -1
- data/vendor/assets/javascripts/ace/mode-ruby.js +678 -166
- data/vendor/assets/javascripts/ace/mode-rust.js +16 -7
- data/vendor/assets/javascripts/ace/mode-sass.js +211 -116
- data/vendor/assets/javascripts/ace/mode-scad.js +11 -4
- data/vendor/assets/javascripts/ace/mode-scala.js +14 -5
- data/vendor/assets/javascripts/ace/mode-scheme.js +9 -2
- data/vendor/assets/javascripts/ace/mode-scss.js +412 -125
- data/vendor/assets/javascripts/ace/mode-sh.js +12 -4
- data/vendor/assets/javascripts/ace/mode-sjs.js +16 -7
- data/vendor/assets/javascripts/ace/mode-slim.js +5240 -0
- data/vendor/assets/javascripts/ace/mode-smarty.js +164 -135
- data/vendor/assets/javascripts/ace/mode-snippets.js +24 -16
- data/vendor/assets/javascripts/ace/mode-soy_template.js +164 -135
- data/vendor/assets/javascripts/ace/mode-space.js +8 -1
- data/vendor/assets/javascripts/ace/mode-sparql.js +13 -6
- data/vendor/assets/javascripts/ace/mode-sql.js +10 -2
- data/vendor/assets/javascripts/ace/mode-sqlserver.js +13 -5
- data/vendor/assets/javascripts/ace/mode-stylus.js +20 -10
- data/vendor/assets/javascripts/ace/mode-svg.js +27 -13
- data/vendor/assets/javascripts/ace/mode-swift.js +21 -8
- data/vendor/assets/javascripts/ace/mode-tcl.js +14 -3
- data/vendor/assets/javascripts/ace/mode-terraform.js +400 -0
- data/vendor/assets/javascripts/ace/mode-tex.js +9 -1
- data/vendor/assets/javascripts/ace/mode-text.js +8 -0
- data/vendor/assets/javascripts/ace/mode-textile.js +9 -1
- data/vendor/assets/javascripts/ace/mode-toml.js +9 -2
- data/vendor/assets/javascripts/ace/mode-tsx.js +28 -31
- data/vendor/assets/javascripts/ace/mode-turtle.js +13 -6
- data/vendor/assets/javascripts/ace/mode-twig.js +163 -134
- data/vendor/assets/javascripts/ace/mode-typescript.js +28 -31
- data/vendor/assets/javascripts/ace/mode-vala.js +14 -6
- data/vendor/assets/javascripts/ace/mode-vbscript.js +453 -17
- data/vendor/assets/javascripts/ace/mode-velocity.js +163 -133
- data/vendor/assets/javascripts/ace/mode-verilog.js +19 -5
- data/vendor/assets/javascripts/ace/mode-vhdl.js +13 -7
- data/vendor/assets/javascripts/ace/mode-visualforce.js +2640 -0
- data/vendor/assets/javascripts/ace/mode-wollok.js +17 -8
- data/vendor/assets/javascripts/ace/mode-xml.js +21 -9
- data/vendor/assets/javascripts/ace/mode-xquery.js +25 -12
- data/vendor/assets/javascripts/ace/mode-yaml.js +59 -18
- data/vendor/assets/javascripts/ace/mode-zeek.js +539 -0
- data/vendor/assets/javascripts/ace/snippets/abap.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/abc.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/actionscript.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/ada.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/alda.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/apache_conf.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/apex.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/applescript.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/aql.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/asciidoc.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/asl.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/assembly_x86.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/autohotkey.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/batchfile.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/c9search.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/c_cpp.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/cirru.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/clojure.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/cobol.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/coffee.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/coldfusion.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/crystal.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/csharp.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/csound_document.js +24 -0
- data/vendor/assets/javascripts/ace/snippets/csound_orchestra.js +61 -0
- data/vendor/assets/javascripts/ace/snippets/csound_score.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/csp.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/css.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/curly.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/d.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/dart.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/diff.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/django.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/dockerfile.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/dot.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/drools.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/edifact.js +254 -0
- data/vendor/assets/javascripts/ace/snippets/eiffel.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/ejs.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/elixir.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/elm.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/erlang.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/forth.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/fortran.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/fsharp.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/fsl.js +14 -0
- data/vendor/assets/javascripts/ace/snippets/ftl.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/gcode.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/gherkin.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/gitignore.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/glsl.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/gobstones.js +1701 -24
- data/vendor/assets/javascripts/ace/snippets/golang.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/graphqlschema.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/groovy.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/haml.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/handlebars.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/haskell.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/haskell_cabal.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/haxe.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/hjson.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/html.js +36 -2
- data/vendor/assets/javascripts/ace/snippets/html_elixir.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/html_ruby.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/ini.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/io.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/jack.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/jade.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/java.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/javascript.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/json.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/json5.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/jsoniq.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/jsp.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/jssm.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/jsx.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/julia.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/kotlin.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/latex.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/less.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/liquid.js +890 -2
- data/vendor/assets/javascripts/ace/snippets/lisp.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/livescript.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/logiql.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/logtalk.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/lsl.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/lua.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/luapage.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/lucene.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/makefile.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/markdown.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/mask.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/matlab.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/maze.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/mediawiki.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/mel.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/mixal.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/mushcode.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/mysql.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/nginx.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/nim.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/nix.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/nsis.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/nunjucks.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/objectivec.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/ocaml.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/pascal.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/perl.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/perl6.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/pgsql.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/php.js +49 -36
- data/vendor/assets/javascripts/ace/snippets/php_laravel_blade.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/pig.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/plain_text.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/powershell.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/praat.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/prisma.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/prolog.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/properties.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/protobuf.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/puppet.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/python.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/qml.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/r.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/razor.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/rdoc.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/red.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/redshift.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/rhtml.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/rst.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/ruby.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/rust.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/sass.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/scad.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/scala.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/scheme.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/scss.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/sh.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/sjs.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/slim.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/smarty.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/snippets.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/soy_template.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/space.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/sparql.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/sql.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/sqlserver.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/stylus.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/svg.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/swift.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/tcl.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/terraform.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/tex.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/text.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/textile.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/toml.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/tsx.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/turtle.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/twig.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/typescript.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/vala.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/vbscript.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/velocity.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/verilog.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/vhdl.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/visualforce.js +9 -0
- data/vendor/assets/javascripts/ace/snippets/wollok.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/xml.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/xquery.js +8 -1
- data/vendor/assets/javascripts/ace/snippets/yaml.js +8 -6
- data/vendor/assets/javascripts/ace/snippets/zeek.js +9 -0
- data/vendor/assets/javascripts/ace/theme-ambiance.js +11 -8
- data/vendor/assets/javascripts/ace/theme-chaos.js +9 -2
- data/vendor/assets/javascripts/ace/theme-chrome.js +8 -1
- data/vendor/assets/javascripts/ace/theme-clouds.js +8 -1
- data/vendor/assets/javascripts/ace/theme-clouds_midnight.js +8 -1
- data/vendor/assets/javascripts/ace/theme-cobalt.js +8 -1
- data/vendor/assets/javascripts/ace/theme-crimson_editor.js +8 -1
- data/vendor/assets/javascripts/ace/theme-dawn.js +8 -1
- data/vendor/assets/javascripts/ace/theme-dracula.js +135 -0
- data/vendor/assets/javascripts/ace/theme-dreamweaver.js +8 -1
- data/vendor/assets/javascripts/ace/theme-eclipse.js +8 -1
- data/vendor/assets/javascripts/ace/theme-github.js +8 -1
- data/vendor/assets/javascripts/ace/theme-gob.js +8 -1
- data/vendor/assets/javascripts/ace/theme-gruvbox.js +8 -1
- data/vendor/assets/javascripts/ace/theme-idle_fingers.js +8 -1
- data/vendor/assets/javascripts/ace/theme-iplastic.js +8 -1
- data/vendor/assets/javascripts/ace/theme-katzenmilch.js +8 -1
- data/vendor/assets/javascripts/ace/theme-kr_theme.js +8 -1
- data/vendor/assets/javascripts/ace/theme-kuroir.js +8 -1
- data/vendor/assets/javascripts/ace/theme-merbivore.js +8 -1
- data/vendor/assets/javascripts/ace/theme-merbivore_soft.js +8 -1
- data/vendor/assets/javascripts/ace/theme-mono_industrial.js +8 -1
- data/vendor/assets/javascripts/ace/theme-monokai.js +8 -1
- data/vendor/assets/javascripts/ace/theme-nord_dark.js +102 -0
- data/vendor/assets/javascripts/ace/theme-pastel_on_dark.js +8 -1
- data/vendor/assets/javascripts/ace/theme-solarized_dark.js +8 -1
- data/vendor/assets/javascripts/ace/theme-solarized_light.js +9 -2
- data/vendor/assets/javascripts/ace/theme-sqlserver.js +8 -1
- data/vendor/assets/javascripts/ace/theme-terminal.js +8 -1
- data/vendor/assets/javascripts/ace/theme-textmate.js +9 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow.js +8 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow_night.js +8 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_blue.js +8 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_bright.js +8 -1
- data/vendor/assets/javascripts/ace/theme-tomorrow_night_eighties.js +8 -1
- data/vendor/assets/javascripts/ace/theme-twilight.js +8 -1
- data/vendor/assets/javascripts/ace/theme-vibrant_ink.js +8 -1
- data/vendor/assets/javascripts/ace/theme-xcode.js +8 -1
- data/vendor/assets/javascripts/ace/worker-base.js +1421 -0
- data/vendor/assets/javascripts/ace/worker-coffee.js +55 -742
- data/vendor/assets/javascripts/ace/worker-css.js +66 -739
- data/vendor/assets/javascripts/ace/worker-html.js +55 -738
- data/vendor/assets/javascripts/ace/worker-javascript.js +6693 -4209
- data/vendor/assets/javascripts/ace/worker-json.js +56 -737
- data/vendor/assets/javascripts/ace/worker-lua.js +56 -738
- data/vendor/assets/javascripts/ace/worker-php.js +897 -1512
- data/vendor/assets/javascripts/ace/worker-xml.js +129 -808
- data/vendor/assets/javascripts/ace/worker-xquery.js +54 -737
- metadata +74 -19
- data/vendor/assets/javascripts/ace/ext-chromevox.js +0 -540
- data/vendor/assets/javascripts/ace/ext-old_ie.js +0 -502
- data/vendor/assets/javascripts/ace/mode-bash.js +0 -247
- data/vendor/assets/javascripts/ace/mode-bro.js +0 -327
- data/vendor/assets/javascripts/ace/mode-lean.js +0 -281
- data/vendor/assets/javascripts/ace/mode-live_script.js +0 -481
- data/vendor/assets/javascripts/ace/mode-mips_assembler.js +0 -235
- data/vendor/assets/javascripts/ace/mode-swig.js +0 -1099
- data/vendor/assets/javascripts/ace/snippets/bro.js +0 -7
- data/vendor/assets/javascripts/ace/snippets/lean.js +0 -7
- data/vendor/assets/javascripts/ace/snippets/live_script.js +0 -7
- data/vendor/assets/javascripts/ace/snippets/mips_assembler.js +0 -7
- data/vendor/assets/javascripts/ace/snippets/mipsassembler.js +0 -7
- data/vendor/assets/javascripts/ace/snippets/swig.js +0 -7
@@ -1,6 +1,6 @@
|
|
1
1
|
define("ace/ext/linking",["require","exports","module","ace/editor","ace/config"], function(require, exports, module) {
|
2
2
|
|
3
|
-
var Editor = require("
|
3
|
+
var Editor = require("../editor").Editor;
|
4
4
|
|
5
5
|
require("../config").defineOptions(Editor.prototype, "editor", {
|
6
6
|
enableLinking: {
|
@@ -15,7 +15,7 @@ require("../config").defineOptions(Editor.prototype, "editor", {
|
|
15
15
|
},
|
16
16
|
value: false
|
17
17
|
}
|
18
|
-
})
|
18
|
+
});
|
19
19
|
|
20
20
|
exports.previousLinkingHover = false;
|
21
21
|
|
@@ -54,8 +54,11 @@ function onClick(e) {
|
|
54
54
|
}
|
55
55
|
}
|
56
56
|
|
57
|
-
});
|
58
|
-
|
59
|
-
|
57
|
+
}); (function() {
|
58
|
+
window.require(["ace/ext/linking"], function(m) {
|
59
|
+
if (typeof module == "object" && typeof exports == "object" && module) {
|
60
|
+
module.exports = m;
|
61
|
+
}
|
62
|
+
});
|
60
63
|
})();
|
61
64
|
|
@@ -39,12 +39,15 @@ var supportedModes = {
|
|
39
39
|
ABC: ["abc"],
|
40
40
|
ActionScript:["as"],
|
41
41
|
ADA: ["ada|adb"],
|
42
|
+
Alda: ["alda"],
|
42
43
|
Apache_Conf: ["^htaccess|^htgroups|^htpasswd|^conf|htaccess|htgroups|htpasswd"],
|
44
|
+
Apex: ["apex|cls|trigger|tgr"],
|
45
|
+
AQL: ["aql"],
|
43
46
|
AsciiDoc: ["asciidoc|adoc"],
|
47
|
+
ASL: ["dsl|asl"],
|
44
48
|
Assembly_x86:["asm|a"],
|
45
49
|
AutoHotKey: ["ahk"],
|
46
50
|
BatchFile: ["bat|cmd"],
|
47
|
-
Bro: ["bro"],
|
48
51
|
C_Cpp: ["cpp|c|cc|cxx|h|hh|hpp|ino"],
|
49
52
|
C9Search: ["c9search_results"],
|
50
53
|
Cirru: ["cirru|cr"],
|
@@ -52,7 +55,11 @@ var supportedModes = {
|
|
52
55
|
Cobol: ["CBL|COB"],
|
53
56
|
coffee: ["coffee|cf|cson|^Cakefile"],
|
54
57
|
ColdFusion: ["cfm"],
|
58
|
+
Crystal: ["cr"],
|
55
59
|
CSharp: ["cs"],
|
60
|
+
Csound_Document: ["csd"],
|
61
|
+
Csound_Orchestra: ["orc"],
|
62
|
+
Csound_Score: ["sco"],
|
56
63
|
CSS: ["css"],
|
57
64
|
Curly: ["curly"],
|
58
65
|
D: ["d|di"],
|
@@ -61,8 +68,7 @@ var supportedModes = {
|
|
61
68
|
Dockerfile: ["^Dockerfile"],
|
62
69
|
Dot: ["dot"],
|
63
70
|
Drools: ["drl"],
|
64
|
-
|
65
|
-
DummySyntax: ["dummy"],
|
71
|
+
Edifact: ["edi"],
|
66
72
|
Eiffel: ["e|ge"],
|
67
73
|
EJS: ["ejs"],
|
68
74
|
Elixir: ["ex|exs"],
|
@@ -70,6 +76,8 @@ var supportedModes = {
|
|
70
76
|
Erlang: ["erl|hrl"],
|
71
77
|
Forth: ["frt|fs|ldr|fth|4th"],
|
72
78
|
Fortran: ["f|f90"],
|
79
|
+
FSharp: ["fsi|fs|ml|mli|fsx|fsscript"],
|
80
|
+
FSL: ["fsl"],
|
73
81
|
FTL: ["ftl"],
|
74
82
|
Gcode: ["gcode"],
|
75
83
|
Gherkin: ["feature"],
|
@@ -82,10 +90,10 @@ var supportedModes = {
|
|
82
90
|
HAML: ["haml"],
|
83
91
|
Handlebars: ["hbs|handlebars|tpl|mustache"],
|
84
92
|
Haskell: ["hs"],
|
85
|
-
Haskell_Cabal:
|
93
|
+
Haskell_Cabal: ["cabal"],
|
86
94
|
haXe: ["hx"],
|
87
95
|
Hjson: ["hjson"],
|
88
|
-
HTML: ["html|htm|xhtml"],
|
96
|
+
HTML: ["html|htm|xhtml|vue|we|wpy"],
|
89
97
|
HTML_Elixir: ["eex|html.eex"],
|
90
98
|
HTML_Ruby: ["erb|rhtml|html.erb"],
|
91
99
|
INI: ["ini|conf|cfg|prefs"],
|
@@ -95,8 +103,10 @@ var supportedModes = {
|
|
95
103
|
Java: ["java"],
|
96
104
|
JavaScript: ["js|jsm|jsx"],
|
97
105
|
JSON: ["json"],
|
106
|
+
JSON5: ["json5"],
|
98
107
|
JSONiq: ["jq"],
|
99
108
|
JSP: ["jsp"],
|
109
|
+
JSSM: ["jssm|jssm_state"],
|
100
110
|
JSX: ["jsx"],
|
101
111
|
Julia: ["jl"],
|
102
112
|
Kotlin: ["kt|kts"],
|
@@ -115,38 +125,50 @@ var supportedModes = {
|
|
115
125
|
Mask: ["mask"],
|
116
126
|
MATLAB: ["matlab"],
|
117
127
|
Maze: ["mz"],
|
128
|
+
MediaWiki: ["wiki|mediawiki"],
|
118
129
|
MEL: ["mel"],
|
130
|
+
MIXAL: ["mixal"],
|
119
131
|
MUSHCode: ["mc|mush"],
|
120
132
|
MySQL: ["mysql"],
|
133
|
+
Nginx: ["nginx|conf"],
|
134
|
+
Nim: ["nim"],
|
121
135
|
Nix: ["nix"],
|
122
136
|
NSIS: ["nsi|nsh"],
|
137
|
+
Nunjucks: ["nunjucks|nunjs|nj|njk"],
|
123
138
|
ObjectiveC: ["m|mm"],
|
124
139
|
OCaml: ["ml|mli"],
|
125
140
|
Pascal: ["pas|p"],
|
126
141
|
Perl: ["pl|pm"],
|
142
|
+
Perl6: ["p6|pl6|pm6"],
|
127
143
|
pgSQL: ["pgsql"],
|
128
|
-
PHP: ["php|phtml|shtml|php3|php4|php5|phps|phpt|aw|ctp|module"],
|
144
|
+
PHP: ["php|inc|phtml|shtml|php3|php4|php5|phps|phpt|aw|ctp|module"],
|
145
|
+
PHP_Laravel_blade: ["blade.php"],
|
129
146
|
Pig: ["pig"],
|
130
147
|
Powershell: ["ps1"],
|
131
148
|
Praat: ["praat|praatscript|psc|proc"],
|
149
|
+
Prisma: ["prisma"],
|
132
150
|
Prolog: ["plg|prolog"],
|
133
151
|
Properties: ["properties"],
|
134
152
|
Protobuf: ["proto"],
|
153
|
+
Puppet: ["epp|pp"],
|
135
154
|
Python: ["py"],
|
155
|
+
QML: ["qml"],
|
136
156
|
R: ["r"],
|
137
157
|
Razor: ["cshtml|asp"],
|
138
158
|
RDoc: ["Rd"],
|
159
|
+
Red: ["red|reds"],
|
139
160
|
RHTML: ["Rhtml"],
|
140
161
|
RST: ["rst"],
|
141
162
|
Ruby: ["rb|ru|gemspec|rake|^Guardfile|^Rakefile|^Gemfile"],
|
142
163
|
Rust: ["rs"],
|
143
164
|
SASS: ["sass"],
|
144
165
|
SCAD: ["scad"],
|
145
|
-
Scala: ["scala"],
|
166
|
+
Scala: ["scala|sbt"],
|
146
167
|
Scheme: ["scm|sm|rkt|oak|scheme"],
|
147
168
|
SCSS: ["scss"],
|
148
169
|
SH: ["sh|bash|^.bashrc"],
|
149
170
|
SJS: ["sjs"],
|
171
|
+
Slim: ["slim|skim"],
|
150
172
|
Smarty: ["smarty|tpl"],
|
151
173
|
snippets: ["snippets"],
|
152
174
|
Soy_Template:["soy"],
|
@@ -157,22 +179,25 @@ var supportedModes = {
|
|
157
179
|
SVG: ["svg"],
|
158
180
|
Swift: ["swift"],
|
159
181
|
Tcl: ["tcl"],
|
182
|
+
Terraform: ["tf", "tfvars", "terragrunt"],
|
160
183
|
Tex: ["tex"],
|
161
184
|
Text: ["txt"],
|
162
185
|
Textile: ["textile"],
|
163
186
|
Toml: ["toml"],
|
164
187
|
TSX: ["tsx"],
|
165
|
-
Twig: ["twig|swig"],
|
188
|
+
Twig: ["latte|twig|swig"],
|
166
189
|
Typescript: ["ts|typescript|str"],
|
167
190
|
Vala: ["vala"],
|
168
191
|
VBScript: ["vbs|vb"],
|
169
192
|
Velocity: ["vm"],
|
170
193
|
Verilog: ["v|vh|sv|svh"],
|
171
194
|
VHDL: ["vhd|vhdl"],
|
195
|
+
Visualforce: ["vfp|component|page"],
|
172
196
|
Wollok: ["wlk|wpgm|wtest"],
|
173
197
|
XML: ["xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl|xaml"],
|
174
198
|
XQuery: ["xq"],
|
175
199
|
YAML: ["yaml|yml"],
|
200
|
+
Zeek: ["zeek|bro"],
|
176
201
|
Django: ["html"]
|
177
202
|
};
|
178
203
|
|
@@ -181,10 +206,16 @@ var nameOverrides = {
|
|
181
206
|
CSharp: "C#",
|
182
207
|
golang: "Go",
|
183
208
|
C_Cpp: "C and C++",
|
209
|
+
Csound_Document: "Csound Document",
|
210
|
+
Csound_Orchestra: "Csound",
|
211
|
+
Csound_Score: "Csound Score",
|
184
212
|
coffee: "CoffeeScript",
|
185
213
|
HTML_Ruby: "HTML (Ruby)",
|
186
214
|
HTML_Elixir: "HTML (Elixir)",
|
187
|
-
FTL: "FreeMarker"
|
215
|
+
FTL: "FreeMarker",
|
216
|
+
PHP_Laravel_blade: "PHP (Blade Template)",
|
217
|
+
Perl6: "Perl 6",
|
218
|
+
AutoHotKey: "AutoHotkey / AutoIt"
|
188
219
|
};
|
189
220
|
var modesByName = {};
|
190
221
|
for (var name in supportedModes) {
|
@@ -202,8 +233,11 @@ module.exports = {
|
|
202
233
|
modesByName: modesByName
|
203
234
|
};
|
204
235
|
|
205
|
-
});
|
206
|
-
|
207
|
-
|
236
|
+
}); (function() {
|
237
|
+
window.require(["ace/ext/modelist"], function(m) {
|
238
|
+
if (typeof module == "object" && typeof exports == "object" && module) {
|
239
|
+
module.exports = m;
|
240
|
+
}
|
241
|
+
});
|
208
242
|
})();
|
209
243
|
|
@@ -0,0 +1,793 @@
|
|
1
|
+
define("ace/ext/menu_tools/overlay_page",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
2
|
+
'use strict';
|
3
|
+
var dom = require("../../lib/dom");
|
4
|
+
var cssText = "#ace_settingsmenu, #kbshortcutmenu {\
|
5
|
+
background-color: #F7F7F7;\
|
6
|
+
color: black;\
|
7
|
+
box-shadow: -5px 4px 5px rgba(126, 126, 126, 0.55);\
|
8
|
+
padding: 1em 0.5em 2em 1em;\
|
9
|
+
overflow: auto;\
|
10
|
+
position: absolute;\
|
11
|
+
margin: 0;\
|
12
|
+
bottom: 0;\
|
13
|
+
right: 0;\
|
14
|
+
top: 0;\
|
15
|
+
z-index: 9991;\
|
16
|
+
cursor: default;\
|
17
|
+
}\
|
18
|
+
.ace_dark #ace_settingsmenu, .ace_dark #kbshortcutmenu {\
|
19
|
+
box-shadow: -20px 10px 25px rgba(126, 126, 126, 0.25);\
|
20
|
+
background-color: rgba(255, 255, 255, 0.6);\
|
21
|
+
color: black;\
|
22
|
+
}\
|
23
|
+
.ace_optionsMenuEntry:hover {\
|
24
|
+
background-color: rgba(100, 100, 100, 0.1);\
|
25
|
+
transition: all 0.3s\
|
26
|
+
}\
|
27
|
+
.ace_closeButton {\
|
28
|
+
background: rgba(245, 146, 146, 0.5);\
|
29
|
+
border: 1px solid #F48A8A;\
|
30
|
+
border-radius: 50%;\
|
31
|
+
padding: 7px;\
|
32
|
+
position: absolute;\
|
33
|
+
right: -8px;\
|
34
|
+
top: -8px;\
|
35
|
+
z-index: 100000;\
|
36
|
+
}\
|
37
|
+
.ace_closeButton{\
|
38
|
+
background: rgba(245, 146, 146, 0.9);\
|
39
|
+
}\
|
40
|
+
.ace_optionsMenuKey {\
|
41
|
+
color: darkslateblue;\
|
42
|
+
font-weight: bold;\
|
43
|
+
}\
|
44
|
+
.ace_optionsMenuCommand {\
|
45
|
+
color: darkcyan;\
|
46
|
+
font-weight: normal;\
|
47
|
+
}\
|
48
|
+
.ace_optionsMenuEntry input, .ace_optionsMenuEntry button {\
|
49
|
+
vertical-align: middle;\
|
50
|
+
}\
|
51
|
+
.ace_optionsMenuEntry button[ace_selected_button=true] {\
|
52
|
+
background: #e7e7e7;\
|
53
|
+
box-shadow: 1px 0px 2px 0px #adadad inset;\
|
54
|
+
border-color: #adadad;\
|
55
|
+
}\
|
56
|
+
.ace_optionsMenuEntry button {\
|
57
|
+
background: white;\
|
58
|
+
border: 1px solid lightgray;\
|
59
|
+
margin: 0px;\
|
60
|
+
}\
|
61
|
+
.ace_optionsMenuEntry button:hover{\
|
62
|
+
background: #f0f0f0;\
|
63
|
+
}";
|
64
|
+
dom.importCssString(cssText);
|
65
|
+
|
66
|
+
module.exports.overlayPage = function overlayPage(editor, contentElement, callback) {
|
67
|
+
var closer = document.createElement('div');
|
68
|
+
var ignoreFocusOut = false;
|
69
|
+
|
70
|
+
function documentEscListener(e) {
|
71
|
+
if (e.keyCode === 27) {
|
72
|
+
close();
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
function close() {
|
77
|
+
if (!closer) return;
|
78
|
+
document.removeEventListener('keydown', documentEscListener);
|
79
|
+
closer.parentNode.removeChild(closer);
|
80
|
+
if (editor) {
|
81
|
+
editor.focus();
|
82
|
+
}
|
83
|
+
closer = null;
|
84
|
+
callback && callback();
|
85
|
+
}
|
86
|
+
function setIgnoreFocusOut(ignore) {
|
87
|
+
ignoreFocusOut = ignore;
|
88
|
+
if (ignore) {
|
89
|
+
closer.style.pointerEvents = "none";
|
90
|
+
contentElement.style.pointerEvents = "auto";
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
closer.style.cssText = 'margin: 0; padding: 0; ' +
|
95
|
+
'position: fixed; top:0; bottom:0; left:0; right:0;' +
|
96
|
+
'z-index: 9990; ' +
|
97
|
+
(editor ? 'background-color: rgba(0, 0, 0, 0.3);' : '');
|
98
|
+
closer.addEventListener('click', function(e) {
|
99
|
+
if (!ignoreFocusOut) {
|
100
|
+
close();
|
101
|
+
}
|
102
|
+
});
|
103
|
+
document.addEventListener('keydown', documentEscListener);
|
104
|
+
|
105
|
+
contentElement.addEventListener('click', function (e) {
|
106
|
+
e.stopPropagation();
|
107
|
+
});
|
108
|
+
|
109
|
+
closer.appendChild(contentElement);
|
110
|
+
document.body.appendChild(closer);
|
111
|
+
if (editor) {
|
112
|
+
editor.blur();
|
113
|
+
}
|
114
|
+
return {
|
115
|
+
close: close,
|
116
|
+
setIgnoreFocusOut: setIgnoreFocusOut
|
117
|
+
};
|
118
|
+
};
|
119
|
+
|
120
|
+
});
|
121
|
+
|
122
|
+
define("ace/ext/modelist",["require","exports","module"], function(require, exports, module) {
|
123
|
+
"use strict";
|
124
|
+
|
125
|
+
var modes = [];
|
126
|
+
function getModeForPath(path) {
|
127
|
+
var mode = modesByName.text;
|
128
|
+
var fileName = path.split(/[\/\\]/).pop();
|
129
|
+
for (var i = 0; i < modes.length; i++) {
|
130
|
+
if (modes[i].supportsFile(fileName)) {
|
131
|
+
mode = modes[i];
|
132
|
+
break;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
return mode;
|
136
|
+
}
|
137
|
+
|
138
|
+
var Mode = function(name, caption, extensions) {
|
139
|
+
this.name = name;
|
140
|
+
this.caption = caption;
|
141
|
+
this.mode = "ace/mode/" + name;
|
142
|
+
this.extensions = extensions;
|
143
|
+
var re;
|
144
|
+
if (/\^/.test(extensions)) {
|
145
|
+
re = extensions.replace(/\|(\^)?/g, function(a, b){
|
146
|
+
return "$|" + (b ? "^" : "^.*\\.");
|
147
|
+
}) + "$";
|
148
|
+
} else {
|
149
|
+
re = "^.*\\.(" + extensions + ")$";
|
150
|
+
}
|
151
|
+
|
152
|
+
this.extRe = new RegExp(re, "gi");
|
153
|
+
};
|
154
|
+
|
155
|
+
Mode.prototype.supportsFile = function(filename) {
|
156
|
+
return filename.match(this.extRe);
|
157
|
+
};
|
158
|
+
var supportedModes = {
|
159
|
+
ABAP: ["abap"],
|
160
|
+
ABC: ["abc"],
|
161
|
+
ActionScript:["as"],
|
162
|
+
ADA: ["ada|adb"],
|
163
|
+
Alda: ["alda"],
|
164
|
+
Apache_Conf: ["^htaccess|^htgroups|^htpasswd|^conf|htaccess|htgroups|htpasswd"],
|
165
|
+
Apex: ["apex|cls|trigger|tgr"],
|
166
|
+
AQL: ["aql"],
|
167
|
+
AsciiDoc: ["asciidoc|adoc"],
|
168
|
+
ASL: ["dsl|asl"],
|
169
|
+
Assembly_x86:["asm|a"],
|
170
|
+
AutoHotKey: ["ahk"],
|
171
|
+
BatchFile: ["bat|cmd"],
|
172
|
+
C_Cpp: ["cpp|c|cc|cxx|h|hh|hpp|ino"],
|
173
|
+
C9Search: ["c9search_results"],
|
174
|
+
Cirru: ["cirru|cr"],
|
175
|
+
Clojure: ["clj|cljs"],
|
176
|
+
Cobol: ["CBL|COB"],
|
177
|
+
coffee: ["coffee|cf|cson|^Cakefile"],
|
178
|
+
ColdFusion: ["cfm"],
|
179
|
+
Crystal: ["cr"],
|
180
|
+
CSharp: ["cs"],
|
181
|
+
Csound_Document: ["csd"],
|
182
|
+
Csound_Orchestra: ["orc"],
|
183
|
+
Csound_Score: ["sco"],
|
184
|
+
CSS: ["css"],
|
185
|
+
Curly: ["curly"],
|
186
|
+
D: ["d|di"],
|
187
|
+
Dart: ["dart"],
|
188
|
+
Diff: ["diff|patch"],
|
189
|
+
Dockerfile: ["^Dockerfile"],
|
190
|
+
Dot: ["dot"],
|
191
|
+
Drools: ["drl"],
|
192
|
+
Edifact: ["edi"],
|
193
|
+
Eiffel: ["e|ge"],
|
194
|
+
EJS: ["ejs"],
|
195
|
+
Elixir: ["ex|exs"],
|
196
|
+
Elm: ["elm"],
|
197
|
+
Erlang: ["erl|hrl"],
|
198
|
+
Forth: ["frt|fs|ldr|fth|4th"],
|
199
|
+
Fortran: ["f|f90"],
|
200
|
+
FSharp: ["fsi|fs|ml|mli|fsx|fsscript"],
|
201
|
+
FSL: ["fsl"],
|
202
|
+
FTL: ["ftl"],
|
203
|
+
Gcode: ["gcode"],
|
204
|
+
Gherkin: ["feature"],
|
205
|
+
Gitignore: ["^.gitignore"],
|
206
|
+
Glsl: ["glsl|frag|vert"],
|
207
|
+
Gobstones: ["gbs"],
|
208
|
+
golang: ["go"],
|
209
|
+
GraphQLSchema: ["gql"],
|
210
|
+
Groovy: ["groovy"],
|
211
|
+
HAML: ["haml"],
|
212
|
+
Handlebars: ["hbs|handlebars|tpl|mustache"],
|
213
|
+
Haskell: ["hs"],
|
214
|
+
Haskell_Cabal: ["cabal"],
|
215
|
+
haXe: ["hx"],
|
216
|
+
Hjson: ["hjson"],
|
217
|
+
HTML: ["html|htm|xhtml|vue|we|wpy"],
|
218
|
+
HTML_Elixir: ["eex|html.eex"],
|
219
|
+
HTML_Ruby: ["erb|rhtml|html.erb"],
|
220
|
+
INI: ["ini|conf|cfg|prefs"],
|
221
|
+
Io: ["io"],
|
222
|
+
Jack: ["jack"],
|
223
|
+
Jade: ["jade|pug"],
|
224
|
+
Java: ["java"],
|
225
|
+
JavaScript: ["js|jsm|jsx"],
|
226
|
+
JSON: ["json"],
|
227
|
+
JSON5: ["json5"],
|
228
|
+
JSONiq: ["jq"],
|
229
|
+
JSP: ["jsp"],
|
230
|
+
JSSM: ["jssm|jssm_state"],
|
231
|
+
JSX: ["jsx"],
|
232
|
+
Julia: ["jl"],
|
233
|
+
Kotlin: ["kt|kts"],
|
234
|
+
LaTeX: ["tex|latex|ltx|bib"],
|
235
|
+
LESS: ["less"],
|
236
|
+
Liquid: ["liquid"],
|
237
|
+
Lisp: ["lisp"],
|
238
|
+
LiveScript: ["ls"],
|
239
|
+
LogiQL: ["logic|lql"],
|
240
|
+
LSL: ["lsl"],
|
241
|
+
Lua: ["lua"],
|
242
|
+
LuaPage: ["lp"],
|
243
|
+
Lucene: ["lucene"],
|
244
|
+
Makefile: ["^Makefile|^GNUmakefile|^makefile|^OCamlMakefile|make"],
|
245
|
+
Markdown: ["md|markdown"],
|
246
|
+
Mask: ["mask"],
|
247
|
+
MATLAB: ["matlab"],
|
248
|
+
Maze: ["mz"],
|
249
|
+
MediaWiki: ["wiki|mediawiki"],
|
250
|
+
MEL: ["mel"],
|
251
|
+
MIXAL: ["mixal"],
|
252
|
+
MUSHCode: ["mc|mush"],
|
253
|
+
MySQL: ["mysql"],
|
254
|
+
Nginx: ["nginx|conf"],
|
255
|
+
Nim: ["nim"],
|
256
|
+
Nix: ["nix"],
|
257
|
+
NSIS: ["nsi|nsh"],
|
258
|
+
Nunjucks: ["nunjucks|nunjs|nj|njk"],
|
259
|
+
ObjectiveC: ["m|mm"],
|
260
|
+
OCaml: ["ml|mli"],
|
261
|
+
Pascal: ["pas|p"],
|
262
|
+
Perl: ["pl|pm"],
|
263
|
+
Perl6: ["p6|pl6|pm6"],
|
264
|
+
pgSQL: ["pgsql"],
|
265
|
+
PHP: ["php|inc|phtml|shtml|php3|php4|php5|phps|phpt|aw|ctp|module"],
|
266
|
+
PHP_Laravel_blade: ["blade.php"],
|
267
|
+
Pig: ["pig"],
|
268
|
+
Powershell: ["ps1"],
|
269
|
+
Praat: ["praat|praatscript|psc|proc"],
|
270
|
+
Prisma: ["prisma"],
|
271
|
+
Prolog: ["plg|prolog"],
|
272
|
+
Properties: ["properties"],
|
273
|
+
Protobuf: ["proto"],
|
274
|
+
Puppet: ["epp|pp"],
|
275
|
+
Python: ["py"],
|
276
|
+
QML: ["qml"],
|
277
|
+
R: ["r"],
|
278
|
+
Razor: ["cshtml|asp"],
|
279
|
+
RDoc: ["Rd"],
|
280
|
+
Red: ["red|reds"],
|
281
|
+
RHTML: ["Rhtml"],
|
282
|
+
RST: ["rst"],
|
283
|
+
Ruby: ["rb|ru|gemspec|rake|^Guardfile|^Rakefile|^Gemfile"],
|
284
|
+
Rust: ["rs"],
|
285
|
+
SASS: ["sass"],
|
286
|
+
SCAD: ["scad"],
|
287
|
+
Scala: ["scala|sbt"],
|
288
|
+
Scheme: ["scm|sm|rkt|oak|scheme"],
|
289
|
+
SCSS: ["scss"],
|
290
|
+
SH: ["sh|bash|^.bashrc"],
|
291
|
+
SJS: ["sjs"],
|
292
|
+
Slim: ["slim|skim"],
|
293
|
+
Smarty: ["smarty|tpl"],
|
294
|
+
snippets: ["snippets"],
|
295
|
+
Soy_Template:["soy"],
|
296
|
+
Space: ["space"],
|
297
|
+
SQL: ["sql"],
|
298
|
+
SQLServer: ["sqlserver"],
|
299
|
+
Stylus: ["styl|stylus"],
|
300
|
+
SVG: ["svg"],
|
301
|
+
Swift: ["swift"],
|
302
|
+
Tcl: ["tcl"],
|
303
|
+
Terraform: ["tf", "tfvars", "terragrunt"],
|
304
|
+
Tex: ["tex"],
|
305
|
+
Text: ["txt"],
|
306
|
+
Textile: ["textile"],
|
307
|
+
Toml: ["toml"],
|
308
|
+
TSX: ["tsx"],
|
309
|
+
Twig: ["latte|twig|swig"],
|
310
|
+
Typescript: ["ts|typescript|str"],
|
311
|
+
Vala: ["vala"],
|
312
|
+
VBScript: ["vbs|vb"],
|
313
|
+
Velocity: ["vm"],
|
314
|
+
Verilog: ["v|vh|sv|svh"],
|
315
|
+
VHDL: ["vhd|vhdl"],
|
316
|
+
Visualforce: ["vfp|component|page"],
|
317
|
+
Wollok: ["wlk|wpgm|wtest"],
|
318
|
+
XML: ["xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl|xaml"],
|
319
|
+
XQuery: ["xq"],
|
320
|
+
YAML: ["yaml|yml"],
|
321
|
+
Zeek: ["zeek|bro"],
|
322
|
+
Django: ["html"]
|
323
|
+
};
|
324
|
+
|
325
|
+
var nameOverrides = {
|
326
|
+
ObjectiveC: "Objective-C",
|
327
|
+
CSharp: "C#",
|
328
|
+
golang: "Go",
|
329
|
+
C_Cpp: "C and C++",
|
330
|
+
Csound_Document: "Csound Document",
|
331
|
+
Csound_Orchestra: "Csound",
|
332
|
+
Csound_Score: "Csound Score",
|
333
|
+
coffee: "CoffeeScript",
|
334
|
+
HTML_Ruby: "HTML (Ruby)",
|
335
|
+
HTML_Elixir: "HTML (Elixir)",
|
336
|
+
FTL: "FreeMarker",
|
337
|
+
PHP_Laravel_blade: "PHP (Blade Template)",
|
338
|
+
Perl6: "Perl 6",
|
339
|
+
AutoHotKey: "AutoHotkey / AutoIt"
|
340
|
+
};
|
341
|
+
var modesByName = {};
|
342
|
+
for (var name in supportedModes) {
|
343
|
+
var data = supportedModes[name];
|
344
|
+
var displayName = (nameOverrides[name] || name).replace(/_/g, " ");
|
345
|
+
var filename = name.toLowerCase();
|
346
|
+
var mode = new Mode(filename, displayName, data[0]);
|
347
|
+
modesByName[filename] = mode;
|
348
|
+
modes.push(mode);
|
349
|
+
}
|
350
|
+
|
351
|
+
module.exports = {
|
352
|
+
getModeForPath: getModeForPath,
|
353
|
+
modes: modes,
|
354
|
+
modesByName: modesByName
|
355
|
+
};
|
356
|
+
|
357
|
+
});
|
358
|
+
|
359
|
+
define("ace/ext/themelist",["require","exports","module"], function(require, exports, module) {
|
360
|
+
"use strict";
|
361
|
+
|
362
|
+
var themeData = [
|
363
|
+
["Chrome" ],
|
364
|
+
["Clouds" ],
|
365
|
+
["Crimson Editor" ],
|
366
|
+
["Dawn" ],
|
367
|
+
["Dreamweaver" ],
|
368
|
+
["Eclipse" ],
|
369
|
+
["GitHub" ],
|
370
|
+
["IPlastic" ],
|
371
|
+
["Solarized Light"],
|
372
|
+
["TextMate" ],
|
373
|
+
["Tomorrow" ],
|
374
|
+
["Xcode" ],
|
375
|
+
["Kuroir"],
|
376
|
+
["KatzenMilch"],
|
377
|
+
["SQL Server" ,"sqlserver" , "light"],
|
378
|
+
["Ambiance" ,"ambiance" , "dark"],
|
379
|
+
["Chaos" ,"chaos" , "dark"],
|
380
|
+
["Clouds Midnight" ,"clouds_midnight" , "dark"],
|
381
|
+
["Dracula" ,"" , "dark"],
|
382
|
+
["Cobalt" ,"cobalt" , "dark"],
|
383
|
+
["Gruvbox" ,"gruvbox" , "dark"],
|
384
|
+
["Green on Black" ,"gob" , "dark"],
|
385
|
+
["idle Fingers" ,"idle_fingers" , "dark"],
|
386
|
+
["krTheme" ,"kr_theme" , "dark"],
|
387
|
+
["Merbivore" ,"merbivore" , "dark"],
|
388
|
+
["Merbivore Soft" ,"merbivore_soft" , "dark"],
|
389
|
+
["Mono Industrial" ,"mono_industrial" , "dark"],
|
390
|
+
["Monokai" ,"monokai" , "dark"],
|
391
|
+
["Nord Dark" ,"nord_dark" , "dark"],
|
392
|
+
["Pastel on dark" ,"pastel_on_dark" , "dark"],
|
393
|
+
["Solarized Dark" ,"solarized_dark" , "dark"],
|
394
|
+
["Terminal" ,"terminal" , "dark"],
|
395
|
+
["Tomorrow Night" ,"tomorrow_night" , "dark"],
|
396
|
+
["Tomorrow Night Blue" ,"tomorrow_night_blue" , "dark"],
|
397
|
+
["Tomorrow Night Bright","tomorrow_night_bright" , "dark"],
|
398
|
+
["Tomorrow Night 80s" ,"tomorrow_night_eighties" , "dark"],
|
399
|
+
["Twilight" ,"twilight" , "dark"],
|
400
|
+
["Vibrant Ink" ,"vibrant_ink" , "dark"]
|
401
|
+
];
|
402
|
+
|
403
|
+
|
404
|
+
exports.themesByName = {};
|
405
|
+
exports.themes = themeData.map(function(data) {
|
406
|
+
var name = data[1] || data[0].replace(/ /g, "_").toLowerCase();
|
407
|
+
var theme = {
|
408
|
+
caption: data[0],
|
409
|
+
theme: "ace/theme/" + name,
|
410
|
+
isDark: data[2] == "dark",
|
411
|
+
name: name
|
412
|
+
};
|
413
|
+
exports.themesByName[name] = theme;
|
414
|
+
return theme;
|
415
|
+
});
|
416
|
+
|
417
|
+
});
|
418
|
+
|
419
|
+
define("ace/ext/options",["require","exports","module","ace/ext/menu_tools/overlay_page","ace/lib/dom","ace/lib/oop","ace/config","ace/lib/event_emitter","ace/ext/modelist","ace/ext/themelist"], function(require, exports, module) {
|
420
|
+
"use strict";
|
421
|
+
|
422
|
+
require("./menu_tools/overlay_page");
|
423
|
+
|
424
|
+
var dom = require("../lib/dom");
|
425
|
+
var oop = require("../lib/oop");
|
426
|
+
var config = require("../config");
|
427
|
+
var EventEmitter = require("../lib/event_emitter").EventEmitter;
|
428
|
+
var buildDom = dom.buildDom;
|
429
|
+
|
430
|
+
var modelist = require("./modelist");
|
431
|
+
var themelist = require("./themelist");
|
432
|
+
|
433
|
+
var themes = { Bright: [], Dark: [] };
|
434
|
+
themelist.themes.forEach(function(x) {
|
435
|
+
themes[x.isDark ? "Dark" : "Bright"].push({ caption: x.caption, value: x.theme });
|
436
|
+
});
|
437
|
+
|
438
|
+
var modes = modelist.modes.map(function(x){
|
439
|
+
return { caption: x.caption, value: x.mode };
|
440
|
+
});
|
441
|
+
|
442
|
+
|
443
|
+
var optionGroups = {
|
444
|
+
Main: {
|
445
|
+
Mode: {
|
446
|
+
path: "mode",
|
447
|
+
type: "select",
|
448
|
+
items: modes
|
449
|
+
},
|
450
|
+
Theme: {
|
451
|
+
path: "theme",
|
452
|
+
type: "select",
|
453
|
+
items: themes
|
454
|
+
},
|
455
|
+
"Keybinding": {
|
456
|
+
type: "buttonBar",
|
457
|
+
path: "keyboardHandler",
|
458
|
+
items: [
|
459
|
+
{ caption : "Ace", value : null },
|
460
|
+
{ caption : "Vim", value : "ace/keyboard/vim" },
|
461
|
+
{ caption : "Emacs", value : "ace/keyboard/emacs" },
|
462
|
+
{ caption : "Sublime", value : "ace/keyboard/sublime" },
|
463
|
+
{ caption : "VSCode", value : "ace/keyboard/vscode" }
|
464
|
+
]
|
465
|
+
},
|
466
|
+
"Font Size": {
|
467
|
+
path: "fontSize",
|
468
|
+
type: "number",
|
469
|
+
defaultValue: 12,
|
470
|
+
defaults: [
|
471
|
+
{caption: "12px", value: 12},
|
472
|
+
{caption: "24px", value: 24}
|
473
|
+
]
|
474
|
+
},
|
475
|
+
"Soft Wrap": {
|
476
|
+
type: "buttonBar",
|
477
|
+
path: "wrap",
|
478
|
+
items: [
|
479
|
+
{ caption : "Off", value : "off" },
|
480
|
+
{ caption : "View", value : "free" },
|
481
|
+
{ caption : "margin", value : "printMargin" },
|
482
|
+
{ caption : "40", value : "40" }
|
483
|
+
]
|
484
|
+
},
|
485
|
+
"Cursor Style": {
|
486
|
+
path: "cursorStyle",
|
487
|
+
items: [
|
488
|
+
{ caption : "Ace", value : "ace" },
|
489
|
+
{ caption : "Slim", value : "slim" },
|
490
|
+
{ caption : "Smooth", value : "smooth" },
|
491
|
+
{ caption : "Smooth And Slim", value : "smooth slim" },
|
492
|
+
{ caption : "Wide", value : "wide" }
|
493
|
+
]
|
494
|
+
},
|
495
|
+
"Folding": {
|
496
|
+
path: "foldStyle",
|
497
|
+
items: [
|
498
|
+
{ caption : "Manual", value : "manual" },
|
499
|
+
{ caption : "Mark begin", value : "markbegin" },
|
500
|
+
{ caption : "Mark begin and end", value : "markbeginend" }
|
501
|
+
]
|
502
|
+
},
|
503
|
+
"Soft Tabs": [{
|
504
|
+
path: "useSoftTabs"
|
505
|
+
}, {
|
506
|
+
ariaLabel: "Tab Size",
|
507
|
+
path: "tabSize",
|
508
|
+
type: "number",
|
509
|
+
values: [2, 3, 4, 8, 16]
|
510
|
+
}],
|
511
|
+
"Overscroll": {
|
512
|
+
type: "buttonBar",
|
513
|
+
path: "scrollPastEnd",
|
514
|
+
items: [
|
515
|
+
{ caption : "None", value : 0 },
|
516
|
+
{ caption : "Half", value : 0.5 },
|
517
|
+
{ caption : "Full", value : 1 }
|
518
|
+
]
|
519
|
+
}
|
520
|
+
},
|
521
|
+
More: {
|
522
|
+
"Atomic soft tabs": {
|
523
|
+
path: "navigateWithinSoftTabs"
|
524
|
+
},
|
525
|
+
"Enable Behaviours": {
|
526
|
+
path: "behavioursEnabled"
|
527
|
+
},
|
528
|
+
"Wrap with quotes": {
|
529
|
+
path: "wrapBehavioursEnabled"
|
530
|
+
},
|
531
|
+
"Enable Auto Indent": {
|
532
|
+
path: "enableAutoIndent"
|
533
|
+
},
|
534
|
+
"Full Line Selection": {
|
535
|
+
type: "checkbox",
|
536
|
+
values: "text|line",
|
537
|
+
path: "selectionStyle"
|
538
|
+
},
|
539
|
+
"Highlight Active Line": {
|
540
|
+
path: "highlightActiveLine"
|
541
|
+
},
|
542
|
+
"Show Invisibles": {
|
543
|
+
path: "showInvisibles"
|
544
|
+
},
|
545
|
+
"Show Indent Guides": {
|
546
|
+
path: "displayIndentGuides"
|
547
|
+
},
|
548
|
+
"Persistent HScrollbar": {
|
549
|
+
path: "hScrollBarAlwaysVisible"
|
550
|
+
},
|
551
|
+
"Persistent VScrollbar": {
|
552
|
+
path: "vScrollBarAlwaysVisible"
|
553
|
+
},
|
554
|
+
"Animate scrolling": {
|
555
|
+
path: "animatedScroll"
|
556
|
+
},
|
557
|
+
"Show Gutter": {
|
558
|
+
path: "showGutter"
|
559
|
+
},
|
560
|
+
"Show Line Numbers": {
|
561
|
+
path: "showLineNumbers"
|
562
|
+
},
|
563
|
+
"Relative Line Numbers": {
|
564
|
+
path: "relativeLineNumbers"
|
565
|
+
},
|
566
|
+
"Fixed Gutter Width": {
|
567
|
+
path: "fixedWidthGutter"
|
568
|
+
},
|
569
|
+
"Show Print Margin": [{
|
570
|
+
path: "showPrintMargin"
|
571
|
+
}, {
|
572
|
+
ariaLabel: "Print Margin",
|
573
|
+
type: "number",
|
574
|
+
path: "printMarginColumn"
|
575
|
+
}],
|
576
|
+
"Indented Soft Wrap": {
|
577
|
+
path: "indentedSoftWrap"
|
578
|
+
},
|
579
|
+
"Highlight selected word": {
|
580
|
+
path: "highlightSelectedWord"
|
581
|
+
},
|
582
|
+
"Fade Fold Widgets": {
|
583
|
+
path: "fadeFoldWidgets"
|
584
|
+
},
|
585
|
+
"Use textarea for IME": {
|
586
|
+
path: "useTextareaForIME"
|
587
|
+
},
|
588
|
+
"Merge Undo Deltas": {
|
589
|
+
path: "mergeUndoDeltas",
|
590
|
+
items: [
|
591
|
+
{ caption : "Always", value : "always" },
|
592
|
+
{ caption : "Never", value : "false" },
|
593
|
+
{ caption : "Timed", value : "true" }
|
594
|
+
]
|
595
|
+
},
|
596
|
+
"Elastic Tabstops": {
|
597
|
+
path: "useElasticTabstops"
|
598
|
+
},
|
599
|
+
"Incremental Search": {
|
600
|
+
path: "useIncrementalSearch"
|
601
|
+
},
|
602
|
+
"Read-only": {
|
603
|
+
path: "readOnly"
|
604
|
+
},
|
605
|
+
"Copy without selection": {
|
606
|
+
path: "copyWithEmptySelection"
|
607
|
+
},
|
608
|
+
"Live Autocompletion": {
|
609
|
+
path: "enableLiveAutocompletion"
|
610
|
+
}
|
611
|
+
}
|
612
|
+
};
|
613
|
+
|
614
|
+
|
615
|
+
var OptionPanel = function(editor, element) {
|
616
|
+
this.editor = editor;
|
617
|
+
this.container = element || document.createElement("div");
|
618
|
+
this.groups = [];
|
619
|
+
this.options = {};
|
620
|
+
};
|
621
|
+
|
622
|
+
(function() {
|
623
|
+
|
624
|
+
oop.implement(this, EventEmitter);
|
625
|
+
|
626
|
+
this.add = function(config) {
|
627
|
+
if (config.Main)
|
628
|
+
oop.mixin(optionGroups.Main, config.Main);
|
629
|
+
if (config.More)
|
630
|
+
oop.mixin(optionGroups.More, config.More);
|
631
|
+
};
|
632
|
+
|
633
|
+
this.render = function() {
|
634
|
+
this.container.innerHTML = "";
|
635
|
+
buildDom(["table", {role: "presentation", id: "controls"},
|
636
|
+
this.renderOptionGroup(optionGroups.Main),
|
637
|
+
["tr", null, ["td", {colspan: 2},
|
638
|
+
["table", {role: "presentation", id: "more-controls"},
|
639
|
+
this.renderOptionGroup(optionGroups.More)
|
640
|
+
]
|
641
|
+
]],
|
642
|
+
["tr", null, ["td", {colspan: 2}, "version " + config.version]]
|
643
|
+
], this.container);
|
644
|
+
};
|
645
|
+
|
646
|
+
this.renderOptionGroup = function(group) {
|
647
|
+
return Object.keys(group).map(function(key, i) {
|
648
|
+
var item = group[key];
|
649
|
+
if (!item.position)
|
650
|
+
item.position = i / 10000;
|
651
|
+
if (!item.label)
|
652
|
+
item.label = key;
|
653
|
+
return item;
|
654
|
+
}).sort(function(a, b) {
|
655
|
+
return a.position - b.position;
|
656
|
+
}).map(function(item) {
|
657
|
+
return this.renderOption(item.label, item);
|
658
|
+
}, this);
|
659
|
+
};
|
660
|
+
|
661
|
+
this.renderOptionControl = function(key, option) {
|
662
|
+
var self = this;
|
663
|
+
if (Array.isArray(option)) {
|
664
|
+
return option.map(function(x) {
|
665
|
+
return self.renderOptionControl(key, x);
|
666
|
+
});
|
667
|
+
}
|
668
|
+
var control;
|
669
|
+
|
670
|
+
var value = self.getOption(option);
|
671
|
+
|
672
|
+
if (option.values && option.type != "checkbox") {
|
673
|
+
if (typeof option.values == "string")
|
674
|
+
option.values = option.values.split("|");
|
675
|
+
option.items = option.values.map(function(v) {
|
676
|
+
return { value: v, name: v };
|
677
|
+
});
|
678
|
+
}
|
679
|
+
|
680
|
+
if (option.type == "buttonBar") {
|
681
|
+
control = ["div", {role: "group", "aria-labelledby": option.path + "-label"}, option.items.map(function(item) {
|
682
|
+
return ["button", {
|
683
|
+
value: item.value,
|
684
|
+
ace_selected_button: value == item.value,
|
685
|
+
'aria-pressed': value == item.value,
|
686
|
+
onclick: function() {
|
687
|
+
self.setOption(option, item.value);
|
688
|
+
var nodes = this.parentNode.querySelectorAll("[ace_selected_button]");
|
689
|
+
for (var i = 0; i < nodes.length; i++) {
|
690
|
+
nodes[i].removeAttribute("ace_selected_button");
|
691
|
+
nodes[i].setAttribute("aria-pressed", false);
|
692
|
+
}
|
693
|
+
this.setAttribute("ace_selected_button", true);
|
694
|
+
this.setAttribute("aria-pressed", true);
|
695
|
+
}
|
696
|
+
}, item.desc || item.caption || item.name];
|
697
|
+
})];
|
698
|
+
} else if (option.type == "number") {
|
699
|
+
control = ["input", {type: "number", value: value || option.defaultValue, style:"width:3em", oninput: function() {
|
700
|
+
self.setOption(option, parseInt(this.value));
|
701
|
+
}}];
|
702
|
+
if (option.ariaLabel) {
|
703
|
+
control[1]["aria-label"] = option.ariaLabel;
|
704
|
+
} else {
|
705
|
+
control[1].id = key;
|
706
|
+
}
|
707
|
+
if (option.defaults) {
|
708
|
+
control = [control, option.defaults.map(function(item) {
|
709
|
+
return ["button", {onclick: function() {
|
710
|
+
var input = this.parentNode.firstChild;
|
711
|
+
input.value = item.value;
|
712
|
+
input.oninput();
|
713
|
+
}}, item.caption];
|
714
|
+
})];
|
715
|
+
}
|
716
|
+
} else if (option.items) {
|
717
|
+
var buildItems = function(items) {
|
718
|
+
return items.map(function(item) {
|
719
|
+
return ["option", { value: item.value || item.name }, item.desc || item.caption || item.name];
|
720
|
+
});
|
721
|
+
};
|
722
|
+
|
723
|
+
var items = Array.isArray(option.items)
|
724
|
+
? buildItems(option.items)
|
725
|
+
: Object.keys(option.items).map(function(key) {
|
726
|
+
return ["optgroup", {"label": key}, buildItems(option.items[key])];
|
727
|
+
});
|
728
|
+
control = ["select", { id: key, value: value, onchange: function() {
|
729
|
+
self.setOption(option, this.value);
|
730
|
+
} }, items];
|
731
|
+
} else {
|
732
|
+
if (typeof option.values == "string")
|
733
|
+
option.values = option.values.split("|");
|
734
|
+
if (option.values) value = value == option.values[1];
|
735
|
+
control = ["input", { type: "checkbox", id: key, checked: value || null, onchange: function() {
|
736
|
+
var value = this.checked;
|
737
|
+
if (option.values) value = option.values[value ? 1 : 0];
|
738
|
+
self.setOption(option, value);
|
739
|
+
}}];
|
740
|
+
if (option.type == "checkedNumber") {
|
741
|
+
control = [control, []];
|
742
|
+
}
|
743
|
+
}
|
744
|
+
return control;
|
745
|
+
};
|
746
|
+
|
747
|
+
this.renderOption = function(key, option) {
|
748
|
+
if (option.path && !option.onchange && !this.editor.$options[option.path])
|
749
|
+
return;
|
750
|
+
var path = Array.isArray(option) ? option[0].path : option.path;
|
751
|
+
this.options[path] = option;
|
752
|
+
var safeKey = "-" + path;
|
753
|
+
var safeId = path + "-label";
|
754
|
+
var control = this.renderOptionControl(safeKey, option);
|
755
|
+
return ["tr", {class: "ace_optionsMenuEntry"}, ["td",
|
756
|
+
["label", {for: safeKey, id: safeId}, key]
|
757
|
+
], ["td", control]];
|
758
|
+
};
|
759
|
+
|
760
|
+
this.setOption = function(option, value) {
|
761
|
+
if (typeof option == "string")
|
762
|
+
option = this.options[option];
|
763
|
+
if (value == "false") value = false;
|
764
|
+
if (value == "true") value = true;
|
765
|
+
if (value == "null") value = null;
|
766
|
+
if (value == "undefined") value = undefined;
|
767
|
+
if (typeof value == "string" && parseFloat(value).toString() == value)
|
768
|
+
value = parseFloat(value);
|
769
|
+
if (option.onchange)
|
770
|
+
option.onchange(value);
|
771
|
+
else if (option.path)
|
772
|
+
this.editor.setOption(option.path, value);
|
773
|
+
this._signal("setOption", {name: option.path, value: value});
|
774
|
+
};
|
775
|
+
|
776
|
+
this.getOption = function(option) {
|
777
|
+
if (option.getValue)
|
778
|
+
return option.getValue();
|
779
|
+
return this.editor.getOption(option.path);
|
780
|
+
};
|
781
|
+
|
782
|
+
}).call(OptionPanel.prototype);
|
783
|
+
|
784
|
+
exports.OptionPanel = OptionPanel;
|
785
|
+
|
786
|
+
}); (function() {
|
787
|
+
window.require(["ace/ext/options"], function(m) {
|
788
|
+
if (typeof module == "object" && typeof exports == "object" && module) {
|
789
|
+
module.exports = m;
|
790
|
+
}
|
791
|
+
});
|
792
|
+
})();
|
793
|
+
|