├── .bowerrc
├── .gitattributes
├── .gitignore
├── Classes
├── Controller
│ └── BackendController.php
├── Domain
│ ├── Model
│ │ ├── Font.php
│ │ └── Settings.php
│ └── Repository
│ │ └── SettingsRepository.php
├── FileUtility.php
├── Fusion
│ └── FontImplementation.php
├── Service
│ ├── Build.php
│ ├── Compile.php
│ └── Request.php
└── ViewHelpers
│ └── Format
│ └── JsonViewHelper.php
├── Configuration
├── Caches.yaml
├── Objects.yaml
├── Policy.yaml
├── Settings.yaml
└── Settings.yaml.example
├── Documentation
├── Neos-Theme-Module.jpg
└── Neos-Theme-Module2.jpg
├── LICENSE
├── Migrations
├── Mysql
│ ├── Version20170418223039.php
│ ├── Version20171018221633.php
│ └── Version20171019001547.php
└── Postgresql
│ ├── Version20171015140356.php
│ ├── Version20171017162444.php
│ └── Version20171019000136.php
├── README.md
├── Resources
├── Private
│ ├── Fusion
│ │ └── Root.fusion
│ ├── Templates
│ │ └── Backend
│ │ │ └── Index.html
│ └── Translations
│ │ ├── de
│ │ └── Main.xlf
│ │ └── en
│ │ └── Main.xlf
└── Public
│ ├── Components
│ ├── bootstrap-colorpicker
│ │ ├── .bower.json
│ │ ├── CONTRIBUTING.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── bower.json
│ │ ├── dist
│ │ │ ├── css
│ │ │ │ ├── bootstrap-colorpicker.css
│ │ │ │ ├── bootstrap-colorpicker.css.map
│ │ │ │ ├── bootstrap-colorpicker.min.css
│ │ │ │ └── bootstrap-colorpicker.min.css.map
│ │ │ ├── img
│ │ │ │ └── bootstrap-colorpicker
│ │ │ │ │ ├── alpha-horizontal.png
│ │ │ │ │ ├── alpha.png
│ │ │ │ │ ├── hue-horizontal.png
│ │ │ │ │ ├── hue.png
│ │ │ │ │ └── saturation.png
│ │ │ └── js
│ │ │ │ ├── bootstrap-colorpicker.js
│ │ │ │ └── bootstrap-colorpicker.min.js
│ │ ├── docs
│ │ │ ├── assets
│ │ │ │ └── main.css
│ │ │ ├── helpers
│ │ │ │ └── code
│ │ │ │ │ └── index.js
│ │ │ ├── includes
│ │ │ │ ├── api.hbs
│ │ │ │ ├── example.hbs
│ │ │ │ ├── examples.hbs
│ │ │ │ ├── examples
│ │ │ │ │ ├── 01_basic.hbs
│ │ │ │ │ ├── 02_component.hbs
│ │ │ │ │ ├── 03_component_options.hbs
│ │ │ │ │ ├── 04_events.hbs
│ │ │ │ │ ├── 05_transparent.hbs
│ │ │ │ │ ├── 06_horizontal.hbs
│ │ │ │ │ ├── 07_inline.hbs
│ │ │ │ │ ├── 08_palette.hbs
│ │ │ │ │ ├── 09_size.hbs
│ │ │ │ │ ├── 10_disabled.hbs
│ │ │ │ │ └── 11_modal.hbs
│ │ │ │ └── social.hbs
│ │ │ ├── layout.hbs
│ │ │ └── pages
│ │ │ │ └── index.hbs
│ │ ├── serve.js
│ │ └── src
│ │ │ ├── js
│ │ │ ├── colorpicker-color.js
│ │ │ ├── colorpicker-component.js
│ │ │ ├── colorpicker-defaults.js
│ │ │ └── colorpicker-plugin-wrapper.js
│ │ │ ├── less
│ │ │ └── colorpicker.less
│ │ │ └── sass
│ │ │ └── _colorpicker.scss
│ ├── codemirror-scss-linter
│ │ ├── scss-lint.js
│ │ └── scsslint.js
│ └── codemirror
│ │ ├── .gitattributes
│ │ ├── .npmignore
│ │ ├── .travis.yml
│ │ ├── AUTHORS
│ │ ├── CHANGELOG.md
│ │ ├── CONTRIBUTING.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── addon
│ │ ├── comment
│ │ │ ├── comment.js
│ │ │ └── continuecomment.js
│ │ ├── dialog
│ │ │ ├── dialog.css
│ │ │ └── dialog.js
│ │ ├── display
│ │ │ ├── autorefresh.js
│ │ │ ├── fullscreen.css
│ │ │ ├── fullscreen.js
│ │ │ ├── panel.js
│ │ │ ├── placeholder.js
│ │ │ └── rulers.js
│ │ ├── edit
│ │ │ ├── closebrackets.js
│ │ │ ├── closetag.js
│ │ │ ├── continuelist.js
│ │ │ ├── matchbrackets.js
│ │ │ ├── matchtags.js
│ │ │ └── trailingspace.js
│ │ ├── fold
│ │ │ ├── brace-fold.js
│ │ │ ├── comment-fold.js
│ │ │ ├── foldcode.js
│ │ │ ├── foldgutter.css
│ │ │ ├── foldgutter.js
│ │ │ ├── indent-fold.js
│ │ │ ├── markdown-fold.js
│ │ │ └── xml-fold.js
│ │ ├── hint
│ │ │ ├── anyword-hint.js
│ │ │ ├── css-hint.js
│ │ │ ├── html-hint.js
│ │ │ ├── javascript-hint.js
│ │ │ ├── show-hint.css
│ │ │ ├── show-hint.js
│ │ │ ├── sql-hint.js
│ │ │ └── xml-hint.js
│ │ ├── lint
│ │ │ ├── coffeescript-lint.js
│ │ │ ├── css-lint.js
│ │ │ ├── html-lint.js
│ │ │ ├── javascript-lint.js
│ │ │ ├── json-lint.js
│ │ │ ├── lint.css
│ │ │ ├── lint.js
│ │ │ └── yaml-lint.js
│ │ ├── merge
│ │ │ ├── merge.css
│ │ │ └── merge.js
│ │ ├── mode
│ │ │ ├── loadmode.js
│ │ │ ├── multiplex.js
│ │ │ ├── multiplex_test.js
│ │ │ ├── overlay.js
│ │ │ └── simple.js
│ │ ├── runmode
│ │ │ ├── colorize.js
│ │ │ ├── runmode-standalone.js
│ │ │ ├── runmode.js
│ │ │ └── runmode.node.js
│ │ ├── scroll
│ │ │ ├── annotatescrollbar.js
│ │ │ ├── scrollpastend.js
│ │ │ ├── simplescrollbars.css
│ │ │ └── simplescrollbars.js
│ │ ├── search
│ │ │ ├── jump-to-line.js
│ │ │ ├── match-highlighter.js
│ │ │ ├── matchesonscrollbar.css
│ │ │ ├── matchesonscrollbar.js
│ │ │ ├── search.js
│ │ │ └── searchcursor.js
│ │ ├── selection
│ │ │ ├── active-line.js
│ │ │ ├── mark-selection.js
│ │ │ └── selection-pointer.js
│ │ ├── tern
│ │ │ ├── tern.css
│ │ │ ├── tern.js
│ │ │ └── worker.js
│ │ └── wrap
│ │ │ └── hardwrap.js
│ │ ├── bin
│ │ ├── authors.sh
│ │ ├── compress
│ │ ├── lint
│ │ ├── release
│ │ ├── source-highlight
│ │ └── upload-release.js
│ │ ├── demo
│ │ ├── activeline.html
│ │ ├── anywordhint.html
│ │ ├── bidi.html
│ │ ├── btree.html
│ │ ├── buffers.html
│ │ ├── changemode.html
│ │ ├── closebrackets.html
│ │ ├── closetag.html
│ │ ├── complete.html
│ │ ├── emacs.html
│ │ ├── folding.html
│ │ ├── fullscreen.html
│ │ ├── hardwrap.html
│ │ ├── html5complete.html
│ │ ├── indentwrap.html
│ │ ├── lint.html
│ │ ├── loadmode.html
│ │ ├── marker.html
│ │ ├── markselection.html
│ │ ├── matchhighlighter.html
│ │ ├── matchtags.html
│ │ ├── merge.html
│ │ ├── multiplex.html
│ │ ├── mustache.html
│ │ ├── panel.html
│ │ ├── placeholder.html
│ │ ├── preview.html
│ │ ├── requirejs.html
│ │ ├── resize.html
│ │ ├── rulers.html
│ │ ├── runmode.html
│ │ ├── search.html
│ │ ├── simplemode.html
│ │ ├── simplescrollbars.html
│ │ ├── spanaffectswrapping_shim.html
│ │ ├── sublime.html
│ │ ├── tern.html
│ │ ├── theme.html
│ │ ├── trailingspace.html
│ │ ├── variableheight.html
│ │ ├── vim.html
│ │ ├── visibletabs.html
│ │ ├── widget.html
│ │ └── xmlcomplete.html
│ │ ├── doc
│ │ ├── activebookmark.js
│ │ ├── docs.css
│ │ ├── internals.html
│ │ ├── logo.png
│ │ ├── logo.svg
│ │ ├── manual.html
│ │ ├── realworld.html
│ │ ├── releases.html
│ │ ├── reporting.html
│ │ ├── upgrade_v2.2.html
│ │ ├── upgrade_v3.html
│ │ ├── upgrade_v4.html
│ │ └── yinyang.png
│ │ ├── index.html
│ │ ├── keymap
│ │ ├── emacs.js
│ │ ├── sublime.js
│ │ └── vim.js
│ │ ├── lib
│ │ ├── codemirror.css
│ │ └── codemirror.js
│ │ ├── mode
│ │ ├── apl
│ │ │ ├── apl.js
│ │ │ └── index.html
│ │ ├── asciiarmor
│ │ │ ├── asciiarmor.js
│ │ │ └── index.html
│ │ ├── asn.1
│ │ │ ├── asn.1.js
│ │ │ └── index.html
│ │ ├── asterisk
│ │ │ ├── asterisk.js
│ │ │ └── index.html
│ │ ├── brainfuck
│ │ │ ├── brainfuck.js
│ │ │ └── index.html
│ │ ├── clike
│ │ │ ├── clike.js
│ │ │ ├── index.html
│ │ │ ├── scala.html
│ │ │ └── test.js
│ │ ├── clojure
│ │ │ ├── clojure.js
│ │ │ └── index.html
│ │ ├── cmake
│ │ │ ├── cmake.js
│ │ │ └── index.html
│ │ ├── cobol
│ │ │ ├── cobol.js
│ │ │ └── index.html
│ │ ├── coffeescript
│ │ │ ├── coffeescript.js
│ │ │ └── index.html
│ │ ├── commonlisp
│ │ │ ├── commonlisp.js
│ │ │ └── index.html
│ │ ├── crystal
│ │ │ ├── crystal.js
│ │ │ └── index.html
│ │ ├── css
│ │ │ ├── css.js
│ │ │ ├── gss.html
│ │ │ ├── gss_test.js
│ │ │ ├── index.html
│ │ │ ├── less.html
│ │ │ ├── less_test.js
│ │ │ ├── scss.html
│ │ │ ├── scss_test.js
│ │ │ └── test.js
│ │ ├── cypher
│ │ │ ├── cypher.js
│ │ │ ├── index.html
│ │ │ └── test.js
│ │ ├── d
│ │ │ ├── d.js
│ │ │ └── index.html
│ │ ├── dart
│ │ │ ├── dart.js
│ │ │ └── index.html
│ │ ├── diff
│ │ │ ├── diff.js
│ │ │ └── index.html
│ │ ├── django
│ │ │ ├── django.js
│ │ │ └── index.html
│ │ ├── dockerfile
│ │ │ ├── dockerfile.js
│ │ │ └── index.html
│ │ ├── dtd
│ │ │ ├── dtd.js
│ │ │ └── index.html
│ │ ├── dylan
│ │ │ ├── dylan.js
│ │ │ ├── index.html
│ │ │ └── test.js
│ │ ├── ebnf
│ │ │ ├── ebnf.js
│ │ │ └── index.html
│ │ ├── ecl
│ │ │ ├── ecl.js
│ │ │ └── index.html
│ │ ├── eiffel
│ │ │ ├── eiffel.js
│ │ │ └── index.html
│ │ ├── elm
│ │ │ ├── elm.js
│ │ │ └── index.html
│ │ ├── erlang
│ │ │ ├── erlang.js
│ │ │ └── index.html
│ │ ├── factor
│ │ │ ├── factor.js
│ │ │ └── index.html
│ │ ├── fcl
│ │ │ ├── fcl.js
│ │ │ └── index.html
│ │ ├── forth
│ │ │ ├── forth.js
│ │ │ └── index.html
│ │ ├── fortran
│ │ │ ├── fortran.js
│ │ │ └── index.html
│ │ ├── gas
│ │ │ ├── gas.js
│ │ │ └── index.html
│ │ ├── gfm
│ │ │ ├── gfm.js
│ │ │ ├── index.html
│ │ │ └── test.js
│ │ ├── gherkin
│ │ │ ├── gherkin.js
│ │ │ └── index.html
│ │ ├── go
│ │ │ ├── go.js
│ │ │ └── index.html
│ │ ├── groovy
│ │ │ ├── groovy.js
│ │ │ └── index.html
│ │ ├── haml
│ │ │ ├── haml.js
│ │ │ ├── index.html
│ │ │ └── test.js
│ │ ├── handlebars
│ │ │ ├── handlebars.js
│ │ │ └── index.html
│ │ ├── haskell-literate
│ │ │ ├── haskell-literate.js
│ │ │ └── index.html
│ │ ├── haskell
│ │ │ ├── haskell.js
│ │ │ └── index.html
│ │ ├── haxe
│ │ │ ├── haxe.js
│ │ │ └── index.html
│ │ ├── htmlembedded
│ │ │ ├── htmlembedded.js
│ │ │ └── index.html
│ │ ├── htmlmixed
│ │ │ ├── htmlmixed.js
│ │ │ └── index.html
│ │ ├── http
│ │ │ ├── http.js
│ │ │ └── index.html
│ │ ├── idl
│ │ │ ├── idl.js
│ │ │ └── index.html
│ │ ├── index.html
│ │ ├── javascript
│ │ │ ├── index.html
│ │ │ ├── javascript.js
│ │ │ ├── json-ld.html
│ │ │ ├── test.js
│ │ │ └── typescript.html
│ │ ├── jinja2
│ │ │ ├── index.html
│ │ │ └── jinja2.js
│ │ ├── jsx
│ │ │ ├── index.html
│ │ │ ├── jsx.js
│ │ │ └── test.js
│ │ ├── julia
│ │ │ ├── index.html
│ │ │ └── julia.js
│ │ ├── livescript
│ │ │ ├── index.html
│ │ │ └── livescript.js
│ │ ├── lua
│ │ │ ├── index.html
│ │ │ └── lua.js
│ │ ├── markdown
│ │ │ ├── index.html
│ │ │ ├── markdown.js
│ │ │ └── test.js
│ │ ├── mathematica
│ │ │ ├── index.html
│ │ │ └── mathematica.js
│ │ ├── mbox
│ │ │ ├── index.html
│ │ │ └── mbox.js
│ │ ├── meta.js
│ │ ├── mirc
│ │ │ ├── index.html
│ │ │ └── mirc.js
│ │ ├── mllike
│ │ │ ├── index.html
│ │ │ └── mllike.js
│ │ ├── modelica
│ │ │ ├── index.html
│ │ │ └── modelica.js
│ │ ├── mscgen
│ │ │ ├── index.html
│ │ │ ├── mscgen.js
│ │ │ ├── mscgen_test.js
│ │ │ ├── msgenny_test.js
│ │ │ └── xu_test.js
│ │ ├── mumps
│ │ │ ├── index.html
│ │ │ └── mumps.js
│ │ ├── nginx
│ │ │ ├── index.html
│ │ │ └── nginx.js
│ │ ├── nsis
│ │ │ ├── index.html
│ │ │ └── nsis.js
│ │ ├── ntriples
│ │ │ ├── index.html
│ │ │ └── ntriples.js
│ │ ├── octave
│ │ │ ├── index.html
│ │ │ └── octave.js
│ │ ├── oz
│ │ │ ├── index.html
│ │ │ └── oz.js
│ │ ├── pascal
│ │ │ ├── index.html
│ │ │ └── pascal.js
│ │ ├── pegjs
│ │ │ ├── index.html
│ │ │ └── pegjs.js
│ │ ├── perl
│ │ │ ├── index.html
│ │ │ └── perl.js
│ │ ├── php
│ │ │ ├── index.html
│ │ │ ├── php.js
│ │ │ └── test.js
│ │ ├── pig
│ │ │ ├── index.html
│ │ │ └── pig.js
│ │ ├── powershell
│ │ │ ├── index.html
│ │ │ ├── powershell.js
│ │ │ └── test.js
│ │ ├── properties
│ │ │ ├── index.html
│ │ │ └── properties.js
│ │ ├── protobuf
│ │ │ ├── index.html
│ │ │ └── protobuf.js
│ │ ├── pug
│ │ │ ├── index.html
│ │ │ └── pug.js
│ │ ├── puppet
│ │ │ ├── index.html
│ │ │ └── puppet.js
│ │ ├── python
│ │ │ ├── index.html
│ │ │ ├── python.js
│ │ │ └── test.js
│ │ ├── q
│ │ │ ├── index.html
│ │ │ └── q.js
│ │ ├── r
│ │ │ ├── index.html
│ │ │ └── r.js
│ │ ├── rpm
│ │ │ ├── changes
│ │ │ │ └── index.html
│ │ │ ├── index.html
│ │ │ └── rpm.js
│ │ ├── rst
│ │ │ ├── index.html
│ │ │ └── rst.js
│ │ ├── ruby
│ │ │ ├── index.html
│ │ │ ├── ruby.js
│ │ │ └── test.js
│ │ ├── rust
│ │ │ ├── index.html
│ │ │ ├── rust.js
│ │ │ └── test.js
│ │ ├── sas
│ │ │ ├── index.html
│ │ │ └── sas.js
│ │ ├── sass
│ │ │ ├── index.html
│ │ │ ├── sass.js
│ │ │ └── test.js
│ │ ├── scheme
│ │ │ ├── index.html
│ │ │ └── scheme.js
│ │ ├── shell
│ │ │ ├── index.html
│ │ │ ├── shell.js
│ │ │ └── test.js
│ │ ├── sieve
│ │ │ ├── index.html
│ │ │ └── sieve.js
│ │ ├── slim
│ │ │ ├── index.html
│ │ │ ├── slim.js
│ │ │ └── test.js
│ │ ├── smalltalk
│ │ │ ├── index.html
│ │ │ └── smalltalk.js
│ │ ├── smarty
│ │ │ ├── index.html
│ │ │ └── smarty.js
│ │ ├── solr
│ │ │ ├── index.html
│ │ │ └── solr.js
│ │ ├── soy
│ │ │ ├── index.html
│ │ │ ├── soy.js
│ │ │ └── test.js
│ │ ├── sparql
│ │ │ ├── index.html
│ │ │ └── sparql.js
│ │ ├── spreadsheet
│ │ │ ├── index.html
│ │ │ └── spreadsheet.js
│ │ ├── sql
│ │ │ ├── index.html
│ │ │ └── sql.js
│ │ ├── stex
│ │ │ ├── index.html
│ │ │ ├── stex.js
│ │ │ └── test.js
│ │ ├── stylus
│ │ │ ├── index.html
│ │ │ └── stylus.js
│ │ ├── swift
│ │ │ ├── index.html
│ │ │ ├── swift.js
│ │ │ └── test.js
│ │ ├── tcl
│ │ │ ├── index.html
│ │ │ └── tcl.js
│ │ ├── textile
│ │ │ ├── index.html
│ │ │ ├── test.js
│ │ │ └── textile.js
│ │ ├── tiddlywiki
│ │ │ ├── index.html
│ │ │ ├── tiddlywiki.css
│ │ │ └── tiddlywiki.js
│ │ ├── tiki
│ │ │ ├── index.html
│ │ │ ├── tiki.css
│ │ │ └── tiki.js
│ │ ├── toml
│ │ │ ├── index.html
│ │ │ └── toml.js
│ │ ├── tornado
│ │ │ ├── index.html
│ │ │ └── tornado.js
│ │ ├── troff
│ │ │ ├── index.html
│ │ │ └── troff.js
│ │ ├── ttcn-cfg
│ │ │ ├── index.html
│ │ │ └── ttcn-cfg.js
│ │ ├── ttcn
│ │ │ ├── index.html
│ │ │ └── ttcn.js
│ │ ├── turtle
│ │ │ ├── index.html
│ │ │ └── turtle.js
│ │ ├── twig
│ │ │ ├── index.html
│ │ │ └── twig.js
│ │ ├── vb
│ │ │ ├── index.html
│ │ │ └── vb.js
│ │ ├── vbscript
│ │ │ ├── index.html
│ │ │ └── vbscript.js
│ │ ├── velocity
│ │ │ ├── index.html
│ │ │ └── velocity.js
│ │ ├── verilog
│ │ │ ├── index.html
│ │ │ ├── test.js
│ │ │ └── verilog.js
│ │ ├── vhdl
│ │ │ ├── index.html
│ │ │ └── vhdl.js
│ │ ├── vue
│ │ │ ├── index.html
│ │ │ └── vue.js
│ │ ├── webidl
│ │ │ ├── index.html
│ │ │ └── webidl.js
│ │ ├── xml
│ │ │ ├── index.html
│ │ │ ├── test.js
│ │ │ └── xml.js
│ │ ├── xquery
│ │ │ ├── index.html
│ │ │ ├── test.js
│ │ │ └── xquery.js
│ │ ├── yacas
│ │ │ ├── index.html
│ │ │ └── yacas.js
│ │ ├── yaml-frontmatter
│ │ │ ├── index.html
│ │ │ └── yaml-frontmatter.js
│ │ ├── yaml
│ │ │ ├── index.html
│ │ │ └── yaml.js
│ │ └── z80
│ │ │ ├── index.html
│ │ │ └── z80.js
│ │ ├── package.json
│ │ ├── rollup.config.js
│ │ ├── src
│ │ ├── codemirror.js
│ │ ├── display
│ │ │ ├── Display.js
│ │ │ ├── focus.js
│ │ │ ├── gutters.js
│ │ │ ├── highlight_worker.js
│ │ │ ├── line_numbers.js
│ │ │ ├── mode_state.js
│ │ │ ├── operations.js
│ │ │ ├── scroll_events.js
│ │ │ ├── scrollbars.js
│ │ │ ├── scrolling.js
│ │ │ ├── selection.js
│ │ │ ├── update_display.js
│ │ │ ├── update_line.js
│ │ │ ├── update_lines.js
│ │ │ └── view_tracking.js
│ │ ├── edit
│ │ │ ├── CodeMirror.js
│ │ │ ├── commands.js
│ │ │ ├── deleteNearSelection.js
│ │ │ ├── drop_events.js
│ │ │ ├── fromTextArea.js
│ │ │ ├── global_events.js
│ │ │ ├── key_events.js
│ │ │ ├── legacy.js
│ │ │ ├── main.js
│ │ │ ├── methods.js
│ │ │ ├── mouse_events.js
│ │ │ ├── options.js
│ │ │ └── utils.js
│ │ ├── input
│ │ │ ├── ContentEditableInput.js
│ │ │ ├── TextareaInput.js
│ │ │ ├── indent.js
│ │ │ ├── input.js
│ │ │ ├── keymap.js
│ │ │ ├── keynames.js
│ │ │ └── movement.js
│ │ ├── line
│ │ │ ├── highlight.js
│ │ │ ├── line_data.js
│ │ │ ├── pos.js
│ │ │ ├── saw_special_spans.js
│ │ │ ├── spans.js
│ │ │ └── utils_line.js
│ │ ├── measurement
│ │ │ ├── position_measurement.js
│ │ │ └── widgets.js
│ │ ├── model
│ │ │ ├── Doc.js
│ │ │ ├── change_measurement.js
│ │ │ ├── changes.js
│ │ │ ├── chunk.js
│ │ │ ├── document_data.js
│ │ │ ├── history.js
│ │ │ ├── line_widget.js
│ │ │ ├── mark_text.js
│ │ │ ├── selection.js
│ │ │ └── selection_updates.js
│ │ ├── modes.js
│ │ └── util
│ │ │ ├── StringStream.js
│ │ │ ├── bidi.js
│ │ │ ├── browser.js
│ │ │ ├── dom.js
│ │ │ ├── event.js
│ │ │ ├── feature_detection.js
│ │ │ ├── misc.js
│ │ │ └── operation_group.js
│ │ ├── test
│ │ ├── comment_test.js
│ │ ├── contenteditable_test.js
│ │ ├── doc_test.js
│ │ ├── driver.js
│ │ ├── emacs_test.js
│ │ ├── index.html
│ │ ├── lint.js
│ │ ├── mode_test.css
│ │ ├── mode_test.js
│ │ ├── multi_test.js
│ │ ├── phantom_driver.js
│ │ ├── run.js
│ │ ├── scroll_test.js
│ │ ├── search_test.js
│ │ ├── sql-hint-test.js
│ │ ├── sublime_test.js
│ │ ├── test.js
│ │ └── vim_test.js
│ │ └── theme
│ │ ├── 3024-day.css
│ │ ├── 3024-night.css
│ │ ├── abcdef.css
│ │ ├── ambiance-mobile.css
│ │ ├── ambiance.css
│ │ ├── base16-dark.css
│ │ ├── base16-light.css
│ │ ├── bespin.css
│ │ ├── blackboard.css
│ │ ├── cobalt.css
│ │ ├── colorforth.css
│ │ ├── dracula.css
│ │ ├── duotone-dark.css
│ │ ├── duotone-light.css
│ │ ├── eclipse.css
│ │ ├── elegant.css
│ │ ├── erlang-dark.css
│ │ ├── hopscotch.css
│ │ ├── icecoder.css
│ │ ├── isotope.css
│ │ ├── lesser-dark.css
│ │ ├── liquibyte.css
│ │ ├── material.css
│ │ ├── mbo.css
│ │ ├── mdn-like.css
│ │ ├── midnight.css
│ │ ├── monokai.css
│ │ ├── neat.css
│ │ ├── neo.css
│ │ ├── night.css
│ │ ├── panda-syntax.css
│ │ ├── paraiso-dark.css
│ │ ├── paraiso-light.css
│ │ ├── pastel-on-dark.css
│ │ ├── railscasts.css
│ │ ├── rubyblue.css
│ │ ├── seti.css
│ │ ├── solarized.css
│ │ ├── the-matrix.css
│ │ ├── tomorrow-night-bright.css
│ │ ├── tomorrow-night-eighties.css
│ │ ├── ttcn.css
│ │ ├── twilight.css
│ │ ├── vibrant-ink.css
│ │ ├── xq-dark.css
│ │ ├── xq-light.css
│ │ ├── yeti.css
│ │ └── zenburn.css
│ ├── JavaScript
│ ├── Inspector
│ │ └── Validators
│ │ │ └── ColorValidator.js
│ ├── Main.js
│ └── fontSelector.js
│ └── Styles
│ └── ThemeModule.css
├── bower.json
└── composer.json
/.bowerrc:
--------------------------------------------------------------------------------
1 | {
2 | "directory": "Resources/Public/Components/"
3 | }
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | Resources/Public/Components/* linguist-vendored
2 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Created by .ignore support plugin (hsz.mobi)
2 | .idea/
--------------------------------------------------------------------------------
/Classes/Domain/Repository/SettingsRepository.php:
--------------------------------------------------------------------------------
1 | createQuery();
34 |
35 | return $query->execute()->getFirst();
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/Classes/FileUtility.php:
--------------------------------------------------------------------------------
1 | domainRepository->findOneByActiveRequest();
40 | if ($domain === null) {
41 | return $this->siteRepository->findDefault()->getSiteResourcesPackageKey();
42 | }
43 |
44 | return $domain->getSite()->getSiteResourcesPackageKey();
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/Configuration/Caches.yaml:
--------------------------------------------------------------------------------
1 | CM_Neos_ThemeModule_Service_Build_CacheFrontend:
2 | frontend: Neos\Cache\Frontend\VariableFrontend
3 | backend: Neos\Cache\Backend\FileBackend
4 | backendOptions:
5 | defaultLifetime: 604800
6 |
--------------------------------------------------------------------------------
/Configuration/Objects.yaml:
--------------------------------------------------------------------------------
1 | CM\Neos\ThemeModule\Service\Build:
2 | properties:
3 | cacheFrontend:
4 | object:
5 | factoryObjectName: Neos\Flow\Cache\CacheManager
6 | factoryMethodName: getCache
7 | arguments:
8 | 1:
9 | value: CM_Neos_ThemeModule_Service_Build_CacheFrontend
10 |
--------------------------------------------------------------------------------
/Configuration/Policy.yaml:
--------------------------------------------------------------------------------
1 | privilegeTargets:
2 | 'Neos\Flow\Security\Authorization\Privilege\Method\MethodPrivilege':
3 | 'CM.Neos.ThemeModule:BackendModule':
4 | matcher: 'method(CM\Neos\ThemeModule\Controller\BackendController->.*Action())'
5 |
6 | roles:
7 | 'Neos.Neos:Administrator':
8 | privileges:
9 | -
10 | privilegeTarget: 'CM.Neos.ThemeModule:BackendModule'
11 | permission: GRANT
12 |
--------------------------------------------------------------------------------
/Documentation/Neos-Theme-Module.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coders-market/CM.Neos.ThemeModule/1c702a42adf24b20300f8c7ab7b3ce3ad69e0dff/Documentation/Neos-Theme-Module.jpg
--------------------------------------------------------------------------------
/Documentation/Neos-Theme-Module2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coders-market/CM.Neos.ThemeModule/1c702a42adf24b20300f8c7ab7b3ce3ad69e0dff/Documentation/Neos-Theme-Module2.jpg
--------------------------------------------------------------------------------
/Migrations/Mysql/Version20170418223039.php:
--------------------------------------------------------------------------------
1 | abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');
27 |
28 | $this->addSql('CREATE TABLE cm_neos_thememodule_domain_model_settings (persistence_object_identifier VARCHAR(40) NOT NULL, customscss LONGTEXT DEFAULT NULL, customcss LONGTEXT DEFAULT NULL, customsettings LONGTEXT DEFAULT NULL, PRIMARY KEY(persistence_object_identifier)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB');
29 | }
30 |
31 | /**
32 | * @param Schema $schema
33 | * @return void
34 | */
35 | public function down(Schema $schema)
36 | {
37 | $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');
38 |
39 | $this->addSql('DROP TABLE cm_neos_thememodule_domain_model_settings');
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/Migrations/Mysql/Version20171018221633.php:
--------------------------------------------------------------------------------
1 | abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');
27 |
28 | $this->addSql('ALTER TABLE cm_neos_thememodule_domain_model_settings CHANGE customscss customscss LONGTEXT NOT NULL, CHANGE customcss customcss LONGTEXT NOT NULL, CHANGE customsettings customsettings LONGTEXT NOT NULL');
29 | }
30 |
31 | /**
32 | * @param Schema $schema
33 | * @return void
34 | */
35 | public function down(Schema $schema)
36 | {
37 | $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');
38 |
39 | $this->addSql('ALTER TABLE cm_neos_thememodule_domain_model_settings CHANGE customscss customscss LONGTEXT DEFAULT NULL, CHANGE customcss customcss LONGTEXT DEFAULT NULL, CHANGE customsettings customsettings LONGTEXT DEFAULT NULL');
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/Migrations/Mysql/Version20171019001547.php:
--------------------------------------------------------------------------------
1 | abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');
27 |
28 | $this->addSql('ALTER TABLE cm_neos_thememodule_domain_model_settings DROP PRIMARY KEY');
29 | $this->addSql('ALTER TABLE cm_neos_thememodule_domain_model_settings ADD packagekey VARCHAR(255) DEFAULT \'\' NOT NULL, DROP persistence_object_identifier');
30 | $this->addSql('ALTER TABLE cm_neos_thememodule_domain_model_settings ADD PRIMARY KEY (packagekey)');
31 | }
32 |
33 | /**
34 | * @param Schema $schema
35 | * @return void
36 | */
37 | public function down(Schema $schema)
38 | {
39 | $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');
40 |
41 | $this->addSql('ALTER TABLE cm_neos_thememodule_domain_model_settings DROP PRIMARY KEY');
42 | $this->addSql('ALTER TABLE cm_neos_thememodule_domain_model_settings ADD persistence_object_identifier VARCHAR(40) NOT NULL COLLATE utf8_unicode_ci, DROP packagekey');
43 | $this->addSql('ALTER TABLE cm_neos_thememodule_domain_model_settings ADD PRIMARY KEY (persistence_object_identifier)');
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/Migrations/Postgresql/Version20171015140356.php:
--------------------------------------------------------------------------------
1 | abortIf($this->connection->getDatabasePlatform()->getName() != 'postgresql', 'Migration can only be executed safely on "postgresql".');
27 |
28 | $this->addSql('CREATE TABLE cm_neos_thememodule_domain_model_settings (persistence_object_identifier VARCHAR(40) NOT NULL, customscss TEXT DEFAULT \'\', customcss TEXT DEFAULT \'\', customsettings TEXT DEFAULT \'\', PRIMARY KEY(persistence_object_identifier))');
29 | }
30 |
31 | /**
32 | * @param Schema $schema
33 | * @return void
34 | */
35 | public function down(Schema $schema)
36 | {
37 | $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'postgresql', 'Migration can only be executed safely on "postgresql".');
38 |
39 | $this->addSql('DROP TABLE cm_neos_thememodule_domain_model_settings');
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/Migrations/Postgresql/Version20171019000136.php:
--------------------------------------------------------------------------------
1 | abortIf($this->connection->getDatabasePlatform()->getName() != 'postgresql', 'Migration can only be executed safely on "postgresql".');
27 |
28 | $this->addSql('ALTER TABLE cm_neos_thememodule_domain_model_settings ADD packagekey VARCHAR(255) DEFAULT \'\'');
29 | $this->addSql('ALTER TABLE cm_neos_thememodule_domain_model_settings DROP persistence_object_identifier');
30 | $this->addSql('ALTER TABLE cm_neos_thememodule_domain_model_settings ADD PRIMARY KEY (packagekey)');
31 | }
32 |
33 | /**
34 | * @param Schema $schema
35 | * @return void
36 | */
37 | public function down(Schema $schema)
38 | {
39 | $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'postgresql', 'Migration can only be executed safely on "postgresql".');
40 |
41 | $this->addSql('DROP INDEX cm_neos_thememodule_domain_model_settings_pkey');
42 | $this->addSql('ALTER TABLE cm_neos_thememodule_domain_model_settings ADD persistence_object_identifier VARCHAR(40) NOT NULL');
43 | $this->addSql('ALTER TABLE cm_neos_thememodule_domain_model_settings DROP packagekey');
44 | $this->addSql('ALTER TABLE cm_neos_thememodule_domain_model_settings ADD PRIMARY KEY (persistence_object_identifier)');
45 | }
46 | }
--------------------------------------------------------------------------------
/Resources/Private/Fusion/Root.fusion:
--------------------------------------------------------------------------------
1 | prototype(CM.Neos.ThemeModule:Font){
2 | @class = 'CM\\Neos\\ThemeModule\\Fusion\\FontImplementation'
3 | url = ''
4 | variants = ''
5 | subsets = ''
6 | fontSource = 'FONT_SOURCE_GOOGLE'
7 | }
8 |
9 | prototype(Neos.Neos:Page) {
10 | head.cmfont = CM.Neos.ThemeModule:Font
11 | head.cmfont {
12 | @position = 'after titleTag'
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/Resources/Private/Translations/en/Main.xlf:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Theme Settings
7 |
8 |
9 | Target package
10 |
11 |
12 | Save Changes
13 |
14 |
15 | Select your font
16 |
17 |
18 | Theme default selected
19 |
20 |
21 | Font fallback
22 |
23 |
24 | Font variants
25 |
26 |
27 | Font subsets
28 |
29 |
30 | Your custom scss code to append: (Press Ctrl+Space for code completion)
31 |
32 |
33 | Your custom css code to append: (Press Ctrl+Space for code completion)
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/.bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "bootstrap-colorpicker",
3 | "main": [
4 | "dist/css/bootstrap-colorpicker.css",
5 | "dist/js/bootstrap-colorpicker.js"
6 | ],
7 | "dependencies": {
8 | "jquery": ">=1.10"
9 | },
10 | "ignore": [
11 | "\\.*",
12 | "/index.html",
13 | "/package.json",
14 | "/composer.json",
15 | "/Gruntfile.js",
16 | "/.travis.yml",
17 | "/travis.sh",
18 | "/server.js"
19 | ],
20 | "homepage": "https://github.com/itsjavi/bootstrap-colorpicker",
21 | "version": "2.5.1",
22 | "_release": "2.5.1",
23 | "_resolution": {
24 | "type": "version",
25 | "tag": "2.5.1",
26 | "commit": "db978b4d8c3436cdaed6e3a1a065f9f47bb686b1"
27 | },
28 | "_source": "https://github.com/itsjavi/bootstrap-colorpicker.git",
29 | "_target": "^2.5.1",
30 | "_originalSource": "bootstrap-colorpicker",
31 | "_direct": true
32 | }
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright 2012 Stefan Petre
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/README.md:
--------------------------------------------------------------------------------
1 | # Bootstrap Colorpicker 2
2 |
3 | Fancy and customizable color picker plugin for Twitter Bootstrap
4 |
5 | [](https://travis-ci.org/itsjavi/bootstrap-colorpicker)
6 |
7 | ## Installation
8 | For downloading the source code, you have many choices:
9 |
10 | - Downloading the [latest source code ZIP file](https://github.com/itsjavi/bootstrap-colorpicker/archive/master.zip)
11 | - Cloning the source code: `git clone https://github.com/itsjavi/bootstrap-colorpicker.git`
12 | - Installing via Bower: `bower install bootstrap-colorpicker`
13 | - Installing via NPM: `npm install bootstrap-colorpicker`
14 | - Installing via Composer: `composer require itsjavi/bootstrap-colorpicker`
15 |
16 | ## Getting started
17 | - For using the plugin you will only need the files under the `dist` folder
18 | - You can read the [documentation here](https://itsjavi.com/bootstrap-colorpicker/)
19 |
20 | ## Contributing and reporting issues
21 | If you want to contribute to the source code or report issues and suggestions, please read the [CONTRIBUTING.md](CONTRIBUTING.md) guidelines first. Some steps are mandatory in order to accept a Pull Request.
22 |
23 | ## Credits
24 | Originally written by [Stefan Petre](http://www.eyecon.ro/)
25 |
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "bootstrap-colorpicker",
3 | "main": [
4 | "dist/css/bootstrap-colorpicker.css",
5 | "dist/js/bootstrap-colorpicker.js"
6 | ],
7 | "dependencies": {
8 | "jquery": ">=1.10"
9 | },
10 | "ignore": [
11 | "\\.*",
12 | "/index.html",
13 | "/package.json",
14 | "/composer.json",
15 | "/Gruntfile.js",
16 | "/.travis.yml",
17 | "/travis.sh",
18 | "/server.js"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/dist/css/bootstrap-colorpicker.min.css.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":["src/less/colorpicker.less"],"names":[],"mappings":";;;;;;;;AAqBA,wBACE,MAAA,MACA,OAAA,MAXA,iBAAsB,iDAatB,OAAA,UACA,MAAA,KACA,0BACE,QAAA,MACA,OAAA,IACA,MAAA,IACA,OAAA,IAAA,MAAA,KAfF,sBAAA,IACA,mBAAA,IACA,cAAA,IAeE,SAAA,SACA,IAAA,EACA,KAAA,EACA,OAAA,KAAA,EAAA,EAAA,KACA,4BACE,QAAA,MACA,OAAA,IACA,MAAA,IACA,OAAA,IAAA,MAAA,KAzBJ,sBAAA,IACA,mBAAA,IACA,cAAA,IA8BF,mBADA,iBAEE,MAAA,KACA,OAAA,MACA,MAAA,KACA,OAAA,WACA,YAAA,IACA,cAAA,IAIiB,qBADF,mBAEf,QAAA,MACA,OAAA,IACA,WAAA,KACA,WAAA,IAAA,MAAA,KACA,SAAA,SACA,IAAA,EACA,KAAA,EACA,MAAA,KACA,WAAA,KAGF,iBA1DE,iBAAsB,0CA8DxB,mBA9DE,iBAAsB,4CAgEtB,QAAA,KAKF,mBADA,iBADA,wBAGE,gBAAA,QAGF,aACE,QAAA,IACA,UAAA,MACA,WAAA,IAxEA,sBAAA,IACA,mBAAA,IACA,cAAA,IAwEA,QAAA,KAIU,mBADA,oBAEV,QAAA,MACA,QAAA,GACA,YAAA,EAGU,mBACV,MAAA,KAGU,oBACV,QAAA,GACA,QAAA,aACA,YAAA,IAAA,MAAA,YACA,aAAA,IAAA,MAAA,YACA,cAAA,IAAA,MAAA,KACA,oBAAA,eACA,SAAA,SACA,IAAA,KACA,KAAA,IAGU,mBACV,QAAA,GACA,QAAA,aACA,YAAA,IAAA,MAAA,YACA,aAAA,IAAA,MAAA,YACA,cAAA,IAAA,MAAA,KACA,SAAA,SACA,IAAA,KACA,KAAA,IAGW,iBACX,SAAA,SAGU,oCACV,UAAA,MAGkC,uDAClC,QAAA,MAGF,mBACE,OAAA,KACA,WAAA,IACA,MAAA,KAlIA,iBAAsB,4CAoItB,oBAAA,EAAA,KAGiB,uBACjB,OAAA,KAGF,uBACE,QAAA,KACA,OAAA,KACA,WAAA,IACA,MAAA,KAGqB,yBACrB,OAAA,QACA,MAAA,KACA,OAAA,KACA,MAAA,KAGuB,2BACvB,YAAA,IAI2B,+BADW,0CAEtC,QAAA,aACA,OAAA,QACA,OAAA,KACA,eAAA,SACA,MAAA,KAGU,gCACV,SAAA,SACA,QAAA,aACA,MAAA,KACA,QAAA,KAGU,oCACV,MAAA,MACA,UAAA,MACA,OAAA,KAGkC,4DAClC,cAAA,IAGkC,uDAClC,MAAA,MAIkC,uDADA,qDAElC,MAAA,MACA,OAAA,KACA,MAAA,KACA,OAAA,WACA,YAAA,EACA,cAAA,IAIqD,yDADF,uDAEnD,QAAA,MACA,OAAA,KACA,WAAA,KACA,SAAA,SACA,IAAA,EACA,KAAA,EACA,MAAA,IACA,OAAA,KACA,WAAA,EAGkC,qDAlNlC,iBAAsB,qDAsNY,uDAtNlC,iBAAsB,uDA0NN,0BAChB,KAAA,KACA,MAAA,IAGgB,yBAChB,KAAA,KACA,MAAA,IAGmB,6BACnB,aAAA,EACA,YAAA,EAGmB,4BACnB,aAAA,EACA,YAAA,EAQC,uCAAA,qCAAA,4CAAA,2CAAA,iCACC,QAAA,MASD,sCAAA,oCAAA,2CAAA,0CAAA,gCACC,QAAA,KAIe,wCACjB,QAAA"}
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/dist/img/bootstrap-colorpicker/alpha-horizontal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coders-market/CM.Neos.ThemeModule/1c702a42adf24b20300f8c7ab7b3ce3ad69e0dff/Resources/Public/Components/bootstrap-colorpicker/dist/img/bootstrap-colorpicker/alpha-horizontal.png
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/dist/img/bootstrap-colorpicker/alpha.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coders-market/CM.Neos.ThemeModule/1c702a42adf24b20300f8c7ab7b3ce3ad69e0dff/Resources/Public/Components/bootstrap-colorpicker/dist/img/bootstrap-colorpicker/alpha.png
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/dist/img/bootstrap-colorpicker/hue-horizontal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coders-market/CM.Neos.ThemeModule/1c702a42adf24b20300f8c7ab7b3ce3ad69e0dff/Resources/Public/Components/bootstrap-colorpicker/dist/img/bootstrap-colorpicker/hue-horizontal.png
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/dist/img/bootstrap-colorpicker/hue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coders-market/CM.Neos.ThemeModule/1c702a42adf24b20300f8c7ab7b3ce3ad69e0dff/Resources/Public/Components/bootstrap-colorpicker/dist/img/bootstrap-colorpicker/hue.png
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/dist/img/bootstrap-colorpicker/saturation.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coders-market/CM.Neos.ThemeModule/1c702a42adf24b20300f8c7ab7b3ce3ad69e0dff/Resources/Public/Components/bootstrap-colorpicker/dist/img/bootstrap-colorpicker/saturation.png
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/docs/assets/main.css:
--------------------------------------------------------------------------------
1 | .container {
2 | background: #fff;
3 | }
4 |
5 | h4 ~ p {
6 | padding-left: 20px;
7 | }
8 |
9 | .well .markup,
10 | .example-content .example-code {
11 | background: #2B2B2B;
12 | color: #BABABA;
13 | position: relative;
14 | padding: 15px 15px 15px;
15 | margin: 15px 0 0 0;
16 | border-radius: 0 0 4px 4px;
17 | box-shadow: none;
18 | font-size: 12px;
19 | line-height: 1.42857143;
20 | word-break: break-all;
21 | word-wrap: break-word;
22 | border: 1px solid #000;
23 | font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
24 | white-space: pre;
25 | overflow: auto;
26 | }
27 |
28 | .well .markup::after {
29 | content: "Source code";
30 | position: absolute;
31 | top: 15px;
32 | left: 15px;
33 | font-size: 12px;
34 | font-weight: bold;
35 | color: #eee;
36 | text-transform: uppercase;
37 | letter-spacing: 1px;
38 | }
39 |
40 | .share-btn {
41 | vertical-align: middle;
42 | display: inline-block;
43 | font-size: 12px;
44 | line-height: 1.5;
45 | }
46 |
47 |
48 | .example-title{
49 | font-size: 14px;
50 | margin: 10px 0 10px 2px;
51 | font-weight: bold;
52 | }
53 | .example-description{
54 | margin: 10px 0 10px 2px;
55 | }
56 | .example-code{
57 | display:none;
58 | }
59 | .example-content-widget{
60 | margin-bottom: 2px;
61 | }
62 |
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/docs/helpers/code/index.js:
--------------------------------------------------------------------------------
1 | var beautify = require('js-beautify').html;
2 |
3 | var entityMap = {
4 | "&": "&",
5 | "<": "<",
6 | ">": ">",
7 | '"': '"',
8 | "'": ''',
9 | "/": '/'
10 | };
11 | module.exports.register = function (Handlebars, options) {
12 | Handlebars.registerHelper('code', function (hboptions) {
13 | var codeStr = beautify(String(hboptions.fn(this)).trim(), {
14 | "wrap_line_length": 80,
15 | "wrap_attributes": "auto",
16 | "indent_scripts": "normal"
17 | }).replace(/[&<>"'\/]/g, function (s) {
18 | return entityMap[s];
19 | });
20 |
21 | return '
' + codeStr + '
';
22 | });
23 | };
24 |
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/docs/includes/example.hbs:
--------------------------------------------------------------------------------
1 |
2 |
{{title}}
3 | {{#if description}}
{{description}}
{{/if}}
4 |
5 |
6 | {{> (lookup . 'content') }}
7 |
8 |
View source
9 | {{#code}}
10 | {{> (lookup . 'content') }}
11 | {{/code}}
12 |
13 |
14 |
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/docs/includes/examples.hbs:
--------------------------------------------------------------------------------
1 | Examples
2 |
3 |
4 | {{> example title="Simple input field" content="01_basic" }}
5 | {{> example title="As a component" content="02_component" }}
6 | {{> example title="With custom options" description="Sample overriding the initial color and format" content="03_component_options" }}
7 | {{> example title="Working with events" content="04_events" }}
8 | {{> example title="Transparent color support" content="05_transparent" }}
9 | {{> example title="Horizontal mode" content="06_horizontal" }}
10 | {{> example title="Inline mode" content="07_inline" }}
11 | {{> example title="Aliased color palette" content="08_palette" }}
12 | {{> example title="Customized widget size" description="Also showing the support of HTML color names" content="09_size" }}
13 | {{> example title="Disabled / enabled status" content="10_disabled" }}
14 | {{> example title="Inside a modal" content="11_modal" }}
15 |
16 |
17 |
24 |
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/docs/includes/examples/01_basic.hbs:
--------------------------------------------------------------------------------
1 |
2 |
7 |
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/docs/includes/examples/02_component.hbs:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
10 |
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/docs/includes/examples/03_component_options.hbs:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
13 |
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/docs/includes/examples/04_events.hbs:
--------------------------------------------------------------------------------
1 | Change background color
2 |
9 |
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/docs/includes/examples/05_transparent.hbs:
--------------------------------------------------------------------------------
1 |
2 |
10 |
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/docs/includes/examples/06_horizontal.hbs:
--------------------------------------------------------------------------------
1 |
2 |
10 |
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/docs/includes/examples/07_inline.hbs:
--------------------------------------------------------------------------------
1 |
2 |
7 |
16 |
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/docs/includes/examples/08_palette.hbs:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
22 |
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/docs/includes/examples/09_size.hbs:
--------------------------------------------------------------------------------
1 |
2 |
19 |
38 |
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/docs/includes/examples/10_disabled.hbs:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Enable
8 | Disable
9 |
10 |
24 |
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/docs/includes/examples/11_modal.hbs:
--------------------------------------------------------------------------------
1 |
2 | Show modal
3 |
4 |
16 |
21 |
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/docs/layout.hbs:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Colorpicker for Twitter Bootstrap
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | {{> body }}
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/docs/pages/index.hbs:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 | {{package.description}}.
10 | Originally written by Stefan Petre and maintained by
12 | Javi Aguilar and the Github community.
13 |
14 |
15 |
16 | {{> social }}
17 |
18 |
19 | {{> api }}
20 |
21 |
22 | {{> examples }}
23 |
24 |
25 |
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/serve.js:
--------------------------------------------------------------------------------
1 | /*
2 | Script for serving index.html and other static content with Node.
3 | Run it using `node serve` from your terminal and navigate to http://localhost:5000
4 | in order to test your changes in the browser.
5 | */
6 |
7 | var http = require('http'), fs = require('fs'), mimeTypes = {
8 | 'html': 'text/html',
9 | 'css': 'text/css',
10 | 'js': 'text/javascript',
11 | 'json': 'application/json',
12 | 'png': 'image/png',
13 | 'jpg': 'image/jpg'
14 | };
15 |
16 | http.createServer(function (req, res) {
17 | var file = (req.url === '/') ? 'index.html' : "." + req.url;
18 | var ext = require('path').extname(file),
19 | type = (mimeTypes[ext] ? mimeTypes[ext] : '');
20 |
21 | fs.exists(file, function (exists) {
22 | if (exists) {
23 | res.writeHead(200, {'Content-Type': type});
24 | fs.createReadStream(file).pipe(res);
25 | } else {
26 | console.warn(file, ' does not exit');
27 | }
28 | });
29 | }).listen(5000);
30 |
31 | console.log("Your bootstrap-colorpicker development URL is http://localhost:5000");
32 |
--------------------------------------------------------------------------------
/Resources/Public/Components/bootstrap-colorpicker/src/js/colorpicker-plugin-wrapper.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * Bootstrap Colorpicker v2.5.1
3 | * https://itsjavi.com/bootstrap-colorpicker/
4 | *
5 | * Originally written by (c) 2012 Stefan Petre
6 | * Licensed under the Apache License v2.0
7 | * http://www.apache.org/licenses/LICENSE-2.0.txt
8 | *
9 | */
10 |
11 | (function(root, factory) {
12 | if (typeof define === 'function' && define.amd) {
13 | // AMD. Register as an anonymous module unless amdModuleId is set
14 | define(["jquery"], function(jq) {
15 | return (factory(jq));
16 | });
17 | } else if (typeof exports === 'object') {
18 | // Node. Does not work with strict CommonJS, but
19 | // only CommonJS-like environments that support module.exports,
20 | // like Node.
21 | module.exports = factory(require("jquery"));
22 | } else if (jQuery && !jQuery.fn.colorpicker) {
23 | factory(jQuery);
24 | }
25 | }(this, function($) {
26 | 'use strict';
27 | //@colorpicker-color
28 | //@colorpicker-defaults
29 | //@colorpicker-component
30 | }));
31 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror-scss-linter/scss-lint.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 |
5 | (function (mod) {
6 | if (typeof exports == "object" && typeof module == "object") // CommonJS
7 | mod(require("../../lib/codemirror"));
8 | else if (typeof define == "function" && define.amd) // AMD
9 | define(["../../lib/codemirror"], mod);
10 | else // Plain browser env
11 | mod(CodeMirror);
12 | })(function (CodeMirror) {
13 | "use strict";
14 |
15 | CodeMirror.registerHelper("lint", "scss", function (text, options) {
16 | var found = [];
17 | if (!window.SCSSLint) return found;
18 | var results = SCSSLint.verify(text, options),
19 | messages = results.messages,
20 | message = null;
21 | for (var i = 0; i < messages.length; i++) {
22 | message = messages[i];
23 | var startLine = message.line - 1,
24 | endLine = message.line - 1,
25 | startCol = message.col - 1,
26 | endCol = message.col;
27 | found.push({
28 | from: CodeMirror.Pos(startLine, startCol),
29 | to: CodeMirror.Pos(endLine, endCol),
30 | message: message.message,
31 | severity: message.type
32 | });
33 | }
34 | return found;
35 | });
36 |
37 | });
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/.gitattributes:
--------------------------------------------------------------------------------
1 | *.txt text
2 | *.js text
3 | *.html text
4 | *.md text
5 | *.json text
6 | *.yml text
7 | *.css text
8 | *.svg text
9 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/.npmignore:
--------------------------------------------------------------------------------
1 | /node_modules
2 | /demo
3 | /doc
4 | /test
5 | /test*.html
6 | /index.html
7 | /mode/*/*test.js
8 | /mode/*/*.html
9 | /mode/index.html
10 | .*
11 | bin
12 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - stable
4 | sudo: false
5 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (C) 2017 by Marijn Haverbeke and others
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/README.md:
--------------------------------------------------------------------------------
1 | # CodeMirror
2 | [](https://travis-ci.org/codemirror/CodeMirror)
3 | [](https://www.npmjs.org/package/codemirror)
4 | [](https://gitter.im/codemirror/CodeMirror)
5 | [Funding status: ](https://marijnhaverbeke.nl/fund/)
6 |
7 | CodeMirror is a versatile text editor implemented in JavaScript for
8 | the browser. It is specialized for editing code, and comes with over
9 | 100 language modes and various addons that implement more advanced
10 | editing functionality.
11 |
12 | A rich programming API and a CSS theming system are available for
13 | customizing CodeMirror to fit your application, and extending it with
14 | new functionality.
15 |
16 | You can find more information (and the
17 | [manual](http://codemirror.net/doc/manual.html)) on the [project
18 | page](http://codemirror.net). For questions and discussion, use the
19 | [discussion forum](https://discuss.codemirror.net/).
20 |
21 | See
22 | [CONTRIBUTING.md](https://github.com/codemirror/CodeMirror/blob/master/CONTRIBUTING.md)
23 | for contributing guidelines.
24 |
25 | The CodeMirror community aims to be welcoming to everybody. We use the
26 | [Contributor Covenant
27 | (1.1)](http://contributor-covenant.org/version/1/1/0/) as our code of
28 | conduct.
29 |
30 | ### Quickstart
31 |
32 | To build the project, make sure you have Node.js installed (at least version 6)
33 | and then `npm install`. To run, just open `index.html` in your
34 | browser (you don't need to run a webserver). Run the tests with `npm test`.
35 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/addon/dialog/dialog.css:
--------------------------------------------------------------------------------
1 | .CodeMirror-dialog {
2 | position: absolute;
3 | left: 0; right: 0;
4 | background: inherit;
5 | z-index: 15;
6 | padding: .1em .8em;
7 | overflow: hidden;
8 | color: inherit;
9 | }
10 |
11 | .CodeMirror-dialog-top {
12 | border-bottom: 1px solid #eee;
13 | top: 0;
14 | }
15 |
16 | .CodeMirror-dialog-bottom {
17 | border-top: 1px solid #eee;
18 | bottom: 0;
19 | }
20 |
21 | .CodeMirror-dialog input {
22 | border: none;
23 | outline: none;
24 | background: transparent;
25 | width: 20em;
26 | color: inherit;
27 | font-family: monospace;
28 | }
29 |
30 | .CodeMirror-dialog button {
31 | font-size: 70%;
32 | }
33 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/addon/display/autorefresh.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"))
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod)
9 | else // Plain browser env
10 | mod(CodeMirror)
11 | })(function(CodeMirror) {
12 | "use strict"
13 |
14 | CodeMirror.defineOption("autoRefresh", false, function(cm, val) {
15 | if (cm.state.autoRefresh) {
16 | stopListening(cm, cm.state.autoRefresh)
17 | cm.state.autoRefresh = null
18 | }
19 | if (val && cm.display.wrapper.offsetHeight == 0)
20 | startListening(cm, cm.state.autoRefresh = {delay: val.delay || 250})
21 | })
22 |
23 | function startListening(cm, state) {
24 | function check() {
25 | if (cm.display.wrapper.offsetHeight) {
26 | stopListening(cm, state)
27 | if (cm.display.lastWrapHeight != cm.display.wrapper.clientHeight)
28 | cm.refresh()
29 | } else {
30 | state.timeout = setTimeout(check, state.delay)
31 | }
32 | }
33 | state.timeout = setTimeout(check, state.delay)
34 | state.hurry = function() {
35 | clearTimeout(state.timeout)
36 | state.timeout = setTimeout(check, 50)
37 | }
38 | CodeMirror.on(window, "mouseup", state.hurry)
39 | CodeMirror.on(window, "keyup", state.hurry)
40 | }
41 |
42 | function stopListening(_cm, state) {
43 | clearTimeout(state.timeout)
44 | CodeMirror.off(window, "mouseup", state.hurry)
45 | CodeMirror.off(window, "keyup", state.hurry)
46 | }
47 | });
48 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/addon/display/fullscreen.css:
--------------------------------------------------------------------------------
1 | .CodeMirror-fullscreen {
2 | position: fixed;
3 | top: 0; left: 0; right: 0; bottom: 0;
4 | height: auto;
5 | z-index: 9;
6 | }
7 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/addon/display/fullscreen.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | "use strict";
13 |
14 | CodeMirror.defineOption("fullScreen", false, function(cm, val, old) {
15 | if (old == CodeMirror.Init) old = false;
16 | if (!old == !val) return;
17 | if (val) setFullscreen(cm);
18 | else setNormal(cm);
19 | });
20 |
21 | function setFullscreen(cm) {
22 | var wrap = cm.getWrapperElement();
23 | cm.state.fullScreenRestore = {scrollTop: window.pageYOffset, scrollLeft: window.pageXOffset,
24 | width: wrap.style.width, height: wrap.style.height};
25 | wrap.style.width = "";
26 | wrap.style.height = "auto";
27 | wrap.className += " CodeMirror-fullscreen";
28 | document.documentElement.style.overflow = "hidden";
29 | cm.refresh();
30 | }
31 |
32 | function setNormal(cm) {
33 | var wrap = cm.getWrapperElement();
34 | wrap.className = wrap.className.replace(/\s*CodeMirror-fullscreen\b/, "");
35 | document.documentElement.style.overflow = "";
36 | var info = cm.state.fullScreenRestore;
37 | wrap.style.width = info.width; wrap.style.height = info.height;
38 | window.scrollTo(info.scrollLeft, info.scrollTop);
39 | cm.refresh();
40 | }
41 | });
42 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/addon/edit/continuelist.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | "use strict";
13 |
14 | var listRE = /^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,
15 | emptyListRE = /^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,
16 | unorderedListRE = /[*+-]\s/;
17 |
18 | CodeMirror.commands.newlineAndIndentContinueMarkdownList = function(cm) {
19 | if (cm.getOption("disableInput")) return CodeMirror.Pass;
20 | var ranges = cm.listSelections(), replacements = [];
21 | for (var i = 0; i < ranges.length; i++) {
22 | var pos = ranges[i].head;
23 | var eolState = cm.getStateAfter(pos.line);
24 | var inList = eolState.list !== false;
25 | var inQuote = eolState.quote !== 0;
26 |
27 | var line = cm.getLine(pos.line), match = listRE.exec(line);
28 | if (!ranges[i].empty() || (!inList && !inQuote) || !match) {
29 | cm.execCommand("newlineAndIndent");
30 | return;
31 | }
32 | if (emptyListRE.test(line)) {
33 | if (!/>\s*$/.test(line)) cm.replaceRange("", {
34 | line: pos.line, ch: 0
35 | }, {
36 | line: pos.line, ch: pos.ch + 1
37 | });
38 | replacements[i] = "\n";
39 | } else {
40 | var indent = match[1], after = match[5];
41 | var bullet = unorderedListRE.test(match[2]) || match[2].indexOf(">") >= 0
42 | ? match[2].replace("x", " ")
43 | : (parseInt(match[3], 10) + 1) + match[4];
44 |
45 | replacements[i] = "\n" + indent + bullet + after;
46 | }
47 | }
48 |
49 | cm.replaceSelections(replacements);
50 | };
51 | });
52 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/addon/edit/trailingspace.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | CodeMirror.defineOption("showTrailingSpace", false, function(cm, val, prev) {
13 | if (prev == CodeMirror.Init) prev = false;
14 | if (prev && !val)
15 | cm.removeOverlay("trailingspace");
16 | else if (!prev && val)
17 | cm.addOverlay({
18 | token: function(stream) {
19 | for (var l = stream.string.length, i = l; i && /\s/.test(stream.string.charAt(i - 1)); --i) {}
20 | if (i > stream.pos) { stream.pos = i; return null; }
21 | stream.pos = l;
22 | return "trailingspace";
23 | },
24 | name: "trailingspace"
25 | });
26 | });
27 | });
28 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/addon/fold/foldgutter.css:
--------------------------------------------------------------------------------
1 | .CodeMirror-foldmarker {
2 | color: blue;
3 | text-shadow: #b9f 1px 1px 2px, #b9f -1px -1px 2px, #b9f 1px -1px 2px, #b9f -1px 1px 2px;
4 | font-family: arial;
5 | line-height: .3;
6 | cursor: pointer;
7 | }
8 | .CodeMirror-foldgutter {
9 | width: .7em;
10 | }
11 | .CodeMirror-foldgutter-open,
12 | .CodeMirror-foldgutter-folded {
13 | cursor: pointer;
14 | }
15 | .CodeMirror-foldgutter-open:after {
16 | content: "\25BE";
17 | }
18 | .CodeMirror-foldgutter-folded:after {
19 | content: "\25B8";
20 | }
21 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/addon/fold/indent-fold.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | "use strict";
13 |
14 | function lineIndent(cm, lineNo) {
15 | var text = cm.getLine(lineNo)
16 | var spaceTo = text.search(/\S/)
17 | if (spaceTo == -1 || /\bcomment\b/.test(cm.getTokenTypeAt(CodeMirror.Pos(lineNo, spaceTo + 1))))
18 | return -1
19 | return CodeMirror.countColumn(text, null, cm.getOption("tabSize"))
20 | }
21 | !
22 | CodeMirror.registerHelper("fold", "indent", function(cm, start) {
23 | var myIndent = lineIndent(cm, start.line)
24 | if (myIndent < 0) return
25 | var lastLineInFold = null
26 |
27 | // Go through lines until we find a line that definitely doesn't belong in
28 | // the block we're folding, or to the end.
29 | for (var i = start.line + 1, end = cm.lastLine(); i <= end; ++i) {
30 | var indent = lineIndent(cm, i)
31 | if (indent == -1) {
32 | } else if (indent > myIndent) {
33 | // Lines with a greater indent are considered part of the block.
34 | lastLineInFold = i;
35 | } else {
36 | // If this line has non-space, non-comment content, and is
37 | // indented less or equal to the start line, it is the start of
38 | // another block.
39 | break;
40 | }
41 | }
42 | if (lastLineInFold) return {
43 | from: CodeMirror.Pos(start.line, cm.getLine(start.line).length),
44 | to: CodeMirror.Pos(lastLineInFold, cm.getLine(lastLineInFold).length)
45 | };
46 | });
47 |
48 | });
49 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/addon/fold/markdown-fold.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | "use strict";
13 |
14 | CodeMirror.registerHelper("fold", "markdown", function(cm, start) {
15 | var maxDepth = 100;
16 |
17 | function isHeader(lineNo) {
18 | var tokentype = cm.getTokenTypeAt(CodeMirror.Pos(lineNo, 0));
19 | return tokentype && /\bheader\b/.test(tokentype);
20 | }
21 |
22 | function headerLevel(lineNo, line, nextLine) {
23 | var match = line && line.match(/^#+/);
24 | if (match && isHeader(lineNo)) return match[0].length;
25 | match = nextLine && nextLine.match(/^[=\-]+\s*$/);
26 | if (match && isHeader(lineNo + 1)) return nextLine[0] == "=" ? 1 : 2;
27 | return maxDepth;
28 | }
29 |
30 | var firstLine = cm.getLine(start.line), nextLine = cm.getLine(start.line + 1);
31 | var level = headerLevel(start.line, firstLine, nextLine);
32 | if (level === maxDepth) return undefined;
33 |
34 | var lastLineNo = cm.lastLine();
35 | var end = start.line, nextNextLine = cm.getLine(end + 2);
36 | while (end < lastLineNo) {
37 | if (headerLevel(end + 1, nextLine, nextNextLine) <= level) break;
38 | ++end;
39 | nextLine = nextNextLine;
40 | nextNextLine = cm.getLine(end + 2);
41 | }
42 |
43 | return {
44 | from: CodeMirror.Pos(start.line, firstLine.length),
45 | to: CodeMirror.Pos(end, cm.getLine(end).length)
46 | };
47 | });
48 |
49 | });
50 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/addon/hint/anyword-hint.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | "use strict";
13 |
14 | var WORD = /[\w$]+/, RANGE = 500;
15 |
16 | CodeMirror.registerHelper("hint", "anyword", function(editor, options) {
17 | var word = options && options.word || WORD;
18 | var range = options && options.range || RANGE;
19 | var cur = editor.getCursor(), curLine = editor.getLine(cur.line);
20 | var end = cur.ch, start = end;
21 | while (start && word.test(curLine.charAt(start - 1))) --start;
22 | var curWord = start != end && curLine.slice(start, end);
23 |
24 | var list = options && options.list || [], seen = {};
25 | var re = new RegExp(word.source, "g");
26 | for (var dir = -1; dir <= 1; dir += 2) {
27 | var line = cur.line, endLine = Math.min(Math.max(line + dir * range, editor.firstLine()), editor.lastLine()) + dir;
28 | for (; line != endLine; line += dir) {
29 | var text = editor.getLine(line), m;
30 | while (m = re.exec(text)) {
31 | if (line == cur.line && m[0] === curWord) continue;
32 | if ((!curWord || m[0].lastIndexOf(curWord, 0) == 0) && !Object.prototype.hasOwnProperty.call(seen, m[0])) {
33 | seen[m[0]] = true;
34 | list.push(m[0]);
35 | }
36 | }
37 | }
38 | }
39 | return {list: list, from: CodeMirror.Pos(cur.line, start), to: CodeMirror.Pos(cur.line, end)};
40 | });
41 | });
42 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/addon/hint/show-hint.css:
--------------------------------------------------------------------------------
1 | .CodeMirror-hints {
2 | position: absolute;
3 | z-index: 10;
4 | overflow: hidden;
5 | list-style: none;
6 |
7 | margin: 0;
8 | padding: 2px;
9 |
10 | -webkit-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
11 | -moz-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
12 | box-shadow: 2px 3px 5px rgba(0,0,0,.2);
13 | border-radius: 3px;
14 | border: 1px solid silver;
15 |
16 | background: white;
17 | font-size: 90%;
18 | font-family: monospace;
19 |
20 | max-height: 20em;
21 | overflow-y: auto;
22 | }
23 |
24 | .CodeMirror-hint {
25 | margin: 0;
26 | padding: 0 4px;
27 | border-radius: 2px;
28 | white-space: pre;
29 | color: black;
30 | cursor: pointer;
31 | }
32 |
33 | li.CodeMirror-hint-active {
34 | background: #08f;
35 | color: white;
36 | }
37 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/addon/lint/coffeescript-lint.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | // Depends on coffeelint.js from http://www.coffeelint.org/js/coffeelint.js
5 |
6 | // declare global: coffeelint
7 |
8 | (function(mod) {
9 | if (typeof exports == "object" && typeof module == "object") // CommonJS
10 | mod(require("../../lib/codemirror"));
11 | else if (typeof define == "function" && define.amd) // AMD
12 | define(["../../lib/codemirror"], mod);
13 | else // Plain browser env
14 | mod(CodeMirror);
15 | })(function(CodeMirror) {
16 | "use strict";
17 |
18 | CodeMirror.registerHelper("lint", "coffeescript", function(text) {
19 | var found = [];
20 | var parseError = function(err) {
21 | var loc = err.lineNumber;
22 | found.push({from: CodeMirror.Pos(loc-1, 0),
23 | to: CodeMirror.Pos(loc, 0),
24 | severity: err.level,
25 | message: err.message});
26 | };
27 | try {
28 | var res = coffeelint.lint(text);
29 | for(var i = 0; i < res.length; i++) {
30 | parseError(res[i]);
31 | }
32 | } catch(e) {
33 | found.push({from: CodeMirror.Pos(e.location.first_line, 0),
34 | to: CodeMirror.Pos(e.location.last_line, e.location.last_column),
35 | severity: 'error',
36 | message: e.message});
37 | }
38 | return found;
39 | });
40 |
41 | });
42 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/addon/lint/css-lint.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | // Depends on csslint.js from https://github.com/stubbornella/csslint
5 |
6 | // declare global: CSSLint
7 |
8 | (function(mod) {
9 | if (typeof exports == "object" && typeof module == "object") // CommonJS
10 | mod(require("../../lib/codemirror"));
11 | else if (typeof define == "function" && define.amd) // AMD
12 | define(["../../lib/codemirror"], mod);
13 | else // Plain browser env
14 | mod(CodeMirror);
15 | })(function(CodeMirror) {
16 | "use strict";
17 |
18 | CodeMirror.registerHelper("lint", "css", function(text) {
19 | var found = [];
20 | if (!window.CSSLint) return found;
21 | var results = CSSLint.verify(text), messages = results.messages, message = null;
22 | for ( var i = 0; i < messages.length; i++) {
23 | message = messages[i];
24 | var startLine = message.line -1, endLine = message.line -1, startCol = message.col -1, endCol = message.col;
25 | found.push({
26 | from: CodeMirror.Pos(startLine, startCol),
27 | to: CodeMirror.Pos(endLine, endCol),
28 | message: message.message,
29 | severity : message.type
30 | });
31 | }
32 | return found;
33 | });
34 |
35 | });
36 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/addon/lint/html-lint.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | // Depends on htmlhint.js from http://htmlhint.com/js/htmlhint.js
5 |
6 | // declare global: HTMLHint
7 |
8 | (function(mod) {
9 | if (typeof exports == "object" && typeof module == "object") // CommonJS
10 | mod(require("../../lib/codemirror"), require("htmlhint"));
11 | else if (typeof define == "function" && define.amd) // AMD
12 | define(["../../lib/codemirror", "htmlhint"], mod);
13 | else // Plain browser env
14 | mod(CodeMirror);
15 | })(function(CodeMirror) {
16 | "use strict";
17 |
18 | var defaultRules = {
19 | "tagname-lowercase": true,
20 | "attr-lowercase": true,
21 | "attr-value-double-quotes": true,
22 | "doctype-first": false,
23 | "tag-pair": true,
24 | "spec-char-escape": true,
25 | "id-unique": true,
26 | "src-not-empty": true,
27 | "attr-no-duplication": true
28 | };
29 |
30 | CodeMirror.registerHelper("lint", "html", function(text, options) {
31 | var found = [];
32 | if (!window.HTMLHint) return found;
33 | var messages = HTMLHint.verify(text, options && options.rules || defaultRules);
34 | for (var i = 0; i < messages.length; i++) {
35 | var message = messages[i];
36 | var startLine = message.line - 1, endLine = message.line - 1, startCol = message.col - 1, endCol = message.col;
37 | found.push({
38 | from: CodeMirror.Pos(startLine, startCol),
39 | to: CodeMirror.Pos(endLine, endCol),
40 | message: message.message,
41 | severity : message.type
42 | });
43 | }
44 | return found;
45 | });
46 | });
47 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/addon/lint/json-lint.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | // Depends on jsonlint.js from https://github.com/zaach/jsonlint
5 |
6 | // declare global: jsonlint
7 |
8 | (function(mod) {
9 | if (typeof exports == "object" && typeof module == "object") // CommonJS
10 | mod(require("../../lib/codemirror"));
11 | else if (typeof define == "function" && define.amd) // AMD
12 | define(["../../lib/codemirror"], mod);
13 | else // Plain browser env
14 | mod(CodeMirror);
15 | })(function(CodeMirror) {
16 | "use strict";
17 |
18 | CodeMirror.registerHelper("lint", "json", function(text) {
19 | var found = [];
20 | jsonlint.parseError = function(str, hash) {
21 | var loc = hash.loc;
22 | found.push({from: CodeMirror.Pos(loc.first_line - 1, loc.first_column),
23 | to: CodeMirror.Pos(loc.last_line - 1, loc.last_column),
24 | message: str});
25 | };
26 | try { jsonlint.parse(text); }
27 | catch(e) {}
28 | return found;
29 | });
30 |
31 | });
32 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/addon/lint/yaml-lint.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | "use strict";
13 |
14 | // Depends on js-yaml.js from https://github.com/nodeca/js-yaml
15 |
16 | // declare global: jsyaml
17 |
18 | CodeMirror.registerHelper("lint", "yaml", function(text) {
19 | var found = [];
20 | try { jsyaml.load(text); }
21 | catch(e) {
22 | var loc = e.mark,
23 | // js-yaml YAMLException doesn't always provide an accurate lineno
24 | // e.g., when there are multiple yaml docs
25 | // ---
26 | // ---
27 | // foo:bar
28 | from = loc ? CodeMirror.Pos(loc.line, loc.column) : CodeMirror.Pos(0, 0),
29 | to = from;
30 | found.push({ from: from, to: to, message: e.message });
31 | }
32 | return found;
33 | });
34 |
35 | });
36 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/addon/mode/multiplex_test.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function() {
5 | CodeMirror.defineMode("markdown_with_stex", function(){
6 | var inner = CodeMirror.getMode({}, "stex");
7 | var outer = CodeMirror.getMode({}, "markdown");
8 |
9 | var innerOptions = {
10 | open: '$',
11 | close: '$',
12 | mode: inner,
13 | delimStyle: 'delim',
14 | innerStyle: 'inner'
15 | };
16 |
17 | return CodeMirror.multiplexingMode(outer, innerOptions);
18 | });
19 |
20 | var mode = CodeMirror.getMode({}, "markdown_with_stex");
21 |
22 | function MT(name) {
23 | test.mode(
24 | name,
25 | mode,
26 | Array.prototype.slice.call(arguments, 1),
27 | 'multiplexing');
28 | }
29 |
30 | MT(
31 | "stexInsideMarkdown",
32 | "[strong **Equation:**] [delim&delim-open $][inner&tag \\pi][delim&delim-close $]");
33 | })();
34 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/addon/runmode/colorize.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"), require("./runmode"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror", "./runmode"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | "use strict";
13 |
14 | var isBlock = /^(p|li|div|h\\d|pre|blockquote|td)$/;
15 |
16 | function textContent(node, out) {
17 | if (node.nodeType == 3) return out.push(node.nodeValue);
18 | for (var ch = node.firstChild; ch; ch = ch.nextSibling) {
19 | textContent(ch, out);
20 | if (isBlock.test(node.nodeType)) out.push("\n");
21 | }
22 | }
23 |
24 | CodeMirror.colorize = function(collection, defaultMode) {
25 | if (!collection) collection = document.body.getElementsByTagName("pre");
26 |
27 | for (var i = 0; i < collection.length; ++i) {
28 | var node = collection[i];
29 | var mode = node.getAttribute("data-lang") || defaultMode;
30 | if (!mode) continue;
31 |
32 | var text = [];
33 | textContent(node, text);
34 | node.innerHTML = "";
35 | CodeMirror.runMode(text.join(""), mode, node);
36 |
37 | node.className += " cm-s-default";
38 | }
39 | };
40 | });
41 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/addon/scroll/scrollpastend.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | "use strict";
13 |
14 | CodeMirror.defineOption("scrollPastEnd", false, function(cm, val, old) {
15 | if (old && old != CodeMirror.Init) {
16 | cm.off("change", onChange);
17 | cm.off("refresh", updateBottomMargin);
18 | cm.display.lineSpace.parentNode.style.paddingBottom = "";
19 | cm.state.scrollPastEndPadding = null;
20 | }
21 | if (val) {
22 | cm.on("change", onChange);
23 | cm.on("refresh", updateBottomMargin);
24 | updateBottomMargin(cm);
25 | }
26 | });
27 |
28 | function onChange(cm, change) {
29 | if (CodeMirror.changeEnd(change).line == cm.lastLine())
30 | updateBottomMargin(cm);
31 | }
32 |
33 | function updateBottomMargin(cm) {
34 | var padding = "";
35 | if (cm.lineCount() > 1) {
36 | var totalH = cm.display.scroller.clientHeight - 30,
37 | lastLineH = cm.getLineHandle(cm.lastLine()).height;
38 | padding = (totalH - lastLineH) + "px";
39 | }
40 | if (cm.state.scrollPastEndPadding != padding) {
41 | cm.state.scrollPastEndPadding = padding;
42 | cm.display.lineSpace.parentNode.style.paddingBottom = padding;
43 | cm.off("refresh", updateBottomMargin);
44 | cm.setSize();
45 | cm.on("refresh", updateBottomMargin);
46 | }
47 | }
48 | });
49 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/addon/scroll/simplescrollbars.css:
--------------------------------------------------------------------------------
1 | .CodeMirror-simplescroll-horizontal div, .CodeMirror-simplescroll-vertical div {
2 | position: absolute;
3 | background: #ccc;
4 | -moz-box-sizing: border-box;
5 | box-sizing: border-box;
6 | border: 1px solid #bbb;
7 | border-radius: 2px;
8 | }
9 |
10 | .CodeMirror-simplescroll-horizontal, .CodeMirror-simplescroll-vertical {
11 | position: absolute;
12 | z-index: 6;
13 | background: #eee;
14 | }
15 |
16 | .CodeMirror-simplescroll-horizontal {
17 | bottom: 0; left: 0;
18 | height: 8px;
19 | }
20 | .CodeMirror-simplescroll-horizontal div {
21 | bottom: 0;
22 | height: 100%;
23 | }
24 |
25 | .CodeMirror-simplescroll-vertical {
26 | right: 0; top: 0;
27 | width: 8px;
28 | }
29 | .CodeMirror-simplescroll-vertical div {
30 | right: 0;
31 | width: 100%;
32 | }
33 |
34 |
35 | .CodeMirror-overlayscroll .CodeMirror-scrollbar-filler, .CodeMirror-overlayscroll .CodeMirror-gutter-filler {
36 | display: none;
37 | }
38 |
39 | .CodeMirror-overlayscroll-horizontal div, .CodeMirror-overlayscroll-vertical div {
40 | position: absolute;
41 | background: #bcd;
42 | border-radius: 3px;
43 | }
44 |
45 | .CodeMirror-overlayscroll-horizontal, .CodeMirror-overlayscroll-vertical {
46 | position: absolute;
47 | z-index: 6;
48 | }
49 |
50 | .CodeMirror-overlayscroll-horizontal {
51 | bottom: 0; left: 0;
52 | height: 6px;
53 | }
54 | .CodeMirror-overlayscroll-horizontal div {
55 | bottom: 0;
56 | height: 100%;
57 | }
58 |
59 | .CodeMirror-overlayscroll-vertical {
60 | right: 0; top: 0;
61 | width: 6px;
62 | }
63 | .CodeMirror-overlayscroll-vertical div {
64 | right: 0;
65 | width: 100%;
66 | }
67 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/addon/search/matchesonscrollbar.css:
--------------------------------------------------------------------------------
1 | .CodeMirror-search-match {
2 | background: gold;
3 | border-top: 1px solid orange;
4 | border-bottom: 1px solid orange;
5 | -moz-box-sizing: border-box;
6 | box-sizing: border-box;
7 | opacity: .5;
8 | }
9 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/addon/tern/worker.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | // declare global: tern, server
5 |
6 | var server;
7 |
8 | this.onmessage = function(e) {
9 | var data = e.data;
10 | switch (data.type) {
11 | case "init": return startServer(data.defs, data.plugins, data.scripts);
12 | case "add": return server.addFile(data.name, data.text);
13 | case "del": return server.delFile(data.name);
14 | case "req": return server.request(data.body, function(err, reqData) {
15 | postMessage({id: data.id, body: reqData, err: err && String(err)});
16 | });
17 | case "getFile":
18 | var c = pending[data.id];
19 | delete pending[data.id];
20 | return c(data.err, data.text);
21 | default: throw new Error("Unknown message type: " + data.type);
22 | }
23 | };
24 |
25 | var nextId = 0, pending = {};
26 | function getFile(file, c) {
27 | postMessage({type: "getFile", name: file, id: ++nextId});
28 | pending[nextId] = c;
29 | }
30 |
31 | function startServer(defs, plugins, scripts) {
32 | if (scripts) importScripts.apply(null, scripts);
33 |
34 | server = new tern.Server({
35 | getFile: getFile,
36 | async: true,
37 | defs: defs,
38 | plugins: plugins
39 | });
40 | }
41 |
42 | this.console = {
43 | log: function(v) { postMessage({type: "debug", message: v}); }
44 | };
45 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/bin/authors.sh:
--------------------------------------------------------------------------------
1 | # Combine existing list of authors with everyone known in git, sort, add header.
2 | tail --lines=+3 AUTHORS > AUTHORS.tmp
3 | git log --format='%aN' >> AUTHORS.tmp
4 | echo -e "List of CodeMirror contributors. Updated before every release.\n" > AUTHORS
5 | sort -u AUTHORS.tmp >> AUTHORS
6 | rm -f AUTHORS.tmp
7 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/bin/lint:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | process.exit(require("../test/lint").ok ? 0 : 1);
4 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/bin/release:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | var fs = require("fs"), child = require("child_process");
4 |
5 | var number, bumpOnly;
6 |
7 | for (var i = 2; i < process.argv.length; i++) {
8 | if (process.argv[i] == "-bump") bumpOnly = true;
9 | else if (/^\d+\.\d+\.\d+$/.test(process.argv[i])) number = process.argv[i];
10 | else { console.log("Bogus command line arg: " + process.argv[i]); process.exit(1); }
11 | }
12 |
13 | if (!number) { console.log("Must give a version"); process.exit(1); }
14 |
15 | function rewrite(file, f) {
16 | fs.writeFileSync(file, f(fs.readFileSync(file, "utf8")), "utf8");
17 | }
18 |
19 | rewrite("src/edit/main.js", function(lib) {
20 | return lib.replace(/CodeMirror\.version = "\d+\.\d+\.\d+"/,
21 | "CodeMirror.version = \"" + number + "\"");
22 | });
23 | function rewriteJSON(pack) {
24 | return pack.replace(/"version":\s*"\d+\.\d+\.\d+"/, "\"version\": \"" + number + "\"");
25 | }
26 | rewrite("package.json", rewriteJSON);
27 | rewrite("doc/manual.html", function(manual) {
28 | return manual.replace(/>version \d+\.\d+\.\d+<\/span>/, ">version " + number + "");
29 | });
30 |
31 | if (bumpOnly) process.exit(0);
32 |
33 | child.exec("bash bin/authors.sh", function(){});
34 |
35 | rewrite("index.html", function(index) {
36 | return index.replace(/\.zip">\d+\.\d+\.\d+<\/a>/,
37 | ".zip\">" + number + "");
38 | });
39 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/bin/source-highlight:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | // Simple command-line code highlighting tool. Reads code from stdin,
4 | // spits html to stdout. For example:
5 | //
6 | // echo 'function foo(a) { return a; }' | bin/source-highlight -s javascript
7 | // bin/source-highlight -s
8 |
9 | var fs = require("fs");
10 |
11 | var CodeMirror = require("../addon/runmode/runmode.node.js");
12 | require("../mode/meta.js");
13 |
14 | var sPos = process.argv.indexOf("-s");
15 | if (sPos == -1 || sPos == process.argv.length - 1) {
16 | console.error("Usage: source-highlight -s language");
17 | process.exit(1);
18 | }
19 | var lang = process.argv[sPos + 1].toLowerCase(), modeName = lang;
20 | var found = CodeMirror.findModeByMIME(lang) || CodeMirror.findModeByName(lang)
21 | if (found) {
22 | modeName = found.mode
23 | lang = found.mime
24 | }
25 |
26 | if (!CodeMirror.modes[modeName])
27 | require("../mode/" + modeName + "/" + modeName + ".js");
28 |
29 | function esc(str) {
30 | return str.replace(/[<&]/g, function(ch) { return ch == "&" ? "&" : "<"; });
31 | }
32 |
33 | var code = fs.readFileSync("/dev/stdin", "utf8");
34 | var curStyle = null, accum = "";
35 | function flush() {
36 | if (curStyle) process.stdout.write("" + esc(accum) + " ");
37 | else process.stdout.write(esc(accum));
38 | }
39 |
40 | CodeMirror.runMode(code, lang, function(text, style) {
41 | if (style != curStyle) {
42 | flush();
43 | curStyle = style; accum = text;
44 | } else {
45 | accum += text;
46 | }
47 | });
48 | flush();
49 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/bin/upload-release.js:
--------------------------------------------------------------------------------
1 | "use strict"
2 |
3 | let version = process.argv[2]
4 | let auth = process.argv[3]
5 |
6 | if (!auth) {
7 | console.log("Usage: upload-release.js [TAG] [github-user:password]")
8 | process.exit(1)
9 | }
10 |
11 | require('child_process').exec("git --no-pager show -s --format='%s' " + version, (error, stdout) => {
12 | if (error) throw error
13 | let message = stdout.split("\n").slice(2)
14 | message = message.slice(0, message.indexOf("-----BEGIN PGP SIGNATURE-----")).join("\n")
15 |
16 | let req = require("https").request({
17 | host: "api.github.com",
18 | auth: auth,
19 | headers: {"user-agent": "Release uploader"},
20 | path: "/repos/codemirror/codemirror/releases",
21 | method: "POST"
22 | }, res => {
23 | if (res.statusCode >= 300) {
24 | console.error(res.statusMessage)
25 | res.on("data", d => console.log(d.toString()))
26 | res.on("end", process.exit(1))
27 | }
28 | })
29 | req.write(JSON.stringify({
30 | tag_name: version,
31 | name: version,
32 | body: message
33 | }))
34 | req.end()
35 | })
36 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/demo/changemode.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Mode-Changing Demo
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
14 |
26 |
27 |
28 | Mode-Changing Demo
29 |
36 |
37 | On changes to the content of the above editor, a (crude) script
38 | tries to auto-detect the language used, and switches the editor to
39 | either JavaScript or Scheme mode based on that.
40 |
41 |
58 |
59 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/demo/closebrackets.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Closebrackets Demo
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
14 |
26 |
27 |
28 | Closebrackets Demo
29 | function Grid(width, height) {
30 | this.width = width;
31 | this.height = height;
32 | this.cells = new Array(width * height);
33 | }
34 | Grid.prototype.valueAt = function(point) {
35 | return this.cells[point.y * this.width + point.x];
36 | };
37 | Grid.prototype.setValueAt = function(point, value) {
38 | this.cells[point.y * this.width + point.x] = value;
39 | };
40 | Grid.prototype.isInside = function(point) {
41 | return point.x >= 0 && point.y >= 0 &&
42 | point.x < this.width && point.y < this.height;
43 | };
44 | Grid.prototype.moveValue = function(from, to) {
45 | this.setValueAt(to, this.valueAt(from));
46 | this.setValueAt(from, undefined);
47 | };
48 |
49 |
52 |
53 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/demo/closetag.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Close-Tag Demo
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
30 |
31 |
32 | Close-Tag Demo
33 |
34 |
35 |
41 |
42 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/demo/html5complete.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | CodeMirror: HTML completion demo
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
21 |
22 |
23 |
24 |
36 |
37 |
38 | HTML completion demo
39 |
40 | Shows the XML completer
41 | parameterized with information about the tags in HTML.
42 | Press ctrl-space to activate completion.
43 |
44 |
45 |
46 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/demo/marker.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Breakpoint Demo
4 |
5 |
6 |
7 |
8 |
9 |
10 |
15 |
27 |
28 |
29 | Breakpoint Demo
30 |
31 | var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
32 | lineNumbers: true,
33 | gutters: ["CodeMirror-linenumbers", "breakpoints"]
34 | });
35 | editor.on("gutterClick", function(cm, n) {
36 | var info = cm.lineInfo(n);
37 | cm.setGutterMarker(n, "breakpoints", info.gutterMarkers ? null : makeMarker());
38 | });
39 |
40 | function makeMarker() {
41 | var marker = document.createElement("div");
42 | marker.style.color = "#822";
43 | marker.innerHTML = "●";
44 | return marker;
45 | }
46 |
47 |
48 | Click the line-number gutter to add or remove 'breakpoints'.
49 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/demo/matchtags.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Tag Matcher Demo
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
15 |
27 |
28 |
29 | Tag Matcher Demo
30 |
31 |
32 |
33 |
34 |
44 |
45 | Put the cursor on or inside a pair of tags to highlight them.
46 | Press Ctrl-J to jump to the tag that matches the one under the
47 | cursor.
48 |
49 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/demo/placeholder.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Placeholder demo
4 |
5 |
6 |
7 |
8 |
9 |
10 |
16 |
28 |
29 |
30 | Placeholder demo
31 |
32 |
33 | The placeholder
34 | plug-in adds an option placeholder
that can be set to
35 | make text appear in the editor when it is empty and not focused.
36 | If the source textarea has a placeholder
attribute,
37 | it will automatically be inherited.
38 |
39 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/demo/resize.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Autoresize Demo
4 |
5 |
6 |
7 |
8 |
9 |
10 |
16 |
28 |
29 |
30 | Autoresize Demo
31 |
32 | .CodeMirror {
33 | border: 1px solid #eee;
34 | height: auto;
35 | }
36 |
37 |
38 | By setting an editor's height
style
39 | to auto
and giving
40 | the viewportMargin
41 | a value of Infinity
, CodeMirror can be made to
42 | automatically resize to fit its content.
43 |
44 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/demo/rulers.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Ruler Demo
4 |
5 |
6 |
7 |
8 |
9 |
10 |
13 |
25 |
26 |
27 | Ruler Demo
28 |
29 |
44 |
45 | Demonstration of
46 | the rulers addon, which
47 | displays vertical lines at given column offsets.
48 |
49 |
50 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/demo/trailingspace.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Trailing Whitespace Demo
4 |
5 |
6 |
7 |
8 |
9 |
10 |
18 |
30 |
31 |
32 | Trailing Whitespace Demo
33 | This text
34 | has some
35 | trailing whitespace!
36 |
37 |
43 |
44 | Uses
45 | the trailingspace
46 | addon to highlight trailing whitespace.
47 |
48 |
49 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/doc/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coders-market/CM.Neos.ThemeModule/1c702a42adf24b20300f8c7ab7b3ce3ad69e0dff/Resources/Public/Components/codemirror/doc/logo.png
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/doc/yinyang.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/coders-market/CM.Neos.ThemeModule/1c702a42adf24b20300f8c7ab7b3ce3ad69e0dff/Resources/Public/Components/codemirror/doc/yinyang.png
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/asciiarmor/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: ASCII Armor (PGP) mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | ASCII Armor (PGP) mode
27 |
28 | -----BEGIN PGP MESSAGE-----
29 | Version: OpenPrivacy 0.99
30 |
31 | yDgBO22WxBHv7O8X7O/jygAEzol56iUKiXmV+XmpCtmpqQUKiQrFqclFqUDBovzS
32 | vBSFjNSiVHsuAA==
33 | =njUN
34 | -----END PGP MESSAGE-----
35 |
36 |
37 |
42 |
43 | MIME types
44 | defined: application/pgp
, application/pgp-keys
, application/pgp-signature
45 |
46 |
47 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/css/gss_test.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function() {
5 | "use strict";
6 |
7 | var mode = CodeMirror.getMode({indentUnit: 2}, "text/x-gss");
8 | function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1), "gss"); }
9 |
10 | MT("atComponent",
11 | "[def @component] {",
12 | "[tag foo] {",
13 | " [property color]: [keyword black];",
14 | "}",
15 | "}");
16 |
17 | })();
18 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/cypher/test.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function() {
5 | var mode = CodeMirror.getMode({tabSize: 4, indentUnit: 2}, "cypher");
6 | function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
7 |
8 | MT("unbalancedDoubledQuotedString",
9 | "[string \"a'b\"][variable c]");
10 |
11 | MT("unbalancedSingleQuotedString",
12 | "[string 'a\"b'][variable c]");
13 |
14 | MT("doubleQuotedString",
15 | "[string \"a\"][variable b]");
16 |
17 | MT("singleQuotedString",
18 | "[string 'a'][variable b]");
19 |
20 | MT("single attribute (with content)",
21 | "[node {][atom a:][string 'a'][node }]");
22 |
23 | MT("multiple attribute, singleQuotedString (with content)",
24 | "[node {][atom a:][string 'a'][node ,][atom b:][string 'b'][node }]");
25 |
26 | MT("multiple attribute, doubleQuotedString (with content)",
27 | "[node {][atom a:][string \"a\"][node ,][atom b:][string \"b\"][node }]");
28 |
29 | MT("single attribute (without content)",
30 | "[node {][atom a:][string 'a'][node }]");
31 |
32 | MT("multiple attribute, singleQuotedString (without content)",
33 | "[node {][atom a:][string ''][node ,][atom b:][string ''][node }]");
34 |
35 | MT("multiple attribute, doubleQuotedString (without content)",
36 | "[node {][atom a:][string \"\"][node ,][atom b:][string \"\"][node }]");
37 | })();
38 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/dart/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Dart mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Dart mode
27 |
28 |
29 | import 'dart:math' show Random;
30 |
31 | void main() {
32 | print(new Die(n: 12).roll());
33 | }
34 |
35 | // Define a class.
36 | class Die {
37 | // Define a class variable.
38 | static Random shaker = new Random();
39 |
40 | // Define instance variables.
41 | int sides, value;
42 |
43 | // Define a method using shorthand syntax.
44 | String toString() => '$value';
45 |
46 | // Define a constructor.
47 | Die({int n: 6}) {
48 | if (4 <= n && n <= 20) {
49 | sides = n;
50 | } else {
51 | // Support for errors and exceptions.
52 | throw new ArgumentError(/* */);
53 | }
54 | }
55 |
56 | // Define an instance method.
57 | int roll() {
58 | return value = shaker.nextInt(sides) + 1;
59 | }
60 | }
61 |
62 |
63 |
64 |
70 |
71 |
72 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/diff/diff.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | "use strict";
13 |
14 | CodeMirror.defineMode("diff", function() {
15 |
16 | var TOKEN_NAMES = {
17 | '+': 'positive',
18 | '-': 'negative',
19 | '@': 'meta'
20 | };
21 |
22 | return {
23 | token: function(stream) {
24 | var tw_pos = stream.string.search(/[\t ]+?$/);
25 |
26 | if (!stream.sol() || tw_pos === 0) {
27 | stream.skipToEnd();
28 | return ("error " + (
29 | TOKEN_NAMES[stream.string.charAt(0)] || '')).replace(/ $/, '');
30 | }
31 |
32 | var token_name = TOKEN_NAMES[stream.peek()] || stream.skipToEnd();
33 |
34 | if (tw_pos === -1) {
35 | stream.skipToEnd();
36 | } else {
37 | stream.pos = tw_pos;
38 | }
39 |
40 | return token_name;
41 | }
42 | };
43 | });
44 |
45 | CodeMirror.defineMIME("text/x-diff", "diff");
46 |
47 | });
48 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/ecl/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: ECL mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | ECL mode
27 |
28 | /*
29 | sample useless code to demonstrate ecl syntax highlighting
30 | this is a multiline comment!
31 | */
32 |
33 | // this is a singleline comment!
34 |
35 | import ut;
36 | r :=
37 | record
38 | string22 s1 := '123';
39 | integer4 i1 := 123;
40 | end;
41 | #option('tmp', true);
42 | d := dataset('tmp::qb', r, thor);
43 | output(d);
44 |
45 |
48 |
49 | Based on CodeMirror's clike mode. For more information see HPCC Systems web site.
50 | MIME types defined: text/x-ecl
.
51 |
52 |
53 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/elm/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Elm mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Elm mode
27 |
28 |
29 | import Color exposing (..)
30 | import Graphics.Collage exposing (..)
31 | import Graphics.Element exposing (..)
32 | import Time exposing (..)
33 |
34 | main =
35 | Signal.map clock (every second)
36 |
37 | clock t =
38 | collage 400 400
39 | [ filled lightGrey (ngon 12 110)
40 | , outlined (solid grey) (ngon 12 110)
41 | , hand orange 100 t
42 | , hand charcoal 100 (t/60)
43 | , hand charcoal 60 (t/720)
44 | ]
45 |
46 | hand clr len time =
47 | let angle = degrees (90 - 6 * inSeconds time)
48 | in
49 | segment (0,0) (fromPolar (len,angle))
50 | |> traced (solid clr)
51 |
52 |
53 |
59 |
60 | MIME types defined: text/x-elm
.
61 |
62 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/gherkin/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Gherkin mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Gherkin mode
27 |
28 | Feature: Using Google
29 | Background:
30 | Something something
31 | Something else
32 | Scenario: Has a homepage
33 | When I navigate to the google home page
34 | Then the home page should contain the menu and the search form
35 | Scenario: Searching for a term
36 | When I navigate to the google home page
37 | When I search for Tofu
38 | Then the search results page is displayed
39 | Then the search results page contains 10 individual search results
40 | Then the search results contain a link to the wikipedia tofu page
41 |
42 |
45 |
46 | MIME types defined: text/x-feature
.
47 |
48 |
49 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/haskell-literate/haskell-literate.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function (mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"), require("../haskell/haskell"))
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror", "../haskell/haskell"], mod)
9 | else // Plain browser env
10 | mod(CodeMirror)
11 | })(function (CodeMirror) {
12 | "use strict"
13 |
14 | CodeMirror.defineMode("haskell-literate", function (config, parserConfig) {
15 | var baseMode = CodeMirror.getMode(config, (parserConfig && parserConfig.base) || "haskell")
16 |
17 | return {
18 | startState: function () {
19 | return {
20 | inCode: false,
21 | baseState: CodeMirror.startState(baseMode)
22 | }
23 | },
24 | token: function (stream, state) {
25 | if (stream.sol()) {
26 | if (state.inCode = stream.eat(">"))
27 | return "meta"
28 | }
29 | if (state.inCode) {
30 | return baseMode.token(stream, state.baseState)
31 | } else {
32 | stream.skipToEnd()
33 | return "comment"
34 | }
35 | },
36 | innerMode: function (state) {
37 | return state.inCode ? {state: state.baseState, mode: baseMode} : null
38 | }
39 | }
40 | }, "haskell")
41 |
42 | CodeMirror.defineMIME("text/x-literate-haskell", "haskell-literate")
43 | });
44 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/htmlembedded/htmlembedded.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"),
7 | require("../../addon/mode/multiplex"));
8 | else if (typeof define == "function" && define.amd) // AMD
9 | define(["../../lib/codemirror", "../htmlmixed/htmlmixed",
10 | "../../addon/mode/multiplex"], mod);
11 | else // Plain browser env
12 | mod(CodeMirror);
13 | })(function(CodeMirror) {
14 | "use strict";
15 |
16 | CodeMirror.defineMode("htmlembedded", function(config, parserConfig) {
17 | return CodeMirror.multiplexingMode(CodeMirror.getMode(config, "htmlmixed"), {
18 | open: parserConfig.open || parserConfig.scriptStartRegex || "<%",
19 | close: parserConfig.close || parserConfig.scriptEndRegex || "%>",
20 | mode: CodeMirror.getMode(config, parserConfig.scriptingModeSpec)
21 | });
22 | }, "htmlmixed");
23 |
24 | CodeMirror.defineMIME("application/x-ejs", {name: "htmlembedded", scriptingModeSpec:"javascript"});
25 | CodeMirror.defineMIME("application/x-aspx", {name: "htmlembedded", scriptingModeSpec:"text/x-csharp"});
26 | CodeMirror.defineMIME("application/x-jsp", {name: "htmlembedded", scriptingModeSpec:"text/x-java"});
27 | CodeMirror.defineMIME("application/x-erb", {name: "htmlembedded", scriptingModeSpec:"ruby"});
28 | });
29 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/http/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: HTTP mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | HTTP mode
27 |
28 |
29 |
30 | POST /somewhere HTTP/1.1
31 | Host: example.com
32 | If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT
33 | Content-Type: application/x-www-form-urlencoded;
34 | charset=utf-8
35 | User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Ubuntu/12.04 Chromium/20.0.1132.47 Chrome/20.0.1132.47 Safari/536.11
36 |
37 | This is the request body!
38 |
39 |
40 |
43 |
44 | MIME types defined: message/http
.
45 |
46 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/idl/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: IDL mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | IDL mode
27 |
28 |
29 | ;; Example IDL code
30 | FUNCTION mean_and_stddev,array
31 | ;; This program reads in an array of numbers
32 | ;; and returns a structure containing the
33 | ;; average and standard deviation
34 |
35 | ave = 0.0
36 | count = 0.0
37 |
38 | for i=0,N_ELEMENTS(array)-1 do begin
39 | ave = ave + array[i]
40 | count = count + 1
41 | endfor
42 |
43 | ave = ave/count
44 |
45 | std = stddev(array)
46 |
47 | return, {average:ave,std:std}
48 |
49 | END
50 |
51 |
52 |
62 |
63 | MIME types defined: text/x-idl
.
64 |
65 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/javascript/typescript.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: TypeScript mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | TypeScript mode
27 |
28 |
29 |
30 | class Greeter {
31 | greeting: string;
32 | constructor (message: string) {
33 | this.greeting = message;
34 | }
35 | greet() {
36 | return "Hello, " + this.greeting;
37 | }
38 | }
39 |
40 | var greeter = new Greeter("world");
41 |
42 | var button = document.createElement('button')
43 | button.innerText = "Say Hello"
44 | button.onclick = function() {
45 | alert(greeter.greet())
46 | }
47 |
48 | document.body.appendChild(button)
49 |
50 |
51 |
52 |
59 |
60 | This is a specialization of the JavaScript mode .
61 |
62 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/jinja2/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Jinja2 mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Jinja2 mode
27 |
28 | {# this is a comment #}
29 | {%- for item in li -%}
30 | <li>{{ item.label }}</li>
31 | {% endfor -%}
32 | {{ item.sand == true and item.keyword == false ? 1 : 0 }}
33 | {{ app.get(55, 1.2, true) }}
34 | {% if app.get('_route') == ('_home') %}home{% endif %}
35 | {% if app.session.flashbag.has('message') %}
36 | {% for message in app.session.flashbag.get('message') %}
37 | {{ message.content }}
38 | {% endfor %}
39 | {% endif %}
40 | {{ path('_home', {'section': app.request.get('section')}) }}
41 | {{ path('_home', {
42 | 'section': app.request.get('section'),
43 | 'boolean': true,
44 | 'number': 55.33
45 | })
46 | }}
47 | {% include ('test.incl.html.twig') %}
48 |
49 |
54 |
55 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/mbox/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: mbox mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | mbox mode
27 |
28 | From timothygu99@gmail.com Sun Apr 17 01:40:43 2016
29 | From: Timothy Gu <timothygu99@gmail.com>
30 | Date: Sat, 16 Apr 2016 18:40:43 -0700
31 | Subject: mbox mode
32 | Message-ID: <Z8d+bTT50U/az94FZnyPkDjZmW0=@gmail.com>
33 |
34 | mbox mode is working!
35 |
36 | Timothy
37 |
38 |
41 |
42 | MIME types defined: application/mbox
.
43 |
44 |
45 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/ntriples/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: NTriples mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
15 |
28 |
29 |
30 | NTriples mode
31 |
32 |
33 | .
34 | "literal 1" .
35 | _:bnode3 .
36 | _:bnode4 "literal 2"@lang .
37 | _:bnode5 "literal 3"^^ .
38 |
39 |
40 |
41 |
44 | MIME types defined: text/n-triples
.
45 |
46 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/oz/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Oz mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
14 |
26 |
27 |
28 | Oz mode
29 |
30 | declare
31 | fun {Ints N Max}
32 | if N == Max then nil
33 | else
34 | {Delay 1000}
35 | N|{Ints N+1 Max}
36 | end
37 | end
38 |
39 | fun {Sum S Stream}
40 | case Stream of nil then S
41 | [] H|T then S|{Sum H+S T} end
42 | end
43 |
44 | local X Y in
45 | thread X = {Ints 0 1000} end
46 | thread Y = {Sum 0 X} end
47 | {Browse Y}
48 | end
49 |
50 | MIME type defined: text/x-oz
.
51 |
52 |
59 |
60 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/pascal/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Pascal mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Pascal mode
27 |
28 |
29 |
30 | (* Example Pascal code *)
31 |
32 | while a <> b do writeln('Waiting');
33 |
34 | if a > b then
35 | writeln('Condition met')
36 | else
37 | writeln('Condition not met');
38 |
39 | for i := 1 to 10 do
40 | writeln('Iteration: ', i:1);
41 |
42 | repeat
43 | a := a + 1
44 | until a = 10;
45 |
46 | case i of
47 | 0: write('zero');
48 | 1: write('one');
49 | 2: write('two')
50 | end;
51 |
52 |
53 |
59 |
60 | MIME types defined: text/x-pascal
.
61 |
62 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/perl/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Perl mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Perl mode
27 |
28 |
29 |
30 | #!/usr/bin/perl
31 |
32 | use Something qw(func1 func2);
33 |
34 | # strings
35 | my $s1 = qq'single line';
36 | our $s2 = q(multi-
37 | line);
38 |
39 | =item Something
40 | Example.
41 | =cut
42 |
43 | my $html=<<'HTML'
44 |
45 | hi!
46 |
47 | HTML
48 |
49 | print "first,".join(',', 'second', qq~third~);
50 |
51 | if($s1 =~ m[(?{$1}=$$.' predefined variables';
53 | $s2 =~ s/\-line//ox;
54 | $s1 =~ s[
55 | line ]
56 | [
57 | block
58 | ]ox;
59 | }
60 |
61 | 1; # numbers and comments
62 |
63 | __END__
64 | something...
65 |
66 |
67 |
68 |
73 |
74 | MIME types defined: text/x-perl
.
75 |
76 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/pig/index.html:
--------------------------------------------------------------------------------
1 |
2 | CodeMirror: Pig Latin mode
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
23 |
24 |
25 | Pig Latin mode
26 |
27 | -- Apache Pig (Pig Latin Language) Demo
28 | /*
29 | This is a multiline comment.
30 | */
31 | a = LOAD "\path\to\input" USING PigStorage('\t') AS (x:long, y:chararray, z:bytearray);
32 | b = GROUP a BY (x,y,3+4);
33 | c = FOREACH b GENERATE flatten(group) as (x,y), SUM(group.$2) as z;
34 | STORE c INTO "\path\to\output";
35 |
36 | --
37 |
38 |
39 |
46 |
47 |
48 | Simple mode that handles Pig Latin language.
49 |
50 |
51 | MIME type defined: text/x-pig
52 | (PIG code)
53 |
54 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/properties/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Properties files mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Properties files mode
27 |
28 | # This is a properties file
29 | a.key = A value
30 | another.key = http://example.com
31 | ! Exclamation mark as comment
32 | but.not=Within ! A value # indeed
33 | # Spaces at the beginning of a line
34 | spaces.before.key=value
35 | backslash=Used for multi\
36 | line entries,\
37 | that's convenient.
38 | # Unicode sequences
39 | unicode.key=This is \u0020 Unicode
40 | no.multiline=here
41 | # Colons
42 | colons : can be used too
43 | # Spaces
44 | spaces\ in\ keys=Not very common...
45 |
46 |
49 |
50 | MIME types defined: text/x-properties
,
51 | text/x-ini
.
52 |
53 |
54 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/protobuf/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: ProtoBuf mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | ProtoBuf mode
27 |
28 | package addressbook;
29 |
30 | message Address {
31 | required string street = 1;
32 | required string postCode = 2;
33 | }
34 |
35 | message PhoneNumber {
36 | required string number = 1;
37 | }
38 |
39 | message Person {
40 | optional int32 id = 1;
41 | required string name = 2;
42 | required string surname = 3;
43 | optional Address address = 4;
44 | repeated PhoneNumber phoneNumbers = 5;
45 | optional uint32 age = 6;
46 | repeated uint32 favouriteNumbers = 7;
47 | optional string license = 8;
48 | enum Gender {
49 | MALE = 0;
50 | FEMALE = 1;
51 | }
52 | optional Gender gender = 9;
53 | optional fixed64 lastUpdate = 10;
54 | required bool deleted = 11 [default = false];
55 | }
56 |
57 |
58 |
61 |
62 | MIME types defined: text/x-protobuf
.
63 |
64 |
65 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/python/test.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function() {
5 | var mode = CodeMirror.getMode({indentUnit: 4},
6 | {name: "python",
7 | version: 3,
8 | singleLineStringErrors: false});
9 | function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
10 |
11 | // Error, because "foobarhello" is neither a known type or property, but
12 | // property was expected (after "and"), and it should be in parentheses.
13 | MT("decoratorStartOfLine",
14 | "[meta @dec]",
15 | "[keyword def] [def function]():",
16 | " [keyword pass]");
17 |
18 | MT("decoratorIndented",
19 | "[keyword class] [def Foo]:",
20 | " [meta @dec]",
21 | " [keyword def] [def function]():",
22 | " [keyword pass]");
23 |
24 | MT("matmulWithSpace:", "[variable a] [operator @] [variable b]");
25 | MT("matmulWithoutSpace:", "[variable a][operator @][variable b]");
26 | MT("matmulSpaceBefore:", "[variable a] [operator @][variable b]");
27 |
28 | MT("fValidStringPrefix", "[string f'this is a {formatted} string']");
29 | MT("uValidStringPrefix", "[string u'this is an unicode string']");
30 | })();
31 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/ruby/test.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function() {
5 | var mode = CodeMirror.getMode({indentUnit: 2}, "ruby");
6 | function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
7 |
8 | MT("divide_equal_operator",
9 | "[variable bar] [operator /=] [variable foo]");
10 |
11 | MT("divide_equal_operator_no_spacing",
12 | "[variable foo][operator /=][number 42]");
13 |
14 | MT("complex_regexp",
15 | "[keyword if] [variable cr] [operator =~] [string-2 /(?: \\( #{][tag RE_NOT][string-2 }\\( | #{][tag RE_NOT_PAR_OR][string-2 }* #{][tag RE_OPA_OR][string-2 } )/][variable x]")
16 | })();
17 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/rust/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Rust mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
25 |
26 |
27 | Rust mode
28 |
29 |
30 |
31 | // Demo code.
32 |
33 | type foo = int;
34 | enum bar {
35 | some(int, foo),
36 | none
37 | }
38 |
39 | fn check_crate(x: int) {
40 | let v = 10;
41 | match foo {
42 | 1 ... 3 {
43 | print_foo();
44 | if x {
45 | blah().to_string();
46 | }
47 | }
48 | (x, y) { "bye" }
49 | _ { "hi" }
50 | }
51 | }
52 |
53 |
54 |
62 |
63 | MIME types defined: text/x-rustsrc
.
64 |
65 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/rust/test.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function() {
5 | var mode = CodeMirror.getMode({indentUnit: 4}, "rust");
6 | function MT(name) {test.mode(name, mode, Array.prototype.slice.call(arguments, 1));}
7 |
8 | MT('integer_test',
9 | '[number 123i32]',
10 | '[number 123u32]',
11 | '[number 123_u32]',
12 | '[number 0xff_u8]',
13 | '[number 0o70_i16]',
14 | '[number 0b1111_1111_1001_0000_i32]',
15 | '[number 0usize]');
16 |
17 | MT('float_test',
18 | '[number 123.0f64]',
19 | '[number 0.1f64]',
20 | '[number 0.1f32]',
21 | '[number 12E+99_f64]');
22 |
23 | MT('string-literals-test',
24 | '[string "foo"]',
25 | '[string r"foo"]',
26 | '[string "\\"foo\\""]',
27 | '[string r#""foo""#]',
28 | '[string "foo #\\"# bar"]',
29 |
30 | '[string b"foo"]',
31 | '[string br"foo"]',
32 | '[string b"\\"foo\\""]',
33 | '[string br#""foo""#]',
34 | '[string br##"foo #" bar"##]',
35 |
36 | "[string-2 'h']",
37 | "[string-2 b'h']");
38 |
39 | })();
40 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/sass/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Sass mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
26 |
27 |
28 | Sass mode
29 | // Variable Definitions
30 |
31 | $page-width: 800px
32 | $sidebar-width: 200px
33 | $primary-color: #eeeeee
34 |
35 | // Global Attributes
36 |
37 | body
38 | font:
39 | family: sans-serif
40 | size: 30em
41 | weight: bold
42 |
43 | // Scoped Styles
44 |
45 | #contents
46 | width: $page-width
47 | #sidebar
48 | float: right
49 | width: $sidebar-width
50 | #main
51 | width: $page-width - $sidebar-width
52 | background: $primary-color
53 | h2
54 | color: blue
55 |
56 | #footer
57 | height: 200px
58 |
59 |
66 |
67 | MIME types defined: text/x-sass
.
68 |
69 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/shell/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Shell mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
14 |
27 |
28 |
29 | Shell mode
30 |
31 |
32 |
33 | #!/bin/bash
34 |
35 | # clone the repository
36 | git clone http://github.com/garden/tree
37 |
38 | # generate HTTPS credentials
39 | cd tree
40 | openssl genrsa -aes256 -out https.key 1024
41 | openssl req -new -nodes -key https.key -out https.csr
42 | openssl x509 -req -days 365 -in https.csr -signkey https.key -out https.crt
43 | cp https.key{,.orig}
44 | openssl rsa -in https.key.orig -out https.key
45 |
46 | # start the server in HTTPS mode
47 | cd web
48 | sudo node ../server.js 443 'yes' >> ../node.log &
49 |
50 | # here is how to stop the server
51 | for pid in `ps aux | grep 'node ../server.js' | awk '{print $2}'` ; do
52 | sudo kill -9 $pid 2> /dev/null
53 | done
54 |
55 | exit 0
56 |
57 |
64 |
65 | MIME types defined: text/x-sh
.
66 |
67 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/shell/test.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function() {
5 | var mode = CodeMirror.getMode({}, "shell");
6 | function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
7 |
8 | MT("var",
9 | "text [def $var] text");
10 | MT("varBraces",
11 | "text[def ${var}]text");
12 | MT("varVar",
13 | "text [def $a$b] text");
14 | MT("varBracesVarBraces",
15 | "text[def ${a}${b}]text");
16 |
17 | MT("singleQuotedVar",
18 | "[string 'text $var text']");
19 | MT("singleQuotedVarBraces",
20 | "[string 'text ${var} text']");
21 |
22 | MT("doubleQuotedVar",
23 | '[string "text ][def $var][string text"]');
24 | MT("doubleQuotedVarBraces",
25 | '[string "text][def ${var}][string text"]');
26 | MT("doubleQuotedVarPunct",
27 | '[string "text ][def $@][string text"]');
28 | MT("doubleQuotedVarVar",
29 | '[string "][def $a$b][string "]');
30 | MT("doubleQuotedVarBracesVarBraces",
31 | '[string "][def ${a}${b}][string "]');
32 |
33 | MT("notAString",
34 | "text\\'text");
35 | MT("escapes",
36 | "outside\\'\\\"\\`\\\\[string \"inside\\`\\'\\\"\\\\`\\$notAVar\"]outside\\$\\(notASubShell\\)");
37 |
38 | MT("subshell",
39 | "[builtin echo] [quote $(whoami)] s log, stardate [quote `date`].");
40 | MT("doubleQuotedSubshell",
41 | "[builtin echo] [string \"][quote $(whoami)][string 's log, stardate `date`.\"]");
42 |
43 | MT("hashbang",
44 | "[meta #!/bin/bash]");
45 | MT("comment",
46 | "text [comment # Blurb]");
47 |
48 | MT("numbers",
49 | "[number 0] [number 1] [number 2]");
50 | MT("keywords",
51 | "[keyword while] [atom true]; [keyword do]",
52 | " [builtin sleep] [number 3]",
53 | "[keyword done]");
54 | MT("options",
55 | "[builtin ls] [attribute -l] [attribute --human-readable]");
56 | MT("operator",
57 | "[def var][operator =]value");
58 |
59 | MT("doubleParens",
60 | "foo [quote $((bar))]")
61 | })();
62 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/solr/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Solr mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
20 |
33 |
34 |
35 | Solr mode
36 |
37 |
38 | author:Camus
39 |
40 | title:"The Rebel" and author:Camus
41 |
42 | philosophy:Existentialism -author:Kierkegaard
43 |
44 | hardToSpell:Dostoevsky~
45 |
46 | published:[194* TO 1960] and author:(Sartre or "Simone de Beauvoir")
47 |
48 |
49 |
55 |
56 | MIME types defined: text/x-solr
.
57 |
58 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/sparql/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: SPARQL mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
25 |
26 |
27 | SPARQL mode
28 |
29 | PREFIX a: <http://www.w3.org/2000/10/annotation-ns#>
30 | PREFIX dc: <http://purl.org/dc/elements/1.1/>
31 | PREFIX foaf: <http://xmlns.com/foaf/0.1/>
32 | PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
33 |
34 | # Comment!
35 |
36 | SELECT ?given ?family
37 | WHERE {
38 | {
39 | ?annot a:annotates <http://www.w3.org/TR/rdf-sparql-query/> .
40 | ?annot dc:creator ?c .
41 | OPTIONAL {?c foaf:givenName ?given ;
42 | foaf:familyName ?family }
43 | } UNION {
44 | ?c !foaf:knows/foaf:knows? ?thing.
45 | ?thing rdfs
46 | } MINUS {
47 | ?thing rdfs:label "剛柔流"@jp
48 | }
49 | FILTER isBlank(?c)
50 | }
51 |
52 |
58 |
59 | MIME types defined: application/sparql-query
.
60 |
61 |
62 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/spreadsheet/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Spreadsheet mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
25 |
26 |
27 | Spreadsheet mode
28 | =IF(A1:B2, TRUE, FALSE) / 100
29 |
30 |
37 |
38 | MIME types defined: text/x-spreadsheet
.
39 |
40 | The Spreadsheet Mode
41 | Created by Robert Plummer
42 |
43 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/tiddlywiki/tiddlywiki.css:
--------------------------------------------------------------------------------
1 | span.cm-underlined {
2 | text-decoration: underline;
3 | }
4 | span.cm-strikethrough {
5 | text-decoration: line-through;
6 | }
7 | span.cm-brace {
8 | color: #170;
9 | font-weight: bold;
10 | }
11 | span.cm-table {
12 | color: blue;
13 | font-weight: bold;
14 | }
15 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/tiki/tiki.css:
--------------------------------------------------------------------------------
1 | .cm-tw-syntaxerror {
2 | color: #FFF;
3 | background-color: #900;
4 | }
5 |
6 | .cm-tw-deleted {
7 | text-decoration: line-through;
8 | }
9 |
10 | .cm-tw-header5 {
11 | font-weight: bold;
12 | }
13 | .cm-tw-listitem:first-child { /*Added first child to fix duplicate padding when highlighting*/
14 | padding-left: 10px;
15 | }
16 |
17 | .cm-tw-box {
18 | border-top-width: 0px !important;
19 | border-style: solid;
20 | border-width: 1px;
21 | border-color: inherit;
22 | }
23 |
24 | .cm-tw-underline {
25 | text-decoration: underline;
26 | }
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/tornado/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Tornado template mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
27 |
28 |
29 | Tornado template mode
30 |
31 |
32 |
33 |
34 | My Tornado web application
35 |
36 |
37 |
38 | {{ title }}
39 |
40 |
41 | {% for item in items %}
42 | {% item.name %}
43 | {% empty %}
44 | You have no items in your list.
45 | {% end %}
46 |
47 |
48 |
49 |
50 |
51 |
59 |
60 | Mode for HTML with embedded Tornado template markup.
61 |
62 | MIME types defined: text/x-tornado
63 |
64 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/turtle/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Turtle mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Turtle mode
27 |
28 | @prefix foaf: .
29 | @prefix geo: .
30 | @prefix rdf: .
31 |
32 |
33 | a foaf:Person;
34 | foaf:interest ;
35 | foaf:based_near [
36 | geo:lat "34.0736111" ;
37 | geo:lon "-118.3994444"
38 | ]
39 |
40 |
41 |
47 |
48 | MIME types defined: text/turtle
.
49 |
50 |
51 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/twig/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Twig mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Twig mode
27 |
28 | {% extends "layout.twig" %}
29 | {% block title %}CodeMirror: Twig mode{% endblock %}
30 | {# this is a comment #}
31 | {% block content %}
32 | {% for foo in bar if foo.baz is divisible by(3) %}
33 | Hello {{ foo.world }}
34 | {% else %}
35 | {% set msg = "Result not found" %}
36 | {% include "empty.twig" with { message: msg } %}
37 | {% endfor %}
38 | {% endblock %}
39 |
40 |
45 |
46 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/vbscript/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: VBScript mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | VBScript mode
27 |
28 |
29 |
30 | ' Pete Guhl
31 | ' 03-04-2012
32 | '
33 | ' Basic VBScript support for codemirror2
34 |
35 | Const ForReading = 1, ForWriting = 2, ForAppending = 8
36 |
37 | Call Sub020_PostBroadcastToUrbanAirship(strUserName, strPassword, intTransmitID, strResponse)
38 |
39 | If Not IsNull(strResponse) AND Len(strResponse) = 0 Then
40 | boolTransmitOkYN = False
41 | Else
42 | ' WScript.Echo "Oh Happy Day! Oh Happy DAY!"
43 | boolTransmitOkYN = True
44 | End If
45 |
46 |
47 |
53 |
54 | MIME types defined: text/vbscript
.
55 |
56 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/xml/test.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function() {
5 | var mode = CodeMirror.getMode({indentUnit: 2}, "xml"), mname = "xml";
6 | function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1), mname); }
7 |
8 | MT("matching",
9 | "[tag&bracket <][tag top][tag&bracket >]",
10 | " text",
11 | " [tag&bracket <][tag inner][tag&bracket />]",
12 | "[tag&bracket ][tag top][tag&bracket >]");
13 |
14 | MT("nonmatching",
15 | "[tag&bracket <][tag top][tag&bracket >]",
16 | " [tag&bracket <][tag inner][tag&bracket />]",
17 | " [tag&bracket ][tag&error tip][tag&bracket&error >]");
18 |
19 | MT("doctype",
20 | "[meta ]",
21 | "[tag&bracket <][tag top][tag&bracket />]");
22 |
23 | MT("cdata",
24 | "[tag&bracket <][tag top][tag&bracket >]",
25 | " [atom ]",
27 | "[tag&bracket ][tag top][tag&bracket >]");
28 |
29 | // HTML tests
30 | mode = CodeMirror.getMode({indentUnit: 2}, "text/html");
31 |
32 | MT("selfclose",
33 | "[tag&bracket <][tag html][tag&bracket >]",
34 | " [tag&bracket <][tag link] [attribute rel]=[string stylesheet] [attribute href]=[string \"/foobar\"][tag&bracket >]",
35 | "[tag&bracket ][tag html][tag&bracket >]");
36 |
37 | MT("list",
38 | "[tag&bracket <][tag ol][tag&bracket >]",
39 | " [tag&bracket <][tag li][tag&bracket >]one",
40 | " [tag&bracket <][tag li][tag&bracket >]two",
41 | "[tag&bracket ][tag ol][tag&bracket >]");
42 |
43 | MT("valueless",
44 | "[tag&bracket <][tag input] [attribute type]=[string checkbox] [attribute checked][tag&bracket />]");
45 |
46 | MT("pThenArticle",
47 | "[tag&bracket <][tag p][tag&bracket >]",
48 | " foo",
49 | "[tag&bracket <][tag article][tag&bracket >]bar");
50 |
51 | })();
52 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/mode/z80/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Z80 assembly mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Z80 assembly mode
27 |
28 |
29 |
30 | #include "ti83plus.inc"
31 | #define progStart $9D95
32 | .org progStart-2
33 | .db $BB,$6D
34 |
35 | bcall(_ClrLCDFull)
36 | ld hl,0
37 | ld (CurCol),hl
38 | ld hl,Message
39 | bcall(_PutS) ; Displays the string
40 | bcall(_NewLine)
41 | ret
42 | Message:
43 | .db "Hello world!",0
44 |
45 |
46 |
51 |
52 | MIME types defined: text/x-z80
, text/x-ez80
.
53 |
54 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "codemirror",
3 | "version": "5.25.0",
4 | "main": "lib/codemirror.js",
5 | "description": "Full-featured in-browser code editor",
6 | "license": "MIT",
7 | "directories": {
8 | "lib": "./lib"
9 | },
10 | "scripts": {
11 | "build": "rollup -c",
12 | "watch": "rollup -w -c",
13 | "prepublish": "npm run-script build",
14 | "test": "node ./test/run.js",
15 | "lint": "bin/lint"
16 | },
17 | "devDependencies": {
18 | "blint": "^0.5.1",
19 | "node-static": "0.6.0",
20 | "phantomjs-prebuilt": "^2.1.12",
21 | "rollup": "^0.41.0",
22 | "rollup-plugin-buble": "^0.15.0",
23 | "rollup-watch": "^3.2.0"
24 | },
25 | "bugs": "http://github.com/codemirror/CodeMirror/issues",
26 | "keywords": [
27 | "JavaScript",
28 | "CodeMirror",
29 | "Editor"
30 | ],
31 | "homepage": "http://codemirror.net",
32 | "maintainers": [
33 | {
34 | "name": "Marijn Haverbeke",
35 | "email": "marijnh@gmail.com",
36 | "web": "http://marijnhaverbeke.nl"
37 | }
38 | ],
39 | "repository": {
40 | "type": "git",
41 | "url": "https://github.com/codemirror/CodeMirror.git"
42 | },
43 | "jspm": {
44 | "directories": {},
45 | "dependencies": {},
46 | "devDependencies": {}
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/rollup.config.js:
--------------------------------------------------------------------------------
1 | import buble from 'rollup-plugin-buble';
2 |
3 | export default {
4 | banner: `// CodeMirror, copyright (c) by Marijn Haverbeke and others
5 | // Distributed under an MIT license: http://codemirror.net/LICENSE
6 |
7 | // This is CodeMirror (http://codemirror.net), a code editor
8 | // implemented in JavaScript on top of the browser's DOM.
9 | //
10 | // You can find some technical background for some of the code below
11 | // at http://marijnhaverbeke.nl/blog/#cm-internals .
12 | `,
13 | entry: "src/codemirror.js",
14 | format: "umd",
15 | dest: "lib/codemirror.js",
16 | moduleName: "CodeMirror",
17 | plugins: [ buble({namedFunctionExpressions: false}) ]
18 | };
19 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/src/codemirror.js:
--------------------------------------------------------------------------------
1 | import { CodeMirror } from "./edit/main"
2 |
3 | export default CodeMirror
4 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/src/display/focus.js:
--------------------------------------------------------------------------------
1 | import { restartBlink } from "./selection"
2 | import { webkit } from "../util/browser"
3 | import { addClass, rmClass } from "../util/dom"
4 | import { signal } from "../util/event"
5 |
6 | export function ensureFocus(cm) {
7 | if (!cm.state.focused) { cm.display.input.focus(); onFocus(cm) }
8 | }
9 |
10 | export function delayBlurEvent(cm) {
11 | cm.state.delayingBlurEvent = true
12 | setTimeout(() => { if (cm.state.delayingBlurEvent) {
13 | cm.state.delayingBlurEvent = false
14 | onBlur(cm)
15 | } }, 100)
16 | }
17 |
18 | export function onFocus(cm, e) {
19 | if (cm.state.delayingBlurEvent) cm.state.delayingBlurEvent = false
20 |
21 | if (cm.options.readOnly == "nocursor") return
22 | if (!cm.state.focused) {
23 | signal(cm, "focus", cm, e)
24 | cm.state.focused = true
25 | addClass(cm.display.wrapper, "CodeMirror-focused")
26 | // This test prevents this from firing when a context
27 | // menu is closed (since the input reset would kill the
28 | // select-all detection hack)
29 | if (!cm.curOp && cm.display.selForContextMenu != cm.doc.sel) {
30 | cm.display.input.reset()
31 | if (webkit) setTimeout(() => cm.display.input.reset(true), 20) // Issue #1730
32 | }
33 | cm.display.input.receivedFocus()
34 | }
35 | restartBlink(cm)
36 | }
37 | export function onBlur(cm, e) {
38 | if (cm.state.delayingBlurEvent) return
39 |
40 | if (cm.state.focused) {
41 | signal(cm, "blur", cm, e)
42 | cm.state.focused = false
43 | rmClass(cm.display.wrapper, "CodeMirror-focused")
44 | }
45 | clearInterval(cm.display.blinker)
46 | setTimeout(() => { if (!cm.state.focused) cm.display.shift = false }, 150)
47 | }
48 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/src/display/gutters.js:
--------------------------------------------------------------------------------
1 | import { elt, removeChildren } from "../util/dom"
2 | import { indexOf } from "../util/misc"
3 |
4 | import { updateGutterSpace } from "./update_display"
5 |
6 | // Rebuild the gutter elements, ensure the margin to the left of the
7 | // code matches their width.
8 | export function updateGutters(cm) {
9 | let gutters = cm.display.gutters, specs = cm.options.gutters
10 | removeChildren(gutters)
11 | let i = 0
12 | for (; i < specs.length; ++i) {
13 | let gutterClass = specs[i]
14 | let gElt = gutters.appendChild(elt("div", null, "CodeMirror-gutter " + gutterClass))
15 | if (gutterClass == "CodeMirror-linenumbers") {
16 | cm.display.lineGutter = gElt
17 | gElt.style.width = (cm.display.lineNumWidth || 1) + "px"
18 | }
19 | }
20 | gutters.style.display = i ? "" : "none"
21 | updateGutterSpace(cm)
22 | }
23 |
24 | // Make sure the gutters options contains the element
25 | // "CodeMirror-linenumbers" when the lineNumbers option is true.
26 | export function setGuttersForLineNumbers(options) {
27 | let found = indexOf(options.gutters, "CodeMirror-linenumbers")
28 | if (found == -1 && options.lineNumbers) {
29 | options.gutters = options.gutters.concat(["CodeMirror-linenumbers"])
30 | } else if (found > -1 && !options.lineNumbers) {
31 | options.gutters = options.gutters.slice(0)
32 | options.gutters.splice(found, 1)
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/src/display/mode_state.js:
--------------------------------------------------------------------------------
1 | import { getMode } from "../modes"
2 |
3 | import { startWorker } from "./highlight_worker"
4 | import { regChange } from "./view_tracking"
5 |
6 | // Used to get the editor into a consistent state again when options change.
7 |
8 | export function loadMode(cm) {
9 | cm.doc.mode = getMode(cm.options, cm.doc.modeOption)
10 | resetModeState(cm)
11 | }
12 |
13 | export function resetModeState(cm) {
14 | cm.doc.iter(line => {
15 | if (line.stateAfter) line.stateAfter = null
16 | if (line.styles) line.styles = null
17 | })
18 | cm.doc.frontier = cm.doc.first
19 | startWorker(cm, 100)
20 | cm.state.modeGen++
21 | if (cm.curOp) regChange(cm)
22 | }
23 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/src/edit/deleteNearSelection.js:
--------------------------------------------------------------------------------
1 | import { runInOp } from "../display/operations"
2 | import { ensureCursorVisible } from "../display/scrolling"
3 | import { cmp } from "../line/pos"
4 | import { replaceRange } from "../model/changes"
5 | import { lst } from "../util/misc"
6 |
7 | // Helper for deleting text near the selection(s), used to implement
8 | // backspace, delete, and similar functionality.
9 | export function deleteNearSelection(cm, compute) {
10 | let ranges = cm.doc.sel.ranges, kill = []
11 | // Build up a set of ranges to kill first, merging overlapping
12 | // ranges.
13 | for (let i = 0; i < ranges.length; i++) {
14 | let toKill = compute(ranges[i])
15 | while (kill.length && cmp(toKill.from, lst(kill).to) <= 0) {
16 | let replaced = kill.pop()
17 | if (cmp(replaced.from, toKill.from) < 0) {
18 | toKill.from = replaced.from
19 | break
20 | }
21 | }
22 | kill.push(toKill)
23 | }
24 | // Next, remove those actual ranges.
25 | runInOp(cm, () => {
26 | for (let i = kill.length - 1; i >= 0; i--)
27 | replaceRange(cm.doc, "", kill[i].from, kill[i].to, "+delete")
28 | ensureCursorVisible(cm)
29 | })
30 | }
31 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/src/edit/global_events.js:
--------------------------------------------------------------------------------
1 | import { onBlur } from "../display/focus"
2 | import { on } from "../util/event"
3 |
4 | // These must be handled carefully, because naively registering a
5 | // handler for each editor will cause the editors to never be
6 | // garbage collected.
7 |
8 | function forEachCodeMirror(f) {
9 | if (!document.body.getElementsByClassName) return
10 | let byClass = document.body.getElementsByClassName("CodeMirror")
11 | for (let i = 0; i < byClass.length; i++) {
12 | let cm = byClass[i].CodeMirror
13 | if (cm) f(cm)
14 | }
15 | }
16 |
17 | let globalsRegistered = false
18 | export function ensureGlobalHandlers() {
19 | if (globalsRegistered) return
20 | registerGlobalHandlers()
21 | globalsRegistered = true
22 | }
23 | function registerGlobalHandlers() {
24 | // When the window resizes, we need to refresh active editors.
25 | let resizeTimer
26 | on(window, "resize", () => {
27 | if (resizeTimer == null) resizeTimer = setTimeout(() => {
28 | resizeTimer = null
29 | forEachCodeMirror(onResize)
30 | }, 100)
31 | })
32 | // When the window loses focus, we want to show the editor as blurred
33 | on(window, "blur", () => forEachCodeMirror(onBlur))
34 | }
35 | // Called when the window resizes
36 | function onResize(cm) {
37 | let d = cm.display
38 | if (d.lastWrapHeight == d.wrapper.clientHeight && d.lastWrapWidth == d.wrapper.clientWidth)
39 | return
40 | // Might be a text scaling operation, clear size caches.
41 | d.cachedCharWidth = d.cachedTextHeight = d.cachedPaddingH = null
42 | d.scrollbarsClipped = false
43 | cm.setSize()
44 | }
45 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/src/edit/utils.js:
--------------------------------------------------------------------------------
1 | import { clearCaches } from "../measurement/position_measurement"
2 |
3 | export function themeChanged(cm) {
4 | cm.display.wrapper.className = cm.display.wrapper.className.replace(/\s*cm-s-\S+/g, "") +
5 | cm.options.theme.replace(/(^|\s)\s*/g, " cm-s-")
6 | clearCaches(cm)
7 | }
8 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/src/input/keynames.js:
--------------------------------------------------------------------------------
1 | export let keyNames = {
2 | 3: "Enter", 8: "Backspace", 9: "Tab", 13: "Enter", 16: "Shift", 17: "Ctrl", 18: "Alt",
3 | 19: "Pause", 20: "CapsLock", 27: "Esc", 32: "Space", 33: "PageUp", 34: "PageDown", 35: "End",
4 | 36: "Home", 37: "Left", 38: "Up", 39: "Right", 40: "Down", 44: "PrintScrn", 45: "Insert",
5 | 46: "Delete", 59: ";", 61: "=", 91: "Mod", 92: "Mod", 93: "Mod",
6 | 106: "*", 107: "=", 109: "-", 110: ".", 111: "/", 127: "Delete",
7 | 173: "-", 186: ";", 187: "=", 188: ",", 189: "-", 190: ".", 191: "/", 192: "`", 219: "[", 220: "\\",
8 | 221: "]", 222: "'", 63232: "Up", 63233: "Down", 63234: "Left", 63235: "Right", 63272: "Delete",
9 | 63273: "Home", 63275: "End", 63276: "PageUp", 63277: "PageDown", 63302: "Insert"
10 | }
11 |
12 | // Number keys
13 | for (let i = 0; i < 10; i++) keyNames[i + 48] = keyNames[i + 96] = String(i)
14 | // Alphabetic keys
15 | for (let i = 65; i <= 90; i++) keyNames[i] = String.fromCharCode(i)
16 | // Function keys
17 | for (let i = 1; i <= 12; i++) keyNames[i + 111] = keyNames[i + 63235] = "F" + i
18 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/src/line/pos.js:
--------------------------------------------------------------------------------
1 | import { getLine } from "./utils_line"
2 |
3 | // A Pos instance represents a position within the text.
4 | export function Pos(line, ch, sticky = null) {
5 | if (!(this instanceof Pos)) return new Pos(line, ch, sticky)
6 | this.line = line
7 | this.ch = ch
8 | this.sticky = sticky
9 | }
10 |
11 | // Compare two positions, return 0 if they are the same, a negative
12 | // number when a is less, and a positive number otherwise.
13 | export function cmp(a, b) { return a.line - b.line || a.ch - b.ch }
14 |
15 | export function equalCursorPos(a, b) { return a.sticky == b.sticky && cmp(a, b) == 0 }
16 |
17 | export function copyPos(x) {return Pos(x.line, x.ch)}
18 | export function maxPos(a, b) { return cmp(a, b) < 0 ? b : a }
19 | export function minPos(a, b) { return cmp(a, b) < 0 ? a : b }
20 |
21 | // Most of the external API clips given positions to make sure they
22 | // actually exist within the document.
23 | export function clipLine(doc, n) {return Math.max(doc.first, Math.min(n, doc.first + doc.size - 1))}
24 | export function clipPos(doc, pos) {
25 | if (pos.line < doc.first) return Pos(doc.first, 0)
26 | let last = doc.first + doc.size - 1
27 | if (pos.line > last) return Pos(last, getLine(doc, last).text.length)
28 | return clipToLen(pos, getLine(doc, pos.line).text.length)
29 | }
30 | function clipToLen(pos, linelen) {
31 | let ch = pos.ch
32 | if (ch == null || ch > linelen) return Pos(pos.line, linelen)
33 | else if (ch < 0) return Pos(pos.line, 0)
34 | else return pos
35 | }
36 | export function clipPosArray(doc, array) {
37 | let out = []
38 | for (let i = 0; i < array.length; i++) out[i] = clipPos(doc, array[i])
39 | return out
40 | }
41 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/src/line/saw_special_spans.js:
--------------------------------------------------------------------------------
1 | // Optimize some code when these features are not used.
2 | export let sawReadOnlySpans = false, sawCollapsedSpans = false
3 |
4 | export function seeReadOnlySpans() {
5 | sawReadOnlySpans = true
6 | }
7 |
8 | export function seeCollapsedSpans() {
9 | sawCollapsedSpans = true
10 | }
11 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/src/measurement/widgets.js:
--------------------------------------------------------------------------------
1 | import { contains, elt, removeChildrenAndAdd } from "../util/dom"
2 | import { e_target } from "../util/event"
3 |
4 | export function widgetHeight(widget) {
5 | if (widget.height != null) return widget.height
6 | let cm = widget.doc.cm
7 | if (!cm) return 0
8 | if (!contains(document.body, widget.node)) {
9 | let parentStyle = "position: relative;"
10 | if (widget.coverGutter)
11 | parentStyle += "margin-left: -" + cm.display.gutters.offsetWidth + "px;"
12 | if (widget.noHScroll)
13 | parentStyle += "width: " + cm.display.wrapper.clientWidth + "px;"
14 | removeChildrenAndAdd(cm.display.measure, elt("div", [widget.node], null, parentStyle))
15 | }
16 | return widget.height = widget.node.parentNode.offsetHeight
17 | }
18 |
19 | // Return true when the given mouse event happened in a widget
20 | export function eventInWidget(display, e) {
21 | for (let n = e_target(e); n != display.wrapper; n = n.parentNode) {
22 | if (!n || (n.nodeType == 1 && n.getAttribute("cm-ignore-events") == "true") ||
23 | (n.parentNode == display.sizer && n != display.mover))
24 | return true
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/src/util/browser.js:
--------------------------------------------------------------------------------
1 | // Kludges for bugs and behavior differences that can't be feature
2 | // detected are enabled based on userAgent etc sniffing.
3 | let userAgent = navigator.userAgent
4 | let platform = navigator.platform
5 |
6 | export let gecko = /gecko\/\d/i.test(userAgent)
7 | let ie_upto10 = /MSIE \d/.test(userAgent)
8 | let ie_11up = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(userAgent)
9 | let edge = /Edge\/(\d+)/.exec(userAgent)
10 | export let ie = ie_upto10 || ie_11up || edge
11 | export let ie_version = ie && (ie_upto10 ? document.documentMode || 6 : +(edge || ie_11up)[1])
12 | export let webkit = !edge && /WebKit\//.test(userAgent)
13 | let qtwebkit = webkit && /Qt\/\d+\.\d+/.test(userAgent)
14 | export let chrome = !edge && /Chrome\//.test(userAgent)
15 | export let presto = /Opera\//.test(userAgent)
16 | export let safari = /Apple Computer/.test(navigator.vendor)
17 | export let mac_geMountainLion = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(userAgent)
18 | export let phantom = /PhantomJS/.test(userAgent)
19 |
20 | export let ios = !edge && /AppleWebKit/.test(userAgent) && /Mobile\/\w+/.test(userAgent)
21 | export let android = /Android/.test(userAgent)
22 | // This is woefully incomplete. Suggestions for alternative methods welcome.
23 | export let mobile = ios || android || /webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(userAgent)
24 | export let mac = ios || /Mac/.test(platform)
25 | export let chromeOS = /\bCrOS\b/.test(userAgent)
26 | export let windows = /win/i.test(platform)
27 |
28 | let presto_version = presto && userAgent.match(/Version\/(\d*\.\d*)/)
29 | if (presto_version) presto_version = Number(presto_version[1])
30 | if (presto_version && presto_version >= 15) { presto = false; webkit = true }
31 | // Some browsers use the wrong event properties to signal cmd/ctrl on OS X
32 | export let flipCtrlCmd = mac && (qtwebkit || presto && (presto_version == null || presto_version < 12.11))
33 | export let captureRightClick = gecko || (ie && ie_version >= 9)
34 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/test/lint.js:
--------------------------------------------------------------------------------
1 | var blint = require("blint");
2 |
3 | ["mode", "lib", "addon", "keymap"].forEach(function(dir) {
4 | blint.checkDir(dir, {
5 | browser: true,
6 | allowedGlobals: ["CodeMirror", "define", "test", "requirejs"],
7 | ecmaVersion: 5,
8 | tabs: dir == "lib"
9 | });
10 | });
11 |
12 | ["src"].forEach(function(dir) {
13 | blint.checkDir(dir, {
14 | browser: true,
15 | ecmaVersion: 6,
16 | semicolons: false
17 | });
18 | });
19 |
20 | module.exports = {ok: blint.success()};
21 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/test/mode_test.css:
--------------------------------------------------------------------------------
1 | .mt-output .mt-token {
2 | border: 1px solid #ddd;
3 | white-space: pre;
4 | font-family: "Consolas", monospace;
5 | text-align: center;
6 | }
7 |
8 | .mt-output .mt-style {
9 | font-size: x-small;
10 | }
11 |
12 | .mt-output .mt-state {
13 | font-size: x-small;
14 | vertical-align: top;
15 | }
16 |
17 | .mt-output .mt-state-row {
18 | display: none;
19 | }
20 |
21 | .mt-state-unhide .mt-output .mt-state-row {
22 | display: table-row;
23 | }
24 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/test/phantom_driver.js:
--------------------------------------------------------------------------------
1 | var page = require('webpage').create();
2 |
3 | page.open("http://localhost:3000/test/index.html", function (status) {
4 | if (status != "success") {
5 | console.log("page couldn't be loaded successfully");
6 | phantom.exit(1);
7 | }
8 | waitFor(function () {
9 | return page.evaluate(function () {
10 | var output = document.getElementById('status');
11 | if (!output) { return false; }
12 | return (/^(\d+ failures?|all passed)/i).test(output.innerText);
13 | });
14 | }, function () {
15 | var failed = page.evaluate(function () { return window.failed; });
16 | var output = page.evaluate(function () {
17 | return document.getElementById('output').innerText + "\n" +
18 | document.getElementById('status').innerText;
19 | });
20 | console.log(output);
21 | phantom.exit(failed > 0 ? 1 : 0);
22 | });
23 | });
24 |
25 | function waitFor (test, cb) {
26 | if (test()) {
27 | cb();
28 | } else {
29 | setTimeout(function () { waitFor(test, cb); }, 250);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/test/run.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | var ok = require("./lint").ok;
4 |
5 | var files = new (require('node-static').Server)();
6 |
7 | var server = require('http').createServer(function (req, res) {
8 | req.addListener('end', function () {
9 | files.serve(req, res, function (err/*, result */) {
10 | if (err) {
11 | console.error(err);
12 | process.exit(1);
13 | }
14 | });
15 | }).resume();
16 | }).addListener('error', function (err) {
17 | throw err;
18 | }).listen(3000, function () {
19 | var childProcess = require('child_process');
20 | var phantomjs = require("phantomjs-prebuilt");
21 | var childArgs = [
22 | require("path").join(__dirname, 'phantom_driver.js')
23 | ];
24 | childProcess.execFile(phantomjs.path, childArgs, function (err, stdout, stderr) {
25 | server.close();
26 | console.log(stdout);
27 | if (err) console.error(err);
28 | if (stderr) console.error(stderr);
29 | process.exit(err || stderr || !ok ? 1 : 0);
30 | });
31 | });
32 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/theme/abcdef.css:
--------------------------------------------------------------------------------
1 | .cm-s-abcdef.CodeMirror { background: #0f0f0f; color: #defdef; }
2 | .cm-s-abcdef div.CodeMirror-selected { background: #515151; }
3 | .cm-s-abcdef .CodeMirror-line::selection, .cm-s-abcdef .CodeMirror-line > span::selection, .cm-s-abcdef .CodeMirror-line > span > span::selection { background: rgba(56, 56, 56, 0.99); }
4 | .cm-s-abcdef .CodeMirror-line::-moz-selection, .cm-s-abcdef .CodeMirror-line > span::-moz-selection, .cm-s-abcdef .CodeMirror-line > span > span::-moz-selection { background: rgba(56, 56, 56, 0.99); }
5 | .cm-s-abcdef .CodeMirror-gutters { background: #555; border-right: 2px solid #314151; }
6 | .cm-s-abcdef .CodeMirror-guttermarker { color: #222; }
7 | .cm-s-abcdef .CodeMirror-guttermarker-subtle { color: azure; }
8 | .cm-s-abcdef .CodeMirror-linenumber { color: #FFFFFF; }
9 | .cm-s-abcdef .CodeMirror-cursor { border-left: 1px solid #00FF00; }
10 |
11 | .cm-s-abcdef span.cm-keyword { color: darkgoldenrod; font-weight: bold; }
12 | .cm-s-abcdef span.cm-atom { color: #77F; }
13 | .cm-s-abcdef span.cm-number { color: violet; }
14 | .cm-s-abcdef span.cm-def { color: #fffabc; }
15 | .cm-s-abcdef span.cm-variable { color: #abcdef; }
16 | .cm-s-abcdef span.cm-variable-2 { color: #cacbcc; }
17 | .cm-s-abcdef span.cm-variable-3 { color: #def; }
18 | .cm-s-abcdef span.cm-property { color: #fedcba; }
19 | .cm-s-abcdef span.cm-operator { color: #ff0; }
20 | .cm-s-abcdef span.cm-comment { color: #7a7b7c; font-style: italic;}
21 | .cm-s-abcdef span.cm-string { color: #2b4; }
22 | .cm-s-abcdef span.cm-meta { color: #C9F; }
23 | .cm-s-abcdef span.cm-qualifier { color: #FFF700; }
24 | .cm-s-abcdef span.cm-builtin { color: #30aabc; }
25 | .cm-s-abcdef span.cm-bracket { color: #8a8a8a; }
26 | .cm-s-abcdef span.cm-tag { color: #FFDD44; }
27 | .cm-s-abcdef span.cm-attribute { color: #DDFF00; }
28 | .cm-s-abcdef span.cm-error { color: #FF0000; }
29 | .cm-s-abcdef span.cm-header { color: aquamarine; font-weight: bold; }
30 | .cm-s-abcdef span.cm-link { color: blueviolet; }
31 |
32 | .cm-s-abcdef .CodeMirror-activeline-background { background: #314151; }
33 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/theme/ambiance-mobile.css:
--------------------------------------------------------------------------------
1 | .cm-s-ambiance.CodeMirror {
2 | -webkit-box-shadow: none;
3 | -moz-box-shadow: none;
4 | box-shadow: none;
5 | }
6 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/theme/bespin.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Name: Bespin
4 | Author: Mozilla / Jan T. Sott
5 |
6 | CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)
7 | Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
8 |
9 | */
10 |
11 | .cm-s-bespin.CodeMirror {background: #28211c; color: #9d9b97;}
12 | .cm-s-bespin div.CodeMirror-selected {background: #36312e !important;}
13 | .cm-s-bespin .CodeMirror-gutters {background: #28211c; border-right: 0px;}
14 | .cm-s-bespin .CodeMirror-linenumber {color: #666666;}
15 | .cm-s-bespin .CodeMirror-cursor {border-left: 1px solid #797977 !important;}
16 |
17 | .cm-s-bespin span.cm-comment {color: #937121;}
18 | .cm-s-bespin span.cm-atom {color: #9b859d;}
19 | .cm-s-bespin span.cm-number {color: #9b859d;}
20 |
21 | .cm-s-bespin span.cm-property, .cm-s-bespin span.cm-attribute {color: #54be0d;}
22 | .cm-s-bespin span.cm-keyword {color: #cf6a4c;}
23 | .cm-s-bespin span.cm-string {color: #f9ee98;}
24 |
25 | .cm-s-bespin span.cm-variable {color: #54be0d;}
26 | .cm-s-bespin span.cm-variable-2 {color: #5ea6ea;}
27 | .cm-s-bespin span.cm-def {color: #cf7d34;}
28 | .cm-s-bespin span.cm-error {background: #cf6a4c; color: #797977;}
29 | .cm-s-bespin span.cm-bracket {color: #9d9b97;}
30 | .cm-s-bespin span.cm-tag {color: #cf6a4c;}
31 | .cm-s-bespin span.cm-link {color: #9b859d;}
32 |
33 | .cm-s-bespin .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;}
34 | .cm-s-bespin .CodeMirror-activeline-background { background: #404040; }
35 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/theme/blackboard.css:
--------------------------------------------------------------------------------
1 | /* Port of TextMate's Blackboard theme */
2 |
3 | .cm-s-blackboard.CodeMirror { background: #0C1021; color: #F8F8F8; }
4 | .cm-s-blackboard div.CodeMirror-selected { background: #253B76; }
5 | .cm-s-blackboard .CodeMirror-line::selection, .cm-s-blackboard .CodeMirror-line > span::selection, .cm-s-blackboard .CodeMirror-line > span > span::selection { background: rgba(37, 59, 118, .99); }
6 | .cm-s-blackboard .CodeMirror-line::-moz-selection, .cm-s-blackboard .CodeMirror-line > span::-moz-selection, .cm-s-blackboard .CodeMirror-line > span > span::-moz-selection { background: rgba(37, 59, 118, .99); }
7 | .cm-s-blackboard .CodeMirror-gutters { background: #0C1021; border-right: 0; }
8 | .cm-s-blackboard .CodeMirror-guttermarker { color: #FBDE2D; }
9 | .cm-s-blackboard .CodeMirror-guttermarker-subtle { color: #888; }
10 | .cm-s-blackboard .CodeMirror-linenumber { color: #888; }
11 | .cm-s-blackboard .CodeMirror-cursor { border-left: 1px solid #A7A7A7; }
12 |
13 | .cm-s-blackboard .cm-keyword { color: #FBDE2D; }
14 | .cm-s-blackboard .cm-atom { color: #D8FA3C; }
15 | .cm-s-blackboard .cm-number { color: #D8FA3C; }
16 | .cm-s-blackboard .cm-def { color: #8DA6CE; }
17 | .cm-s-blackboard .cm-variable { color: #FF6400; }
18 | .cm-s-blackboard .cm-operator { color: #FBDE2D; }
19 | .cm-s-blackboard .cm-comment { color: #AEAEAE; }
20 | .cm-s-blackboard .cm-string { color: #61CE3C; }
21 | .cm-s-blackboard .cm-string-2 { color: #61CE3C; }
22 | .cm-s-blackboard .cm-meta { color: #D8FA3C; }
23 | .cm-s-blackboard .cm-builtin { color: #8DA6CE; }
24 | .cm-s-blackboard .cm-tag { color: #8DA6CE; }
25 | .cm-s-blackboard .cm-attribute { color: #8DA6CE; }
26 | .cm-s-blackboard .cm-header { color: #FF6400; }
27 | .cm-s-blackboard .cm-hr { color: #AEAEAE; }
28 | .cm-s-blackboard .cm-link { color: #8DA6CE; }
29 | .cm-s-blackboard .cm-error { background: #9D1E15; color: #F8F8F8; }
30 |
31 | .cm-s-blackboard .CodeMirror-activeline-background { background: #3C3636; }
32 | .cm-s-blackboard .CodeMirror-matchingbracket { outline:1px solid grey;color:white !important; }
33 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/theme/cobalt.css:
--------------------------------------------------------------------------------
1 | .cm-s-cobalt.CodeMirror { background: #002240; color: white; }
2 | .cm-s-cobalt div.CodeMirror-selected { background: #b36539; }
3 | .cm-s-cobalt .CodeMirror-line::selection, .cm-s-cobalt .CodeMirror-line > span::selection, .cm-s-cobalt .CodeMirror-line > span > span::selection { background: rgba(179, 101, 57, .99); }
4 | .cm-s-cobalt .CodeMirror-line::-moz-selection, .cm-s-cobalt .CodeMirror-line > span::-moz-selection, .cm-s-cobalt .CodeMirror-line > span > span::-moz-selection { background: rgba(179, 101, 57, .99); }
5 | .cm-s-cobalt .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; }
6 | .cm-s-cobalt .CodeMirror-guttermarker { color: #ffee80; }
7 | .cm-s-cobalt .CodeMirror-guttermarker-subtle { color: #d0d0d0; }
8 | .cm-s-cobalt .CodeMirror-linenumber { color: #d0d0d0; }
9 | .cm-s-cobalt .CodeMirror-cursor { border-left: 1px solid white; }
10 |
11 | .cm-s-cobalt span.cm-comment { color: #08f; }
12 | .cm-s-cobalt span.cm-atom { color: #845dc4; }
13 | .cm-s-cobalt span.cm-number, .cm-s-cobalt span.cm-attribute { color: #ff80e1; }
14 | .cm-s-cobalt span.cm-keyword { color: #ffee80; }
15 | .cm-s-cobalt span.cm-string { color: #3ad900; }
16 | .cm-s-cobalt span.cm-meta { color: #ff9d00; }
17 | .cm-s-cobalt span.cm-variable-2, .cm-s-cobalt span.cm-tag { color: #9effff; }
18 | .cm-s-cobalt span.cm-variable-3, .cm-s-cobalt span.cm-def { color: white; }
19 | .cm-s-cobalt span.cm-bracket { color: #d8d8d8; }
20 | .cm-s-cobalt span.cm-builtin, .cm-s-cobalt span.cm-special { color: #ff9e59; }
21 | .cm-s-cobalt span.cm-link { color: #845dc4; }
22 | .cm-s-cobalt span.cm-error { color: #9d1e15; }
23 |
24 | .cm-s-cobalt .CodeMirror-activeline-background { background: #002D57; }
25 | .cm-s-cobalt .CodeMirror-matchingbracket { outline:1px solid grey;color:white !important; }
26 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/theme/colorforth.css:
--------------------------------------------------------------------------------
1 | .cm-s-colorforth.CodeMirror { background: #000000; color: #f8f8f8; }
2 | .cm-s-colorforth .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; }
3 | .cm-s-colorforth .CodeMirror-guttermarker { color: #FFBD40; }
4 | .cm-s-colorforth .CodeMirror-guttermarker-subtle { color: #78846f; }
5 | .cm-s-colorforth .CodeMirror-linenumber { color: #bababa; }
6 | .cm-s-colorforth .CodeMirror-cursor { border-left: 1px solid white; }
7 |
8 | .cm-s-colorforth span.cm-comment { color: #ededed; }
9 | .cm-s-colorforth span.cm-def { color: #ff1c1c; font-weight:bold; }
10 | .cm-s-colorforth span.cm-keyword { color: #ffd900; }
11 | .cm-s-colorforth span.cm-builtin { color: #00d95a; }
12 | .cm-s-colorforth span.cm-variable { color: #73ff00; }
13 | .cm-s-colorforth span.cm-string { color: #007bff; }
14 | .cm-s-colorforth span.cm-number { color: #00c4ff; }
15 | .cm-s-colorforth span.cm-atom { color: #606060; }
16 |
17 | .cm-s-colorforth span.cm-variable-2 { color: #EEE; }
18 | .cm-s-colorforth span.cm-variable-3 { color: #DDD; }
19 | .cm-s-colorforth span.cm-property {}
20 | .cm-s-colorforth span.cm-operator {}
21 |
22 | .cm-s-colorforth span.cm-meta { color: yellow; }
23 | .cm-s-colorforth span.cm-qualifier { color: #FFF700; }
24 | .cm-s-colorforth span.cm-bracket { color: #cc7; }
25 | .cm-s-colorforth span.cm-tag { color: #FFBD40; }
26 | .cm-s-colorforth span.cm-attribute { color: #FFF700; }
27 | .cm-s-colorforth span.cm-error { color: #f00; }
28 |
29 | .cm-s-colorforth div.CodeMirror-selected { background: #333d53; }
30 |
31 | .cm-s-colorforth span.cm-compilation { background: rgba(255, 255, 255, 0.12); }
32 |
33 | .cm-s-colorforth .CodeMirror-activeline-background { background: #253540; }
34 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/theme/eclipse.css:
--------------------------------------------------------------------------------
1 | .cm-s-eclipse span.cm-meta { color: #FF1717; }
2 | .cm-s-eclipse span.cm-keyword { line-height: 1em; font-weight: bold; color: #7F0055; }
3 | .cm-s-eclipse span.cm-atom { color: #219; }
4 | .cm-s-eclipse span.cm-number { color: #164; }
5 | .cm-s-eclipse span.cm-def { color: #00f; }
6 | .cm-s-eclipse span.cm-variable { color: black; }
7 | .cm-s-eclipse span.cm-variable-2 { color: #0000C0; }
8 | .cm-s-eclipse span.cm-variable-3 { color: #0000C0; }
9 | .cm-s-eclipse span.cm-property { color: black; }
10 | .cm-s-eclipse span.cm-operator { color: black; }
11 | .cm-s-eclipse span.cm-comment { color: #3F7F5F; }
12 | .cm-s-eclipse span.cm-string { color: #2A00FF; }
13 | .cm-s-eclipse span.cm-string-2 { color: #f50; }
14 | .cm-s-eclipse span.cm-qualifier { color: #555; }
15 | .cm-s-eclipse span.cm-builtin { color: #30a; }
16 | .cm-s-eclipse span.cm-bracket { color: #cc7; }
17 | .cm-s-eclipse span.cm-tag { color: #170; }
18 | .cm-s-eclipse span.cm-attribute { color: #00c; }
19 | .cm-s-eclipse span.cm-link { color: #219; }
20 | .cm-s-eclipse span.cm-error { color: #f00; }
21 |
22 | .cm-s-eclipse .CodeMirror-activeline-background { background: #e8f2ff; }
23 | .cm-s-eclipse .CodeMirror-matchingbracket { outline:1px solid grey; color:black !important; }
24 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/theme/elegant.css:
--------------------------------------------------------------------------------
1 | .cm-s-elegant span.cm-number, .cm-s-elegant span.cm-string, .cm-s-elegant span.cm-atom { color: #762; }
2 | .cm-s-elegant span.cm-comment { color: #262; font-style: italic; line-height: 1em; }
3 | .cm-s-elegant span.cm-meta { color: #555; font-style: italic; line-height: 1em; }
4 | .cm-s-elegant span.cm-variable { color: black; }
5 | .cm-s-elegant span.cm-variable-2 { color: #b11; }
6 | .cm-s-elegant span.cm-qualifier { color: #555; }
7 | .cm-s-elegant span.cm-keyword { color: #730; }
8 | .cm-s-elegant span.cm-builtin { color: #30a; }
9 | .cm-s-elegant span.cm-link { color: #762; }
10 | .cm-s-elegant span.cm-error { background-color: #fdd; }
11 |
12 | .cm-s-elegant .CodeMirror-activeline-background { background: #e8f2ff; }
13 | .cm-s-elegant .CodeMirror-matchingbracket { outline:1px solid grey; color:black !important; }
14 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/theme/hopscotch.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Name: Hopscotch
4 | Author: Jan T. Sott
5 |
6 | CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)
7 | Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
8 |
9 | */
10 |
11 | .cm-s-hopscotch.CodeMirror {background: #322931; color: #d5d3d5;}
12 | .cm-s-hopscotch div.CodeMirror-selected {background: #433b42 !important;}
13 | .cm-s-hopscotch .CodeMirror-gutters {background: #322931; border-right: 0px;}
14 | .cm-s-hopscotch .CodeMirror-linenumber {color: #797379;}
15 | .cm-s-hopscotch .CodeMirror-cursor {border-left: 1px solid #989498 !important;}
16 |
17 | .cm-s-hopscotch span.cm-comment {color: #b33508;}
18 | .cm-s-hopscotch span.cm-atom {color: #c85e7c;}
19 | .cm-s-hopscotch span.cm-number {color: #c85e7c;}
20 |
21 | .cm-s-hopscotch span.cm-property, .cm-s-hopscotch span.cm-attribute {color: #8fc13e;}
22 | .cm-s-hopscotch span.cm-keyword {color: #dd464c;}
23 | .cm-s-hopscotch span.cm-string {color: #fdcc59;}
24 |
25 | .cm-s-hopscotch span.cm-variable {color: #8fc13e;}
26 | .cm-s-hopscotch span.cm-variable-2 {color: #1290bf;}
27 | .cm-s-hopscotch span.cm-def {color: #fd8b19;}
28 | .cm-s-hopscotch span.cm-error {background: #dd464c; color: #989498;}
29 | .cm-s-hopscotch span.cm-bracket {color: #d5d3d5;}
30 | .cm-s-hopscotch span.cm-tag {color: #dd464c;}
31 | .cm-s-hopscotch span.cm-link {color: #c85e7c;}
32 |
33 | .cm-s-hopscotch .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;}
34 | .cm-s-hopscotch .CodeMirror-activeline-background { background: #302020; }
35 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/theme/isotope.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Name: Isotope
4 | Author: David Desandro / Jan T. Sott
5 |
6 | CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)
7 | Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
8 |
9 | */
10 |
11 | .cm-s-isotope.CodeMirror {background: #000000; color: #e0e0e0;}
12 | .cm-s-isotope div.CodeMirror-selected {background: #404040 !important;}
13 | .cm-s-isotope .CodeMirror-gutters {background: #000000; border-right: 0px;}
14 | .cm-s-isotope .CodeMirror-linenumber {color: #808080;}
15 | .cm-s-isotope .CodeMirror-cursor {border-left: 1px solid #c0c0c0 !important;}
16 |
17 | .cm-s-isotope span.cm-comment {color: #3300ff;}
18 | .cm-s-isotope span.cm-atom {color: #cc00ff;}
19 | .cm-s-isotope span.cm-number {color: #cc00ff;}
20 |
21 | .cm-s-isotope span.cm-property, .cm-s-isotope span.cm-attribute {color: #33ff00;}
22 | .cm-s-isotope span.cm-keyword {color: #ff0000;}
23 | .cm-s-isotope span.cm-string {color: #ff0099;}
24 |
25 | .cm-s-isotope span.cm-variable {color: #33ff00;}
26 | .cm-s-isotope span.cm-variable-2 {color: #0066ff;}
27 | .cm-s-isotope span.cm-def {color: #ff9900;}
28 | .cm-s-isotope span.cm-error {background: #ff0000; color: #c0c0c0;}
29 | .cm-s-isotope span.cm-bracket {color: #e0e0e0;}
30 | .cm-s-isotope span.cm-tag {color: #ff0000;}
31 | .cm-s-isotope span.cm-link {color: #cc00ff;}
32 |
33 | .cm-s-isotope .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;}
34 | .cm-s-isotope .CodeMirror-activeline-background { background: #202020; }
35 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/theme/monokai.css:
--------------------------------------------------------------------------------
1 | /* Based on Sublime Text's Monokai theme */
2 |
3 | .cm-s-monokai.CodeMirror { background: #272822; color: #f8f8f2; }
4 | .cm-s-monokai div.CodeMirror-selected { background: #49483E; }
5 | .cm-s-monokai .CodeMirror-line::selection, .cm-s-monokai .CodeMirror-line > span::selection, .cm-s-monokai .CodeMirror-line > span > span::selection { background: rgba(73, 72, 62, .99); }
6 | .cm-s-monokai .CodeMirror-line::-moz-selection, .cm-s-monokai .CodeMirror-line > span::-moz-selection, .cm-s-monokai .CodeMirror-line > span > span::-moz-selection { background: rgba(73, 72, 62, .99); }
7 | .cm-s-monokai .CodeMirror-gutters { background: #272822; border-right: 0px; }
8 | .cm-s-monokai .CodeMirror-guttermarker { color: white; }
9 | .cm-s-monokai .CodeMirror-guttermarker-subtle { color: #d0d0d0; }
10 | .cm-s-monokai .CodeMirror-linenumber { color: #d0d0d0; }
11 | .cm-s-monokai .CodeMirror-cursor { border-left: 1px solid #f8f8f0; }
12 |
13 | .cm-s-monokai span.cm-comment { color: #75715e; }
14 | .cm-s-monokai span.cm-atom { color: #ae81ff; }
15 | .cm-s-monokai span.cm-number { color: #ae81ff; }
16 |
17 | .cm-s-monokai span.cm-property, .cm-s-monokai span.cm-attribute { color: #a6e22e; }
18 | .cm-s-monokai span.cm-keyword { color: #f92672; }
19 | .cm-s-monokai span.cm-builtin { color: #66d9ef; }
20 | .cm-s-monokai span.cm-string { color: #e6db74; }
21 |
22 | .cm-s-monokai span.cm-variable { color: #f8f8f2; }
23 | .cm-s-monokai span.cm-variable-2 { color: #9effff; }
24 | .cm-s-monokai span.cm-variable-3 { color: #66d9ef; }
25 | .cm-s-monokai span.cm-def { color: #fd971f; }
26 | .cm-s-monokai span.cm-bracket { color: #f8f8f2; }
27 | .cm-s-monokai span.cm-tag { color: #f92672; }
28 | .cm-s-monokai span.cm-header { color: #ae81ff; }
29 | .cm-s-monokai span.cm-link { color: #ae81ff; }
30 | .cm-s-monokai span.cm-error { background: #f92672; color: #f8f8f0; }
31 |
32 | .cm-s-monokai .CodeMirror-activeline-background { background: #373831; }
33 | .cm-s-monokai .CodeMirror-matchingbracket {
34 | text-decoration: underline;
35 | color: white !important;
36 | }
37 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/theme/neat.css:
--------------------------------------------------------------------------------
1 | .cm-s-neat span.cm-comment { color: #a86; }
2 | .cm-s-neat span.cm-keyword { line-height: 1em; font-weight: bold; color: blue; }
3 | .cm-s-neat span.cm-string { color: #a22; }
4 | .cm-s-neat span.cm-builtin { line-height: 1em; font-weight: bold; color: #077; }
5 | .cm-s-neat span.cm-special { line-height: 1em; font-weight: bold; color: #0aa; }
6 | .cm-s-neat span.cm-variable { color: black; }
7 | .cm-s-neat span.cm-number, .cm-s-neat span.cm-atom { color: #3a3; }
8 | .cm-s-neat span.cm-meta { color: #555; }
9 | .cm-s-neat span.cm-link { color: #3a3; }
10 |
11 | .cm-s-neat .CodeMirror-activeline-background { background: #e8f2ff; }
12 | .cm-s-neat .CodeMirror-matchingbracket { outline:1px solid grey; color:black !important; }
13 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/theme/neo.css:
--------------------------------------------------------------------------------
1 | /* neo theme for codemirror */
2 |
3 | /* Color scheme */
4 |
5 | .cm-s-neo.CodeMirror {
6 | background-color:#ffffff;
7 | color:#2e383c;
8 | line-height:1.4375;
9 | }
10 | .cm-s-neo .cm-comment { color:#75787b; }
11 | .cm-s-neo .cm-keyword, .cm-s-neo .cm-property { color:#1d75b3; }
12 | .cm-s-neo .cm-atom,.cm-s-neo .cm-number { color:#75438a; }
13 | .cm-s-neo .cm-node,.cm-s-neo .cm-tag { color:#9c3328; }
14 | .cm-s-neo .cm-string { color:#b35e14; }
15 | .cm-s-neo .cm-variable,.cm-s-neo .cm-qualifier { color:#047d65; }
16 |
17 |
18 | /* Editor styling */
19 |
20 | .cm-s-neo pre {
21 | padding:0;
22 | }
23 |
24 | .cm-s-neo .CodeMirror-gutters {
25 | border:none;
26 | border-right:10px solid transparent;
27 | background-color:transparent;
28 | }
29 |
30 | .cm-s-neo .CodeMirror-linenumber {
31 | padding:0;
32 | color:#e0e2e5;
33 | }
34 |
35 | .cm-s-neo .CodeMirror-guttermarker { color: #1d75b3; }
36 | .cm-s-neo .CodeMirror-guttermarker-subtle { color: #e0e2e5; }
37 |
38 | .cm-s-neo .CodeMirror-cursor {
39 | width: auto;
40 | border: 0;
41 | background: rgba(155,157,162,0.37);
42 | z-index: 1;
43 | }
44 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/theme/night.css:
--------------------------------------------------------------------------------
1 | /* Loosely based on the Midnight Textmate theme */
2 |
3 | .cm-s-night.CodeMirror { background: #0a001f; color: #f8f8f8; }
4 | .cm-s-night div.CodeMirror-selected { background: #447; }
5 | .cm-s-night .CodeMirror-line::selection, .cm-s-night .CodeMirror-line > span::selection, .cm-s-night .CodeMirror-line > span > span::selection { background: rgba(68, 68, 119, .99); }
6 | .cm-s-night .CodeMirror-line::-moz-selection, .cm-s-night .CodeMirror-line > span::-moz-selection, .cm-s-night .CodeMirror-line > span > span::-moz-selection { background: rgba(68, 68, 119, .99); }
7 | .cm-s-night .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; }
8 | .cm-s-night .CodeMirror-guttermarker { color: white; }
9 | .cm-s-night .CodeMirror-guttermarker-subtle { color: #bbb; }
10 | .cm-s-night .CodeMirror-linenumber { color: #f8f8f8; }
11 | .cm-s-night .CodeMirror-cursor { border-left: 1px solid white; }
12 |
13 | .cm-s-night span.cm-comment { color: #8900d1; }
14 | .cm-s-night span.cm-atom { color: #845dc4; }
15 | .cm-s-night span.cm-number, .cm-s-night span.cm-attribute { color: #ffd500; }
16 | .cm-s-night span.cm-keyword { color: #599eff; }
17 | .cm-s-night span.cm-string { color: #37f14a; }
18 | .cm-s-night span.cm-meta { color: #7678e2; }
19 | .cm-s-night span.cm-variable-2, .cm-s-night span.cm-tag { color: #99b2ff; }
20 | .cm-s-night span.cm-variable-3, .cm-s-night span.cm-def { color: white; }
21 | .cm-s-night span.cm-bracket { color: #8da6ce; }
22 | .cm-s-night span.cm-builtin, .cm-s-night span.cm-special { color: #ff9e59; }
23 | .cm-s-night span.cm-link { color: #845dc4; }
24 | .cm-s-night span.cm-error { color: #9d1e15; }
25 |
26 | .cm-s-night .CodeMirror-activeline-background { background: #1C005A; }
27 | .cm-s-night .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; }
28 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/theme/railscasts.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Name: Railscasts
4 | Author: Ryan Bates (http://railscasts.com)
5 |
6 | CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)
7 | Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
8 |
9 | */
10 |
11 | .cm-s-railscasts.CodeMirror {background: #2b2b2b; color: #f4f1ed;}
12 | .cm-s-railscasts div.CodeMirror-selected {background: #272935 !important;}
13 | .cm-s-railscasts .CodeMirror-gutters {background: #2b2b2b; border-right: 0px;}
14 | .cm-s-railscasts .CodeMirror-linenumber {color: #5a647e;}
15 | .cm-s-railscasts .CodeMirror-cursor {border-left: 1px solid #d4cfc9 !important;}
16 |
17 | .cm-s-railscasts span.cm-comment {color: #bc9458;}
18 | .cm-s-railscasts span.cm-atom {color: #b6b3eb;}
19 | .cm-s-railscasts span.cm-number {color: #b6b3eb;}
20 |
21 | .cm-s-railscasts span.cm-property, .cm-s-railscasts span.cm-attribute {color: #a5c261;}
22 | .cm-s-railscasts span.cm-keyword {color: #da4939;}
23 | .cm-s-railscasts span.cm-string {color: #ffc66d;}
24 |
25 | .cm-s-railscasts span.cm-variable {color: #a5c261;}
26 | .cm-s-railscasts span.cm-variable-2 {color: #6d9cbe;}
27 | .cm-s-railscasts span.cm-def {color: #cc7833;}
28 | .cm-s-railscasts span.cm-error {background: #da4939; color: #d4cfc9;}
29 | .cm-s-railscasts span.cm-bracket {color: #f4f1ed;}
30 | .cm-s-railscasts span.cm-tag {color: #da4939;}
31 | .cm-s-railscasts span.cm-link {color: #b6b3eb;}
32 |
33 | .cm-s-railscasts .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;}
34 | .cm-s-railscasts .CodeMirror-activeline-background { background: #303040; }
35 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/theme/rubyblue.css:
--------------------------------------------------------------------------------
1 | .cm-s-rubyblue.CodeMirror { background: #112435; color: white; }
2 | .cm-s-rubyblue div.CodeMirror-selected { background: #38566F; }
3 | .cm-s-rubyblue .CodeMirror-line::selection, .cm-s-rubyblue .CodeMirror-line > span::selection, .cm-s-rubyblue .CodeMirror-line > span > span::selection { background: rgba(56, 86, 111, 0.99); }
4 | .cm-s-rubyblue .CodeMirror-line::-moz-selection, .cm-s-rubyblue .CodeMirror-line > span::-moz-selection, .cm-s-rubyblue .CodeMirror-line > span > span::-moz-selection { background: rgba(56, 86, 111, 0.99); }
5 | .cm-s-rubyblue .CodeMirror-gutters { background: #1F4661; border-right: 7px solid #3E7087; }
6 | .cm-s-rubyblue .CodeMirror-guttermarker { color: white; }
7 | .cm-s-rubyblue .CodeMirror-guttermarker-subtle { color: #3E7087; }
8 | .cm-s-rubyblue .CodeMirror-linenumber { color: white; }
9 | .cm-s-rubyblue .CodeMirror-cursor { border-left: 1px solid white; }
10 |
11 | .cm-s-rubyblue span.cm-comment { color: #999; font-style:italic; line-height: 1em; }
12 | .cm-s-rubyblue span.cm-atom { color: #F4C20B; }
13 | .cm-s-rubyblue span.cm-number, .cm-s-rubyblue span.cm-attribute { color: #82C6E0; }
14 | .cm-s-rubyblue span.cm-keyword { color: #F0F; }
15 | .cm-s-rubyblue span.cm-string { color: #F08047; }
16 | .cm-s-rubyblue span.cm-meta { color: #F0F; }
17 | .cm-s-rubyblue span.cm-variable-2, .cm-s-rubyblue span.cm-tag { color: #7BD827; }
18 | .cm-s-rubyblue span.cm-variable-3, .cm-s-rubyblue span.cm-def { color: white; }
19 | .cm-s-rubyblue span.cm-bracket { color: #F0F; }
20 | .cm-s-rubyblue span.cm-link { color: #F4C20B; }
21 | .cm-s-rubyblue span.CodeMirror-matchingbracket { color:#F0F !important; }
22 | .cm-s-rubyblue span.cm-builtin, .cm-s-rubyblue span.cm-special { color: #FF9D00; }
23 | .cm-s-rubyblue span.cm-error { color: #AF2018; }
24 |
25 | .cm-s-rubyblue .CodeMirror-activeline-background { background: #173047; }
26 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/theme/the-matrix.css:
--------------------------------------------------------------------------------
1 | .cm-s-the-matrix.CodeMirror { background: #000000; color: #00FF00; }
2 | .cm-s-the-matrix div.CodeMirror-selected { background: #2D2D2D; }
3 | .cm-s-the-matrix .CodeMirror-line::selection, .cm-s-the-matrix .CodeMirror-line > span::selection, .cm-s-the-matrix .CodeMirror-line > span > span::selection { background: rgba(45, 45, 45, 0.99); }
4 | .cm-s-the-matrix .CodeMirror-line::-moz-selection, .cm-s-the-matrix .CodeMirror-line > span::-moz-selection, .cm-s-the-matrix .CodeMirror-line > span > span::-moz-selection { background: rgba(45, 45, 45, 0.99); }
5 | .cm-s-the-matrix .CodeMirror-gutters { background: #060; border-right: 2px solid #00FF00; }
6 | .cm-s-the-matrix .CodeMirror-guttermarker { color: #0f0; }
7 | .cm-s-the-matrix .CodeMirror-guttermarker-subtle { color: white; }
8 | .cm-s-the-matrix .CodeMirror-linenumber { color: #FFFFFF; }
9 | .cm-s-the-matrix .CodeMirror-cursor { border-left: 1px solid #00FF00; }
10 |
11 | .cm-s-the-matrix span.cm-keyword { color: #008803; font-weight: bold; }
12 | .cm-s-the-matrix span.cm-atom { color: #3FF; }
13 | .cm-s-the-matrix span.cm-number { color: #FFB94F; }
14 | .cm-s-the-matrix span.cm-def { color: #99C; }
15 | .cm-s-the-matrix span.cm-variable { color: #F6C; }
16 | .cm-s-the-matrix span.cm-variable-2 { color: #C6F; }
17 | .cm-s-the-matrix span.cm-variable-3 { color: #96F; }
18 | .cm-s-the-matrix span.cm-property { color: #62FFA0; }
19 | .cm-s-the-matrix span.cm-operator { color: #999; }
20 | .cm-s-the-matrix span.cm-comment { color: #CCCCCC; }
21 | .cm-s-the-matrix span.cm-string { color: #39C; }
22 | .cm-s-the-matrix span.cm-meta { color: #C9F; }
23 | .cm-s-the-matrix span.cm-qualifier { color: #FFF700; }
24 | .cm-s-the-matrix span.cm-builtin { color: #30a; }
25 | .cm-s-the-matrix span.cm-bracket { color: #cc7; }
26 | .cm-s-the-matrix span.cm-tag { color: #FFBD40; }
27 | .cm-s-the-matrix span.cm-attribute { color: #FFF700; }
28 | .cm-s-the-matrix span.cm-error { color: #FF0000; }
29 |
30 | .cm-s-the-matrix .CodeMirror-activeline-background { background: #040; }
31 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/theme/tomorrow-night-bright.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Name: Tomorrow Night - Bright
4 | Author: Chris Kempson
5 |
6 | Port done by Gerard Braad
7 |
8 | */
9 |
10 | .cm-s-tomorrow-night-bright.CodeMirror { background: #000000; color: #eaeaea; }
11 | .cm-s-tomorrow-night-bright div.CodeMirror-selected { background: #424242; }
12 | .cm-s-tomorrow-night-bright .CodeMirror-gutters { background: #000000; border-right: 0px; }
13 | .cm-s-tomorrow-night-bright .CodeMirror-guttermarker { color: #e78c45; }
14 | .cm-s-tomorrow-night-bright .CodeMirror-guttermarker-subtle { color: #777; }
15 | .cm-s-tomorrow-night-bright .CodeMirror-linenumber { color: #424242; }
16 | .cm-s-tomorrow-night-bright .CodeMirror-cursor { border-left: 1px solid #6A6A6A; }
17 |
18 | .cm-s-tomorrow-night-bright span.cm-comment { color: #d27b53; }
19 | .cm-s-tomorrow-night-bright span.cm-atom { color: #a16a94; }
20 | .cm-s-tomorrow-night-bright span.cm-number { color: #a16a94; }
21 |
22 | .cm-s-tomorrow-night-bright span.cm-property, .cm-s-tomorrow-night-bright span.cm-attribute { color: #99cc99; }
23 | .cm-s-tomorrow-night-bright span.cm-keyword { color: #d54e53; }
24 | .cm-s-tomorrow-night-bright span.cm-string { color: #e7c547; }
25 |
26 | .cm-s-tomorrow-night-bright span.cm-variable { color: #b9ca4a; }
27 | .cm-s-tomorrow-night-bright span.cm-variable-2 { color: #7aa6da; }
28 | .cm-s-tomorrow-night-bright span.cm-def { color: #e78c45; }
29 | .cm-s-tomorrow-night-bright span.cm-bracket { color: #eaeaea; }
30 | .cm-s-tomorrow-night-bright span.cm-tag { color: #d54e53; }
31 | .cm-s-tomorrow-night-bright span.cm-link { color: #a16a94; }
32 | .cm-s-tomorrow-night-bright span.cm-error { background: #d54e53; color: #6A6A6A; }
33 |
34 | .cm-s-tomorrow-night-bright .CodeMirror-activeline-background { background: #2a2a2a; }
35 | .cm-s-tomorrow-night-bright .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; }
36 |
--------------------------------------------------------------------------------
/Resources/Public/Components/codemirror/theme/yeti.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | Name: yeti
4 | Author: Michael Kaminsky (http://github.com/mkaminsky11)
5 |
6 | Original yeti color scheme by Jesse Weed (https://github.com/jesseweed/yeti-syntax)
7 |
8 | */
9 |
10 |
11 | .cm-s-yeti.CodeMirror {
12 | background-color: #ECEAE8 !important;
13 | color: #d1c9c0 !important;
14 | border: none;
15 | }
16 |
17 | .cm-s-yeti .CodeMirror-gutters {
18 | color: #adaba6;
19 | background-color: #E5E1DB;
20 | border: none;
21 | }
22 | .cm-s-yeti .CodeMirror-cursor { border-left: solid thin #d1c9c0; }
23 | .cm-s-yeti .CodeMirror-linenumber { color: #adaba6; }
24 | .cm-s-yeti.CodeMirror-focused div.CodeMirror-selected { background: #DCD8D2; }
25 | .cm-s-yeti .CodeMirror-line::selection, .cm-s-yeti .CodeMirror-line > span::selection, .cm-s-yeti .CodeMirror-line > span > span::selection { background: #DCD8D2; }
26 | .cm-s-yeti .CodeMirror-line::-moz-selection, .cm-s-yeti .CodeMirror-line > span::-moz-selection, .cm-s-yeti .CodeMirror-line > span > span::-moz-selection { background: #DCD8D2; }
27 | .cm-s-yeti span.cm-comment { color: #d4c8be; }
28 | .cm-s-yeti span.cm-string, .cm-s-yeti span.cm-string-2 { color: #96c0d8; }
29 | .cm-s-yeti span.cm-number { color: #a074c4; }
30 | .cm-s-yeti span.cm-variable { color: #55b5db; }
31 | .cm-s-yeti span.cm-variable-2 { color: #a074c4; }
32 | .cm-s-yeti span.cm-def { color: #55b5db; }
33 | .cm-s-yeti span.cm-operator { color: #9fb96e; }
34 | .cm-s-yeti span.cm-keyword { color: #9fb96e; }
35 | .cm-s-yeti span.cm-atom { color: #a074c4; }
36 | .cm-s-yeti span.cm-meta { color: #96c0d8; }
37 | .cm-s-yeti span.cm-tag { color: #96c0d8; }
38 | .cm-s-yeti span.cm-attribute { color: #9fb96e; }
39 | .cm-s-yeti span.cm-qualifier { color: #96c0d8; }
40 | .cm-s-yeti span.cm-property { color: #a074c4; }
41 | .cm-s-yeti span.cm-builtin { color: #a074c4; }
42 | .cm-s-yeti span.cm-variable-3 { color: #96c0d8; }
43 | .cm-s-yeti .CodeMirror-activeline-background { background: #E7E4E0; }
44 | .cm-s-yeti .CodeMirror-matchingbracket { text-decoration: underline; }
45 |
--------------------------------------------------------------------------------
/Resources/Public/JavaScript/Inspector/Validators/ColorValidator.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Validator for color hex/rgb/rgba values.
3 | */
4 | define(
5 | [
6 | 'Shared/Validation/AbstractValidator',
7 | 'Shared/I18n'
8 | ],
9 | function(AbstractValidator, I18n) {
10 | return AbstractValidator.extend({
11 | /**
12 | * Checks if the given value is a valid hex, rgb or rgba color.
13 | *
14 | * @param {string} value The value that should be validated
15 | * @return {void}
16 | */
17 | isValid: function(value) {
18 |
19 | if(!/^#(?:[0-9a-f]{3}){1,2}$/i.test(value)) {
20 |
21 | if (!/^rgb\s*\((\s*[012]?[0-9]{1,2}\s*,\s*[012]?[0-9]{1,2}\s*,\s*[012]?[0-9]{1,2}\s*)\)$/i.test(value)) {
22 | if (!/^rgba\s*\((\s*[012]?[0-9]{1,2}\s*,\s*[012]?[0-9]{1,2}\s*,\s*[012]?[0-9]{1,2}\s*,\s*(0(\.\d+)?|1(\.0+)?)\s*)\)$/i.test(value)) {
23 | this.addError('A valid color (hex, rgb, rgba) is expected.');
24 | this.addError(I18n.translate('content.inspector.validators.hexValidator.aValidColorIsExpected'));
25 | }
26 | }
27 | }
28 | }
29 | });
30 | }
31 | );
--------------------------------------------------------------------------------
/Resources/Public/Styles/ThemeModule.css:
--------------------------------------------------------------------------------
1 | .neos div.row {
2 | padding-bottom: 20px;
3 | }
4 |
5 | .neos h1,
6 | .neos h2,
7 | .neos h3,
8 | .neos h4 {
9 | font-weight: bold;
10 | }
11 |
12 | .neos h1 {
13 | font-size: 18px;
14 | padding-bottom: 20px;
15 | }
16 |
17 | .neos h2 {
18 | text-decoration: underline;
19 | }
20 |
21 | .neos .default-list {
22 | margin: 0 -20px;
23 | padding-bottom: 20px;
24 | }
25 |
26 | .neos .default-list li {
27 | display: inline-block;
28 | margin: 0 20px 20px;
29 | width: 250px;
30 | }
31 |
32 | .neos .font-list li select {
33 | width: 250px;
34 | }
35 |
36 | .neos .textfield-list .input-group {
37 | width: 100%;
38 | }
39 |
40 | .neos .font-fallback-value {
41 | padding-bottom: 15px;
42 | padding-top: 15px;
43 | width: 100%;
44 | }
45 |
46 | .neos .cm-neos-thememodule-headline {
47 | font-weight: bold;
48 | }
49 |
50 | .neos .jq-container .checkbox {
51 | padding-bottom: 2px;
52 | }
53 |
54 | .neos .CodeMirror.cm-s-default {
55 | margin-top: 5px;
56 | }
--------------------------------------------------------------------------------
/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "CM.Neos.ThemeModule",
3 | "homepage": "https://github.com/coders-market/CM.Neos.ThemeModule",
4 | "authors": [
5 | "Alexander Kappler "
6 | ],
7 | "description": "",
8 | "main": "",
9 | "license": "GPL-3.0+",
10 | "private": true,
11 | "ignore": [
12 | "**/.*",
13 | "node_modules",
14 | "bower_components",
15 | "test",
16 | "tests"
17 | ],
18 | "dependencies": {
19 | "spectrum": "^1.8.0",
20 | "codemirror": "^5.25.0",
21 | "bootstrap-colorpicker": "^2.5.1"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "cm/neos-thememodule",
3 | "type": "neos-plugin",
4 | "license": "GPL-3.0-or-later",
5 | "description": "Backend module to customize supported themes / site packages",
6 | "require": {
7 | "neos/neos": "~3.0",
8 | "leafo/scssphp": "~0.6.7"
9 | },
10 | "autoload": {
11 | "psr-4": {
12 | "CM\\Neos\\ThemeModule\\": "Classes"
13 | }
14 | },
15 | "extra": {
16 | "neos": {
17 | "package-key": "CM.Neos.ThemeModule"
18 | }
19 | }
20 | }
--------------------------------------------------------------------------------