bedrock_sass 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -5
- data/assets/_vendor/ace/ace.js +21635 -0
- data/assets/_vendor/ace/ext-beautify.js +318 -0
- data/assets/_vendor/ace/ext-elastic_tabstops_lite.js +277 -0
- data/assets/_vendor/ace/ext-emmet.js +1226 -0
- data/assets/_vendor/ace/ext-error_marker.js +10 -0
- data/assets/_vendor/ace/ext-keybinding_menu.js +189 -0
- data/assets/_vendor/ace/ext-language_tools.js +1997 -0
- data/assets/_vendor/ace/ext-linking.js +65 -0
- data/assets/_vendor/ace/ext-modelist.js +228 -0
- data/assets/_vendor/ace/ext-options.js +750 -0
- data/assets/_vendor/ace/ext-rtl.js +110 -0
- data/assets/_vendor/ace/ext-searchbox.js +512 -0
- data/assets/_vendor/ace/ext-settings_menu.js +771 -0
- data/assets/_vendor/ace/ext-spellcheck.js +75 -0
- data/assets/_vendor/ace/ext-split.js +208 -0
- data/assets/_vendor/ace/ext-static_highlight.js +226 -0
- data/assets/_vendor/ace/ext-statusbar.js +57 -0
- data/assets/_vendor/ace/ext-textarea.js +567 -0
- data/assets/_vendor/ace/ext-themelist.js +67 -0
- data/assets/_vendor/ace/ext-whitespace.js +210 -0
- data/assets/_vendor/ace/keybinding-emacs.js +1165 -0
- data/assets/_vendor/ace/keybinding-vim.js +5673 -0
- data/assets/_vendor/ace/mode-abap.js +222 -0
- data/assets/_vendor/ace/mode-abc.js +267 -0
- data/assets/_vendor/ace/mode-actionscript.js +274 -0
- data/assets/_vendor/ace/mode-ada.js +138 -0
- data/assets/_vendor/ace/mode-apache_conf.js +363 -0
- data/assets/_vendor/ace/mode-applescript.js +279 -0
- data/assets/_vendor/ace/mode-asciidoc.js +349 -0
- data/assets/_vendor/ace/mode-asl.js +422 -0
- data/assets/_vendor/ace/mode-assembly_x86.js +193 -0
- data/assets/_vendor/ace/mode-autohotkey.js +243 -0
- data/assets/_vendor/ace/mode-batchfile.js +230 -0
- data/assets/_vendor/ace/mode-bro.js +334 -0
- data/assets/_vendor/ace/mode-c9search.js +294 -0
- data/assets/_vendor/ace/mode-c_cpp.js +502 -0
- data/assets/_vendor/ace/mode-cirru.js +211 -0
- data/assets/_vendor/ace/mode-clojure.js +314 -0
- data/assets/_vendor/ace/mode-cobol.js +102 -0
- data/assets/_vendor/ace/mode-coffee.js +400 -0
- data/assets/_vendor/ace/mode-coldfusion.js +2596 -0
- data/assets/_vendor/ace/mode-csharp.js +502 -0
- data/assets/_vendor/ace/mode-csound_document.js +3749 -0
- data/assets/_vendor/ace/mode-csound_orchestra.js +2687 -0
- data/assets/_vendor/ace/mode-csound_score.js +454 -0
- data/assets/_vendor/ace/mode-csp.js +60 -0
- data/assets/_vendor/ace/mode-css.js +723 -0
- data/assets/_vendor/ace/mode-curly.js +2564 -0
- data/assets/_vendor/ace/mode-d.js +520 -0
- data/assets/_vendor/ace/mode-dart.js +703 -0
- data/assets/_vendor/ace/mode-diff.js +146 -0
- data/assets/_vendor/ace/mode-django.js +2594 -0
- data/assets/_vendor/ace/mode-dockerfile.js +498 -0
- data/assets/_vendor/ace/mode-dot.js +418 -0
- data/assets/_vendor/ace/mode-drools.js +496 -0
- data/assets/_vendor/ace/mode-edifact.js +165 -0
- data/assets/_vendor/ace/mode-eiffel.js +136 -0
- data/assets/_vendor/ace/mode-ejs.js +3026 -0
- data/assets/_vendor/ace/mode-elixir.js +501 -0
- data/assets/_vendor/ace/mode-elm.js +307 -0
- data/assets/_vendor/ace/mode-erlang.js +1009 -0
- data/assets/_vendor/ace/mode-forth.js +297 -0
- data/assets/_vendor/ace/mode-fortran.js +431 -0
- data/assets/_vendor/ace/mode-fsharp.js +314 -0
- data/assets/_vendor/ace/mode-ftl.js +1192 -0
- data/assets/_vendor/ace/mode-gcode.js +94 -0
- data/assets/_vendor/ace/mode-gherkin.js +172 -0
- data/assets/_vendor/ace/mode-gitignore.js +60 -0
- data/assets/_vendor/ace/mode-glsl.js +579 -0
- data/assets/_vendor/ace/mode-gobstones.js +929 -0
- data/assets/_vendor/ace/mode-golang.js +414 -0
- data/assets/_vendor/ace/mode-graphqlschema.js +214 -0
- data/assets/_vendor/ace/mode-groovy.js +986 -0
- data/assets/_vendor/ace/mode-haml.js +1555 -0
- data/assets/_vendor/ace/mode-handlebars.js +2622 -0
- data/assets/_vendor/ace/mode-haskell.js +379 -0
- data/assets/_vendor/ace/mode-haskell_cabal.js +142 -0
- data/assets/_vendor/ace/mode-haxe.js +386 -0
- data/assets/_vendor/ace/mode-hjson.js +353 -0
- data/assets/_vendor/ace/mode-html.js +2509 -0
- data/assets/_vendor/ace/mode-html_elixir.js +3087 -0
- data/assets/_vendor/ace/mode-html_ruby.js +3043 -0
- data/assets/_vendor/ace/mode-ini.js +163 -0
- data/assets/_vendor/ace/mode-io.js +253 -0
- data/assets/_vendor/ace/mode-jack.js +347 -0
- data/assets/_vendor/ace/mode-jade.js +2126 -0
- data/assets/_vendor/ace/mode-java.js +975 -0
- data/assets/_vendor/ace/mode-javascript.js +797 -0
- data/assets/_vendor/ace/mode-json.js +327 -0
- data/assets/_vendor/ace/mode-jsoniq.js +4940 -0
- data/assets/_vendor/ace/mode-jsp.js +1430 -0
- data/assets/_vendor/ace/mode-jssm.js +325 -0
- data/assets/_vendor/ace/mode-jsx.js +412 -0
- data/assets/_vendor/ace/mode-julia.js +303 -0
- data/assets/_vendor/ace/mode-kotlin.js +795 -0
- data/assets/_vendor/ace/mode-latex.js +297 -0
- data/assets/_vendor/ace/mode-less.js +841 -0
- data/assets/_vendor/ace/mode-liquid.js +1193 -0
- data/assets/_vendor/ace/mode-lisp.js +112 -0
- data/assets/_vendor/ace/mode-livescript.js +280 -0
- data/assets/_vendor/ace/mode-logiql.js +317 -0
- data/assets/_vendor/ace/mode-lsl.js +343 -0
- data/assets/_vendor/ace/mode-lua.js +432 -0
- data/assets/_vendor/ace/mode-luapage.js +3007 -0
- data/assets/_vendor/ace/mode-lucene.js +87 -0
- data/assets/_vendor/ace/mode-makefile.js +410 -0
- data/assets/_vendor/ace/mode-markdown.js +3189 -0
- data/assets/_vendor/ace/mode-mask.js +1802 -0
- data/assets/_vendor/ace/mode-matlab.js +264 -0
- data/assets/_vendor/ace/mode-maze.js +291 -0
- data/assets/_vendor/ace/mode-mel.js +263 -0
- data/assets/_vendor/ace/mode-mixal.js +123 -0
- data/assets/_vendor/ace/mode-mushcode.js +681 -0
- data/assets/_vendor/ace/mode-mysql.js +168 -0
- data/assets/_vendor/ace/mode-nix.js +646 -0
- data/assets/_vendor/ace/mode-nsis.js +312 -0
- data/assets/_vendor/ace/mode-objectivec.js +739 -0
- data/assets/_vendor/ace/mode-ocaml.js +422 -0
- data/assets/_vendor/ace/mode-pascal.js +205 -0
- data/assets/_vendor/ace/mode-perl.js +380 -0
- data/assets/_vendor/ace/mode-pgsql.js +1508 -0
- data/assets/_vendor/ace/mode-php.js +13088 -0
- data/assets/_vendor/ace/mode-php_laravel_blade.js +13289 -0
- data/assets/_vendor/ace/mode-pig.js +310 -0
- data/assets/_vendor/ace/mode-plain_text.js +33 -0
- data/assets/_vendor/ace/mode-powershell.js +418 -0
- data/assets/_vendor/ace/mode-praat.js +478 -0
- data/assets/_vendor/ace/mode-prolog.js +371 -0
- data/assets/_vendor/ace/mode-properties.js +81 -0
- data/assets/_vendor/ace/mode-protobuf.js +592 -0
- data/assets/_vendor/ace/mode-puppet.js +370 -0
- data/assets/_vendor/ace/mode-python.js +273 -0
- data/assets/_vendor/ace/mode-r.js +310 -0
- data/assets/_vendor/ace/mode-razor.js +2869 -0
- data/assets/_vendor/ace/mode-rdoc.js +243 -0
- data/assets/_vendor/ace/mode-red.js +450 -0
- data/assets/_vendor/ace/mode-redshift.js +361 -0
- data/assets/_vendor/ace/mode-rhtml.js +2806 -0
- data/assets/_vendor/ace/mode-rst.js +257 -0
- data/assets/_vendor/ace/mode-ruby.js +497 -0
- data/assets/_vendor/ace/mode-rust.js +279 -0
- data/assets/_vendor/ace/mode-sass.js +441 -0
- data/assets/_vendor/ace/mode-scad.js +414 -0
- data/assets/_vendor/ace/mode-scala.js +982 -0
- data/assets/_vendor/ace/mode-scheme.js +232 -0
- data/assets/_vendor/ace/mode-scss.js +606 -0
- data/assets/_vendor/ace/mode-sh.js +447 -0
- data/assets/_vendor/ace/mode-sjs.js +1014 -0
- data/assets/_vendor/ace/mode-slim.js +4736 -0
- data/assets/_vendor/ace/mode-smarty.js +2635 -0
- data/assets/_vendor/ace/mode-snippets.js +207 -0
- data/assets/_vendor/ace/mode-soy_template.js +2847 -0
- data/assets/_vendor/ace/mode-space.js +168 -0
- data/assets/_vendor/ace/mode-sparql.js +320 -0
- data/assets/_vendor/ace/mode-sql.js +111 -0
- data/assets/_vendor/ace/mode-sqlserver.js +444 -0
- data/assets/_vendor/ace/mode-stylus.js +471 -0
- data/assets/_vendor/ace/mode-svg.js +1581 -0
- data/assets/_vendor/ace/mode-swift.js +390 -0
- data/assets/_vendor/ace/mode-tcl.js +383 -0
- data/assets/_vendor/ace/mode-terraform.js +398 -0
- data/assets/_vendor/ace/mode-tex.js +159 -0
- data/assets/_vendor/ace/mode-text.js +10 -0
- data/assets/_vendor/ace/mode-textile.js +150 -0
- data/assets/_vendor/ace/mode-toml.js +154 -0
- data/assets/_vendor/ace/mode-tsx.js +887 -0
- data/assets/_vendor/ace/mode-turtle.js +296 -0
- data/assets/_vendor/ace/mode-twig.js +2693 -0
- data/assets/_vendor/ace/mode-typescript.js +868 -0
- data/assets/_vendor/ace/mode-vala.js +676 -0
- data/assets/_vendor/ace/mode-vbscript.js +207 -0
- data/assets/_vendor/ace/mode-velocity.js +2790 -0
- data/assets/_vendor/ace/mode-verilog.js +119 -0
- data/assets/_vendor/ace/mode-vhdl.js +118 -0
- data/assets/_vendor/ace/mode-wollok.js +911 -0
- data/assets/_vendor/ace/mode-xml.js +677 -0
- data/assets/_vendor/ace/mode-xquery.js +4922 -0
- data/assets/_vendor/ace/mode-yaml.js +300 -0
- data/assets/_vendor/ace/snippets/abap.js +15 -0
- data/assets/_vendor/ace/snippets/abc.js +46 -0
- data/assets/_vendor/ace/snippets/actionscript.js +172 -0
- data/assets/_vendor/ace/snippets/ada.js +15 -0
- data/assets/_vendor/ace/snippets/apache_conf.js +15 -0
- data/assets/_vendor/ace/snippets/applescript.js +15 -0
- data/assets/_vendor/ace/snippets/asciidoc.js +15 -0
- data/assets/_vendor/ace/snippets/asl.js +14 -0
- data/assets/_vendor/ace/snippets/assembly_x86.js +15 -0
- data/assets/_vendor/ace/snippets/autohotkey.js +15 -0
- data/assets/_vendor/ace/snippets/batchfile.js +15 -0
- data/assets/_vendor/ace/snippets/bro.js +15 -0
- data/assets/_vendor/ace/snippets/c9search.js +15 -0
- data/assets/_vendor/ace/snippets/c_cpp.js +146 -0
- data/assets/_vendor/ace/snippets/cirru.js +15 -0
- data/assets/_vendor/ace/snippets/clojure.js +105 -0
- data/assets/_vendor/ace/snippets/cobol.js +15 -0
- data/assets/_vendor/ace/snippets/coffee.js +110 -0
- data/assets/_vendor/ace/snippets/coldfusion.js +15 -0
- data/assets/_vendor/ace/snippets/csharp.js +15 -0
- data/assets/_vendor/ace/snippets/csound_document.js +25 -0
- data/assets/_vendor/ace/snippets/csound_orchestra.js +62 -0
- data/assets/_vendor/ace/snippets/csound_score.js +15 -0
- data/assets/_vendor/ace/snippets/csp.js +15 -0
- data/assets/_vendor/ace/snippets/css.js +982 -0
- data/assets/_vendor/ace/snippets/curly.js +15 -0
- data/assets/_vendor/ace/snippets/d.js +15 -0
- data/assets/_vendor/ace/snippets/dart.js +98 -0
- data/assets/_vendor/ace/snippets/diff.js +26 -0
- data/assets/_vendor/ace/snippets/django.js +123 -0
- data/assets/_vendor/ace/snippets/dockerfile.js +15 -0
- data/assets/_vendor/ace/snippets/dot.js +15 -0
- data/assets/_vendor/ace/snippets/drools.js +34 -0
- data/assets/_vendor/ace/snippets/edifact.js +255 -0
- data/assets/_vendor/ace/snippets/eiffel.js +15 -0
- data/assets/_vendor/ace/snippets/ejs.js +15 -0
- data/assets/_vendor/ace/snippets/elixir.js +15 -0
- data/assets/_vendor/ace/snippets/elm.js +15 -0
- data/assets/_vendor/ace/snippets/erlang.js +175 -0
- data/assets/_vendor/ace/snippets/forth.js +15 -0
- data/assets/_vendor/ace/snippets/fortran.js +15 -0
- data/assets/_vendor/ace/snippets/fsharp.js +15 -0
- data/assets/_vendor/ace/snippets/ftl.js +15 -0
- data/assets/_vendor/ace/snippets/gcode.js +15 -0
- data/assets/_vendor/ace/snippets/gherkin.js +15 -0
- data/assets/_vendor/ace/snippets/gitignore.js +15 -0
- data/assets/_vendor/ace/snippets/glsl.js +15 -0
- data/assets/_vendor/ace/snippets/gobstones.js +49 -0
- data/assets/_vendor/ace/snippets/golang.js +15 -0
- data/assets/_vendor/ace/snippets/graphqlschema.js +47 -0
- data/assets/_vendor/ace/snippets/groovy.js +15 -0
- data/assets/_vendor/ace/snippets/haml.js +35 -0
- data/assets/_vendor/ace/snippets/handlebars.js +15 -0
- data/assets/_vendor/ace/snippets/haskell.js +97 -0
- data/assets/_vendor/ace/snippets/haskell_cabal.js +15 -0
- data/assets/_vendor/ace/snippets/haxe.js +15 -0
- data/assets/_vendor/ace/snippets/hjson.js +15 -0
- data/assets/_vendor/ace/snippets/html.js +870 -0
- data/assets/_vendor/ace/snippets/html_elixir.js +15 -0
- data/assets/_vendor/ace/snippets/html_ruby.js +15 -0
- data/assets/_vendor/ace/snippets/ini.js +15 -0
- data/assets/_vendor/ace/snippets/io.js +77 -0
- data/assets/_vendor/ace/snippets/jack.js +15 -0
- data/assets/_vendor/ace/snippets/jade.js +15 -0
- data/assets/_vendor/ace/snippets/java.js +255 -0
- data/assets/_vendor/ace/snippets/javascript.js +210 -0
- data/assets/_vendor/ace/snippets/json.js +15 -0
- data/assets/_vendor/ace/snippets/jsoniq.js +76 -0
- data/assets/_vendor/ace/snippets/jsp.js +114 -0
- data/assets/_vendor/ace/snippets/jssm.js +15 -0
- data/assets/_vendor/ace/snippets/jsx.js +15 -0
- data/assets/_vendor/ace/snippets/julia.js +15 -0
- data/assets/_vendor/ace/snippets/kotlin.js +15 -0
- data/assets/_vendor/ace/snippets/latex.js +15 -0
- data/assets/_vendor/ace/snippets/less.js +15 -0
- data/assets/_vendor/ace/snippets/liquid.js +15 -0
- data/assets/_vendor/ace/snippets/lisp.js +15 -0
- data/assets/_vendor/ace/snippets/livescript.js +15 -0
- data/assets/_vendor/ace/snippets/logiql.js +15 -0
- data/assets/_vendor/ace/snippets/lsl.js +1247 -0
- data/assets/_vendor/ace/snippets/lua.js +36 -0
- data/assets/_vendor/ace/snippets/luapage.js +15 -0
- data/assets/_vendor/ace/snippets/lucene.js +15 -0
- data/assets/_vendor/ace/snippets/makefile.js +19 -0
- data/assets/_vendor/ace/snippets/markdown.js +103 -0
- data/assets/_vendor/ace/snippets/mask.js +15 -0
- data/assets/_vendor/ace/snippets/matlab.js +15 -0
- data/assets/_vendor/ace/snippets/maze.js +24 -0
- data/assets/_vendor/ace/snippets/mel.js +15 -0
- data/assets/_vendor/ace/snippets/mixal.js +15 -0
- data/assets/_vendor/ace/snippets/mushcode.js +15 -0
- data/assets/_vendor/ace/snippets/mysql.js +15 -0
- data/assets/_vendor/ace/snippets/nix.js +15 -0
- data/assets/_vendor/ace/snippets/nsis.js +15 -0
- data/assets/_vendor/ace/snippets/objectivec.js +15 -0
- data/assets/_vendor/ace/snippets/ocaml.js +15 -0
- data/assets/_vendor/ace/snippets/pascal.js +15 -0
- data/assets/_vendor/ace/snippets/perl.js +362 -0
- data/assets/_vendor/ace/snippets/pgsql.js +15 -0
- data/assets/_vendor/ace/snippets/php.js +398 -0
- data/assets/_vendor/ace/snippets/php_laravel_blade.js +15 -0
- data/assets/_vendor/ace/snippets/pig.js +15 -0
- data/assets/_vendor/ace/snippets/plain_text.js +15 -0
- data/assets/_vendor/ace/snippets/powershell.js +15 -0
- data/assets/_vendor/ace/snippets/praat.js +15 -0
- data/assets/_vendor/ace/snippets/prolog.js +15 -0
- data/assets/_vendor/ace/snippets/properties.js +15 -0
- data/assets/_vendor/ace/snippets/protobuf.js +15 -0
- data/assets/_vendor/ace/snippets/puppet.js +15 -0
- data/assets/_vendor/ace/snippets/python.js +173 -0
- data/assets/_vendor/ace/snippets/r.js +136 -0
- data/assets/_vendor/ace/snippets/razor.js +18 -0
- data/assets/_vendor/ace/snippets/rdoc.js +15 -0
- data/assets/_vendor/ace/snippets/red.js +15 -0
- data/assets/_vendor/ace/snippets/redshift.js +15 -0
- data/assets/_vendor/ace/snippets/rhtml.js +15 -0
- data/assets/_vendor/ace/snippets/rst.js +37 -0
- data/assets/_vendor/ace/snippets/ruby.js +943 -0
- data/assets/_vendor/ace/snippets/rust.js +15 -0
- data/assets/_vendor/ace/snippets/sass.js +15 -0
- data/assets/_vendor/ace/snippets/scad.js +15 -0
- data/assets/_vendor/ace/snippets/scala.js +15 -0
- data/assets/_vendor/ace/snippets/scheme.js +15 -0
- data/assets/_vendor/ace/snippets/scss.js +15 -0
- data/assets/_vendor/ace/snippets/sh.js +98 -0
- data/assets/_vendor/ace/snippets/sjs.js +15 -0
- data/assets/_vendor/ace/snippets/slim.js +15 -0
- data/assets/_vendor/ace/snippets/smarty.js +15 -0
- data/assets/_vendor/ace/snippets/snippets.js +24 -0
- data/assets/_vendor/ace/snippets/soy_template.js +15 -0
- data/assets/_vendor/ace/snippets/space.js +15 -0
- data/assets/_vendor/ace/snippets/sparql.js +15 -0
- data/assets/_vendor/ace/snippets/sql.js +41 -0
- data/assets/_vendor/ace/snippets/sqlserver.js +84 -0
- data/assets/_vendor/ace/snippets/stylus.js +15 -0
- data/assets/_vendor/ace/snippets/svg.js +15 -0
- data/assets/_vendor/ace/snippets/swift.js +15 -0
- data/assets/_vendor/ace/snippets/tcl.js +107 -0
- data/assets/_vendor/ace/snippets/terraform.js +15 -0
- data/assets/_vendor/ace/snippets/tex.js +205 -0
- data/assets/_vendor/ace/snippets/text.js +15 -0
- data/assets/_vendor/ace/snippets/textile.js +45 -0
- data/assets/_vendor/ace/snippets/toml.js +15 -0
- data/assets/_vendor/ace/snippets/tsx.js +15 -0
- data/assets/_vendor/ace/snippets/turtle.js +15 -0
- data/assets/_vendor/ace/snippets/twig.js +15 -0
- data/assets/_vendor/ace/snippets/typescript.js +15 -0
- data/assets/_vendor/ace/snippets/vala.js +201 -0
- data/assets/_vendor/ace/snippets/vbscript.js +15 -0
- data/assets/_vendor/ace/snippets/velocity.js +44 -0
- data/assets/_vendor/ace/snippets/verilog.js +15 -0
- data/assets/_vendor/ace/snippets/vhdl.js +15 -0
- data/assets/_vendor/ace/snippets/wollok.js +99 -0
- data/assets/_vendor/ace/snippets/xml.js +15 -0
- data/assets/_vendor/ace/snippets/xquery.js +76 -0
- data/assets/_vendor/ace/snippets/yaml.js +15 -0
- data/assets/_vendor/ace/theme-ambiance.js +185 -0
- data/assets/_vendor/ace/theme-chaos.js +164 -0
- data/assets/_vendor/ace/theme-chrome.js +136 -0
- data/assets/_vendor/ace/theme-clouds.js +103 -0
- data/assets/_vendor/ace/theme-clouds_midnight.js +104 -0
- data/assets/_vendor/ace/theme-cobalt.js +121 -0
- data/assets/_vendor/ace/theme-crimson_editor.js +126 -0
- data/assets/_vendor/ace/theme-dawn.js +116 -0
- data/assets/_vendor/ace/theme-dracula.js +136 -0
- data/assets/_vendor/ace/theme-dreamweaver.js +149 -0
- data/assets/_vendor/ace/theme-eclipse.js +106 -0
- data/assets/_vendor/ace/theme-github.js +110 -0
- data/assets/_vendor/ace/theme-gob.js +120 -0
- data/assets/_vendor/ace/theme-gruvbox.js +90 -0
- data/assets/_vendor/ace/theme-idle_fingers.js +104 -0
- data/assets/_vendor/ace/theme-iplastic.js +129 -0
- data/assets/_vendor/ace/theme-katzenmilch.js +129 -0
- data/assets/_vendor/ace/theme-kr_theme.js +112 -0
- data/assets/_vendor/ace/theme-kuroir.js +69 -0
- data/assets/_vendor/ace/theme-merbivore.js +103 -0
- data/assets/_vendor/ace/theme-merbivore_soft.js +104 -0
- data/assets/_vendor/ace/theme-mono_industrial.js +115 -0
- data/assets/_vendor/ace/theme-monokai.js +113 -0
- data/assets/_vendor/ace/theme-pastel_on_dark.js +116 -0
- data/assets/_vendor/ace/theme-solarized_dark.js +96 -0
- data/assets/_vendor/ace/theme-solarized_light.js +99 -0
- data/assets/_vendor/ace/theme-sqlserver.js +146 -0
- data/assets/_vendor/ace/theme-terminal.js +122 -0
- data/assets/_vendor/ace/theme-textmate.js +138 -0
- data/assets/_vendor/ace/theme-tomorrow.js +116 -0
- data/assets/_vendor/ace/theme-tomorrow_night.js +116 -0
- data/assets/_vendor/ace/theme-tomorrow_night_blue.js +114 -0
- data/assets/_vendor/ace/theme-tomorrow_night_bright.js +129 -0
- data/assets/_vendor/ace/theme-tomorrow_night_eighties.js +116 -0
- data/assets/_vendor/ace/theme-twilight.js +117 -0
- data/assets/_vendor/ace/theme-vibrant_ink.js +102 -0
- data/assets/_vendor/ace/theme-xcode.js +96 -0
- data/assets/_vendor/ace/worker-coffee.js +2165 -0
- data/assets/_vendor/ace/worker-css.js +8764 -0
- data/assets/_vendor/ace/worker-html.js +11614 -0
- data/assets/_vendor/ace/worker-javascript.js +12491 -0
- data/assets/_vendor/ace/worker-json.js +2396 -0
- data/assets/_vendor/ace/worker-lua.js +3637 -0
- data/assets/_vendor/ace/worker-php.js +4313 -0
- data/assets/_vendor/ace/worker-xml.js +3899 -0
- data/assets/_vendor/ace/worker-xquery.js +70688 -0
- data/assets/_vendor/motion-ui/_settings.scss +1 -0
- data/assets/_vendor/motion-ui/effects/_fade.scss +1 -4
- data/assets/_vendor/motion-ui/effects/_hinge.scss +4 -3
- data/assets/_vendor/motion-ui/effects/_shake.scss +1 -1
- data/assets/_vendor/motion-ui/effects/_slide.scss +4 -3
- data/assets/_vendor/motion-ui/effects/_spin.scss +4 -3
- data/assets/_vendor/motion-ui/effects/_wiggle.scss +1 -1
- data/assets/_vendor/motion-ui/effects/_zoom.scss +2 -2
- data/assets/_vendor/motion-ui/motion-ui.scss +2 -0
- data/assets/_vendor/motion-ui/transitions/_fade.scss +6 -4
- data/assets/_vendor/motion-ui/transitions/_hinge.scss +3 -2
- data/assets/_vendor/motion-ui/transitions/_slide.scss +3 -2
- data/assets/_vendor/motion-ui/transitions/_spin.scss +2 -1
- data/assets/_vendor/motion-ui/transitions/_zoom.scss +6 -4
- data/assets/_vendor/motion-ui/util/_animation.scss +1 -1
- data/assets/_vendor/motion-ui/util/_args.scss +2 -2
- data/assets/_vendor/motion-ui/util/_function.scss +94 -0
- data/assets/_vendor/motion-ui/util/_keyframe.scss +5 -5
- data/assets/_vendor/motion-ui/util/_series.scss +20 -17
- data/assets/_vendor/motion-ui/util/_string.scss +36 -0
- data/assets/_vendor/tinymce/plugins/advlist/plugin.js +136 -404
- data/assets/_vendor/tinymce/plugins/advlist/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/anchor/plugin.js +103 -323
- data/assets/_vendor/tinymce/plugins/anchor/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/autolink/plugin.js +153 -377
- data/assets/_vendor/tinymce/plugins/autolink/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/autoresize/plugin.js +145 -427
- data/assets/_vendor/tinymce/plugins/autoresize/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/autosave/plugin.js +197 -579
- data/assets/_vendor/tinymce/plugins/autosave/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/bbcode/plugin.js +88 -251
- data/assets/_vendor/tinymce/plugins/bbcode/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/charmap/plugin.js +1243 -818
- data/assets/_vendor/tinymce/plugins/charmap/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/code/plugin.js +82 -326
- data/assets/_vendor/tinymce/plugins/code/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/codesample/plugin.js +829 -1444
- data/assets/_vendor/tinymce/plugins/codesample/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/colorpicker/plugin.js +111 -257
- data/assets/_vendor/tinymce/plugins/colorpicker/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/contextmenu/plugin.js +141 -469
- data/assets/_vendor/tinymce/plugins/contextmenu/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/directionality/plugin.js +57 -261
- data/assets/_vendor/tinymce/plugins/directionality/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/emoticons/plugin.js +78 -247
- data/assets/_vendor/tinymce/plugins/emoticons/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/fullpage/plugin.js +463 -906
- data/assets/_vendor/tinymce/plugins/fullpage/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/fullscreen/plugin.js +149 -427
- data/assets/_vendor/tinymce/plugins/fullscreen/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/help/plugin.js +634 -1434
- data/assets/_vendor/tinymce/plugins/help/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/hr/plugin.js +29 -185
- data/assets/_vendor/tinymce/plugins/hr/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/image/plugin.js +1147 -1508
- data/assets/_vendor/tinymce/plugins/image/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/imagetools/plugin.js +3319 -4079
- data/assets/_vendor/tinymce/plugins/imagetools/plugin.min.js +1 -2
- data/assets/_vendor/tinymce/plugins/importcss/plugin.js +230 -543
- data/assets/_vendor/tinymce/plugins/importcss/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/insertdatetime/plugin.js +151 -460
- data/assets/_vendor/tinymce/plugins/insertdatetime/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/legacyoutput/plugin.js +204 -379
- data/assets/_vendor/tinymce/plugins/legacyoutput/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/link/plugin.js +644 -1162
- data/assets/_vendor/tinymce/plugins/link/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/lists/plugin.js +1005 -1875
- data/assets/_vendor/tinymce/plugins/lists/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/media/plugin.js +1066 -1926
- data/assets/_vendor/tinymce/plugins/media/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/nonbreaking/plugin.js +70 -298
- data/assets/_vendor/tinymce/plugins/nonbreaking/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/noneditable/plugin.js +96 -294
- data/assets/_vendor/tinymce/plugins/noneditable/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/pagebreak/plugin.js +92 -337
- data/assets/_vendor/tinymce/plugins/pagebreak/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/paste/plugin.js +1363 -2801
- data/assets/_vendor/tinymce/plugins/paste/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/preview/plugin.js +106 -393
- data/assets/_vendor/tinymce/plugins/preview/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/print/plugin.js +29 -185
- data/assets/_vendor/tinymce/plugins/print/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/save/plugin.js +100 -350
- data/assets/_vendor/tinymce/plugins/save/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/searchreplace/plugin.js +491 -865
- data/assets/_vendor/tinymce/plugins/searchreplace/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/spellchecker/plugin.js +630 -1292
- data/assets/_vendor/tinymce/plugins/spellchecker/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/tabfocus/plugin.js +96 -391
- data/assets/_vendor/tinymce/plugins/tabfocus/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/table/plugin.js +9537 -14920
- data/assets/_vendor/tinymce/plugins/table/plugin.min.js +1 -5
- data/assets/_vendor/tinymce/plugins/template/plugin.js +309 -771
- data/assets/_vendor/tinymce/plugins/template/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/textcolor/plugin.js +319 -592
- data/assets/_vendor/tinymce/plugins/textcolor/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/textpattern/plugin.js +326 -674
- data/assets/_vendor/tinymce/plugins/textpattern/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/toc/plugin.js +199 -530
- data/assets/_vendor/tinymce/plugins/toc/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/visualblocks/plugin.js +112 -436
- data/assets/_vendor/tinymce/plugins/visualblocks/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/visualchars/plugin.js +428 -1248
- data/assets/_vendor/tinymce/plugins/visualchars/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/plugins/wordcount/plugin.js +307 -699
- data/assets/_vendor/tinymce/plugins/wordcount/plugin.min.js +1 -1
- data/assets/_vendor/tinymce/skins/lightgray/content.inline.min.css +1 -1
- data/assets/_vendor/tinymce/skins/lightgray/content.min.css +1 -1
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.eot +0 -0
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.svg +1 -1
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.ttf +0 -0
- data/assets/_vendor/tinymce/skins/lightgray/fonts/tinymce.woff +0 -0
- data/assets/_vendor/tinymce/skins/lightgray/skin.min.css +1 -1
- data/assets/_vendor/tinymce/skins/lightgray/skin.mobile.min.css +1 -1
- data/assets/_vendor/tinymce/themes/inlite/theme.js +9693 -18245
- data/assets/_vendor/tinymce/themes/inlite/theme.min.js +1 -5
- data/assets/_vendor/tinymce/themes/mobile/theme.js +12629 -22467
- data/assets/_vendor/tinymce/themes/mobile/theme.min.js +1 -8
- data/assets/_vendor/tinymce/themes/modern/theme.js +9510 -17780
- data/assets/_vendor/tinymce/themes/modern/theme.min.js +1 -5
- data/assets/_vendor/tinymce/tinymce.js +25087 -42606
- data/assets/_vendor/yoastseo/css/_icons.scss +7 -7
- data/assets/_vendor/yoastseo/css/_snippet-editor.scss +1 -1
- data/assets/bedrock/js/bedrock.js +1 -71697
- data/assets/bedrock/scss/_bedrock-components.scss +20 -0
- data/assets/bedrock/scss/_bedrock-settings.scss +12 -4
- data/assets/bedrock/scss/_foundation-settings.scss +4 -2
- data/assets/bedrock/scss/components/ace-editor.scss +21 -0
- data/assets/bedrock/scss/components/attachments-grid.scss +18 -15
- data/assets/bedrock/scss/components/date-picker.scss +146 -0
- data/assets/bedrock/scss/components/dropzone-upload.scss +7 -0
- data/assets/bedrock/scss/components/file-input.scss +7 -0
- data/assets/bedrock/scss/components/file-preview.scss +36 -0
- data/assets/bedrock/scss/components/frame-embed.scss +23 -0
- data/assets/bedrock/scss/components/global.scss +27 -0
- data/assets/bedrock/scss/components/helper-classes.scss +1 -0
- data/assets/bedrock/scss/components/icon-box.scss +38 -0
- data/assets/bedrock/scss/components/item-list.scss +66 -0
- data/assets/bedrock/scss/components/lists.scss +58 -0
- data/assets/bedrock/scss/components/off-canvas-menu.scss +27 -15
- data/assets/bedrock/scss/components/place-autocomplete.scss +90 -0
- data/assets/bedrock/scss/components/rrule-generator.scss +102 -0
- data/assets/bedrock/scss/components/rrule-reveal.scss +14 -0
- data/assets/bedrock/scss/components/select-box.scss +1 -0
- data/assets/bedrock/scss/components/seo-analysis.scss +5 -0
- data/assets/bedrock/scss/components/textarea.scss +14 -2
- data/assets/bedrock/scss/components/tiny-mce-editor.scss +5 -16
- data/lib/bedrock_sass.rb +5 -0
- data/lib/bedrock_sass/version.rb +1 -1
- data/lib/tasks/before_assets_precompile.rake +1 -0
- metadata +395 -4
- data/CODE_OF_CONDUCT.md +0 -74
@@ -0,0 +1,75 @@
|
|
1
|
+
define("ace/ext/spellcheck",["require","exports","module","ace/lib/event","ace/editor","ace/config"], function(require, exports, module) {
|
2
|
+
"use strict";
|
3
|
+
var event = require("../lib/event");
|
4
|
+
|
5
|
+
exports.contextMenuHandler = function(e){
|
6
|
+
var host = e.target;
|
7
|
+
var text = host.textInput.getElement();
|
8
|
+
if (!host.selection.isEmpty())
|
9
|
+
return;
|
10
|
+
var c = host.getCursorPosition();
|
11
|
+
var r = host.session.getWordRange(c.row, c.column);
|
12
|
+
var w = host.session.getTextRange(r);
|
13
|
+
|
14
|
+
host.session.tokenRe.lastIndex = 0;
|
15
|
+
if (!host.session.tokenRe.test(w))
|
16
|
+
return;
|
17
|
+
var PLACEHOLDER = "\x01\x01";
|
18
|
+
var value = w + " " + PLACEHOLDER;
|
19
|
+
text.value = value;
|
20
|
+
text.setSelectionRange(w.length, w.length + 1);
|
21
|
+
text.setSelectionRange(0, 0);
|
22
|
+
text.setSelectionRange(0, w.length);
|
23
|
+
|
24
|
+
var afterKeydown = false;
|
25
|
+
event.addListener(text, "keydown", function onKeydown() {
|
26
|
+
event.removeListener(text, "keydown", onKeydown);
|
27
|
+
afterKeydown = true;
|
28
|
+
});
|
29
|
+
|
30
|
+
host.textInput.setInputHandler(function(newVal) {
|
31
|
+
console.log(newVal , value, text.selectionStart, text.selectionEnd);
|
32
|
+
if (newVal == value)
|
33
|
+
return '';
|
34
|
+
if (newVal.lastIndexOf(value, 0) === 0)
|
35
|
+
return newVal.slice(value.length);
|
36
|
+
if (newVal.substr(text.selectionEnd) == value)
|
37
|
+
return newVal.slice(0, -value.length);
|
38
|
+
if (newVal.slice(-2) == PLACEHOLDER) {
|
39
|
+
var val = newVal.slice(0, -2);
|
40
|
+
if (val.slice(-1) == " ") {
|
41
|
+
if (afterKeydown)
|
42
|
+
return val.substring(0, text.selectionEnd);
|
43
|
+
val = val.slice(0, -1);
|
44
|
+
host.session.replace(r, val);
|
45
|
+
return "";
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
return newVal;
|
50
|
+
});
|
51
|
+
};
|
52
|
+
var Editor = require("../editor").Editor;
|
53
|
+
require("../config").defineOptions(Editor.prototype, "editor", {
|
54
|
+
spellcheck: {
|
55
|
+
set: function(val) {
|
56
|
+
var text = this.textInput.getElement();
|
57
|
+
text.spellcheck = !!val;
|
58
|
+
if (!val)
|
59
|
+
this.removeListener("nativecontextmenu", exports.contextMenuHandler);
|
60
|
+
else
|
61
|
+
this.on("nativecontextmenu", exports.contextMenuHandler);
|
62
|
+
},
|
63
|
+
value: true
|
64
|
+
}
|
65
|
+
});
|
66
|
+
|
67
|
+
});
|
68
|
+
(function() {
|
69
|
+
window.require(["ace/ext/spellcheck"], function(m) {
|
70
|
+
if (typeof module == "object" && typeof exports == "object" && module) {
|
71
|
+
module.exports = m;
|
72
|
+
}
|
73
|
+
});
|
74
|
+
})();
|
75
|
+
|
@@ -0,0 +1,208 @@
|
|
1
|
+
define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"], function(require, exports, module) {
|
2
|
+
"use strict";
|
3
|
+
|
4
|
+
var oop = require("./lib/oop");
|
5
|
+
var lang = require("./lib/lang");
|
6
|
+
var EventEmitter = require("./lib/event_emitter").EventEmitter;
|
7
|
+
|
8
|
+
var Editor = require("./editor").Editor;
|
9
|
+
var Renderer = require("./virtual_renderer").VirtualRenderer;
|
10
|
+
var EditSession = require("./edit_session").EditSession;
|
11
|
+
|
12
|
+
|
13
|
+
var Split = function(container, theme, splits) {
|
14
|
+
this.BELOW = 1;
|
15
|
+
this.BESIDE = 0;
|
16
|
+
|
17
|
+
this.$container = container;
|
18
|
+
this.$theme = theme;
|
19
|
+
this.$splits = 0;
|
20
|
+
this.$editorCSS = "";
|
21
|
+
this.$editors = [];
|
22
|
+
this.$orientation = this.BESIDE;
|
23
|
+
|
24
|
+
this.setSplits(splits || 1);
|
25
|
+
this.$cEditor = this.$editors[0];
|
26
|
+
|
27
|
+
|
28
|
+
this.on("focus", function(editor) {
|
29
|
+
this.$cEditor = editor;
|
30
|
+
}.bind(this));
|
31
|
+
};
|
32
|
+
|
33
|
+
(function(){
|
34
|
+
|
35
|
+
oop.implement(this, EventEmitter);
|
36
|
+
|
37
|
+
this.$createEditor = function() {
|
38
|
+
var el = document.createElement("div");
|
39
|
+
el.className = this.$editorCSS;
|
40
|
+
el.style.cssText = "position: absolute; top:0px; bottom:0px";
|
41
|
+
this.$container.appendChild(el);
|
42
|
+
var editor = new Editor(new Renderer(el, this.$theme));
|
43
|
+
|
44
|
+
editor.on("focus", function() {
|
45
|
+
this._emit("focus", editor);
|
46
|
+
}.bind(this));
|
47
|
+
|
48
|
+
this.$editors.push(editor);
|
49
|
+
editor.setFontSize(this.$fontSize);
|
50
|
+
return editor;
|
51
|
+
};
|
52
|
+
|
53
|
+
this.setSplits = function(splits) {
|
54
|
+
var editor;
|
55
|
+
if (splits < 1) {
|
56
|
+
throw "The number of splits have to be > 0!";
|
57
|
+
}
|
58
|
+
|
59
|
+
if (splits == this.$splits) {
|
60
|
+
return;
|
61
|
+
} else if (splits > this.$splits) {
|
62
|
+
while (this.$splits < this.$editors.length && this.$splits < splits) {
|
63
|
+
editor = this.$editors[this.$splits];
|
64
|
+
this.$container.appendChild(editor.container);
|
65
|
+
editor.setFontSize(this.$fontSize);
|
66
|
+
this.$splits ++;
|
67
|
+
}
|
68
|
+
while (this.$splits < splits) {
|
69
|
+
this.$createEditor();
|
70
|
+
this.$splits ++;
|
71
|
+
}
|
72
|
+
} else {
|
73
|
+
while (this.$splits > splits) {
|
74
|
+
editor = this.$editors[this.$splits - 1];
|
75
|
+
this.$container.removeChild(editor.container);
|
76
|
+
this.$splits --;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
this.resize();
|
80
|
+
};
|
81
|
+
this.getSplits = function() {
|
82
|
+
return this.$splits;
|
83
|
+
};
|
84
|
+
this.getEditor = function(idx) {
|
85
|
+
return this.$editors[idx];
|
86
|
+
};
|
87
|
+
this.getCurrentEditor = function() {
|
88
|
+
return this.$cEditor;
|
89
|
+
};
|
90
|
+
this.focus = function() {
|
91
|
+
this.$cEditor.focus();
|
92
|
+
};
|
93
|
+
this.blur = function() {
|
94
|
+
this.$cEditor.blur();
|
95
|
+
};
|
96
|
+
this.setTheme = function(theme) {
|
97
|
+
this.$editors.forEach(function(editor) {
|
98
|
+
editor.setTheme(theme);
|
99
|
+
});
|
100
|
+
};
|
101
|
+
this.setKeyboardHandler = function(keybinding) {
|
102
|
+
this.$editors.forEach(function(editor) {
|
103
|
+
editor.setKeyboardHandler(keybinding);
|
104
|
+
});
|
105
|
+
};
|
106
|
+
this.forEach = function(callback, scope) {
|
107
|
+
this.$editors.forEach(callback, scope);
|
108
|
+
};
|
109
|
+
|
110
|
+
|
111
|
+
this.$fontSize = "";
|
112
|
+
this.setFontSize = function(size) {
|
113
|
+
this.$fontSize = size;
|
114
|
+
this.forEach(function(editor) {
|
115
|
+
editor.setFontSize(size);
|
116
|
+
});
|
117
|
+
};
|
118
|
+
|
119
|
+
this.$cloneSession = function(session) {
|
120
|
+
var s = new EditSession(session.getDocument(), session.getMode());
|
121
|
+
|
122
|
+
var undoManager = session.getUndoManager();
|
123
|
+
s.setUndoManager(undoManager);
|
124
|
+
s.setTabSize(session.getTabSize());
|
125
|
+
s.setUseSoftTabs(session.getUseSoftTabs());
|
126
|
+
s.setOverwrite(session.getOverwrite());
|
127
|
+
s.setBreakpoints(session.getBreakpoints());
|
128
|
+
s.setUseWrapMode(session.getUseWrapMode());
|
129
|
+
s.setUseWorker(session.getUseWorker());
|
130
|
+
s.setWrapLimitRange(session.$wrapLimitRange.min,
|
131
|
+
session.$wrapLimitRange.max);
|
132
|
+
s.$foldData = session.$cloneFoldData();
|
133
|
+
|
134
|
+
return s;
|
135
|
+
};
|
136
|
+
this.setSession = function(session, idx) {
|
137
|
+
var editor;
|
138
|
+
if (idx == null) {
|
139
|
+
editor = this.$cEditor;
|
140
|
+
} else {
|
141
|
+
editor = this.$editors[idx];
|
142
|
+
}
|
143
|
+
var isUsed = this.$editors.some(function(editor) {
|
144
|
+
return editor.session === session;
|
145
|
+
});
|
146
|
+
|
147
|
+
if (isUsed) {
|
148
|
+
session = this.$cloneSession(session);
|
149
|
+
}
|
150
|
+
editor.setSession(session);
|
151
|
+
return session;
|
152
|
+
};
|
153
|
+
this.getOrientation = function() {
|
154
|
+
return this.$orientation;
|
155
|
+
};
|
156
|
+
this.setOrientation = function(orientation) {
|
157
|
+
if (this.$orientation == orientation) {
|
158
|
+
return;
|
159
|
+
}
|
160
|
+
this.$orientation = orientation;
|
161
|
+
this.resize();
|
162
|
+
};
|
163
|
+
this.resize = function() {
|
164
|
+
var width = this.$container.clientWidth;
|
165
|
+
var height = this.$container.clientHeight;
|
166
|
+
var editor;
|
167
|
+
|
168
|
+
if (this.$orientation == this.BESIDE) {
|
169
|
+
var editorWidth = width / this.$splits;
|
170
|
+
for (var i = 0; i < this.$splits; i++) {
|
171
|
+
editor = this.$editors[i];
|
172
|
+
editor.container.style.width = editorWidth + "px";
|
173
|
+
editor.container.style.top = "0px";
|
174
|
+
editor.container.style.left = i * editorWidth + "px";
|
175
|
+
editor.container.style.height = height + "px";
|
176
|
+
editor.resize();
|
177
|
+
}
|
178
|
+
} else {
|
179
|
+
var editorHeight = height / this.$splits;
|
180
|
+
for (var i = 0; i < this.$splits; i++) {
|
181
|
+
editor = this.$editors[i];
|
182
|
+
editor.container.style.width = width + "px";
|
183
|
+
editor.container.style.top = i * editorHeight + "px";
|
184
|
+
editor.container.style.left = "0px";
|
185
|
+
editor.container.style.height = editorHeight + "px";
|
186
|
+
editor.resize();
|
187
|
+
}
|
188
|
+
}
|
189
|
+
};
|
190
|
+
|
191
|
+
}).call(Split.prototype);
|
192
|
+
|
193
|
+
exports.Split = Split;
|
194
|
+
});
|
195
|
+
|
196
|
+
define("ace/ext/split",["require","exports","module","ace/split"], function(require, exports, module) {
|
197
|
+
"use strict";
|
198
|
+
module.exports = require("../split");
|
199
|
+
|
200
|
+
});
|
201
|
+
(function() {
|
202
|
+
window.require(["ace/ext/split"], function(m) {
|
203
|
+
if (typeof module == "object" && typeof exports == "object" && module) {
|
204
|
+
module.exports = m;
|
205
|
+
}
|
206
|
+
});
|
207
|
+
})();
|
208
|
+
|
@@ -0,0 +1,226 @@
|
|
1
|
+
define("ace/ext/static_highlight",["require","exports","module","ace/edit_session","ace/layer/text","ace/config","ace/lib/dom"], function(require, exports, module) {
|
2
|
+
"use strict";
|
3
|
+
|
4
|
+
var EditSession = require("../edit_session").EditSession;
|
5
|
+
var TextLayer = require("../layer/text").Text;
|
6
|
+
var baseStyles = ".ace_static_highlight {\
|
7
|
+
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', 'Droid Sans Mono', monospace;\
|
8
|
+
font-size: 12px;\
|
9
|
+
white-space: pre-wrap\
|
10
|
+
}\
|
11
|
+
.ace_static_highlight .ace_gutter {\
|
12
|
+
width: 2em;\
|
13
|
+
text-align: right;\
|
14
|
+
padding: 0 3px 0 0;\
|
15
|
+
margin-right: 3px;\
|
16
|
+
}\
|
17
|
+
.ace_static_highlight.ace_show_gutter .ace_line {\
|
18
|
+
padding-left: 2.6em;\
|
19
|
+
}\
|
20
|
+
.ace_static_highlight .ace_line { position: relative; }\
|
21
|
+
.ace_static_highlight .ace_gutter-cell {\
|
22
|
+
-moz-user-select: -moz-none;\
|
23
|
+
-khtml-user-select: none;\
|
24
|
+
-webkit-user-select: none;\
|
25
|
+
user-select: none;\
|
26
|
+
top: 0;\
|
27
|
+
bottom: 0;\
|
28
|
+
left: 0;\
|
29
|
+
position: absolute;\
|
30
|
+
}\
|
31
|
+
.ace_static_highlight .ace_gutter-cell:before {\
|
32
|
+
content: counter(ace_line, decimal);\
|
33
|
+
counter-increment: ace_line;\
|
34
|
+
}\
|
35
|
+
.ace_static_highlight {\
|
36
|
+
counter-reset: ace_line;\
|
37
|
+
}\
|
38
|
+
";
|
39
|
+
var config = require("../config");
|
40
|
+
var dom = require("../lib/dom");
|
41
|
+
|
42
|
+
function Element(type) {
|
43
|
+
this.type = type;
|
44
|
+
this.style = {};
|
45
|
+
this.textContent = "";
|
46
|
+
}
|
47
|
+
Element.prototype.cloneNode = function() {
|
48
|
+
return this;
|
49
|
+
};
|
50
|
+
Element.prototype.appendChild = function(child) {
|
51
|
+
this.textContent += child.toString();
|
52
|
+
};
|
53
|
+
Element.prototype.toString = function() {
|
54
|
+
var stringBuilder = [];
|
55
|
+
if (this.type != "fragment") {
|
56
|
+
stringBuilder.push("<", this.type);
|
57
|
+
if (this.className)
|
58
|
+
stringBuilder.push(" class='", this.className, "'");
|
59
|
+
var styleStr = [];
|
60
|
+
for (var key in this.style) {
|
61
|
+
styleStr.push(key, ":", this.style[key]);
|
62
|
+
}
|
63
|
+
if (styleStr.length)
|
64
|
+
stringBuilder.push(" style='", styleStr.join(""), "'");
|
65
|
+
stringBuilder.push(">");
|
66
|
+
}
|
67
|
+
|
68
|
+
if (this.textContent)
|
69
|
+
stringBuilder.push(this.textContent);
|
70
|
+
|
71
|
+
if (this.type != "fragment") {
|
72
|
+
stringBuilder.push("</", this.type, ">");
|
73
|
+
}
|
74
|
+
|
75
|
+
return stringBuilder.join("");
|
76
|
+
};
|
77
|
+
|
78
|
+
|
79
|
+
var simpleDom = {
|
80
|
+
createTextNode: function(textContent, element) {
|
81
|
+
return textContent;
|
82
|
+
},
|
83
|
+
createElement: function(type) {
|
84
|
+
return new Element(type);
|
85
|
+
},
|
86
|
+
createFragment: function() {
|
87
|
+
return new Element("fragment");
|
88
|
+
}
|
89
|
+
};
|
90
|
+
|
91
|
+
var SimpleTextLayer = function() {
|
92
|
+
this.config = {};
|
93
|
+
this.dom = simpleDom;
|
94
|
+
};
|
95
|
+
SimpleTextLayer.prototype = TextLayer.prototype;
|
96
|
+
|
97
|
+
var highlight = function(el, opts, callback) {
|
98
|
+
var m = el.className.match(/lang-(\w+)/);
|
99
|
+
var mode = opts.mode || m && ("ace/mode/" + m[1]);
|
100
|
+
if (!mode)
|
101
|
+
return false;
|
102
|
+
var theme = opts.theme || "ace/theme/textmate";
|
103
|
+
|
104
|
+
var data = "";
|
105
|
+
var nodes = [];
|
106
|
+
|
107
|
+
if (el.firstElementChild) {
|
108
|
+
var textLen = 0;
|
109
|
+
for (var i = 0; i < el.childNodes.length; i++) {
|
110
|
+
var ch = el.childNodes[i];
|
111
|
+
if (ch.nodeType == 3) {
|
112
|
+
textLen += ch.data.length;
|
113
|
+
data += ch.data;
|
114
|
+
} else {
|
115
|
+
nodes.push(textLen, ch);
|
116
|
+
}
|
117
|
+
}
|
118
|
+
} else {
|
119
|
+
data = el.textContent;
|
120
|
+
if (opts.trim)
|
121
|
+
data = data.trim();
|
122
|
+
}
|
123
|
+
|
124
|
+
highlight.render(data, mode, theme, opts.firstLineNumber, !opts.showGutter, function (highlighted) {
|
125
|
+
dom.importCssString(highlighted.css, "ace_highlight");
|
126
|
+
el.innerHTML = highlighted.html;
|
127
|
+
var container = el.firstChild.firstChild;
|
128
|
+
for (var i = 0; i < nodes.length; i += 2) {
|
129
|
+
var pos = highlighted.session.doc.indexToPosition(nodes[i]);
|
130
|
+
var node = nodes[i + 1];
|
131
|
+
var lineEl = container.children[pos.row];
|
132
|
+
lineEl && lineEl.appendChild(node);
|
133
|
+
}
|
134
|
+
callback && callback();
|
135
|
+
});
|
136
|
+
};
|
137
|
+
highlight.render = function(input, mode, theme, lineStart, disableGutter, callback) {
|
138
|
+
var waiting = 1;
|
139
|
+
var modeCache = EditSession.prototype.$modes;
|
140
|
+
if (typeof theme == "string") {
|
141
|
+
waiting++;
|
142
|
+
config.loadModule(['theme', theme], function(m) {
|
143
|
+
theme = m;
|
144
|
+
--waiting || done();
|
145
|
+
});
|
146
|
+
}
|
147
|
+
var modeOptions;
|
148
|
+
if (mode && typeof mode === "object" && !mode.getTokenizer) {
|
149
|
+
modeOptions = mode;
|
150
|
+
mode = modeOptions.path;
|
151
|
+
}
|
152
|
+
if (typeof mode == "string") {
|
153
|
+
waiting++;
|
154
|
+
config.loadModule(['mode', mode], function(m) {
|
155
|
+
if (!modeCache[mode] || modeOptions)
|
156
|
+
modeCache[mode] = new m.Mode(modeOptions);
|
157
|
+
mode = modeCache[mode];
|
158
|
+
--waiting || done();
|
159
|
+
});
|
160
|
+
}
|
161
|
+
function done() {
|
162
|
+
var result = highlight.renderSync(input, mode, theme, lineStart, disableGutter);
|
163
|
+
return callback ? callback(result) : result;
|
164
|
+
}
|
165
|
+
return --waiting || done();
|
166
|
+
};
|
167
|
+
highlight.renderSync = function(input, mode, theme, lineStart, disableGutter) {
|
168
|
+
lineStart = parseInt(lineStart || 1, 10);
|
169
|
+
|
170
|
+
var session = new EditSession("");
|
171
|
+
session.setUseWorker(false);
|
172
|
+
session.setMode(mode);
|
173
|
+
|
174
|
+
var textLayer = new SimpleTextLayer();
|
175
|
+
textLayer.setSession(session);
|
176
|
+
Object.keys(textLayer.$tabStrings).forEach(function(k) {
|
177
|
+
if (typeof textLayer.$tabStrings[k] == "string") {
|
178
|
+
var el = simpleDom.createFragment();
|
179
|
+
el.textContent = textLayer.$tabStrings[k];
|
180
|
+
textLayer.$tabStrings[k] = el;
|
181
|
+
}
|
182
|
+
});
|
183
|
+
|
184
|
+
session.setValue(input);
|
185
|
+
var length = session.getLength();
|
186
|
+
|
187
|
+
var outerEl = simpleDom.createElement("div");
|
188
|
+
outerEl.className = theme.cssClass;
|
189
|
+
|
190
|
+
var innerEl = simpleDom.createElement("div");
|
191
|
+
innerEl.className = "ace_static_highlight" + (disableGutter ? "" : " ace_show_gutter");
|
192
|
+
innerEl.style["counter-reset"] = "ace_line " + (lineStart - 1);
|
193
|
+
|
194
|
+
for (var ix = 0; ix < length; ix++) {
|
195
|
+
var lineEl = simpleDom.createElement("div");
|
196
|
+
lineEl.className = "ace_line";
|
197
|
+
|
198
|
+
if (!disableGutter) {
|
199
|
+
var gutterEl = simpleDom.createElement("span");
|
200
|
+
gutterEl.className ="ace_gutter ace_gutter-cell";
|
201
|
+
gutterEl.textContent = ""; /*(ix + lineStart) + */
|
202
|
+
lineEl.appendChild(gutterEl);
|
203
|
+
}
|
204
|
+
textLayer.$renderLine(lineEl, ix, false);
|
205
|
+
innerEl.appendChild(lineEl);
|
206
|
+
}
|
207
|
+
outerEl.appendChild(innerEl);
|
208
|
+
|
209
|
+
return {
|
210
|
+
css: baseStyles + theme.cssText,
|
211
|
+
html: outerEl.toString(),
|
212
|
+
session: session
|
213
|
+
};
|
214
|
+
};
|
215
|
+
|
216
|
+
module.exports = highlight;
|
217
|
+
module.exports.highlight = highlight;
|
218
|
+
});
|
219
|
+
(function() {
|
220
|
+
window.require(["ace/ext/static_highlight"], function(m) {
|
221
|
+
if (typeof module == "object" && typeof exports == "object" && module) {
|
222
|
+
module.exports = m;
|
223
|
+
}
|
224
|
+
});
|
225
|
+
})();
|
226
|
+
|