feat: VivesPOS landing on Winter CMS 1.2 — theme + plugin + Dockerfile
Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
- Base: wintercms/winter branch 1.2 (full framework) - Theme vivespos: Canvas 7 + Bootstrap 5 CDN, custom CSS - Layout: deferred GTM/GA4 tracking, JSON-LD SoftwareApplication - Partials: hero (offline-first), features, modes (offline/nube toggle), screenshots, pricing (3 planes), comparison, FAQ, CTA - Plugin VivesPOS.Site with ContactForm - Dockerfile: PHP 8.2 Apache, port 80, healthcheck - Added winter/wn-pages, blog, sitemap, seo plugins - Active theme set to vivespos
This commit is contained in:
2314
modules/backend/assets/vendor/ace-codeeditor/build-min.js
vendored
Normal file
2314
modules/backend/assets/vendor/ace-codeeditor/build-min.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
30
modules/backend/assets/vendor/ace-codeeditor/build.js
vendored
Normal file
30
modules/backend/assets/vendor/ace-codeeditor/build.js
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* This is a bundle file, you can compile this by running
|
||||
*
|
||||
* php artisan winter:util compile assets
|
||||
*
|
||||
* @see build-min.js
|
||||
*
|
||||
* Current Ace build v1.2.3 using "src-noconflict"
|
||||
* https://github.com/ajaxorg/ace-builds/
|
||||
*
|
||||
|
||||
=require ../emmet/emmet.js
|
||||
=require ../ace/ace.js
|
||||
=require ../ace/ext-emmet.js
|
||||
=require ../ace/ext-language_tools.js
|
||||
=require ../ace/mode-php.js
|
||||
=require ../ace/mode-twig.js
|
||||
=require ../ace/mode-markdown.js
|
||||
=require ../ace/mode-plain_text.js
|
||||
=require ../ace/mode-html.js
|
||||
=require ../ace/mode-less.js
|
||||
=require ../ace/mode-css.js
|
||||
=require ../ace/mode-scss.js
|
||||
=require ../ace/mode-sass.js
|
||||
=require ../ace/mode-yaml.js
|
||||
=require ../ace/mode-javascript.js
|
||||
|
||||
=require codeeditor.js
|
||||
|
||||
*/
|
||||
468
modules/backend/assets/vendor/ace-codeeditor/codeeditor.js
vendored
Normal file
468
modules/backend/assets/vendor/ace-codeeditor/codeeditor.js
vendored
Normal file
@@ -0,0 +1,468 @@
|
||||
/*
|
||||
* Code editor form field control
|
||||
*
|
||||
* Data attributes:
|
||||
* - data-control="codeeditor" - enables the code editor plugin
|
||||
* - data-vendor-path="/" - sets the path to find Ace editor files
|
||||
* - data-language="php" - set the coding language used
|
||||
* - data-theme="textmate" - the colour scheme and theme
|
||||
*
|
||||
* JavaScript API:
|
||||
* $('textarea').codeEditor({ vendorPath: '/', language: 'php '})
|
||||
*
|
||||
* Dependancies:
|
||||
* - Ace Editor (ace.js)
|
||||
*/
|
||||
|
||||
+function ($) { "use strict";
|
||||
|
||||
var Base = $.wn.foundation.base,
|
||||
BaseProto = Base.prototype
|
||||
|
||||
// CODEEDITOR CLASS DEFINITION
|
||||
// ============================
|
||||
|
||||
var CodeEditor = function(element, options) {
|
||||
Base.call(this)
|
||||
|
||||
this.options = options
|
||||
this.$el = $(element)
|
||||
this.$textarea = this.$el.find('>textarea:first')
|
||||
this.$toolbar = this.$el.find('>.editor-toolbar:first')
|
||||
this.$code = null
|
||||
this.editor = null
|
||||
this.$form = null
|
||||
|
||||
// Toolbar links
|
||||
this.isFullscreen = false
|
||||
this.$fullscreenEnable = this.$toolbar.find('li.fullscreen-enable')
|
||||
this.$fullscreenDisable = this.$toolbar.find('li.fullscreen-disable')
|
||||
this.isSearchbox = false
|
||||
this.$searchboxEnable = this.$toolbar.find('li.searchbox-enable')
|
||||
this.$searchboxDisable = this.$toolbar.find('li.searchbox-disable')
|
||||
this.isReplacebox = false
|
||||
this.$replaceboxEnable = this.$toolbar.find('li.replacebox-enable')
|
||||
this.$replaceboxDisable = this.$toolbar.find('li.replacebox-disable')
|
||||
|
||||
$.wn.foundation.controlUtils.markDisposable(element)
|
||||
|
||||
this.init();
|
||||
|
||||
this.$el.trigger('oc.codeEditorReady')
|
||||
}
|
||||
|
||||
CodeEditor.prototype = Object.create(BaseProto)
|
||||
CodeEditor.prototype.constructor = CodeEditor
|
||||
|
||||
CodeEditor.DEFAULTS = {
|
||||
fontSize: 12,
|
||||
wordWrap: 'off',
|
||||
codeFolding: 'manual',
|
||||
autocompletion: 'manual',
|
||||
tabSize: 4,
|
||||
theme: 'textmate',
|
||||
showInvisibles: true,
|
||||
highlightActiveLine: true,
|
||||
useSoftTabs: true,
|
||||
autoCloseTags: true,
|
||||
showGutter: true,
|
||||
enableEmmet: true,
|
||||
language: 'php',
|
||||
margin: 0,
|
||||
vendorPath: '/',
|
||||
showPrintMargin: false,
|
||||
highlightSelectedWord: false,
|
||||
hScrollBarAlwaysVisible: false,
|
||||
scrollPastEnd: 0,
|
||||
readOnly: false
|
||||
}
|
||||
|
||||
CodeEditor.prototype.init = function (){
|
||||
|
||||
var self = this;
|
||||
|
||||
/*
|
||||
* Control must have an identifier
|
||||
*/
|
||||
if (!this.$el.attr('id')) {
|
||||
this.$el.attr('id', 'element-' + Math.random().toString(36).substring(7))
|
||||
}
|
||||
|
||||
/*
|
||||
* Create code container
|
||||
*/
|
||||
this.$code = $('<div />')
|
||||
.addClass('editor-code')
|
||||
.attr('id', this.$el.attr('id') + '-code')
|
||||
.css({
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
left: 0
|
||||
})
|
||||
.appendTo(this.$el)
|
||||
|
||||
/*
|
||||
* Initialize ACE editor
|
||||
*/
|
||||
var editor = this.editor = ace.edit(this.$code.attr('id')),
|
||||
options = this.options,
|
||||
$form = this.$el.closest('form');
|
||||
|
||||
// Fixes a weird notice about scrolling
|
||||
editor.$blockScrolling = Infinity
|
||||
|
||||
this.$form = $form
|
||||
|
||||
this.$textarea.hide();
|
||||
editor.getSession().setValue(this.$textarea.val())
|
||||
|
||||
editor.on('change', this.proxy(this.onChange))
|
||||
$form.on('oc.beforeRequest', this.proxy(this.onBeforeRequest))
|
||||
$(window).on('resize', this.proxy(this.onResize))
|
||||
$(window).on('oc.updateUi', this.proxy(this.onResize))
|
||||
this.$el.one('dispose-control', this.proxy(this.dispose))
|
||||
|
||||
/*
|
||||
* Set theme, anticipated languages should be preloaded
|
||||
*/
|
||||
assetManager.load({
|
||||
js:[
|
||||
// options.vendorPath + '/mode-' + options.language + '.js',
|
||||
options.vendorPath + '/theme-' + options.theme + '.js'
|
||||
]
|
||||
}, function(){
|
||||
editor.setTheme('ace/theme/' + options.theme)
|
||||
var inline = options.language === 'php'
|
||||
editor.getSession().setMode({ path: 'ace/mode/'+options.language, inline: inline })
|
||||
})
|
||||
|
||||
/*
|
||||
* Config editor
|
||||
*/
|
||||
editor.wrapper = this
|
||||
editor.setShowInvisibles(options.showInvisibles)
|
||||
editor.setBehavioursEnabled(options.autoCloseTags)
|
||||
editor.setHighlightActiveLine(options.highlightActiveLine)
|
||||
editor.renderer.setShowGutter(options.showGutter)
|
||||
editor.renderer.setShowPrintMargin(options.showPrintMargin)
|
||||
editor.setHighlightSelectedWord(options.highlightSelectedWord)
|
||||
editor.renderer.setHScrollBarAlwaysVisible(options.hScrollBarAlwaysVisible)
|
||||
editor.setDisplayIndentGuides(options.displayIndentGuides)
|
||||
editor.getSession().setUseSoftTabs(options.useSoftTabs)
|
||||
editor.getSession().setTabSize(options.tabSize)
|
||||
editor.setReadOnly(options.readOnly)
|
||||
editor.getSession().setFoldStyle(options.codeFolding)
|
||||
editor.setFontSize(options.fontSize)
|
||||
editor.on('blur', this.proxy(this.onBlur))
|
||||
editor.on('focus', this.proxy(this.onFocus))
|
||||
editor.setOption("scrollPastEnd", options.scrollPastEnd)
|
||||
this.setWordWrap(options.wordWrap)
|
||||
|
||||
// Set the vendor path for Ace's require path
|
||||
ace.require('ace/config').set('basePath', this.options.vendorPath)
|
||||
|
||||
editor.setOptions({
|
||||
enableEmmet: options.enableEmmet,
|
||||
enableBasicAutocompletion: options.autocompletion === 'basic',
|
||||
enableSnippets: options.enableSnippets,
|
||||
enableLiveAutocompletion: options.autocompletion === 'live'
|
||||
})
|
||||
|
||||
editor.renderer.setScrollMargin(options.margin, options.margin, 0, 0)
|
||||
editor.renderer.setPadding(options.margin)
|
||||
|
||||
/*
|
||||
* Toolbar
|
||||
*/
|
||||
|
||||
this.$toolbar.find('>ul>li>a')
|
||||
.each(function(){
|
||||
var abbr = $(this).find('>abbr'),
|
||||
label = abbr.text(),
|
||||
help = abbr.attr('title'),
|
||||
title = label + ' (<strong>' + help + '</strong>)';
|
||||
|
||||
$(this).attr('title', title)
|
||||
})
|
||||
.tooltip({
|
||||
delay: 500,
|
||||
placement: 'top',
|
||||
html: true
|
||||
})
|
||||
;
|
||||
|
||||
this.$fullscreenDisable.hide()
|
||||
this.$fullscreenEnable.on('click.codeeditor', '>a', $.proxy(this.toggleFullscreen, this))
|
||||
this.$fullscreenDisable.on('click.codeeditor', '>a', $.proxy(this.toggleFullscreen, this))
|
||||
|
||||
this.$searchboxDisable.hide()
|
||||
this.$searchboxEnable.on('click.codeeditor', '>a', $.proxy(this.toggleSearchbox, this))
|
||||
this.$searchboxDisable.on('click.codeeditor', '>a', $.proxy(this.toggleSearchbox, this))
|
||||
|
||||
this.$replaceboxDisable.hide()
|
||||
this.$replaceboxEnable.on('click.codeeditor', '>a', $.proxy(this.toggleReplacebox, this))
|
||||
this.$replaceboxDisable.on('click.codeeditor', '>a', $.proxy(this.toggleReplacebox, this))
|
||||
|
||||
/*
|
||||
* Hotkeys
|
||||
*/
|
||||
this.$el.hotKey({
|
||||
hotkey: 'esc',
|
||||
callback: this.proxy(this.onEscape)
|
||||
})
|
||||
|
||||
editor.commands.addCommand({
|
||||
name: 'toggleFullscreen',
|
||||
bindKey: { win: 'Ctrl+Shift+F', mac: 'Ctrl+Shift+F' },
|
||||
exec: $.proxy(this.toggleFullscreen, this),
|
||||
readOnly: true
|
||||
})
|
||||
}
|
||||
|
||||
CodeEditor.prototype.dispose = function() {
|
||||
if (this.$el === null)
|
||||
return
|
||||
|
||||
this.unregisterHandlers()
|
||||
this.disposeAttachedControls()
|
||||
|
||||
this.$el = null
|
||||
this.$textarea = null
|
||||
this.$toolbar = null
|
||||
this.$code = null
|
||||
this.$fullscreenEnable = null
|
||||
this.$fullscreenDisable = null
|
||||
this.$searchboxEnable = null
|
||||
this.$searchboxDisable = null
|
||||
this.$replaceboxEnable = null
|
||||
this.$replaceboxDisable = null
|
||||
this.$form = null
|
||||
this.options = null
|
||||
|
||||
BaseProto.dispose.call(this)
|
||||
}
|
||||
|
||||
CodeEditor.prototype.disposeAttachedControls = function() {
|
||||
this.editor.destroy()
|
||||
|
||||
var keys = Object.keys(this.editor.renderer)
|
||||
for (var i=0, len=keys.length; i<len; i++)
|
||||
this.editor.renderer[keys[i]] = null
|
||||
|
||||
keys = Object.keys(this.editor)
|
||||
for (var i=0, len=keys.length; i<len; i++)
|
||||
this.editor[keys[i]] = null
|
||||
|
||||
this.editor = null
|
||||
|
||||
this.$toolbar.find('>ul>li>a').tooltip('destroy')
|
||||
this.$el.removeData('oc.codeEditor')
|
||||
this.$el.hotKey('dispose')
|
||||
}
|
||||
|
||||
CodeEditor.prototype.unregisterHandlers = function() {
|
||||
this.editor.off('change', this.proxy(this.onChange))
|
||||
this.editor.off('blur', this.proxy(this.onBlur))
|
||||
this.editor.off('focus', this.proxy(this.onFocus))
|
||||
|
||||
this.$fullscreenEnable.off('.codeeditor')
|
||||
this.$fullscreenDisable.off('.codeeditor')
|
||||
this.$form.off('oc.beforeRequest', this.proxy(this.onBeforeRequest))
|
||||
|
||||
this.$el.off('dispose-control', this.proxy(this.dispose))
|
||||
|
||||
$(window).off('resize', this.proxy(this.onResize))
|
||||
$(window).off('oc.updateUi', this.proxy(this.onResize))
|
||||
}
|
||||
|
||||
CodeEditor.prototype.onBeforeRequest = function() {
|
||||
this.$textarea.val(this.editor.getSession().getValue())
|
||||
}
|
||||
|
||||
CodeEditor.prototype.onChange = function() {
|
||||
this.$textarea.trigger('change')
|
||||
this.$textarea.trigger('oc.codeEditorChange')
|
||||
}
|
||||
|
||||
CodeEditor.prototype.onResize = function() {
|
||||
this.editor.resize()
|
||||
}
|
||||
|
||||
CodeEditor.prototype.onBlur = function() {
|
||||
this.$el.removeClass('editor-focus')
|
||||
}
|
||||
|
||||
CodeEditor.prototype.onFocus = function() {
|
||||
this.$el.addClass('editor-focus')
|
||||
}
|
||||
|
||||
CodeEditor.prototype.onEscape = function() {
|
||||
this.isFullscreen && this.toggleFullscreen()
|
||||
}
|
||||
|
||||
CodeEditor.prototype.setWordWrap = function(mode) {
|
||||
var session = this.editor.getSession(),
|
||||
renderer = this.editor.renderer
|
||||
|
||||
switch (mode + '') {
|
||||
default:
|
||||
case "off":
|
||||
session.setUseWrapMode(false)
|
||||
renderer.setPrintMarginColumn(80)
|
||||
break
|
||||
case "40":
|
||||
session.setUseWrapMode(true)
|
||||
session.setWrapLimitRange(40, 40)
|
||||
renderer.setPrintMarginColumn(40)
|
||||
break
|
||||
case "80":
|
||||
session.setUseWrapMode(true)
|
||||
session.setWrapLimitRange(80, 80)
|
||||
renderer.setPrintMarginColumn(80)
|
||||
break
|
||||
case "fluid":
|
||||
session.setUseWrapMode(true)
|
||||
session.setWrapLimitRange(null, null)
|
||||
renderer.setPrintMarginColumn(80)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
CodeEditor.prototype.setTheme = function(theme) {
|
||||
var self = this
|
||||
assetManager.load({
|
||||
js:[
|
||||
this.options.vendorPath + '/theme-' + theme + '.js'
|
||||
]
|
||||
}, function(){
|
||||
self.editor.setTheme('ace/theme/' + theme)
|
||||
})
|
||||
}
|
||||
|
||||
CodeEditor.prototype.getContent = function() {
|
||||
return this.editor.getSession().getValue()
|
||||
}
|
||||
|
||||
CodeEditor.prototype.setContent = function(html) {
|
||||
this.editor.getSession().setValue(html)
|
||||
}
|
||||
|
||||
CodeEditor.prototype.getEditorObject = function() {
|
||||
return this.editor
|
||||
}
|
||||
|
||||
CodeEditor.prototype.getToolbar = function() {
|
||||
return this.$toolbar
|
||||
}
|
||||
|
||||
CodeEditor.prototype.toggleFullscreen = function() {
|
||||
this.$el.toggleClass('editor-fullscreen')
|
||||
this.$fullscreenEnable.toggle()
|
||||
this.$fullscreenDisable.toggle()
|
||||
|
||||
this.isFullscreen = this.$el.hasClass('editor-fullscreen')
|
||||
|
||||
if (this.isFullscreen) {
|
||||
$('body').css({ overflow: 'hidden' })
|
||||
}
|
||||
else {
|
||||
$('body').css({ overflow: 'inherit' })
|
||||
}
|
||||
|
||||
this.editor.resize()
|
||||
this.editor.focus()
|
||||
}
|
||||
|
||||
CodeEditor.prototype.toggleSearchbox = function() {
|
||||
this.$searchboxEnable.toggle()
|
||||
this.$searchboxDisable.toggle()
|
||||
|
||||
this.editor.execCommand("find")
|
||||
|
||||
this.editor.resize()
|
||||
this.editor.focus()
|
||||
}
|
||||
|
||||
CodeEditor.prototype.toggleReplacebox = function() {
|
||||
this.$replaceboxEnable.toggle()
|
||||
this.$replaceboxDisable.toggle()
|
||||
|
||||
this.editor.execCommand("replace")
|
||||
|
||||
this.editor.resize()
|
||||
this.editor.focus()
|
||||
}
|
||||
|
||||
// CODEEDITOR PLUGIN DEFINITION
|
||||
// ============================
|
||||
|
||||
var old = $.fn.codeEditor
|
||||
|
||||
$.fn.codeEditor = function (option) {
|
||||
var args = Array.prototype.slice.call(arguments, 1), result
|
||||
this.each(function () {
|
||||
var $this = $(this)
|
||||
var data = $this.data('oc.codeEditor')
|
||||
var options = $.extend({}, CodeEditor.DEFAULTS, $this.data(), typeof option == 'object' && option)
|
||||
if (!data) $this.data('oc.codeEditor', (data = new CodeEditor(this, options)))
|
||||
if (typeof option == 'string') result = data[option].apply(data, args)
|
||||
if (typeof result != 'undefined') return false
|
||||
})
|
||||
|
||||
return result ? result : this
|
||||
}
|
||||
|
||||
$.fn.codeEditor.Constructor = CodeEditor
|
||||
|
||||
if ($.wn === undefined)
|
||||
$.wn = {}
|
||||
if ($.oc === undefined)
|
||||
$.oc = $.wn
|
||||
|
||||
$.wn.codeEditorExtensionModes = {
|
||||
'htm': 'html',
|
||||
'html': 'html',
|
||||
'md': 'markdown',
|
||||
'txt': 'plain_text',
|
||||
'js': 'javascript',
|
||||
'less': 'less',
|
||||
'scss': 'scss',
|
||||
'sass': 'sass',
|
||||
'css': 'css'
|
||||
}
|
||||
|
||||
// CODEEDITOR NO CONFLICT
|
||||
// =================
|
||||
|
||||
$.fn.codeEditor.noConflict = function () {
|
||||
$.fn.codeEditor = old
|
||||
return this
|
||||
}
|
||||
|
||||
// CODEEDITOR DATA-API
|
||||
// ===============
|
||||
$(document).render(function () {
|
||||
$('[data-control="ace-codeeditor"]').codeEditor()
|
||||
});
|
||||
|
||||
// FIX EMMET HTML WHEN SYNTAX IS TWIG
|
||||
// ==================================
|
||||
|
||||
+function (exports) {
|
||||
if (exports.ace && typeof exports.ace.require == 'function') {
|
||||
var emmetExt = exports.ace.require('ace/ext/emmet')
|
||||
|
||||
if (emmetExt && emmetExt.AceEmmetEditor && emmetExt.AceEmmetEditor.prototype.getSyntax) {
|
||||
var coreGetSyntax = emmetExt.AceEmmetEditor.prototype.getSyntax
|
||||
|
||||
emmetExt.AceEmmetEditor.prototype.getSyntax = function () {
|
||||
var $syntax = $.proxy(coreGetSyntax, this)()
|
||||
return $syntax == 'twig' ? 'html' : $syntax
|
||||
};
|
||||
}
|
||||
}
|
||||
}(window)
|
||||
|
||||
}(window.jQuery);
|
||||
19069
modules/backend/assets/vendor/ace/ace.js
vendored
Executable file
19069
modules/backend/assets/vendor/ace/ace.js
vendored
Executable file
File diff suppressed because it is too large
Load Diff
1223
modules/backend/assets/vendor/ace/ext-emmet.js
vendored
Executable file
1223
modules/backend/assets/vendor/ace/ext-emmet.js
vendored
Executable file
File diff suppressed because it is too large
Load Diff
1946
modules/backend/assets/vendor/ace/ext-language_tools.js
vendored
Normal file
1946
modules/backend/assets/vendor/ace/ext-language_tools.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
417
modules/backend/assets/vendor/ace/ext-searchbox.js
vendored
Executable file
417
modules/backend/assets/vendor/ace/ext-searchbox.js
vendored
Executable file
@@ -0,0 +1,417 @@
|
||||
ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/keyboard/hash_handler","ace/lib/keys"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
var lang = require("../lib/lang");
|
||||
var event = require("../lib/event");
|
||||
var searchboxCss = "\
|
||||
.ace_search {\
|
||||
background-color: #ddd;\
|
||||
border: 1px solid #cbcbcb;\
|
||||
border-top: 0 none;\
|
||||
max-width: 325px;\
|
||||
overflow: hidden;\
|
||||
margin: 0;\
|
||||
padding: 4px;\
|
||||
padding-right: 6px;\
|
||||
padding-bottom: 0;\
|
||||
position: absolute;\
|
||||
top: 0px;\
|
||||
z-index: 99;\
|
||||
white-space: normal;\
|
||||
}\
|
||||
.ace_search.left {\
|
||||
border-left: 0 none;\
|
||||
border-radius: 0px 0px 5px 0px;\
|
||||
left: 0;\
|
||||
}\
|
||||
.ace_search.right {\
|
||||
border-radius: 0px 0px 0px 5px;\
|
||||
border-right: 0 none;\
|
||||
right: 0;\
|
||||
}\
|
||||
.ace_search_form, .ace_replace_form {\
|
||||
border-radius: 3px;\
|
||||
border: 1px solid #cbcbcb;\
|
||||
float: left;\
|
||||
margin-bottom: 4px;\
|
||||
overflow: hidden;\
|
||||
}\
|
||||
.ace_search_form.ace_nomatch {\
|
||||
outline: 1px solid red;\
|
||||
}\
|
||||
.ace_search_field {\
|
||||
background-color: white;\
|
||||
color: black;\
|
||||
border-right: 1px solid #cbcbcb;\
|
||||
border: 0 none;\
|
||||
-webkit-box-sizing: border-box;\
|
||||
-moz-box-sizing: border-box;\
|
||||
box-sizing: border-box;\
|
||||
float: left;\
|
||||
height: 22px;\
|
||||
outline: 0;\
|
||||
padding: 0 7px;\
|
||||
width: 214px;\
|
||||
margin: 0;\
|
||||
}\
|
||||
.ace_searchbtn,\
|
||||
.ace_replacebtn {\
|
||||
background: #fff;\
|
||||
border: 0 none;\
|
||||
border-left: 1px solid #dcdcdc;\
|
||||
cursor: pointer;\
|
||||
float: left;\
|
||||
height: 22px;\
|
||||
margin: 0;\
|
||||
position: relative;\
|
||||
}\
|
||||
.ace_searchbtn:last-child,\
|
||||
.ace_replacebtn:last-child {\
|
||||
border-top-right-radius: 3px;\
|
||||
border-bottom-right-radius: 3px;\
|
||||
}\
|
||||
.ace_searchbtn:disabled {\
|
||||
background: none;\
|
||||
cursor: default;\
|
||||
}\
|
||||
.ace_searchbtn {\
|
||||
background-position: 50% 50%;\
|
||||
background-repeat: no-repeat;\
|
||||
width: 27px;\
|
||||
}\
|
||||
.ace_searchbtn.prev {\
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADFJREFUeNpiSU1NZUAC/6E0I0yACYskCpsJiySKIiY0SUZk40FyTEgCjGgKwTRAgAEAQJUIPCE+qfkAAAAASUVORK5CYII=); \
|
||||
}\
|
||||
.ace_searchbtn.next {\
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADRJREFUeNpiTE1NZQCC/0DMyIAKwGJMUAYDEo3M/s+EpvM/mkKwCQxYjIeLMaELoLMBAgwAU7UJObTKsvAAAAAASUVORK5CYII=); \
|
||||
}\
|
||||
.ace_searchbtn_close {\
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;\
|
||||
border-radius: 50%;\
|
||||
border: 0 none;\
|
||||
color: #656565;\
|
||||
cursor: pointer;\
|
||||
float: right;\
|
||||
font: 16px/16px Arial;\
|
||||
height: 14px;\
|
||||
margin: 5px 1px 9px 5px;\
|
||||
padding: 0;\
|
||||
text-align: center;\
|
||||
width: 14px;\
|
||||
}\
|
||||
.ace_searchbtn_close:hover {\
|
||||
background-color: #656565;\
|
||||
background-position: 50% 100%;\
|
||||
color: white;\
|
||||
}\
|
||||
.ace_replacebtn.prev {\
|
||||
width: 54px\
|
||||
}\
|
||||
.ace_replacebtn.next {\
|
||||
width: 27px\
|
||||
}\
|
||||
.ace_button {\
|
||||
margin-left: 2px;\
|
||||
cursor: pointer;\
|
||||
-webkit-user-select: none;\
|
||||
-moz-user-select: none;\
|
||||
-o-user-select: none;\
|
||||
-ms-user-select: none;\
|
||||
user-select: none;\
|
||||
overflow: hidden;\
|
||||
opacity: 0.7;\
|
||||
border: 1px solid rgba(100,100,100,0.23);\
|
||||
padding: 1px;\
|
||||
-moz-box-sizing: border-box;\
|
||||
box-sizing: border-box;\
|
||||
color: black;\
|
||||
}\
|
||||
.ace_button:hover {\
|
||||
background-color: #eee;\
|
||||
opacity:1;\
|
||||
}\
|
||||
.ace_button:active {\
|
||||
background-color: #ddd;\
|
||||
}\
|
||||
.ace_button.checked {\
|
||||
border-color: #3399ff;\
|
||||
opacity:1;\
|
||||
}\
|
||||
.ace_search_options{\
|
||||
margin-bottom: 3px;\
|
||||
text-align: right;\
|
||||
-webkit-user-select: none;\
|
||||
-moz-user-select: none;\
|
||||
-o-user-select: none;\
|
||||
-ms-user-select: none;\
|
||||
user-select: none;\
|
||||
}";
|
||||
var HashHandler = require("../keyboard/hash_handler").HashHandler;
|
||||
var keyUtil = require("../lib/keys");
|
||||
|
||||
dom.importCssString(searchboxCss, "ace_searchbox");
|
||||
|
||||
var html = '<div class="ace_search right">\
|
||||
<button type="button" action="hide" class="ace_searchbtn_close"></button>\
|
||||
<div class="ace_search_form">\
|
||||
<input class="ace_search_field" placeholder="Search for" spellcheck="false"></input>\
|
||||
<button type="button" action="findNext" class="ace_searchbtn next"></button>\
|
||||
<button type="button" action="findPrev" class="ace_searchbtn prev"></button>\
|
||||
<button type="button" action="findAll" class="ace_searchbtn" title="Alt-Enter">All</button>\
|
||||
</div>\
|
||||
<div class="ace_replace_form">\
|
||||
<input class="ace_search_field" placeholder="Replace with" spellcheck="false"></input>\
|
||||
<button type="button" action="replaceAndFindNext" class="ace_replacebtn">Replace</button>\
|
||||
<button type="button" action="replaceAll" class="ace_replacebtn">All</button>\
|
||||
</div>\
|
||||
<div class="ace_search_options">\
|
||||
<span action="toggleRegexpMode" class="ace_button" title="RegExp Search">.*</span>\
|
||||
<span action="toggleCaseSensitive" class="ace_button" title="CaseSensitive Search">Aa</span>\
|
||||
<span action="toggleWholeWords" class="ace_button" title="Whole Word Search">\\b</span>\
|
||||
</div>\
|
||||
</div>'.replace(/>\s+/g, ">");
|
||||
|
||||
var SearchBox = function(editor, range, showReplaceForm) {
|
||||
var div = dom.createElement("div");
|
||||
div.innerHTML = html;
|
||||
this.element = div.firstChild;
|
||||
|
||||
this.$init();
|
||||
this.setEditor(editor);
|
||||
};
|
||||
|
||||
(function() {
|
||||
this.setEditor = function(editor) {
|
||||
editor.searchBox = this;
|
||||
editor.container.appendChild(this.element);
|
||||
this.editor = editor;
|
||||
};
|
||||
|
||||
this.$initElements = function(sb) {
|
||||
this.searchBox = sb.querySelector(".ace_search_form");
|
||||
this.replaceBox = sb.querySelector(".ace_replace_form");
|
||||
this.searchOptions = sb.querySelector(".ace_search_options");
|
||||
this.regExpOption = sb.querySelector("[action=toggleRegexpMode]");
|
||||
this.caseSensitiveOption = sb.querySelector("[action=toggleCaseSensitive]");
|
||||
this.wholeWordOption = sb.querySelector("[action=toggleWholeWords]");
|
||||
this.searchInput = this.searchBox.querySelector(".ace_search_field");
|
||||
this.replaceInput = this.replaceBox.querySelector(".ace_search_field");
|
||||
};
|
||||
|
||||
this.$init = function() {
|
||||
var sb = this.element;
|
||||
|
||||
this.$initElements(sb);
|
||||
|
||||
var _this = this;
|
||||
event.addListener(sb, "mousedown", function(e) {
|
||||
setTimeout(function(){
|
||||
_this.activeInput.focus();
|
||||
}, 0);
|
||||
event.stopPropagation(e);
|
||||
});
|
||||
event.addListener(sb, "click", function(e) {
|
||||
var t = e.target || e.srcElement;
|
||||
var action = t.getAttribute("action");
|
||||
if (action && _this[action])
|
||||
_this[action]();
|
||||
else if (_this.$searchBarKb.commands[action])
|
||||
_this.$searchBarKb.commands[action].exec(_this);
|
||||
event.stopPropagation(e);
|
||||
});
|
||||
|
||||
event.addCommandKeyListener(sb, function(e, hashId, keyCode) {
|
||||
var keyString = keyUtil.keyCodeToString(keyCode);
|
||||
var command = _this.$searchBarKb.findKeyCommand(hashId, keyString);
|
||||
if (command && command.exec) {
|
||||
command.exec(_this);
|
||||
event.stopEvent(e);
|
||||
}
|
||||
});
|
||||
|
||||
this.$onChange = lang.delayedCall(function() {
|
||||
_this.find(false, false);
|
||||
});
|
||||
|
||||
event.addListener(this.searchInput, "input", function() {
|
||||
_this.$onChange.schedule(20);
|
||||
});
|
||||
event.addListener(this.searchInput, "focus", function() {
|
||||
_this.activeInput = _this.searchInput;
|
||||
_this.searchInput.value && _this.highlight();
|
||||
});
|
||||
event.addListener(this.replaceInput, "focus", function() {
|
||||
_this.activeInput = _this.replaceInput;
|
||||
_this.searchInput.value && _this.highlight();
|
||||
});
|
||||
};
|
||||
this.$closeSearchBarKb = new HashHandler([{
|
||||
bindKey: "Esc",
|
||||
name: "closeSearchBar",
|
||||
exec: function(editor) {
|
||||
editor.searchBox.hide();
|
||||
}
|
||||
}]);
|
||||
this.$searchBarKb = new HashHandler();
|
||||
this.$searchBarKb.bindKeys({
|
||||
"Ctrl-f|Command-f": function(sb) {
|
||||
var isReplace = sb.isReplace = !sb.isReplace;
|
||||
sb.replaceBox.style.display = isReplace ? "" : "none";
|
||||
sb.searchInput.focus();
|
||||
},
|
||||
"Ctrl-H|Command-Option-F": function(sb) {
|
||||
sb.replaceBox.style.display = "";
|
||||
sb.replaceInput.focus();
|
||||
},
|
||||
"Ctrl-G|Command-G": function(sb) {
|
||||
sb.findNext();
|
||||
},
|
||||
"Ctrl-Shift-G|Command-Shift-G": function(sb) {
|
||||
sb.findPrev();
|
||||
},
|
||||
"esc": function(sb) {
|
||||
setTimeout(function() { sb.hide();});
|
||||
},
|
||||
"Return": function(sb) {
|
||||
if (sb.activeInput == sb.replaceInput)
|
||||
sb.replace();
|
||||
sb.findNext();
|
||||
},
|
||||
"Shift-Return": function(sb) {
|
||||
if (sb.activeInput == sb.replaceInput)
|
||||
sb.replace();
|
||||
sb.findPrev();
|
||||
},
|
||||
"Alt-Return": function(sb) {
|
||||
if (sb.activeInput == sb.replaceInput)
|
||||
sb.replaceAll();
|
||||
sb.findAll();
|
||||
},
|
||||
"Tab": function(sb) {
|
||||
(sb.activeInput == sb.replaceInput ? sb.searchInput : sb.replaceInput).focus();
|
||||
}
|
||||
});
|
||||
|
||||
this.$searchBarKb.addCommands([{
|
||||
name: "toggleRegexpMode",
|
||||
bindKey: {win: "Alt-R|Alt-/", mac: "Ctrl-Alt-R|Ctrl-Alt-/"},
|
||||
exec: function(sb) {
|
||||
sb.regExpOption.checked = !sb.regExpOption.checked;
|
||||
sb.$syncOptions();
|
||||
}
|
||||
}, {
|
||||
name: "toggleCaseSensitive",
|
||||
bindKey: {win: "Alt-C|Alt-I", mac: "Ctrl-Alt-R|Ctrl-Alt-I"},
|
||||
exec: function(sb) {
|
||||
sb.caseSensitiveOption.checked = !sb.caseSensitiveOption.checked;
|
||||
sb.$syncOptions();
|
||||
}
|
||||
}, {
|
||||
name: "toggleWholeWords",
|
||||
bindKey: {win: "Alt-B|Alt-W", mac: "Ctrl-Alt-B|Ctrl-Alt-W"},
|
||||
exec: function(sb) {
|
||||
sb.wholeWordOption.checked = !sb.wholeWordOption.checked;
|
||||
sb.$syncOptions();
|
||||
}
|
||||
}]);
|
||||
|
||||
this.$syncOptions = function() {
|
||||
dom.setCssClass(this.regExpOption, "checked", this.regExpOption.checked);
|
||||
dom.setCssClass(this.wholeWordOption, "checked", this.wholeWordOption.checked);
|
||||
dom.setCssClass(this.caseSensitiveOption, "checked", this.caseSensitiveOption.checked);
|
||||
this.find(false, false);
|
||||
};
|
||||
|
||||
this.highlight = function(re) {
|
||||
this.editor.session.highlight(re || this.editor.$search.$options.re);
|
||||
this.editor.renderer.updateBackMarkers()
|
||||
};
|
||||
this.find = function(skipCurrent, backwards, preventScroll) {
|
||||
var range = this.editor.find(this.searchInput.value, {
|
||||
skipCurrent: skipCurrent,
|
||||
backwards: backwards,
|
||||
wrap: true,
|
||||
regExp: this.regExpOption.checked,
|
||||
caseSensitive: this.caseSensitiveOption.checked,
|
||||
wholeWord: this.wholeWordOption.checked,
|
||||
preventScroll: preventScroll
|
||||
});
|
||||
var noMatch = !range && this.searchInput.value;
|
||||
dom.setCssClass(this.searchBox, "ace_nomatch", noMatch);
|
||||
this.editor._emit("findSearchBox", { match: !noMatch });
|
||||
this.highlight();
|
||||
};
|
||||
this.findNext = function() {
|
||||
this.find(true, false);
|
||||
};
|
||||
this.findPrev = function() {
|
||||
this.find(true, true);
|
||||
};
|
||||
this.findAll = function(){
|
||||
var range = this.editor.findAll(this.searchInput.value, {
|
||||
regExp: this.regExpOption.checked,
|
||||
caseSensitive: this.caseSensitiveOption.checked,
|
||||
wholeWord: this.wholeWordOption.checked
|
||||
});
|
||||
var noMatch = !range && this.searchInput.value;
|
||||
dom.setCssClass(this.searchBox, "ace_nomatch", noMatch);
|
||||
this.editor._emit("findSearchBox", { match: !noMatch });
|
||||
this.highlight();
|
||||
this.hide();
|
||||
};
|
||||
this.replace = function() {
|
||||
if (!this.editor.getReadOnly())
|
||||
this.editor.replace(this.replaceInput.value);
|
||||
};
|
||||
this.replaceAndFindNext = function() {
|
||||
if (!this.editor.getReadOnly()) {
|
||||
this.editor.replace(this.replaceInput.value);
|
||||
this.findNext()
|
||||
}
|
||||
};
|
||||
this.replaceAll = function() {
|
||||
if (!this.editor.getReadOnly())
|
||||
this.editor.replaceAll(this.replaceInput.value);
|
||||
};
|
||||
|
||||
this.hide = function() {
|
||||
this.element.style.display = "none";
|
||||
this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb);
|
||||
this.editor.focus();
|
||||
};
|
||||
this.show = function(value, isReplace) {
|
||||
this.element.style.display = "";
|
||||
this.replaceBox.style.display = isReplace ? "" : "none";
|
||||
|
||||
this.isReplace = isReplace;
|
||||
|
||||
if (value)
|
||||
this.searchInput.value = value;
|
||||
|
||||
this.find(false, false, true);
|
||||
|
||||
this.searchInput.focus();
|
||||
this.searchInput.select();
|
||||
|
||||
this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb);
|
||||
};
|
||||
|
||||
this.isFocused = function() {
|
||||
var el = document.activeElement;
|
||||
return el == this.searchInput || el == this.replaceInput;
|
||||
}
|
||||
}).call(SearchBox.prototype);
|
||||
|
||||
exports.SearchBox = SearchBox;
|
||||
|
||||
exports.Search = function(editor, isReplace) {
|
||||
var sb = editor.searchBox || new SearchBox(editor);
|
||||
sb.show(editor.session.getTextRange(), isReplace);
|
||||
};
|
||||
|
||||
});
|
||||
(function() {
|
||||
ace.require(["ace/ext/searchbox"], function() {});
|
||||
})();
|
||||
|
||||
651
modules/backend/assets/vendor/ace/mode-css.js
vendored
Executable file
651
modules/backend/assets/vendor/ace/mode-css.js
vendored
Executable file
@@ -0,0 +1,651 @@
|
||||
ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../lib/oop");
|
||||
var lang = require("../lib/lang");
|
||||
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
||||
var supportType = exports.supportType = "align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|min-height|min-width|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index";
|
||||
var supportFunction = exports.supportFunction = "rgb|rgba|url|attr|counter|counters";
|
||||
var supportConstant = exports.supportConstant = "absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero";
|
||||
var supportConstantColor = exports.supportConstantColor = "aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow";
|
||||
var supportConstantFonts = exports.supportConstantFonts = "arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace";
|
||||
|
||||
var numRe = exports.numRe = "\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))";
|
||||
var pseudoElements = exports.pseudoElements = "(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b";
|
||||
var pseudoClasses = exports.pseudoClasses = "(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b";
|
||||
|
||||
var CssHighlightRules = function() {
|
||||
|
||||
var keywordMapper = this.createKeywordMapper({
|
||||
"support.function": supportFunction,
|
||||
"support.constant": supportConstant,
|
||||
"support.type": supportType,
|
||||
"support.constant.color": supportConstantColor,
|
||||
"support.constant.fonts": supportConstantFonts
|
||||
}, "text", true);
|
||||
|
||||
this.$rules = {
|
||||
"start" : [{
|
||||
token : "comment", // multi line comment
|
||||
regex : "\\/\\*",
|
||||
push : "comment"
|
||||
}, {
|
||||
token: "paren.lparen",
|
||||
regex: "\\{",
|
||||
push: "ruleset"
|
||||
}, {
|
||||
token: "string",
|
||||
regex: "@.*?{",
|
||||
push: "media"
|
||||
}, {
|
||||
token: "keyword",
|
||||
regex: "#[a-z0-9-_]+"
|
||||
}, {
|
||||
token: "variable",
|
||||
regex: "\\.[a-z0-9-_]+"
|
||||
}, {
|
||||
token: "string",
|
||||
regex: ":[a-z0-9-_]+"
|
||||
}, {
|
||||
token: "constant",
|
||||
regex: "[a-z0-9-_]+"
|
||||
}, {
|
||||
caseInsensitive: true
|
||||
}],
|
||||
|
||||
"media" : [{
|
||||
token : "comment", // multi line comment
|
||||
regex : "\\/\\*",
|
||||
push : "comment"
|
||||
}, {
|
||||
token: "paren.lparen",
|
||||
regex: "\\{",
|
||||
push: "ruleset"
|
||||
}, {
|
||||
token: "string",
|
||||
regex: "\\}",
|
||||
next: "pop"
|
||||
}, {
|
||||
token: "keyword",
|
||||
regex: "#[a-z0-9-_]+"
|
||||
}, {
|
||||
token: "variable",
|
||||
regex: "\\.[a-z0-9-_]+"
|
||||
}, {
|
||||
token: "string",
|
||||
regex: ":[a-z0-9-_]+"
|
||||
}, {
|
||||
token: "constant",
|
||||
regex: "[a-z0-9-_]+"
|
||||
}, {
|
||||
caseInsensitive: true
|
||||
}],
|
||||
|
||||
"comment" : [{
|
||||
token : "comment",
|
||||
regex : "\\*\\/",
|
||||
next : "pop"
|
||||
}, {
|
||||
defaultToken : "comment"
|
||||
}],
|
||||
|
||||
"ruleset" : [
|
||||
{
|
||||
token : "paren.rparen",
|
||||
regex : "\\}",
|
||||
next: "pop"
|
||||
}, {
|
||||
token : "comment", // multi line comment
|
||||
regex : "\\/\\*",
|
||||
push : "comment"
|
||||
}, {
|
||||
token : "string", // single line
|
||||
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
|
||||
}, {
|
||||
token : "string", // single line
|
||||
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
|
||||
}, {
|
||||
token : ["constant.numeric", "keyword"],
|
||||
regex : "(" + numRe + ")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vm|vw|%)"
|
||||
}, {
|
||||
token : "constant.numeric",
|
||||
regex : numRe
|
||||
}, {
|
||||
token : "constant.numeric", // hex6 color
|
||||
regex : "#[a-f0-9]{6}"
|
||||
}, {
|
||||
token : "constant.numeric", // hex3 color
|
||||
regex : "#[a-f0-9]{3}"
|
||||
}, {
|
||||
token : ["punctuation", "entity.other.attribute-name.pseudo-element.css"],
|
||||
regex : pseudoElements
|
||||
}, {
|
||||
token : ["punctuation", "entity.other.attribute-name.pseudo-class.css"],
|
||||
regex : pseudoClasses
|
||||
}, {
|
||||
token : ["support.function", "string", "support.function"],
|
||||
regex : "(url\\()(.*)(\\))"
|
||||
}, {
|
||||
token : keywordMapper,
|
||||
regex : "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"
|
||||
}, {
|
||||
caseInsensitive: true
|
||||
}]
|
||||
};
|
||||
|
||||
this.normalizeRules();
|
||||
};
|
||||
|
||||
oop.inherits(CssHighlightRules, TextHighlightRules);
|
||||
|
||||
exports.CssHighlightRules = CssHighlightRules;
|
||||
|
||||
});
|
||||
|
||||
ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var Range = require("../range").Range;
|
||||
|
||||
var MatchingBraceOutdent = function() {};
|
||||
|
||||
(function() {
|
||||
|
||||
this.checkOutdent = function(line, input) {
|
||||
if (! /^\s+$/.test(line))
|
||||
return false;
|
||||
|
||||
return /^\s*\}/.test(input);
|
||||
};
|
||||
|
||||
this.autoOutdent = function(doc, row) {
|
||||
var line = doc.getLine(row);
|
||||
var match = line.match(/^(\s*\})/);
|
||||
|
||||
if (!match) return 0;
|
||||
|
||||
var column = match[1].length;
|
||||
var openBracePos = doc.findMatchingBracket({row: row, column: column});
|
||||
|
||||
if (!openBracePos || openBracePos.row == row) return 0;
|
||||
|
||||
var indent = this.$getIndent(doc.getLine(openBracePos.row));
|
||||
doc.replace(new Range(row, 0, row, column-1), indent);
|
||||
};
|
||||
|
||||
this.$getIndent = function(line) {
|
||||
return line.match(/^\s*/)[0];
|
||||
};
|
||||
|
||||
}).call(MatchingBraceOutdent.prototype);
|
||||
|
||||
exports.MatchingBraceOutdent = MatchingBraceOutdent;
|
||||
});
|
||||
|
||||
ace.define("ace/mode/css_completions",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var propertyMap = {
|
||||
"background": {"#$0": 1},
|
||||
"background-color": {"#$0": 1, "transparent": 1, "fixed": 1},
|
||||
"background-image": {"url('/$0')": 1},
|
||||
"background-repeat": {"repeat": 1, "repeat-x": 1, "repeat-y": 1, "no-repeat": 1, "inherit": 1},
|
||||
"background-position": {"bottom":2, "center":2, "left":2, "right":2, "top":2, "inherit":2},
|
||||
"background-attachment": {"scroll": 1, "fixed": 1},
|
||||
"background-size": {"cover": 1, "contain": 1},
|
||||
"background-clip": {"border-box": 1, "padding-box": 1, "content-box": 1},
|
||||
"background-origin": {"border-box": 1, "padding-box": 1, "content-box": 1},
|
||||
"border": {"solid $0": 1, "dashed $0": 1, "dotted $0": 1, "#$0": 1},
|
||||
"border-color": {"#$0": 1},
|
||||
"border-style": {"solid":2, "dashed":2, "dotted":2, "double":2, "groove":2, "hidden":2, "inherit":2, "inset":2, "none":2, "outset":2, "ridged":2},
|
||||
"border-collapse": {"collapse": 1, "separate": 1},
|
||||
"bottom": {"px": 1, "em": 1, "%": 1},
|
||||
"clear": {"left": 1, "right": 1, "both": 1, "none": 1},
|
||||
"color": {"#$0": 1, "rgb(#$00,0,0)": 1},
|
||||
"cursor": {"default": 1, "pointer": 1, "move": 1, "text": 1, "wait": 1, "help": 1, "progress": 1, "n-resize": 1, "ne-resize": 1, "e-resize": 1, "se-resize": 1, "s-resize": 1, "sw-resize": 1, "w-resize": 1, "nw-resize": 1},
|
||||
"display": {"none": 1, "block": 1, "inline": 1, "inline-block": 1, "table-cell": 1},
|
||||
"empty-cells": {"show": 1, "hide": 1},
|
||||
"float": {"left": 1, "right": 1, "none": 1},
|
||||
"font-family": {"Arial":2,"Comic Sans MS":2,"Consolas":2,"Courier New":2,"Courier":2,"Georgia":2,"Monospace":2,"Sans-Serif":2, "Segoe UI":2,"Tahoma":2,"Times New Roman":2,"Trebuchet MS":2,"Verdana": 1},
|
||||
"font-size": {"px": 1, "em": 1, "%": 1},
|
||||
"font-weight": {"bold": 1, "normal": 1},
|
||||
"font-style": {"italic": 1, "normal": 1},
|
||||
"font-variant": {"normal": 1, "small-caps": 1},
|
||||
"height": {"px": 1, "em": 1, "%": 1},
|
||||
"left": {"px": 1, "em": 1, "%": 1},
|
||||
"letter-spacing": {"normal": 1},
|
||||
"line-height": {"normal": 1},
|
||||
"list-style-type": {"none": 1, "disc": 1, "circle": 1, "square": 1, "decimal": 1, "decimal-leading-zero": 1, "lower-roman": 1, "upper-roman": 1, "lower-greek": 1, "lower-latin": 1, "upper-latin": 1, "georgian": 1, "lower-alpha": 1, "upper-alpha": 1},
|
||||
"margin": {"px": 1, "em": 1, "%": 1},
|
||||
"margin-right": {"px": 1, "em": 1, "%": 1},
|
||||
"margin-left": {"px": 1, "em": 1, "%": 1},
|
||||
"margin-top": {"px": 1, "em": 1, "%": 1},
|
||||
"margin-bottom": {"px": 1, "em": 1, "%": 1},
|
||||
"max-height": {"px": 1, "em": 1, "%": 1},
|
||||
"max-width": {"px": 1, "em": 1, "%": 1},
|
||||
"min-height": {"px": 1, "em": 1, "%": 1},
|
||||
"min-width": {"px": 1, "em": 1, "%": 1},
|
||||
"overflow": {"hidden": 1, "visible": 1, "auto": 1, "scroll": 1},
|
||||
"overflow-x": {"hidden": 1, "visible": 1, "auto": 1, "scroll": 1},
|
||||
"overflow-y": {"hidden": 1, "visible": 1, "auto": 1, "scroll": 1},
|
||||
"padding": {"px": 1, "em": 1, "%": 1},
|
||||
"padding-top": {"px": 1, "em": 1, "%": 1},
|
||||
"padding-right": {"px": 1, "em": 1, "%": 1},
|
||||
"padding-bottom": {"px": 1, "em": 1, "%": 1},
|
||||
"padding-left": {"px": 1, "em": 1, "%": 1},
|
||||
"page-break-after": {"auto": 1, "always": 1, "avoid": 1, "left": 1, "right": 1},
|
||||
"page-break-before": {"auto": 1, "always": 1, "avoid": 1, "left": 1, "right": 1},
|
||||
"position": {"absolute": 1, "relative": 1, "fixed": 1, "static": 1},
|
||||
"right": {"px": 1, "em": 1, "%": 1},
|
||||
"table-layout": {"fixed": 1, "auto": 1},
|
||||
"text-decoration": {"none": 1, "underline": 1, "line-through": 1, "blink": 1},
|
||||
"text-align": {"left": 1, "right": 1, "center": 1, "justify": 1},
|
||||
"text-transform": {"capitalize": 1, "uppercase": 1, "lowercase": 1, "none": 1},
|
||||
"top": {"px": 1, "em": 1, "%": 1},
|
||||
"vertical-align": {"top": 1, "bottom": 1},
|
||||
"visibility": {"hidden": 1, "visible": 1},
|
||||
"white-space": {"nowrap": 1, "normal": 1, "pre": 1, "pre-line": 1, "pre-wrap": 1},
|
||||
"width": {"px": 1, "em": 1, "%": 1},
|
||||
"word-spacing": {"normal": 1},
|
||||
"filter": {"alpha(opacity=$0100)": 1},
|
||||
|
||||
"text-shadow": {"$02px 2px 2px #777": 1},
|
||||
"text-overflow": {"ellipsis-word": 1, "clip": 1, "ellipsis": 1},
|
||||
"-moz-border-radius": 1,
|
||||
"-moz-border-radius-topright": 1,
|
||||
"-moz-border-radius-bottomright": 1,
|
||||
"-moz-border-radius-topleft": 1,
|
||||
"-moz-border-radius-bottomleft": 1,
|
||||
"-webkit-border-radius": 1,
|
||||
"-webkit-border-top-right-radius": 1,
|
||||
"-webkit-border-top-left-radius": 1,
|
||||
"-webkit-border-bottom-right-radius": 1,
|
||||
"-webkit-border-bottom-left-radius": 1,
|
||||
"-moz-box-shadow": 1,
|
||||
"-webkit-box-shadow": 1,
|
||||
"transform": {"rotate($00deg)": 1, "skew($00deg)": 1},
|
||||
"-moz-transform": {"rotate($00deg)": 1, "skew($00deg)": 1},
|
||||
"-webkit-transform": {"rotate($00deg)": 1, "skew($00deg)": 1 }
|
||||
};
|
||||
|
||||
var CssCompletions = function() {
|
||||
|
||||
};
|
||||
|
||||
(function() {
|
||||
|
||||
this.completionsDefined = false;
|
||||
|
||||
this.defineCompletions = function() {
|
||||
if (document) {
|
||||
var style = document.createElement('c').style;
|
||||
|
||||
for (var i in style) {
|
||||
if (typeof style[i] !== 'string')
|
||||
continue;
|
||||
|
||||
var name = i.replace(/[A-Z]/g, function(x) {
|
||||
return '-' + x.toLowerCase();
|
||||
});
|
||||
|
||||
if (!propertyMap.hasOwnProperty(name))
|
||||
propertyMap[name] = 1;
|
||||
}
|
||||
}
|
||||
|
||||
this.completionsDefined = true;
|
||||
}
|
||||
|
||||
this.getCompletions = function(state, session, pos, prefix) {
|
||||
if (!this.completionsDefined) {
|
||||
this.defineCompletions();
|
||||
}
|
||||
|
||||
var token = session.getTokenAt(pos.row, pos.column);
|
||||
|
||||
if (!token)
|
||||
return [];
|
||||
if (state==='ruleset'){
|
||||
var line = session.getLine(pos.row).substr(0, pos.column);
|
||||
if (/:[^;]+$/.test(line)) {
|
||||
/([\w\-]+):[^:]*$/.test(line);
|
||||
|
||||
return this.getPropertyValueCompletions(state, session, pos, prefix);
|
||||
} else {
|
||||
return this.getPropertyCompletions(state, session, pos, prefix);
|
||||
}
|
||||
}
|
||||
|
||||
return [];
|
||||
};
|
||||
|
||||
this.getPropertyCompletions = function(state, session, pos, prefix) {
|
||||
var properties = Object.keys(propertyMap);
|
||||
return properties.map(function(property){
|
||||
return {
|
||||
caption: property,
|
||||
snippet: property + ': $0',
|
||||
meta: "property",
|
||||
score: Number.MAX_VALUE
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
this.getPropertyValueCompletions = function(state, session, pos, prefix) {
|
||||
var line = session.getLine(pos.row).substr(0, pos.column);
|
||||
var property = (/([\w\-]+):[^:]*$/.exec(line) || {})[1];
|
||||
|
||||
if (!property)
|
||||
return [];
|
||||
var values = [];
|
||||
if (property in propertyMap && typeof propertyMap[property] === "object") {
|
||||
values = Object.keys(propertyMap[property]);
|
||||
}
|
||||
return values.map(function(value){
|
||||
return {
|
||||
caption: value,
|
||||
snippet: value,
|
||||
meta: "property value",
|
||||
score: Number.MAX_VALUE
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
}).call(CssCompletions.prototype);
|
||||
|
||||
exports.CssCompletions = CssCompletions;
|
||||
});
|
||||
|
||||
ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../../lib/oop");
|
||||
var Behaviour = require("../behaviour").Behaviour;
|
||||
var CstyleBehaviour = require("./cstyle").CstyleBehaviour;
|
||||
var TokenIterator = require("../../token_iterator").TokenIterator;
|
||||
|
||||
var CssBehaviour = function () {
|
||||
|
||||
this.inherit(CstyleBehaviour);
|
||||
|
||||
this.add("colon", "insertion", function (state, action, editor, session, text) {
|
||||
if (text === ':') {
|
||||
var cursor = editor.getCursorPosition();
|
||||
var iterator = new TokenIterator(session, cursor.row, cursor.column);
|
||||
var token = iterator.getCurrentToken();
|
||||
if (token && token.value.match(/\s+/)) {
|
||||
token = iterator.stepBackward();
|
||||
}
|
||||
if (token && token.type === 'support.type') {
|
||||
var line = session.doc.getLine(cursor.row);
|
||||
var rightChar = line.substring(cursor.column, cursor.column + 1);
|
||||
if (rightChar === ':') {
|
||||
return {
|
||||
text: '',
|
||||
selection: [1, 1]
|
||||
}
|
||||
}
|
||||
if (!line.substring(cursor.column).match(/^\s*;/)) {
|
||||
return {
|
||||
text: ':;',
|
||||
selection: [1, 1]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
this.add("colon", "deletion", function (state, action, editor, session, range) {
|
||||
var selected = session.doc.getTextRange(range);
|
||||
if (!range.isMultiLine() && selected === ':') {
|
||||
var cursor = editor.getCursorPosition();
|
||||
var iterator = new TokenIterator(session, cursor.row, cursor.column);
|
||||
var token = iterator.getCurrentToken();
|
||||
if (token && token.value.match(/\s+/)) {
|
||||
token = iterator.stepBackward();
|
||||
}
|
||||
if (token && token.type === 'support.type') {
|
||||
var line = session.doc.getLine(range.start.row);
|
||||
var rightChar = line.substring(range.end.column, range.end.column + 1);
|
||||
if (rightChar === ';') {
|
||||
range.end.column ++;
|
||||
return range;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
this.add("semicolon", "insertion", function (state, action, editor, session, text) {
|
||||
if (text === ';') {
|
||||
var cursor = editor.getCursorPosition();
|
||||
var line = session.doc.getLine(cursor.row);
|
||||
var rightChar = line.substring(cursor.column, cursor.column + 1);
|
||||
if (rightChar === ';') {
|
||||
return {
|
||||
text: '',
|
||||
selection: [1, 1]
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
oop.inherits(CssBehaviour, CstyleBehaviour);
|
||||
|
||||
exports.CssBehaviour = CssBehaviour;
|
||||
});
|
||||
|
||||
ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../../lib/oop");
|
||||
var Range = require("../../range").Range;
|
||||
var BaseFoldMode = require("./fold_mode").FoldMode;
|
||||
|
||||
var FoldMode = exports.FoldMode = function(commentRegex) {
|
||||
if (commentRegex) {
|
||||
this.foldingStartMarker = new RegExp(
|
||||
this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start)
|
||||
);
|
||||
this.foldingStopMarker = new RegExp(
|
||||
this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end)
|
||||
);
|
||||
}
|
||||
};
|
||||
oop.inherits(FoldMode, BaseFoldMode);
|
||||
|
||||
(function() {
|
||||
|
||||
this.foldingStartMarker = /(\{|\[)[^\}\]]*$|^\s*(\/\*)/;
|
||||
this.foldingStopMarker = /^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;
|
||||
this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/;
|
||||
this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
|
||||
this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
|
||||
this._getFoldWidgetBase = this.getFoldWidget;
|
||||
this.getFoldWidget = function(session, foldStyle, row) {
|
||||
var line = session.getLine(row);
|
||||
|
||||
if (this.singleLineBlockCommentRe.test(line)) {
|
||||
if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))
|
||||
return "";
|
||||
}
|
||||
|
||||
var fw = this._getFoldWidgetBase(session, foldStyle, row);
|
||||
|
||||
if (!fw && this.startRegionRe.test(line))
|
||||
return "start"; // lineCommentRegionStart
|
||||
|
||||
return fw;
|
||||
};
|
||||
|
||||
this.getFoldWidgetRange = function(session, foldStyle, row, forceMultiline) {
|
||||
var line = session.getLine(row);
|
||||
|
||||
if (this.startRegionRe.test(line))
|
||||
return this.getCommentRegionBlock(session, line, row);
|
||||
|
||||
var match = line.match(this.foldingStartMarker);
|
||||
if (match) {
|
||||
var i = match.index;
|
||||
|
||||
if (match[1])
|
||||
return this.openingBracketBlock(session, match[1], row, i);
|
||||
|
||||
var range = session.getCommentFoldRange(row, i + match[0].length, 1);
|
||||
|
||||
if (range && !range.isMultiLine()) {
|
||||
if (forceMultiline) {
|
||||
range = this.getSectionRange(session, row);
|
||||
} else if (foldStyle != "all")
|
||||
range = null;
|
||||
}
|
||||
|
||||
return range;
|
||||
}
|
||||
|
||||
if (foldStyle === "markbegin")
|
||||
return;
|
||||
|
||||
var match = line.match(this.foldingStopMarker);
|
||||
if (match) {
|
||||
var i = match.index + match[0].length;
|
||||
|
||||
if (match[1])
|
||||
return this.closingBracketBlock(session, match[1], row, i);
|
||||
|
||||
return session.getCommentFoldRange(row, i, -1);
|
||||
}
|
||||
};
|
||||
|
||||
this.getSectionRange = function(session, row) {
|
||||
var line = session.getLine(row);
|
||||
var startIndent = line.search(/\S/);
|
||||
var startRow = row;
|
||||
var startColumn = line.length;
|
||||
row = row + 1;
|
||||
var endRow = row;
|
||||
var maxRow = session.getLength();
|
||||
while (++row < maxRow) {
|
||||
line = session.getLine(row);
|
||||
var indent = line.search(/\S/);
|
||||
if (indent === -1)
|
||||
continue;
|
||||
if (startIndent > indent)
|
||||
break;
|
||||
var subRange = this.getFoldWidgetRange(session, "all", row);
|
||||
|
||||
if (subRange) {
|
||||
if (subRange.start.row <= startRow) {
|
||||
break;
|
||||
} else if (subRange.isMultiLine()) {
|
||||
row = subRange.end.row;
|
||||
} else if (startIndent == indent) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
endRow = row;
|
||||
}
|
||||
|
||||
return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
|
||||
};
|
||||
this.getCommentRegionBlock = function(session, line, row) {
|
||||
var startColumn = line.search(/\s*$/);
|
||||
var maxRow = session.getLength();
|
||||
var startRow = row;
|
||||
|
||||
var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
|
||||
var depth = 1;
|
||||
while (++row < maxRow) {
|
||||
line = session.getLine(row);
|
||||
var m = re.exec(line);
|
||||
if (!m) continue;
|
||||
if (m[1]) depth--;
|
||||
else depth++;
|
||||
|
||||
if (!depth) break;
|
||||
}
|
||||
|
||||
var endRow = row;
|
||||
if (endRow > startRow) {
|
||||
return new Range(startRow, startColumn, endRow, line.length);
|
||||
}
|
||||
};
|
||||
|
||||
}).call(FoldMode.prototype);
|
||||
|
||||
});
|
||||
|
||||
ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../lib/oop");
|
||||
var TextMode = require("./text").Mode;
|
||||
var CssHighlightRules = require("./css_highlight_rules").CssHighlightRules;
|
||||
var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
|
||||
var WorkerClient = require("../worker/worker_client").WorkerClient;
|
||||
var CssCompletions = require("./css_completions").CssCompletions;
|
||||
var CssBehaviour = require("./behaviour/css").CssBehaviour;
|
||||
var CStyleFoldMode = require("./folding/cstyle").FoldMode;
|
||||
|
||||
var Mode = function() {
|
||||
this.HighlightRules = CssHighlightRules;
|
||||
this.$outdent = new MatchingBraceOutdent();
|
||||
this.$behaviour = new CssBehaviour();
|
||||
this.$completer = new CssCompletions();
|
||||
this.foldingRules = new CStyleFoldMode();
|
||||
};
|
||||
oop.inherits(Mode, TextMode);
|
||||
|
||||
(function() {
|
||||
|
||||
this.foldingRules = "cStyle";
|
||||
this.blockComment = {start: "/*", end: "*/"};
|
||||
|
||||
this.getNextLineIndent = function(state, line, tab) {
|
||||
var indent = this.$getIndent(line);
|
||||
var tokens = this.getTokenizer().getLineTokens(line, state).tokens;
|
||||
if (tokens.length && tokens[tokens.length-1].type == "comment") {
|
||||
return indent;
|
||||
}
|
||||
|
||||
var match = line.match(/^.*\{\s*$/);
|
||||
if (match) {
|
||||
indent += tab;
|
||||
}
|
||||
|
||||
return indent;
|
||||
};
|
||||
|
||||
this.checkOutdent = function(state, line, input) {
|
||||
return this.$outdent.checkOutdent(line, input);
|
||||
};
|
||||
|
||||
this.autoOutdent = function(state, doc, row) {
|
||||
this.$outdent.autoOutdent(doc, row);
|
||||
};
|
||||
|
||||
this.getCompletions = function(state, session, pos, prefix) {
|
||||
return this.$completer.getCompletions(state, session, pos, prefix);
|
||||
};
|
||||
|
||||
this.createWorker = function(session) {
|
||||
var worker = new WorkerClient(["ace"], "ace/mode/css_worker", "Worker");
|
||||
worker.attachToDocument(session.getDocument());
|
||||
|
||||
worker.on("annotate", function(e) {
|
||||
session.setAnnotations(e.data);
|
||||
});
|
||||
|
||||
worker.on("terminate", function() {
|
||||
session.clearAnnotations();
|
||||
});
|
||||
|
||||
return worker;
|
||||
};
|
||||
|
||||
this.$id = "ace/mode/css";
|
||||
}).call(Mode.prototype);
|
||||
|
||||
exports.Mode = Mode;
|
||||
|
||||
});
|
||||
2426
modules/backend/assets/vendor/ace/mode-html.js
vendored
Executable file
2426
modules/backend/assets/vendor/ace/mode-html.js
vendored
Executable file
File diff suppressed because it is too large
Load Diff
782
modules/backend/assets/vendor/ace/mode-javascript.js
vendored
Executable file
782
modules/backend/assets/vendor/ace/mode-javascript.js
vendored
Executable file
@@ -0,0 +1,782 @@
|
||||
ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../lib/oop");
|
||||
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
||||
|
||||
var DocCommentHighlightRules = function() {
|
||||
this.$rules = {
|
||||
"start" : [ {
|
||||
token : "comment.doc.tag",
|
||||
regex : "@[\\w\\d_]+" // TODO: fix email addresses
|
||||
},
|
||||
DocCommentHighlightRules.getTagRule(),
|
||||
{
|
||||
defaultToken : "comment.doc",
|
||||
caseInsensitive: true
|
||||
}]
|
||||
};
|
||||
};
|
||||
|
||||
oop.inherits(DocCommentHighlightRules, TextHighlightRules);
|
||||
|
||||
DocCommentHighlightRules.getTagRule = function(start) {
|
||||
return {
|
||||
token : "comment.doc.tag.storage.type",
|
||||
regex : "\\b(?:TODO|FIXME|XXX|HACK)\\b"
|
||||
};
|
||||
}
|
||||
|
||||
DocCommentHighlightRules.getStartRule = function(start) {
|
||||
return {
|
||||
token : "comment.doc", // doc comment
|
||||
regex : "\\/\\*(?=\\*)",
|
||||
next : start
|
||||
};
|
||||
};
|
||||
|
||||
DocCommentHighlightRules.getEndRule = function (start) {
|
||||
return {
|
||||
token : "comment.doc", // closing comment
|
||||
regex : "\\*\\/",
|
||||
next : start
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
exports.DocCommentHighlightRules = DocCommentHighlightRules;
|
||||
|
||||
});
|
||||
|
||||
ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../lib/oop");
|
||||
var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
|
||||
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
||||
var identifierRe = "[a-zA-Z\\$_\u00a1-\uffff][a-zA-Z\\d\\$_\u00a1-\uffff]*";
|
||||
|
||||
var JavaScriptHighlightRules = function(options) {
|
||||
var keywordMapper = this.createKeywordMapper({
|
||||
"variable.language":
|
||||
"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|" + // Constructors
|
||||
"Namespace|QName|XML|XMLList|" + // E4X
|
||||
"ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|" +
|
||||
"Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|" +
|
||||
"Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|" + // Errors
|
||||
"SyntaxError|TypeError|URIError|" +
|
||||
"decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|" + // Non-constructor functions
|
||||
"isNaN|parseFloat|parseInt|" +
|
||||
"JSON|Math|" + // Other
|
||||
"this|arguments|prototype|window|document" , // Pseudo
|
||||
"keyword":
|
||||
"const|yield|import|get|set|async|await|" +
|
||||
"break|case|catch|continue|default|delete|do|else|finally|for|function|" +
|
||||
"if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|" +
|
||||
"__parent__|__count__|escape|unescape|with|__proto__|" +
|
||||
"class|enum|extends|super|export|implements|private|public|interface|package|protected|static",
|
||||
"storage.type":
|
||||
"const|let|var|function",
|
||||
"constant.language":
|
||||
"null|Infinity|NaN|undefined",
|
||||
"support.function":
|
||||
"alert",
|
||||
"constant.language.boolean": "true|false"
|
||||
}, "identifier");
|
||||
var kwBeforeRe = "case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void";
|
||||
|
||||
var escapedRe = "\\\\(?:x[0-9a-fA-F]{2}|" + // hex
|
||||
"u[0-9a-fA-F]{4}|" + // unicode
|
||||
"u{[0-9a-fA-F]{1,6}}|" + // es6 unicode
|
||||
"[0-2][0-7]{0,2}|" + // oct
|
||||
"3[0-7][0-7]?|" + // oct
|
||||
"[4-7][0-7]?|" + //oct
|
||||
".)";
|
||||
|
||||
this.$rules = {
|
||||
"no_regex" : [
|
||||
DocCommentHighlightRules.getStartRule("doc-start"),
|
||||
comments("no_regex"),
|
||||
{
|
||||
token : "string",
|
||||
regex : "'(?=.)",
|
||||
next : "qstring"
|
||||
}, {
|
||||
token : "string",
|
||||
regex : '"(?=.)',
|
||||
next : "qqstring"
|
||||
}, {
|
||||
token : "constant.numeric", // hex
|
||||
regex : /0(?:[xX][0-9a-fA-F]+|[bB][01]+)\b/
|
||||
}, {
|
||||
token : "constant.numeric", // float
|
||||
regex : /[+-]?\d[\d_]*(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?\b/
|
||||
}, {
|
||||
token : [
|
||||
"storage.type", "punctuation.operator", "support.function",
|
||||
"punctuation.operator", "entity.name.function", "text","keyword.operator"
|
||||
],
|
||||
regex : "(" + identifierRe + ")(\\.)(prototype)(\\.)(" + identifierRe +")(\\s*)(=)",
|
||||
next: "function_arguments"
|
||||
}, {
|
||||
token : [
|
||||
"storage.type", "punctuation.operator", "entity.name.function", "text",
|
||||
"keyword.operator", "text", "storage.type", "text", "paren.lparen"
|
||||
],
|
||||
regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",
|
||||
next: "function_arguments"
|
||||
}, {
|
||||
token : [
|
||||
"entity.name.function", "text", "keyword.operator", "text", "storage.type",
|
||||
"text", "paren.lparen"
|
||||
],
|
||||
regex : "(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",
|
||||
next: "function_arguments"
|
||||
}, {
|
||||
token : [
|
||||
"storage.type", "punctuation.operator", "entity.name.function", "text",
|
||||
"keyword.operator", "text",
|
||||
"storage.type", "text", "entity.name.function", "text", "paren.lparen"
|
||||
],
|
||||
regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",
|
||||
next: "function_arguments"
|
||||
}, {
|
||||
token : [
|
||||
"storage.type", "text", "entity.name.function", "text", "paren.lparen"
|
||||
],
|
||||
regex : "(function)(\\s+)(" + identifierRe + ")(\\s*)(\\()",
|
||||
next: "function_arguments"
|
||||
}, {
|
||||
token : [
|
||||
"entity.name.function", "text", "punctuation.operator",
|
||||
"text", "storage.type", "text", "paren.lparen"
|
||||
],
|
||||
regex : "(" + identifierRe + ")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",
|
||||
next: "function_arguments"
|
||||
}, {
|
||||
token : [
|
||||
"text", "text", "storage.type", "text", "paren.lparen"
|
||||
],
|
||||
regex : "(:)(\\s*)(function)(\\s*)(\\()",
|
||||
next: "function_arguments"
|
||||
}, {
|
||||
token : "keyword",
|
||||
regex : "(?:" + kwBeforeRe + ")\\b",
|
||||
next : "start"
|
||||
}, {
|
||||
token : ["support.constant"],
|
||||
regex : /that\b/
|
||||
}, {
|
||||
token : ["storage.type", "punctuation.operator", "support.function.firebug"],
|
||||
regex : /(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/
|
||||
}, {
|
||||
token : keywordMapper,
|
||||
regex : identifierRe
|
||||
}, {
|
||||
token : "punctuation.operator",
|
||||
regex : /[.](?![.])/,
|
||||
next : "property"
|
||||
}, {
|
||||
token : "keyword.operator",
|
||||
regex : /--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,
|
||||
next : "start"
|
||||
}, {
|
||||
token : "punctuation.operator",
|
||||
regex : /[?:,;.]/,
|
||||
next : "start"
|
||||
}, {
|
||||
token : "paren.lparen",
|
||||
regex : /[\[({]/,
|
||||
next : "start"
|
||||
}, {
|
||||
token : "paren.rparen",
|
||||
regex : /[\])}]/
|
||||
}, {
|
||||
token: "comment",
|
||||
regex: /^#!.*$/
|
||||
}
|
||||
],
|
||||
property: [{
|
||||
token : "text",
|
||||
regex : "\\s+"
|
||||
}, {
|
||||
token : [
|
||||
"storage.type", "punctuation.operator", "entity.name.function", "text",
|
||||
"keyword.operator", "text",
|
||||
"storage.type", "text", "entity.name.function", "text", "paren.lparen"
|
||||
],
|
||||
regex : "(" + identifierRe + ")(\\.)(" + identifierRe +")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",
|
||||
next: "function_arguments"
|
||||
}, {
|
||||
token : "punctuation.operator",
|
||||
regex : /[.](?![.])/
|
||||
}, {
|
||||
token : "support.function",
|
||||
regex : /(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/
|
||||
}, {
|
||||
token : "support.function.dom",
|
||||
regex : /(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/
|
||||
}, {
|
||||
token : "support.constant",
|
||||
regex : /(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/
|
||||
}, {
|
||||
token : "identifier",
|
||||
regex : identifierRe
|
||||
}, {
|
||||
regex: "",
|
||||
token: "empty",
|
||||
next: "no_regex"
|
||||
}
|
||||
],
|
||||
"start": [
|
||||
DocCommentHighlightRules.getStartRule("doc-start"),
|
||||
comments("start"),
|
||||
{
|
||||
token: "string.regexp",
|
||||
regex: "\\/",
|
||||
next: "regex"
|
||||
}, {
|
||||
token : "text",
|
||||
regex : "\\s+|^$",
|
||||
next : "start"
|
||||
}, {
|
||||
token: "empty",
|
||||
regex: "",
|
||||
next: "no_regex"
|
||||
}
|
||||
],
|
||||
"regex": [
|
||||
{
|
||||
token: "regexp.keyword.operator",
|
||||
regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
|
||||
}, {
|
||||
token: "string.regexp",
|
||||
regex: "/[sxngimy]*",
|
||||
next: "no_regex"
|
||||
}, {
|
||||
token : "invalid",
|
||||
regex: /\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/
|
||||
}, {
|
||||
token : "constant.language.escape",
|
||||
regex: /\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/
|
||||
}, {
|
||||
token : "constant.language.delimiter",
|
||||
regex: /\|/
|
||||
}, {
|
||||
token: "constant.language.escape",
|
||||
regex: /\[\^?/,
|
||||
next: "regex_character_class"
|
||||
}, {
|
||||
token: "empty",
|
||||
regex: "$",
|
||||
next: "no_regex"
|
||||
}, {
|
||||
defaultToken: "string.regexp"
|
||||
}
|
||||
],
|
||||
"regex_character_class": [
|
||||
{
|
||||
token: "regexp.charclass.keyword.operator",
|
||||
regex: "\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"
|
||||
}, {
|
||||
token: "constant.language.escape",
|
||||
regex: "]",
|
||||
next: "regex"
|
||||
}, {
|
||||
token: "constant.language.escape",
|
||||
regex: "-"
|
||||
}, {
|
||||
token: "empty",
|
||||
regex: "$",
|
||||
next: "no_regex"
|
||||
}, {
|
||||
defaultToken: "string.regexp.charachterclass"
|
||||
}
|
||||
],
|
||||
"function_arguments": [
|
||||
{
|
||||
token: "variable.parameter",
|
||||
regex: identifierRe
|
||||
}, {
|
||||
token: "punctuation.operator",
|
||||
regex: "[, ]+"
|
||||
}, {
|
||||
token: "punctuation.operator",
|
||||
regex: "$"
|
||||
}, {
|
||||
token: "empty",
|
||||
regex: "",
|
||||
next: "no_regex"
|
||||
}
|
||||
],
|
||||
"qqstring" : [
|
||||
{
|
||||
token : "constant.language.escape",
|
||||
regex : escapedRe
|
||||
}, {
|
||||
token : "string",
|
||||
regex : "\\\\$",
|
||||
next : "qqstring"
|
||||
}, {
|
||||
token : "string",
|
||||
regex : '"|$',
|
||||
next : "no_regex"
|
||||
}, {
|
||||
defaultToken: "string"
|
||||
}
|
||||
],
|
||||
"qstring" : [
|
||||
{
|
||||
token : "constant.language.escape",
|
||||
regex : escapedRe
|
||||
}, {
|
||||
token : "string",
|
||||
regex : "\\\\$",
|
||||
next : "qstring"
|
||||
}, {
|
||||
token : "string",
|
||||
regex : "'|$",
|
||||
next : "no_regex"
|
||||
}, {
|
||||
defaultToken: "string"
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
|
||||
if (!options || !options.noES6) {
|
||||
this.$rules.no_regex.unshift({
|
||||
regex: "[{}]", onMatch: function(val, state, stack) {
|
||||
this.next = val == "{" ? this.nextState : "";
|
||||
if (val == "{" && stack.length) {
|
||||
stack.unshift("start", state);
|
||||
}
|
||||
else if (val == "}" && stack.length) {
|
||||
stack.shift();
|
||||
this.next = stack.shift();
|
||||
if (this.next.indexOf("string") != -1 || this.next.indexOf("jsx") != -1)
|
||||
return "paren.quasi.end";
|
||||
}
|
||||
return val == "{" ? "paren.lparen" : "paren.rparen";
|
||||
},
|
||||
nextState: "start"
|
||||
}, {
|
||||
token : "string.quasi.start",
|
||||
regex : /`/,
|
||||
push : [{
|
||||
token : "constant.language.escape",
|
||||
regex : escapedRe
|
||||
}, {
|
||||
token : "paren.quasi.start",
|
||||
regex : /\${/,
|
||||
push : "start"
|
||||
}, {
|
||||
token : "string.quasi.end",
|
||||
regex : /`/,
|
||||
next : "pop"
|
||||
}, {
|
||||
defaultToken: "string.quasi"
|
||||
}]
|
||||
});
|
||||
|
||||
if (!options || options.jsx != false)
|
||||
JSX.call(this);
|
||||
}
|
||||
|
||||
this.embedRules(DocCommentHighlightRules, "doc-",
|
||||
[ DocCommentHighlightRules.getEndRule("no_regex") ]);
|
||||
|
||||
this.normalizeRules();
|
||||
};
|
||||
|
||||
oop.inherits(JavaScriptHighlightRules, TextHighlightRules);
|
||||
|
||||
function JSX() {
|
||||
var tagRegex = identifierRe.replace("\\d", "\\d\\-");
|
||||
var jsxTag = {
|
||||
onMatch : function(val, state, stack) {
|
||||
var offset = val.charAt(1) == "/" ? 2 : 1;
|
||||
if (offset == 1) {
|
||||
if (state != this.nextState)
|
||||
stack.unshift(this.next, this.nextState, 0);
|
||||
else
|
||||
stack.unshift(this.next);
|
||||
stack[2]++;
|
||||
} else if (offset == 2) {
|
||||
if (state == this.nextState) {
|
||||
stack[1]--;
|
||||
if (!stack[1] || stack[1] < 0) {
|
||||
stack.shift();
|
||||
stack.shift();
|
||||
}
|
||||
}
|
||||
}
|
||||
return [{
|
||||
type: "meta.tag.punctuation." + (offset == 1 ? "" : "end-") + "tag-open.xml",
|
||||
value: val.slice(0, offset)
|
||||
}, {
|
||||
type: "meta.tag.tag-name.xml",
|
||||
value: val.substr(offset)
|
||||
}];
|
||||
},
|
||||
regex : "</?" + tagRegex + "",
|
||||
next: "jsxAttributes",
|
||||
nextState: "jsx"
|
||||
};
|
||||
this.$rules.start.unshift(jsxTag);
|
||||
var jsxJsRule = {
|
||||
regex: "{",
|
||||
token: "paren.quasi.start",
|
||||
push: "start"
|
||||
};
|
||||
this.$rules.jsx = [
|
||||
jsxJsRule,
|
||||
jsxTag,
|
||||
{include : "reference"},
|
||||
{defaultToken: "string"}
|
||||
];
|
||||
this.$rules.jsxAttributes = [{
|
||||
token : "meta.tag.punctuation.tag-close.xml",
|
||||
regex : "/?>",
|
||||
onMatch : function(value, currentState, stack) {
|
||||
if (currentState == stack[0])
|
||||
stack.shift();
|
||||
if (value.length == 2) {
|
||||
if (stack[0] == this.nextState)
|
||||
stack[1]--;
|
||||
if (!stack[1] || stack[1] < 0) {
|
||||
stack.splice(0, 2);
|
||||
}
|
||||
}
|
||||
this.next = stack[0] || "start";
|
||||
return [{type: this.token, value: value}];
|
||||
},
|
||||
nextState: "jsx"
|
||||
},
|
||||
jsxJsRule,
|
||||
comments("jsxAttributes"),
|
||||
{
|
||||
token : "entity.other.attribute-name.xml",
|
||||
regex : tagRegex
|
||||
}, {
|
||||
token : "keyword.operator.attribute-equals.xml",
|
||||
regex : "="
|
||||
}, {
|
||||
token : "text.tag-whitespace.xml",
|
||||
regex : "\\s+"
|
||||
}, {
|
||||
token : "string.attribute-value.xml",
|
||||
regex : "'",
|
||||
stateName : "jsx_attr_q",
|
||||
push : [
|
||||
{token : "string.attribute-value.xml", regex: "'", next: "pop"},
|
||||
{include : "reference"},
|
||||
{defaultToken : "string.attribute-value.xml"}
|
||||
]
|
||||
}, {
|
||||
token : "string.attribute-value.xml",
|
||||
regex : '"',
|
||||
stateName : "jsx_attr_qq",
|
||||
push : [
|
||||
{token : "string.attribute-value.xml", regex: '"', next: "pop"},
|
||||
{include : "reference"},
|
||||
{defaultToken : "string.attribute-value.xml"}
|
||||
]
|
||||
},
|
||||
jsxTag
|
||||
];
|
||||
this.$rules.reference = [{
|
||||
token : "constant.language.escape.reference.xml",
|
||||
regex : "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
|
||||
}];
|
||||
}
|
||||
|
||||
function comments(next) {
|
||||
return [
|
||||
{
|
||||
token : "comment", // multi line comment
|
||||
regex : /\/\*/,
|
||||
next: [
|
||||
DocCommentHighlightRules.getTagRule(),
|
||||
{token : "comment", regex : "\\*\\/", next : next || "pop"},
|
||||
{defaultToken : "comment", caseInsensitive: true}
|
||||
]
|
||||
}, {
|
||||
token : "comment",
|
||||
regex : "\\/\\/",
|
||||
next: [
|
||||
DocCommentHighlightRules.getTagRule(),
|
||||
{token : "comment", regex : "$|^", next : next || "pop"},
|
||||
{defaultToken : "comment", caseInsensitive: true}
|
||||
]
|
||||
}
|
||||
];
|
||||
}
|
||||
exports.JavaScriptHighlightRules = JavaScriptHighlightRules;
|
||||
});
|
||||
|
||||
ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var Range = require("../range").Range;
|
||||
|
||||
var MatchingBraceOutdent = function() {};
|
||||
|
||||
(function() {
|
||||
|
||||
this.checkOutdent = function(line, input) {
|
||||
if (! /^\s+$/.test(line))
|
||||
return false;
|
||||
|
||||
return /^\s*\}/.test(input);
|
||||
};
|
||||
|
||||
this.autoOutdent = function(doc, row) {
|
||||
var line = doc.getLine(row);
|
||||
var match = line.match(/^(\s*\})/);
|
||||
|
||||
if (!match) return 0;
|
||||
|
||||
var column = match[1].length;
|
||||
var openBracePos = doc.findMatchingBracket({row: row, column: column});
|
||||
|
||||
if (!openBracePos || openBracePos.row == row) return 0;
|
||||
|
||||
var indent = this.$getIndent(doc.getLine(openBracePos.row));
|
||||
doc.replace(new Range(row, 0, row, column-1), indent);
|
||||
};
|
||||
|
||||
this.$getIndent = function(line) {
|
||||
return line.match(/^\s*/)[0];
|
||||
};
|
||||
|
||||
}).call(MatchingBraceOutdent.prototype);
|
||||
|
||||
exports.MatchingBraceOutdent = MatchingBraceOutdent;
|
||||
});
|
||||
|
||||
ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../../lib/oop");
|
||||
var Range = require("../../range").Range;
|
||||
var BaseFoldMode = require("./fold_mode").FoldMode;
|
||||
|
||||
var FoldMode = exports.FoldMode = function(commentRegex) {
|
||||
if (commentRegex) {
|
||||
this.foldingStartMarker = new RegExp(
|
||||
this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start)
|
||||
);
|
||||
this.foldingStopMarker = new RegExp(
|
||||
this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end)
|
||||
);
|
||||
}
|
||||
};
|
||||
oop.inherits(FoldMode, BaseFoldMode);
|
||||
|
||||
(function() {
|
||||
|
||||
this.foldingStartMarker = /(\{|\[)[^\}\]]*$|^\s*(\/\*)/;
|
||||
this.foldingStopMarker = /^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;
|
||||
this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/;
|
||||
this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
|
||||
this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
|
||||
this._getFoldWidgetBase = this.getFoldWidget;
|
||||
this.getFoldWidget = function(session, foldStyle, row) {
|
||||
var line = session.getLine(row);
|
||||
|
||||
if (this.singleLineBlockCommentRe.test(line)) {
|
||||
if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))
|
||||
return "";
|
||||
}
|
||||
|
||||
var fw = this._getFoldWidgetBase(session, foldStyle, row);
|
||||
|
||||
if (!fw && this.startRegionRe.test(line))
|
||||
return "start"; // lineCommentRegionStart
|
||||
|
||||
return fw;
|
||||
};
|
||||
|
||||
this.getFoldWidgetRange = function(session, foldStyle, row, forceMultiline) {
|
||||
var line = session.getLine(row);
|
||||
|
||||
if (this.startRegionRe.test(line))
|
||||
return this.getCommentRegionBlock(session, line, row);
|
||||
|
||||
var match = line.match(this.foldingStartMarker);
|
||||
if (match) {
|
||||
var i = match.index;
|
||||
|
||||
if (match[1])
|
||||
return this.openingBracketBlock(session, match[1], row, i);
|
||||
|
||||
var range = session.getCommentFoldRange(row, i + match[0].length, 1);
|
||||
|
||||
if (range && !range.isMultiLine()) {
|
||||
if (forceMultiline) {
|
||||
range = this.getSectionRange(session, row);
|
||||
} else if (foldStyle != "all")
|
||||
range = null;
|
||||
}
|
||||
|
||||
return range;
|
||||
}
|
||||
|
||||
if (foldStyle === "markbegin")
|
||||
return;
|
||||
|
||||
var match = line.match(this.foldingStopMarker);
|
||||
if (match) {
|
||||
var i = match.index + match[0].length;
|
||||
|
||||
if (match[1])
|
||||
return this.closingBracketBlock(session, match[1], row, i);
|
||||
|
||||
return session.getCommentFoldRange(row, i, -1);
|
||||
}
|
||||
};
|
||||
|
||||
this.getSectionRange = function(session, row) {
|
||||
var line = session.getLine(row);
|
||||
var startIndent = line.search(/\S/);
|
||||
var startRow = row;
|
||||
var startColumn = line.length;
|
||||
row = row + 1;
|
||||
var endRow = row;
|
||||
var maxRow = session.getLength();
|
||||
while (++row < maxRow) {
|
||||
line = session.getLine(row);
|
||||
var indent = line.search(/\S/);
|
||||
if (indent === -1)
|
||||
continue;
|
||||
if (startIndent > indent)
|
||||
break;
|
||||
var subRange = this.getFoldWidgetRange(session, "all", row);
|
||||
|
||||
if (subRange) {
|
||||
if (subRange.start.row <= startRow) {
|
||||
break;
|
||||
} else if (subRange.isMultiLine()) {
|
||||
row = subRange.end.row;
|
||||
} else if (startIndent == indent) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
endRow = row;
|
||||
}
|
||||
|
||||
return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
|
||||
};
|
||||
this.getCommentRegionBlock = function(session, line, row) {
|
||||
var startColumn = line.search(/\s*$/);
|
||||
var maxRow = session.getLength();
|
||||
var startRow = row;
|
||||
|
||||
var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
|
||||
var depth = 1;
|
||||
while (++row < maxRow) {
|
||||
line = session.getLine(row);
|
||||
var m = re.exec(line);
|
||||
if (!m) continue;
|
||||
if (m[1]) depth--;
|
||||
else depth++;
|
||||
|
||||
if (!depth) break;
|
||||
}
|
||||
|
||||
var endRow = row;
|
||||
if (endRow > startRow) {
|
||||
return new Range(startRow, startColumn, endRow, line.length);
|
||||
}
|
||||
};
|
||||
|
||||
}).call(FoldMode.prototype);
|
||||
|
||||
});
|
||||
|
||||
ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../lib/oop");
|
||||
var TextMode = require("./text").Mode;
|
||||
var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
|
||||
var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
|
||||
var WorkerClient = require("../worker/worker_client").WorkerClient;
|
||||
var CstyleBehaviour = require("./behaviour/cstyle").CstyleBehaviour;
|
||||
var CStyleFoldMode = require("./folding/cstyle").FoldMode;
|
||||
|
||||
var Mode = function() {
|
||||
this.HighlightRules = JavaScriptHighlightRules;
|
||||
|
||||
this.$outdent = new MatchingBraceOutdent();
|
||||
this.$behaviour = new CstyleBehaviour();
|
||||
this.foldingRules = new CStyleFoldMode();
|
||||
};
|
||||
oop.inherits(Mode, TextMode);
|
||||
|
||||
(function() {
|
||||
|
||||
this.lineCommentStart = "//";
|
||||
this.blockComment = {start: "/*", end: "*/"};
|
||||
|
||||
this.getNextLineIndent = function(state, line, tab) {
|
||||
var indent = this.$getIndent(line);
|
||||
|
||||
var tokenizedLine = this.getTokenizer().getLineTokens(line, state);
|
||||
var tokens = tokenizedLine.tokens;
|
||||
var endState = tokenizedLine.state;
|
||||
|
||||
if (tokens.length && tokens[tokens.length-1].type == "comment") {
|
||||
return indent;
|
||||
}
|
||||
|
||||
if (state == "start" || state == "no_regex") {
|
||||
var match = line.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);
|
||||
if (match) {
|
||||
indent += tab;
|
||||
}
|
||||
} else if (state == "doc-start") {
|
||||
if (endState == "start" || endState == "no_regex") {
|
||||
return "";
|
||||
}
|
||||
var match = line.match(/^\s*(\/?)\*/);
|
||||
if (match) {
|
||||
if (match[1]) {
|
||||
indent += " ";
|
||||
}
|
||||
indent += "* ";
|
||||
}
|
||||
}
|
||||
|
||||
return indent;
|
||||
};
|
||||
|
||||
this.checkOutdent = function(state, line, input) {
|
||||
return this.$outdent.checkOutdent(line, input);
|
||||
};
|
||||
|
||||
this.autoOutdent = function(state, doc, row) {
|
||||
this.$outdent.autoOutdent(doc, row);
|
||||
};
|
||||
|
||||
this.createWorker = function(session) {
|
||||
var worker = new WorkerClient(["ace"], "ace/mode/javascript_worker", "JavaScriptWorker");
|
||||
worker.attachToDocument(session.getDocument());
|
||||
|
||||
worker.on("annotate", function(results) {
|
||||
session.setAnnotations(results.data);
|
||||
});
|
||||
|
||||
worker.on("terminate", function() {
|
||||
session.clearAnnotations();
|
||||
});
|
||||
|
||||
return worker;
|
||||
};
|
||||
|
||||
this.$id = "ace/mode/javascript";
|
||||
}).call(Mode.prototype);
|
||||
|
||||
exports.Mode = Mode;
|
||||
});
|
||||
772
modules/backend/assets/vendor/ace/mode-less.js
vendored
Executable file
772
modules/backend/assets/vendor/ace/mode-less.js
vendored
Executable file
@@ -0,0 +1,772 @@
|
||||
ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../lib/oop");
|
||||
var lang = require("../lib/lang");
|
||||
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
||||
var supportType = exports.supportType = "align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|min-height|min-width|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index";
|
||||
var supportFunction = exports.supportFunction = "rgb|rgba|url|attr|counter|counters";
|
||||
var supportConstant = exports.supportConstant = "absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero";
|
||||
var supportConstantColor = exports.supportConstantColor = "aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow";
|
||||
var supportConstantFonts = exports.supportConstantFonts = "arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace";
|
||||
|
||||
var numRe = exports.numRe = "\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))";
|
||||
var pseudoElements = exports.pseudoElements = "(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b";
|
||||
var pseudoClasses = exports.pseudoClasses = "(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b";
|
||||
|
||||
var CssHighlightRules = function() {
|
||||
|
||||
var keywordMapper = this.createKeywordMapper({
|
||||
"support.function": supportFunction,
|
||||
"support.constant": supportConstant,
|
||||
"support.type": supportType,
|
||||
"support.constant.color": supportConstantColor,
|
||||
"support.constant.fonts": supportConstantFonts
|
||||
}, "text", true);
|
||||
|
||||
this.$rules = {
|
||||
"start" : [{
|
||||
token : "comment", // multi line comment
|
||||
regex : "\\/\\*",
|
||||
push : "comment"
|
||||
}, {
|
||||
token: "paren.lparen",
|
||||
regex: "\\{",
|
||||
push: "ruleset"
|
||||
}, {
|
||||
token: "string",
|
||||
regex: "@.*?{",
|
||||
push: "media"
|
||||
}, {
|
||||
token: "keyword",
|
||||
regex: "#[a-z0-9-_]+"
|
||||
}, {
|
||||
token: "variable",
|
||||
regex: "\\.[a-z0-9-_]+"
|
||||
}, {
|
||||
token: "string",
|
||||
regex: ":[a-z0-9-_]+"
|
||||
}, {
|
||||
token: "constant",
|
||||
regex: "[a-z0-9-_]+"
|
||||
}, {
|
||||
caseInsensitive: true
|
||||
}],
|
||||
|
||||
"media" : [{
|
||||
token : "comment", // multi line comment
|
||||
regex : "\\/\\*",
|
||||
push : "comment"
|
||||
}, {
|
||||
token: "paren.lparen",
|
||||
regex: "\\{",
|
||||
push: "ruleset"
|
||||
}, {
|
||||
token: "string",
|
||||
regex: "\\}",
|
||||
next: "pop"
|
||||
}, {
|
||||
token: "keyword",
|
||||
regex: "#[a-z0-9-_]+"
|
||||
}, {
|
||||
token: "variable",
|
||||
regex: "\\.[a-z0-9-_]+"
|
||||
}, {
|
||||
token: "string",
|
||||
regex: ":[a-z0-9-_]+"
|
||||
}, {
|
||||
token: "constant",
|
||||
regex: "[a-z0-9-_]+"
|
||||
}, {
|
||||
caseInsensitive: true
|
||||
}],
|
||||
|
||||
"comment" : [{
|
||||
token : "comment",
|
||||
regex : "\\*\\/",
|
||||
next : "pop"
|
||||
}, {
|
||||
defaultToken : "comment"
|
||||
}],
|
||||
|
||||
"ruleset" : [
|
||||
{
|
||||
token : "paren.rparen",
|
||||
regex : "\\}",
|
||||
next: "pop"
|
||||
}, {
|
||||
token : "comment", // multi line comment
|
||||
regex : "\\/\\*",
|
||||
push : "comment"
|
||||
}, {
|
||||
token : "string", // single line
|
||||
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
|
||||
}, {
|
||||
token : "string", // single line
|
||||
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
|
||||
}, {
|
||||
token : ["constant.numeric", "keyword"],
|
||||
regex : "(" + numRe + ")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vm|vw|%)"
|
||||
}, {
|
||||
token : "constant.numeric",
|
||||
regex : numRe
|
||||
}, {
|
||||
token : "constant.numeric", // hex6 color
|
||||
regex : "#[a-f0-9]{6}"
|
||||
}, {
|
||||
token : "constant.numeric", // hex3 color
|
||||
regex : "#[a-f0-9]{3}"
|
||||
}, {
|
||||
token : ["punctuation", "entity.other.attribute-name.pseudo-element.css"],
|
||||
regex : pseudoElements
|
||||
}, {
|
||||
token : ["punctuation", "entity.other.attribute-name.pseudo-class.css"],
|
||||
regex : pseudoClasses
|
||||
}, {
|
||||
token : ["support.function", "string", "support.function"],
|
||||
regex : "(url\\()(.*)(\\))"
|
||||
}, {
|
||||
token : keywordMapper,
|
||||
regex : "\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"
|
||||
}, {
|
||||
caseInsensitive: true
|
||||
}]
|
||||
};
|
||||
|
||||
this.normalizeRules();
|
||||
};
|
||||
|
||||
oop.inherits(CssHighlightRules, TextHighlightRules);
|
||||
|
||||
exports.CssHighlightRules = CssHighlightRules;
|
||||
|
||||
});
|
||||
|
||||
ace.define("ace/mode/less_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules","ace/mode/css_highlight_rules"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../lib/oop");
|
||||
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
||||
var CssHighlightRules = require('./css_highlight_rules');
|
||||
|
||||
var LessHighlightRules = function() {
|
||||
|
||||
|
||||
var keywordList = "@import|@media|@font-face|@keyframes|@-webkit-keyframes|@supports|" +
|
||||
"@charset|@plugin|@namespace|@document|@page|@viewport|@-ms-viewport|" +
|
||||
"or|and|when|not";
|
||||
|
||||
var keywords = keywordList.split('|');
|
||||
|
||||
var properties = CssHighlightRules.supportType.split('|');
|
||||
|
||||
var keywordMapper = this.createKeywordMapper({
|
||||
"support.constant": CssHighlightRules.supportConstant,
|
||||
"keyword": keywordList,
|
||||
"support.constant.color": CssHighlightRules.supportConstantColor,
|
||||
"support.constant.fonts": CssHighlightRules.supportConstantFonts
|
||||
}, "identifier", true);
|
||||
|
||||
var numRe = "\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))";
|
||||
|
||||
this.$rules = {
|
||||
"start" : [
|
||||
{
|
||||
token : "comment",
|
||||
regex : "\\/\\/.*$"
|
||||
},
|
||||
{
|
||||
token : "comment", // multi line comment
|
||||
regex : "\\/\\*",
|
||||
next : "comment"
|
||||
}, {
|
||||
token : "string", // single line
|
||||
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
|
||||
}, {
|
||||
token : "string", // single line
|
||||
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
|
||||
}, {
|
||||
token : ["constant.numeric", "keyword"],
|
||||
regex : "(" + numRe + ")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vm|vw|%)"
|
||||
}, {
|
||||
token : "constant.numeric", // hex6 color
|
||||
regex : "#[a-f0-9]{6}"
|
||||
}, {
|
||||
token : "constant.numeric", // hex3 color
|
||||
regex : "#[a-f0-9]{3}"
|
||||
}, {
|
||||
token : "constant.numeric",
|
||||
regex : numRe
|
||||
}, {
|
||||
token : ["support.function", "paren.lparen", "string", "paren.rparen"],
|
||||
regex : "(url)(\\()(.*)(\\))"
|
||||
}, {
|
||||
token : ["support.function", "paren.lparen"],
|
||||
regex : "(:extend|[a-z0-9_\\-]+)(\\()"
|
||||
}, {
|
||||
token : function(value) {
|
||||
if (keywords.indexOf(value.toLowerCase()) > -1)
|
||||
return "keyword";
|
||||
else
|
||||
return "variable";
|
||||
},
|
||||
regex : "[@\\$][a-z0-9_\\-@\\$]*\\b"
|
||||
}, {
|
||||
token : "variable",
|
||||
regex : "[@\\$]\\{[a-z0-9_\\-@\\$]*\\}"
|
||||
}, {
|
||||
token : function(first, second) {
|
||||
if(properties.indexOf(first.toLowerCase()) > -1) {
|
||||
return ["support.type.property", "text"];
|
||||
}
|
||||
else {
|
||||
return ["support.type.unknownProperty", "text"];
|
||||
}
|
||||
},
|
||||
regex : "([a-z0-9-_]+)(\\s*:)"
|
||||
}, {
|
||||
token : "keyword",
|
||||
regex : "&" // special case - always treat as keyword
|
||||
}, {
|
||||
token : keywordMapper,
|
||||
regex : "\\-?[@a-z_][@a-z0-9_\\-]*"
|
||||
}, {
|
||||
token: "variable.language",
|
||||
regex: "#[a-z0-9-_]+"
|
||||
}, {
|
||||
token: "variable.language",
|
||||
regex: "\\.[a-z0-9-_]+"
|
||||
}, {
|
||||
token: "variable.language",
|
||||
regex: ":[a-z_][a-z0-9-_]*"
|
||||
}, {
|
||||
token: "constant",
|
||||
regex: "[a-z0-9-_]+"
|
||||
}, {
|
||||
token : "keyword.operator",
|
||||
regex : "<|>|<=|>=|=|!=|-|%|\\+|\\*"
|
||||
}, {
|
||||
token : "paren.lparen",
|
||||
regex : "[[({]"
|
||||
}, {
|
||||
token : "paren.rparen",
|
||||
regex : "[\\])}]"
|
||||
}, {
|
||||
token : "text",
|
||||
regex : "\\s+"
|
||||
}, {
|
||||
caseInsensitive: true
|
||||
}
|
||||
],
|
||||
"comment" : [
|
||||
{
|
||||
token : "comment", // closing comment
|
||||
regex : ".*?\\*\\/",
|
||||
next : "start"
|
||||
}, {
|
||||
token : "comment", // comment spanning whole line
|
||||
regex : ".+"
|
||||
}
|
||||
]
|
||||
};
|
||||
this.normalizeRules();
|
||||
};
|
||||
|
||||
oop.inherits(LessHighlightRules, TextHighlightRules);
|
||||
|
||||
exports.LessHighlightRules = LessHighlightRules;
|
||||
|
||||
});
|
||||
|
||||
ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var Range = require("../range").Range;
|
||||
|
||||
var MatchingBraceOutdent = function() {};
|
||||
|
||||
(function() {
|
||||
|
||||
this.checkOutdent = function(line, input) {
|
||||
if (! /^\s+$/.test(line))
|
||||
return false;
|
||||
|
||||
return /^\s*\}/.test(input);
|
||||
};
|
||||
|
||||
this.autoOutdent = function(doc, row) {
|
||||
var line = doc.getLine(row);
|
||||
var match = line.match(/^(\s*\})/);
|
||||
|
||||
if (!match) return 0;
|
||||
|
||||
var column = match[1].length;
|
||||
var openBracePos = doc.findMatchingBracket({row: row, column: column});
|
||||
|
||||
if (!openBracePos || openBracePos.row == row) return 0;
|
||||
|
||||
var indent = this.$getIndent(doc.getLine(openBracePos.row));
|
||||
doc.replace(new Range(row, 0, row, column-1), indent);
|
||||
};
|
||||
|
||||
this.$getIndent = function(line) {
|
||||
return line.match(/^\s*/)[0];
|
||||
};
|
||||
|
||||
}).call(MatchingBraceOutdent.prototype);
|
||||
|
||||
exports.MatchingBraceOutdent = MatchingBraceOutdent;
|
||||
});
|
||||
|
||||
ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../../lib/oop");
|
||||
var Behaviour = require("../behaviour").Behaviour;
|
||||
var CstyleBehaviour = require("./cstyle").CstyleBehaviour;
|
||||
var TokenIterator = require("../../token_iterator").TokenIterator;
|
||||
|
||||
var CssBehaviour = function () {
|
||||
|
||||
this.inherit(CstyleBehaviour);
|
||||
|
||||
this.add("colon", "insertion", function (state, action, editor, session, text) {
|
||||
if (text === ':') {
|
||||
var cursor = editor.getCursorPosition();
|
||||
var iterator = new TokenIterator(session, cursor.row, cursor.column);
|
||||
var token = iterator.getCurrentToken();
|
||||
if (token && token.value.match(/\s+/)) {
|
||||
token = iterator.stepBackward();
|
||||
}
|
||||
if (token && token.type === 'support.type') {
|
||||
var line = session.doc.getLine(cursor.row);
|
||||
var rightChar = line.substring(cursor.column, cursor.column + 1);
|
||||
if (rightChar === ':') {
|
||||
return {
|
||||
text: '',
|
||||
selection: [1, 1]
|
||||
}
|
||||
}
|
||||
if (!line.substring(cursor.column).match(/^\s*;/)) {
|
||||
return {
|
||||
text: ':;',
|
||||
selection: [1, 1]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
this.add("colon", "deletion", function (state, action, editor, session, range) {
|
||||
var selected = session.doc.getTextRange(range);
|
||||
if (!range.isMultiLine() && selected === ':') {
|
||||
var cursor = editor.getCursorPosition();
|
||||
var iterator = new TokenIterator(session, cursor.row, cursor.column);
|
||||
var token = iterator.getCurrentToken();
|
||||
if (token && token.value.match(/\s+/)) {
|
||||
token = iterator.stepBackward();
|
||||
}
|
||||
if (token && token.type === 'support.type') {
|
||||
var line = session.doc.getLine(range.start.row);
|
||||
var rightChar = line.substring(range.end.column, range.end.column + 1);
|
||||
if (rightChar === ';') {
|
||||
range.end.column ++;
|
||||
return range;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
this.add("semicolon", "insertion", function (state, action, editor, session, text) {
|
||||
if (text === ';') {
|
||||
var cursor = editor.getCursorPosition();
|
||||
var line = session.doc.getLine(cursor.row);
|
||||
var rightChar = line.substring(cursor.column, cursor.column + 1);
|
||||
if (rightChar === ';') {
|
||||
return {
|
||||
text: '',
|
||||
selection: [1, 1]
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
oop.inherits(CssBehaviour, CstyleBehaviour);
|
||||
|
||||
exports.CssBehaviour = CssBehaviour;
|
||||
});
|
||||
|
||||
ace.define("ace/mode/css_completions",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var propertyMap = {
|
||||
"background": {"#$0": 1},
|
||||
"background-color": {"#$0": 1, "transparent": 1, "fixed": 1},
|
||||
"background-image": {"url('/$0')": 1},
|
||||
"background-repeat": {"repeat": 1, "repeat-x": 1, "repeat-y": 1, "no-repeat": 1, "inherit": 1},
|
||||
"background-position": {"bottom":2, "center":2, "left":2, "right":2, "top":2, "inherit":2},
|
||||
"background-attachment": {"scroll": 1, "fixed": 1},
|
||||
"background-size": {"cover": 1, "contain": 1},
|
||||
"background-clip": {"border-box": 1, "padding-box": 1, "content-box": 1},
|
||||
"background-origin": {"border-box": 1, "padding-box": 1, "content-box": 1},
|
||||
"border": {"solid $0": 1, "dashed $0": 1, "dotted $0": 1, "#$0": 1},
|
||||
"border-color": {"#$0": 1},
|
||||
"border-style": {"solid":2, "dashed":2, "dotted":2, "double":2, "groove":2, "hidden":2, "inherit":2, "inset":2, "none":2, "outset":2, "ridged":2},
|
||||
"border-collapse": {"collapse": 1, "separate": 1},
|
||||
"bottom": {"px": 1, "em": 1, "%": 1},
|
||||
"clear": {"left": 1, "right": 1, "both": 1, "none": 1},
|
||||
"color": {"#$0": 1, "rgb(#$00,0,0)": 1},
|
||||
"cursor": {"default": 1, "pointer": 1, "move": 1, "text": 1, "wait": 1, "help": 1, "progress": 1, "n-resize": 1, "ne-resize": 1, "e-resize": 1, "se-resize": 1, "s-resize": 1, "sw-resize": 1, "w-resize": 1, "nw-resize": 1},
|
||||
"display": {"none": 1, "block": 1, "inline": 1, "inline-block": 1, "table-cell": 1},
|
||||
"empty-cells": {"show": 1, "hide": 1},
|
||||
"float": {"left": 1, "right": 1, "none": 1},
|
||||
"font-family": {"Arial":2,"Comic Sans MS":2,"Consolas":2,"Courier New":2,"Courier":2,"Georgia":2,"Monospace":2,"Sans-Serif":2, "Segoe UI":2,"Tahoma":2,"Times New Roman":2,"Trebuchet MS":2,"Verdana": 1},
|
||||
"font-size": {"px": 1, "em": 1, "%": 1},
|
||||
"font-weight": {"bold": 1, "normal": 1},
|
||||
"font-style": {"italic": 1, "normal": 1},
|
||||
"font-variant": {"normal": 1, "small-caps": 1},
|
||||
"height": {"px": 1, "em": 1, "%": 1},
|
||||
"left": {"px": 1, "em": 1, "%": 1},
|
||||
"letter-spacing": {"normal": 1},
|
||||
"line-height": {"normal": 1},
|
||||
"list-style-type": {"none": 1, "disc": 1, "circle": 1, "square": 1, "decimal": 1, "decimal-leading-zero": 1, "lower-roman": 1, "upper-roman": 1, "lower-greek": 1, "lower-latin": 1, "upper-latin": 1, "georgian": 1, "lower-alpha": 1, "upper-alpha": 1},
|
||||
"margin": {"px": 1, "em": 1, "%": 1},
|
||||
"margin-right": {"px": 1, "em": 1, "%": 1},
|
||||
"margin-left": {"px": 1, "em": 1, "%": 1},
|
||||
"margin-top": {"px": 1, "em": 1, "%": 1},
|
||||
"margin-bottom": {"px": 1, "em": 1, "%": 1},
|
||||
"max-height": {"px": 1, "em": 1, "%": 1},
|
||||
"max-width": {"px": 1, "em": 1, "%": 1},
|
||||
"min-height": {"px": 1, "em": 1, "%": 1},
|
||||
"min-width": {"px": 1, "em": 1, "%": 1},
|
||||
"overflow": {"hidden": 1, "visible": 1, "auto": 1, "scroll": 1},
|
||||
"overflow-x": {"hidden": 1, "visible": 1, "auto": 1, "scroll": 1},
|
||||
"overflow-y": {"hidden": 1, "visible": 1, "auto": 1, "scroll": 1},
|
||||
"padding": {"px": 1, "em": 1, "%": 1},
|
||||
"padding-top": {"px": 1, "em": 1, "%": 1},
|
||||
"padding-right": {"px": 1, "em": 1, "%": 1},
|
||||
"padding-bottom": {"px": 1, "em": 1, "%": 1},
|
||||
"padding-left": {"px": 1, "em": 1, "%": 1},
|
||||
"page-break-after": {"auto": 1, "always": 1, "avoid": 1, "left": 1, "right": 1},
|
||||
"page-break-before": {"auto": 1, "always": 1, "avoid": 1, "left": 1, "right": 1},
|
||||
"position": {"absolute": 1, "relative": 1, "fixed": 1, "static": 1},
|
||||
"right": {"px": 1, "em": 1, "%": 1},
|
||||
"table-layout": {"fixed": 1, "auto": 1},
|
||||
"text-decoration": {"none": 1, "underline": 1, "line-through": 1, "blink": 1},
|
||||
"text-align": {"left": 1, "right": 1, "center": 1, "justify": 1},
|
||||
"text-transform": {"capitalize": 1, "uppercase": 1, "lowercase": 1, "none": 1},
|
||||
"top": {"px": 1, "em": 1, "%": 1},
|
||||
"vertical-align": {"top": 1, "bottom": 1},
|
||||
"visibility": {"hidden": 1, "visible": 1},
|
||||
"white-space": {"nowrap": 1, "normal": 1, "pre": 1, "pre-line": 1, "pre-wrap": 1},
|
||||
"width": {"px": 1, "em": 1, "%": 1},
|
||||
"word-spacing": {"normal": 1},
|
||||
"filter": {"alpha(opacity=$0100)": 1},
|
||||
|
||||
"text-shadow": {"$02px 2px 2px #777": 1},
|
||||
"text-overflow": {"ellipsis-word": 1, "clip": 1, "ellipsis": 1},
|
||||
"-moz-border-radius": 1,
|
||||
"-moz-border-radius-topright": 1,
|
||||
"-moz-border-radius-bottomright": 1,
|
||||
"-moz-border-radius-topleft": 1,
|
||||
"-moz-border-radius-bottomleft": 1,
|
||||
"-webkit-border-radius": 1,
|
||||
"-webkit-border-top-right-radius": 1,
|
||||
"-webkit-border-top-left-radius": 1,
|
||||
"-webkit-border-bottom-right-radius": 1,
|
||||
"-webkit-border-bottom-left-radius": 1,
|
||||
"-moz-box-shadow": 1,
|
||||
"-webkit-box-shadow": 1,
|
||||
"transform": {"rotate($00deg)": 1, "skew($00deg)": 1},
|
||||
"-moz-transform": {"rotate($00deg)": 1, "skew($00deg)": 1},
|
||||
"-webkit-transform": {"rotate($00deg)": 1, "skew($00deg)": 1 }
|
||||
};
|
||||
|
||||
var CssCompletions = function() {
|
||||
|
||||
};
|
||||
|
||||
(function() {
|
||||
|
||||
this.completionsDefined = false;
|
||||
|
||||
this.defineCompletions = function() {
|
||||
if (document) {
|
||||
var style = document.createElement('c').style;
|
||||
|
||||
for (var i in style) {
|
||||
if (typeof style[i] !== 'string')
|
||||
continue;
|
||||
|
||||
var name = i.replace(/[A-Z]/g, function(x) {
|
||||
return '-' + x.toLowerCase();
|
||||
});
|
||||
|
||||
if (!propertyMap.hasOwnProperty(name))
|
||||
propertyMap[name] = 1;
|
||||
}
|
||||
}
|
||||
|
||||
this.completionsDefined = true;
|
||||
}
|
||||
|
||||
this.getCompletions = function(state, session, pos, prefix) {
|
||||
if (!this.completionsDefined) {
|
||||
this.defineCompletions();
|
||||
}
|
||||
|
||||
var token = session.getTokenAt(pos.row, pos.column);
|
||||
|
||||
if (!token)
|
||||
return [];
|
||||
if (state==='ruleset'){
|
||||
var line = session.getLine(pos.row).substr(0, pos.column);
|
||||
if (/:[^;]+$/.test(line)) {
|
||||
/([\w\-]+):[^:]*$/.test(line);
|
||||
|
||||
return this.getPropertyValueCompletions(state, session, pos, prefix);
|
||||
} else {
|
||||
return this.getPropertyCompletions(state, session, pos, prefix);
|
||||
}
|
||||
}
|
||||
|
||||
return [];
|
||||
};
|
||||
|
||||
this.getPropertyCompletions = function(state, session, pos, prefix) {
|
||||
var properties = Object.keys(propertyMap);
|
||||
return properties.map(function(property){
|
||||
return {
|
||||
caption: property,
|
||||
snippet: property + ': $0',
|
||||
meta: "property",
|
||||
score: Number.MAX_VALUE
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
this.getPropertyValueCompletions = function(state, session, pos, prefix) {
|
||||
var line = session.getLine(pos.row).substr(0, pos.column);
|
||||
var property = (/([\w\-]+):[^:]*$/.exec(line) || {})[1];
|
||||
|
||||
if (!property)
|
||||
return [];
|
||||
var values = [];
|
||||
if (property in propertyMap && typeof propertyMap[property] === "object") {
|
||||
values = Object.keys(propertyMap[property]);
|
||||
}
|
||||
return values.map(function(value){
|
||||
return {
|
||||
caption: value,
|
||||
snippet: value,
|
||||
meta: "property value",
|
||||
score: Number.MAX_VALUE
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
}).call(CssCompletions.prototype);
|
||||
|
||||
exports.CssCompletions = CssCompletions;
|
||||
});
|
||||
|
||||
ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../../lib/oop");
|
||||
var Range = require("../../range").Range;
|
||||
var BaseFoldMode = require("./fold_mode").FoldMode;
|
||||
|
||||
var FoldMode = exports.FoldMode = function(commentRegex) {
|
||||
if (commentRegex) {
|
||||
this.foldingStartMarker = new RegExp(
|
||||
this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start)
|
||||
);
|
||||
this.foldingStopMarker = new RegExp(
|
||||
this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end)
|
||||
);
|
||||
}
|
||||
};
|
||||
oop.inherits(FoldMode, BaseFoldMode);
|
||||
|
||||
(function() {
|
||||
|
||||
this.foldingStartMarker = /(\{|\[)[^\}\]]*$|^\s*(\/\*)/;
|
||||
this.foldingStopMarker = /^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;
|
||||
this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/;
|
||||
this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
|
||||
this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
|
||||
this._getFoldWidgetBase = this.getFoldWidget;
|
||||
this.getFoldWidget = function(session, foldStyle, row) {
|
||||
var line = session.getLine(row);
|
||||
|
||||
if (this.singleLineBlockCommentRe.test(line)) {
|
||||
if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))
|
||||
return "";
|
||||
}
|
||||
|
||||
var fw = this._getFoldWidgetBase(session, foldStyle, row);
|
||||
|
||||
if (!fw && this.startRegionRe.test(line))
|
||||
return "start"; // lineCommentRegionStart
|
||||
|
||||
return fw;
|
||||
};
|
||||
|
||||
this.getFoldWidgetRange = function(session, foldStyle, row, forceMultiline) {
|
||||
var line = session.getLine(row);
|
||||
|
||||
if (this.startRegionRe.test(line))
|
||||
return this.getCommentRegionBlock(session, line, row);
|
||||
|
||||
var match = line.match(this.foldingStartMarker);
|
||||
if (match) {
|
||||
var i = match.index;
|
||||
|
||||
if (match[1])
|
||||
return this.openingBracketBlock(session, match[1], row, i);
|
||||
|
||||
var range = session.getCommentFoldRange(row, i + match[0].length, 1);
|
||||
|
||||
if (range && !range.isMultiLine()) {
|
||||
if (forceMultiline) {
|
||||
range = this.getSectionRange(session, row);
|
||||
} else if (foldStyle != "all")
|
||||
range = null;
|
||||
}
|
||||
|
||||
return range;
|
||||
}
|
||||
|
||||
if (foldStyle === "markbegin")
|
||||
return;
|
||||
|
||||
var match = line.match(this.foldingStopMarker);
|
||||
if (match) {
|
||||
var i = match.index + match[0].length;
|
||||
|
||||
if (match[1])
|
||||
return this.closingBracketBlock(session, match[1], row, i);
|
||||
|
||||
return session.getCommentFoldRange(row, i, -1);
|
||||
}
|
||||
};
|
||||
|
||||
this.getSectionRange = function(session, row) {
|
||||
var line = session.getLine(row);
|
||||
var startIndent = line.search(/\S/);
|
||||
var startRow = row;
|
||||
var startColumn = line.length;
|
||||
row = row + 1;
|
||||
var endRow = row;
|
||||
var maxRow = session.getLength();
|
||||
while (++row < maxRow) {
|
||||
line = session.getLine(row);
|
||||
var indent = line.search(/\S/);
|
||||
if (indent === -1)
|
||||
continue;
|
||||
if (startIndent > indent)
|
||||
break;
|
||||
var subRange = this.getFoldWidgetRange(session, "all", row);
|
||||
|
||||
if (subRange) {
|
||||
if (subRange.start.row <= startRow) {
|
||||
break;
|
||||
} else if (subRange.isMultiLine()) {
|
||||
row = subRange.end.row;
|
||||
} else if (startIndent == indent) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
endRow = row;
|
||||
}
|
||||
|
||||
return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
|
||||
};
|
||||
this.getCommentRegionBlock = function(session, line, row) {
|
||||
var startColumn = line.search(/\s*$/);
|
||||
var maxRow = session.getLength();
|
||||
var startRow = row;
|
||||
|
||||
var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
|
||||
var depth = 1;
|
||||
while (++row < maxRow) {
|
||||
line = session.getLine(row);
|
||||
var m = re.exec(line);
|
||||
if (!m) continue;
|
||||
if (m[1]) depth--;
|
||||
else depth++;
|
||||
|
||||
if (!depth) break;
|
||||
}
|
||||
|
||||
var endRow = row;
|
||||
if (endRow > startRow) {
|
||||
return new Range(startRow, startColumn, endRow, line.length);
|
||||
}
|
||||
};
|
||||
|
||||
}).call(FoldMode.prototype);
|
||||
|
||||
});
|
||||
|
||||
ace.define("ace/mode/less",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/less_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/css","ace/mode/css_completions","ace/mode/folding/cstyle"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../lib/oop");
|
||||
var TextMode = require("./text").Mode;
|
||||
var LessHighlightRules = require("./less_highlight_rules").LessHighlightRules;
|
||||
var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
|
||||
var CssBehaviour = require("./behaviour/css").CssBehaviour;
|
||||
var CssCompletions = require("./css_completions").CssCompletions;
|
||||
|
||||
var CStyleFoldMode = require("./folding/cstyle").FoldMode;
|
||||
|
||||
var Mode = function() {
|
||||
this.HighlightRules = LessHighlightRules;
|
||||
this.$outdent = new MatchingBraceOutdent();
|
||||
this.$behaviour = new CssBehaviour();
|
||||
this.$completer = new CssCompletions();
|
||||
this.foldingRules = new CStyleFoldMode();
|
||||
};
|
||||
oop.inherits(Mode, TextMode);
|
||||
|
||||
(function() {
|
||||
|
||||
this.lineCommentStart = "//";
|
||||
this.blockComment = {start: "/*", end: "*/"};
|
||||
|
||||
this.getNextLineIndent = function(state, line, tab) {
|
||||
var indent = this.$getIndent(line);
|
||||
var tokens = this.getTokenizer().getLineTokens(line, state).tokens;
|
||||
if (tokens.length && tokens[tokens.length-1].type == "comment") {
|
||||
return indent;
|
||||
}
|
||||
|
||||
var match = line.match(/^.*\{\s*$/);
|
||||
if (match) {
|
||||
indent += tab;
|
||||
}
|
||||
|
||||
return indent;
|
||||
};
|
||||
|
||||
this.checkOutdent = function(state, line, input) {
|
||||
return this.$outdent.checkOutdent(line, input);
|
||||
};
|
||||
|
||||
this.autoOutdent = function(state, doc, row) {
|
||||
this.$outdent.autoOutdent(doc, row);
|
||||
};
|
||||
|
||||
this.getCompletions = function(state, session, pos, prefix) {
|
||||
return this.$completer.getCompletions("ruleset", session, pos, prefix);
|
||||
};
|
||||
|
||||
this.$id = "ace/mode/less";
|
||||
}).call(Mode.prototype);
|
||||
|
||||
exports.Mode = Mode;
|
||||
|
||||
});
|
||||
2812
modules/backend/assets/vendor/ace/mode-markdown.js
vendored
Executable file
2812
modules/backend/assets/vendor/ace/mode-markdown.js
vendored
Executable file
File diff suppressed because it is too large
Load Diff
13328
modules/backend/assets/vendor/ace/mode-php.js
vendored
Executable file
13328
modules/backend/assets/vendor/ace/mode-php.js
vendored
Executable file
File diff suppressed because it is too large
Load Diff
25
modules/backend/assets/vendor/ace/mode-plain_text.js
vendored
Executable file
25
modules/backend/assets/vendor/ace/mode-plain_text.js
vendored
Executable file
@@ -0,0 +1,25 @@
|
||||
ace.define("ace/mode/plain_text",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/text_highlight_rules","ace/mode/behaviour"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../lib/oop");
|
||||
var TextMode = require("./text").Mode;
|
||||
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
||||
var Behaviour = require("./behaviour").Behaviour;
|
||||
|
||||
var Mode = function() {
|
||||
this.HighlightRules = TextHighlightRules;
|
||||
this.$behaviour = new Behaviour();
|
||||
};
|
||||
|
||||
oop.inherits(Mode, TextMode);
|
||||
|
||||
(function() {
|
||||
this.type = "text";
|
||||
this.getNextLineIndent = function(state, line, tab) {
|
||||
return '';
|
||||
};
|
||||
this.$id = "ace/mode/plain_text";
|
||||
}).call(Mode.prototype);
|
||||
|
||||
exports.Mode = Mode;
|
||||
});
|
||||
412
modules/backend/assets/vendor/ace/mode-sass.js
vendored
Executable file
412
modules/backend/assets/vendor/ace/mode-sass.js
vendored
Executable file
@@ -0,0 +1,412 @@
|
||||
ace.define("ace/mode/scss_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../lib/oop");
|
||||
var lang = require("../lib/lang");
|
||||
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
||||
|
||||
var ScssHighlightRules = function() {
|
||||
|
||||
var properties = lang.arrayToMap( (function () {
|
||||
|
||||
var browserPrefix = ("-webkit-|-moz-|-o-|-ms-|-svg-|-pie-|-khtml-").split("|");
|
||||
|
||||
var prefixProperties = ("appearance|background-clip|background-inline-policy|background-origin|" +
|
||||
"background-size|binding|border-bottom-colors|border-left-colors|" +
|
||||
"border-right-colors|border-top-colors|border-end|border-end-color|" +
|
||||
"border-end-style|border-end-width|border-image|border-start|" +
|
||||
"border-start-color|border-start-style|border-start-width|box-align|" +
|
||||
"box-direction|box-flex|box-flexgroup|box-ordinal-group|box-orient|" +
|
||||
"box-pack|box-sizing|column-count|column-gap|column-width|column-rule|" +
|
||||
"column-rule-width|column-rule-style|column-rule-color|float-edge|" +
|
||||
"font-feature-settings|font-language-override|force-broken-image-icon|" +
|
||||
"image-region|margin-end|margin-start|opacity|outline|outline-color|" +
|
||||
"outline-offset|outline-radius|outline-radius-bottomleft|" +
|
||||
"outline-radius-bottomright|outline-radius-topleft|outline-radius-topright|" +
|
||||
"outline-style|outline-width|padding-end|padding-start|stack-sizing|" +
|
||||
"tab-size|text-blink|text-decoration-color|text-decoration-line|" +
|
||||
"text-decoration-style|transform|transform-origin|transition|" +
|
||||
"transition-delay|transition-duration|transition-property|" +
|
||||
"transition-timing-function|user-focus|user-input|user-modify|user-select|" +
|
||||
"window-shadow|border-radius").split("|");
|
||||
|
||||
var properties = ("azimuth|background-attachment|background-color|background-image|" +
|
||||
"background-position|background-repeat|background|border-bottom-color|" +
|
||||
"border-bottom-style|border-bottom-width|border-bottom|border-collapse|" +
|
||||
"border-color|border-left-color|border-left-style|border-left-width|" +
|
||||
"border-left|border-right-color|border-right-style|border-right-width|" +
|
||||
"border-right|border-spacing|border-style|border-top-color|" +
|
||||
"border-top-style|border-top-width|border-top|border-width|border|bottom|" +
|
||||
"box-shadow|box-sizing|caption-side|clear|clip|color|content|counter-increment|" +
|
||||
"counter-reset|cue-after|cue-before|cue|cursor|direction|display|" +
|
||||
"elevation|empty-cells|float|font-family|font-size-adjust|font-size|" +
|
||||
"font-stretch|font-style|font-variant|font-weight|font|height|left|" +
|
||||
"letter-spacing|line-height|list-style-image|list-style-position|" +
|
||||
"list-style-type|list-style|margin-bottom|margin-left|margin-right|" +
|
||||
"margin-top|marker-offset|margin|marks|max-height|max-width|min-height|" +
|
||||
"min-width|opacity|orphans|outline-color|" +
|
||||
"outline-style|outline-width|outline|overflow|overflow-x|overflow-y|padding-bottom|" +
|
||||
"padding-left|padding-right|padding-top|padding|page-break-after|" +
|
||||
"page-break-before|page-break-inside|page|pause-after|pause-before|" +
|
||||
"pause|pitch-range|pitch|play-during|position|quotes|richness|right|" +
|
||||
"size|speak-header|speak-numeral|speak-punctuation|speech-rate|speak|" +
|
||||
"stress|table-layout|text-align|text-decoration|text-indent|" +
|
||||
"text-shadow|text-transform|top|unicode-bidi|vertical-align|" +
|
||||
"visibility|voice-family|volume|white-space|widows|width|word-spacing|" +
|
||||
"z-index").split("|");
|
||||
var ret = [];
|
||||
for (var i=0, ln=browserPrefix.length; i<ln; i++) {
|
||||
Array.prototype.push.apply(
|
||||
ret,
|
||||
(( browserPrefix[i] + prefixProperties.join("|" + browserPrefix[i]) ).split("|"))
|
||||
);
|
||||
}
|
||||
Array.prototype.push.apply(ret, prefixProperties);
|
||||
Array.prototype.push.apply(ret, properties);
|
||||
|
||||
return ret;
|
||||
|
||||
})() );
|
||||
|
||||
|
||||
|
||||
var functions = lang.arrayToMap(
|
||||
("hsl|hsla|rgb|rgba|url|attr|counter|counters|abs|adjust_color|adjust_hue|" +
|
||||
"alpha|join|blue|ceil|change_color|comparable|complement|darken|desaturate|" +
|
||||
"floor|grayscale|green|hue|if|invert|join|length|lighten|lightness|mix|" +
|
||||
"nth|opacify|opacity|percentage|quote|red|round|saturate|saturation|" +
|
||||
"scale_color|transparentize|type_of|unit|unitless|unqoute").split("|")
|
||||
);
|
||||
|
||||
var constants = lang.arrayToMap(
|
||||
("absolute|all-scroll|always|armenian|auto|baseline|below|bidi-override|" +
|
||||
"block|bold|bolder|border-box|both|bottom|break-all|break-word|capitalize|center|" +
|
||||
"char|circle|cjk-ideographic|col-resize|collapse|content-box|crosshair|dashed|" +
|
||||
"decimal-leading-zero|decimal|default|disabled|disc|" +
|
||||
"distribute-all-lines|distribute-letter|distribute-space|" +
|
||||
"distribute|dotted|double|e-resize|ellipsis|fixed|georgian|groove|" +
|
||||
"hand|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|" +
|
||||
"ideograph-alpha|ideograph-numeric|ideograph-parenthesis|" +
|
||||
"ideograph-space|inactive|inherit|inline-block|inline|inset|inside|" +
|
||||
"inter-ideograph|inter-word|italic|justify|katakana-iroha|katakana|" +
|
||||
"keep-all|left|lighter|line-edge|line-through|line|list-item|loose|" +
|
||||
"lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|" +
|
||||
"medium|middle|move|n-resize|ne-resize|newspaper|no-drop|no-repeat|" +
|
||||
"nw-resize|none|normal|not-allowed|nowrap|oblique|outset|outside|" +
|
||||
"overline|pointer|progress|relative|repeat-x|repeat-y|repeat|right|" +
|
||||
"ridge|row-resize|rtl|s-resize|scroll|se-resize|separate|small-caps|" +
|
||||
"solid|square|static|strict|super|sw-resize|table-footer-group|" +
|
||||
"table-header-group|tb-rl|text-bottom|text-top|text|thick|thin|top|" +
|
||||
"transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|" +
|
||||
"vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|" +
|
||||
"zero").split("|")
|
||||
);
|
||||
|
||||
var colors = lang.arrayToMap(
|
||||
("aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|" +
|
||||
"purple|red|silver|teal|white|yellow").split("|")
|
||||
);
|
||||
|
||||
var keywords = lang.arrayToMap(
|
||||
("@mixin|@extend|@include|@import|@media|@debug|@warn|@if|@for|@each|@while|@else|@font-face|@-webkit-keyframes|if|and|!default|module|def|end|declare").split("|")
|
||||
)
|
||||
|
||||
var tags = lang.arrayToMap(
|
||||
("a|abbr|acronym|address|applet|area|article|aside|audio|b|base|basefont|bdo|" +
|
||||
"big|blockquote|body|br|button|canvas|caption|center|cite|code|col|colgroup|" +
|
||||
"command|datalist|dd|del|details|dfn|dir|div|dl|dt|em|embed|fieldset|" +
|
||||
"figcaption|figure|font|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|" +
|
||||
"header|hgroup|hr|html|i|iframe|img|input|ins|keygen|kbd|label|legend|li|" +
|
||||
"link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|" +
|
||||
"option|output|p|param|pre|progress|q|rp|rt|ruby|s|samp|script|section|select|" +
|
||||
"small|source|span|strike|strong|style|sub|summary|sup|table|tbody|td|" +
|
||||
"textarea|tfoot|th|thead|time|title|tr|tt|u|ul|var|video|wbr|xmp").split("|")
|
||||
);
|
||||
|
||||
var numRe = "\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))";
|
||||
|
||||
this.$rules = {
|
||||
"start" : [
|
||||
{
|
||||
token : "comment",
|
||||
regex : "\\/\\/.*$"
|
||||
},
|
||||
{
|
||||
token : "comment", // multi line comment
|
||||
regex : "\\/\\*",
|
||||
next : "comment"
|
||||
}, {
|
||||
token : "string", // single line
|
||||
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
|
||||
}, {
|
||||
token : "string", // multi line string start
|
||||
regex : '["].*\\\\$',
|
||||
next : "qqstring"
|
||||
}, {
|
||||
token : "string", // single line
|
||||
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
|
||||
}, {
|
||||
token : "string", // multi line string start
|
||||
regex : "['].*\\\\$",
|
||||
next : "qstring"
|
||||
}, {
|
||||
token : "constant.numeric",
|
||||
regex : numRe + "(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)"
|
||||
}, {
|
||||
token : "constant.numeric", // hex6 color
|
||||
regex : "#[a-f0-9]{6}"
|
||||
}, {
|
||||
token : "constant.numeric", // hex3 color
|
||||
regex : "#[a-f0-9]{3}"
|
||||
}, {
|
||||
token : "constant.numeric",
|
||||
regex : numRe
|
||||
}, {
|
||||
token : ["support.function", "string", "support.function"],
|
||||
regex : "(url\\()(.*)(\\))"
|
||||
}, {
|
||||
token : function(value) {
|
||||
if (properties.hasOwnProperty(value.toLowerCase()))
|
||||
return "support.type";
|
||||
if (keywords.hasOwnProperty(value))
|
||||
return "keyword";
|
||||
else if (constants.hasOwnProperty(value))
|
||||
return "constant.language";
|
||||
else if (functions.hasOwnProperty(value))
|
||||
return "support.function";
|
||||
else if (colors.hasOwnProperty(value.toLowerCase()))
|
||||
return "support.constant.color";
|
||||
else if (tags.hasOwnProperty(value.toLowerCase()))
|
||||
return "variable.language";
|
||||
else
|
||||
return "text";
|
||||
},
|
||||
regex : "\\-?[@a-z_][@a-z0-9_\\-]*"
|
||||
}, {
|
||||
token : "variable",
|
||||
regex : "[a-z_\\-$][a-z0-9_\\-$]*\\b"
|
||||
}, {
|
||||
token: "variable.language",
|
||||
regex: "#[a-z0-9-_]+"
|
||||
}, {
|
||||
token: "variable.language",
|
||||
regex: "\\.[a-z0-9-_]+"
|
||||
}, {
|
||||
token: "variable.language",
|
||||
regex: ":[a-z0-9-_]+"
|
||||
}, {
|
||||
token: "constant",
|
||||
regex: "[a-z0-9-_]+"
|
||||
}, {
|
||||
token : "keyword.operator",
|
||||
regex : "<|>|<=|>=|==|!=|-|%|#|\\+|\\$|\\+|\\*"
|
||||
}, {
|
||||
token : "paren.lparen",
|
||||
regex : "[[({]"
|
||||
}, {
|
||||
token : "paren.rparen",
|
||||
regex : "[\\])}]"
|
||||
}, {
|
||||
token : "text",
|
||||
regex : "\\s+"
|
||||
}, {
|
||||
caseInsensitive: true
|
||||
}
|
||||
],
|
||||
"comment" : [
|
||||
{
|
||||
token : "comment", // closing comment
|
||||
regex : ".*?\\*\\/",
|
||||
next : "start"
|
||||
}, {
|
||||
token : "comment", // comment spanning whole line
|
||||
regex : ".+"
|
||||
}
|
||||
],
|
||||
"qqstring" : [
|
||||
{
|
||||
token : "string",
|
||||
regex : '(?:(?:\\\\.)|(?:[^"\\\\]))*?"',
|
||||
next : "start"
|
||||
}, {
|
||||
token : "string",
|
||||
regex : '.+'
|
||||
}
|
||||
],
|
||||
"qstring" : [
|
||||
{
|
||||
token : "string",
|
||||
regex : "(?:(?:\\\\.)|(?:[^'\\\\]))*?'",
|
||||
next : "start"
|
||||
}, {
|
||||
token : "string",
|
||||
regex : '.+'
|
||||
}
|
||||
]
|
||||
};
|
||||
};
|
||||
|
||||
oop.inherits(ScssHighlightRules, TextHighlightRules);
|
||||
|
||||
exports.ScssHighlightRules = ScssHighlightRules;
|
||||
|
||||
});
|
||||
|
||||
ace.define("ace/mode/sass_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/scss_highlight_rules"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../lib/oop");
|
||||
var lang = require("../lib/lang");
|
||||
var ScssHighlightRules = require("./scss_highlight_rules").ScssHighlightRules;
|
||||
|
||||
var SassHighlightRules = function() {
|
||||
ScssHighlightRules.call(this);
|
||||
var start = this.$rules.start;
|
||||
if (start[1].token == "comment") {
|
||||
start.splice(1, 1, {
|
||||
onMatch: function(value, currentState, stack) {
|
||||
stack.unshift(this.next, -1, value.length - 2, currentState);
|
||||
return "comment";
|
||||
},
|
||||
regex: /^\s*\/\*/,
|
||||
next: "comment"
|
||||
}, {
|
||||
token: "error.invalid",
|
||||
regex: "/\\*|[{;}]"
|
||||
}, {
|
||||
token: "support.type",
|
||||
regex: /^\s*:[\w\-]+\s/
|
||||
});
|
||||
|
||||
this.$rules.comment = [
|
||||
{regex: /^\s*/, onMatch: function(value, currentState, stack) {
|
||||
if (stack[1] === -1)
|
||||
stack[1] = Math.max(stack[2], value.length - 1);
|
||||
if (value.length <= stack[1]) {stack.shift();stack.shift();stack.shift();
|
||||
this.next = stack.shift();
|
||||
return "text";
|
||||
} else {
|
||||
this.next = "";
|
||||
return "comment";
|
||||
}
|
||||
}, next: "start"},
|
||||
{defaultToken: "comment"}
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
oop.inherits(SassHighlightRules, ScssHighlightRules);
|
||||
|
||||
exports.SassHighlightRules = SassHighlightRules;
|
||||
|
||||
});
|
||||
|
||||
ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../../lib/oop");
|
||||
var BaseFoldMode = require("./fold_mode").FoldMode;
|
||||
var Range = require("../../range").Range;
|
||||
|
||||
var FoldMode = exports.FoldMode = function() {};
|
||||
oop.inherits(FoldMode, BaseFoldMode);
|
||||
|
||||
(function() {
|
||||
|
||||
this.getFoldWidgetRange = function(session, foldStyle, row) {
|
||||
var range = this.indentationBlock(session, row);
|
||||
if (range)
|
||||
return range;
|
||||
|
||||
var re = /\S/;
|
||||
var line = session.getLine(row);
|
||||
var startLevel = line.search(re);
|
||||
if (startLevel == -1 || line[startLevel] != "#")
|
||||
return;
|
||||
|
||||
var startColumn = line.length;
|
||||
var maxRow = session.getLength();
|
||||
var startRow = row;
|
||||
var endRow = row;
|
||||
|
||||
while (++row < maxRow) {
|
||||
line = session.getLine(row);
|
||||
var level = line.search(re);
|
||||
|
||||
if (level == -1)
|
||||
continue;
|
||||
|
||||
if (line[level] != "#")
|
||||
break;
|
||||
|
||||
endRow = row;
|
||||
}
|
||||
|
||||
if (endRow > startRow) {
|
||||
var endColumn = session.getLine(endRow).length;
|
||||
return new Range(startRow, startColumn, endRow, endColumn);
|
||||
}
|
||||
};
|
||||
this.getFoldWidget = function(session, foldStyle, row) {
|
||||
var line = session.getLine(row);
|
||||
var indent = line.search(/\S/);
|
||||
var next = session.getLine(row + 1);
|
||||
var prev = session.getLine(row - 1);
|
||||
var prevIndent = prev.search(/\S/);
|
||||
var nextIndent = next.search(/\S/);
|
||||
|
||||
if (indent == -1) {
|
||||
session.foldWidgets[row - 1] = prevIndent!= -1 && prevIndent < nextIndent ? "start" : "";
|
||||
return "";
|
||||
}
|
||||
if (prevIndent == -1) {
|
||||
if (indent == nextIndent && line[indent] == "#" && next[indent] == "#") {
|
||||
session.foldWidgets[row - 1] = "";
|
||||
session.foldWidgets[row + 1] = "";
|
||||
return "start";
|
||||
}
|
||||
} else if (prevIndent == indent && line[indent] == "#" && prev[indent] == "#") {
|
||||
if (session.getLine(row - 2).search(/\S/) == -1) {
|
||||
session.foldWidgets[row - 1] = "start";
|
||||
session.foldWidgets[row + 1] = "";
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
if (prevIndent!= -1 && prevIndent < indent)
|
||||
session.foldWidgets[row - 1] = "start";
|
||||
else
|
||||
session.foldWidgets[row - 1] = "";
|
||||
|
||||
if (indent < nextIndent)
|
||||
return "start";
|
||||
else
|
||||
return "";
|
||||
};
|
||||
|
||||
}).call(FoldMode.prototype);
|
||||
|
||||
});
|
||||
|
||||
ace.define("ace/mode/sass",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sass_highlight_rules","ace/mode/folding/coffee"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../lib/oop");
|
||||
var TextMode = require("./text").Mode;
|
||||
var SassHighlightRules = require("./sass_highlight_rules").SassHighlightRules;
|
||||
var FoldMode = require("./folding/coffee").FoldMode;
|
||||
|
||||
var Mode = function() {
|
||||
this.HighlightRules = SassHighlightRules;
|
||||
this.foldingRules = new FoldMode();
|
||||
};
|
||||
oop.inherits(Mode, TextMode);
|
||||
|
||||
(function() {
|
||||
this.lineCommentStart = "//";
|
||||
this.$id = "ace/mode/sass";
|
||||
}).call(Mode.prototype);
|
||||
|
||||
exports.Mode = Mode;
|
||||
|
||||
});
|
||||
922
modules/backend/assets/vendor/ace/mode-scss.js
vendored
Executable file
922
modules/backend/assets/vendor/ace/mode-scss.js
vendored
Executable file
@@ -0,0 +1,922 @@
|
||||
ace.define("ace/mode/scss_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../lib/oop");
|
||||
var lang = require("../lib/lang");
|
||||
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
||||
|
||||
var ScssHighlightRules = function() {
|
||||
|
||||
var properties = lang.arrayToMap( (function () {
|
||||
|
||||
var browserPrefix = ("-webkit-|-moz-|-o-|-ms-|-svg-|-pie-|-khtml-").split("|");
|
||||
|
||||
var prefixProperties = ("appearance|background-clip|background-inline-policy|background-origin|" +
|
||||
"background-size|binding|border-bottom-colors|border-left-colors|" +
|
||||
"border-right-colors|border-top-colors|border-end|border-end-color|" +
|
||||
"border-end-style|border-end-width|border-image|border-start|" +
|
||||
"border-start-color|border-start-style|border-start-width|box-align|" +
|
||||
"box-direction|box-flex|box-flexgroup|box-ordinal-group|box-orient|" +
|
||||
"box-pack|box-sizing|column-count|column-gap|column-width|column-rule|" +
|
||||
"column-rule-width|column-rule-style|column-rule-color|float-edge|" +
|
||||
"font-feature-settings|font-language-override|force-broken-image-icon|" +
|
||||
"image-region|margin-end|margin-start|opacity|outline|outline-color|" +
|
||||
"outline-offset|outline-radius|outline-radius-bottomleft|" +
|
||||
"outline-radius-bottomright|outline-radius-topleft|outline-radius-topright|" +
|
||||
"outline-style|outline-width|padding-end|padding-start|stack-sizing|" +
|
||||
"tab-size|text-blink|text-decoration-color|text-decoration-line|" +
|
||||
"text-decoration-style|transform|transform-origin|transition|" +
|
||||
"transition-delay|transition-duration|transition-property|" +
|
||||
"transition-timing-function|user-focus|user-input|user-modify|user-select|" +
|
||||
"window-shadow|border-radius").split("|");
|
||||
|
||||
var properties = ("azimuth|background-attachment|background-color|background-image|" +
|
||||
"background-position|background-repeat|background|border-bottom-color|" +
|
||||
"border-bottom-style|border-bottom-width|border-bottom|border-collapse|" +
|
||||
"border-color|border-left-color|border-left-style|border-left-width|" +
|
||||
"border-left|border-right-color|border-right-style|border-right-width|" +
|
||||
"border-right|border-spacing|border-style|border-top-color|" +
|
||||
"border-top-style|border-top-width|border-top|border-width|border|bottom|" +
|
||||
"box-shadow|box-sizing|caption-side|clear|clip|color|content|counter-increment|" +
|
||||
"counter-reset|cue-after|cue-before|cue|cursor|direction|display|" +
|
||||
"elevation|empty-cells|float|font-family|font-size-adjust|font-size|" +
|
||||
"font-stretch|font-style|font-variant|font-weight|font|height|left|" +
|
||||
"letter-spacing|line-height|list-style-image|list-style-position|" +
|
||||
"list-style-type|list-style|margin-bottom|margin-left|margin-right|" +
|
||||
"margin-top|marker-offset|margin|marks|max-height|max-width|min-height|" +
|
||||
"min-width|opacity|orphans|outline-color|" +
|
||||
"outline-style|outline-width|outline|overflow|overflow-x|overflow-y|padding-bottom|" +
|
||||
"padding-left|padding-right|padding-top|padding|page-break-after|" +
|
||||
"page-break-before|page-break-inside|page|pause-after|pause-before|" +
|
||||
"pause|pitch-range|pitch|play-during|position|quotes|richness|right|" +
|
||||
"size|speak-header|speak-numeral|speak-punctuation|speech-rate|speak|" +
|
||||
"stress|table-layout|text-align|text-decoration|text-indent|" +
|
||||
"text-shadow|text-transform|top|unicode-bidi|vertical-align|" +
|
||||
"visibility|voice-family|volume|white-space|widows|width|word-spacing|" +
|
||||
"z-index").split("|");
|
||||
var ret = [];
|
||||
for (var i=0, ln=browserPrefix.length; i<ln; i++) {
|
||||
Array.prototype.push.apply(
|
||||
ret,
|
||||
(( browserPrefix[i] + prefixProperties.join("|" + browserPrefix[i]) ).split("|"))
|
||||
);
|
||||
}
|
||||
Array.prototype.push.apply(ret, prefixProperties);
|
||||
Array.prototype.push.apply(ret, properties);
|
||||
|
||||
return ret;
|
||||
|
||||
})() );
|
||||
|
||||
|
||||
|
||||
var functions = lang.arrayToMap(
|
||||
("hsl|hsla|rgb|rgba|url|attr|counter|counters|abs|adjust_color|adjust_hue|" +
|
||||
"alpha|join|blue|ceil|change_color|comparable|complement|darken|desaturate|" +
|
||||
"floor|grayscale|green|hue|if|invert|join|length|lighten|lightness|mix|" +
|
||||
"nth|opacify|opacity|percentage|quote|red|round|saturate|saturation|" +
|
||||
"scale_color|transparentize|type_of|unit|unitless|unqoute").split("|")
|
||||
);
|
||||
|
||||
var constants = lang.arrayToMap(
|
||||
("absolute|all-scroll|always|armenian|auto|baseline|below|bidi-override|" +
|
||||
"block|bold|bolder|border-box|both|bottom|break-all|break-word|capitalize|center|" +
|
||||
"char|circle|cjk-ideographic|col-resize|collapse|content-box|crosshair|dashed|" +
|
||||
"decimal-leading-zero|decimal|default|disabled|disc|" +
|
||||
"distribute-all-lines|distribute-letter|distribute-space|" +
|
||||
"distribute|dotted|double|e-resize|ellipsis|fixed|georgian|groove|" +
|
||||
"hand|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|" +
|
||||
"ideograph-alpha|ideograph-numeric|ideograph-parenthesis|" +
|
||||
"ideograph-space|inactive|inherit|inline-block|inline|inset|inside|" +
|
||||
"inter-ideograph|inter-word|italic|justify|katakana-iroha|katakana|" +
|
||||
"keep-all|left|lighter|line-edge|line-through|line|list-item|loose|" +
|
||||
"lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|" +
|
||||
"medium|middle|move|n-resize|ne-resize|newspaper|no-drop|no-repeat|" +
|
||||
"nw-resize|none|normal|not-allowed|nowrap|oblique|outset|outside|" +
|
||||
"overline|pointer|progress|relative|repeat-x|repeat-y|repeat|right|" +
|
||||
"ridge|row-resize|rtl|s-resize|scroll|se-resize|separate|small-caps|" +
|
||||
"solid|square|static|strict|super|sw-resize|table-footer-group|" +
|
||||
"table-header-group|tb-rl|text-bottom|text-top|text|thick|thin|top|" +
|
||||
"transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|" +
|
||||
"vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|" +
|
||||
"zero").split("|")
|
||||
);
|
||||
|
||||
var colors = lang.arrayToMap(
|
||||
("aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|" +
|
||||
"purple|red|silver|teal|white|yellow").split("|")
|
||||
);
|
||||
|
||||
var keywords = lang.arrayToMap(
|
||||
("@mixin|@extend|@include|@import|@media|@debug|@warn|@if|@for|@each|@while|@else|@font-face|@-webkit-keyframes|if|and|!default|module|def|end|declare").split("|")
|
||||
)
|
||||
|
||||
var tags = lang.arrayToMap(
|
||||
("a|abbr|acronym|address|applet|area|article|aside|audio|b|base|basefont|bdo|" +
|
||||
"big|blockquote|body|br|button|canvas|caption|center|cite|code|col|colgroup|" +
|
||||
"command|datalist|dd|del|details|dfn|dir|div|dl|dt|em|embed|fieldset|" +
|
||||
"figcaption|figure|font|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|" +
|
||||
"header|hgroup|hr|html|i|iframe|img|input|ins|keygen|kbd|label|legend|li|" +
|
||||
"link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|" +
|
||||
"option|output|p|param|pre|progress|q|rp|rt|ruby|s|samp|script|section|select|" +
|
||||
"small|source|span|strike|strong|style|sub|summary|sup|table|tbody|td|" +
|
||||
"textarea|tfoot|th|thead|time|title|tr|tt|u|ul|var|video|wbr|xmp").split("|")
|
||||
);
|
||||
|
||||
var numRe = "\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))";
|
||||
|
||||
this.$rules = {
|
||||
"start" : [
|
||||
{
|
||||
token : "comment",
|
||||
regex : "\\/\\/.*$"
|
||||
},
|
||||
{
|
||||
token : "comment", // multi line comment
|
||||
regex : "\\/\\*",
|
||||
next : "comment"
|
||||
}, {
|
||||
token : "string", // single line
|
||||
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
|
||||
}, {
|
||||
token : "string", // multi line string start
|
||||
regex : '["].*\\\\$',
|
||||
next : "qqstring"
|
||||
}, {
|
||||
token : "string", // single line
|
||||
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
|
||||
}, {
|
||||
token : "string", // multi line string start
|
||||
regex : "['].*\\\\$",
|
||||
next : "qstring"
|
||||
}, {
|
||||
token : "constant.numeric",
|
||||
regex : numRe + "(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)"
|
||||
}, {
|
||||
token : "constant.numeric", // hex6 color
|
||||
regex : "#[a-f0-9]{6}"
|
||||
}, {
|
||||
token : "constant.numeric", // hex3 color
|
||||
regex : "#[a-f0-9]{3}"
|
||||
}, {
|
||||
token : "constant.numeric",
|
||||
regex : numRe
|
||||
}, {
|
||||
token : ["support.function", "string", "support.function"],
|
||||
regex : "(url\\()(.*)(\\))"
|
||||
}, {
|
||||
token : function(value) {
|
||||
if (properties.hasOwnProperty(value.toLowerCase()))
|
||||
return "support.type";
|
||||
if (keywords.hasOwnProperty(value))
|
||||
return "keyword";
|
||||
else if (constants.hasOwnProperty(value))
|
||||
return "constant.language";
|
||||
else if (functions.hasOwnProperty(value))
|
||||
return "support.function";
|
||||
else if (colors.hasOwnProperty(value.toLowerCase()))
|
||||
return "support.constant.color";
|
||||
else if (tags.hasOwnProperty(value.toLowerCase()))
|
||||
return "variable.language";
|
||||
else
|
||||
return "text";
|
||||
},
|
||||
regex : "\\-?[@a-z_][@a-z0-9_\\-]*"
|
||||
}, {
|
||||
token : "variable",
|
||||
regex : "[a-z_\\-$][a-z0-9_\\-$]*\\b"
|
||||
}, {
|
||||
token: "variable.language",
|
||||
regex: "#[a-z0-9-_]+"
|
||||
}, {
|
||||
token: "variable.language",
|
||||
regex: "\\.[a-z0-9-_]+"
|
||||
}, {
|
||||
token: "variable.language",
|
||||
regex: ":[a-z0-9-_]+"
|
||||
}, {
|
||||
token: "constant",
|
||||
regex: "[a-z0-9-_]+"
|
||||
}, {
|
||||
token : "keyword.operator",
|
||||
regex : "<|>|<=|>=|==|!=|-|%|#|\\+|\\$|\\+|\\*"
|
||||
}, {
|
||||
token : "paren.lparen",
|
||||
regex : "[[({]"
|
||||
}, {
|
||||
token : "paren.rparen",
|
||||
regex : "[\\])}]"
|
||||
}, {
|
||||
token : "text",
|
||||
regex : "\\s+"
|
||||
}, {
|
||||
caseInsensitive: true
|
||||
}
|
||||
],
|
||||
"comment" : [
|
||||
{
|
||||
token : "comment", // closing comment
|
||||
regex : ".*?\\*\\/",
|
||||
next : "start"
|
||||
}, {
|
||||
token : "comment", // comment spanning whole line
|
||||
regex : ".+"
|
||||
}
|
||||
],
|
||||
"qqstring" : [
|
||||
{
|
||||
token : "string",
|
||||
regex : '(?:(?:\\\\.)|(?:[^"\\\\]))*?"',
|
||||
next : "start"
|
||||
}, {
|
||||
token : "string",
|
||||
regex : '.+'
|
||||
}
|
||||
],
|
||||
"qstring" : [
|
||||
{
|
||||
token : "string",
|
||||
regex : "(?:(?:\\\\.)|(?:[^'\\\\]))*?'",
|
||||
next : "start"
|
||||
}, {
|
||||
token : "string",
|
||||
regex : '.+'
|
||||
}
|
||||
]
|
||||
};
|
||||
};
|
||||
|
||||
oop.inherits(ScssHighlightRules, TextHighlightRules);
|
||||
|
||||
exports.ScssHighlightRules = ScssHighlightRules;
|
||||
|
||||
});
|
||||
|
||||
ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var Range = require("../range").Range;
|
||||
|
||||
var MatchingBraceOutdent = function() {};
|
||||
|
||||
(function() {
|
||||
|
||||
this.checkOutdent = function(line, input) {
|
||||
if (! /^\s+$/.test(line))
|
||||
return false;
|
||||
|
||||
return /^\s*\}/.test(input);
|
||||
};
|
||||
|
||||
this.autoOutdent = function(doc, row) {
|
||||
var line = doc.getLine(row);
|
||||
var match = line.match(/^(\s*\})/);
|
||||
|
||||
if (!match) return 0;
|
||||
|
||||
var column = match[1].length;
|
||||
var openBracePos = doc.findMatchingBracket({row: row, column: column});
|
||||
|
||||
if (!openBracePos || openBracePos.row == row) return 0;
|
||||
|
||||
var indent = this.$getIndent(doc.getLine(openBracePos.row));
|
||||
doc.replace(new Range(row, 0, row, column-1), indent);
|
||||
};
|
||||
|
||||
this.$getIndent = function(line) {
|
||||
return line.match(/^\s*/)[0];
|
||||
};
|
||||
|
||||
}).call(MatchingBraceOutdent.prototype);
|
||||
|
||||
exports.MatchingBraceOutdent = MatchingBraceOutdent;
|
||||
});
|
||||
|
||||
ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../../lib/oop");
|
||||
var Behaviour = require("../behaviour").Behaviour;
|
||||
var TokenIterator = require("../../token_iterator").TokenIterator;
|
||||
var lang = require("../../lib/lang");
|
||||
|
||||
var SAFE_INSERT_IN_TOKENS =
|
||||
["text", "paren.rparen", "punctuation.operator"];
|
||||
var SAFE_INSERT_BEFORE_TOKENS =
|
||||
["text", "paren.rparen", "punctuation.operator", "comment"];
|
||||
|
||||
var context;
|
||||
var contextCache = {};
|
||||
var initContext = function(editor) {
|
||||
var id = -1;
|
||||
if (editor.multiSelect) {
|
||||
id = editor.selection.index;
|
||||
if (contextCache.rangeCount != editor.multiSelect.rangeCount)
|
||||
contextCache = {rangeCount: editor.multiSelect.rangeCount};
|
||||
}
|
||||
if (contextCache[id])
|
||||
return context = contextCache[id];
|
||||
context = contextCache[id] = {
|
||||
autoInsertedBrackets: 0,
|
||||
autoInsertedRow: -1,
|
||||
autoInsertedLineEnd: "",
|
||||
maybeInsertedBrackets: 0,
|
||||
maybeInsertedRow: -1,
|
||||
maybeInsertedLineStart: "",
|
||||
maybeInsertedLineEnd: ""
|
||||
};
|
||||
};
|
||||
|
||||
var getWrapped = function(selection, selected, opening, closing) {
|
||||
var rowDiff = selection.end.row - selection.start.row;
|
||||
return {
|
||||
text: opening + selected + closing,
|
||||
selection: [
|
||||
0,
|
||||
selection.start.column + 1,
|
||||
rowDiff,
|
||||
selection.end.column + (rowDiff ? 0 : 1)
|
||||
]
|
||||
};
|
||||
};
|
||||
|
||||
var CstyleBehaviour = function() {
|
||||
this.add("braces", "insertion", function(state, action, editor, session, text) {
|
||||
var cursor = editor.getCursorPosition();
|
||||
var line = session.doc.getLine(cursor.row);
|
||||
if (text == '{') {
|
||||
initContext(editor);
|
||||
var selection = editor.getSelectionRange();
|
||||
var selected = session.doc.getTextRange(selection);
|
||||
if (selected !== "" && selected !== "{" && editor.getWrapBehavioursEnabled()) {
|
||||
return getWrapped(selection, selected, '{', '}');
|
||||
} else if (CstyleBehaviour.isSaneInsertion(editor, session)) {
|
||||
if (/[\]\}\)]/.test(line[cursor.column]) || editor.inMultiSelectMode) {
|
||||
CstyleBehaviour.recordAutoInsert(editor, session, "}");
|
||||
return {
|
||||
text: '{}',
|
||||
selection: [1, 1]
|
||||
};
|
||||
} else {
|
||||
CstyleBehaviour.recordMaybeInsert(editor, session, "{");
|
||||
return {
|
||||
text: '{',
|
||||
selection: [1, 1]
|
||||
};
|
||||
}
|
||||
}
|
||||
} else if (text == '}') {
|
||||
initContext(editor);
|
||||
var rightChar = line.substring(cursor.column, cursor.column + 1);
|
||||
if (rightChar == '}') {
|
||||
var matching = session.$findOpeningBracket('}', {column: cursor.column + 1, row: cursor.row});
|
||||
if (matching !== null && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) {
|
||||
CstyleBehaviour.popAutoInsertedClosing();
|
||||
return {
|
||||
text: '',
|
||||
selection: [1, 1]
|
||||
};
|
||||
}
|
||||
}
|
||||
} else if (text == "\n" || text == "\r\n") {
|
||||
initContext(editor);
|
||||
var closing = "";
|
||||
if (CstyleBehaviour.isMaybeInsertedClosing(cursor, line)) {
|
||||
closing = lang.stringRepeat("}", context.maybeInsertedBrackets);
|
||||
CstyleBehaviour.clearMaybeInsertedClosing();
|
||||
}
|
||||
var rightChar = line.substring(cursor.column, cursor.column + 1);
|
||||
if (rightChar === '}') {
|
||||
var openBracePos = session.findMatchingBracket({row: cursor.row, column: cursor.column+1}, '}');
|
||||
if (!openBracePos)
|
||||
return null;
|
||||
var next_indent = this.$getIndent(session.getLine(openBracePos.row));
|
||||
} else if (closing) {
|
||||
var next_indent = this.$getIndent(line);
|
||||
} else {
|
||||
CstyleBehaviour.clearMaybeInsertedClosing();
|
||||
return;
|
||||
}
|
||||
var indent = next_indent + session.getTabString();
|
||||
|
||||
return {
|
||||
text: '\n' + indent + '\n' + next_indent + closing,
|
||||
selection: [1, indent.length, 1, indent.length]
|
||||
};
|
||||
} else {
|
||||
CstyleBehaviour.clearMaybeInsertedClosing();
|
||||
}
|
||||
});
|
||||
|
||||
this.add("braces", "deletion", function(state, action, editor, session, range) {
|
||||
var selected = session.doc.getTextRange(range);
|
||||
if (!range.isMultiLine() && selected == '{') {
|
||||
initContext(editor);
|
||||
var line = session.doc.getLine(range.start.row);
|
||||
var rightChar = line.substring(range.end.column, range.end.column + 1);
|
||||
if (rightChar == '}') {
|
||||
range.end.column++;
|
||||
return range;
|
||||
} else {
|
||||
context.maybeInsertedBrackets--;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
this.add("parens", "insertion", function(state, action, editor, session, text) {
|
||||
if (text == '(') {
|
||||
initContext(editor);
|
||||
var selection = editor.getSelectionRange();
|
||||
var selected = session.doc.getTextRange(selection);
|
||||
if (selected !== "" && editor.getWrapBehavioursEnabled()) {
|
||||
return getWrapped(selection, selected, '(', ')');
|
||||
} else if (CstyleBehaviour.isSaneInsertion(editor, session)) {
|
||||
CstyleBehaviour.recordAutoInsert(editor, session, ")");
|
||||
return {
|
||||
text: '()',
|
||||
selection: [1, 1]
|
||||
};
|
||||
}
|
||||
} else if (text == ')') {
|
||||
initContext(editor);
|
||||
var cursor = editor.getCursorPosition();
|
||||
var line = session.doc.getLine(cursor.row);
|
||||
var rightChar = line.substring(cursor.column, cursor.column + 1);
|
||||
if (rightChar == ')') {
|
||||
var matching = session.$findOpeningBracket(')', {column: cursor.column + 1, row: cursor.row});
|
||||
if (matching !== null && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) {
|
||||
CstyleBehaviour.popAutoInsertedClosing();
|
||||
return {
|
||||
text: '',
|
||||
selection: [1, 1]
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
this.add("parens", "deletion", function(state, action, editor, session, range) {
|
||||
var selected = session.doc.getTextRange(range);
|
||||
if (!range.isMultiLine() && selected == '(') {
|
||||
initContext(editor);
|
||||
var line = session.doc.getLine(range.start.row);
|
||||
var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
|
||||
if (rightChar == ')') {
|
||||
range.end.column++;
|
||||
return range;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
this.add("brackets", "insertion", function(state, action, editor, session, text) {
|
||||
if (text == '[') {
|
||||
initContext(editor);
|
||||
var selection = editor.getSelectionRange();
|
||||
var selected = session.doc.getTextRange(selection);
|
||||
if (selected !== "" && editor.getWrapBehavioursEnabled()) {
|
||||
return getWrapped(selection, selected, '[', ']');
|
||||
} else if (CstyleBehaviour.isSaneInsertion(editor, session)) {
|
||||
CstyleBehaviour.recordAutoInsert(editor, session, "]");
|
||||
return {
|
||||
text: '[]',
|
||||
selection: [1, 1]
|
||||
};
|
||||
}
|
||||
} else if (text == ']') {
|
||||
initContext(editor);
|
||||
var cursor = editor.getCursorPosition();
|
||||
var line = session.doc.getLine(cursor.row);
|
||||
var rightChar = line.substring(cursor.column, cursor.column + 1);
|
||||
if (rightChar == ']') {
|
||||
var matching = session.$findOpeningBracket(']', {column: cursor.column + 1, row: cursor.row});
|
||||
if (matching !== null && CstyleBehaviour.isAutoInsertedClosing(cursor, line, text)) {
|
||||
CstyleBehaviour.popAutoInsertedClosing();
|
||||
return {
|
||||
text: '',
|
||||
selection: [1, 1]
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
this.add("brackets", "deletion", function(state, action, editor, session, range) {
|
||||
var selected = session.doc.getTextRange(range);
|
||||
if (!range.isMultiLine() && selected == '[') {
|
||||
initContext(editor);
|
||||
var line = session.doc.getLine(range.start.row);
|
||||
var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
|
||||
if (rightChar == ']') {
|
||||
range.end.column++;
|
||||
return range;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
this.add("string_dquotes", "insertion", function(state, action, editor, session, text) {
|
||||
if (text == '"' || text == "'") {
|
||||
initContext(editor);
|
||||
var quote = text;
|
||||
var selection = editor.getSelectionRange();
|
||||
var selected = session.doc.getTextRange(selection);
|
||||
if (selected !== "" && selected !== "'" && selected != '"' && editor.getWrapBehavioursEnabled()) {
|
||||
return getWrapped(selection, selected, quote, quote);
|
||||
} else if (!selected) {
|
||||
var cursor = editor.getCursorPosition();
|
||||
var line = session.doc.getLine(cursor.row);
|
||||
var leftChar = line.substring(cursor.column-1, cursor.column);
|
||||
var rightChar = line.substring(cursor.column, cursor.column + 1);
|
||||
|
||||
var token = session.getTokenAt(cursor.row, cursor.column);
|
||||
var rightToken = session.getTokenAt(cursor.row, cursor.column + 1);
|
||||
if (leftChar == "\\" && token && /escape/.test(token.type))
|
||||
return null;
|
||||
|
||||
var stringBefore = token && /string|escape/.test(token.type);
|
||||
var stringAfter = !rightToken || /string|escape/.test(rightToken.type);
|
||||
|
||||
var pair;
|
||||
if (rightChar == quote) {
|
||||
pair = stringBefore !== stringAfter;
|
||||
} else {
|
||||
if (stringBefore && !stringAfter)
|
||||
return null; // wrap string with different quote
|
||||
if (stringBefore && stringAfter)
|
||||
return null; // do not pair quotes inside strings
|
||||
var wordRe = session.$mode.tokenRe;
|
||||
wordRe.lastIndex = 0;
|
||||
var isWordBefore = wordRe.test(leftChar);
|
||||
wordRe.lastIndex = 0;
|
||||
var isWordAfter = wordRe.test(leftChar);
|
||||
if (isWordBefore || isWordAfter)
|
||||
return null; // before or after alphanumeric
|
||||
if (rightChar && !/[\s;,.})\]\\]/.test(rightChar))
|
||||
return null; // there is rightChar and it isn't closing
|
||||
pair = true;
|
||||
}
|
||||
return {
|
||||
text: pair ? quote + quote : "",
|
||||
selection: [1,1]
|
||||
};
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
this.add("string_dquotes", "deletion", function(state, action, editor, session, range) {
|
||||
var selected = session.doc.getTextRange(range);
|
||||
if (!range.isMultiLine() && (selected == '"' || selected == "'")) {
|
||||
initContext(editor);
|
||||
var line = session.doc.getLine(range.start.row);
|
||||
var rightChar = line.substring(range.start.column + 1, range.start.column + 2);
|
||||
if (rightChar == selected) {
|
||||
range.end.column++;
|
||||
return range;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
|
||||
CstyleBehaviour.isSaneInsertion = function(editor, session) {
|
||||
var cursor = editor.getCursorPosition();
|
||||
var iterator = new TokenIterator(session, cursor.row, cursor.column);
|
||||
if (!this.$matchTokenType(iterator.getCurrentToken() || "text", SAFE_INSERT_IN_TOKENS)) {
|
||||
var iterator2 = new TokenIterator(session, cursor.row, cursor.column + 1);
|
||||
if (!this.$matchTokenType(iterator2.getCurrentToken() || "text", SAFE_INSERT_IN_TOKENS))
|
||||
return false;
|
||||
}
|
||||
iterator.stepForward();
|
||||
return iterator.getCurrentTokenRow() !== cursor.row ||
|
||||
this.$matchTokenType(iterator.getCurrentToken() || "text", SAFE_INSERT_BEFORE_TOKENS);
|
||||
};
|
||||
|
||||
CstyleBehaviour.$matchTokenType = function(token, types) {
|
||||
return types.indexOf(token.type || token) > -1;
|
||||
};
|
||||
|
||||
CstyleBehaviour.recordAutoInsert = function(editor, session, bracket) {
|
||||
var cursor = editor.getCursorPosition();
|
||||
var line = session.doc.getLine(cursor.row);
|
||||
if (!this.isAutoInsertedClosing(cursor, line, context.autoInsertedLineEnd[0]))
|
||||
context.autoInsertedBrackets = 0;
|
||||
context.autoInsertedRow = cursor.row;
|
||||
context.autoInsertedLineEnd = bracket + line.substr(cursor.column);
|
||||
context.autoInsertedBrackets++;
|
||||
};
|
||||
|
||||
CstyleBehaviour.recordMaybeInsert = function(editor, session, bracket) {
|
||||
var cursor = editor.getCursorPosition();
|
||||
var line = session.doc.getLine(cursor.row);
|
||||
if (!this.isMaybeInsertedClosing(cursor, line))
|
||||
context.maybeInsertedBrackets = 0;
|
||||
context.maybeInsertedRow = cursor.row;
|
||||
context.maybeInsertedLineStart = line.substr(0, cursor.column) + bracket;
|
||||
context.maybeInsertedLineEnd = line.substr(cursor.column);
|
||||
context.maybeInsertedBrackets++;
|
||||
};
|
||||
|
||||
CstyleBehaviour.isAutoInsertedClosing = function(cursor, line, bracket) {
|
||||
return context.autoInsertedBrackets > 0 &&
|
||||
cursor.row === context.autoInsertedRow &&
|
||||
bracket === context.autoInsertedLineEnd[0] &&
|
||||
line.substr(cursor.column) === context.autoInsertedLineEnd;
|
||||
};
|
||||
|
||||
CstyleBehaviour.isMaybeInsertedClosing = function(cursor, line) {
|
||||
return context.maybeInsertedBrackets > 0 &&
|
||||
cursor.row === context.maybeInsertedRow &&
|
||||
line.substr(cursor.column) === context.maybeInsertedLineEnd &&
|
||||
line.substr(0, cursor.column) == context.maybeInsertedLineStart;
|
||||
};
|
||||
|
||||
CstyleBehaviour.popAutoInsertedClosing = function() {
|
||||
context.autoInsertedLineEnd = context.autoInsertedLineEnd.substr(1);
|
||||
context.autoInsertedBrackets--;
|
||||
};
|
||||
|
||||
CstyleBehaviour.clearMaybeInsertedClosing = function() {
|
||||
if (context) {
|
||||
context.maybeInsertedBrackets = 0;
|
||||
context.maybeInsertedRow = -1;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
oop.inherits(CstyleBehaviour, Behaviour);
|
||||
|
||||
exports.CstyleBehaviour = CstyleBehaviour;
|
||||
});
|
||||
|
||||
ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../../lib/oop");
|
||||
var Behaviour = require("../behaviour").Behaviour;
|
||||
var CstyleBehaviour = require("./cstyle").CstyleBehaviour;
|
||||
var TokenIterator = require("../../token_iterator").TokenIterator;
|
||||
|
||||
var CssBehaviour = function () {
|
||||
|
||||
this.inherit(CstyleBehaviour);
|
||||
|
||||
this.add("colon", "insertion", function (state, action, editor, session, text) {
|
||||
if (text === ':') {
|
||||
var cursor = editor.getCursorPosition();
|
||||
var iterator = new TokenIterator(session, cursor.row, cursor.column);
|
||||
var token = iterator.getCurrentToken();
|
||||
if (token && token.value.match(/\s+/)) {
|
||||
token = iterator.stepBackward();
|
||||
}
|
||||
if (token && token.type === 'support.type') {
|
||||
var line = session.doc.getLine(cursor.row);
|
||||
var rightChar = line.substring(cursor.column, cursor.column + 1);
|
||||
if (rightChar === ':') {
|
||||
return {
|
||||
text: '',
|
||||
selection: [1, 1]
|
||||
}
|
||||
}
|
||||
if (!line.substring(cursor.column).match(/^\s*;/)) {
|
||||
return {
|
||||
text: ':;',
|
||||
selection: [1, 1]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
this.add("colon", "deletion", function (state, action, editor, session, range) {
|
||||
var selected = session.doc.getTextRange(range);
|
||||
if (!range.isMultiLine() && selected === ':') {
|
||||
var cursor = editor.getCursorPosition();
|
||||
var iterator = new TokenIterator(session, cursor.row, cursor.column);
|
||||
var token = iterator.getCurrentToken();
|
||||
if (token && token.value.match(/\s+/)) {
|
||||
token = iterator.stepBackward();
|
||||
}
|
||||
if (token && token.type === 'support.type') {
|
||||
var line = session.doc.getLine(range.start.row);
|
||||
var rightChar = line.substring(range.end.column, range.end.column + 1);
|
||||
if (rightChar === ';') {
|
||||
range.end.column ++;
|
||||
return range;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
this.add("semicolon", "insertion", function (state, action, editor, session, text) {
|
||||
if (text === ';') {
|
||||
var cursor = editor.getCursorPosition();
|
||||
var line = session.doc.getLine(cursor.row);
|
||||
var rightChar = line.substring(cursor.column, cursor.column + 1);
|
||||
if (rightChar === ';') {
|
||||
return {
|
||||
text: '',
|
||||
selection: [1, 1]
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
oop.inherits(CssBehaviour, CstyleBehaviour);
|
||||
|
||||
exports.CssBehaviour = CssBehaviour;
|
||||
});
|
||||
|
||||
ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../../lib/oop");
|
||||
var Range = require("../../range").Range;
|
||||
var BaseFoldMode = require("./fold_mode").FoldMode;
|
||||
|
||||
var FoldMode = exports.FoldMode = function(commentRegex) {
|
||||
if (commentRegex) {
|
||||
this.foldingStartMarker = new RegExp(
|
||||
this.foldingStartMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.start)
|
||||
);
|
||||
this.foldingStopMarker = new RegExp(
|
||||
this.foldingStopMarker.source.replace(/\|[^|]*?$/, "|" + commentRegex.end)
|
||||
);
|
||||
}
|
||||
};
|
||||
oop.inherits(FoldMode, BaseFoldMode);
|
||||
|
||||
(function() {
|
||||
|
||||
this.foldingStartMarker = /(\{|\[)[^\}\]]*$|^\s*(\/\*)/;
|
||||
this.foldingStopMarker = /^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/;
|
||||
this.singleLineBlockCommentRe= /^\s*(\/\*).*\*\/\s*$/;
|
||||
this.tripleStarBlockCommentRe = /^\s*(\/\*\*\*).*\*\/\s*$/;
|
||||
this.startRegionRe = /^\s*(\/\*|\/\/)#?region\b/;
|
||||
this._getFoldWidgetBase = this.getFoldWidget;
|
||||
this.getFoldWidget = function(session, foldStyle, row) {
|
||||
var line = session.getLine(row);
|
||||
|
||||
if (this.singleLineBlockCommentRe.test(line)) {
|
||||
if (!this.startRegionRe.test(line) && !this.tripleStarBlockCommentRe.test(line))
|
||||
return "";
|
||||
}
|
||||
|
||||
var fw = this._getFoldWidgetBase(session, foldStyle, row);
|
||||
|
||||
if (!fw && this.startRegionRe.test(line))
|
||||
return "start"; // lineCommentRegionStart
|
||||
|
||||
return fw;
|
||||
};
|
||||
|
||||
this.getFoldWidgetRange = function(session, foldStyle, row, forceMultiline) {
|
||||
var line = session.getLine(row);
|
||||
|
||||
if (this.startRegionRe.test(line))
|
||||
return this.getCommentRegionBlock(session, line, row);
|
||||
|
||||
var match = line.match(this.foldingStartMarker);
|
||||
if (match) {
|
||||
var i = match.index;
|
||||
|
||||
if (match[1])
|
||||
return this.openingBracketBlock(session, match[1], row, i);
|
||||
|
||||
var range = session.getCommentFoldRange(row, i + match[0].length, 1);
|
||||
|
||||
if (range && !range.isMultiLine()) {
|
||||
if (forceMultiline) {
|
||||
range = this.getSectionRange(session, row);
|
||||
} else if (foldStyle != "all")
|
||||
range = null;
|
||||
}
|
||||
|
||||
return range;
|
||||
}
|
||||
|
||||
if (foldStyle === "markbegin")
|
||||
return;
|
||||
|
||||
var match = line.match(this.foldingStopMarker);
|
||||
if (match) {
|
||||
var i = match.index + match[0].length;
|
||||
|
||||
if (match[1])
|
||||
return this.closingBracketBlock(session, match[1], row, i);
|
||||
|
||||
return session.getCommentFoldRange(row, i, -1);
|
||||
}
|
||||
};
|
||||
|
||||
this.getSectionRange = function(session, row) {
|
||||
var line = session.getLine(row);
|
||||
var startIndent = line.search(/\S/);
|
||||
var startRow = row;
|
||||
var startColumn = line.length;
|
||||
row = row + 1;
|
||||
var endRow = row;
|
||||
var maxRow = session.getLength();
|
||||
while (++row < maxRow) {
|
||||
line = session.getLine(row);
|
||||
var indent = line.search(/\S/);
|
||||
if (indent === -1)
|
||||
continue;
|
||||
if (startIndent > indent)
|
||||
break;
|
||||
var subRange = this.getFoldWidgetRange(session, "all", row);
|
||||
|
||||
if (subRange) {
|
||||
if (subRange.start.row <= startRow) {
|
||||
break;
|
||||
} else if (subRange.isMultiLine()) {
|
||||
row = subRange.end.row;
|
||||
} else if (startIndent == indent) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
endRow = row;
|
||||
}
|
||||
|
||||
return new Range(startRow, startColumn, endRow, session.getLine(endRow).length);
|
||||
};
|
||||
this.getCommentRegionBlock = function(session, line, row) {
|
||||
var startColumn = line.search(/\s*$/);
|
||||
var maxRow = session.getLength();
|
||||
var startRow = row;
|
||||
|
||||
var re = /^\s*(?:\/\*|\/\/|--)#?(end)?region\b/;
|
||||
var depth = 1;
|
||||
while (++row < maxRow) {
|
||||
line = session.getLine(row);
|
||||
var m = re.exec(line);
|
||||
if (!m) continue;
|
||||
if (m[1]) depth--;
|
||||
else depth++;
|
||||
|
||||
if (!depth) break;
|
||||
}
|
||||
|
||||
var endRow = row;
|
||||
if (endRow > startRow) {
|
||||
return new Range(startRow, startColumn, endRow, line.length);
|
||||
}
|
||||
};
|
||||
|
||||
}).call(FoldMode.prototype);
|
||||
|
||||
});
|
||||
|
||||
ace.define("ace/mode/scss",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/scss_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/css","ace/mode/folding/cstyle"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../lib/oop");
|
||||
var TextMode = require("./text").Mode;
|
||||
var ScssHighlightRules = require("./scss_highlight_rules").ScssHighlightRules;
|
||||
var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
|
||||
var CssBehaviour = require("./behaviour/css").CssBehaviour;
|
||||
var CStyleFoldMode = require("./folding/cstyle").FoldMode;
|
||||
|
||||
var Mode = function() {
|
||||
this.HighlightRules = ScssHighlightRules;
|
||||
this.$outdent = new MatchingBraceOutdent();
|
||||
this.$behaviour = new CssBehaviour();
|
||||
this.foldingRules = new CStyleFoldMode();
|
||||
};
|
||||
oop.inherits(Mode, TextMode);
|
||||
|
||||
(function() {
|
||||
|
||||
this.lineCommentStart = "//";
|
||||
this.blockComment = {start: "/*", end: "*/"};
|
||||
|
||||
this.getNextLineIndent = function(state, line, tab) {
|
||||
var indent = this.$getIndent(line);
|
||||
var tokens = this.getTokenizer().getLineTokens(line, state).tokens;
|
||||
if (tokens.length && tokens[tokens.length-1].type == "comment") {
|
||||
return indent;
|
||||
}
|
||||
|
||||
var match = line.match(/^.*\{\s*$/);
|
||||
if (match) {
|
||||
indent += tab;
|
||||
}
|
||||
|
||||
return indent;
|
||||
};
|
||||
|
||||
this.checkOutdent = function(state, line, input) {
|
||||
return this.$outdent.checkOutdent(line, input);
|
||||
};
|
||||
|
||||
this.autoOutdent = function(state, doc, row) {
|
||||
this.$outdent.autoOutdent(doc, row);
|
||||
};
|
||||
|
||||
this.$id = "ace/mode/scss";
|
||||
}).call(Mode.prototype);
|
||||
|
||||
exports.Mode = Mode;
|
||||
|
||||
});
|
||||
2964
modules/backend/assets/vendor/ace/mode-twig.js
vendored
Executable file
2964
modules/backend/assets/vendor/ace/mode-twig.js
vendored
Executable file
File diff suppressed because it is too large
Load Diff
256
modules/backend/assets/vendor/ace/mode-yaml.js
vendored
Normal file
256
modules/backend/assets/vendor/ace/mode-yaml.js
vendored
Normal file
@@ -0,0 +1,256 @@
|
||||
ace.define("ace/mode/yaml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../lib/oop");
|
||||
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
||||
|
||||
var YamlHighlightRules = function() {
|
||||
this.$rules = {
|
||||
"start" : [
|
||||
{
|
||||
token : "comment",
|
||||
regex : "#.*$"
|
||||
}, {
|
||||
token : "list.markup",
|
||||
regex : /^(?:-{3}|\.{3})\s*(?=#|$)/
|
||||
}, {
|
||||
token : "list.markup",
|
||||
regex : /^\s*[\-?](?:$|\s)/
|
||||
}, {
|
||||
token: "constant",
|
||||
regex: "!![\\w//]+"
|
||||
}, {
|
||||
token: "constant.language",
|
||||
regex: "[&\\*][a-zA-Z0-9-_]+"
|
||||
}, {
|
||||
token: ["meta.tag", "keyword"],
|
||||
regex: /^(\s*\w.*?)(\:(?:\s+|$))/
|
||||
},{
|
||||
token: ["meta.tag", "keyword"],
|
||||
regex: /(\w+?)(\s*\:(?:\s+|$))/
|
||||
}, {
|
||||
token : "keyword.operator",
|
||||
regex : "<<\\w*:\\w*"
|
||||
}, {
|
||||
token : "keyword.operator",
|
||||
regex : "-\\s*(?=[{])"
|
||||
}, {
|
||||
token : "string", // single line
|
||||
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
|
||||
}, {
|
||||
token : "string", // multi line string start
|
||||
regex : '[|>][-+\\d\\s]*$',
|
||||
next : "qqstring"
|
||||
}, {
|
||||
token : "string", // single quoted string
|
||||
regex : "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"
|
||||
}, {
|
||||
token : "constant.numeric", // float
|
||||
regex : /(\b|[+\-\.])[\d_]+(?:(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)/
|
||||
}, {
|
||||
token : "constant.numeric", // other number
|
||||
regex : /[+\-]?\.inf\b|NaN\b|0x[\dA-Fa-f_]+|0b[10_]+/
|
||||
}, {
|
||||
token : "constant.language.boolean",
|
||||
regex : "(?:true|false|TRUE|FALSE|True|False|yes|no)\\b"
|
||||
}, {
|
||||
token : "paren.lparen",
|
||||
regex : "[[({]"
|
||||
}, {
|
||||
token : "paren.rparen",
|
||||
regex : "[\\])}]"
|
||||
}
|
||||
],
|
||||
"qqstring" : [
|
||||
{
|
||||
token : "string",
|
||||
regex : '(?=(?:(?:\\\\.)|(?:[^:]))*?:)',
|
||||
next : "start"
|
||||
}, {
|
||||
token : "string",
|
||||
regex : '.+'
|
||||
}
|
||||
]};
|
||||
|
||||
};
|
||||
|
||||
oop.inherits(YamlHighlightRules, TextHighlightRules);
|
||||
|
||||
exports.YamlHighlightRules = YamlHighlightRules;
|
||||
});
|
||||
|
||||
ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var Range = require("../range").Range;
|
||||
|
||||
var MatchingBraceOutdent = function() {};
|
||||
|
||||
(function() {
|
||||
|
||||
this.checkOutdent = function(line, input) {
|
||||
if (! /^\s+$/.test(line))
|
||||
return false;
|
||||
|
||||
return /^\s*\}/.test(input);
|
||||
};
|
||||
|
||||
this.autoOutdent = function(doc, row) {
|
||||
var line = doc.getLine(row);
|
||||
var match = line.match(/^(\s*\})/);
|
||||
|
||||
if (!match) return 0;
|
||||
|
||||
var column = match[1].length;
|
||||
var openBracePos = doc.findMatchingBracket({row: row, column: column});
|
||||
|
||||
if (!openBracePos || openBracePos.row == row) return 0;
|
||||
|
||||
var indent = this.$getIndent(doc.getLine(openBracePos.row));
|
||||
doc.replace(new Range(row, 0, row, column-1), indent);
|
||||
};
|
||||
|
||||
this.$getIndent = function(line) {
|
||||
return line.match(/^\s*/)[0];
|
||||
};
|
||||
|
||||
}).call(MatchingBraceOutdent.prototype);
|
||||
|
||||
exports.MatchingBraceOutdent = MatchingBraceOutdent;
|
||||
});
|
||||
|
||||
ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../../lib/oop");
|
||||
var BaseFoldMode = require("./fold_mode").FoldMode;
|
||||
var Range = require("../../range").Range;
|
||||
|
||||
var FoldMode = exports.FoldMode = function() {};
|
||||
oop.inherits(FoldMode, BaseFoldMode);
|
||||
|
||||
(function() {
|
||||
|
||||
this.getFoldWidgetRange = function(session, foldStyle, row) {
|
||||
var range = this.indentationBlock(session, row);
|
||||
if (range)
|
||||
return range;
|
||||
|
||||
var re = /\S/;
|
||||
var line = session.getLine(row);
|
||||
var startLevel = line.search(re);
|
||||
if (startLevel == -1 || line[startLevel] != "#")
|
||||
return;
|
||||
|
||||
var startColumn = line.length;
|
||||
var maxRow = session.getLength();
|
||||
var startRow = row;
|
||||
var endRow = row;
|
||||
|
||||
while (++row < maxRow) {
|
||||
line = session.getLine(row);
|
||||
var level = line.search(re);
|
||||
|
||||
if (level == -1)
|
||||
continue;
|
||||
|
||||
if (line[level] != "#")
|
||||
break;
|
||||
|
||||
endRow = row;
|
||||
}
|
||||
|
||||
if (endRow > startRow) {
|
||||
var endColumn = session.getLine(endRow).length;
|
||||
return new Range(startRow, startColumn, endRow, endColumn);
|
||||
}
|
||||
};
|
||||
this.getFoldWidget = function(session, foldStyle, row) {
|
||||
var line = session.getLine(row);
|
||||
var indent = line.search(/\S/);
|
||||
var next = session.getLine(row + 1);
|
||||
var prev = session.getLine(row - 1);
|
||||
var prevIndent = prev.search(/\S/);
|
||||
var nextIndent = next.search(/\S/);
|
||||
|
||||
if (indent == -1) {
|
||||
session.foldWidgets[row - 1] = prevIndent!= -1 && prevIndent < nextIndent ? "start" : "";
|
||||
return "";
|
||||
}
|
||||
if (prevIndent == -1) {
|
||||
if (indent == nextIndent && line[indent] == "#" && next[indent] == "#") {
|
||||
session.foldWidgets[row - 1] = "";
|
||||
session.foldWidgets[row + 1] = "";
|
||||
return "start";
|
||||
}
|
||||
} else if (prevIndent == indent && line[indent] == "#" && prev[indent] == "#") {
|
||||
if (session.getLine(row - 2).search(/\S/) == -1) {
|
||||
session.foldWidgets[row - 1] = "start";
|
||||
session.foldWidgets[row + 1] = "";
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
if (prevIndent!= -1 && prevIndent < indent)
|
||||
session.foldWidgets[row - 1] = "start";
|
||||
else
|
||||
session.foldWidgets[row - 1] = "";
|
||||
|
||||
if (indent < nextIndent)
|
||||
return "start";
|
||||
else
|
||||
return "";
|
||||
};
|
||||
|
||||
}).call(FoldMode.prototype);
|
||||
|
||||
});
|
||||
|
||||
ace.define("ace/mode/yaml",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/yaml_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/coffee"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
var oop = require("../lib/oop");
|
||||
var TextMode = require("./text").Mode;
|
||||
var YamlHighlightRules = require("./yaml_highlight_rules").YamlHighlightRules;
|
||||
var MatchingBraceOutdent = require("./matching_brace_outdent").MatchingBraceOutdent;
|
||||
var FoldMode = require("./folding/coffee").FoldMode;
|
||||
|
||||
var Mode = function() {
|
||||
this.HighlightRules = YamlHighlightRules;
|
||||
this.$outdent = new MatchingBraceOutdent();
|
||||
this.foldingRules = new FoldMode();
|
||||
};
|
||||
oop.inherits(Mode, TextMode);
|
||||
|
||||
(function() {
|
||||
|
||||
this.lineCommentStart = "#";
|
||||
|
||||
this.getNextLineIndent = function(state, line, tab) {
|
||||
var indent = this.$getIndent(line);
|
||||
|
||||
if (state == "start") {
|
||||
var match = line.match(/^.*[\{\(\[]\s*$/);
|
||||
if (match) {
|
||||
indent += tab;
|
||||
}
|
||||
}
|
||||
|
||||
return indent;
|
||||
};
|
||||
|
||||
this.checkOutdent = function(state, line, input) {
|
||||
return this.$outdent.checkOutdent(line, input);
|
||||
};
|
||||
|
||||
this.autoOutdent = function(state, doc, row) {
|
||||
this.$outdent.autoOutdent(doc, row);
|
||||
};
|
||||
|
||||
|
||||
this.$id = "ace/mode/yaml";
|
||||
}).call(Mode.prototype);
|
||||
|
||||
exports.Mode = Mode;
|
||||
|
||||
});
|
||||
974
modules/backend/assets/vendor/ace/snippets/css.js
vendored
Normal file
974
modules/backend/assets/vendor/ace/snippets/css.js
vendored
Normal file
@@ -0,0 +1,974 @@
|
||||
ace.define("ace/snippets/css",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "snippet .\n\
|
||||
${1} {\n\
|
||||
${2}\n\
|
||||
}\n\
|
||||
snippet !\n\
|
||||
!important\n\
|
||||
snippet bdi:m+\n\
|
||||
-moz-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch};\n\
|
||||
snippet bdi:m\n\
|
||||
-moz-border-image: ${1};\n\
|
||||
snippet bdrz:m\n\
|
||||
-moz-border-radius: ${1};\n\
|
||||
snippet bxsh:m+\n\
|
||||
-moz-box-shadow: ${1:0} ${2:0} ${3:0} #${4:000};\n\
|
||||
snippet bxsh:m\n\
|
||||
-moz-box-shadow: ${1};\n\
|
||||
snippet bdi:w+\n\
|
||||
-webkit-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch};\n\
|
||||
snippet bdi:w\n\
|
||||
-webkit-border-image: ${1};\n\
|
||||
snippet bdrz:w\n\
|
||||
-webkit-border-radius: ${1};\n\
|
||||
snippet bxsh:w+\n\
|
||||
-webkit-box-shadow: ${1:0} ${2:0} ${3:0} #${4:000};\n\
|
||||
snippet bxsh:w\n\
|
||||
-webkit-box-shadow: ${1};\n\
|
||||
snippet @f\n\
|
||||
@font-face {\n\
|
||||
font-family: ${1};\n\
|
||||
src: url(${2});\n\
|
||||
}\n\
|
||||
snippet @i\n\
|
||||
@import url(${1});\n\
|
||||
snippet @m\n\
|
||||
@media ${1:print} {\n\
|
||||
${2}\n\
|
||||
}\n\
|
||||
snippet bg+\n\
|
||||
background: #${1:FFF} url(${2}) ${3:0} ${4:0} ${5:no-repeat};\n\
|
||||
snippet bga\n\
|
||||
background-attachment: ${1};\n\
|
||||
snippet bga:f\n\
|
||||
background-attachment: fixed;\n\
|
||||
snippet bga:s\n\
|
||||
background-attachment: scroll;\n\
|
||||
snippet bgbk\n\
|
||||
background-break: ${1};\n\
|
||||
snippet bgbk:bb\n\
|
||||
background-break: bounding-box;\n\
|
||||
snippet bgbk:c\n\
|
||||
background-break: continuous;\n\
|
||||
snippet bgbk:eb\n\
|
||||
background-break: each-box;\n\
|
||||
snippet bgcp\n\
|
||||
background-clip: ${1};\n\
|
||||
snippet bgcp:bb\n\
|
||||
background-clip: border-box;\n\
|
||||
snippet bgcp:cb\n\
|
||||
background-clip: content-box;\n\
|
||||
snippet bgcp:nc\n\
|
||||
background-clip: no-clip;\n\
|
||||
snippet bgcp:pb\n\
|
||||
background-clip: padding-box;\n\
|
||||
snippet bgc\n\
|
||||
background-color: #${1:FFF};\n\
|
||||
snippet bgc:t\n\
|
||||
background-color: transparent;\n\
|
||||
snippet bgi\n\
|
||||
background-image: url(${1});\n\
|
||||
snippet bgi:n\n\
|
||||
background-image: none;\n\
|
||||
snippet bgo\n\
|
||||
background-origin: ${1};\n\
|
||||
snippet bgo:bb\n\
|
||||
background-origin: border-box;\n\
|
||||
snippet bgo:cb\n\
|
||||
background-origin: content-box;\n\
|
||||
snippet bgo:pb\n\
|
||||
background-origin: padding-box;\n\
|
||||
snippet bgpx\n\
|
||||
background-position-x: ${1};\n\
|
||||
snippet bgpy\n\
|
||||
background-position-y: ${1};\n\
|
||||
snippet bgp\n\
|
||||
background-position: ${1:0} ${2:0};\n\
|
||||
snippet bgr\n\
|
||||
background-repeat: ${1};\n\
|
||||
snippet bgr:n\n\
|
||||
background-repeat: no-repeat;\n\
|
||||
snippet bgr:x\n\
|
||||
background-repeat: repeat-x;\n\
|
||||
snippet bgr:y\n\
|
||||
background-repeat: repeat-y;\n\
|
||||
snippet bgr:r\n\
|
||||
background-repeat: repeat;\n\
|
||||
snippet bgz\n\
|
||||
background-size: ${1};\n\
|
||||
snippet bgz:a\n\
|
||||
background-size: auto;\n\
|
||||
snippet bgz:ct\n\
|
||||
background-size: contain;\n\
|
||||
snippet bgz:cv\n\
|
||||
background-size: cover;\n\
|
||||
snippet bg\n\
|
||||
background: ${1};\n\
|
||||
snippet bg:ie\n\
|
||||
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='${1}',sizingMethod='${2:crop}');\n\
|
||||
snippet bg:n\n\
|
||||
background: none;\n\
|
||||
snippet bd+\n\
|
||||
border: ${1:1px} ${2:solid} #${3:000};\n\
|
||||
snippet bdb+\n\
|
||||
border-bottom: ${1:1px} ${2:solid} #${3:000};\n\
|
||||
snippet bdbc\n\
|
||||
border-bottom-color: #${1:000};\n\
|
||||
snippet bdbi\n\
|
||||
border-bottom-image: url(${1});\n\
|
||||
snippet bdbi:n\n\
|
||||
border-bottom-image: none;\n\
|
||||
snippet bdbli\n\
|
||||
border-bottom-left-image: url(${1});\n\
|
||||
snippet bdbli:c\n\
|
||||
border-bottom-left-image: continue;\n\
|
||||
snippet bdbli:n\n\
|
||||
border-bottom-left-image: none;\n\
|
||||
snippet bdblrz\n\
|
||||
border-bottom-left-radius: ${1};\n\
|
||||
snippet bdbri\n\
|
||||
border-bottom-right-image: url(${1});\n\
|
||||
snippet bdbri:c\n\
|
||||
border-bottom-right-image: continue;\n\
|
||||
snippet bdbri:n\n\
|
||||
border-bottom-right-image: none;\n\
|
||||
snippet bdbrrz\n\
|
||||
border-bottom-right-radius: ${1};\n\
|
||||
snippet bdbs\n\
|
||||
border-bottom-style: ${1};\n\
|
||||
snippet bdbs:n\n\
|
||||
border-bottom-style: none;\n\
|
||||
snippet bdbw\n\
|
||||
border-bottom-width: ${1};\n\
|
||||
snippet bdb\n\
|
||||
border-bottom: ${1};\n\
|
||||
snippet bdb:n\n\
|
||||
border-bottom: none;\n\
|
||||
snippet bdbk\n\
|
||||
border-break: ${1};\n\
|
||||
snippet bdbk:c\n\
|
||||
border-break: close;\n\
|
||||
snippet bdcl\n\
|
||||
border-collapse: ${1};\n\
|
||||
snippet bdcl:c\n\
|
||||
border-collapse: collapse;\n\
|
||||
snippet bdcl:s\n\
|
||||
border-collapse: separate;\n\
|
||||
snippet bdc\n\
|
||||
border-color: #${1:000};\n\
|
||||
snippet bdci\n\
|
||||
border-corner-image: url(${1});\n\
|
||||
snippet bdci:c\n\
|
||||
border-corner-image: continue;\n\
|
||||
snippet bdci:n\n\
|
||||
border-corner-image: none;\n\
|
||||
snippet bdf\n\
|
||||
border-fit: ${1};\n\
|
||||
snippet bdf:c\n\
|
||||
border-fit: clip;\n\
|
||||
snippet bdf:of\n\
|
||||
border-fit: overwrite;\n\
|
||||
snippet bdf:ow\n\
|
||||
border-fit: overwrite;\n\
|
||||
snippet bdf:r\n\
|
||||
border-fit: repeat;\n\
|
||||
snippet bdf:sc\n\
|
||||
border-fit: scale;\n\
|
||||
snippet bdf:sp\n\
|
||||
border-fit: space;\n\
|
||||
snippet bdf:st\n\
|
||||
border-fit: stretch;\n\
|
||||
snippet bdi\n\
|
||||
border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch};\n\
|
||||
snippet bdi:n\n\
|
||||
border-image: none;\n\
|
||||
snippet bdl+\n\
|
||||
border-left: ${1:1px} ${2:solid} #${3:000};\n\
|
||||
snippet bdlc\n\
|
||||
border-left-color: #${1:000};\n\
|
||||
snippet bdli\n\
|
||||
border-left-image: url(${1});\n\
|
||||
snippet bdli:n\n\
|
||||
border-left-image: none;\n\
|
||||
snippet bdls\n\
|
||||
border-left-style: ${1};\n\
|
||||
snippet bdls:n\n\
|
||||
border-left-style: none;\n\
|
||||
snippet bdlw\n\
|
||||
border-left-width: ${1};\n\
|
||||
snippet bdl\n\
|
||||
border-left: ${1};\n\
|
||||
snippet bdl:n\n\
|
||||
border-left: none;\n\
|
||||
snippet bdlt\n\
|
||||
border-length: ${1};\n\
|
||||
snippet bdlt:a\n\
|
||||
border-length: auto;\n\
|
||||
snippet bdrz\n\
|
||||
border-radius: ${1};\n\
|
||||
snippet bdr+\n\
|
||||
border-right: ${1:1px} ${2:solid} #${3:000};\n\
|
||||
snippet bdrc\n\
|
||||
border-right-color: #${1:000};\n\
|
||||
snippet bdri\n\
|
||||
border-right-image: url(${1});\n\
|
||||
snippet bdri:n\n\
|
||||
border-right-image: none;\n\
|
||||
snippet bdrs\n\
|
||||
border-right-style: ${1};\n\
|
||||
snippet bdrs:n\n\
|
||||
border-right-style: none;\n\
|
||||
snippet bdrw\n\
|
||||
border-right-width: ${1};\n\
|
||||
snippet bdr\n\
|
||||
border-right: ${1};\n\
|
||||
snippet bdr:n\n\
|
||||
border-right: none;\n\
|
||||
snippet bdsp\n\
|
||||
border-spacing: ${1};\n\
|
||||
snippet bds\n\
|
||||
border-style: ${1};\n\
|
||||
snippet bds:ds\n\
|
||||
border-style: dashed;\n\
|
||||
snippet bds:dtds\n\
|
||||
border-style: dot-dash;\n\
|
||||
snippet bds:dtdtds\n\
|
||||
border-style: dot-dot-dash;\n\
|
||||
snippet bds:dt\n\
|
||||
border-style: dotted;\n\
|
||||
snippet bds:db\n\
|
||||
border-style: double;\n\
|
||||
snippet bds:g\n\
|
||||
border-style: groove;\n\
|
||||
snippet bds:h\n\
|
||||
border-style: hidden;\n\
|
||||
snippet bds:i\n\
|
||||
border-style: inset;\n\
|
||||
snippet bds:n\n\
|
||||
border-style: none;\n\
|
||||
snippet bds:o\n\
|
||||
border-style: outset;\n\
|
||||
snippet bds:r\n\
|
||||
border-style: ridge;\n\
|
||||
snippet bds:s\n\
|
||||
border-style: solid;\n\
|
||||
snippet bds:w\n\
|
||||
border-style: wave;\n\
|
||||
snippet bdt+\n\
|
||||
border-top: ${1:1px} ${2:solid} #${3:000};\n\
|
||||
snippet bdtc\n\
|
||||
border-top-color: #${1:000};\n\
|
||||
snippet bdti\n\
|
||||
border-top-image: url(${1});\n\
|
||||
snippet bdti:n\n\
|
||||
border-top-image: none;\n\
|
||||
snippet bdtli\n\
|
||||
border-top-left-image: url(${1});\n\
|
||||
snippet bdtli:c\n\
|
||||
border-corner-image: continue;\n\
|
||||
snippet bdtli:n\n\
|
||||
border-corner-image: none;\n\
|
||||
snippet bdtlrz\n\
|
||||
border-top-left-radius: ${1};\n\
|
||||
snippet bdtri\n\
|
||||
border-top-right-image: url(${1});\n\
|
||||
snippet bdtri:c\n\
|
||||
border-top-right-image: continue;\n\
|
||||
snippet bdtri:n\n\
|
||||
border-top-right-image: none;\n\
|
||||
snippet bdtrrz\n\
|
||||
border-top-right-radius: ${1};\n\
|
||||
snippet bdts\n\
|
||||
border-top-style: ${1};\n\
|
||||
snippet bdts:n\n\
|
||||
border-top-style: none;\n\
|
||||
snippet bdtw\n\
|
||||
border-top-width: ${1};\n\
|
||||
snippet bdt\n\
|
||||
border-top: ${1};\n\
|
||||
snippet bdt:n\n\
|
||||
border-top: none;\n\
|
||||
snippet bdw\n\
|
||||
border-width: ${1};\n\
|
||||
snippet bd\n\
|
||||
border: ${1};\n\
|
||||
snippet bd:n\n\
|
||||
border: none;\n\
|
||||
snippet b\n\
|
||||
bottom: ${1};\n\
|
||||
snippet b:a\n\
|
||||
bottom: auto;\n\
|
||||
snippet bxsh+\n\
|
||||
box-shadow: ${1:0} ${2:0} ${3:0} #${4:000};\n\
|
||||
snippet bxsh\n\
|
||||
box-shadow: ${1};\n\
|
||||
snippet bxsh:n\n\
|
||||
box-shadow: none;\n\
|
||||
snippet bxz\n\
|
||||
box-sizing: ${1};\n\
|
||||
snippet bxz:bb\n\
|
||||
box-sizing: border-box;\n\
|
||||
snippet bxz:cb\n\
|
||||
box-sizing: content-box;\n\
|
||||
snippet cps\n\
|
||||
caption-side: ${1};\n\
|
||||
snippet cps:b\n\
|
||||
caption-side: bottom;\n\
|
||||
snippet cps:t\n\
|
||||
caption-side: top;\n\
|
||||
snippet cl\n\
|
||||
clear: ${1};\n\
|
||||
snippet cl:b\n\
|
||||
clear: both;\n\
|
||||
snippet cl:l\n\
|
||||
clear: left;\n\
|
||||
snippet cl:n\n\
|
||||
clear: none;\n\
|
||||
snippet cl:r\n\
|
||||
clear: right;\n\
|
||||
snippet cp\n\
|
||||
clip: ${1};\n\
|
||||
snippet cp:a\n\
|
||||
clip: auto;\n\
|
||||
snippet cp:r\n\
|
||||
clip: rect(${1:0} ${2:0} ${3:0} ${4:0});\n\
|
||||
snippet c\n\
|
||||
color: #${1:000};\n\
|
||||
snippet ct\n\
|
||||
content: ${1};\n\
|
||||
snippet ct:a\n\
|
||||
content: attr(${1});\n\
|
||||
snippet ct:cq\n\
|
||||
content: close-quote;\n\
|
||||
snippet ct:c\n\
|
||||
content: counter(${1});\n\
|
||||
snippet ct:cs\n\
|
||||
content: counters(${1});\n\
|
||||
snippet ct:ncq\n\
|
||||
content: no-close-quote;\n\
|
||||
snippet ct:noq\n\
|
||||
content: no-open-quote;\n\
|
||||
snippet ct:n\n\
|
||||
content: normal;\n\
|
||||
snippet ct:oq\n\
|
||||
content: open-quote;\n\
|
||||
snippet coi\n\
|
||||
counter-increment: ${1};\n\
|
||||
snippet cor\n\
|
||||
counter-reset: ${1};\n\
|
||||
snippet cur\n\
|
||||
cursor: ${1};\n\
|
||||
snippet cur:a\n\
|
||||
cursor: auto;\n\
|
||||
snippet cur:c\n\
|
||||
cursor: crosshair;\n\
|
||||
snippet cur:d\n\
|
||||
cursor: default;\n\
|
||||
snippet cur:ha\n\
|
||||
cursor: hand;\n\
|
||||
snippet cur:he\n\
|
||||
cursor: help;\n\
|
||||
snippet cur:m\n\
|
||||
cursor: move;\n\
|
||||
snippet cur:p\n\
|
||||
cursor: pointer;\n\
|
||||
snippet cur:t\n\
|
||||
cursor: text;\n\
|
||||
snippet d\n\
|
||||
display: ${1};\n\
|
||||
snippet d:mib\n\
|
||||
display: -moz-inline-box;\n\
|
||||
snippet d:mis\n\
|
||||
display: -moz-inline-stack;\n\
|
||||
snippet d:b\n\
|
||||
display: block;\n\
|
||||
snippet d:cp\n\
|
||||
display: compact;\n\
|
||||
snippet d:ib\n\
|
||||
display: inline-block;\n\
|
||||
snippet d:itb\n\
|
||||
display: inline-table;\n\
|
||||
snippet d:i\n\
|
||||
display: inline;\n\
|
||||
snippet d:li\n\
|
||||
display: list-item;\n\
|
||||
snippet d:n\n\
|
||||
display: none;\n\
|
||||
snippet d:ri\n\
|
||||
display: run-in;\n\
|
||||
snippet d:tbcp\n\
|
||||
display: table-caption;\n\
|
||||
snippet d:tbc\n\
|
||||
display: table-cell;\n\
|
||||
snippet d:tbclg\n\
|
||||
display: table-column-group;\n\
|
||||
snippet d:tbcl\n\
|
||||
display: table-column;\n\
|
||||
snippet d:tbfg\n\
|
||||
display: table-footer-group;\n\
|
||||
snippet d:tbhg\n\
|
||||
display: table-header-group;\n\
|
||||
snippet d:tbrg\n\
|
||||
display: table-row-group;\n\
|
||||
snippet d:tbr\n\
|
||||
display: table-row;\n\
|
||||
snippet d:tb\n\
|
||||
display: table;\n\
|
||||
snippet ec\n\
|
||||
empty-cells: ${1};\n\
|
||||
snippet ec:h\n\
|
||||
empty-cells: hide;\n\
|
||||
snippet ec:s\n\
|
||||
empty-cells: show;\n\
|
||||
snippet exp\n\
|
||||
expression()\n\
|
||||
snippet fl\n\
|
||||
float: ${1};\n\
|
||||
snippet fl:l\n\
|
||||
float: left;\n\
|
||||
snippet fl:n\n\
|
||||
float: none;\n\
|
||||
snippet fl:r\n\
|
||||
float: right;\n\
|
||||
snippet f+\n\
|
||||
font: ${1:1em} ${2:Arial},${3:sans-serif};\n\
|
||||
snippet fef\n\
|
||||
font-effect: ${1};\n\
|
||||
snippet fef:eb\n\
|
||||
font-effect: emboss;\n\
|
||||
snippet fef:eg\n\
|
||||
font-effect: engrave;\n\
|
||||
snippet fef:n\n\
|
||||
font-effect: none;\n\
|
||||
snippet fef:o\n\
|
||||
font-effect: outline;\n\
|
||||
snippet femp\n\
|
||||
font-emphasize-position: ${1};\n\
|
||||
snippet femp:a\n\
|
||||
font-emphasize-position: after;\n\
|
||||
snippet femp:b\n\
|
||||
font-emphasize-position: before;\n\
|
||||
snippet fems\n\
|
||||
font-emphasize-style: ${1};\n\
|
||||
snippet fems:ac\n\
|
||||
font-emphasize-style: accent;\n\
|
||||
snippet fems:c\n\
|
||||
font-emphasize-style: circle;\n\
|
||||
snippet fems:ds\n\
|
||||
font-emphasize-style: disc;\n\
|
||||
snippet fems:dt\n\
|
||||
font-emphasize-style: dot;\n\
|
||||
snippet fems:n\n\
|
||||
font-emphasize-style: none;\n\
|
||||
snippet fem\n\
|
||||
font-emphasize: ${1};\n\
|
||||
snippet ff\n\
|
||||
font-family: ${1};\n\
|
||||
snippet ff:c\n\
|
||||
font-family: ${1:'Monotype Corsiva','Comic Sans MS'},cursive;\n\
|
||||
snippet ff:f\n\
|
||||
font-family: ${1:Capitals,Impact},fantasy;\n\
|
||||
snippet ff:m\n\
|
||||
font-family: ${1:Monaco,'Courier New'},monospace;\n\
|
||||
snippet ff:ss\n\
|
||||
font-family: ${1:Helvetica,Arial},sans-serif;\n\
|
||||
snippet ff:s\n\
|
||||
font-family: ${1:Georgia,'Times New Roman'},serif;\n\
|
||||
snippet fza\n\
|
||||
font-size-adjust: ${1};\n\
|
||||
snippet fza:n\n\
|
||||
font-size-adjust: none;\n\
|
||||
snippet fz\n\
|
||||
font-size: ${1};\n\
|
||||
snippet fsm\n\
|
||||
font-smooth: ${1};\n\
|
||||
snippet fsm:aw\n\
|
||||
font-smooth: always;\n\
|
||||
snippet fsm:a\n\
|
||||
font-smooth: auto;\n\
|
||||
snippet fsm:n\n\
|
||||
font-smooth: never;\n\
|
||||
snippet fst\n\
|
||||
font-stretch: ${1};\n\
|
||||
snippet fst:c\n\
|
||||
font-stretch: condensed;\n\
|
||||
snippet fst:e\n\
|
||||
font-stretch: expanded;\n\
|
||||
snippet fst:ec\n\
|
||||
font-stretch: extra-condensed;\n\
|
||||
snippet fst:ee\n\
|
||||
font-stretch: extra-expanded;\n\
|
||||
snippet fst:n\n\
|
||||
font-stretch: normal;\n\
|
||||
snippet fst:sc\n\
|
||||
font-stretch: semi-condensed;\n\
|
||||
snippet fst:se\n\
|
||||
font-stretch: semi-expanded;\n\
|
||||
snippet fst:uc\n\
|
||||
font-stretch: ultra-condensed;\n\
|
||||
snippet fst:ue\n\
|
||||
font-stretch: ultra-expanded;\n\
|
||||
snippet fs\n\
|
||||
font-style: ${1};\n\
|
||||
snippet fs:i\n\
|
||||
font-style: italic;\n\
|
||||
snippet fs:n\n\
|
||||
font-style: normal;\n\
|
||||
snippet fs:o\n\
|
||||
font-style: oblique;\n\
|
||||
snippet fv\n\
|
||||
font-variant: ${1};\n\
|
||||
snippet fv:n\n\
|
||||
font-variant: normal;\n\
|
||||
snippet fv:sc\n\
|
||||
font-variant: small-caps;\n\
|
||||
snippet fw\n\
|
||||
font-weight: ${1};\n\
|
||||
snippet fw:b\n\
|
||||
font-weight: bold;\n\
|
||||
snippet fw:br\n\
|
||||
font-weight: bolder;\n\
|
||||
snippet fw:lr\n\
|
||||
font-weight: lighter;\n\
|
||||
snippet fw:n\n\
|
||||
font-weight: normal;\n\
|
||||
snippet f\n\
|
||||
font: ${1};\n\
|
||||
snippet h\n\
|
||||
height: ${1};\n\
|
||||
snippet h:a\n\
|
||||
height: auto;\n\
|
||||
snippet l\n\
|
||||
left: ${1};\n\
|
||||
snippet l:a\n\
|
||||
left: auto;\n\
|
||||
snippet lts\n\
|
||||
letter-spacing: ${1};\n\
|
||||
snippet lh\n\
|
||||
line-height: ${1};\n\
|
||||
snippet lisi\n\
|
||||
list-style-image: url(${1});\n\
|
||||
snippet lisi:n\n\
|
||||
list-style-image: none;\n\
|
||||
snippet lisp\n\
|
||||
list-style-position: ${1};\n\
|
||||
snippet lisp:i\n\
|
||||
list-style-position: inside;\n\
|
||||
snippet lisp:o\n\
|
||||
list-style-position: outside;\n\
|
||||
snippet list\n\
|
||||
list-style-type: ${1};\n\
|
||||
snippet list:c\n\
|
||||
list-style-type: circle;\n\
|
||||
snippet list:dclz\n\
|
||||
list-style-type: decimal-leading-zero;\n\
|
||||
snippet list:dc\n\
|
||||
list-style-type: decimal;\n\
|
||||
snippet list:d\n\
|
||||
list-style-type: disc;\n\
|
||||
snippet list:lr\n\
|
||||
list-style-type: lower-roman;\n\
|
||||
snippet list:n\n\
|
||||
list-style-type: none;\n\
|
||||
snippet list:s\n\
|
||||
list-style-type: square;\n\
|
||||
snippet list:ur\n\
|
||||
list-style-type: upper-roman;\n\
|
||||
snippet lis\n\
|
||||
list-style: ${1};\n\
|
||||
snippet lis:n\n\
|
||||
list-style: none;\n\
|
||||
snippet mb\n\
|
||||
margin-bottom: ${1};\n\
|
||||
snippet mb:a\n\
|
||||
margin-bottom: auto;\n\
|
||||
snippet ml\n\
|
||||
margin-left: ${1};\n\
|
||||
snippet ml:a\n\
|
||||
margin-left: auto;\n\
|
||||
snippet mr\n\
|
||||
margin-right: ${1};\n\
|
||||
snippet mr:a\n\
|
||||
margin-right: auto;\n\
|
||||
snippet mt\n\
|
||||
margin-top: ${1};\n\
|
||||
snippet mt:a\n\
|
||||
margin-top: auto;\n\
|
||||
snippet m\n\
|
||||
margin: ${1};\n\
|
||||
snippet m:4\n\
|
||||
margin: ${1:0} ${2:0} ${3:0} ${4:0};\n\
|
||||
snippet m:3\n\
|
||||
margin: ${1:0} ${2:0} ${3:0};\n\
|
||||
snippet m:2\n\
|
||||
margin: ${1:0} ${2:0};\n\
|
||||
snippet m:0\n\
|
||||
margin: 0;\n\
|
||||
snippet m:a\n\
|
||||
margin: auto;\n\
|
||||
snippet mah\n\
|
||||
max-height: ${1};\n\
|
||||
snippet mah:n\n\
|
||||
max-height: none;\n\
|
||||
snippet maw\n\
|
||||
max-width: ${1};\n\
|
||||
snippet maw:n\n\
|
||||
max-width: none;\n\
|
||||
snippet mih\n\
|
||||
min-height: ${1};\n\
|
||||
snippet miw\n\
|
||||
min-width: ${1};\n\
|
||||
snippet op\n\
|
||||
opacity: ${1};\n\
|
||||
snippet op:ie\n\
|
||||
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=${1:100});\n\
|
||||
snippet op:ms\n\
|
||||
-ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=${1:100})';\n\
|
||||
snippet orp\n\
|
||||
orphans: ${1};\n\
|
||||
snippet o+\n\
|
||||
outline: ${1:1px} ${2:solid} #${3:000};\n\
|
||||
snippet oc\n\
|
||||
outline-color: ${1:#000};\n\
|
||||
snippet oc:i\n\
|
||||
outline-color: invert;\n\
|
||||
snippet oo\n\
|
||||
outline-offset: ${1};\n\
|
||||
snippet os\n\
|
||||
outline-style: ${1};\n\
|
||||
snippet ow\n\
|
||||
outline-width: ${1};\n\
|
||||
snippet o\n\
|
||||
outline: ${1};\n\
|
||||
snippet o:n\n\
|
||||
outline: none;\n\
|
||||
snippet ovs\n\
|
||||
overflow-style: ${1};\n\
|
||||
snippet ovs:a\n\
|
||||
overflow-style: auto;\n\
|
||||
snippet ovs:mq\n\
|
||||
overflow-style: marquee;\n\
|
||||
snippet ovs:mv\n\
|
||||
overflow-style: move;\n\
|
||||
snippet ovs:p\n\
|
||||
overflow-style: panner;\n\
|
||||
snippet ovs:s\n\
|
||||
overflow-style: scrollbar;\n\
|
||||
snippet ovx\n\
|
||||
overflow-x: ${1};\n\
|
||||
snippet ovx:a\n\
|
||||
overflow-x: auto;\n\
|
||||
snippet ovx:h\n\
|
||||
overflow-x: hidden;\n\
|
||||
snippet ovx:s\n\
|
||||
overflow-x: scroll;\n\
|
||||
snippet ovx:v\n\
|
||||
overflow-x: visible;\n\
|
||||
snippet ovy\n\
|
||||
overflow-y: ${1};\n\
|
||||
snippet ovy:a\n\
|
||||
overflow-y: auto;\n\
|
||||
snippet ovy:h\n\
|
||||
overflow-y: hidden;\n\
|
||||
snippet ovy:s\n\
|
||||
overflow-y: scroll;\n\
|
||||
snippet ovy:v\n\
|
||||
overflow-y: visible;\n\
|
||||
snippet ov\n\
|
||||
overflow: ${1};\n\
|
||||
snippet ov:a\n\
|
||||
overflow: auto;\n\
|
||||
snippet ov:h\n\
|
||||
overflow: hidden;\n\
|
||||
snippet ov:s\n\
|
||||
overflow: scroll;\n\
|
||||
snippet ov:v\n\
|
||||
overflow: visible;\n\
|
||||
snippet pb\n\
|
||||
padding-bottom: ${1};\n\
|
||||
snippet pl\n\
|
||||
padding-left: ${1};\n\
|
||||
snippet pr\n\
|
||||
padding-right: ${1};\n\
|
||||
snippet pt\n\
|
||||
padding-top: ${1};\n\
|
||||
snippet p\n\
|
||||
padding: ${1};\n\
|
||||
snippet p:4\n\
|
||||
padding: ${1:0} ${2:0} ${3:0} ${4:0};\n\
|
||||
snippet p:3\n\
|
||||
padding: ${1:0} ${2:0} ${3:0};\n\
|
||||
snippet p:2\n\
|
||||
padding: ${1:0} ${2:0};\n\
|
||||
snippet p:0\n\
|
||||
padding: 0;\n\
|
||||
snippet pgba\n\
|
||||
page-break-after: ${1};\n\
|
||||
snippet pgba:aw\n\
|
||||
page-break-after: always;\n\
|
||||
snippet pgba:a\n\
|
||||
page-break-after: auto;\n\
|
||||
snippet pgba:l\n\
|
||||
page-break-after: left;\n\
|
||||
snippet pgba:r\n\
|
||||
page-break-after: right;\n\
|
||||
snippet pgbb\n\
|
||||
page-break-before: ${1};\n\
|
||||
snippet pgbb:aw\n\
|
||||
page-break-before: always;\n\
|
||||
snippet pgbb:a\n\
|
||||
page-break-before: auto;\n\
|
||||
snippet pgbb:l\n\
|
||||
page-break-before: left;\n\
|
||||
snippet pgbb:r\n\
|
||||
page-break-before: right;\n\
|
||||
snippet pgbi\n\
|
||||
page-break-inside: ${1};\n\
|
||||
snippet pgbi:a\n\
|
||||
page-break-inside: auto;\n\
|
||||
snippet pgbi:av\n\
|
||||
page-break-inside: avoid;\n\
|
||||
snippet pos\n\
|
||||
position: ${1};\n\
|
||||
snippet pos:a\n\
|
||||
position: absolute;\n\
|
||||
snippet pos:f\n\
|
||||
position: fixed;\n\
|
||||
snippet pos:r\n\
|
||||
position: relative;\n\
|
||||
snippet pos:s\n\
|
||||
position: static;\n\
|
||||
snippet q\n\
|
||||
quotes: ${1};\n\
|
||||
snippet q:en\n\
|
||||
quotes: '\\201C' '\\201D' '\\2018' '\\2019';\n\
|
||||
snippet q:n\n\
|
||||
quotes: none;\n\
|
||||
snippet q:ru\n\
|
||||
quotes: '\\00AB' '\\00BB' '\\201E' '\\201C';\n\
|
||||
snippet rz\n\
|
||||
resize: ${1};\n\
|
||||
snippet rz:b\n\
|
||||
resize: both;\n\
|
||||
snippet rz:h\n\
|
||||
resize: horizontal;\n\
|
||||
snippet rz:n\n\
|
||||
resize: none;\n\
|
||||
snippet rz:v\n\
|
||||
resize: vertical;\n\
|
||||
snippet r\n\
|
||||
right: ${1};\n\
|
||||
snippet r:a\n\
|
||||
right: auto;\n\
|
||||
snippet tbl\n\
|
||||
table-layout: ${1};\n\
|
||||
snippet tbl:a\n\
|
||||
table-layout: auto;\n\
|
||||
snippet tbl:f\n\
|
||||
table-layout: fixed;\n\
|
||||
snippet tal\n\
|
||||
text-align-last: ${1};\n\
|
||||
snippet tal:a\n\
|
||||
text-align-last: auto;\n\
|
||||
snippet tal:c\n\
|
||||
text-align-last: center;\n\
|
||||
snippet tal:l\n\
|
||||
text-align-last: left;\n\
|
||||
snippet tal:r\n\
|
||||
text-align-last: right;\n\
|
||||
snippet ta\n\
|
||||
text-align: ${1};\n\
|
||||
snippet ta:c\n\
|
||||
text-align: center;\n\
|
||||
snippet ta:l\n\
|
||||
text-align: left;\n\
|
||||
snippet ta:r\n\
|
||||
text-align: right;\n\
|
||||
snippet td\n\
|
||||
text-decoration: ${1};\n\
|
||||
snippet td:l\n\
|
||||
text-decoration: line-through;\n\
|
||||
snippet td:n\n\
|
||||
text-decoration: none;\n\
|
||||
snippet td:o\n\
|
||||
text-decoration: overline;\n\
|
||||
snippet td:u\n\
|
||||
text-decoration: underline;\n\
|
||||
snippet te\n\
|
||||
text-emphasis: ${1};\n\
|
||||
snippet te:ac\n\
|
||||
text-emphasis: accent;\n\
|
||||
snippet te:a\n\
|
||||
text-emphasis: after;\n\
|
||||
snippet te:b\n\
|
||||
text-emphasis: before;\n\
|
||||
snippet te:c\n\
|
||||
text-emphasis: circle;\n\
|
||||
snippet te:ds\n\
|
||||
text-emphasis: disc;\n\
|
||||
snippet te:dt\n\
|
||||
text-emphasis: dot;\n\
|
||||
snippet te:n\n\
|
||||
text-emphasis: none;\n\
|
||||
snippet th\n\
|
||||
text-height: ${1};\n\
|
||||
snippet th:a\n\
|
||||
text-height: auto;\n\
|
||||
snippet th:f\n\
|
||||
text-height: font-size;\n\
|
||||
snippet th:m\n\
|
||||
text-height: max-size;\n\
|
||||
snippet th:t\n\
|
||||
text-height: text-size;\n\
|
||||
snippet ti\n\
|
||||
text-indent: ${1};\n\
|
||||
snippet ti:-\n\
|
||||
text-indent: -9999px;\n\
|
||||
snippet tj\n\
|
||||
text-justify: ${1};\n\
|
||||
snippet tj:a\n\
|
||||
text-justify: auto;\n\
|
||||
snippet tj:d\n\
|
||||
text-justify: distribute;\n\
|
||||
snippet tj:ic\n\
|
||||
text-justify: inter-cluster;\n\
|
||||
snippet tj:ii\n\
|
||||
text-justify: inter-ideograph;\n\
|
||||
snippet tj:iw\n\
|
||||
text-justify: inter-word;\n\
|
||||
snippet tj:k\n\
|
||||
text-justify: kashida;\n\
|
||||
snippet tj:t\n\
|
||||
text-justify: tibetan;\n\
|
||||
snippet to+\n\
|
||||
text-outline: ${1:0} ${2:0} #${3:000};\n\
|
||||
snippet to\n\
|
||||
text-outline: ${1};\n\
|
||||
snippet to:n\n\
|
||||
text-outline: none;\n\
|
||||
snippet tr\n\
|
||||
text-replace: ${1};\n\
|
||||
snippet tr:n\n\
|
||||
text-replace: none;\n\
|
||||
snippet tsh+\n\
|
||||
text-shadow: ${1:0} ${2:0} ${3:0} #${4:000};\n\
|
||||
snippet tsh\n\
|
||||
text-shadow: ${1};\n\
|
||||
snippet tsh:n\n\
|
||||
text-shadow: none;\n\
|
||||
snippet tt\n\
|
||||
text-transform: ${1};\n\
|
||||
snippet tt:c\n\
|
||||
text-transform: capitalize;\n\
|
||||
snippet tt:l\n\
|
||||
text-transform: lowercase;\n\
|
||||
snippet tt:n\n\
|
||||
text-transform: none;\n\
|
||||
snippet tt:u\n\
|
||||
text-transform: uppercase;\n\
|
||||
snippet tw\n\
|
||||
text-wrap: ${1};\n\
|
||||
snippet tw:no\n\
|
||||
text-wrap: none;\n\
|
||||
snippet tw:n\n\
|
||||
text-wrap: normal;\n\
|
||||
snippet tw:s\n\
|
||||
text-wrap: suppress;\n\
|
||||
snippet tw:u\n\
|
||||
text-wrap: unrestricted;\n\
|
||||
snippet t\n\
|
||||
top: ${1};\n\
|
||||
snippet t:a\n\
|
||||
top: auto;\n\
|
||||
snippet va\n\
|
||||
vertical-align: ${1};\n\
|
||||
snippet va:bl\n\
|
||||
vertical-align: baseline;\n\
|
||||
snippet va:b\n\
|
||||
vertical-align: bottom;\n\
|
||||
snippet va:m\n\
|
||||
vertical-align: middle;\n\
|
||||
snippet va:sub\n\
|
||||
vertical-align: sub;\n\
|
||||
snippet va:sup\n\
|
||||
vertical-align: super;\n\
|
||||
snippet va:tb\n\
|
||||
vertical-align: text-bottom;\n\
|
||||
snippet va:tt\n\
|
||||
vertical-align: text-top;\n\
|
||||
snippet va:t\n\
|
||||
vertical-align: top;\n\
|
||||
snippet v\n\
|
||||
visibility: ${1};\n\
|
||||
snippet v:c\n\
|
||||
visibility: collapse;\n\
|
||||
snippet v:h\n\
|
||||
visibility: hidden;\n\
|
||||
snippet v:v\n\
|
||||
visibility: visible;\n\
|
||||
snippet whsc\n\
|
||||
white-space-collapse: ${1};\n\
|
||||
snippet whsc:ba\n\
|
||||
white-space-collapse: break-all;\n\
|
||||
snippet whsc:bs\n\
|
||||
white-space-collapse: break-strict;\n\
|
||||
snippet whsc:k\n\
|
||||
white-space-collapse: keep-all;\n\
|
||||
snippet whsc:l\n\
|
||||
white-space-collapse: loose;\n\
|
||||
snippet whsc:n\n\
|
||||
white-space-collapse: normal;\n\
|
||||
snippet whs\n\
|
||||
white-space: ${1};\n\
|
||||
snippet whs:n\n\
|
||||
white-space: normal;\n\
|
||||
snippet whs:nw\n\
|
||||
white-space: nowrap;\n\
|
||||
snippet whs:pl\n\
|
||||
white-space: pre-line;\n\
|
||||
snippet whs:pw\n\
|
||||
white-space: pre-wrap;\n\
|
||||
snippet whs:p\n\
|
||||
white-space: pre;\n\
|
||||
snippet wid\n\
|
||||
widows: ${1};\n\
|
||||
snippet w\n\
|
||||
width: ${1};\n\
|
||||
snippet w:a\n\
|
||||
width: auto;\n\
|
||||
snippet wob\n\
|
||||
word-break: ${1};\n\
|
||||
snippet wob:ba\n\
|
||||
word-break: break-all;\n\
|
||||
snippet wob:bs\n\
|
||||
word-break: break-strict;\n\
|
||||
snippet wob:k\n\
|
||||
word-break: keep-all;\n\
|
||||
snippet wob:l\n\
|
||||
word-break: loose;\n\
|
||||
snippet wob:n\n\
|
||||
word-break: normal;\n\
|
||||
snippet wos\n\
|
||||
word-spacing: ${1};\n\
|
||||
snippet wow\n\
|
||||
word-wrap: ${1};\n\
|
||||
snippet wow:no\n\
|
||||
word-wrap: none;\n\
|
||||
snippet wow:n\n\
|
||||
word-wrap: normal;\n\
|
||||
snippet wow:s\n\
|
||||
word-wrap: suppress;\n\
|
||||
snippet wow:u\n\
|
||||
word-wrap: unrestricted;\n\
|
||||
snippet z\n\
|
||||
z-index: ${1};\n\
|
||||
snippet z:a\n\
|
||||
z-index: auto;\n\
|
||||
snippet zoo\n\
|
||||
zoom: 1;\n\
|
||||
";
|
||||
exports.scope = "css";
|
||||
|
||||
});
|
||||
835
modules/backend/assets/vendor/ace/snippets/html.js
vendored
Normal file
835
modules/backend/assets/vendor/ace/snippets/html.js
vendored
Normal file
@@ -0,0 +1,835 @@
|
||||
ace.define("ace/snippets/html",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "# Some useful Unicode entities\n\
|
||||
# Non-Breaking Space\n\
|
||||
snippet nbs\n\
|
||||
\n\
|
||||
# ←\n\
|
||||
snippet left\n\
|
||||
←\n\
|
||||
# →\n\
|
||||
snippet right\n\
|
||||
→\n\
|
||||
# ↑\n\
|
||||
snippet up\n\
|
||||
↑\n\
|
||||
# ↓\n\
|
||||
snippet down\n\
|
||||
↓\n\
|
||||
# ↩\n\
|
||||
snippet return\n\
|
||||
↩\n\
|
||||
# ⇤\n\
|
||||
snippet backtab\n\
|
||||
⇤\n\
|
||||
# ⇥\n\
|
||||
snippet tab\n\
|
||||
⇥\n\
|
||||
# ⇧\n\
|
||||
snippet shift\n\
|
||||
⇧\n\
|
||||
# ⌃\n\
|
||||
snippet ctrl\n\
|
||||
⌃\n\
|
||||
# ⌅\n\
|
||||
snippet enter\n\
|
||||
⌅\n\
|
||||
# ⌘\n\
|
||||
snippet cmd\n\
|
||||
⌘\n\
|
||||
# ⌥\n\
|
||||
snippet option\n\
|
||||
⌥\n\
|
||||
# ⌦\n\
|
||||
snippet delete\n\
|
||||
⌦\n\
|
||||
# ⌫\n\
|
||||
snippet backspace\n\
|
||||
⌫\n\
|
||||
# ⎋\n\
|
||||
snippet esc\n\
|
||||
⎋\n\
|
||||
# Generic Doctype\n\
|
||||
snippet doctype HTML 4.01 Strict\n\
|
||||
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\n\
|
||||
\"http://www.w3.org/TR/html4/strict.dtd\">\n\
|
||||
snippet doctype HTML 4.01 Transitional\n\
|
||||
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n\
|
||||
\"http://www.w3.org/TR/html4/loose.dtd\">\n\
|
||||
snippet doctype HTML 5\n\
|
||||
<!DOCTYPE HTML>\n\
|
||||
snippet doctype XHTML 1.0 Frameset\n\
|
||||
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n\
|
||||
\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n\
|
||||
snippet doctype XHTML 1.0 Strict\n\
|
||||
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n\
|
||||
\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n\
|
||||
snippet doctype XHTML 1.0 Transitional\n\
|
||||
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n\
|
||||
\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n\
|
||||
snippet doctype XHTML 1.1\n\
|
||||
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\"\n\
|
||||
\"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n\
|
||||
# HTML Doctype 4.01 Strict\n\
|
||||
snippet docts\n\
|
||||
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\n\
|
||||
\"http://www.w3.org/TR/html4/strict.dtd\">\n\
|
||||
# HTML Doctype 4.01 Transitional\n\
|
||||
snippet doct\n\
|
||||
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\n\
|
||||
\"http://www.w3.org/TR/html4/loose.dtd\">\n\
|
||||
# HTML Doctype 5\n\
|
||||
snippet doct5\n\
|
||||
<!DOCTYPE HTML>\n\
|
||||
# XHTML Doctype 1.0 Frameset\n\
|
||||
snippet docxf\n\
|
||||
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Frameset//EN\"\n\
|
||||
\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd\">\n\
|
||||
# XHTML Doctype 1.0 Strict\n\
|
||||
snippet docxs\n\
|
||||
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n\
|
||||
\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n\
|
||||
# XHTML Doctype 1.0 Transitional\n\
|
||||
snippet docxt\n\
|
||||
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n\
|
||||
\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n\
|
||||
# XHTML Doctype 1.1\n\
|
||||
snippet docx\n\
|
||||
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\"\n\
|
||||
\"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n\
|
||||
# Attributes\n\
|
||||
snippet attr\n\
|
||||
${1:attribute}=\"${2:property}\"\n\
|
||||
snippet attr+\n\
|
||||
${1:attribute}=\"${2:property}\" attr+${3}\n\
|
||||
snippet .\n\
|
||||
class=\"${1}\"${2}\n\
|
||||
snippet #\n\
|
||||
id=\"${1}\"${2}\n\
|
||||
snippet alt\n\
|
||||
alt=\"${1}\"${2}\n\
|
||||
snippet charset\n\
|
||||
charset=\"${1:utf-8}\"${2}\n\
|
||||
snippet data\n\
|
||||
data-${1}=\"${2:$1}\"${3}\n\
|
||||
snippet for\n\
|
||||
for=\"${1}\"${2}\n\
|
||||
snippet height\n\
|
||||
height=\"${1}\"${2}\n\
|
||||
snippet href\n\
|
||||
href=\"${1:#}\"${2}\n\
|
||||
snippet lang\n\
|
||||
lang=\"${1:en}\"${2}\n\
|
||||
snippet media\n\
|
||||
media=\"${1}\"${2}\n\
|
||||
snippet name\n\
|
||||
name=\"${1}\"${2}\n\
|
||||
snippet rel\n\
|
||||
rel=\"${1}\"${2}\n\
|
||||
snippet scope\n\
|
||||
scope=\"${1:row}\"${2}\n\
|
||||
snippet src\n\
|
||||
src=\"${1}\"${2}\n\
|
||||
snippet title=\n\
|
||||
title=\"${1}\"${2}\n\
|
||||
snippet type\n\
|
||||
type=\"${1}\"${2}\n\
|
||||
snippet value\n\
|
||||
value=\"${1}\"${2}\n\
|
||||
snippet width\n\
|
||||
width=\"${1}\"${2}\n\
|
||||
# Elements\n\
|
||||
snippet a\n\
|
||||
<a href=\"${1:#}\">${2:$1}</a>\n\
|
||||
snippet a.\n\
|
||||
<a class=\"${1}\" href=\"${2:#}\">${3:$1}</a>\n\
|
||||
snippet a#\n\
|
||||
<a id=\"${1}\" href=\"${2:#}\">${3:$1}</a>\n\
|
||||
snippet a:ext\n\
|
||||
<a href=\"http://${1:example.com}\">${2:$1}</a>\n\
|
||||
snippet a:mail\n\
|
||||
<a href=\"mailto:${1:joe@example.com}?subject=${2:feedback}\">${3:email me}</a>\n\
|
||||
snippet abbr\n\
|
||||
<abbr title=\"${1}\">${2}</abbr>\n\
|
||||
snippet address\n\
|
||||
<address>\n\
|
||||
${1}\n\
|
||||
</address>\n\
|
||||
snippet area\n\
|
||||
<area shape=\"${1:rect}\" coords=\"${2}\" href=\"${3}\" alt=\"${4}\" />\n\
|
||||
snippet area+\n\
|
||||
<area shape=\"${1:rect}\" coords=\"${2}\" href=\"${3}\" alt=\"${4}\" />\n\
|
||||
area+${5}\n\
|
||||
snippet area:c\n\
|
||||
<area shape=\"circle\" coords=\"${1}\" href=\"${2}\" alt=\"${3}\" />\n\
|
||||
snippet area:d\n\
|
||||
<area shape=\"default\" coords=\"${1}\" href=\"${2}\" alt=\"${3}\" />\n\
|
||||
snippet area:p\n\
|
||||
<area shape=\"poly\" coords=\"${1}\" href=\"${2}\" alt=\"${3}\" />\n\
|
||||
snippet area:r\n\
|
||||
<area shape=\"rect\" coords=\"${1}\" href=\"${2}\" alt=\"${3}\" />\n\
|
||||
snippet article\n\
|
||||
<article>\n\
|
||||
${1}\n\
|
||||
</article>\n\
|
||||
snippet article.\n\
|
||||
<article class=\"${1}\">\n\
|
||||
${2}\n\
|
||||
</article>\n\
|
||||
snippet article#\n\
|
||||
<article id=\"${1}\">\n\
|
||||
${2}\n\
|
||||
</article>\n\
|
||||
snippet aside\n\
|
||||
<aside>\n\
|
||||
${1}\n\
|
||||
</aside>\n\
|
||||
snippet aside.\n\
|
||||
<aside class=\"${1}\">\n\
|
||||
${2}\n\
|
||||
</aside>\n\
|
||||
snippet aside#\n\
|
||||
<aside id=\"${1}\">\n\
|
||||
${2}\n\
|
||||
</aside>\n\
|
||||
snippet audio\n\
|
||||
<audio src=\"${1}>${2}</audio>\n\
|
||||
snippet b\n\
|
||||
<b>${1}</b>\n\
|
||||
snippet base\n\
|
||||
<base href=\"${1}\" target=\"${2}\" />\n\
|
||||
snippet bdi\n\
|
||||
<bdi>${1}</bdo>\n\
|
||||
snippet bdo\n\
|
||||
<bdo dir=\"${1}\">${2}</bdo>\n\
|
||||
snippet bdo:l\n\
|
||||
<bdo dir=\"ltr\">${1}</bdo>\n\
|
||||
snippet bdo:r\n\
|
||||
<bdo dir=\"rtl\">${1}</bdo>\n\
|
||||
snippet blockquote\n\
|
||||
<blockquote>\n\
|
||||
${1}\n\
|
||||
</blockquote>\n\
|
||||
snippet body\n\
|
||||
<body>\n\
|
||||
${1}\n\
|
||||
</body>\n\
|
||||
snippet br\n\
|
||||
<br />${1}\n\
|
||||
snippet button\n\
|
||||
<button type=\"${1:submit}\">${2}</button>\n\
|
||||
snippet button.\n\
|
||||
<button class=\"${1:button}\" type=\"${2:submit}\">${3}</button>\n\
|
||||
snippet button#\n\
|
||||
<button id=\"${1}\" type=\"${2:submit}\">${3}</button>\n\
|
||||
snippet button:s\n\
|
||||
<button type=\"submit\">${1}</button>\n\
|
||||
snippet button:r\n\
|
||||
<button type=\"reset\">${1}</button>\n\
|
||||
snippet canvas\n\
|
||||
<canvas>\n\
|
||||
${1}\n\
|
||||
</canvas>\n\
|
||||
snippet caption\n\
|
||||
<caption>${1}</caption>\n\
|
||||
snippet cite\n\
|
||||
<cite>${1}</cite>\n\
|
||||
snippet code\n\
|
||||
<code>${1}</code>\n\
|
||||
snippet col\n\
|
||||
<col />${1}\n\
|
||||
snippet col+\n\
|
||||
<col />\n\
|
||||
col+${1}\n\
|
||||
snippet colgroup\n\
|
||||
<colgroup>\n\
|
||||
${1}\n\
|
||||
</colgroup>\n\
|
||||
snippet colgroup+\n\
|
||||
<colgroup>\n\
|
||||
<col />\n\
|
||||
col+${1}\n\
|
||||
</colgroup>\n\
|
||||
snippet command\n\
|
||||
<command type=\"command\" label=\"${1}\" icon=\"${2}\" />\n\
|
||||
snippet command:c\n\
|
||||
<command type=\"checkbox\" label=\"${1}\" icon=\"${2}\" />\n\
|
||||
snippet command:r\n\
|
||||
<command type=\"radio\" radiogroup=\"${1}\" label=\"${2}\" icon=\"${3}\" />\n\
|
||||
snippet datagrid\n\
|
||||
<datagrid>\n\
|
||||
${1}\n\
|
||||
</datagrid>\n\
|
||||
snippet datalist\n\
|
||||
<datalist>\n\
|
||||
${1}\n\
|
||||
</datalist>\n\
|
||||
snippet datatemplate\n\
|
||||
<datatemplate>\n\
|
||||
${1}\n\
|
||||
</datatemplate>\n\
|
||||
snippet dd\n\
|
||||
<dd>${1}</dd>\n\
|
||||
snippet dd.\n\
|
||||
<dd class=\"${1}\">${2}</dd>\n\
|
||||
snippet dd#\n\
|
||||
<dd id=\"${1}\">${2}</dd>\n\
|
||||
snippet del\n\
|
||||
<del>${1}</del>\n\
|
||||
snippet details\n\
|
||||
<details>${1}</details>\n\
|
||||
snippet dfn\n\
|
||||
<dfn>${1}</dfn>\n\
|
||||
snippet dialog\n\
|
||||
<dialog>\n\
|
||||
${1}\n\
|
||||
</dialog>\n\
|
||||
snippet div\n\
|
||||
<div>\n\
|
||||
${1}\n\
|
||||
</div>\n\
|
||||
snippet div.\n\
|
||||
<div class=\"${1}\">\n\
|
||||
${2}\n\
|
||||
</div>\n\
|
||||
snippet div#\n\
|
||||
<div id=\"${1}\">\n\
|
||||
${2}\n\
|
||||
</div>\n\
|
||||
snippet dl\n\
|
||||
<dl>\n\
|
||||
${1}\n\
|
||||
</dl>\n\
|
||||
snippet dl.\n\
|
||||
<dl class=\"${1}\">\n\
|
||||
${2}\n\
|
||||
</dl>\n\
|
||||
snippet dl#\n\
|
||||
<dl id=\"${1}\">\n\
|
||||
${2}\n\
|
||||
</dl>\n\
|
||||
snippet dl+\n\
|
||||
<dl>\n\
|
||||
<dt>${1}</dt>\n\
|
||||
<dd>${2}</dd>\n\
|
||||
dt+${3}\n\
|
||||
</dl>\n\
|
||||
snippet dt\n\
|
||||
<dt>${1}</dt>\n\
|
||||
snippet dt.\n\
|
||||
<dt class=\"${1}\">${2}</dt>\n\
|
||||
snippet dt#\n\
|
||||
<dt id=\"${1}\">${2}</dt>\n\
|
||||
snippet dt+\n\
|
||||
<dt>${1}</dt>\n\
|
||||
<dd>${2}</dd>\n\
|
||||
dt+${3}\n\
|
||||
snippet em\n\
|
||||
<em>${1}</em>\n\
|
||||
snippet embed\n\
|
||||
<embed src=${1} type=\"${2} />\n\
|
||||
snippet fieldset\n\
|
||||
<fieldset>\n\
|
||||
${1}\n\
|
||||
</fieldset>\n\
|
||||
snippet fieldset.\n\
|
||||
<fieldset class=\"${1}\">\n\
|
||||
${2}\n\
|
||||
</fieldset>\n\
|
||||
snippet fieldset#\n\
|
||||
<fieldset id=\"${1}\">\n\
|
||||
${2}\n\
|
||||
</fieldset>\n\
|
||||
snippet fieldset+\n\
|
||||
<fieldset>\n\
|
||||
<legend><span>${1}</span></legend>\n\
|
||||
${2}\n\
|
||||
</fieldset>\n\
|
||||
fieldset+${3}\n\
|
||||
snippet figcaption\n\
|
||||
<figcaption>${1}</figcaption>\n\
|
||||
snippet figure\n\
|
||||
<figure>${1}</figure>\n\
|
||||
snippet footer\n\
|
||||
<footer>\n\
|
||||
${1}\n\
|
||||
</footer>\n\
|
||||
snippet footer.\n\
|
||||
<footer class=\"${1}\">\n\
|
||||
${2}\n\
|
||||
</footer>\n\
|
||||
snippet footer#\n\
|
||||
<footer id=\"${1}\">\n\
|
||||
${2}\n\
|
||||
</footer>\n\
|
||||
snippet form\n\
|
||||
<form action=\"${1}\" method=\"${2:get}\" accept-charset=\"utf-8\">\n\
|
||||
${3}\n\
|
||||
</form>\n\
|
||||
snippet form.\n\
|
||||
<form class=\"${1}\" action=\"${2}\" method=\"${3:get}\" accept-charset=\"utf-8\">\n\
|
||||
${4}\n\
|
||||
</form>\n\
|
||||
snippet form#\n\
|
||||
<form id=\"${1}\" action=\"${2}\" method=\"${3:get}\" accept-charset=\"utf-8\">\n\
|
||||
${4}\n\
|
||||
</form>\n\
|
||||
snippet h1\n\
|
||||
<h1>${1}</h1>\n\
|
||||
snippet h1.\n\
|
||||
<h1 class=\"${1}\">${2}</h1>\n\
|
||||
snippet h1#\n\
|
||||
<h1 id=\"${1}\">${2}</h1>\n\
|
||||
snippet h2\n\
|
||||
<h2>${1}</h2>\n\
|
||||
snippet h2.\n\
|
||||
<h2 class=\"${1}\">${2}</h2>\n\
|
||||
snippet h2#\n\
|
||||
<h2 id=\"${1}\">${2}</h2>\n\
|
||||
snippet h3\n\
|
||||
<h3>${1}</h3>\n\
|
||||
snippet h3.\n\
|
||||
<h3 class=\"${1}\">${2}</h3>\n\
|
||||
snippet h3#\n\
|
||||
<h3 id=\"${1}\">${2}</h3>\n\
|
||||
snippet h4\n\
|
||||
<h4>${1}</h4>\n\
|
||||
snippet h4.\n\
|
||||
<h4 class=\"${1}\">${2}</h4>\n\
|
||||
snippet h4#\n\
|
||||
<h4 id=\"${1}\">${2}</h4>\n\
|
||||
snippet h5\n\
|
||||
<h5>${1}</h5>\n\
|
||||
snippet h5.\n\
|
||||
<h5 class=\"${1}\">${2}</h5>\n\
|
||||
snippet h5#\n\
|
||||
<h5 id=\"${1}\">${2}</h5>\n\
|
||||
snippet h6\n\
|
||||
<h6>${1}</h6>\n\
|
||||
snippet h6.\n\
|
||||
<h6 class=\"${1}\">${2}</h6>\n\
|
||||
snippet h6#\n\
|
||||
<h6 id=\"${1}\">${2}</h6>\n\
|
||||
snippet head\n\
|
||||
<head>\n\
|
||||
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />\n\
|
||||
\n\
|
||||
<title>${1:`substitute(Filename('', 'Page Title'), '^.', '\\u&', '')`}</title>\n\
|
||||
${2}\n\
|
||||
</head>\n\
|
||||
snippet header\n\
|
||||
<header>\n\
|
||||
${1}\n\
|
||||
</header>\n\
|
||||
snippet header.\n\
|
||||
<header class=\"${1}\">\n\
|
||||
${2}\n\
|
||||
</header>\n\
|
||||
snippet header#\n\
|
||||
<header id=\"${1}\">\n\
|
||||
${2}\n\
|
||||
</header>\n\
|
||||
snippet hgroup\n\
|
||||
<hgroup>\n\
|
||||
${1}\n\
|
||||
</hgroup>\n\
|
||||
snippet hgroup.\n\
|
||||
<hgroup class=\"${1}>\n\
|
||||
${2}\n\
|
||||
</hgroup>\n\
|
||||
snippet hr\n\
|
||||
<hr />${1}\n\
|
||||
snippet html\n\
|
||||
<html>\n\
|
||||
${1}\n\
|
||||
</html>\n\
|
||||
snippet xhtml\n\
|
||||
<html xmlns=\"http://www.w3.org/1999/xhtml\">\n\
|
||||
${1}\n\
|
||||
</html>\n\
|
||||
snippet html5\n\
|
||||
<!DOCTYPE html>\n\
|
||||
<html>\n\
|
||||
<head>\n\
|
||||
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />\n\
|
||||
<title>${1:`substitute(Filename('', 'Page Title'), '^.', '\\u&', '')`}</title>\n\
|
||||
${2:meta}\n\
|
||||
</head>\n\
|
||||
<body>\n\
|
||||
${3:body}\n\
|
||||
</body>\n\
|
||||
</html>\n\
|
||||
snippet i\n\
|
||||
<i>${1}</i>\n\
|
||||
snippet iframe\n\
|
||||
<iframe src=\"${1}\" frameborder=\"0\"></iframe>${2}\n\
|
||||
snippet iframe.\n\
|
||||
<iframe class=\"${1}\" src=\"${2}\" frameborder=\"0\"></iframe>${3}\n\
|
||||
snippet iframe#\n\
|
||||
<iframe id=\"${1}\" src=\"${2}\" frameborder=\"0\"></iframe>${3}\n\
|
||||
snippet img\n\
|
||||
<img src=\"${1}\" alt=\"${2}\" />${3}\n\
|
||||
snippet img.\n\
|
||||
<img class=\"${1}\" src=\"${2}\" alt=\"${3}\" />${4}\n\
|
||||
snippet img#\n\
|
||||
<img id=\"${1}\" src=\"${2}\" alt=\"${3}\" />${4}\n\
|
||||
snippet input\n\
|
||||
<input type=\"${1:text/submit/hidden/button/image}\" name=\"${2}\" id=\"${3:$2}\" value=\"${4}\" />${5}\n\
|
||||
snippet input.\n\
|
||||
<input class=\"${1}\" type=\"${2:text/submit/hidden/button/image}\" name=\"${3}\" id=\"${4:$3}\" value=\"${5}\" />${6}\n\
|
||||
snippet input:text\n\
|
||||
<input type=\"text\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
|
||||
snippet input:submit\n\
|
||||
<input type=\"submit\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
|
||||
snippet input:hidden\n\
|
||||
<input type=\"hidden\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
|
||||
snippet input:button\n\
|
||||
<input type=\"button\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
|
||||
snippet input:image\n\
|
||||
<input type=\"image\" name=\"${1}\" id=\"${2:$1}\" src=\"${3}\" alt=\"${4}\" />${5}\n\
|
||||
snippet input:checkbox\n\
|
||||
<input type=\"checkbox\" name=\"${1}\" id=\"${2:$1}\" />${3}\n\
|
||||
snippet input:radio\n\
|
||||
<input type=\"radio\" name=\"${1}\" id=\"${2:$1}\" />${3}\n\
|
||||
snippet input:color\n\
|
||||
<input type=\"color\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
|
||||
snippet input:date\n\
|
||||
<input type=\"date\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
|
||||
snippet input:datetime\n\
|
||||
<input type=\"datetime\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
|
||||
snippet input:datetime-local\n\
|
||||
<input type=\"datetime-local\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
|
||||
snippet input:email\n\
|
||||
<input type=\"email\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
|
||||
snippet input:file\n\
|
||||
<input type=\"file\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
|
||||
snippet input:month\n\
|
||||
<input type=\"month\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
|
||||
snippet input:number\n\
|
||||
<input type=\"number\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
|
||||
snippet input:password\n\
|
||||
<input type=\"password\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
|
||||
snippet input:range\n\
|
||||
<input type=\"range\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
|
||||
snippet input:reset\n\
|
||||
<input type=\"reset\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
|
||||
snippet input:search\n\
|
||||
<input type=\"search\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
|
||||
snippet input:time\n\
|
||||
<input type=\"time\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
|
||||
snippet input:url\n\
|
||||
<input type=\"url\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
|
||||
snippet input:week\n\
|
||||
<input type=\"week\" name=\"${1}\" id=\"${2:$1}\" value=\"${3}\" />${4}\n\
|
||||
snippet ins\n\
|
||||
<ins>${1}</ins>\n\
|
||||
snippet kbd\n\
|
||||
<kbd>${1}</kbd>\n\
|
||||
snippet keygen\n\
|
||||
<keygen>${1}</keygen>\n\
|
||||
snippet label\n\
|
||||
<label for=\"${2:$1}\">${1}</label>\n\
|
||||
snippet label:i\n\
|
||||
<label for=\"${2:$1}\">${1}</label>\n\
|
||||
<input type=\"${3:text/submit/hidden/button}\" name=\"${4:$2}\" id=\"${5:$2}\" value=\"${6}\" />${7}\n\
|
||||
snippet label:s\n\
|
||||
<label for=\"${2:$1}\">${1}</label>\n\
|
||||
<select name=\"${3:$2}\" id=\"${4:$2}\">\n\
|
||||
<option value=\"${5}\">${6:$5}</option>\n\
|
||||
</select>\n\
|
||||
snippet legend\n\
|
||||
<legend>${1}</legend>\n\
|
||||
snippet legend+\n\
|
||||
<legend><span>${1}</span></legend>\n\
|
||||
snippet li\n\
|
||||
<li>${1}</li>\n\
|
||||
snippet li.\n\
|
||||
<li class=\"${1}\">${2}</li>\n\
|
||||
snippet li+\n\
|
||||
<li>${1}</li>\n\
|
||||
li+${2}\n\
|
||||
snippet lia\n\
|
||||
<li><a href=\"${2:#}\">${1}</a></li>\n\
|
||||
snippet lia+\n\
|
||||
<li><a href=\"${2:#}\">${1}</a></li>\n\
|
||||
lia+${3}\n\
|
||||
snippet link\n\
|
||||
<link rel=\"${1}\" href=\"${2}\" title=\"${3}\" type=\"${4}\" />${5}\n\
|
||||
snippet link:atom\n\
|
||||
<link rel=\"alternate\" href=\"${1:atom.xml}\" title=\"Atom\" type=\"application/atom+xml\" />${2}\n\
|
||||
snippet link:css\n\
|
||||
<link rel=\"stylesheet\" href=\"${2:style.css}\" type=\"text/css\" media=\"${3:all}\" />${4}\n\
|
||||
snippet link:favicon\n\
|
||||
<link rel=\"shortcut icon\" href=\"${1:favicon.ico}\" type=\"image/x-icon\" />${2}\n\
|
||||
snippet link:rss\n\
|
||||
<link rel=\"alternate\" href=\"${1:rss.xml}\" title=\"RSS\" type=\"application/atom+xml\" />${2}\n\
|
||||
snippet link:touch\n\
|
||||
<link rel=\"apple-touch-icon\" href=\"${1:favicon.png}\" />${2}\n\
|
||||
snippet map\n\
|
||||
<map name=\"${1}\">\n\
|
||||
${2}\n\
|
||||
</map>\n\
|
||||
snippet map.\n\
|
||||
<map class=\"${1}\" name=\"${2}\">\n\
|
||||
${3}\n\
|
||||
</map>\n\
|
||||
snippet map#\n\
|
||||
<map name=\"${1}\" id=\"${2:$1}>\n\
|
||||
${3}\n\
|
||||
</map>\n\
|
||||
snippet map+\n\
|
||||
<map name=\"${1}\">\n\
|
||||
<area shape=\"${2}\" coords=\"${3}\" href=\"${4}\" alt=\"${5}\" />${6}\n\
|
||||
</map>${7}\n\
|
||||
snippet mark\n\
|
||||
<mark>${1}</mark>\n\
|
||||
snippet menu\n\
|
||||
<menu>\n\
|
||||
${1}\n\
|
||||
</menu>\n\
|
||||
snippet menu:c\n\
|
||||
<menu type=\"context\">\n\
|
||||
${1}\n\
|
||||
</menu>\n\
|
||||
snippet menu:t\n\
|
||||
<menu type=\"toolbar\">\n\
|
||||
${1}\n\
|
||||
</menu>\n\
|
||||
snippet meta\n\
|
||||
<meta http-equiv=\"${1}\" content=\"${2}\" />${3}\n\
|
||||
snippet meta:compat\n\
|
||||
<meta http-equiv=\"X-UA-Compatible\" content=\"IE=${1:7,8,edge}\" />${3}\n\
|
||||
snippet meta:refresh\n\
|
||||
<meta http-equiv=\"refresh\" content=\"text/html;charset=UTF-8\" />${3}\n\
|
||||
snippet meta:utf\n\
|
||||
<meta http-equiv=\"content-type\" content=\"text/html;charset=UTF-8\" />${3}\n\
|
||||
snippet meter\n\
|
||||
<meter>${1}</meter>\n\
|
||||
snippet nav\n\
|
||||
<nav>\n\
|
||||
${1}\n\
|
||||
</nav>\n\
|
||||
snippet nav.\n\
|
||||
<nav class=\"${1}\">\n\
|
||||
${2}\n\
|
||||
</nav>\n\
|
||||
snippet nav#\n\
|
||||
<nav id=\"${1}\">\n\
|
||||
${2}\n\
|
||||
</nav>\n\
|
||||
snippet noscript\n\
|
||||
<noscript>\n\
|
||||
${1}\n\
|
||||
</noscript>\n\
|
||||
snippet object\n\
|
||||
<object data=\"${1}\" type=\"${2}\">\n\
|
||||
${3}\n\
|
||||
</object>${4}\n\
|
||||
# Embed QT Movie\n\
|
||||
snippet movie\n\
|
||||
<object width=\"$2\" height=\"$3\" classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\"\n\
|
||||
codebase=\"http://www.apple.com/qtactivex/qtplugin.cab\">\n\
|
||||
<param name=\"src\" value=\"$1\" />\n\
|
||||
<param name=\"controller\" value=\"$4\" />\n\
|
||||
<param name=\"autoplay\" value=\"$5\" />\n\
|
||||
<embed src=\"${1:movie.mov}\"\n\
|
||||
width=\"${2:320}\" height=\"${3:240}\"\n\
|
||||
controller=\"${4:true}\" autoplay=\"${5:true}\"\n\
|
||||
scale=\"tofit\" cache=\"true\"\n\
|
||||
pluginspage=\"http://www.apple.com/quicktime/download/\" />\n\
|
||||
</object>${6}\n\
|
||||
snippet ol\n\
|
||||
<ol>\n\
|
||||
${1}\n\
|
||||
</ol>\n\
|
||||
snippet ol.\n\
|
||||
<ol class=\"${1}>\n\
|
||||
${2}\n\
|
||||
</ol>\n\
|
||||
snippet ol#\n\
|
||||
<ol id=\"${1}>\n\
|
||||
${2}\n\
|
||||
</ol>\n\
|
||||
snippet ol+\n\
|
||||
<ol>\n\
|
||||
<li>${1}</li>\n\
|
||||
li+${2}\n\
|
||||
</ol>\n\
|
||||
snippet opt\n\
|
||||
<option value=\"${1}\">${2:$1}</option>\n\
|
||||
snippet opt+\n\
|
||||
<option value=\"${1}\">${2:$1}</option>\n\
|
||||
opt+${3}\n\
|
||||
snippet optt\n\
|
||||
<option>${1}</option>\n\
|
||||
snippet optgroup\n\
|
||||
<optgroup>\n\
|
||||
<option value=\"${1}\">${2:$1}</option>\n\
|
||||
opt+${3}\n\
|
||||
</optgroup>\n\
|
||||
snippet output\n\
|
||||
<output>${1}</output>\n\
|
||||
snippet p\n\
|
||||
<p>${1}</p>\n\
|
||||
snippet param\n\
|
||||
<param name=\"${1}\" value=\"${2}\" />${3}\n\
|
||||
snippet pre\n\
|
||||
<pre>\n\
|
||||
${1}\n\
|
||||
</pre>\n\
|
||||
snippet progress\n\
|
||||
<progress>${1}</progress>\n\
|
||||
snippet q\n\
|
||||
<q>${1}</q>\n\
|
||||
snippet rp\n\
|
||||
<rp>${1}</rp>\n\
|
||||
snippet rt\n\
|
||||
<rt>${1}</rt>\n\
|
||||
snippet ruby\n\
|
||||
<ruby>\n\
|
||||
<rp><rt>${1}</rt></rp>\n\
|
||||
</ruby>\n\
|
||||
snippet s\n\
|
||||
<s>${1}</s>\n\
|
||||
snippet samp\n\
|
||||
<samp>\n\
|
||||
${1}\n\
|
||||
</samp>\n\
|
||||
snippet script\n\
|
||||
<script type=\"text/javascript\" charset=\"utf-8\">\n\
|
||||
${1}\n\
|
||||
</script>\n\
|
||||
snippet scriptsrc\n\
|
||||
<script src=\"${1}.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n\
|
||||
snippet section\n\
|
||||
<section>\n\
|
||||
${1}\n\
|
||||
</section>\n\
|
||||
snippet section.\n\
|
||||
<section class=\"${1}\">\n\
|
||||
${2}\n\
|
||||
</section>\n\
|
||||
snippet section#\n\
|
||||
<section id=\"${1}\">\n\
|
||||
${2}\n\
|
||||
</section>\n\
|
||||
snippet select\n\
|
||||
<select name=\"${1}\" id=\"${2:$1}\">\n\
|
||||
${3}\n\
|
||||
</select>\n\
|
||||
snippet select.\n\
|
||||
<select name=\"${1}\" id=\"${2:$1}\" class=\"${3}>\n\
|
||||
${4}\n\
|
||||
</select>\n\
|
||||
snippet select+\n\
|
||||
<select name=\"${1}\" id=\"${2:$1}\">\n\
|
||||
<option value=\"${3}\">${4:$3}</option>\n\
|
||||
opt+${5}\n\
|
||||
</select>\n\
|
||||
snippet small\n\
|
||||
<small>${1}</small>\n\
|
||||
snippet source\n\
|
||||
<source src=\"${1}\" type=\"${2}\" media=\"${3}\" />\n\
|
||||
snippet span\n\
|
||||
<span>${1}</span>\n\
|
||||
snippet strong\n\
|
||||
<strong>${1}</strong>\n\
|
||||
snippet style\n\
|
||||
<style type=\"text/css\" media=\"${1:all}\">\n\
|
||||
${2}\n\
|
||||
</style>\n\
|
||||
snippet sub\n\
|
||||
<sub>${1}</sub>\n\
|
||||
snippet summary\n\
|
||||
<summary>\n\
|
||||
${1}\n\
|
||||
</summary>\n\
|
||||
snippet sup\n\
|
||||
<sup>${1}</sup>\n\
|
||||
snippet table\n\
|
||||
<table border=\"${1:0}\">\n\
|
||||
${2}\n\
|
||||
</table>\n\
|
||||
snippet table.\n\
|
||||
<table class=\"${1}\" border=\"${2:0}\">\n\
|
||||
${3}\n\
|
||||
</table>\n\
|
||||
snippet table#\n\
|
||||
<table id=\"${1}\" border=\"${2:0}\">\n\
|
||||
${3}\n\
|
||||
</table>\n\
|
||||
snippet tbody\n\
|
||||
<tbody>\n\
|
||||
${1}\n\
|
||||
</tbody>\n\
|
||||
snippet td\n\
|
||||
<td>${1}</td>\n\
|
||||
snippet td.\n\
|
||||
<td class=\"${1}\">${2}</td>\n\
|
||||
snippet td#\n\
|
||||
<td id=\"${1}\">${2}</td>\n\
|
||||
snippet td+\n\
|
||||
<td>${1}</td>\n\
|
||||
td+${2}\n\
|
||||
snippet textarea\n\
|
||||
<textarea name=\"${1}\" id=${2:$1} rows=\"${3:8}\" cols=\"${4:40}\">${5}</textarea>${6}\n\
|
||||
snippet tfoot\n\
|
||||
<tfoot>\n\
|
||||
${1}\n\
|
||||
</tfoot>\n\
|
||||
snippet th\n\
|
||||
<th>${1}</th>\n\
|
||||
snippet th.\n\
|
||||
<th class=\"${1}\">${2}</th>\n\
|
||||
snippet th#\n\
|
||||
<th id=\"${1}\">${2}</th>\n\
|
||||
snippet th+\n\
|
||||
<th>${1}</th>\n\
|
||||
th+${2}\n\
|
||||
snippet thead\n\
|
||||
<thead>\n\
|
||||
${1}\n\
|
||||
</thead>\n\
|
||||
snippet time\n\
|
||||
<time datetime=\"${1}\" pubdate=\"${2:$1}>${3:$1}</time>\n\
|
||||
snippet title\n\
|
||||
<title>${1:`substitute(Filename('', 'Page Title'), '^.', '\\u&', '')`}</title>\n\
|
||||
snippet tr\n\
|
||||
<tr>\n\
|
||||
${1}\n\
|
||||
</tr>\n\
|
||||
snippet tr+\n\
|
||||
<tr>\n\
|
||||
<td>${1}</td>\n\
|
||||
td+${2}\n\
|
||||
</tr>\n\
|
||||
snippet track\n\
|
||||
<track src=\"${1}\" srclang=\"${2}\" label=\"${3}\" default=\"${4:default}>${5}</track>${6}\n\
|
||||
snippet ul\n\
|
||||
<ul>\n\
|
||||
${1}\n\
|
||||
</ul>\n\
|
||||
snippet ul.\n\
|
||||
<ul class=\"${1}\">\n\
|
||||
${2}\n\
|
||||
</ul>\n\
|
||||
snippet ul#\n\
|
||||
<ul id=\"${1}\">\n\
|
||||
${2}\n\
|
||||
</ul>\n\
|
||||
snippet ul+\n\
|
||||
<ul>\n\
|
||||
<li>${1}</li>\n\
|
||||
li+${2}\n\
|
||||
</ul>\n\
|
||||
snippet var\n\
|
||||
<var>${1}</var>\n\
|
||||
snippet video\n\
|
||||
<video src=\"${1} height=\"${2}\" width=\"${3}\" preload=\"${5:none}\" autoplay=\"${6:autoplay}>${7}</video>${8}\n\
|
||||
snippet wbr\n\
|
||||
<wbr />${1}\n\
|
||||
";
|
||||
exports.scope = "html";
|
||||
|
||||
});
|
||||
202
modules/backend/assets/vendor/ace/snippets/javascript.js
vendored
Normal file
202
modules/backend/assets/vendor/ace/snippets/javascript.js
vendored
Normal file
@@ -0,0 +1,202 @@
|
||||
ace.define("ace/snippets/javascript",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "# Prototype\n\
|
||||
snippet proto\n\
|
||||
${1:class_name}.prototype.${2:method_name} = function(${3:first_argument}) {\n\
|
||||
${4:// body...}\n\
|
||||
};\n\
|
||||
# Function\n\
|
||||
snippet fun\n\
|
||||
function ${1?:function_name}(${2:argument}) {\n\
|
||||
${3:// body...}\n\
|
||||
}\n\
|
||||
# Anonymous Function\n\
|
||||
regex /((=)\\s*|(:)\\s*|(\\()|\\b)/f/(\\))?/\n\
|
||||
snippet f\n\
|
||||
function${M1?: ${1:functionName}}($2) {\n\
|
||||
${0:$TM_SELECTED_TEXT}\n\
|
||||
}${M2?;}${M3?,}${M4?)}\n\
|
||||
# Immediate function\n\
|
||||
trigger \\(?f\\(\n\
|
||||
endTrigger \\)?\n\
|
||||
snippet f(\n\
|
||||
(function(${1}) {\n\
|
||||
${0:${TM_SELECTED_TEXT:/* code */}}\n\
|
||||
}(${1}));\n\
|
||||
# if\n\
|
||||
snippet if\n\
|
||||
if (${1:true}) {\n\
|
||||
${0}\n\
|
||||
}\n\
|
||||
# if ... else\n\
|
||||
snippet ife\n\
|
||||
if (${1:true}) {\n\
|
||||
${2}\n\
|
||||
} else {\n\
|
||||
${0}\n\
|
||||
}\n\
|
||||
# tertiary conditional\n\
|
||||
snippet ter\n\
|
||||
${1:/* condition */} ? ${2:a} : ${3:b}\n\
|
||||
# switch\n\
|
||||
snippet switch\n\
|
||||
switch (${1:expression}) {\n\
|
||||
case '${3:case}':\n\
|
||||
${4:// code}\n\
|
||||
break;\n\
|
||||
${5}\n\
|
||||
default:\n\
|
||||
${2:// code}\n\
|
||||
}\n\
|
||||
# case\n\
|
||||
snippet case\n\
|
||||
case '${1:case}':\n\
|
||||
${2:// code}\n\
|
||||
break;\n\
|
||||
${3}\n\
|
||||
\n\
|
||||
# while (...) {...}\n\
|
||||
snippet wh\n\
|
||||
while (${1:/* condition */}) {\n\
|
||||
${0:/* code */}\n\
|
||||
}\n\
|
||||
# try\n\
|
||||
snippet try\n\
|
||||
try {\n\
|
||||
${0:/* code */}\n\
|
||||
} catch (e) {}\n\
|
||||
# do...while\n\
|
||||
snippet do\n\
|
||||
do {\n\
|
||||
${2:/* code */}\n\
|
||||
} while (${1:/* condition */});\n\
|
||||
# Object Method\n\
|
||||
snippet :f\n\
|
||||
regex /([,{[])|^\\s*/:f/\n\
|
||||
${1:method_name}: function(${2:attribute}) {\n\
|
||||
${0}\n\
|
||||
}${3:,}\n\
|
||||
# setTimeout function\n\
|
||||
snippet setTimeout\n\
|
||||
regex /\\b/st|timeout|setTimeo?u?t?/\n\
|
||||
setTimeout(function() {${3:$TM_SELECTED_TEXT}}, ${1:10});\n\
|
||||
# Get Elements\n\
|
||||
snippet gett\n\
|
||||
getElementsBy${1:TagName}('${2}')${3}\n\
|
||||
# Get Element\n\
|
||||
snippet get\n\
|
||||
getElementBy${1:Id}('${2}')${3}\n\
|
||||
# console.log (Firebug)\n\
|
||||
snippet cl\n\
|
||||
console.log(${1});\n\
|
||||
# return\n\
|
||||
snippet ret\n\
|
||||
return ${1:result}\n\
|
||||
# for (property in object ) { ... }\n\
|
||||
snippet fori\n\
|
||||
for (var ${1:prop} in ${2:Things}) {\n\
|
||||
${0:$2[$1]}\n\
|
||||
}\n\
|
||||
# hasOwnProperty\n\
|
||||
snippet has\n\
|
||||
hasOwnProperty(${1})\n\
|
||||
# docstring\n\
|
||||
snippet /**\n\
|
||||
/**\n\
|
||||
* ${1:description}\n\
|
||||
*\n\
|
||||
*/\n\
|
||||
snippet @par\n\
|
||||
regex /^\\s*\\*\\s*/@(para?m?)?/\n\
|
||||
@param {${1:type}} ${2:name} ${3:description}\n\
|
||||
snippet @ret\n\
|
||||
@return {${1:type}} ${2:description}\n\
|
||||
# JSON.parse\n\
|
||||
snippet jsonp\n\
|
||||
JSON.parse(${1:jstr});\n\
|
||||
# JSON.stringify\n\
|
||||
snippet jsons\n\
|
||||
JSON.stringify(${1:object});\n\
|
||||
# self-defining function\n\
|
||||
snippet sdf\n\
|
||||
var ${1:function_name} = function(${2:argument}) {\n\
|
||||
${3:// initial code ...}\n\
|
||||
\n\
|
||||
$1 = function($2) {\n\
|
||||
${4:// main code}\n\
|
||||
};\n\
|
||||
}\n\
|
||||
# singleton\n\
|
||||
snippet sing\n\
|
||||
function ${1:Singleton} (${2:argument}) {\n\
|
||||
// the cached instance\n\
|
||||
var instance;\n\
|
||||
\n\
|
||||
// rewrite the constructor\n\
|
||||
$1 = function $1($2) {\n\
|
||||
return instance;\n\
|
||||
};\n\
|
||||
\n\
|
||||
// carry over the prototype properties\n\
|
||||
$1.prototype = this;\n\
|
||||
\n\
|
||||
// the instance\n\
|
||||
instance = new $1();\n\
|
||||
\n\
|
||||
// reset the constructor pointer\n\
|
||||
instance.constructor = $1;\n\
|
||||
\n\
|
||||
${3:// code ...}\n\
|
||||
\n\
|
||||
return instance;\n\
|
||||
}\n\
|
||||
# class\n\
|
||||
snippet class\n\
|
||||
regex /^\\s*/clas{0,2}/\n\
|
||||
var ${1:class} = function(${20}) {\n\
|
||||
$40$0\n\
|
||||
};\n\
|
||||
\n\
|
||||
(function() {\n\
|
||||
${60:this.prop = \"\"}\n\
|
||||
}).call(${1:class}.prototype);\n\
|
||||
\n\
|
||||
exports.${1:class} = ${1:class};\n\
|
||||
# \n\
|
||||
snippet for-\n\
|
||||
for (var ${1:i} = ${2:Things}.length; ${1:i}--; ) {\n\
|
||||
${0:${2:Things}[${1:i}];}\n\
|
||||
}\n\
|
||||
# for (...) {...}\n\
|
||||
snippet for\n\
|
||||
for (var ${1:i} = 0; $1 < ${2:Things}.length; $1++) {\n\
|
||||
${3:$2[$1]}$0\n\
|
||||
}\n\
|
||||
# for (...) {...} (Improved Native For-Loop)\n\
|
||||
snippet forr\n\
|
||||
for (var ${1:i} = ${2:Things}.length - 1; $1 >= 0; $1--) {\n\
|
||||
${3:$2[$1]}$0\n\
|
||||
}\n\
|
||||
\n\
|
||||
\n\
|
||||
#modules\n\
|
||||
snippet def\n\
|
||||
define(function(require, exports, module) {\n\
|
||||
\"use strict\";\n\
|
||||
var ${1/.*\\///} = require(\"${1}\");\n\
|
||||
\n\
|
||||
$TM_SELECTED_TEXT\n\
|
||||
});\n\
|
||||
snippet req\n\
|
||||
guard ^\\s*\n\
|
||||
var ${1/.*\\///} = require(\"${1}\");\n\
|
||||
$0\n\
|
||||
snippet requ\n\
|
||||
guard ^\\s*\n\
|
||||
var ${1/.*\\/(.)/\\u$1/} = require(\"${1}\").${1/.*\\/(.)/\\u$1/};\n\
|
||||
$0\n\
|
||||
";
|
||||
exports.scope = "javascript";
|
||||
|
||||
});
|
||||
95
modules/backend/assets/vendor/ace/snippets/markdown.js
vendored
Normal file
95
modules/backend/assets/vendor/ace/snippets/markdown.js
vendored
Normal file
@@ -0,0 +1,95 @@
|
||||
ace.define("ace/snippets/markdown",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "# Markdown\n\
|
||||
\n\
|
||||
# Includes octopress (http://octopress.org/) snippets\n\
|
||||
\n\
|
||||
snippet [\n\
|
||||
[${1:text}](http://${2:address} \"${3:title}\")\n\
|
||||
snippet [*\n\
|
||||
[${1:link}](${2:`@*`} \"${3:title}\")${4}\n\
|
||||
\n\
|
||||
snippet [:\n\
|
||||
[${1:id}]: http://${2:url} \"${3:title}\"\n\
|
||||
snippet [:*\n\
|
||||
[${1:id}]: ${2:`@*`} \"${3:title}\"\n\
|
||||
\n\
|
||||
snippet \n\
|
||||
snippet ${4}\n\
|
||||
\n\
|
||||
snippet ![:\n\
|
||||
![${1:id}]: ${2:url} \"${3:title}\"\n\
|
||||
snippet ![:*\n\
|
||||
![${1:id}]: ${2:`@*`} \"${3:title}\"\n\
|
||||
\n\
|
||||
snippet ===\n\
|
||||
regex /^/=+/=*//\n\
|
||||
${PREV_LINE/./=/g}\n\
|
||||
\n\
|
||||
${0}\n\
|
||||
snippet ---\n\
|
||||
regex /^/-+/-*//\n\
|
||||
${PREV_LINE/./-/g}\n\
|
||||
\n\
|
||||
${0}\n\
|
||||
snippet blockquote\n\
|
||||
{% blockquote %}\n\
|
||||
${1:quote}\n\
|
||||
{% endblockquote %}\n\
|
||||
\n\
|
||||
snippet blockquote-author\n\
|
||||
{% blockquote ${1:author}, ${2:title} %}\n\
|
||||
${3:quote}\n\
|
||||
{% endblockquote %}\n\
|
||||
\n\
|
||||
snippet blockquote-link\n\
|
||||
{% blockquote ${1:author} ${2:URL} ${3:link_text} %}\n\
|
||||
${4:quote}\n\
|
||||
{% endblockquote %}\n\
|
||||
\n\
|
||||
snippet bt-codeblock-short\n\
|
||||
```\n\
|
||||
${1:code_snippet}\n\
|
||||
```\n\
|
||||
\n\
|
||||
snippet bt-codeblock-full\n\
|
||||
``` ${1:language} ${2:title} ${3:URL} ${4:link_text}\n\
|
||||
${5:code_snippet}\n\
|
||||
```\n\
|
||||
\n\
|
||||
snippet codeblock-short\n\
|
||||
{% codeblock %}\n\
|
||||
${1:code_snippet}\n\
|
||||
{% endcodeblock %}\n\
|
||||
\n\
|
||||
snippet codeblock-full\n\
|
||||
{% codeblock ${1:title} lang:${2:language} ${3:URL} ${4:link_text} %}\n\
|
||||
${5:code_snippet}\n\
|
||||
{% endcodeblock %}\n\
|
||||
\n\
|
||||
snippet gist-full\n\
|
||||
{% gist ${1:gist_id} ${2:filename} %}\n\
|
||||
\n\
|
||||
snippet gist-short\n\
|
||||
{% gist ${1:gist_id} %}\n\
|
||||
\n\
|
||||
snippet img\n\
|
||||
{% img ${1:class} ${2:URL} ${3:width} ${4:height} ${5:title_text} ${6:alt_text} %}\n\
|
||||
\n\
|
||||
snippet youtube\n\
|
||||
{% youtube ${1:video_id} %}\n\
|
||||
\n\
|
||||
# The quote should appear only once in the text. It is inherently part of it.\n\
|
||||
# See http://octopress.org/docs/plugins/pullquote/ for more info.\n\
|
||||
\n\
|
||||
snippet pullquote\n\
|
||||
{% pullquote %}\n\
|
||||
${1:text} {\" ${2:quote} \"} ${3:text}\n\
|
||||
{% endpullquote %}\n\
|
||||
";
|
||||
exports.scope = "markdown";
|
||||
|
||||
});
|
||||
384
modules/backend/assets/vendor/ace/snippets/php-inline.js
vendored
Normal file
384
modules/backend/assets/vendor/ace/snippets/php-inline.js
vendored
Normal file
@@ -0,0 +1,384 @@
|
||||
ace.define("ace/snippets/php",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "snippet <?\n\
|
||||
<?php\n\
|
||||
\n\
|
||||
${1}\n\
|
||||
snippet ec\n\
|
||||
echo ${1};\n\
|
||||
snippet <?e\n\
|
||||
<?php echo ${1} ?>\n\
|
||||
# this one is for php5.4\n\
|
||||
snippet <?=\n\
|
||||
<?=${1}?>\n\
|
||||
snippet ns\n\
|
||||
namespace ${1:Foo\\Bar\\Baz};\n\
|
||||
${2}\n\
|
||||
snippet use\n\
|
||||
use ${1:Foo\\Bar\\Baz};\n\
|
||||
${2}\n\
|
||||
snippet c\n\
|
||||
${1:abstract }class ${2:$FILENAME}\n\
|
||||
{\n\
|
||||
${3}\n\
|
||||
}\n\
|
||||
snippet i\n\
|
||||
interface ${1:$FILENAME}\n\
|
||||
{\n\
|
||||
${2}\n\
|
||||
}\n\
|
||||
snippet t.\n\
|
||||
$this->${1}\n\
|
||||
snippet f\n\
|
||||
function ${1:foo}(${2:array }${3:$bar})\n\
|
||||
{\n\
|
||||
${4}\n\
|
||||
}\n\
|
||||
# method\n\
|
||||
snippet m\n\
|
||||
${1:abstract }${2:protected}${3: static} function ${4:foo}(${5:array }${6:$bar})\n\
|
||||
{\n\
|
||||
${7}\n\
|
||||
}\n\
|
||||
# setter method\n\
|
||||
snippet sm \n\
|
||||
/**\n\
|
||||
* Sets the value of ${1:foo}\n\
|
||||
*\n\
|
||||
* @param ${2:$1} $$1 ${3:description}\n\
|
||||
*\n\
|
||||
* @return ${4:$FILENAME}\n\
|
||||
*/\n\
|
||||
${5:public} function set${6:$2}(${7:$2 }$$1)\n\
|
||||
{\n\
|
||||
$this->${8:$1} = $$1;\n\
|
||||
return $this;\n\
|
||||
}${9}\n\
|
||||
# getter method\n\
|
||||
snippet gm\n\
|
||||
/**\n\
|
||||
* Gets the value of ${1:foo}\n\
|
||||
*\n\
|
||||
* @return ${2:$1}\n\
|
||||
*/\n\
|
||||
${3:public} function get${4:$2}()\n\
|
||||
{\n\
|
||||
return $this->${5:$1};\n\
|
||||
}${6}\n\
|
||||
#setter\n\
|
||||
snippet $s\n\
|
||||
${1:$foo}->set${2:Bar}(${3});\n\
|
||||
#getter\n\
|
||||
snippet $g\n\
|
||||
${1:$foo}->get${2:Bar}();\n\
|
||||
\n\
|
||||
# Tertiary conditional\n\
|
||||
snippet =?:\n\
|
||||
$${1:foo} = ${2:true} ? ${3:a} : ${4};\n\
|
||||
snippet ?:\n\
|
||||
${1:true} ? ${2:a} : ${3}\n\
|
||||
\n\
|
||||
snippet C\n\
|
||||
$_COOKIE['${1:variable}']${2}\n\
|
||||
snippet E\n\
|
||||
$_ENV['${1:variable}']${2}\n\
|
||||
snippet F\n\
|
||||
$_FILES['${1:variable}']${2}\n\
|
||||
snippet G\n\
|
||||
$_GET['${1:variable}']${2}\n\
|
||||
snippet P\n\
|
||||
$_POST['${1:variable}']${2}\n\
|
||||
snippet R\n\
|
||||
$_REQUEST['${1:variable}']${2}\n\
|
||||
snippet S\n\
|
||||
$_SERVER['${1:variable}']${2}\n\
|
||||
snippet SS\n\
|
||||
$_SESSION['${1:variable}']${2}\n\
|
||||
\n\
|
||||
# the following are old ones\n\
|
||||
snippet inc\n\
|
||||
include '${1:file}';${2}\n\
|
||||
snippet inc1\n\
|
||||
include_once '${1:file}';${2}\n\
|
||||
snippet req\n\
|
||||
require '${1:file}';${2}\n\
|
||||
snippet req1\n\
|
||||
require_once '${1:file}';${2}\n\
|
||||
# Start Docblock\n\
|
||||
snippet /*\n\
|
||||
/**\n\
|
||||
* ${1}\n\
|
||||
*/\n\
|
||||
# Class - post doc\n\
|
||||
snippet doc_cp\n\
|
||||
/**\n\
|
||||
* ${1:undocumented class}\n\
|
||||
*\n\
|
||||
* @package ${2:default}\n\
|
||||
* @subpackage ${3:default}\n\
|
||||
* @author ${4:`g:snips_author`}\n\
|
||||
*/${5}\n\
|
||||
# Class Variable - post doc\n\
|
||||
snippet doc_vp\n\
|
||||
/**\n\
|
||||
* ${1:undocumented class variable}\n\
|
||||
*\n\
|
||||
* @var ${2:string}\n\
|
||||
*/${3}\n\
|
||||
# Class Variable\n\
|
||||
snippet doc_v\n\
|
||||
/**\n\
|
||||
* ${3:undocumented class variable}\n\
|
||||
*\n\
|
||||
* @var ${4:string}\n\
|
||||
*/\n\
|
||||
${1:var} $${2};${5}\n\
|
||||
# Class\n\
|
||||
snippet doc_c\n\
|
||||
/**\n\
|
||||
* ${3:undocumented class}\n\
|
||||
*\n\
|
||||
* @package ${4:default}\n\
|
||||
* @subpackage ${5:default}\n\
|
||||
* @author ${6:`g:snips_author`}\n\
|
||||
*/\n\
|
||||
${1:}class ${2:}\n\
|
||||
{\n\
|
||||
${7}\n\
|
||||
} // END $1class $2\n\
|
||||
# Constant Definition - post doc\n\
|
||||
snippet doc_dp\n\
|
||||
/**\n\
|
||||
* ${1:undocumented constant}\n\
|
||||
*/${2}\n\
|
||||
# Constant Definition\n\
|
||||
snippet doc_d\n\
|
||||
/**\n\
|
||||
* ${3:undocumented constant}\n\
|
||||
*/\n\
|
||||
define(${1}, ${2});${4}\n\
|
||||
# Function - post doc\n\
|
||||
snippet doc_fp\n\
|
||||
/**\n\
|
||||
* ${1:undocumented function}\n\
|
||||
*\n\
|
||||
* @return ${2:void}\n\
|
||||
* @author ${3:`g:snips_author`}\n\
|
||||
*/${4}\n\
|
||||
# Function signature\n\
|
||||
snippet doc_s\n\
|
||||
/**\n\
|
||||
* ${4:undocumented function}\n\
|
||||
*\n\
|
||||
* @return ${5:void}\n\
|
||||
* @author ${6:`g:snips_author`}\n\
|
||||
*/\n\
|
||||
${1}function ${2}(${3});${7}\n\
|
||||
# Function\n\
|
||||
snippet doc_f\n\
|
||||
/**\n\
|
||||
* ${4:undocumented function}\n\
|
||||
*\n\
|
||||
* @return ${5:void}\n\
|
||||
* @author ${6:`g:snips_author`}\n\
|
||||
*/\n\
|
||||
${1}function ${2}(${3})\n\
|
||||
{${7}\n\
|
||||
}\n\
|
||||
# Header\n\
|
||||
snippet doc_h\n\
|
||||
/**\n\
|
||||
* ${1}\n\
|
||||
*\n\
|
||||
* @author ${2:`g:snips_author`}\n\
|
||||
* @version ${3:$Id$}\n\
|
||||
* @copyright ${4:$2}, `strftime('%d %B, %Y')`\n\
|
||||
* @package ${5:default}\n\
|
||||
*/\n\
|
||||
\n\
|
||||
# Interface\n\
|
||||
snippet interface\n\
|
||||
/**\n\
|
||||
* ${2:undocumented class}\n\
|
||||
*\n\
|
||||
* @package ${3:default}\n\
|
||||
* @author ${4:`g:snips_author`}\n\
|
||||
*/\n\
|
||||
interface ${1:$FILENAME}\n\
|
||||
{\n\
|
||||
${5}\n\
|
||||
}\n\
|
||||
# class ...\n\
|
||||
snippet class\n\
|
||||
/**\n\
|
||||
* ${1}\n\
|
||||
*/\n\
|
||||
class ${2:$FILENAME}\n\
|
||||
{\n\
|
||||
${3}\n\
|
||||
/**\n\
|
||||
* ${4}\n\
|
||||
*/\n\
|
||||
${5:public} function ${6:__construct}(${7:argument})\n\
|
||||
{\n\
|
||||
${8:// code...}\n\
|
||||
}\n\
|
||||
}\n\
|
||||
# define(...)\n\
|
||||
snippet def\n\
|
||||
define('${1}'${2});${3}\n\
|
||||
# defined(...)\n\
|
||||
snippet def?\n\
|
||||
${1}defined('${2}')${3}\n\
|
||||
snippet wh\n\
|
||||
while (${1:/* condition */}) {\n\
|
||||
${2:// code...}\n\
|
||||
}\n\
|
||||
# do ... while\n\
|
||||
snippet do\n\
|
||||
do {\n\
|
||||
${2:// code... }\n\
|
||||
} while (${1:/* condition */});\n\
|
||||
snippet if\n\
|
||||
if (${1:/* condition */}) {\n\
|
||||
${2:// code...}\n\
|
||||
}\n\
|
||||
snippet ifil\n\
|
||||
<?php if (${1:/* condition */}): ?>\n\
|
||||
${2:<!-- code... -->}\n\
|
||||
<?php endif; ?>\n\
|
||||
snippet ife\n\
|
||||
if (${1:/* condition */}) {\n\
|
||||
${2:// code...}\n\
|
||||
} else {\n\
|
||||
${3:// code...}\n\
|
||||
}\n\
|
||||
${4}\n\
|
||||
snippet ifeil\n\
|
||||
<?php if (${1:/* condition */}): ?>\n\
|
||||
${2:<!-- html... -->}\n\
|
||||
<?php else: ?>\n\
|
||||
${3:<!-- html... -->}\n\
|
||||
<?php endif; ?>\n\
|
||||
${4}\n\
|
||||
snippet else\n\
|
||||
else {\n\
|
||||
${1:// code...}\n\
|
||||
}\n\
|
||||
snippet elseif\n\
|
||||
elseif (${1:/* condition */}) {\n\
|
||||
${2:// code...}\n\
|
||||
}\n\
|
||||
snippet switch\n\
|
||||
switch ($${1:variable}) {\n\
|
||||
case '${2:value}':\n\
|
||||
${3:// code...}\n\
|
||||
break;\n\
|
||||
${5}\n\
|
||||
default:\n\
|
||||
${4:// code...}\n\
|
||||
break;\n\
|
||||
}\n\
|
||||
snippet case\n\
|
||||
case '${1:value}':\n\
|
||||
${2:// code...}\n\
|
||||
break;${3}\n\
|
||||
snippet for\n\
|
||||
for ($${2:i} = 0; $$2 < ${1:count}; $$2${3:++}) {\n\
|
||||
${4: // code...}\n\
|
||||
}\n\
|
||||
snippet foreach\n\
|
||||
foreach ($${1:variable} as $${2:value}) {\n\
|
||||
${3:// code...}\n\
|
||||
}\n\
|
||||
snippet foreachil\n\
|
||||
<?php foreach ($${1:variable} as $${2:value}): ?>\n\
|
||||
${3:<!-- html... -->}\n\
|
||||
<?php endforeach; ?>\n\
|
||||
snippet foreachk\n\
|
||||
foreach ($${1:variable} as $${2:key} => $${3:value}) {\n\
|
||||
${4:// code...}\n\
|
||||
}\n\
|
||||
snippet foreachkil\n\
|
||||
<?php foreach ($${1:variable} as $${2:key} => $${3:value}): ?>\n\
|
||||
${4:<!-- html... -->}\n\
|
||||
<?php endforeach; ?>\n\
|
||||
# $... = array (...)\n\
|
||||
snippet array\n\
|
||||
$${1:arrayName} = array('${2}' => ${3});${4}\n\
|
||||
snippet try\n\
|
||||
try {\n\
|
||||
${2}\n\
|
||||
} catch (${1:Exception} $e) {\n\
|
||||
}\n\
|
||||
# lambda with closure\n\
|
||||
snippet lambda\n\
|
||||
${1:static }function (${2:args}) use (${3:&$x, $y /*put vars in scope (closure) */}) {\n\
|
||||
${4}\n\
|
||||
};\n\
|
||||
# pre_dump();\n\
|
||||
snippet pd\n\
|
||||
echo '<pre>'; var_dump(${1}); echo '</pre>';\n\
|
||||
# pre_dump(); die();\n\
|
||||
snippet pdd\n\
|
||||
echo '<pre>'; var_dump(${1}); echo '</pre>'; die(${2:});\n\
|
||||
snippet vd\n\
|
||||
var_dump(${1});\n\
|
||||
snippet vdd\n\
|
||||
var_dump(${1}); die(${2:});\n\
|
||||
snippet http_redirect\n\
|
||||
header (\"HTTP/1.1 301 Moved Permanently\"); \n\
|
||||
header (\"Location: \".URL); \n\
|
||||
exit();\n\
|
||||
# Getters & Setters\n\
|
||||
snippet gs\n\
|
||||
/**\n\
|
||||
* Gets the value of ${1:foo}\n\
|
||||
*\n\
|
||||
* @return ${2:$1}\n\
|
||||
*/\n\
|
||||
public function get${3:$2}()\n\
|
||||
{\n\
|
||||
return $this->${4:$1};\n\
|
||||
}\n\
|
||||
\n\
|
||||
/**\n\
|
||||
* Sets the value of $1\n\
|
||||
*\n\
|
||||
* @param $2 $$1 ${5:description}\n\
|
||||
*\n\
|
||||
* @return ${6:$FILENAME}\n\
|
||||
*/\n\
|
||||
public function set$3(${7:$2 }$$1)\n\
|
||||
{\n\
|
||||
$this->$4 = $$1;\n\
|
||||
return $this;\n\
|
||||
}${8}\n\
|
||||
# anotation, get, and set, useful for doctrine\n\
|
||||
snippet ags\n\
|
||||
/**\n\
|
||||
* ${1:description}\n\
|
||||
* \n\
|
||||
* @${7}\n\
|
||||
*/\n\
|
||||
${2:protected} $${3:foo};\n\
|
||||
\n\
|
||||
public function get${4:$3}()\n\
|
||||
{\n\
|
||||
return $this->$3;\n\
|
||||
}\n\
|
||||
\n\
|
||||
public function set$4(${5:$4 }$${6:$3})\n\
|
||||
{\n\
|
||||
$this->$3 = $$6;\n\
|
||||
return $this;\n\
|
||||
}\n\
|
||||
snippet rett\n\
|
||||
return true;\n\
|
||||
snippet retf\n\
|
||||
return false;\n\
|
||||
";
|
||||
exports.scope = "php";
|
||||
|
||||
});
|
||||
384
modules/backend/assets/vendor/ace/snippets/php.js
vendored
Normal file
384
modules/backend/assets/vendor/ace/snippets/php.js
vendored
Normal file
@@ -0,0 +1,384 @@
|
||||
ace.define("ace/snippets/php",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "snippet <?\n\
|
||||
<?php\n\
|
||||
\n\
|
||||
${1}\n\
|
||||
snippet ec\n\
|
||||
echo ${1};\n\
|
||||
snippet <?e\n\
|
||||
<?php echo ${1} ?>\n\
|
||||
# this one is for php5.4\n\
|
||||
snippet <?=\n\
|
||||
<?=${1}?>\n\
|
||||
snippet ns\n\
|
||||
namespace ${1:Foo\\Bar\\Baz};\n\
|
||||
${2}\n\
|
||||
snippet use\n\
|
||||
use ${1:Foo\\Bar\\Baz};\n\
|
||||
${2}\n\
|
||||
snippet c\n\
|
||||
${1:abstract }class ${2:$FILENAME}\n\
|
||||
{\n\
|
||||
${3}\n\
|
||||
}\n\
|
||||
snippet i\n\
|
||||
interface ${1:$FILENAME}\n\
|
||||
{\n\
|
||||
${2}\n\
|
||||
}\n\
|
||||
snippet t.\n\
|
||||
$this->${1}\n\
|
||||
snippet f\n\
|
||||
function ${1:foo}(${2:array }${3:$bar})\n\
|
||||
{\n\
|
||||
${4}\n\
|
||||
}\n\
|
||||
# method\n\
|
||||
snippet m\n\
|
||||
${1:abstract }${2:protected}${3: static} function ${4:foo}(${5:array }${6:$bar})\n\
|
||||
{\n\
|
||||
${7}\n\
|
||||
}\n\
|
||||
# setter method\n\
|
||||
snippet sm \n\
|
||||
/**\n\
|
||||
* Sets the value of ${1:foo}\n\
|
||||
*\n\
|
||||
* @param ${2:$1} $$1 ${3:description}\n\
|
||||
*\n\
|
||||
* @return ${4:$FILENAME}\n\
|
||||
*/\n\
|
||||
${5:public} function set${6:$2}(${7:$2 }$$1)\n\
|
||||
{\n\
|
||||
$this->${8:$1} = $$1;\n\
|
||||
return $this;\n\
|
||||
}${9}\n\
|
||||
# getter method\n\
|
||||
snippet gm\n\
|
||||
/**\n\
|
||||
* Gets the value of ${1:foo}\n\
|
||||
*\n\
|
||||
* @return ${2:$1}\n\
|
||||
*/\n\
|
||||
${3:public} function get${4:$2}()\n\
|
||||
{\n\
|
||||
return $this->${5:$1};\n\
|
||||
}${6}\n\
|
||||
#setter\n\
|
||||
snippet $s\n\
|
||||
${1:$foo}->set${2:Bar}(${3});\n\
|
||||
#getter\n\
|
||||
snippet $g\n\
|
||||
${1:$foo}->get${2:Bar}();\n\
|
||||
\n\
|
||||
# Tertiary conditional\n\
|
||||
snippet =?:\n\
|
||||
$${1:foo} = ${2:true} ? ${3:a} : ${4};\n\
|
||||
snippet ?:\n\
|
||||
${1:true} ? ${2:a} : ${3}\n\
|
||||
\n\
|
||||
snippet C\n\
|
||||
$_COOKIE['${1:variable}']${2}\n\
|
||||
snippet E\n\
|
||||
$_ENV['${1:variable}']${2}\n\
|
||||
snippet F\n\
|
||||
$_FILES['${1:variable}']${2}\n\
|
||||
snippet G\n\
|
||||
$_GET['${1:variable}']${2}\n\
|
||||
snippet P\n\
|
||||
$_POST['${1:variable}']${2}\n\
|
||||
snippet R\n\
|
||||
$_REQUEST['${1:variable}']${2}\n\
|
||||
snippet S\n\
|
||||
$_SERVER['${1:variable}']${2}\n\
|
||||
snippet SS\n\
|
||||
$_SESSION['${1:variable}']${2}\n\
|
||||
\n\
|
||||
# the following are old ones\n\
|
||||
snippet inc\n\
|
||||
include '${1:file}';${2}\n\
|
||||
snippet inc1\n\
|
||||
include_once '${1:file}';${2}\n\
|
||||
snippet req\n\
|
||||
require '${1:file}';${2}\n\
|
||||
snippet req1\n\
|
||||
require_once '${1:file}';${2}\n\
|
||||
# Start Docblock\n\
|
||||
snippet /*\n\
|
||||
/**\n\
|
||||
* ${1}\n\
|
||||
*/\n\
|
||||
# Class - post doc\n\
|
||||
snippet doc_cp\n\
|
||||
/**\n\
|
||||
* ${1:undocumented class}\n\
|
||||
*\n\
|
||||
* @package ${2:default}\n\
|
||||
* @subpackage ${3:default}\n\
|
||||
* @author ${4:`g:snips_author`}\n\
|
||||
*/${5}\n\
|
||||
# Class Variable - post doc\n\
|
||||
snippet doc_vp\n\
|
||||
/**\n\
|
||||
* ${1:undocumented class variable}\n\
|
||||
*\n\
|
||||
* @var ${2:string}\n\
|
||||
*/${3}\n\
|
||||
# Class Variable\n\
|
||||
snippet doc_v\n\
|
||||
/**\n\
|
||||
* ${3:undocumented class variable}\n\
|
||||
*\n\
|
||||
* @var ${4:string}\n\
|
||||
*/\n\
|
||||
${1:var} $${2};${5}\n\
|
||||
# Class\n\
|
||||
snippet doc_c\n\
|
||||
/**\n\
|
||||
* ${3:undocumented class}\n\
|
||||
*\n\
|
||||
* @package ${4:default}\n\
|
||||
* @subpackage ${5:default}\n\
|
||||
* @author ${6:`g:snips_author`}\n\
|
||||
*/\n\
|
||||
${1:}class ${2:}\n\
|
||||
{\n\
|
||||
${7}\n\
|
||||
} // END $1class $2\n\
|
||||
# Constant Definition - post doc\n\
|
||||
snippet doc_dp\n\
|
||||
/**\n\
|
||||
* ${1:undocumented constant}\n\
|
||||
*/${2}\n\
|
||||
# Constant Definition\n\
|
||||
snippet doc_d\n\
|
||||
/**\n\
|
||||
* ${3:undocumented constant}\n\
|
||||
*/\n\
|
||||
define(${1}, ${2});${4}\n\
|
||||
# Function - post doc\n\
|
||||
snippet doc_fp\n\
|
||||
/**\n\
|
||||
* ${1:undocumented function}\n\
|
||||
*\n\
|
||||
* @return ${2:void}\n\
|
||||
* @author ${3:`g:snips_author`}\n\
|
||||
*/${4}\n\
|
||||
# Function signature\n\
|
||||
snippet doc_s\n\
|
||||
/**\n\
|
||||
* ${4:undocumented function}\n\
|
||||
*\n\
|
||||
* @return ${5:void}\n\
|
||||
* @author ${6:`g:snips_author`}\n\
|
||||
*/\n\
|
||||
${1}function ${2}(${3});${7}\n\
|
||||
# Function\n\
|
||||
snippet doc_f\n\
|
||||
/**\n\
|
||||
* ${4:undocumented function}\n\
|
||||
*\n\
|
||||
* @return ${5:void}\n\
|
||||
* @author ${6:`g:snips_author`}\n\
|
||||
*/\n\
|
||||
${1}function ${2}(${3})\n\
|
||||
{${7}\n\
|
||||
}\n\
|
||||
# Header\n\
|
||||
snippet doc_h\n\
|
||||
/**\n\
|
||||
* ${1}\n\
|
||||
*\n\
|
||||
* @author ${2:`g:snips_author`}\n\
|
||||
* @version ${3:$Id$}\n\
|
||||
* @copyright ${4:$2}, `strftime('%d %B, %Y')`\n\
|
||||
* @package ${5:default}\n\
|
||||
*/\n\
|
||||
\n\
|
||||
# Interface\n\
|
||||
snippet interface\n\
|
||||
/**\n\
|
||||
* ${2:undocumented class}\n\
|
||||
*\n\
|
||||
* @package ${3:default}\n\
|
||||
* @author ${4:`g:snips_author`}\n\
|
||||
*/\n\
|
||||
interface ${1:$FILENAME}\n\
|
||||
{\n\
|
||||
${5}\n\
|
||||
}\n\
|
||||
# class ...\n\
|
||||
snippet class\n\
|
||||
/**\n\
|
||||
* ${1}\n\
|
||||
*/\n\
|
||||
class ${2:$FILENAME}\n\
|
||||
{\n\
|
||||
${3}\n\
|
||||
/**\n\
|
||||
* ${4}\n\
|
||||
*/\n\
|
||||
${5:public} function ${6:__construct}(${7:argument})\n\
|
||||
{\n\
|
||||
${8:// code...}\n\
|
||||
}\n\
|
||||
}\n\
|
||||
# define(...)\n\
|
||||
snippet def\n\
|
||||
define('${1}'${2});${3}\n\
|
||||
# defined(...)\n\
|
||||
snippet def?\n\
|
||||
${1}defined('${2}')${3}\n\
|
||||
snippet wh\n\
|
||||
while (${1:/* condition */}) {\n\
|
||||
${2:// code...}\n\
|
||||
}\n\
|
||||
# do ... while\n\
|
||||
snippet do\n\
|
||||
do {\n\
|
||||
${2:// code... }\n\
|
||||
} while (${1:/* condition */});\n\
|
||||
snippet if\n\
|
||||
if (${1:/* condition */}) {\n\
|
||||
${2:// code...}\n\
|
||||
}\n\
|
||||
snippet ifil\n\
|
||||
<?php if (${1:/* condition */}): ?>\n\
|
||||
${2:<!-- code... -->}\n\
|
||||
<?php endif; ?>\n\
|
||||
snippet ife\n\
|
||||
if (${1:/* condition */}) {\n\
|
||||
${2:// code...}\n\
|
||||
} else {\n\
|
||||
${3:// code...}\n\
|
||||
}\n\
|
||||
${4}\n\
|
||||
snippet ifeil\n\
|
||||
<?php if (${1:/* condition */}): ?>\n\
|
||||
${2:<!-- html... -->}\n\
|
||||
<?php else: ?>\n\
|
||||
${3:<!-- html... -->}\n\
|
||||
<?php endif; ?>\n\
|
||||
${4}\n\
|
||||
snippet else\n\
|
||||
else {\n\
|
||||
${1:// code...}\n\
|
||||
}\n\
|
||||
snippet elseif\n\
|
||||
elseif (${1:/* condition */}) {\n\
|
||||
${2:// code...}\n\
|
||||
}\n\
|
||||
snippet switch\n\
|
||||
switch ($${1:variable}) {\n\
|
||||
case '${2:value}':\n\
|
||||
${3:// code...}\n\
|
||||
break;\n\
|
||||
${5}\n\
|
||||
default:\n\
|
||||
${4:// code...}\n\
|
||||
break;\n\
|
||||
}\n\
|
||||
snippet case\n\
|
||||
case '${1:value}':\n\
|
||||
${2:// code...}\n\
|
||||
break;${3}\n\
|
||||
snippet for\n\
|
||||
for ($${2:i} = 0; $$2 < ${1:count}; $$2${3:++}) {\n\
|
||||
${4: // code...}\n\
|
||||
}\n\
|
||||
snippet foreach\n\
|
||||
foreach ($${1:variable} as $${2:value}) {\n\
|
||||
${3:// code...}\n\
|
||||
}\n\
|
||||
snippet foreachil\n\
|
||||
<?php foreach ($${1:variable} as $${2:value}): ?>\n\
|
||||
${3:<!-- html... -->}\n\
|
||||
<?php endforeach; ?>\n\
|
||||
snippet foreachk\n\
|
||||
foreach ($${1:variable} as $${2:key} => $${3:value}) {\n\
|
||||
${4:// code...}\n\
|
||||
}\n\
|
||||
snippet foreachkil\n\
|
||||
<?php foreach ($${1:variable} as $${2:key} => $${3:value}): ?>\n\
|
||||
${4:<!-- html... -->}\n\
|
||||
<?php endforeach; ?>\n\
|
||||
# $... = array (...)\n\
|
||||
snippet array\n\
|
||||
$${1:arrayName} = array('${2}' => ${3});${4}\n\
|
||||
snippet try\n\
|
||||
try {\n\
|
||||
${2}\n\
|
||||
} catch (${1:Exception} $e) {\n\
|
||||
}\n\
|
||||
# lambda with closure\n\
|
||||
snippet lambda\n\
|
||||
${1:static }function (${2:args}) use (${3:&$x, $y /*put vars in scope (closure) */}) {\n\
|
||||
${4}\n\
|
||||
};\n\
|
||||
# pre_dump();\n\
|
||||
snippet pd\n\
|
||||
echo '<pre>'; var_dump(${1}); echo '</pre>';\n\
|
||||
# pre_dump(); die();\n\
|
||||
snippet pdd\n\
|
||||
echo '<pre>'; var_dump(${1}); echo '</pre>'; die(${2:});\n\
|
||||
snippet vd\n\
|
||||
var_dump(${1});\n\
|
||||
snippet vdd\n\
|
||||
var_dump(${1}); die(${2:});\n\
|
||||
snippet http_redirect\n\
|
||||
header (\"HTTP/1.1 301 Moved Permanently\"); \n\
|
||||
header (\"Location: \".URL); \n\
|
||||
exit();\n\
|
||||
# Getters & Setters\n\
|
||||
snippet gs\n\
|
||||
/**\n\
|
||||
* Gets the value of ${1:foo}\n\
|
||||
*\n\
|
||||
* @return ${2:$1}\n\
|
||||
*/\n\
|
||||
public function get${3:$2}()\n\
|
||||
{\n\
|
||||
return $this->${4:$1};\n\
|
||||
}\n\
|
||||
\n\
|
||||
/**\n\
|
||||
* Sets the value of $1\n\
|
||||
*\n\
|
||||
* @param $2 $$1 ${5:description}\n\
|
||||
*\n\
|
||||
* @return ${6:$FILENAME}\n\
|
||||
*/\n\
|
||||
public function set$3(${7:$2 }$$1)\n\
|
||||
{\n\
|
||||
$this->$4 = $$1;\n\
|
||||
return $this;\n\
|
||||
}${8}\n\
|
||||
# anotation, get, and set, useful for doctrine\n\
|
||||
snippet ags\n\
|
||||
/**\n\
|
||||
* ${1:description}\n\
|
||||
* \n\
|
||||
* @${7}\n\
|
||||
*/\n\
|
||||
${2:protected} $${3:foo};\n\
|
||||
\n\
|
||||
public function get${4:$3}()\n\
|
||||
{\n\
|
||||
return $this->$3;\n\
|
||||
}\n\
|
||||
\n\
|
||||
public function set$4(${5:$4 }$${6:$3})\n\
|
||||
{\n\
|
||||
$this->$3 = $$6;\n\
|
||||
return $this;\n\
|
||||
}\n\
|
||||
snippet rett\n\
|
||||
return true;\n\
|
||||
snippet retf\n\
|
||||
return false;\n\
|
||||
";
|
||||
exports.scope = "php";
|
||||
|
||||
});
|
||||
7
modules/backend/assets/vendor/ace/snippets/plain_text.js
vendored
Normal file
7
modules/backend/assets/vendor/ace/snippets/plain_text.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
ace.define("ace/snippets/plain_text",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "plain_text";
|
||||
|
||||
});
|
||||
7
modules/backend/assets/vendor/ace/snippets/sass.js
vendored
Normal file
7
modules/backend/assets/vendor/ace/snippets/sass.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
ace.define("ace/snippets/sass",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "sass";
|
||||
|
||||
});
|
||||
7
modules/backend/assets/vendor/ace/snippets/scss.js
vendored
Normal file
7
modules/backend/assets/vendor/ace/snippets/scss.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
ace.define("ace/snippets/scss",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "scss";
|
||||
|
||||
});
|
||||
7
modules/backend/assets/vendor/ace/snippets/text.js
vendored
Normal file
7
modules/backend/assets/vendor/ace/snippets/text.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
ace.define("ace/snippets/text",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "text";
|
||||
|
||||
});
|
||||
7
modules/backend/assets/vendor/ace/snippets/twig.js
vendored
Normal file
7
modules/backend/assets/vendor/ace/snippets/twig.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
ace.define("ace/snippets/twig",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "twig";
|
||||
|
||||
});
|
||||
7
modules/backend/assets/vendor/ace/snippets/yaml.js
vendored
Normal file
7
modules/backend/assets/vendor/ace/snippets/yaml.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
ace.define("ace/snippets/yaml",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText =undefined;
|
||||
exports.scope = "yaml";
|
||||
|
||||
});
|
||||
182
modules/backend/assets/vendor/ace/theme-ambiance.js
vendored
Executable file
182
modules/backend/assets/vendor/ace/theme-ambiance.js
vendored
Executable file
File diff suppressed because one or more lines are too long
156
modules/backend/assets/vendor/ace/theme-chaos.js
vendored
Executable file
156
modules/backend/assets/vendor/ace/theme-chaos.js
vendored
Executable file
@@ -0,0 +1,156 @@
|
||||
ace.define("ace/theme/chaos",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-chaos";
|
||||
exports.cssText = ".ace-chaos .ace_gutter {\
|
||||
background: #141414;\
|
||||
color: #595959;\
|
||||
border-right: 1px solid #282828;\
|
||||
}\
|
||||
.ace-chaos .ace_gutter-cell.ace_warning {\
|
||||
background-image: none;\
|
||||
background: #FC0;\
|
||||
border-left: none;\
|
||||
padding-left: 0;\
|
||||
color: #000;\
|
||||
}\
|
||||
.ace-chaos .ace_gutter-cell.ace_error {\
|
||||
background-position: -6px center;\
|
||||
background-image: none;\
|
||||
background: #F10;\
|
||||
border-left: none;\
|
||||
padding-left: 0;\
|
||||
color: #000;\
|
||||
}\
|
||||
.ace-chaos .ace_print-margin {\
|
||||
border-left: 1px solid #555;\
|
||||
right: 0;\
|
||||
background: #1D1D1D;\
|
||||
}\
|
||||
.ace-chaos {\
|
||||
background-color: #161616;\
|
||||
color: #E6E1DC;\
|
||||
}\
|
||||
.ace-chaos .ace_cursor {\
|
||||
border-left: 2px solid #FFFFFF;\
|
||||
}\
|
||||
.ace-chaos .ace_cursor.ace_overwrite {\
|
||||
border-left: 0px;\
|
||||
border-bottom: 1px solid #FFFFFF;\
|
||||
}\
|
||||
.ace-chaos .ace_marker-layer .ace_selection {\
|
||||
background: #494836;\
|
||||
}\
|
||||
.ace-chaos .ace_marker-layer .ace_step {\
|
||||
background: rgb(198, 219, 174);\
|
||||
}\
|
||||
.ace-chaos .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid #FCE94F;\
|
||||
}\
|
||||
.ace-chaos .ace_marker-layer .ace_active-line {\
|
||||
background: #333;\
|
||||
}\
|
||||
.ace-chaos .ace_gutter-active-line {\
|
||||
background-color: #222;\
|
||||
}\
|
||||
.ace-chaos .ace_invisible {\
|
||||
color: #404040;\
|
||||
}\
|
||||
.ace-chaos .ace_keyword {\
|
||||
color:#00698F;\
|
||||
}\
|
||||
.ace-chaos .ace_keyword.ace_operator {\
|
||||
color:#FF308F;\
|
||||
}\
|
||||
.ace-chaos .ace_constant {\
|
||||
color:#1EDAFB;\
|
||||
}\
|
||||
.ace-chaos .ace_constant.ace_language {\
|
||||
color:#FDC251;\
|
||||
}\
|
||||
.ace-chaos .ace_constant.ace_library {\
|
||||
color:#8DFF0A;\
|
||||
}\
|
||||
.ace-chaos .ace_constant.ace_numeric {\
|
||||
color:#58C554;\
|
||||
}\
|
||||
.ace-chaos .ace_invalid {\
|
||||
color:#FFFFFF;\
|
||||
background-color:#990000;\
|
||||
}\
|
||||
.ace-chaos .ace_invalid.ace_deprecated {\
|
||||
color:#FFFFFF;\
|
||||
background-color:#990000;\
|
||||
}\
|
||||
.ace-chaos .ace_support {\
|
||||
color: #999;\
|
||||
}\
|
||||
.ace-chaos .ace_support.ace_function {\
|
||||
color:#00AEEF;\
|
||||
}\
|
||||
.ace-chaos .ace_function {\
|
||||
color:#00AEEF;\
|
||||
}\
|
||||
.ace-chaos .ace_string {\
|
||||
color:#58C554;\
|
||||
}\
|
||||
.ace-chaos .ace_comment {\
|
||||
color:#555;\
|
||||
font-style:italic;\
|
||||
padding-bottom: 0px;\
|
||||
}\
|
||||
.ace-chaos .ace_variable {\
|
||||
color:#997744;\
|
||||
}\
|
||||
.ace-chaos .ace_meta.ace_tag {\
|
||||
color:#BE53E6;\
|
||||
}\
|
||||
.ace-chaos .ace_entity.ace_other.ace_attribute-name {\
|
||||
color:#FFFF89;\
|
||||
}\
|
||||
.ace-chaos .ace_markup.ace_underline {\
|
||||
text-decoration: underline;\
|
||||
}\
|
||||
.ace-chaos .ace_fold-widget {\
|
||||
text-align: center;\
|
||||
}\
|
||||
.ace-chaos .ace_fold-widget:hover {\
|
||||
color: #777;\
|
||||
}\
|
||||
.ace-chaos .ace_fold-widget.ace_start,\
|
||||
.ace-chaos .ace_fold-widget.ace_end,\
|
||||
.ace-chaos .ace_fold-widget.ace_closed{\
|
||||
background: none;\
|
||||
border: none;\
|
||||
box-shadow: none;\
|
||||
}\
|
||||
.ace-chaos .ace_fold-widget.ace_start:after {\
|
||||
content: '▾'\
|
||||
}\
|
||||
.ace-chaos .ace_fold-widget.ace_end:after {\
|
||||
content: '▴'\
|
||||
}\
|
||||
.ace-chaos .ace_fold-widget.ace_closed:after {\
|
||||
content: '‣'\
|
||||
}\
|
||||
.ace-chaos .ace_indent-guide {\
|
||||
border-right:1px dotted #333;\
|
||||
margin-right:-1px;\
|
||||
}\
|
||||
.ace-chaos .ace_fold { \
|
||||
background: #222; \
|
||||
border-radius: 3px; \
|
||||
color: #7AF; \
|
||||
border: none; \
|
||||
}\
|
||||
.ace-chaos .ace_fold:hover {\
|
||||
background: #CCC; \
|
||||
color: #000;\
|
||||
}\
|
||||
";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
|
||||
});
|
||||
128
modules/backend/assets/vendor/ace/theme-chrome.js
vendored
Executable file
128
modules/backend/assets/vendor/ace/theme-chrome.js
vendored
Executable file
@@ -0,0 +1,128 @@
|
||||
ace.define("ace/theme/chrome",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = false;
|
||||
exports.cssClass = "ace-chrome";
|
||||
exports.cssText = ".ace-chrome .ace_gutter {\
|
||||
background: #ebebeb;\
|
||||
color: #333;\
|
||||
overflow : hidden;\
|
||||
}\
|
||||
.ace-chrome .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #e8e8e8;\
|
||||
}\
|
||||
.ace-chrome {\
|
||||
background-color: #FFFFFF;\
|
||||
color: black;\
|
||||
}\
|
||||
.ace-chrome .ace_cursor {\
|
||||
color: black;\
|
||||
}\
|
||||
.ace-chrome .ace_invisible {\
|
||||
color: rgb(191, 191, 191);\
|
||||
}\
|
||||
.ace-chrome .ace_constant.ace_buildin {\
|
||||
color: rgb(88, 72, 246);\
|
||||
}\
|
||||
.ace-chrome .ace_constant.ace_language {\
|
||||
color: rgb(88, 92, 246);\
|
||||
}\
|
||||
.ace-chrome .ace_constant.ace_library {\
|
||||
color: rgb(6, 150, 14);\
|
||||
}\
|
||||
.ace-chrome .ace_invalid {\
|
||||
background-color: rgb(153, 0, 0);\
|
||||
color: white;\
|
||||
}\
|
||||
.ace-chrome .ace_fold {\
|
||||
}\
|
||||
.ace-chrome .ace_support.ace_function {\
|
||||
color: rgb(60, 76, 114);\
|
||||
}\
|
||||
.ace-chrome .ace_support.ace_constant {\
|
||||
color: rgb(6, 150, 14);\
|
||||
}\
|
||||
.ace-chrome .ace_support.ace_type,\
|
||||
.ace-chrome .ace_support.ace_class\
|
||||
.ace-chrome .ace_support.ace_other {\
|
||||
color: rgb(109, 121, 222);\
|
||||
}\
|
||||
.ace-chrome .ace_variable.ace_parameter {\
|
||||
font-style:italic;\
|
||||
color:#FD971F;\
|
||||
}\
|
||||
.ace-chrome .ace_keyword.ace_operator {\
|
||||
color: rgb(104, 118, 135);\
|
||||
}\
|
||||
.ace-chrome .ace_comment {\
|
||||
color: #236e24;\
|
||||
}\
|
||||
.ace-chrome .ace_comment.ace_doc {\
|
||||
color: #236e24;\
|
||||
}\
|
||||
.ace-chrome .ace_comment.ace_doc.ace_tag {\
|
||||
color: #236e24;\
|
||||
}\
|
||||
.ace-chrome .ace_constant.ace_numeric {\
|
||||
color: rgb(0, 0, 205);\
|
||||
}\
|
||||
.ace-chrome .ace_variable {\
|
||||
color: rgb(49, 132, 149);\
|
||||
}\
|
||||
.ace-chrome .ace_xml-pe {\
|
||||
color: rgb(104, 104, 91);\
|
||||
}\
|
||||
.ace-chrome .ace_entity.ace_name.ace_function {\
|
||||
color: #0000A2;\
|
||||
}\
|
||||
.ace-chrome .ace_heading {\
|
||||
color: rgb(12, 7, 255);\
|
||||
}\
|
||||
.ace-chrome .ace_list {\
|
||||
color:rgb(185, 6, 144);\
|
||||
}\
|
||||
.ace-chrome .ace_marker-layer .ace_selection {\
|
||||
background: rgb(181, 213, 255);\
|
||||
}\
|
||||
.ace-chrome .ace_marker-layer .ace_step {\
|
||||
background: rgb(252, 255, 0);\
|
||||
}\
|
||||
.ace-chrome .ace_marker-layer .ace_stack {\
|
||||
background: rgb(164, 229, 101);\
|
||||
}\
|
||||
.ace-chrome .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid rgb(192, 192, 192);\
|
||||
}\
|
||||
.ace-chrome .ace_marker-layer .ace_active-line {\
|
||||
background: rgba(0, 0, 0, 0.07);\
|
||||
}\
|
||||
.ace-chrome .ace_gutter-active-line {\
|
||||
background-color : #dcdcdc;\
|
||||
}\
|
||||
.ace-chrome .ace_marker-layer .ace_selected-word {\
|
||||
background: rgb(250, 250, 255);\
|
||||
border: 1px solid rgb(200, 200, 250);\
|
||||
}\
|
||||
.ace-chrome .ace_storage,\
|
||||
.ace-chrome .ace_keyword,\
|
||||
.ace-chrome .ace_meta.ace_tag {\
|
||||
color: rgb(147, 15, 128);\
|
||||
}\
|
||||
.ace-chrome .ace_string.ace_regex {\
|
||||
color: rgb(255, 0, 0)\
|
||||
}\
|
||||
.ace-chrome .ace_string {\
|
||||
color: #1A1AA6;\
|
||||
}\
|
||||
.ace-chrome .ace_entity.ace_other.ace_attribute-name {\
|
||||
color: #994409;\
|
||||
}\
|
||||
.ace-chrome .ace_indent-guide {\
|
||||
background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y;\
|
||||
}\
|
||||
";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
95
modules/backend/assets/vendor/ace/theme-clouds.js
vendored
Executable file
95
modules/backend/assets/vendor/ace/theme-clouds.js
vendored
Executable file
@@ -0,0 +1,95 @@
|
||||
ace.define("ace/theme/clouds",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = false;
|
||||
exports.cssClass = "ace-clouds";
|
||||
exports.cssText = ".ace-clouds .ace_gutter {\
|
||||
background: #ebebeb;\
|
||||
color: #333\
|
||||
}\
|
||||
.ace-clouds .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #e8e8e8\
|
||||
}\
|
||||
.ace-clouds {\
|
||||
background-color: #FFFFFF;\
|
||||
color: #000000\
|
||||
}\
|
||||
.ace-clouds .ace_cursor {\
|
||||
color: #000000\
|
||||
}\
|
||||
.ace-clouds .ace_marker-layer .ace_selection {\
|
||||
background: #BDD5FC\
|
||||
}\
|
||||
.ace-clouds.ace_multiselect .ace_selection.ace_start {\
|
||||
box-shadow: 0 0 3px 0px #FFFFFF;\
|
||||
}\
|
||||
.ace-clouds .ace_marker-layer .ace_step {\
|
||||
background: rgb(255, 255, 0)\
|
||||
}\
|
||||
.ace-clouds .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid #BFBFBF\
|
||||
}\
|
||||
.ace-clouds .ace_marker-layer .ace_active-line {\
|
||||
background: #FFFBD1\
|
||||
}\
|
||||
.ace-clouds .ace_gutter-active-line {\
|
||||
background-color : #dcdcdc\
|
||||
}\
|
||||
.ace-clouds .ace_marker-layer .ace_selected-word {\
|
||||
border: 1px solid #BDD5FC\
|
||||
}\
|
||||
.ace-clouds .ace_invisible {\
|
||||
color: #BFBFBF\
|
||||
}\
|
||||
.ace-clouds .ace_keyword,\
|
||||
.ace-clouds .ace_meta,\
|
||||
.ace-clouds .ace_support.ace_constant.ace_property-value {\
|
||||
color: #AF956F\
|
||||
}\
|
||||
.ace-clouds .ace_keyword.ace_operator {\
|
||||
color: #484848\
|
||||
}\
|
||||
.ace-clouds .ace_keyword.ace_other.ace_unit {\
|
||||
color: #96DC5F\
|
||||
}\
|
||||
.ace-clouds .ace_constant.ace_language {\
|
||||
color: #39946A\
|
||||
}\
|
||||
.ace-clouds .ace_constant.ace_numeric {\
|
||||
color: #46A609\
|
||||
}\
|
||||
.ace-clouds .ace_constant.ace_character.ace_entity {\
|
||||
color: #BF78CC\
|
||||
}\
|
||||
.ace-clouds .ace_invalid {\
|
||||
background-color: #FF002A\
|
||||
}\
|
||||
.ace-clouds .ace_fold {\
|
||||
background-color: #AF956F;\
|
||||
border-color: #000000\
|
||||
}\
|
||||
.ace-clouds .ace_storage,\
|
||||
.ace-clouds .ace_support.ace_class,\
|
||||
.ace-clouds .ace_support.ace_function,\
|
||||
.ace-clouds .ace_support.ace_other,\
|
||||
.ace-clouds .ace_support.ace_type {\
|
||||
color: #C52727\
|
||||
}\
|
||||
.ace-clouds .ace_string {\
|
||||
color: #5D90CD\
|
||||
}\
|
||||
.ace-clouds .ace_comment {\
|
||||
color: #BCC8BA\
|
||||
}\
|
||||
.ace-clouds .ace_entity.ace_name.ace_tag,\
|
||||
.ace-clouds .ace_entity.ace_other.ace_attribute-name {\
|
||||
color: #606060\
|
||||
}\
|
||||
.ace-clouds .ace_indent-guide {\
|
||||
background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y\
|
||||
}";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
96
modules/backend/assets/vendor/ace/theme-clouds_midnight.js
vendored
Executable file
96
modules/backend/assets/vendor/ace/theme-clouds_midnight.js
vendored
Executable file
@@ -0,0 +1,96 @@
|
||||
ace.define("ace/theme/clouds_midnight",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-clouds-midnight";
|
||||
exports.cssText = ".ace-clouds-midnight .ace_gutter {\
|
||||
background: #232323;\
|
||||
color: #929292\
|
||||
}\
|
||||
.ace-clouds-midnight .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #232323\
|
||||
}\
|
||||
.ace-clouds-midnight {\
|
||||
background-color: #191919;\
|
||||
color: #929292\
|
||||
}\
|
||||
.ace-clouds-midnight .ace_cursor {\
|
||||
color: #7DA5DC\
|
||||
}\
|
||||
.ace-clouds-midnight .ace_marker-layer .ace_selection {\
|
||||
background: #000000\
|
||||
}\
|
||||
.ace-clouds-midnight.ace_multiselect .ace_selection.ace_start {\
|
||||
box-shadow: 0 0 3px 0px #191919;\
|
||||
}\
|
||||
.ace-clouds-midnight .ace_marker-layer .ace_step {\
|
||||
background: rgb(102, 82, 0)\
|
||||
}\
|
||||
.ace-clouds-midnight .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid #BFBFBF\
|
||||
}\
|
||||
.ace-clouds-midnight .ace_marker-layer .ace_active-line {\
|
||||
background: rgba(215, 215, 215, 0.031)\
|
||||
}\
|
||||
.ace-clouds-midnight .ace_gutter-active-line {\
|
||||
background-color: rgba(215, 215, 215, 0.031)\
|
||||
}\
|
||||
.ace-clouds-midnight .ace_marker-layer .ace_selected-word {\
|
||||
border: 1px solid #000000\
|
||||
}\
|
||||
.ace-clouds-midnight .ace_invisible {\
|
||||
color: #666\
|
||||
}\
|
||||
.ace-clouds-midnight .ace_keyword,\
|
||||
.ace-clouds-midnight .ace_meta,\
|
||||
.ace-clouds-midnight .ace_support.ace_constant.ace_property-value {\
|
||||
color: #927C5D\
|
||||
}\
|
||||
.ace-clouds-midnight .ace_keyword.ace_operator {\
|
||||
color: #4B4B4B\
|
||||
}\
|
||||
.ace-clouds-midnight .ace_keyword.ace_other.ace_unit {\
|
||||
color: #366F1A\
|
||||
}\
|
||||
.ace-clouds-midnight .ace_constant.ace_language {\
|
||||
color: #39946A\
|
||||
}\
|
||||
.ace-clouds-midnight .ace_constant.ace_numeric {\
|
||||
color: #46A609\
|
||||
}\
|
||||
.ace-clouds-midnight .ace_constant.ace_character.ace_entity {\
|
||||
color: #A165AC\
|
||||
}\
|
||||
.ace-clouds-midnight .ace_invalid {\
|
||||
color: #FFFFFF;\
|
||||
background-color: #E92E2E\
|
||||
}\
|
||||
.ace-clouds-midnight .ace_fold {\
|
||||
background-color: #927C5D;\
|
||||
border-color: #929292\
|
||||
}\
|
||||
.ace-clouds-midnight .ace_storage,\
|
||||
.ace-clouds-midnight .ace_support.ace_class,\
|
||||
.ace-clouds-midnight .ace_support.ace_function,\
|
||||
.ace-clouds-midnight .ace_support.ace_other,\
|
||||
.ace-clouds-midnight .ace_support.ace_type {\
|
||||
color: #E92E2E\
|
||||
}\
|
||||
.ace-clouds-midnight .ace_string {\
|
||||
color: #5D90CD\
|
||||
}\
|
||||
.ace-clouds-midnight .ace_comment {\
|
||||
color: #3C403B\
|
||||
}\
|
||||
.ace-clouds-midnight .ace_entity.ace_name.ace_tag,\
|
||||
.ace-clouds-midnight .ace_entity.ace_other.ace_attribute-name {\
|
||||
color: #606060\
|
||||
}\
|
||||
.ace-clouds-midnight .ace_indent-guide {\
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHB3d/8PAAOIAdULw8qMAAAAAElFTkSuQmCC) right repeat-y\
|
||||
}";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
113
modules/backend/assets/vendor/ace/theme-cobalt.js
vendored
Executable file
113
modules/backend/assets/vendor/ace/theme-cobalt.js
vendored
Executable file
@@ -0,0 +1,113 @@
|
||||
ace.define("ace/theme/cobalt",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-cobalt";
|
||||
exports.cssText = ".ace-cobalt .ace_gutter {\
|
||||
background: #011e3a;\
|
||||
color: rgb(128,145,160)\
|
||||
}\
|
||||
.ace-cobalt .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #555555\
|
||||
}\
|
||||
.ace-cobalt {\
|
||||
background-color: #002240;\
|
||||
color: #FFFFFF\
|
||||
}\
|
||||
.ace-cobalt .ace_cursor {\
|
||||
color: #FFFFFF\
|
||||
}\
|
||||
.ace-cobalt .ace_marker-layer .ace_selection {\
|
||||
background: rgba(179, 101, 57, 0.75)\
|
||||
}\
|
||||
.ace-cobalt.ace_multiselect .ace_selection.ace_start {\
|
||||
box-shadow: 0 0 3px 0px #002240;\
|
||||
}\
|
||||
.ace-cobalt .ace_marker-layer .ace_step {\
|
||||
background: rgb(127, 111, 19)\
|
||||
}\
|
||||
.ace-cobalt .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid rgba(255, 255, 255, 0.15)\
|
||||
}\
|
||||
.ace-cobalt .ace_marker-layer .ace_active-line {\
|
||||
background: rgba(0, 0, 0, 0.35)\
|
||||
}\
|
||||
.ace-cobalt .ace_gutter-active-line {\
|
||||
background-color: rgba(0, 0, 0, 0.35)\
|
||||
}\
|
||||
.ace-cobalt .ace_marker-layer .ace_selected-word {\
|
||||
border: 1px solid rgba(179, 101, 57, 0.75)\
|
||||
}\
|
||||
.ace-cobalt .ace_invisible {\
|
||||
color: rgba(255, 255, 255, 0.15)\
|
||||
}\
|
||||
.ace-cobalt .ace_keyword,\
|
||||
.ace-cobalt .ace_meta {\
|
||||
color: #FF9D00\
|
||||
}\
|
||||
.ace-cobalt .ace_constant,\
|
||||
.ace-cobalt .ace_constant.ace_character,\
|
||||
.ace-cobalt .ace_constant.ace_character.ace_escape,\
|
||||
.ace-cobalt .ace_constant.ace_other {\
|
||||
color: #FF628C\
|
||||
}\
|
||||
.ace-cobalt .ace_invalid {\
|
||||
color: #F8F8F8;\
|
||||
background-color: #800F00\
|
||||
}\
|
||||
.ace-cobalt .ace_support {\
|
||||
color: #80FFBB\
|
||||
}\
|
||||
.ace-cobalt .ace_support.ace_constant {\
|
||||
color: #EB939A\
|
||||
}\
|
||||
.ace-cobalt .ace_fold {\
|
||||
background-color: #FF9D00;\
|
||||
border-color: #FFFFFF\
|
||||
}\
|
||||
.ace-cobalt .ace_support.ace_function {\
|
||||
color: #FFB054\
|
||||
}\
|
||||
.ace-cobalt .ace_storage {\
|
||||
color: #FFEE80\
|
||||
}\
|
||||
.ace-cobalt .ace_entity {\
|
||||
color: #FFDD00\
|
||||
}\
|
||||
.ace-cobalt .ace_string {\
|
||||
color: #3AD900\
|
||||
}\
|
||||
.ace-cobalt .ace_string.ace_regexp {\
|
||||
color: #80FFC2\
|
||||
}\
|
||||
.ace-cobalt .ace_comment {\
|
||||
font-style: italic;\
|
||||
color: #0088FF\
|
||||
}\
|
||||
.ace-cobalt .ace_heading,\
|
||||
.ace-cobalt .ace_markup.ace_heading {\
|
||||
color: #C8E4FD;\
|
||||
background-color: #001221\
|
||||
}\
|
||||
.ace-cobalt .ace_list,\
|
||||
.ace-cobalt .ace_markup.ace_list {\
|
||||
background-color: #130D26\
|
||||
}\
|
||||
.ace-cobalt .ace_variable {\
|
||||
color: #CCCCCC\
|
||||
}\
|
||||
.ace-cobalt .ace_variable.ace_language {\
|
||||
color: #FF80E1\
|
||||
}\
|
||||
.ace-cobalt .ace_meta.ace_tag {\
|
||||
color: #9EFFFF\
|
||||
}\
|
||||
.ace-cobalt .ace_indent-guide {\
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHCLSvkPAAP3AgSDTRd4AAAAAElFTkSuQmCC) right repeat-y\
|
||||
}\
|
||||
";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
118
modules/backend/assets/vendor/ace/theme-crimson_editor.js
vendored
Executable file
118
modules/backend/assets/vendor/ace/theme-crimson_editor.js
vendored
Executable file
@@ -0,0 +1,118 @@
|
||||
ace.define("ace/theme/crimson_editor",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
exports.isDark = false;
|
||||
exports.cssText = ".ace-crimson-editor .ace_gutter {\
|
||||
background: #ebebeb;\
|
||||
color: #333;\
|
||||
overflow : hidden;\
|
||||
}\
|
||||
.ace-crimson-editor .ace_gutter-layer {\
|
||||
width: 100%;\
|
||||
text-align: right;\
|
||||
}\
|
||||
.ace-crimson-editor .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #e8e8e8;\
|
||||
}\
|
||||
.ace-crimson-editor {\
|
||||
background-color: #FFFFFF;\
|
||||
color: rgb(64, 64, 64);\
|
||||
}\
|
||||
.ace-crimson-editor .ace_cursor {\
|
||||
color: black;\
|
||||
}\
|
||||
.ace-crimson-editor .ace_invisible {\
|
||||
color: rgb(191, 191, 191);\
|
||||
}\
|
||||
.ace-crimson-editor .ace_identifier {\
|
||||
color: black;\
|
||||
}\
|
||||
.ace-crimson-editor .ace_keyword {\
|
||||
color: blue;\
|
||||
}\
|
||||
.ace-crimson-editor .ace_constant.ace_buildin {\
|
||||
color: rgb(88, 72, 246);\
|
||||
}\
|
||||
.ace-crimson-editor .ace_constant.ace_language {\
|
||||
color: rgb(255, 156, 0);\
|
||||
}\
|
||||
.ace-crimson-editor .ace_constant.ace_library {\
|
||||
color: rgb(6, 150, 14);\
|
||||
}\
|
||||
.ace-crimson-editor .ace_invalid {\
|
||||
text-decoration: line-through;\
|
||||
color: rgb(224, 0, 0);\
|
||||
}\
|
||||
.ace-crimson-editor .ace_fold {\
|
||||
}\
|
||||
.ace-crimson-editor .ace_support.ace_function {\
|
||||
color: rgb(192, 0, 0);\
|
||||
}\
|
||||
.ace-crimson-editor .ace_support.ace_constant {\
|
||||
color: rgb(6, 150, 14);\
|
||||
}\
|
||||
.ace-crimson-editor .ace_support.ace_type,\
|
||||
.ace-crimson-editor .ace_support.ace_class {\
|
||||
color: rgb(109, 121, 222);\
|
||||
}\
|
||||
.ace-crimson-editor .ace_keyword.ace_operator {\
|
||||
color: rgb(49, 132, 149);\
|
||||
}\
|
||||
.ace-crimson-editor .ace_string {\
|
||||
color: rgb(128, 0, 128);\
|
||||
}\
|
||||
.ace-crimson-editor .ace_comment {\
|
||||
color: rgb(76, 136, 107);\
|
||||
}\
|
||||
.ace-crimson-editor .ace_comment.ace_doc {\
|
||||
color: rgb(0, 102, 255);\
|
||||
}\
|
||||
.ace-crimson-editor .ace_comment.ace_doc.ace_tag {\
|
||||
color: rgb(128, 159, 191);\
|
||||
}\
|
||||
.ace-crimson-editor .ace_constant.ace_numeric {\
|
||||
color: rgb(0, 0, 64);\
|
||||
}\
|
||||
.ace-crimson-editor .ace_variable {\
|
||||
color: rgb(0, 64, 128);\
|
||||
}\
|
||||
.ace-crimson-editor .ace_xml-pe {\
|
||||
color: rgb(104, 104, 91);\
|
||||
}\
|
||||
.ace-crimson-editor .ace_marker-layer .ace_selection {\
|
||||
background: rgb(181, 213, 255);\
|
||||
}\
|
||||
.ace-crimson-editor .ace_marker-layer .ace_step {\
|
||||
background: rgb(252, 255, 0);\
|
||||
}\
|
||||
.ace-crimson-editor .ace_marker-layer .ace_stack {\
|
||||
background: rgb(164, 229, 101);\
|
||||
}\
|
||||
.ace-crimson-editor .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid rgb(192, 192, 192);\
|
||||
}\
|
||||
.ace-crimson-editor .ace_marker-layer .ace_active-line {\
|
||||
background: rgb(232, 242, 254);\
|
||||
}\
|
||||
.ace-crimson-editor .ace_gutter-active-line {\
|
||||
background-color : #dcdcdc;\
|
||||
}\
|
||||
.ace-crimson-editor .ace_meta.ace_tag {\
|
||||
color:rgb(28, 2, 255);\
|
||||
}\
|
||||
.ace-crimson-editor .ace_marker-layer .ace_selected-word {\
|
||||
background: rgb(250, 250, 255);\
|
||||
border: 1px solid rgb(200, 200, 250);\
|
||||
}\
|
||||
.ace-crimson-editor .ace_string.ace_regex {\
|
||||
color: rgb(192, 0, 192);\
|
||||
}\
|
||||
.ace-crimson-editor .ace_indent-guide {\
|
||||
background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y;\
|
||||
}";
|
||||
|
||||
exports.cssClass = "ace-crimson-editor";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
108
modules/backend/assets/vendor/ace/theme-dawn.js
vendored
Executable file
108
modules/backend/assets/vendor/ace/theme-dawn.js
vendored
Executable file
@@ -0,0 +1,108 @@
|
||||
ace.define("ace/theme/dawn",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = false;
|
||||
exports.cssClass = "ace-dawn";
|
||||
exports.cssText = ".ace-dawn .ace_gutter {\
|
||||
background: #ebebeb;\
|
||||
color: #333\
|
||||
}\
|
||||
.ace-dawn .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #e8e8e8\
|
||||
}\
|
||||
.ace-dawn {\
|
||||
background-color: #F9F9F9;\
|
||||
color: #080808\
|
||||
}\
|
||||
.ace-dawn .ace_cursor {\
|
||||
color: #000000\
|
||||
}\
|
||||
.ace-dawn .ace_marker-layer .ace_selection {\
|
||||
background: rgba(39, 95, 255, 0.30)\
|
||||
}\
|
||||
.ace-dawn.ace_multiselect .ace_selection.ace_start {\
|
||||
box-shadow: 0 0 3px 0px #F9F9F9;\
|
||||
}\
|
||||
.ace-dawn .ace_marker-layer .ace_step {\
|
||||
background: rgb(255, 255, 0)\
|
||||
}\
|
||||
.ace-dawn .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid rgba(75, 75, 126, 0.50)\
|
||||
}\
|
||||
.ace-dawn .ace_marker-layer .ace_active-line {\
|
||||
background: rgba(36, 99, 180, 0.12)\
|
||||
}\
|
||||
.ace-dawn .ace_gutter-active-line {\
|
||||
background-color : #dcdcdc\
|
||||
}\
|
||||
.ace-dawn .ace_marker-layer .ace_selected-word {\
|
||||
border: 1px solid rgba(39, 95, 255, 0.30)\
|
||||
}\
|
||||
.ace-dawn .ace_invisible {\
|
||||
color: rgba(75, 75, 126, 0.50)\
|
||||
}\
|
||||
.ace-dawn .ace_keyword,\
|
||||
.ace-dawn .ace_meta {\
|
||||
color: #794938\
|
||||
}\
|
||||
.ace-dawn .ace_constant,\
|
||||
.ace-dawn .ace_constant.ace_character,\
|
||||
.ace-dawn .ace_constant.ace_character.ace_escape,\
|
||||
.ace-dawn .ace_constant.ace_other {\
|
||||
color: #811F24\
|
||||
}\
|
||||
.ace-dawn .ace_invalid.ace_illegal {\
|
||||
text-decoration: underline;\
|
||||
font-style: italic;\
|
||||
color: #F8F8F8;\
|
||||
background-color: #B52A1D\
|
||||
}\
|
||||
.ace-dawn .ace_invalid.ace_deprecated {\
|
||||
text-decoration: underline;\
|
||||
font-style: italic;\
|
||||
color: #B52A1D\
|
||||
}\
|
||||
.ace-dawn .ace_support {\
|
||||
color: #691C97\
|
||||
}\
|
||||
.ace-dawn .ace_support.ace_constant {\
|
||||
color: #B4371F\
|
||||
}\
|
||||
.ace-dawn .ace_fold {\
|
||||
background-color: #794938;\
|
||||
border-color: #080808\
|
||||
}\
|
||||
.ace-dawn .ace_list,\
|
||||
.ace-dawn .ace_markup.ace_list,\
|
||||
.ace-dawn .ace_support.ace_function {\
|
||||
color: #693A17\
|
||||
}\
|
||||
.ace-dawn .ace_storage {\
|
||||
font-style: italic;\
|
||||
color: #A71D5D\
|
||||
}\
|
||||
.ace-dawn .ace_string {\
|
||||
color: #0B6125\
|
||||
}\
|
||||
.ace-dawn .ace_string.ace_regexp {\
|
||||
color: #CF5628\
|
||||
}\
|
||||
.ace-dawn .ace_comment {\
|
||||
font-style: italic;\
|
||||
color: #5A525F\
|
||||
}\
|
||||
.ace-dawn .ace_heading,\
|
||||
.ace-dawn .ace_markup.ace_heading {\
|
||||
color: #19356D\
|
||||
}\
|
||||
.ace-dawn .ace_variable {\
|
||||
color: #234A97\
|
||||
}\
|
||||
.ace-dawn .ace_indent-guide {\
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYLh/5+x/AAizA4hxNNsZAAAAAElFTkSuQmCC) right repeat-y\
|
||||
}";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
141
modules/backend/assets/vendor/ace/theme-dreamweaver.js
vendored
Executable file
141
modules/backend/assets/vendor/ace/theme-dreamweaver.js
vendored
Executable file
@@ -0,0 +1,141 @@
|
||||
ace.define("ace/theme/dreamweaver",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
exports.isDark = false;
|
||||
exports.cssClass = "ace-dreamweaver";
|
||||
exports.cssText = ".ace-dreamweaver .ace_gutter {\
|
||||
background: #e8e8e8;\
|
||||
color: #333;\
|
||||
}\
|
||||
.ace-dreamweaver .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #e8e8e8;\
|
||||
}\
|
||||
.ace-dreamweaver {\
|
||||
background-color: #FFFFFF;\
|
||||
color: black;\
|
||||
}\
|
||||
.ace-dreamweaver .ace_fold {\
|
||||
background-color: #757AD8;\
|
||||
}\
|
||||
.ace-dreamweaver .ace_cursor {\
|
||||
color: black;\
|
||||
}\
|
||||
.ace-dreamweaver .ace_invisible {\
|
||||
color: rgb(191, 191, 191);\
|
||||
}\
|
||||
.ace-dreamweaver .ace_storage,\
|
||||
.ace-dreamweaver .ace_keyword {\
|
||||
color: blue;\
|
||||
}\
|
||||
.ace-dreamweaver .ace_constant.ace_buildin {\
|
||||
color: rgb(88, 72, 246);\
|
||||
}\
|
||||
.ace-dreamweaver .ace_constant.ace_language {\
|
||||
color: rgb(88, 92, 246);\
|
||||
}\
|
||||
.ace-dreamweaver .ace_constant.ace_library {\
|
||||
color: rgb(6, 150, 14);\
|
||||
}\
|
||||
.ace-dreamweaver .ace_invalid {\
|
||||
background-color: rgb(153, 0, 0);\
|
||||
color: white;\
|
||||
}\
|
||||
.ace-dreamweaver .ace_support.ace_function {\
|
||||
color: rgb(60, 76, 114);\
|
||||
}\
|
||||
.ace-dreamweaver .ace_support.ace_constant {\
|
||||
color: rgb(6, 150, 14);\
|
||||
}\
|
||||
.ace-dreamweaver .ace_support.ace_type,\
|
||||
.ace-dreamweaver .ace_support.ace_class {\
|
||||
color: #009;\
|
||||
}\
|
||||
.ace-dreamweaver .ace_support.ace_php_tag {\
|
||||
color: #f00;\
|
||||
}\
|
||||
.ace-dreamweaver .ace_keyword.ace_operator {\
|
||||
color: rgb(104, 118, 135);\
|
||||
}\
|
||||
.ace-dreamweaver .ace_string {\
|
||||
color: #00F;\
|
||||
}\
|
||||
.ace-dreamweaver .ace_comment {\
|
||||
color: rgb(76, 136, 107);\
|
||||
}\
|
||||
.ace-dreamweaver .ace_comment.ace_doc {\
|
||||
color: rgb(0, 102, 255);\
|
||||
}\
|
||||
.ace-dreamweaver .ace_comment.ace_doc.ace_tag {\
|
||||
color: rgb(128, 159, 191);\
|
||||
}\
|
||||
.ace-dreamweaver .ace_constant.ace_numeric {\
|
||||
color: rgb(0, 0, 205);\
|
||||
}\
|
||||
.ace-dreamweaver .ace_variable {\
|
||||
color: #06F\
|
||||
}\
|
||||
.ace-dreamweaver .ace_xml-pe {\
|
||||
color: rgb(104, 104, 91);\
|
||||
}\
|
||||
.ace-dreamweaver .ace_entity.ace_name.ace_function {\
|
||||
color: #00F;\
|
||||
}\
|
||||
.ace-dreamweaver .ace_heading {\
|
||||
color: rgb(12, 7, 255);\
|
||||
}\
|
||||
.ace-dreamweaver .ace_list {\
|
||||
color:rgb(185, 6, 144);\
|
||||
}\
|
||||
.ace-dreamweaver .ace_marker-layer .ace_selection {\
|
||||
background: rgb(181, 213, 255);\
|
||||
}\
|
||||
.ace-dreamweaver .ace_marker-layer .ace_step {\
|
||||
background: rgb(252, 255, 0);\
|
||||
}\
|
||||
.ace-dreamweaver .ace_marker-layer .ace_stack {\
|
||||
background: rgb(164, 229, 101);\
|
||||
}\
|
||||
.ace-dreamweaver .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid rgb(192, 192, 192);\
|
||||
}\
|
||||
.ace-dreamweaver .ace_marker-layer .ace_active-line {\
|
||||
background: rgba(0, 0, 0, 0.07);\
|
||||
}\
|
||||
.ace-dreamweaver .ace_gutter-active-line {\
|
||||
background-color : #DCDCDC;\
|
||||
}\
|
||||
.ace-dreamweaver .ace_marker-layer .ace_selected-word {\
|
||||
background: rgb(250, 250, 255);\
|
||||
border: 1px solid rgb(200, 200, 250);\
|
||||
}\
|
||||
.ace-dreamweaver .ace_meta.ace_tag {\
|
||||
color:#009;\
|
||||
}\
|
||||
.ace-dreamweaver .ace_meta.ace_tag.ace_anchor {\
|
||||
color:#060;\
|
||||
}\
|
||||
.ace-dreamweaver .ace_meta.ace_tag.ace_form {\
|
||||
color:#F90;\
|
||||
}\
|
||||
.ace-dreamweaver .ace_meta.ace_tag.ace_image {\
|
||||
color:#909;\
|
||||
}\
|
||||
.ace-dreamweaver .ace_meta.ace_tag.ace_script {\
|
||||
color:#900;\
|
||||
}\
|
||||
.ace-dreamweaver .ace_meta.ace_tag.ace_style {\
|
||||
color:#909;\
|
||||
}\
|
||||
.ace-dreamweaver .ace_meta.ace_tag.ace_table {\
|
||||
color:#099;\
|
||||
}\
|
||||
.ace-dreamweaver .ace_string.ace_regex {\
|
||||
color: rgb(255, 0, 0)\
|
||||
}\
|
||||
.ace-dreamweaver .ace_indent-guide {\
|
||||
background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y;\
|
||||
}";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
98
modules/backend/assets/vendor/ace/theme-eclipse.js
vendored
Executable file
98
modules/backend/assets/vendor/ace/theme-eclipse.js
vendored
Executable file
@@ -0,0 +1,98 @@
|
||||
ace.define("ace/theme/eclipse",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.isDark = false;
|
||||
exports.cssText = ".ace-eclipse .ace_gutter {\
|
||||
background: #ebebeb;\
|
||||
border-right: 1px solid rgb(159, 159, 159);\
|
||||
color: rgb(136, 136, 136);\
|
||||
}\
|
||||
.ace-eclipse .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #ebebeb;\
|
||||
}\
|
||||
.ace-eclipse {\
|
||||
background-color: #FFFFFF;\
|
||||
color: black;\
|
||||
}\
|
||||
.ace-eclipse .ace_fold {\
|
||||
background-color: rgb(60, 76, 114);\
|
||||
}\
|
||||
.ace-eclipse .ace_cursor {\
|
||||
color: black;\
|
||||
}\
|
||||
.ace-eclipse .ace_storage,\
|
||||
.ace-eclipse .ace_keyword,\
|
||||
.ace-eclipse .ace_variable {\
|
||||
color: rgb(127, 0, 85);\
|
||||
}\
|
||||
.ace-eclipse .ace_constant.ace_buildin {\
|
||||
color: rgb(88, 72, 246);\
|
||||
}\
|
||||
.ace-eclipse .ace_constant.ace_library {\
|
||||
color: rgb(6, 150, 14);\
|
||||
}\
|
||||
.ace-eclipse .ace_function {\
|
||||
color: rgb(60, 76, 114);\
|
||||
}\
|
||||
.ace-eclipse .ace_string {\
|
||||
color: rgb(42, 0, 255);\
|
||||
}\
|
||||
.ace-eclipse .ace_comment {\
|
||||
color: rgb(113, 150, 130);\
|
||||
}\
|
||||
.ace-eclipse .ace_comment.ace_doc {\
|
||||
color: rgb(63, 95, 191);\
|
||||
}\
|
||||
.ace-eclipse .ace_comment.ace_doc.ace_tag {\
|
||||
color: rgb(127, 159, 191);\
|
||||
}\
|
||||
.ace-eclipse .ace_constant.ace_numeric {\
|
||||
color: darkblue;\
|
||||
}\
|
||||
.ace-eclipse .ace_tag {\
|
||||
color: rgb(25, 118, 116);\
|
||||
}\
|
||||
.ace-eclipse .ace_type {\
|
||||
color: rgb(127, 0, 127);\
|
||||
}\
|
||||
.ace-eclipse .ace_xml-pe {\
|
||||
color: rgb(104, 104, 91);\
|
||||
}\
|
||||
.ace-eclipse .ace_marker-layer .ace_selection {\
|
||||
background: rgb(181, 213, 255);\
|
||||
}\
|
||||
.ace-eclipse .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid rgb(192, 192, 192);\
|
||||
}\
|
||||
.ace-eclipse .ace_meta.ace_tag {\
|
||||
color:rgb(25, 118, 116);\
|
||||
}\
|
||||
.ace-eclipse .ace_invisible {\
|
||||
color: #ddd;\
|
||||
}\
|
||||
.ace-eclipse .ace_entity.ace_other.ace_attribute-name {\
|
||||
color:rgb(127, 0, 127);\
|
||||
}\
|
||||
.ace-eclipse .ace_marker-layer .ace_step {\
|
||||
background: rgb(255, 255, 0);\
|
||||
}\
|
||||
.ace-eclipse .ace_active-line {\
|
||||
background: rgb(232, 242, 254);\
|
||||
}\
|
||||
.ace-eclipse .ace_gutter-active-line {\
|
||||
background-color : #DADADA;\
|
||||
}\
|
||||
.ace-eclipse .ace_marker-layer .ace_selected-word {\
|
||||
border: 1px solid rgb(181, 213, 255);\
|
||||
}\
|
||||
.ace-eclipse .ace_indent-guide {\
|
||||
background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y;\
|
||||
}";
|
||||
|
||||
exports.cssClass = "ace-eclipse";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
103
modules/backend/assets/vendor/ace/theme-github.js
vendored
Executable file
103
modules/backend/assets/vendor/ace/theme-github.js
vendored
Executable file
@@ -0,0 +1,103 @@
|
||||
ace.define("ace/theme/github",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = false;
|
||||
exports.cssClass = "ace-github";
|
||||
exports.cssText = "\
|
||||
.ace-github .ace_gutter {\
|
||||
background: #e8e8e8;\
|
||||
color: #AAA;\
|
||||
}\
|
||||
.ace-github {\
|
||||
background: #fff;\
|
||||
color: #000;\
|
||||
}\
|
||||
.ace-github .ace_keyword {\
|
||||
font-weight: bold;\
|
||||
}\
|
||||
.ace-github .ace_string {\
|
||||
color: #D14;\
|
||||
}\
|
||||
.ace-github .ace_variable.ace_class {\
|
||||
color: teal;\
|
||||
}\
|
||||
.ace-github .ace_constant.ace_numeric {\
|
||||
color: #099;\
|
||||
}\
|
||||
.ace-github .ace_constant.ace_buildin {\
|
||||
color: #0086B3;\
|
||||
}\
|
||||
.ace-github .ace_support.ace_function {\
|
||||
color: #0086B3;\
|
||||
}\
|
||||
.ace-github .ace_comment {\
|
||||
color: #998;\
|
||||
font-style: italic;\
|
||||
}\
|
||||
.ace-github .ace_variable.ace_language {\
|
||||
color: #0086B3;\
|
||||
}\
|
||||
.ace-github .ace_paren {\
|
||||
font-weight: bold;\
|
||||
}\
|
||||
.ace-github .ace_boolean {\
|
||||
font-weight: bold;\
|
||||
}\
|
||||
.ace-github .ace_string.ace_regexp {\
|
||||
color: #009926;\
|
||||
font-weight: normal;\
|
||||
}\
|
||||
.ace-github .ace_variable.ace_instance {\
|
||||
color: teal;\
|
||||
}\
|
||||
.ace-github .ace_constant.ace_language {\
|
||||
font-weight: bold;\
|
||||
}\
|
||||
.ace-github .ace_cursor {\
|
||||
color: black;\
|
||||
}\
|
||||
.ace-github.ace_focus .ace_marker-layer .ace_active-line {\
|
||||
background: rgb(255, 255, 204);\
|
||||
}\
|
||||
.ace-github .ace_marker-layer .ace_active-line {\
|
||||
background: rgb(245, 245, 245);\
|
||||
}\
|
||||
.ace-github .ace_marker-layer .ace_selection {\
|
||||
background: rgb(181, 213, 255);\
|
||||
}\
|
||||
.ace-github.ace_multiselect .ace_selection.ace_start {\
|
||||
box-shadow: 0 0 3px 0px white;\
|
||||
}\
|
||||
.ace-github.ace_nobold .ace_line > span {\
|
||||
font-weight: normal !important;\
|
||||
}\
|
||||
.ace-github .ace_marker-layer .ace_step {\
|
||||
background: rgb(252, 255, 0);\
|
||||
}\
|
||||
.ace-github .ace_marker-layer .ace_stack {\
|
||||
background: rgb(164, 229, 101);\
|
||||
}\
|
||||
.ace-github .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid rgb(192, 192, 192);\
|
||||
}\
|
||||
.ace-github .ace_gutter-active-line {\
|
||||
background-color : rgba(0, 0, 0, 0.07);\
|
||||
}\
|
||||
.ace-github .ace_marker-layer .ace_selected-word {\
|
||||
background: rgb(250, 250, 255);\
|
||||
border: 1px solid rgb(200, 200, 250);\
|
||||
}\
|
||||
.ace-github .ace_invisible {\
|
||||
color: #BFBFBF\
|
||||
}\
|
||||
.ace-github .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #e8e8e8;\
|
||||
}\
|
||||
.ace-github .ace_indent-guide {\
|
||||
background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y;\
|
||||
}";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
96
modules/backend/assets/vendor/ace/theme-idle_fingers.js
vendored
Executable file
96
modules/backend/assets/vendor/ace/theme-idle_fingers.js
vendored
Executable file
@@ -0,0 +1,96 @@
|
||||
ace.define("ace/theme/idle_fingers",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-idle-fingers";
|
||||
exports.cssText = ".ace-idle-fingers .ace_gutter {\
|
||||
background: #3b3b3b;\
|
||||
color: rgb(153,153,153)\
|
||||
}\
|
||||
.ace-idle-fingers .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #3b3b3b\
|
||||
}\
|
||||
.ace-idle-fingers {\
|
||||
background-color: #323232;\
|
||||
color: #FFFFFF\
|
||||
}\
|
||||
.ace-idle-fingers .ace_cursor {\
|
||||
color: #91FF00\
|
||||
}\
|
||||
.ace-idle-fingers .ace_marker-layer .ace_selection {\
|
||||
background: rgba(90, 100, 126, 0.88)\
|
||||
}\
|
||||
.ace-idle-fingers.ace_multiselect .ace_selection.ace_start {\
|
||||
box-shadow: 0 0 3px 0px #323232;\
|
||||
}\
|
||||
.ace-idle-fingers .ace_marker-layer .ace_step {\
|
||||
background: rgb(102, 82, 0)\
|
||||
}\
|
||||
.ace-idle-fingers .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid #404040\
|
||||
}\
|
||||
.ace-idle-fingers .ace_marker-layer .ace_active-line {\
|
||||
background: #353637\
|
||||
}\
|
||||
.ace-idle-fingers .ace_gutter-active-line {\
|
||||
background-color: #353637\
|
||||
}\
|
||||
.ace-idle-fingers .ace_marker-layer .ace_selected-word {\
|
||||
border: 1px solid rgba(90, 100, 126, 0.88)\
|
||||
}\
|
||||
.ace-idle-fingers .ace_invisible {\
|
||||
color: #404040\
|
||||
}\
|
||||
.ace-idle-fingers .ace_keyword,\
|
||||
.ace-idle-fingers .ace_meta {\
|
||||
color: #CC7833\
|
||||
}\
|
||||
.ace-idle-fingers .ace_constant,\
|
||||
.ace-idle-fingers .ace_constant.ace_character,\
|
||||
.ace-idle-fingers .ace_constant.ace_character.ace_escape,\
|
||||
.ace-idle-fingers .ace_constant.ace_other,\
|
||||
.ace-idle-fingers .ace_support.ace_constant {\
|
||||
color: #6C99BB\
|
||||
}\
|
||||
.ace-idle-fingers .ace_invalid {\
|
||||
color: #FFFFFF;\
|
||||
background-color: #FF0000\
|
||||
}\
|
||||
.ace-idle-fingers .ace_fold {\
|
||||
background-color: #CC7833;\
|
||||
border-color: #FFFFFF\
|
||||
}\
|
||||
.ace-idle-fingers .ace_support.ace_function {\
|
||||
color: #B83426\
|
||||
}\
|
||||
.ace-idle-fingers .ace_variable.ace_parameter {\
|
||||
font-style: italic\
|
||||
}\
|
||||
.ace-idle-fingers .ace_string {\
|
||||
color: #A5C261\
|
||||
}\
|
||||
.ace-idle-fingers .ace_string.ace_regexp {\
|
||||
color: #CCCC33\
|
||||
}\
|
||||
.ace-idle-fingers .ace_comment {\
|
||||
font-style: italic;\
|
||||
color: #BC9458\
|
||||
}\
|
||||
.ace-idle-fingers .ace_meta.ace_tag {\
|
||||
color: #FFE5BB\
|
||||
}\
|
||||
.ace-idle-fingers .ace_entity.ace_name {\
|
||||
color: #FFC66D\
|
||||
}\
|
||||
.ace-idle-fingers .ace_collab.ace_user1 {\
|
||||
color: #323232;\
|
||||
background-color: #FFF980\
|
||||
}\
|
||||
.ace-idle-fingers .ace_indent-guide {\
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMwMjLyZYiPj/8PAAreAwAI1+g0AAAAAElFTkSuQmCC) right repeat-y\
|
||||
}";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
121
modules/backend/assets/vendor/ace/theme-iplastic.js
vendored
Executable file
121
modules/backend/assets/vendor/ace/theme-iplastic.js
vendored
Executable file
@@ -0,0 +1,121 @@
|
||||
ace.define("ace/theme/iplastic",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = false;
|
||||
exports.cssClass = "ace-iplastic";
|
||||
exports.cssText = ".ace-iplastic .ace_gutter {\
|
||||
background: #dddddd;\
|
||||
color: #666666\
|
||||
}\
|
||||
.ace-iplastic .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #bbbbbb\
|
||||
}\
|
||||
.ace-iplastic {\
|
||||
background-color: #eeeeee;\
|
||||
color: #333333\
|
||||
}\
|
||||
.ace-iplastic .ace_cursor {\
|
||||
color: #333\
|
||||
}\
|
||||
.ace-iplastic .ace_marker-layer .ace_selection {\
|
||||
background: #BAD6FD;\
|
||||
}\
|
||||
.ace-iplastic.ace_multiselect .ace_selection.ace_start {\
|
||||
border-radius: 4px\
|
||||
}\
|
||||
.ace-iplastic .ace_marker-layer .ace_step {\
|
||||
background: #444444\
|
||||
}\
|
||||
.ace-iplastic .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid #49483E;\
|
||||
background: #FFF799\
|
||||
}\
|
||||
.ace-iplastic .ace_marker-layer .ace_active-line {\
|
||||
background: #e5e5e5\
|
||||
}\
|
||||
.ace-iplastic .ace_gutter-active-line {\
|
||||
background-color: #eeeeee\
|
||||
}\
|
||||
.ace-iplastic .ace_marker-layer .ace_selected-word {\
|
||||
border: 1px solid #555555;\
|
||||
border-radius:4px\
|
||||
}\
|
||||
.ace-iplastic .ace_invisible {\
|
||||
color: #999999\
|
||||
}\
|
||||
.ace-iplastic .ace_entity.ace_name.ace_tag,\
|
||||
.ace-iplastic .ace_keyword,\
|
||||
.ace-iplastic .ace_meta.ace_tag,\
|
||||
.ace-iplastic .ace_storage {\
|
||||
color: #0000FF\
|
||||
}\
|
||||
.ace-iplastic .ace_punctuation,\
|
||||
.ace-iplastic .ace_punctuation.ace_tag {\
|
||||
color: #000\
|
||||
}\
|
||||
.ace-iplastic .ace_constant {\
|
||||
color: #333333;\
|
||||
font-weight: 700\
|
||||
}\
|
||||
.ace-iplastic .ace_constant.ace_character,\
|
||||
.ace-iplastic .ace_constant.ace_language,\
|
||||
.ace-iplastic .ace_constant.ace_numeric,\
|
||||
.ace-iplastic .ace_constant.ace_other {\
|
||||
color: #0066FF;\
|
||||
font-weight: 700\
|
||||
}\
|
||||
.ace-iplastic .ace_constant.ace_numeric{\
|
||||
font-weight: 100\
|
||||
}\
|
||||
.ace-iplastic .ace_invalid {\
|
||||
color: #F8F8F0;\
|
||||
background-color: #F92672\
|
||||
}\
|
||||
.ace-iplastic .ace_invalid.ace_deprecated {\
|
||||
color: #F8F8F0;\
|
||||
background-color: #AE81FF\
|
||||
}\
|
||||
.ace-iplastic .ace_support.ace_constant,\
|
||||
.ace-iplastic .ace_support.ace_function {\
|
||||
color: #333333;\
|
||||
font-weight: 700\
|
||||
}\
|
||||
.ace-iplastic .ace_fold {\
|
||||
background-color: #464646;\
|
||||
border-color: #F8F8F2\
|
||||
}\
|
||||
.ace-iplastic .ace_storage.ace_type,\
|
||||
.ace-iplastic .ace_support.ace_class,\
|
||||
.ace-iplastic .ace_support.ace_type {\
|
||||
color: #3333fc;\
|
||||
font-weight: 700\
|
||||
}\
|
||||
.ace-iplastic .ace_entity.ace_name.ace_function,\
|
||||
.ace-iplastic .ace_entity.ace_other,\
|
||||
.ace-iplastic .ace_entity.ace_other.ace_attribute-name,\
|
||||
.ace-iplastic .ace_variable {\
|
||||
color: #3366cc;\
|
||||
font-style: italic\
|
||||
}\
|
||||
.ace-iplastic .ace_variable.ace_parameter {\
|
||||
font-style: italic;\
|
||||
color: #2469E0\
|
||||
}\
|
||||
.ace-iplastic .ace_string {\
|
||||
color: #a55f03\
|
||||
}\
|
||||
.ace-iplastic .ace_comment {\
|
||||
color: #777777;\
|
||||
font-style: italic\
|
||||
}\
|
||||
.ace-iplastic .ace_fold-widget {\
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==);\
|
||||
}\
|
||||
.ace-iplastic .ace_indent-guide {\
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAABlJREFUeNpi+P//PwMzMzPzfwAAAAD//wMAGRsECSML/RIAAAAASUVORK5CYII=) right repeat-y\
|
||||
}";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
121
modules/backend/assets/vendor/ace/theme-katzenmilch.js
vendored
Executable file
121
modules/backend/assets/vendor/ace/theme-katzenmilch.js
vendored
Executable file
@@ -0,0 +1,121 @@
|
||||
ace.define("ace/theme/katzenmilch",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = false;
|
||||
exports.cssClass = "ace-katzenmilch";
|
||||
exports.cssText = ".ace-katzenmilch .ace_gutter,\
|
||||
.ace-katzenmilch .ace_gutter {\
|
||||
background: #e8e8e8;\
|
||||
color: #333\
|
||||
}\
|
||||
.ace-katzenmilch .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #e8e8e8\
|
||||
}\
|
||||
.ace-katzenmilch {\
|
||||
background-color: #f3f2f3;\
|
||||
color: rgba(15, 0, 9, 1.0)\
|
||||
}\
|
||||
.ace-katzenmilch .ace_cursor {\
|
||||
border-left: 2px solid #100011\
|
||||
}\
|
||||
.ace-katzenmilch .ace_overwrite-cursors .ace_cursor {\
|
||||
border-left: 0px;\
|
||||
border-bottom: 1px solid #100011\
|
||||
}\
|
||||
.ace-katzenmilch .ace_marker-layer .ace_selection {\
|
||||
background: rgba(100, 5, 208, 0.27)\
|
||||
}\
|
||||
.ace-katzenmilch.ace_multiselect .ace_selection.ace_start {\
|
||||
box-shadow: 0 0 3px 0px #f3f2f3;\
|
||||
}\
|
||||
.ace-katzenmilch .ace_marker-layer .ace_step {\
|
||||
background: rgb(198, 219, 174)\
|
||||
}\
|
||||
.ace-katzenmilch .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid rgba(0, 0, 0, 0.33);\
|
||||
}\
|
||||
.ace-katzenmilch .ace_marker-layer .ace_active-line {\
|
||||
background: rgb(232, 242, 254)\
|
||||
}\
|
||||
.ace-katzenmilch .ace_gutter-active-line {\
|
||||
background-color: rgb(232, 242, 254)\
|
||||
}\
|
||||
.ace-katzenmilch .ace_marker-layer .ace_selected-word {\
|
||||
border: 1px solid rgba(100, 5, 208, 0.27)\
|
||||
}\
|
||||
.ace-katzenmilch .ace_invisible {\
|
||||
color: #BFBFBF\
|
||||
}\
|
||||
.ace-katzenmilch .ace_fold {\
|
||||
background-color: rgba(2, 95, 73, 0.97);\
|
||||
border-color: rgba(15, 0, 9, 1.0)\
|
||||
}\
|
||||
.ace-katzenmilch .ace_keyword {\
|
||||
color: #674Aa8;\
|
||||
rbackground-color: rgba(163, 170, 216, 0.055)\
|
||||
}\
|
||||
.ace-katzenmilch .ace_constant.ace_language {\
|
||||
color: #7D7e52;\
|
||||
rbackground-color: rgba(189, 190, 130, 0.059)\
|
||||
}\
|
||||
.ace-katzenmilch .ace_constant.ace_numeric {\
|
||||
color: rgba(79, 130, 123, 0.93);\
|
||||
rbackground-color: rgba(119, 194, 187, 0.059)\
|
||||
}\
|
||||
.ace-katzenmilch .ace_constant.ace_character,\
|
||||
.ace-katzenmilch .ace_constant.ace_other {\
|
||||
color: rgba(2, 95, 105, 1.0);\
|
||||
rbackground-color: rgba(127, 34, 153, 0.063)\
|
||||
}\
|
||||
.ace-katzenmilch .ace_support.ace_function {\
|
||||
color: #9D7e62;\
|
||||
rbackground-color: rgba(189, 190, 130, 0.039)\
|
||||
}\
|
||||
.ace-katzenmilch .ace_support.ace_class {\
|
||||
color: rgba(239, 106, 167, 1.0);\
|
||||
rbackground-color: rgba(239, 106, 167, 0.063)\
|
||||
}\
|
||||
.ace-katzenmilch .ace_storage {\
|
||||
color: rgba(123, 92, 191, 1.0);\
|
||||
rbackground-color: rgba(139, 93, 223, 0.051)\
|
||||
}\
|
||||
.ace-katzenmilch .ace_invalid {\
|
||||
color: #DFDFD5;\
|
||||
rbackground-color: #CC1B27\
|
||||
}\
|
||||
.ace-katzenmilch .ace_string {\
|
||||
color: #5a5f9b;\
|
||||
rbackground-color: rgba(170, 175, 219, 0.035)\
|
||||
}\
|
||||
.ace-katzenmilch .ace_comment {\
|
||||
font-style: italic;\
|
||||
color: rgba(64, 79, 80, 0.67);\
|
||||
rbackground-color: rgba(95, 15, 255, 0.0078)\
|
||||
}\
|
||||
.ace-katzenmilch .ace_entity.ace_name.ace_function,\
|
||||
.ace-katzenmilch .ace_variable {\
|
||||
color: rgba(2, 95, 73, 0.97);\
|
||||
rbackground-color: rgba(34, 255, 73, 0.12)\
|
||||
}\
|
||||
.ace-katzenmilch .ace_variable.ace_language {\
|
||||
color: #316fcf;\
|
||||
rbackground-color: rgba(58, 175, 255, 0.039)\
|
||||
}\
|
||||
.ace-katzenmilch .ace_variable.ace_parameter {\
|
||||
font-style: italic;\
|
||||
color: rgba(51, 150, 159, 0.87);\
|
||||
rbackground-color: rgba(5, 214, 249, 0.043)\
|
||||
}\
|
||||
.ace-katzenmilch .ace_entity.ace_other.ace_attribute-name {\
|
||||
color: rgba(73, 70, 194, 0.93);\
|
||||
rbackground-color: rgba(73, 134, 194, 0.035)\
|
||||
}\
|
||||
.ace-katzenmilch .ace_entity.ace_name.ace_tag {\
|
||||
color: #3976a2;\
|
||||
rbackground-color: rgba(73, 166, 210, 0.039)\
|
||||
}";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
104
modules/backend/assets/vendor/ace/theme-kr_theme.js
vendored
Executable file
104
modules/backend/assets/vendor/ace/theme-kr_theme.js
vendored
Executable file
@@ -0,0 +1,104 @@
|
||||
ace.define("ace/theme/kr_theme",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-kr-theme";
|
||||
exports.cssText = ".ace-kr-theme .ace_gutter {\
|
||||
background: #1c1917;\
|
||||
color: #FCFFE0\
|
||||
}\
|
||||
.ace-kr-theme .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #1c1917\
|
||||
}\
|
||||
.ace-kr-theme {\
|
||||
background-color: #0B0A09;\
|
||||
color: #FCFFE0\
|
||||
}\
|
||||
.ace-kr-theme .ace_cursor {\
|
||||
color: #FF9900\
|
||||
}\
|
||||
.ace-kr-theme .ace_marker-layer .ace_selection {\
|
||||
background: rgba(170, 0, 255, 0.45)\
|
||||
}\
|
||||
.ace-kr-theme.ace_multiselect .ace_selection.ace_start {\
|
||||
box-shadow: 0 0 3px 0px #0B0A09;\
|
||||
}\
|
||||
.ace-kr-theme .ace_marker-layer .ace_step {\
|
||||
background: rgb(102, 82, 0)\
|
||||
}\
|
||||
.ace-kr-theme .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid rgba(255, 177, 111, 0.32)\
|
||||
}\
|
||||
.ace-kr-theme .ace_marker-layer .ace_active-line {\
|
||||
background: #38403D\
|
||||
}\
|
||||
.ace-kr-theme .ace_gutter-active-line {\
|
||||
background-color : #38403D\
|
||||
}\
|
||||
.ace-kr-theme .ace_marker-layer .ace_selected-word {\
|
||||
border: 1px solid rgba(170, 0, 255, 0.45)\
|
||||
}\
|
||||
.ace-kr-theme .ace_invisible {\
|
||||
color: rgba(255, 177, 111, 0.32)\
|
||||
}\
|
||||
.ace-kr-theme .ace_keyword,\
|
||||
.ace-kr-theme .ace_meta {\
|
||||
color: #949C8B\
|
||||
}\
|
||||
.ace-kr-theme .ace_constant,\
|
||||
.ace-kr-theme .ace_constant.ace_character,\
|
||||
.ace-kr-theme .ace_constant.ace_character.ace_escape,\
|
||||
.ace-kr-theme .ace_constant.ace_other {\
|
||||
color: rgba(210, 117, 24, 0.76)\
|
||||
}\
|
||||
.ace-kr-theme .ace_invalid {\
|
||||
color: #F8F8F8;\
|
||||
background-color: #A41300\
|
||||
}\
|
||||
.ace-kr-theme .ace_support {\
|
||||
color: #9FC28A\
|
||||
}\
|
||||
.ace-kr-theme .ace_support.ace_constant {\
|
||||
color: #C27E66\
|
||||
}\
|
||||
.ace-kr-theme .ace_fold {\
|
||||
background-color: #949C8B;\
|
||||
border-color: #FCFFE0\
|
||||
}\
|
||||
.ace-kr-theme .ace_support.ace_function {\
|
||||
color: #85873A\
|
||||
}\
|
||||
.ace-kr-theme .ace_storage {\
|
||||
color: #FFEE80\
|
||||
}\
|
||||
.ace-kr-theme .ace_string {\
|
||||
color: rgba(164, 161, 181, 0.8)\
|
||||
}\
|
||||
.ace-kr-theme .ace_string.ace_regexp {\
|
||||
color: rgba(125, 255, 192, 0.65)\
|
||||
}\
|
||||
.ace-kr-theme .ace_comment {\
|
||||
font-style: italic;\
|
||||
color: #706D5B\
|
||||
}\
|
||||
.ace-kr-theme .ace_variable {\
|
||||
color: #D1A796\
|
||||
}\
|
||||
.ace-kr-theme .ace_list,\
|
||||
.ace-kr-theme .ace_markup.ace_list {\
|
||||
background-color: #0F0040\
|
||||
}\
|
||||
.ace-kr-theme .ace_variable.ace_language {\
|
||||
color: #FF80E1\
|
||||
}\
|
||||
.ace-kr-theme .ace_meta.ace_tag {\
|
||||
color: #BABD9C\
|
||||
}\
|
||||
.ace-kr-theme .ace_indent-guide {\
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYFBXV/8PAAJoAXX4kT2EAAAAAElFTkSuQmCC) right repeat-y\
|
||||
}";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
61
modules/backend/assets/vendor/ace/theme-kuroir.js
vendored
Executable file
61
modules/backend/assets/vendor/ace/theme-kuroir.js
vendored
Executable file
@@ -0,0 +1,61 @@
|
||||
ace.define("ace/theme/kuroir",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = false;
|
||||
exports.cssClass = "ace-kuroir";
|
||||
exports.cssText = "\
|
||||
.ace-kuroir .ace_gutter {\
|
||||
background: #e8e8e8;\
|
||||
color: #333;\
|
||||
}\
|
||||
.ace-kuroir .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #e8e8e8;\
|
||||
}\
|
||||
.ace-kuroir {\
|
||||
background-color: #E8E9E8;\
|
||||
color: #363636;\
|
||||
}\
|
||||
.ace-kuroir .ace_cursor {\
|
||||
color: #202020;\
|
||||
}\
|
||||
.ace-kuroir .ace_marker-layer .ace_selection {\
|
||||
background: rgba(245, 170, 0, 0.57);\
|
||||
}\
|
||||
.ace-kuroir.ace_multiselect .ace_selection.ace_start {\
|
||||
box-shadow: 0 0 3px 0px #E8E9E8;\
|
||||
}\
|
||||
.ace-kuroir .ace_marker-layer .ace_step {\
|
||||
background: rgb(198, 219, 174);\
|
||||
}\
|
||||
.ace-kuroir .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid rgba(0, 0, 0, 0.29);\
|
||||
}\
|
||||
.ace-kuroir .ace_marker-layer .ace_active-line {\
|
||||
background: rgba(203, 220, 47, 0.22);\
|
||||
}\
|
||||
.ace-kuroir .ace_gutter-active-line {\
|
||||
background-color: rgba(203, 220, 47, 0.22);\
|
||||
}\
|
||||
.ace-kuroir .ace_marker-layer .ace_selected-word {\
|
||||
border: 1px solid rgba(245, 170, 0, 0.57);\
|
||||
}\
|
||||
.ace-kuroir .ace_invisible {\
|
||||
color: #BFBFBF\
|
||||
}\
|
||||
.ace-kuroir .ace_fold {\
|
||||
border-color: #363636;\
|
||||
}\
|
||||
.ace-kuroir .ace_constant{color:#CD6839;}.ace-kuroir .ace_constant.ace_numeric{color:#9A5925;}.ace-kuroir .ace_support{color:#104E8B;}.ace-kuroir .ace_support.ace_function{color:#005273;}.ace-kuroir .ace_support.ace_constant{color:#CF6A4C;}.ace-kuroir .ace_storage{color:#A52A2A;}.ace-kuroir .ace_invalid.ace_illegal{color:#FD1224;\
|
||||
background-color:rgba(255, 6, 0, 0.15);}.ace-kuroir .ace_invalid.ace_deprecated{text-decoration:underline;\
|
||||
font-style:italic;\
|
||||
color:#FD1732;\
|
||||
background-color:#E8E9E8;}.ace-kuroir .ace_string{color:#639300;}.ace-kuroir .ace_string.ace_regexp{color:#417E00;\
|
||||
background-color:#C9D4BE;}.ace-kuroir .ace_comment{color:rgba(148, 148, 148, 0.91);\
|
||||
background-color:rgba(220, 220, 220, 0.56);}.ace-kuroir .ace_variable{color:#009ACD;}.ace-kuroir .ace_meta.ace_tag{color:#005273;}.ace-kuroir .ace_markup.ace_heading{color:#B8012D;\
|
||||
background-color:rgba(191, 97, 51, 0.051);}.ace-kuroir .ace_markup.ace_list{color:#8F5B26;}\
|
||||
";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
95
modules/backend/assets/vendor/ace/theme-merbivore.js
vendored
Executable file
95
modules/backend/assets/vendor/ace/theme-merbivore.js
vendored
Executable file
@@ -0,0 +1,95 @@
|
||||
ace.define("ace/theme/merbivore",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-merbivore";
|
||||
exports.cssText = ".ace-merbivore .ace_gutter {\
|
||||
background: #202020;\
|
||||
color: #E6E1DC\
|
||||
}\
|
||||
.ace-merbivore .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #555651\
|
||||
}\
|
||||
.ace-merbivore {\
|
||||
background-color: #161616;\
|
||||
color: #E6E1DC\
|
||||
}\
|
||||
.ace-merbivore .ace_cursor {\
|
||||
color: #FFFFFF\
|
||||
}\
|
||||
.ace-merbivore .ace_marker-layer .ace_selection {\
|
||||
background: #454545\
|
||||
}\
|
||||
.ace-merbivore.ace_multiselect .ace_selection.ace_start {\
|
||||
box-shadow: 0 0 3px 0px #161616;\
|
||||
}\
|
||||
.ace-merbivore .ace_marker-layer .ace_step {\
|
||||
background: rgb(102, 82, 0)\
|
||||
}\
|
||||
.ace-merbivore .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid #404040\
|
||||
}\
|
||||
.ace-merbivore .ace_marker-layer .ace_active-line {\
|
||||
background: #333435\
|
||||
}\
|
||||
.ace-merbivore .ace_gutter-active-line {\
|
||||
background-color: #333435\
|
||||
}\
|
||||
.ace-merbivore .ace_marker-layer .ace_selected-word {\
|
||||
border: 1px solid #454545\
|
||||
}\
|
||||
.ace-merbivore .ace_invisible {\
|
||||
color: #404040\
|
||||
}\
|
||||
.ace-merbivore .ace_entity.ace_name.ace_tag,\
|
||||
.ace-merbivore .ace_keyword,\
|
||||
.ace-merbivore .ace_meta,\
|
||||
.ace-merbivore .ace_meta.ace_tag,\
|
||||
.ace-merbivore .ace_storage,\
|
||||
.ace-merbivore .ace_support.ace_function {\
|
||||
color: #FC6F09\
|
||||
}\
|
||||
.ace-merbivore .ace_constant,\
|
||||
.ace-merbivore .ace_constant.ace_character,\
|
||||
.ace-merbivore .ace_constant.ace_character.ace_escape,\
|
||||
.ace-merbivore .ace_constant.ace_other,\
|
||||
.ace-merbivore .ace_support.ace_type {\
|
||||
color: #1EDAFB\
|
||||
}\
|
||||
.ace-merbivore .ace_constant.ace_character.ace_escape {\
|
||||
color: #519F50\
|
||||
}\
|
||||
.ace-merbivore .ace_constant.ace_language {\
|
||||
color: #FDC251\
|
||||
}\
|
||||
.ace-merbivore .ace_constant.ace_library,\
|
||||
.ace-merbivore .ace_string,\
|
||||
.ace-merbivore .ace_support.ace_constant {\
|
||||
color: #8DFF0A\
|
||||
}\
|
||||
.ace-merbivore .ace_constant.ace_numeric {\
|
||||
color: #58C554\
|
||||
}\
|
||||
.ace-merbivore .ace_invalid {\
|
||||
color: #FFFFFF;\
|
||||
background-color: #990000\
|
||||
}\
|
||||
.ace-merbivore .ace_fold {\
|
||||
background-color: #FC6F09;\
|
||||
border-color: #E6E1DC\
|
||||
}\
|
||||
.ace-merbivore .ace_comment {\
|
||||
font-style: italic;\
|
||||
color: #AD2EA4\
|
||||
}\
|
||||
.ace-merbivore .ace_entity.ace_other.ace_attribute-name {\
|
||||
color: #FFFF89\
|
||||
}\
|
||||
.ace-merbivore .ace_indent-guide {\
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQFxf3ZXB1df0PAAdsAmERTkEHAAAAAElFTkSuQmCC) right repeat-y\
|
||||
}";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
96
modules/backend/assets/vendor/ace/theme-merbivore_soft.js
vendored
Executable file
96
modules/backend/assets/vendor/ace/theme-merbivore_soft.js
vendored
Executable file
@@ -0,0 +1,96 @@
|
||||
ace.define("ace/theme/merbivore_soft",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-merbivore-soft";
|
||||
exports.cssText = ".ace-merbivore-soft .ace_gutter {\
|
||||
background: #262424;\
|
||||
color: #E6E1DC\
|
||||
}\
|
||||
.ace-merbivore-soft .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #262424\
|
||||
}\
|
||||
.ace-merbivore-soft {\
|
||||
background-color: #1C1C1C;\
|
||||
color: #E6E1DC\
|
||||
}\
|
||||
.ace-merbivore-soft .ace_cursor {\
|
||||
color: #FFFFFF\
|
||||
}\
|
||||
.ace-merbivore-soft .ace_marker-layer .ace_selection {\
|
||||
background: #494949\
|
||||
}\
|
||||
.ace-merbivore-soft.ace_multiselect .ace_selection.ace_start {\
|
||||
box-shadow: 0 0 3px 0px #1C1C1C;\
|
||||
}\
|
||||
.ace-merbivore-soft .ace_marker-layer .ace_step {\
|
||||
background: rgb(102, 82, 0)\
|
||||
}\
|
||||
.ace-merbivore-soft .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid #404040\
|
||||
}\
|
||||
.ace-merbivore-soft .ace_marker-layer .ace_active-line {\
|
||||
background: #333435\
|
||||
}\
|
||||
.ace-merbivore-soft .ace_gutter-active-line {\
|
||||
background-color: #333435\
|
||||
}\
|
||||
.ace-merbivore-soft .ace_marker-layer .ace_selected-word {\
|
||||
border: 1px solid #494949\
|
||||
}\
|
||||
.ace-merbivore-soft .ace_invisible {\
|
||||
color: #404040\
|
||||
}\
|
||||
.ace-merbivore-soft .ace_entity.ace_name.ace_tag,\
|
||||
.ace-merbivore-soft .ace_keyword,\
|
||||
.ace-merbivore-soft .ace_meta,\
|
||||
.ace-merbivore-soft .ace_meta.ace_tag,\
|
||||
.ace-merbivore-soft .ace_storage {\
|
||||
color: #FC803A\
|
||||
}\
|
||||
.ace-merbivore-soft .ace_constant,\
|
||||
.ace-merbivore-soft .ace_constant.ace_character,\
|
||||
.ace-merbivore-soft .ace_constant.ace_character.ace_escape,\
|
||||
.ace-merbivore-soft .ace_constant.ace_other,\
|
||||
.ace-merbivore-soft .ace_support.ace_type {\
|
||||
color: #68C1D8\
|
||||
}\
|
||||
.ace-merbivore-soft .ace_constant.ace_character.ace_escape {\
|
||||
color: #B3E5B4\
|
||||
}\
|
||||
.ace-merbivore-soft .ace_constant.ace_language {\
|
||||
color: #E1C582\
|
||||
}\
|
||||
.ace-merbivore-soft .ace_constant.ace_library,\
|
||||
.ace-merbivore-soft .ace_string,\
|
||||
.ace-merbivore-soft .ace_support.ace_constant {\
|
||||
color: #8EC65F\
|
||||
}\
|
||||
.ace-merbivore-soft .ace_constant.ace_numeric {\
|
||||
color: #7FC578\
|
||||
}\
|
||||
.ace-merbivore-soft .ace_invalid,\
|
||||
.ace-merbivore-soft .ace_invalid.ace_deprecated {\
|
||||
color: #FFFFFF;\
|
||||
background-color: #FE3838\
|
||||
}\
|
||||
.ace-merbivore-soft .ace_fold {\
|
||||
background-color: #FC803A;\
|
||||
border-color: #E6E1DC\
|
||||
}\
|
||||
.ace-merbivore-soft .ace_comment,\
|
||||
.ace-merbivore-soft .ace_meta {\
|
||||
font-style: italic;\
|
||||
color: #AC4BB8\
|
||||
}\
|
||||
.ace-merbivore-soft .ace_entity.ace_other.ace_attribute-name {\
|
||||
color: #EAF1A3\
|
||||
}\
|
||||
.ace-merbivore-soft .ace_indent-guide {\
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWOQkpLyZfD09PwPAAfYAnaStpHRAAAAAElFTkSuQmCC) right repeat-y\
|
||||
}";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
107
modules/backend/assets/vendor/ace/theme-mono_industrial.js
vendored
Executable file
107
modules/backend/assets/vendor/ace/theme-mono_industrial.js
vendored
Executable file
@@ -0,0 +1,107 @@
|
||||
ace.define("ace/theme/mono_industrial",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-mono-industrial";
|
||||
exports.cssText = ".ace-mono-industrial .ace_gutter {\
|
||||
background: #1d2521;\
|
||||
color: #C5C9C9\
|
||||
}\
|
||||
.ace-mono-industrial .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #555651\
|
||||
}\
|
||||
.ace-mono-industrial {\
|
||||
background-color: #222C28;\
|
||||
color: #FFFFFF\
|
||||
}\
|
||||
.ace-mono-industrial .ace_cursor {\
|
||||
color: #FFFFFF\
|
||||
}\
|
||||
.ace-mono-industrial .ace_marker-layer .ace_selection {\
|
||||
background: rgba(145, 153, 148, 0.40)\
|
||||
}\
|
||||
.ace-mono-industrial.ace_multiselect .ace_selection.ace_start {\
|
||||
box-shadow: 0 0 3px 0px #222C28;\
|
||||
}\
|
||||
.ace-mono-industrial .ace_marker-layer .ace_step {\
|
||||
background: rgb(102, 82, 0)\
|
||||
}\
|
||||
.ace-mono-industrial .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid rgba(102, 108, 104, 0.50)\
|
||||
}\
|
||||
.ace-mono-industrial .ace_marker-layer .ace_active-line {\
|
||||
background: rgba(12, 13, 12, 0.25)\
|
||||
}\
|
||||
.ace-mono-industrial .ace_gutter-active-line {\
|
||||
background-color: rgba(12, 13, 12, 0.25)\
|
||||
}\
|
||||
.ace-mono-industrial .ace_marker-layer .ace_selected-word {\
|
||||
border: 1px solid rgba(145, 153, 148, 0.40)\
|
||||
}\
|
||||
.ace-mono-industrial .ace_invisible {\
|
||||
color: rgba(102, 108, 104, 0.50)\
|
||||
}\
|
||||
.ace-mono-industrial .ace_string {\
|
||||
background-color: #151C19;\
|
||||
color: #FFFFFF\
|
||||
}\
|
||||
.ace-mono-industrial .ace_keyword,\
|
||||
.ace-mono-industrial .ace_meta {\
|
||||
color: #A39E64\
|
||||
}\
|
||||
.ace-mono-industrial .ace_constant,\
|
||||
.ace-mono-industrial .ace_constant.ace_character,\
|
||||
.ace-mono-industrial .ace_constant.ace_character.ace_escape,\
|
||||
.ace-mono-industrial .ace_constant.ace_numeric,\
|
||||
.ace-mono-industrial .ace_constant.ace_other {\
|
||||
color: #E98800\
|
||||
}\
|
||||
.ace-mono-industrial .ace_entity.ace_name.ace_function,\
|
||||
.ace-mono-industrial .ace_keyword.ace_operator,\
|
||||
.ace-mono-industrial .ace_variable {\
|
||||
color: #A8B3AB\
|
||||
}\
|
||||
.ace-mono-industrial .ace_invalid {\
|
||||
color: #FFFFFF;\
|
||||
background-color: rgba(153, 0, 0, 0.68)\
|
||||
}\
|
||||
.ace-mono-industrial .ace_support.ace_constant {\
|
||||
color: #C87500\
|
||||
}\
|
||||
.ace-mono-industrial .ace_fold {\
|
||||
background-color: #A8B3AB;\
|
||||
border-color: #FFFFFF\
|
||||
}\
|
||||
.ace-mono-industrial .ace_support.ace_function {\
|
||||
color: #588E60\
|
||||
}\
|
||||
.ace-mono-industrial .ace_entity.ace_name,\
|
||||
.ace-mono-industrial .ace_support.ace_class,\
|
||||
.ace-mono-industrial .ace_support.ace_type {\
|
||||
color: #5778B6\
|
||||
}\
|
||||
.ace-mono-industrial .ace_storage {\
|
||||
color: #C23B00\
|
||||
}\
|
||||
.ace-mono-industrial .ace_variable.ace_language,\
|
||||
.ace-mono-industrial .ace_variable.ace_parameter {\
|
||||
color: #648BD2\
|
||||
}\
|
||||
.ace-mono-industrial .ace_comment {\
|
||||
color: #666C68;\
|
||||
background-color: #151C19\
|
||||
}\
|
||||
.ace-mono-industrial .ace_entity.ace_other.ace_attribute-name {\
|
||||
color: #909993\
|
||||
}\
|
||||
.ace-mono-industrial .ace_entity.ace_name.ace_tag {\
|
||||
color: #A65EFF\
|
||||
}\
|
||||
.ace-mono-industrial .ace_indent-guide {\
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNQ1NbwZfALD/4PAAlTArlEC4r/AAAAAElFTkSuQmCC) right repeat-y\
|
||||
}";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
105
modules/backend/assets/vendor/ace/theme-monokai.js
vendored
Executable file
105
modules/backend/assets/vendor/ace/theme-monokai.js
vendored
Executable file
@@ -0,0 +1,105 @@
|
||||
ace.define("ace/theme/monokai",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-monokai";
|
||||
exports.cssText = ".ace-monokai .ace_gutter {\
|
||||
background: #2F3129;\
|
||||
color: #8F908A\
|
||||
}\
|
||||
.ace-monokai .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #555651\
|
||||
}\
|
||||
.ace-monokai {\
|
||||
background-color: #272822;\
|
||||
color: #F8F8F2\
|
||||
}\
|
||||
.ace-monokai .ace_cursor {\
|
||||
color: #F8F8F0\
|
||||
}\
|
||||
.ace-monokai .ace_marker-layer .ace_selection {\
|
||||
background: #49483E\
|
||||
}\
|
||||
.ace-monokai.ace_multiselect .ace_selection.ace_start {\
|
||||
box-shadow: 0 0 3px 0px #272822;\
|
||||
}\
|
||||
.ace-monokai .ace_marker-layer .ace_step {\
|
||||
background: rgb(102, 82, 0)\
|
||||
}\
|
||||
.ace-monokai .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid #49483E\
|
||||
}\
|
||||
.ace-monokai .ace_marker-layer .ace_active-line {\
|
||||
background: #202020\
|
||||
}\
|
||||
.ace-monokai .ace_gutter-active-line {\
|
||||
background-color: #272727\
|
||||
}\
|
||||
.ace-monokai .ace_marker-layer .ace_selected-word {\
|
||||
border: 1px solid #49483E\
|
||||
}\
|
||||
.ace-monokai .ace_invisible {\
|
||||
color: #52524d\
|
||||
}\
|
||||
.ace-monokai .ace_entity.ace_name.ace_tag,\
|
||||
.ace-monokai .ace_keyword,\
|
||||
.ace-monokai .ace_meta.ace_tag,\
|
||||
.ace-monokai .ace_storage {\
|
||||
color: #F92672\
|
||||
}\
|
||||
.ace-monokai .ace_punctuation,\
|
||||
.ace-monokai .ace_punctuation.ace_tag {\
|
||||
color: #fff\
|
||||
}\
|
||||
.ace-monokai .ace_constant.ace_character,\
|
||||
.ace-monokai .ace_constant.ace_language,\
|
||||
.ace-monokai .ace_constant.ace_numeric,\
|
||||
.ace-monokai .ace_constant.ace_other {\
|
||||
color: #AE81FF\
|
||||
}\
|
||||
.ace-monokai .ace_invalid {\
|
||||
color: #F8F8F0;\
|
||||
background-color: #F92672\
|
||||
}\
|
||||
.ace-monokai .ace_invalid.ace_deprecated {\
|
||||
color: #F8F8F0;\
|
||||
background-color: #AE81FF\
|
||||
}\
|
||||
.ace-monokai .ace_support.ace_constant,\
|
||||
.ace-monokai .ace_support.ace_function {\
|
||||
color: #66D9EF\
|
||||
}\
|
||||
.ace-monokai .ace_fold {\
|
||||
background-color: #A6E22E;\
|
||||
border-color: #F8F8F2\
|
||||
}\
|
||||
.ace-monokai .ace_storage.ace_type,\
|
||||
.ace-monokai .ace_support.ace_class,\
|
||||
.ace-monokai .ace_support.ace_type {\
|
||||
font-style: italic;\
|
||||
color: #66D9EF\
|
||||
}\
|
||||
.ace-monokai .ace_entity.ace_name.ace_function,\
|
||||
.ace-monokai .ace_entity.ace_other,\
|
||||
.ace-monokai .ace_entity.ace_other.ace_attribute-name,\
|
||||
.ace-monokai .ace_variable {\
|
||||
color: #A6E22E\
|
||||
}\
|
||||
.ace-monokai .ace_variable.ace_parameter {\
|
||||
font-style: italic;\
|
||||
color: #FD971F\
|
||||
}\
|
||||
.ace-monokai .ace_string {\
|
||||
color: #E6DB74\
|
||||
}\
|
||||
.ace-monokai .ace_comment {\
|
||||
color: #75715E\
|
||||
}\
|
||||
.ace-monokai .ace_indent-guide {\
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ0FD0ZXBzd/wPAAjVAoxeSgNeAAAAAElFTkSuQmCC) right repeat-y\
|
||||
}";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
108
modules/backend/assets/vendor/ace/theme-pastel_on_dark.js
vendored
Executable file
108
modules/backend/assets/vendor/ace/theme-pastel_on_dark.js
vendored
Executable file
@@ -0,0 +1,108 @@
|
||||
ace.define("ace/theme/pastel_on_dark",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-pastel-on-dark";
|
||||
exports.cssText = ".ace-pastel-on-dark .ace_gutter {\
|
||||
background: #353030;\
|
||||
color: #8F938F\
|
||||
}\
|
||||
.ace-pastel-on-dark .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #353030\
|
||||
}\
|
||||
.ace-pastel-on-dark {\
|
||||
background-color: #2C2828;\
|
||||
color: #8F938F\
|
||||
}\
|
||||
.ace-pastel-on-dark .ace_cursor {\
|
||||
color: #A7A7A7\
|
||||
}\
|
||||
.ace-pastel-on-dark .ace_marker-layer .ace_selection {\
|
||||
background: rgba(221, 240, 255, 0.20)\
|
||||
}\
|
||||
.ace-pastel-on-dark.ace_multiselect .ace_selection.ace_start {\
|
||||
box-shadow: 0 0 3px 0px #2C2828;\
|
||||
}\
|
||||
.ace-pastel-on-dark .ace_marker-layer .ace_step {\
|
||||
background: rgb(102, 82, 0)\
|
||||
}\
|
||||
.ace-pastel-on-dark .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid rgba(255, 255, 255, 0.25)\
|
||||
}\
|
||||
.ace-pastel-on-dark .ace_marker-layer .ace_active-line {\
|
||||
background: rgba(255, 255, 255, 0.031)\
|
||||
}\
|
||||
.ace-pastel-on-dark .ace_gutter-active-line {\
|
||||
background-color: rgba(255, 255, 255, 0.031)\
|
||||
}\
|
||||
.ace-pastel-on-dark .ace_marker-layer .ace_selected-word {\
|
||||
border: 1px solid rgba(221, 240, 255, 0.20)\
|
||||
}\
|
||||
.ace-pastel-on-dark .ace_invisible {\
|
||||
color: rgba(255, 255, 255, 0.25)\
|
||||
}\
|
||||
.ace-pastel-on-dark .ace_keyword,\
|
||||
.ace-pastel-on-dark .ace_meta {\
|
||||
color: #757aD8\
|
||||
}\
|
||||
.ace-pastel-on-dark .ace_constant,\
|
||||
.ace-pastel-on-dark .ace_constant.ace_character,\
|
||||
.ace-pastel-on-dark .ace_constant.ace_character.ace_escape,\
|
||||
.ace-pastel-on-dark .ace_constant.ace_other {\
|
||||
color: #4FB7C5\
|
||||
}\
|
||||
.ace-pastel-on-dark .ace_keyword.ace_operator {\
|
||||
color: #797878\
|
||||
}\
|
||||
.ace-pastel-on-dark .ace_constant.ace_character {\
|
||||
color: #AFA472\
|
||||
}\
|
||||
.ace-pastel-on-dark .ace_constant.ace_language {\
|
||||
color: #DE8E30\
|
||||
}\
|
||||
.ace-pastel-on-dark .ace_constant.ace_numeric {\
|
||||
color: #CCCCCC\
|
||||
}\
|
||||
.ace-pastel-on-dark .ace_invalid,\
|
||||
.ace-pastel-on-dark .ace_invalid.ace_illegal {\
|
||||
color: #F8F8F8;\
|
||||
background-color: rgba(86, 45, 86, 0.75)\
|
||||
}\
|
||||
.ace-pastel-on-dark .ace_invalid.ace_deprecated {\
|
||||
text-decoration: underline;\
|
||||
font-style: italic;\
|
||||
color: #D2A8A1\
|
||||
}\
|
||||
.ace-pastel-on-dark .ace_fold {\
|
||||
background-color: #757aD8;\
|
||||
border-color: #8F938F\
|
||||
}\
|
||||
.ace-pastel-on-dark .ace_support.ace_function {\
|
||||
color: #AEB2F8\
|
||||
}\
|
||||
.ace-pastel-on-dark .ace_string {\
|
||||
color: #66A968\
|
||||
}\
|
||||
.ace-pastel-on-dark .ace_string.ace_regexp {\
|
||||
color: #E9C062\
|
||||
}\
|
||||
.ace-pastel-on-dark .ace_comment {\
|
||||
color: #A6C6FF\
|
||||
}\
|
||||
.ace-pastel-on-dark .ace_variable {\
|
||||
color: #BEBF55\
|
||||
}\
|
||||
.ace-pastel-on-dark .ace_variable.ace_language {\
|
||||
color: #C1C144\
|
||||
}\
|
||||
.ace-pastel-on-dark .ace_xml-pe {\
|
||||
color: #494949\
|
||||
}\
|
||||
.ace-pastel-on-dark .ace_indent-guide {\
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYIiPj/8PAARgAh2NTMh8AAAAAElFTkSuQmCC) right repeat-y\
|
||||
}";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
88
modules/backend/assets/vendor/ace/theme-solarized_dark.js
vendored
Executable file
88
modules/backend/assets/vendor/ace/theme-solarized_dark.js
vendored
Executable file
@@ -0,0 +1,88 @@
|
||||
ace.define("ace/theme/solarized_dark",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-solarized-dark";
|
||||
exports.cssText = ".ace-solarized-dark .ace_gutter {\
|
||||
background: #01313f;\
|
||||
color: #d0edf7\
|
||||
}\
|
||||
.ace-solarized-dark .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #33555E\
|
||||
}\
|
||||
.ace-solarized-dark {\
|
||||
background-color: #002B36;\
|
||||
color: #93A1A1\
|
||||
}\
|
||||
.ace-solarized-dark .ace_entity.ace_other.ace_attribute-name,\
|
||||
.ace-solarized-dark .ace_storage {\
|
||||
color: #93A1A1\
|
||||
}\
|
||||
.ace-solarized-dark .ace_cursor,\
|
||||
.ace-solarized-dark .ace_string.ace_regexp {\
|
||||
color: #D30102\
|
||||
}\
|
||||
.ace-solarized-dark .ace_marker-layer .ace_active-line,\
|
||||
.ace-solarized-dark .ace_marker-layer .ace_selection {\
|
||||
background: rgba(255, 255, 255, 0.1)\
|
||||
}\
|
||||
.ace-solarized-dark.ace_multiselect .ace_selection.ace_start {\
|
||||
box-shadow: 0 0 3px 0px #002B36;\
|
||||
}\
|
||||
.ace-solarized-dark .ace_marker-layer .ace_step {\
|
||||
background: rgb(102, 82, 0)\
|
||||
}\
|
||||
.ace-solarized-dark .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid rgba(147, 161, 161, 0.50)\
|
||||
}\
|
||||
.ace-solarized-dark .ace_gutter-active-line {\
|
||||
background-color: #0d3440\
|
||||
}\
|
||||
.ace-solarized-dark .ace_marker-layer .ace_selected-word {\
|
||||
border: 1px solid #073642\
|
||||
}\
|
||||
.ace-solarized-dark .ace_invisible {\
|
||||
color: rgba(147, 161, 161, 0.50)\
|
||||
}\
|
||||
.ace-solarized-dark .ace_keyword,\
|
||||
.ace-solarized-dark .ace_meta,\
|
||||
.ace-solarized-dark .ace_support.ace_class,\
|
||||
.ace-solarized-dark .ace_support.ace_type {\
|
||||
color: #859900\
|
||||
}\
|
||||
.ace-solarized-dark .ace_constant.ace_character,\
|
||||
.ace-solarized-dark .ace_constant.ace_other {\
|
||||
color: #CB4B16\
|
||||
}\
|
||||
.ace-solarized-dark .ace_constant.ace_language {\
|
||||
color: #B58900\
|
||||
}\
|
||||
.ace-solarized-dark .ace_constant.ace_numeric {\
|
||||
color: #D33682\
|
||||
}\
|
||||
.ace-solarized-dark .ace_fold {\
|
||||
background-color: #268BD2;\
|
||||
border-color: #93A1A1\
|
||||
}\
|
||||
.ace-solarized-dark .ace_entity.ace_name.ace_function,\
|
||||
.ace-solarized-dark .ace_entity.ace_name.ace_tag,\
|
||||
.ace-solarized-dark .ace_support.ace_function,\
|
||||
.ace-solarized-dark .ace_variable,\
|
||||
.ace-solarized-dark .ace_variable.ace_language {\
|
||||
color: #268BD2\
|
||||
}\
|
||||
.ace-solarized-dark .ace_string {\
|
||||
color: #2AA198\
|
||||
}\
|
||||
.ace-solarized-dark .ace_comment {\
|
||||
font-style: italic;\
|
||||
color: #657B83\
|
||||
}\
|
||||
.ace-solarized-dark .ace_indent-guide {\
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNg0Db1ZVCxc/sPAAd4AlUHlLenAAAAAElFTkSuQmCC) right repeat-y\
|
||||
}";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
91
modules/backend/assets/vendor/ace/theme-solarized_light.js
vendored
Executable file
91
modules/backend/assets/vendor/ace/theme-solarized_light.js
vendored
Executable file
@@ -0,0 +1,91 @@
|
||||
ace.define("ace/theme/solarized_light",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = false;
|
||||
exports.cssClass = "ace-solarized-light";
|
||||
exports.cssText = ".ace-solarized-light .ace_gutter {\
|
||||
background: #fbf1d3;\
|
||||
color: #333\
|
||||
}\
|
||||
.ace-solarized-light .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #e8e8e8\
|
||||
}\
|
||||
.ace-solarized-light {\
|
||||
background-color: #FDF6E3;\
|
||||
color: #586E75\
|
||||
}\
|
||||
.ace-solarized-light .ace_cursor {\
|
||||
color: #000000\
|
||||
}\
|
||||
.ace-solarized-light .ace_marker-layer .ace_selection {\
|
||||
background: rgba(7, 54, 67, 0.09)\
|
||||
}\
|
||||
.ace-solarized-light.ace_multiselect .ace_selection.ace_start {\
|
||||
box-shadow: 0 0 3px 0px #FDF6E3;\
|
||||
}\
|
||||
.ace-solarized-light .ace_marker-layer .ace_step {\
|
||||
background: rgb(255, 255, 0)\
|
||||
}\
|
||||
.ace-solarized-light .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid rgba(147, 161, 161, 0.50)\
|
||||
}\
|
||||
.ace-solarized-light .ace_marker-layer .ace_active-line {\
|
||||
background: #EEE8D5\
|
||||
}\
|
||||
.ace-solarized-light .ace_gutter-active-line {\
|
||||
background-color : #EDE5C1\
|
||||
}\
|
||||
.ace-solarized-light .ace_marker-layer .ace_selected-word {\
|
||||
border: 1px solid #073642\
|
||||
}\
|
||||
.ace-solarized-light .ace_invisible {\
|
||||
color: rgba(147, 161, 161, 0.50)\
|
||||
}\
|
||||
.ace-solarized-light .ace_keyword,\
|
||||
.ace-solarized-light .ace_meta,\
|
||||
.ace-solarized-light .ace_support.ace_class,\
|
||||
.ace-solarized-light .ace_support.ace_type {\
|
||||
color: #859900\
|
||||
}\
|
||||
.ace-solarized-light .ace_constant.ace_character,\
|
||||
.ace-solarized-light .ace_constant.ace_other {\
|
||||
color: #CB4B16\
|
||||
}\
|
||||
.ace-solarized-light .ace_constant.ace_language {\
|
||||
color: #B58900\
|
||||
}\
|
||||
.ace-solarized-light .ace_constant.ace_numeric {\
|
||||
color: #D33682\
|
||||
}\
|
||||
.ace-solarized-light .ace_fold {\
|
||||
background-color: #268BD2;\
|
||||
border-color: #586E75\
|
||||
}\
|
||||
.ace-solarized-light .ace_entity.ace_name.ace_function,\
|
||||
.ace-solarized-light .ace_entity.ace_name.ace_tag,\
|
||||
.ace-solarized-light .ace_support.ace_function,\
|
||||
.ace-solarized-light .ace_variable,\
|
||||
.ace-solarized-light .ace_variable.ace_language {\
|
||||
color: #268BD2\
|
||||
}\
|
||||
.ace-solarized-light .ace_storage {\
|
||||
color: #073642\
|
||||
}\
|
||||
.ace-solarized-light .ace_string {\
|
||||
color: #2AA198\
|
||||
}\
|
||||
.ace-solarized-light .ace_string.ace_regexp {\
|
||||
color: #D30102\
|
||||
}\
|
||||
.ace-solarized-light .ace_comment,\
|
||||
.ace-solarized-light .ace_entity.ace_other.ace_attribute-name {\
|
||||
color: #93A1A1\
|
||||
}\
|
||||
.ace-solarized-light .ace_indent-guide {\
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHjy8NJ/AAjgA5fzQUmBAAAAAElFTkSuQmCC) right repeat-y\
|
||||
}";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
138
modules/backend/assets/vendor/ace/theme-sqlserver.js
vendored
Executable file
138
modules/backend/assets/vendor/ace/theme-sqlserver.js
vendored
Executable file
@@ -0,0 +1,138 @@
|
||||
ace.define("ace/theme/sqlserver",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = false;
|
||||
exports.cssClass = "ace-sqlserver";
|
||||
exports.cssText = ".ace-sqlserver .ace_gutter {\
|
||||
background: #ebebeb;\
|
||||
color: #333;\
|
||||
overflow: hidden;\
|
||||
}\
|
||||
.ace-sqlserver .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #e8e8e8;\
|
||||
}\
|
||||
.ace-sqlserver {\
|
||||
background-color: #FFFFFF;\
|
||||
color: black;\
|
||||
}\
|
||||
.ace-sqlserver .ace_identifier {\
|
||||
color: black;\
|
||||
}\
|
||||
.ace-sqlserver .ace_keyword {\
|
||||
color: #0000FF;\
|
||||
}\
|
||||
.ace-sqlserver .ace_numeric {\
|
||||
color: black;\
|
||||
}\
|
||||
.ace-sqlserver .ace_storage {\
|
||||
color: #11B7BE;\
|
||||
}\
|
||||
.ace-sqlserver .ace_keyword.ace_operator,\
|
||||
.ace-sqlserver .ace_lparen,\
|
||||
.ace-sqlserver .ace_rparen,\
|
||||
.ace-sqlserver .ace_punctuation {\
|
||||
color: #808080;\
|
||||
}\
|
||||
.ace-sqlserver .ace_set.ace_statement {\
|
||||
color: #0000FF;\
|
||||
text-decoration: underline;\
|
||||
}\
|
||||
.ace-sqlserver .ace_cursor {\
|
||||
color: black;\
|
||||
}\
|
||||
.ace-sqlserver .ace_invisible {\
|
||||
color: rgb(191, 191, 191);\
|
||||
}\
|
||||
.ace-sqlserver .ace_constant.ace_buildin {\
|
||||
color: rgb(88, 72, 246);\
|
||||
}\
|
||||
.ace-sqlserver .ace_constant.ace_language {\
|
||||
color: #979797;\
|
||||
}\
|
||||
.ace-sqlserver .ace_constant.ace_library {\
|
||||
color: rgb(6, 150, 14);\
|
||||
}\
|
||||
.ace-sqlserver .ace_invalid {\
|
||||
background-color: rgb(153, 0, 0);\
|
||||
color: white;\
|
||||
}\
|
||||
.ace-sqlserver .ace_support.ace_function {\
|
||||
color: #FF00FF;\
|
||||
}\
|
||||
.ace-sqlserver .ace_support.ace_constant {\
|
||||
color: rgb(6, 150, 14);\
|
||||
}\
|
||||
.ace-sqlserver .ace_class {\
|
||||
color: #008080;\
|
||||
}\
|
||||
.ace-sqlserver .ace_support.ace_other {\
|
||||
color: #6D79DE;\
|
||||
}\
|
||||
.ace-sqlserver .ace_variable.ace_parameter {\
|
||||
font-style: italic;\
|
||||
color: #FD971F;\
|
||||
}\
|
||||
.ace-sqlserver .ace_comment {\
|
||||
color: #008000;\
|
||||
}\
|
||||
.ace-sqlserver .ace_constant.ace_numeric {\
|
||||
color: black;\
|
||||
}\
|
||||
.ace-sqlserver .ace_variable {\
|
||||
color: rgb(49, 132, 149);\
|
||||
}\
|
||||
.ace-sqlserver .ace_xml-pe {\
|
||||
color: rgb(104, 104, 91);\
|
||||
}\
|
||||
.ace-sqlserver .ace_support.ace_storedprocedure {\
|
||||
color: #800000;\
|
||||
}\
|
||||
.ace-sqlserver .ace_heading {\
|
||||
color: rgb(12, 7, 255);\
|
||||
}\
|
||||
.ace-sqlserver .ace_list {\
|
||||
color: rgb(185, 6, 144);\
|
||||
}\
|
||||
.ace-sqlserver .ace_marker-layer .ace_selection {\
|
||||
background: rgb(181, 213, 255);\
|
||||
}\
|
||||
.ace-sqlserver .ace_marker-layer .ace_step {\
|
||||
background: rgb(252, 255, 0);\
|
||||
}\
|
||||
.ace-sqlserver .ace_marker-layer .ace_stack {\
|
||||
background: rgb(164, 229, 101);\
|
||||
}\
|
||||
.ace-sqlserver .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid rgb(192, 192, 192);\
|
||||
}\
|
||||
.ace-sqlserver .ace_marker-layer .ace_active-line {\
|
||||
background: rgba(0, 0, 0, 0.07);\
|
||||
}\
|
||||
.ace-sqlserver .ace_gutter-active-line {\
|
||||
background-color: #dcdcdc;\
|
||||
}\
|
||||
.ace-sqlserver .ace_marker-layer .ace_selected-word {\
|
||||
background: rgb(250, 250, 255);\
|
||||
border: 1px solid rgb(200, 200, 250);\
|
||||
}\
|
||||
.ace-sqlserver .ace_meta.ace_tag {\
|
||||
color: #0000FF;\
|
||||
}\
|
||||
.ace-sqlserver .ace_string.ace_regex {\
|
||||
color: #FF0000;\
|
||||
}\
|
||||
.ace-sqlserver .ace_string {\
|
||||
color: #FF0000;\
|
||||
}\
|
||||
.ace-sqlserver .ace_entity.ace_other.ace_attribute-name {\
|
||||
color: #994409;\
|
||||
}\
|
||||
.ace-sqlserver .ace_indent-guide {\
|
||||
background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y;\
|
||||
}\
|
||||
";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
114
modules/backend/assets/vendor/ace/theme-terminal.js
vendored
Executable file
114
modules/backend/assets/vendor/ace/theme-terminal.js
vendored
Executable file
@@ -0,0 +1,114 @@
|
||||
ace.define("ace/theme/terminal",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-terminal-theme";
|
||||
exports.cssText = ".ace-terminal-theme .ace_gutter {\
|
||||
background: #1a0005;\
|
||||
color: steelblue\
|
||||
}\
|
||||
.ace-terminal-theme .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #1a1a1a\
|
||||
}\
|
||||
.ace-terminal-theme {\
|
||||
background-color: black;\
|
||||
color: #DEDEDE\
|
||||
}\
|
||||
.ace-terminal-theme .ace_cursor {\
|
||||
color: #9F9F9F\
|
||||
}\
|
||||
.ace-terminal-theme .ace_marker-layer .ace_selection {\
|
||||
background: #424242\
|
||||
}\
|
||||
.ace-terminal-theme.ace_multiselect .ace_selection.ace_start {\
|
||||
box-shadow: 0 0 3px 0px black;\
|
||||
}\
|
||||
.ace-terminal-theme .ace_marker-layer .ace_step {\
|
||||
background: rgb(0, 0, 0)\
|
||||
}\
|
||||
.ace-terminal-theme .ace_marker-layer .ace_bracket {\
|
||||
background: #090;\
|
||||
}\
|
||||
.ace-terminal-theme .ace_marker-layer .ace_bracket-start {\
|
||||
background: #090;\
|
||||
}\
|
||||
.ace-terminal-theme .ace_marker-layer .ace_bracket-unmatched {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid #900\
|
||||
}\
|
||||
.ace-terminal-theme .ace_marker-layer .ace_active-line {\
|
||||
background: #2A2A2A\
|
||||
}\
|
||||
.ace-terminal-theme .ace_gutter-active-line {\
|
||||
background-color: #2A112A\
|
||||
}\
|
||||
.ace-terminal-theme .ace_marker-layer .ace_selected-word {\
|
||||
border: 1px solid #424242\
|
||||
}\
|
||||
.ace-terminal-theme .ace_invisible {\
|
||||
color: #343434\
|
||||
}\
|
||||
.ace-terminal-theme .ace_keyword,\
|
||||
.ace-terminal-theme .ace_meta,\
|
||||
.ace-terminal-theme .ace_storage,\
|
||||
.ace-terminal-theme .ace_storage.ace_type,\
|
||||
.ace-terminal-theme .ace_support.ace_type {\
|
||||
color: tomato\
|
||||
}\
|
||||
.ace-terminal-theme .ace_keyword.ace_operator {\
|
||||
color: deeppink\
|
||||
}\
|
||||
.ace-terminal-theme .ace_constant.ace_character,\
|
||||
.ace-terminal-theme .ace_constant.ace_language,\
|
||||
.ace-terminal-theme .ace_constant.ace_numeric,\
|
||||
.ace-terminal-theme .ace_keyword.ace_other.ace_unit,\
|
||||
.ace-terminal-theme .ace_support.ace_constant,\
|
||||
.ace-terminal-theme .ace_variable.ace_parameter {\
|
||||
color: #E78C45\
|
||||
}\
|
||||
.ace-terminal-theme .ace_constant.ace_other {\
|
||||
color: gold\
|
||||
}\
|
||||
.ace-terminal-theme .ace_invalid {\
|
||||
color: yellow;\
|
||||
background-color: red\
|
||||
}\
|
||||
.ace-terminal-theme .ace_invalid.ace_deprecated {\
|
||||
color: #CED2CF;\
|
||||
background-color: #B798BF\
|
||||
}\
|
||||
.ace-terminal-theme .ace_fold {\
|
||||
background-color: #7AA6DA;\
|
||||
border-color: #DEDEDE\
|
||||
}\
|
||||
.ace-terminal-theme .ace_entity.ace_name.ace_function,\
|
||||
.ace-terminal-theme .ace_support.ace_function,\
|
||||
.ace-terminal-theme .ace_variable {\
|
||||
color: #7AA6DA\
|
||||
}\
|
||||
.ace-terminal-theme .ace_support.ace_class,\
|
||||
.ace-terminal-theme .ace_support.ace_type {\
|
||||
color: #E7C547\
|
||||
}\
|
||||
.ace-terminal-theme .ace_heading,\
|
||||
.ace-terminal-theme .ace_string {\
|
||||
color: #B9CA4A\
|
||||
}\
|
||||
.ace-terminal-theme .ace_entity.ace_name.ace_tag,\
|
||||
.ace-terminal-theme .ace_entity.ace_other.ace_attribute-name,\
|
||||
.ace-terminal-theme .ace_meta.ace_tag,\
|
||||
.ace-terminal-theme .ace_string.ace_regexp,\
|
||||
.ace-terminal-theme .ace_variable {\
|
||||
color: #D54E53\
|
||||
}\
|
||||
.ace-terminal-theme .ace_comment {\
|
||||
color: orangered\
|
||||
}\
|
||||
.ace-terminal-theme .ace_indent-guide {\
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYLBWV/8PAAK4AYnhiq+xAAAAAElFTkSuQmCC) right repeat-y;\
|
||||
}\
|
||||
";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
129
modules/backend/assets/vendor/ace/theme-textmate.js
vendored
Executable file
129
modules/backend/assets/vendor/ace/theme-textmate.js
vendored
Executable file
@@ -0,0 +1,129 @@
|
||||
ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.isDark = false;
|
||||
exports.cssClass = "ace-tm";
|
||||
exports.cssText = ".ace-tm .ace_gutter {\
|
||||
background: #f0f0f0;\
|
||||
color: #333;\
|
||||
}\
|
||||
.ace-tm .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #e8e8e8;\
|
||||
}\
|
||||
.ace-tm .ace_fold {\
|
||||
background-color: #6B72E6;\
|
||||
}\
|
||||
.ace-tm {\
|
||||
background-color: #FFFFFF;\
|
||||
color: black;\
|
||||
}\
|
||||
.ace-tm .ace_cursor {\
|
||||
color: black;\
|
||||
}\
|
||||
.ace-tm .ace_invisible {\
|
||||
color: rgb(191, 191, 191);\
|
||||
}\
|
||||
.ace-tm .ace_storage,\
|
||||
.ace-tm .ace_keyword {\
|
||||
color: blue;\
|
||||
}\
|
||||
.ace-tm .ace_constant {\
|
||||
color: rgb(197, 6, 11);\
|
||||
}\
|
||||
.ace-tm .ace_constant.ace_buildin {\
|
||||
color: rgb(88, 72, 246);\
|
||||
}\
|
||||
.ace-tm .ace_constant.ace_language {\
|
||||
color: rgb(88, 92, 246);\
|
||||
}\
|
||||
.ace-tm .ace_constant.ace_library {\
|
||||
color: rgb(6, 150, 14);\
|
||||
}\
|
||||
.ace-tm .ace_invalid {\
|
||||
background-color: rgba(255, 0, 0, 0.1);\
|
||||
color: red;\
|
||||
}\
|
||||
.ace-tm .ace_support.ace_function {\
|
||||
color: rgb(60, 76, 114);\
|
||||
}\
|
||||
.ace-tm .ace_support.ace_constant {\
|
||||
color: rgb(6, 150, 14);\
|
||||
}\
|
||||
.ace-tm .ace_support.ace_type,\
|
||||
.ace-tm .ace_support.ace_class {\
|
||||
color: rgb(109, 121, 222);\
|
||||
}\
|
||||
.ace-tm .ace_keyword.ace_operator {\
|
||||
color: rgb(104, 118, 135);\
|
||||
}\
|
||||
.ace-tm .ace_string {\
|
||||
color: rgb(3, 106, 7);\
|
||||
}\
|
||||
.ace-tm .ace_comment {\
|
||||
color: rgb(76, 136, 107);\
|
||||
}\
|
||||
.ace-tm .ace_comment.ace_doc {\
|
||||
color: rgb(0, 102, 255);\
|
||||
}\
|
||||
.ace-tm .ace_comment.ace_doc.ace_tag {\
|
||||
color: rgb(128, 159, 191);\
|
||||
}\
|
||||
.ace-tm .ace_constant.ace_numeric {\
|
||||
color: rgb(0, 0, 205);\
|
||||
}\
|
||||
.ace-tm .ace_variable {\
|
||||
color: rgb(49, 132, 149);\
|
||||
}\
|
||||
.ace-tm .ace_xml-pe {\
|
||||
color: rgb(104, 104, 91);\
|
||||
}\
|
||||
.ace-tm .ace_entity.ace_name.ace_function {\
|
||||
color: #0000A2;\
|
||||
}\
|
||||
.ace-tm .ace_heading {\
|
||||
color: rgb(12, 7, 255);\
|
||||
}\
|
||||
.ace-tm .ace_list {\
|
||||
color:rgb(185, 6, 144);\
|
||||
}\
|
||||
.ace-tm .ace_meta.ace_tag {\
|
||||
color:rgb(0, 22, 142);\
|
||||
}\
|
||||
.ace-tm .ace_string.ace_regex {\
|
||||
color: rgb(255, 0, 0)\
|
||||
}\
|
||||
.ace-tm .ace_marker-layer .ace_selection {\
|
||||
background: rgb(181, 213, 255);\
|
||||
}\
|
||||
.ace-tm.ace_multiselect .ace_selection.ace_start {\
|
||||
box-shadow: 0 0 3px 0px white;\
|
||||
}\
|
||||
.ace-tm .ace_marker-layer .ace_step {\
|
||||
background: rgb(252, 255, 0);\
|
||||
}\
|
||||
.ace-tm .ace_marker-layer .ace_stack {\
|
||||
background: rgb(164, 229, 101);\
|
||||
}\
|
||||
.ace-tm .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid rgb(192, 192, 192);\
|
||||
}\
|
||||
.ace-tm .ace_marker-layer .ace_active-line {\
|
||||
background: rgba(0, 0, 0, 0.07);\
|
||||
}\
|
||||
.ace-tm .ace_gutter-active-line {\
|
||||
background-color : #dcdcdc;\
|
||||
}\
|
||||
.ace-tm .ace_marker-layer .ace_selected-word {\
|
||||
background: rgb(250, 250, 255);\
|
||||
border: 1px solid rgb(200, 200, 250);\
|
||||
}\
|
||||
.ace-tm .ace_indent-guide {\
|
||||
background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y;\
|
||||
}\
|
||||
";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
108
modules/backend/assets/vendor/ace/theme-tomorrow.js
vendored
Executable file
108
modules/backend/assets/vendor/ace/theme-tomorrow.js
vendored
Executable file
@@ -0,0 +1,108 @@
|
||||
ace.define("ace/theme/tomorrow",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = false;
|
||||
exports.cssClass = "ace-tomorrow";
|
||||
exports.cssText = ".ace-tomorrow .ace_gutter {\
|
||||
background: #f6f6f6;\
|
||||
color: #4D4D4C\
|
||||
}\
|
||||
.ace-tomorrow .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #f6f6f6\
|
||||
}\
|
||||
.ace-tomorrow {\
|
||||
background-color: #FFFFFF;\
|
||||
color: #4D4D4C\
|
||||
}\
|
||||
.ace-tomorrow .ace_cursor {\
|
||||
color: #AEAFAD\
|
||||
}\
|
||||
.ace-tomorrow .ace_marker-layer .ace_selection {\
|
||||
background: #D6D6D6\
|
||||
}\
|
||||
.ace-tomorrow.ace_multiselect .ace_selection.ace_start {\
|
||||
box-shadow: 0 0 3px 0px #FFFFFF;\
|
||||
}\
|
||||
.ace-tomorrow .ace_marker-layer .ace_step {\
|
||||
background: rgb(255, 255, 0)\
|
||||
}\
|
||||
.ace-tomorrow .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid #D1D1D1\
|
||||
}\
|
||||
.ace-tomorrow .ace_marker-layer .ace_active-line {\
|
||||
background: #EFEFEF\
|
||||
}\
|
||||
.ace-tomorrow .ace_gutter-active-line {\
|
||||
background-color : #dcdcdc\
|
||||
}\
|
||||
.ace-tomorrow .ace_marker-layer .ace_selected-word {\
|
||||
border: 1px solid #D6D6D6\
|
||||
}\
|
||||
.ace-tomorrow .ace_invisible {\
|
||||
color: #D1D1D1\
|
||||
}\
|
||||
.ace-tomorrow .ace_keyword,\
|
||||
.ace-tomorrow .ace_meta,\
|
||||
.ace-tomorrow .ace_storage,\
|
||||
.ace-tomorrow .ace_storage.ace_type,\
|
||||
.ace-tomorrow .ace_support.ace_type {\
|
||||
color: #8959A8\
|
||||
}\
|
||||
.ace-tomorrow .ace_keyword.ace_operator {\
|
||||
color: #3E999F\
|
||||
}\
|
||||
.ace-tomorrow .ace_constant.ace_character,\
|
||||
.ace-tomorrow .ace_constant.ace_language,\
|
||||
.ace-tomorrow .ace_constant.ace_numeric,\
|
||||
.ace-tomorrow .ace_keyword.ace_other.ace_unit,\
|
||||
.ace-tomorrow .ace_support.ace_constant,\
|
||||
.ace-tomorrow .ace_variable.ace_parameter {\
|
||||
color: #F5871F\
|
||||
}\
|
||||
.ace-tomorrow .ace_constant.ace_other {\
|
||||
color: #666969\
|
||||
}\
|
||||
.ace-tomorrow .ace_invalid {\
|
||||
color: #FFFFFF;\
|
||||
background-color: #C82829\
|
||||
}\
|
||||
.ace-tomorrow .ace_invalid.ace_deprecated {\
|
||||
color: #FFFFFF;\
|
||||
background-color: #8959A8\
|
||||
}\
|
||||
.ace-tomorrow .ace_fold {\
|
||||
background-color: #4271AE;\
|
||||
border-color: #4D4D4C\
|
||||
}\
|
||||
.ace-tomorrow .ace_entity.ace_name.ace_function,\
|
||||
.ace-tomorrow .ace_support.ace_function,\
|
||||
.ace-tomorrow .ace_variable {\
|
||||
color: #4271AE\
|
||||
}\
|
||||
.ace-tomorrow .ace_support.ace_class,\
|
||||
.ace-tomorrow .ace_support.ace_type {\
|
||||
color: #C99E00\
|
||||
}\
|
||||
.ace-tomorrow .ace_heading,\
|
||||
.ace-tomorrow .ace_markup.ace_heading,\
|
||||
.ace-tomorrow .ace_string {\
|
||||
color: #718C00\
|
||||
}\
|
||||
.ace-tomorrow .ace_entity.ace_name.ace_tag,\
|
||||
.ace-tomorrow .ace_entity.ace_other.ace_attribute-name,\
|
||||
.ace-tomorrow .ace_meta.ace_tag,\
|
||||
.ace-tomorrow .ace_string.ace_regexp,\
|
||||
.ace-tomorrow .ace_variable {\
|
||||
color: #C82829\
|
||||
}\
|
||||
.ace-tomorrow .ace_comment {\
|
||||
color: #8E908C\
|
||||
}\
|
||||
.ace-tomorrow .ace_indent-guide {\
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bdu3f/BwAlfgctduB85QAAAABJRU5ErkJggg==) right repeat-y\
|
||||
}";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
108
modules/backend/assets/vendor/ace/theme-tomorrow_night.js
vendored
Executable file
108
modules/backend/assets/vendor/ace/theme-tomorrow_night.js
vendored
Executable file
@@ -0,0 +1,108 @@
|
||||
ace.define("ace/theme/tomorrow_night",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-tomorrow-night";
|
||||
exports.cssText = ".ace-tomorrow-night .ace_gutter {\
|
||||
background: #25282c;\
|
||||
color: #C5C8C6\
|
||||
}\
|
||||
.ace-tomorrow-night .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #25282c\
|
||||
}\
|
||||
.ace-tomorrow-night {\
|
||||
background-color: #1D1F21;\
|
||||
color: #C5C8C6\
|
||||
}\
|
||||
.ace-tomorrow-night .ace_cursor {\
|
||||
color: #AEAFAD\
|
||||
}\
|
||||
.ace-tomorrow-night .ace_marker-layer .ace_selection {\
|
||||
background: #373B41\
|
||||
}\
|
||||
.ace-tomorrow-night.ace_multiselect .ace_selection.ace_start {\
|
||||
box-shadow: 0 0 3px 0px #1D1F21;\
|
||||
}\
|
||||
.ace-tomorrow-night .ace_marker-layer .ace_step {\
|
||||
background: rgb(102, 82, 0)\
|
||||
}\
|
||||
.ace-tomorrow-night .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid #4B4E55\
|
||||
}\
|
||||
.ace-tomorrow-night .ace_marker-layer .ace_active-line {\
|
||||
background: #282A2E\
|
||||
}\
|
||||
.ace-tomorrow-night .ace_gutter-active-line {\
|
||||
background-color: #282A2E\
|
||||
}\
|
||||
.ace-tomorrow-night .ace_marker-layer .ace_selected-word {\
|
||||
border: 1px solid #373B41\
|
||||
}\
|
||||
.ace-tomorrow-night .ace_invisible {\
|
||||
color: #4B4E55\
|
||||
}\
|
||||
.ace-tomorrow-night .ace_keyword,\
|
||||
.ace-tomorrow-night .ace_meta,\
|
||||
.ace-tomorrow-night .ace_storage,\
|
||||
.ace-tomorrow-night .ace_storage.ace_type,\
|
||||
.ace-tomorrow-night .ace_support.ace_type {\
|
||||
color: #B294BB\
|
||||
}\
|
||||
.ace-tomorrow-night .ace_keyword.ace_operator {\
|
||||
color: #8ABEB7\
|
||||
}\
|
||||
.ace-tomorrow-night .ace_constant.ace_character,\
|
||||
.ace-tomorrow-night .ace_constant.ace_language,\
|
||||
.ace-tomorrow-night .ace_constant.ace_numeric,\
|
||||
.ace-tomorrow-night .ace_keyword.ace_other.ace_unit,\
|
||||
.ace-tomorrow-night .ace_support.ace_constant,\
|
||||
.ace-tomorrow-night .ace_variable.ace_parameter {\
|
||||
color: #DE935F\
|
||||
}\
|
||||
.ace-tomorrow-night .ace_constant.ace_other {\
|
||||
color: #CED1CF\
|
||||
}\
|
||||
.ace-tomorrow-night .ace_invalid {\
|
||||
color: #CED2CF;\
|
||||
background-color: #DF5F5F\
|
||||
}\
|
||||
.ace-tomorrow-night .ace_invalid.ace_deprecated {\
|
||||
color: #CED2CF;\
|
||||
background-color: #B798BF\
|
||||
}\
|
||||
.ace-tomorrow-night .ace_fold {\
|
||||
background-color: #81A2BE;\
|
||||
border-color: #C5C8C6\
|
||||
}\
|
||||
.ace-tomorrow-night .ace_entity.ace_name.ace_function,\
|
||||
.ace-tomorrow-night .ace_support.ace_function,\
|
||||
.ace-tomorrow-night .ace_variable {\
|
||||
color: #81A2BE\
|
||||
}\
|
||||
.ace-tomorrow-night .ace_support.ace_class,\
|
||||
.ace-tomorrow-night .ace_support.ace_type {\
|
||||
color: #F0C674\
|
||||
}\
|
||||
.ace-tomorrow-night .ace_heading,\
|
||||
.ace-tomorrow-night .ace_markup.ace_heading,\
|
||||
.ace-tomorrow-night .ace_string {\
|
||||
color: #B5BD68\
|
||||
}\
|
||||
.ace-tomorrow-night .ace_entity.ace_name.ace_tag,\
|
||||
.ace-tomorrow-night .ace_entity.ace_other.ace_attribute-name,\
|
||||
.ace-tomorrow-night .ace_meta.ace_tag,\
|
||||
.ace-tomorrow-night .ace_string.ace_regexp,\
|
||||
.ace-tomorrow-night .ace_variable {\
|
||||
color: #CC6666\
|
||||
}\
|
||||
.ace-tomorrow-night .ace_comment {\
|
||||
color: #969896\
|
||||
}\
|
||||
.ace-tomorrow-night .ace_indent-guide {\
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHB3d/8PAAOIAdULw8qMAAAAAElFTkSuQmCC) right repeat-y\
|
||||
}";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
106
modules/backend/assets/vendor/ace/theme-tomorrow_night_blue.js
vendored
Executable file
106
modules/backend/assets/vendor/ace/theme-tomorrow_night_blue.js
vendored
Executable file
@@ -0,0 +1,106 @@
|
||||
ace.define("ace/theme/tomorrow_night_blue",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-tomorrow-night-blue";
|
||||
exports.cssText = ".ace-tomorrow-night-blue .ace_gutter {\
|
||||
background: #00204b;\
|
||||
color: #7388b5\
|
||||
}\
|
||||
.ace-tomorrow-night-blue .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #00204b\
|
||||
}\
|
||||
.ace-tomorrow-night-blue {\
|
||||
background-color: #002451;\
|
||||
color: #FFFFFF\
|
||||
}\
|
||||
.ace-tomorrow-night-blue .ace_constant.ace_other,\
|
||||
.ace-tomorrow-night-blue .ace_cursor {\
|
||||
color: #FFFFFF\
|
||||
}\
|
||||
.ace-tomorrow-night-blue .ace_marker-layer .ace_selection {\
|
||||
background: #003F8E\
|
||||
}\
|
||||
.ace-tomorrow-night-blue.ace_multiselect .ace_selection.ace_start {\
|
||||
box-shadow: 0 0 3px 0px #002451;\
|
||||
}\
|
||||
.ace-tomorrow-night-blue .ace_marker-layer .ace_step {\
|
||||
background: rgb(127, 111, 19)\
|
||||
}\
|
||||
.ace-tomorrow-night-blue .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid #404F7D\
|
||||
}\
|
||||
.ace-tomorrow-night-blue .ace_marker-layer .ace_active-line {\
|
||||
background: #00346E\
|
||||
}\
|
||||
.ace-tomorrow-night-blue .ace_gutter-active-line {\
|
||||
background-color: #022040\
|
||||
}\
|
||||
.ace-tomorrow-night-blue .ace_marker-layer .ace_selected-word {\
|
||||
border: 1px solid #003F8E\
|
||||
}\
|
||||
.ace-tomorrow-night-blue .ace_invisible {\
|
||||
color: #404F7D\
|
||||
}\
|
||||
.ace-tomorrow-night-blue .ace_keyword,\
|
||||
.ace-tomorrow-night-blue .ace_meta,\
|
||||
.ace-tomorrow-night-blue .ace_storage,\
|
||||
.ace-tomorrow-night-blue .ace_storage.ace_type,\
|
||||
.ace-tomorrow-night-blue .ace_support.ace_type {\
|
||||
color: #EBBBFF\
|
||||
}\
|
||||
.ace-tomorrow-night-blue .ace_keyword.ace_operator {\
|
||||
color: #99FFFF\
|
||||
}\
|
||||
.ace-tomorrow-night-blue .ace_constant.ace_character,\
|
||||
.ace-tomorrow-night-blue .ace_constant.ace_language,\
|
||||
.ace-tomorrow-night-blue .ace_constant.ace_numeric,\
|
||||
.ace-tomorrow-night-blue .ace_keyword.ace_other.ace_unit,\
|
||||
.ace-tomorrow-night-blue .ace_support.ace_constant,\
|
||||
.ace-tomorrow-night-blue .ace_variable.ace_parameter {\
|
||||
color: #FFC58F\
|
||||
}\
|
||||
.ace-tomorrow-night-blue .ace_invalid {\
|
||||
color: #FFFFFF;\
|
||||
background-color: #F99DA5\
|
||||
}\
|
||||
.ace-tomorrow-night-blue .ace_invalid.ace_deprecated {\
|
||||
color: #FFFFFF;\
|
||||
background-color: #EBBBFF\
|
||||
}\
|
||||
.ace-tomorrow-night-blue .ace_fold {\
|
||||
background-color: #BBDAFF;\
|
||||
border-color: #FFFFFF\
|
||||
}\
|
||||
.ace-tomorrow-night-blue .ace_entity.ace_name.ace_function,\
|
||||
.ace-tomorrow-night-blue .ace_support.ace_function,\
|
||||
.ace-tomorrow-night-blue .ace_variable {\
|
||||
color: #BBDAFF\
|
||||
}\
|
||||
.ace-tomorrow-night-blue .ace_support.ace_class,\
|
||||
.ace-tomorrow-night-blue .ace_support.ace_type {\
|
||||
color: #FFEEAD\
|
||||
}\
|
||||
.ace-tomorrow-night-blue .ace_heading,\
|
||||
.ace-tomorrow-night-blue .ace_markup.ace_heading,\
|
||||
.ace-tomorrow-night-blue .ace_string {\
|
||||
color: #D1F1A9\
|
||||
}\
|
||||
.ace-tomorrow-night-blue .ace_entity.ace_name.ace_tag,\
|
||||
.ace-tomorrow-night-blue .ace_entity.ace_other.ace_attribute-name,\
|
||||
.ace-tomorrow-night-blue .ace_meta.ace_tag,\
|
||||
.ace-tomorrow-night-blue .ace_string.ace_regexp,\
|
||||
.ace-tomorrow-night-blue .ace_variable {\
|
||||
color: #FF9DA4\
|
||||
}\
|
||||
.ace-tomorrow-night-blue .ace_comment {\
|
||||
color: #7285B7\
|
||||
}\
|
||||
.ace-tomorrow-night-blue .ace_indent-guide {\
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYJDzqfwPAANXAeNsiA+ZAAAAAElFTkSuQmCC) right repeat-y\
|
||||
}";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
121
modules/backend/assets/vendor/ace/theme-tomorrow_night_bright.js
vendored
Executable file
121
modules/backend/assets/vendor/ace/theme-tomorrow_night_bright.js
vendored
Executable file
@@ -0,0 +1,121 @@
|
||||
ace.define("ace/theme/tomorrow_night_bright",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-tomorrow-night-bright";
|
||||
exports.cssText = ".ace-tomorrow-night-bright .ace_gutter {\
|
||||
background: #1a1a1a;\
|
||||
color: #DEDEDE\
|
||||
}\
|
||||
.ace-tomorrow-night-bright .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #1a1a1a\
|
||||
}\
|
||||
.ace-tomorrow-night-bright {\
|
||||
background-color: #000000;\
|
||||
color: #DEDEDE\
|
||||
}\
|
||||
.ace-tomorrow-night-bright .ace_cursor {\
|
||||
color: #9F9F9F\
|
||||
}\
|
||||
.ace-tomorrow-night-bright .ace_marker-layer .ace_selection {\
|
||||
background: #424242\
|
||||
}\
|
||||
.ace-tomorrow-night-bright.ace_multiselect .ace_selection.ace_start {\
|
||||
box-shadow: 0 0 3px 0px #000000;\
|
||||
}\
|
||||
.ace-tomorrow-night-bright .ace_marker-layer .ace_step {\
|
||||
background: rgb(102, 82, 0)\
|
||||
}\
|
||||
.ace-tomorrow-night-bright .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid #888888\
|
||||
}\
|
||||
.ace-tomorrow-night-bright .ace_marker-layer .ace_highlight {\
|
||||
border: 1px solid rgb(110, 119, 0);\
|
||||
border-bottom: 0;\
|
||||
box-shadow: inset 0 -1px rgb(110, 119, 0);\
|
||||
margin: -1px 0 0 -1px;\
|
||||
background: rgba(255, 235, 0, 0.1)\
|
||||
}\
|
||||
.ace-tomorrow-night-bright .ace_marker-layer .ace_active-line {\
|
||||
background: #2A2A2A\
|
||||
}\
|
||||
.ace-tomorrow-night-bright .ace_gutter-active-line {\
|
||||
background-color: #2A2A2A\
|
||||
}\
|
||||
.ace-tomorrow-night-bright .ace_stack {\
|
||||
background-color: rgb(66, 90, 44)\
|
||||
}\
|
||||
.ace-tomorrow-night-bright .ace_marker-layer .ace_selected-word {\
|
||||
border: 1px solid #888888\
|
||||
}\
|
||||
.ace-tomorrow-night-bright .ace_invisible {\
|
||||
color: #343434\
|
||||
}\
|
||||
.ace-tomorrow-night-bright .ace_keyword,\
|
||||
.ace-tomorrow-night-bright .ace_meta,\
|
||||
.ace-tomorrow-night-bright .ace_storage,\
|
||||
.ace-tomorrow-night-bright .ace_storage.ace_type,\
|
||||
.ace-tomorrow-night-bright .ace_support.ace_type {\
|
||||
color: #C397D8\
|
||||
}\
|
||||
.ace-tomorrow-night-bright .ace_keyword.ace_operator {\
|
||||
color: #70C0B1\
|
||||
}\
|
||||
.ace-tomorrow-night-bright .ace_constant.ace_character,\
|
||||
.ace-tomorrow-night-bright .ace_constant.ace_language,\
|
||||
.ace-tomorrow-night-bright .ace_constant.ace_numeric,\
|
||||
.ace-tomorrow-night-bright .ace_keyword.ace_other.ace_unit,\
|
||||
.ace-tomorrow-night-bright .ace_support.ace_constant,\
|
||||
.ace-tomorrow-night-bright .ace_variable.ace_parameter {\
|
||||
color: #E78C45\
|
||||
}\
|
||||
.ace-tomorrow-night-bright .ace_constant.ace_other {\
|
||||
color: #EEEEEE\
|
||||
}\
|
||||
.ace-tomorrow-night-bright .ace_invalid {\
|
||||
color: #CED2CF;\
|
||||
background-color: #DF5F5F\
|
||||
}\
|
||||
.ace-tomorrow-night-bright .ace_invalid.ace_deprecated {\
|
||||
color: #CED2CF;\
|
||||
background-color: #B798BF\
|
||||
}\
|
||||
.ace-tomorrow-night-bright .ace_fold {\
|
||||
background-color: #7AA6DA;\
|
||||
border-color: #DEDEDE\
|
||||
}\
|
||||
.ace-tomorrow-night-bright .ace_entity.ace_name.ace_function,\
|
||||
.ace-tomorrow-night-bright .ace_support.ace_function,\
|
||||
.ace-tomorrow-night-bright .ace_variable {\
|
||||
color: #7AA6DA\
|
||||
}\
|
||||
.ace-tomorrow-night-bright .ace_support.ace_class,\
|
||||
.ace-tomorrow-night-bright .ace_support.ace_type {\
|
||||
color: #E7C547\
|
||||
}\
|
||||
.ace-tomorrow-night-bright .ace_heading,\
|
||||
.ace-tomorrow-night-bright .ace_markup.ace_heading,\
|
||||
.ace-tomorrow-night-bright .ace_string {\
|
||||
color: #B9CA4A\
|
||||
}\
|
||||
.ace-tomorrow-night-bright .ace_entity.ace_name.ace_tag,\
|
||||
.ace-tomorrow-night-bright .ace_entity.ace_other.ace_attribute-name,\
|
||||
.ace-tomorrow-night-bright .ace_meta.ace_tag,\
|
||||
.ace-tomorrow-night-bright .ace_string.ace_regexp,\
|
||||
.ace-tomorrow-night-bright .ace_variable {\
|
||||
color: #D54E53\
|
||||
}\
|
||||
.ace-tomorrow-night-bright .ace_comment {\
|
||||
color: #969896\
|
||||
}\
|
||||
.ace-tomorrow-night-bright .ace_c9searchresults.ace_keyword {\
|
||||
color: #C2C280\
|
||||
}\
|
||||
.ace-tomorrow-night-bright .ace_indent-guide {\
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYFBXV/8PAAJoAXX4kT2EAAAAAElFTkSuQmCC) right repeat-y\
|
||||
}";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
108
modules/backend/assets/vendor/ace/theme-tomorrow_night_eighties.js
vendored
Executable file
108
modules/backend/assets/vendor/ace/theme-tomorrow_night_eighties.js
vendored
Executable file
@@ -0,0 +1,108 @@
|
||||
ace.define("ace/theme/tomorrow_night_eighties",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-tomorrow-night-eighties";
|
||||
exports.cssText = ".ace-tomorrow-night-eighties .ace_gutter {\
|
||||
background: #272727;\
|
||||
color: #CCC\
|
||||
}\
|
||||
.ace-tomorrow-night-eighties .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #272727\
|
||||
}\
|
||||
.ace-tomorrow-night-eighties {\
|
||||
background-color: #2D2D2D;\
|
||||
color: #CCCCCC\
|
||||
}\
|
||||
.ace-tomorrow-night-eighties .ace_constant.ace_other,\
|
||||
.ace-tomorrow-night-eighties .ace_cursor {\
|
||||
color: #CCCCCC\
|
||||
}\
|
||||
.ace-tomorrow-night-eighties .ace_marker-layer .ace_selection {\
|
||||
background: #515151\
|
||||
}\
|
||||
.ace-tomorrow-night-eighties.ace_multiselect .ace_selection.ace_start {\
|
||||
box-shadow: 0 0 3px 0px #2D2D2D;\
|
||||
}\
|
||||
.ace-tomorrow-night-eighties .ace_marker-layer .ace_step {\
|
||||
background: rgb(102, 82, 0)\
|
||||
}\
|
||||
.ace-tomorrow-night-eighties .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid #6A6A6A\
|
||||
}\
|
||||
.ace-tomorrow-night-bright .ace_stack {\
|
||||
background: rgb(66, 90, 44)\
|
||||
}\
|
||||
.ace-tomorrow-night-eighties .ace_marker-layer .ace_active-line {\
|
||||
background: #393939\
|
||||
}\
|
||||
.ace-tomorrow-night-eighties .ace_gutter-active-line {\
|
||||
background-color: #393939\
|
||||
}\
|
||||
.ace-tomorrow-night-eighties .ace_marker-layer .ace_selected-word {\
|
||||
border: 1px solid #515151\
|
||||
}\
|
||||
.ace-tomorrow-night-eighties .ace_invisible {\
|
||||
color: #6A6A6A\
|
||||
}\
|
||||
.ace-tomorrow-night-eighties .ace_keyword,\
|
||||
.ace-tomorrow-night-eighties .ace_meta,\
|
||||
.ace-tomorrow-night-eighties .ace_storage,\
|
||||
.ace-tomorrow-night-eighties .ace_storage.ace_type,\
|
||||
.ace-tomorrow-night-eighties .ace_support.ace_type {\
|
||||
color: #CC99CC\
|
||||
}\
|
||||
.ace-tomorrow-night-eighties .ace_keyword.ace_operator {\
|
||||
color: #66CCCC\
|
||||
}\
|
||||
.ace-tomorrow-night-eighties .ace_constant.ace_character,\
|
||||
.ace-tomorrow-night-eighties .ace_constant.ace_language,\
|
||||
.ace-tomorrow-night-eighties .ace_constant.ace_numeric,\
|
||||
.ace-tomorrow-night-eighties .ace_keyword.ace_other.ace_unit,\
|
||||
.ace-tomorrow-night-eighties .ace_support.ace_constant,\
|
||||
.ace-tomorrow-night-eighties .ace_variable.ace_parameter {\
|
||||
color: #F99157\
|
||||
}\
|
||||
.ace-tomorrow-night-eighties .ace_invalid {\
|
||||
color: #CDCDCD;\
|
||||
background-color: #F2777A\
|
||||
}\
|
||||
.ace-tomorrow-night-eighties .ace_invalid.ace_deprecated {\
|
||||
color: #CDCDCD;\
|
||||
background-color: #CC99CC\
|
||||
}\
|
||||
.ace-tomorrow-night-eighties .ace_fold {\
|
||||
background-color: #6699CC;\
|
||||
border-color: #CCCCCC\
|
||||
}\
|
||||
.ace-tomorrow-night-eighties .ace_entity.ace_name.ace_function,\
|
||||
.ace-tomorrow-night-eighties .ace_support.ace_function,\
|
||||
.ace-tomorrow-night-eighties .ace_variable {\
|
||||
color: #6699CC\
|
||||
}\
|
||||
.ace-tomorrow-night-eighties .ace_support.ace_class,\
|
||||
.ace-tomorrow-night-eighties .ace_support.ace_type {\
|
||||
color: #FFCC66\
|
||||
}\
|
||||
.ace-tomorrow-night-eighties .ace_heading,\
|
||||
.ace-tomorrow-night-eighties .ace_markup.ace_heading,\
|
||||
.ace-tomorrow-night-eighties .ace_string {\
|
||||
color: #99CC99\
|
||||
}\
|
||||
.ace-tomorrow-night-eighties .ace_comment {\
|
||||
color: #999999\
|
||||
}\
|
||||
.ace-tomorrow-night-eighties .ace_entity.ace_name.ace_tag,\
|
||||
.ace-tomorrow-night-eighties .ace_entity.ace_other.ace_attribute-name,\
|
||||
.ace-tomorrow-night-eighties .ace_meta.ace_tag,\
|
||||
.ace-tomorrow-night-eighties .ace_variable {\
|
||||
color: #F2777A\
|
||||
}\
|
||||
.ace-tomorrow-night-eighties .ace_indent-guide {\
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ09NrYAgMjP4PAAtGAwchHMyAAAAAAElFTkSuQmCC) right repeat-y\
|
||||
}";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
109
modules/backend/assets/vendor/ace/theme-twilight.js
vendored
Executable file
109
modules/backend/assets/vendor/ace/theme-twilight.js
vendored
Executable file
@@ -0,0 +1,109 @@
|
||||
ace.define("ace/theme/twilight",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-twilight";
|
||||
exports.cssText = ".ace-twilight .ace_gutter {\
|
||||
background: #232323;\
|
||||
color: #E2E2E2\
|
||||
}\
|
||||
.ace-twilight .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #232323\
|
||||
}\
|
||||
.ace-twilight {\
|
||||
background-color: #141414;\
|
||||
color: #F8F8F8\
|
||||
}\
|
||||
.ace-twilight .ace_cursor {\
|
||||
color: #A7A7A7\
|
||||
}\
|
||||
.ace-twilight .ace_marker-layer .ace_selection {\
|
||||
background: rgba(221, 240, 255, 0.20)\
|
||||
}\
|
||||
.ace-twilight.ace_multiselect .ace_selection.ace_start {\
|
||||
box-shadow: 0 0 3px 0px #141414;\
|
||||
}\
|
||||
.ace-twilight .ace_marker-layer .ace_step {\
|
||||
background: rgb(102, 82, 0)\
|
||||
}\
|
||||
.ace-twilight .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid rgba(255, 255, 255, 0.25)\
|
||||
}\
|
||||
.ace-twilight .ace_marker-layer .ace_active-line {\
|
||||
background: rgba(255, 255, 255, 0.031)\
|
||||
}\
|
||||
.ace-twilight .ace_gutter-active-line {\
|
||||
background-color: rgba(255, 255, 255, 0.031)\
|
||||
}\
|
||||
.ace-twilight .ace_marker-layer .ace_selected-word {\
|
||||
border: 1px solid rgba(221, 240, 255, 0.20)\
|
||||
}\
|
||||
.ace-twilight .ace_invisible {\
|
||||
color: rgba(255, 255, 255, 0.25)\
|
||||
}\
|
||||
.ace-twilight .ace_keyword,\
|
||||
.ace-twilight .ace_meta {\
|
||||
color: #CDA869\
|
||||
}\
|
||||
.ace-twilight .ace_constant,\
|
||||
.ace-twilight .ace_constant.ace_character,\
|
||||
.ace-twilight .ace_constant.ace_character.ace_escape,\
|
||||
.ace-twilight .ace_constant.ace_other,\
|
||||
.ace-twilight .ace_heading,\
|
||||
.ace-twilight .ace_markup.ace_heading,\
|
||||
.ace-twilight .ace_support.ace_constant {\
|
||||
color: #CF6A4C\
|
||||
}\
|
||||
.ace-twilight .ace_invalid.ace_illegal {\
|
||||
color: #F8F8F8;\
|
||||
background-color: rgba(86, 45, 86, 0.75)\
|
||||
}\
|
||||
.ace-twilight .ace_invalid.ace_deprecated {\
|
||||
text-decoration: underline;\
|
||||
font-style: italic;\
|
||||
color: #D2A8A1\
|
||||
}\
|
||||
.ace-twilight .ace_support {\
|
||||
color: #9B859D\
|
||||
}\
|
||||
.ace-twilight .ace_fold {\
|
||||
background-color: #AC885B;\
|
||||
border-color: #F8F8F8\
|
||||
}\
|
||||
.ace-twilight .ace_support.ace_function {\
|
||||
color: #DAD085\
|
||||
}\
|
||||
.ace-twilight .ace_list,\
|
||||
.ace-twilight .ace_markup.ace_list,\
|
||||
.ace-twilight .ace_storage {\
|
||||
color: #F9EE98\
|
||||
}\
|
||||
.ace-twilight .ace_entity.ace_name.ace_function,\
|
||||
.ace-twilight .ace_meta.ace_tag,\
|
||||
.ace-twilight .ace_variable {\
|
||||
color: #AC885B\
|
||||
}\
|
||||
.ace-twilight .ace_string {\
|
||||
color: #8F9D6A\
|
||||
}\
|
||||
.ace-twilight .ace_string.ace_regexp {\
|
||||
color: #E9C062\
|
||||
}\
|
||||
.ace-twilight .ace_comment {\
|
||||
font-style: italic;\
|
||||
color: #5F5A60\
|
||||
}\
|
||||
.ace-twilight .ace_variable {\
|
||||
color: #7587A6\
|
||||
}\
|
||||
.ace-twilight .ace_xml-pe {\
|
||||
color: #494949\
|
||||
}\
|
||||
.ace-twilight .ace_indent-guide {\
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQERFpYLC1tf0PAAgOAnPnhxyiAAAAAElFTkSuQmCC) right repeat-y\
|
||||
}";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
94
modules/backend/assets/vendor/ace/theme-vibrant_ink.js
vendored
Executable file
94
modules/backend/assets/vendor/ace/theme-vibrant_ink.js
vendored
Executable file
@@ -0,0 +1,94 @@
|
||||
ace.define("ace/theme/vibrant_ink",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = true;
|
||||
exports.cssClass = "ace-vibrant-ink";
|
||||
exports.cssText = ".ace-vibrant-ink .ace_gutter {\
|
||||
background: #1a1a1a;\
|
||||
color: #BEBEBE\
|
||||
}\
|
||||
.ace-vibrant-ink .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #1a1a1a\
|
||||
}\
|
||||
.ace-vibrant-ink {\
|
||||
background-color: #0F0F0F;\
|
||||
color: #FFFFFF\
|
||||
}\
|
||||
.ace-vibrant-ink .ace_cursor {\
|
||||
color: #FFFFFF\
|
||||
}\
|
||||
.ace-vibrant-ink .ace_marker-layer .ace_selection {\
|
||||
background: #6699CC\
|
||||
}\
|
||||
.ace-vibrant-ink.ace_multiselect .ace_selection.ace_start {\
|
||||
box-shadow: 0 0 3px 0px #0F0F0F;\
|
||||
}\
|
||||
.ace-vibrant-ink .ace_marker-layer .ace_step {\
|
||||
background: rgb(102, 82, 0)\
|
||||
}\
|
||||
.ace-vibrant-ink .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid #404040\
|
||||
}\
|
||||
.ace-vibrant-ink .ace_marker-layer .ace_active-line {\
|
||||
background: #333333\
|
||||
}\
|
||||
.ace-vibrant-ink .ace_gutter-active-line {\
|
||||
background-color: #333333\
|
||||
}\
|
||||
.ace-vibrant-ink .ace_marker-layer .ace_selected-word {\
|
||||
border: 1px solid #6699CC\
|
||||
}\
|
||||
.ace-vibrant-ink .ace_invisible {\
|
||||
color: #404040\
|
||||
}\
|
||||
.ace-vibrant-ink .ace_keyword,\
|
||||
.ace-vibrant-ink .ace_meta {\
|
||||
color: #FF6600\
|
||||
}\
|
||||
.ace-vibrant-ink .ace_constant,\
|
||||
.ace-vibrant-ink .ace_constant.ace_character,\
|
||||
.ace-vibrant-ink .ace_constant.ace_character.ace_escape,\
|
||||
.ace-vibrant-ink .ace_constant.ace_other {\
|
||||
color: #339999\
|
||||
}\
|
||||
.ace-vibrant-ink .ace_constant.ace_numeric {\
|
||||
color: #99CC99\
|
||||
}\
|
||||
.ace-vibrant-ink .ace_invalid,\
|
||||
.ace-vibrant-ink .ace_invalid.ace_deprecated {\
|
||||
color: #CCFF33;\
|
||||
background-color: #000000\
|
||||
}\
|
||||
.ace-vibrant-ink .ace_fold {\
|
||||
background-color: #FFCC00;\
|
||||
border-color: #FFFFFF\
|
||||
}\
|
||||
.ace-vibrant-ink .ace_entity.ace_name.ace_function,\
|
||||
.ace-vibrant-ink .ace_support.ace_function,\
|
||||
.ace-vibrant-ink .ace_variable {\
|
||||
color: #FFCC00\
|
||||
}\
|
||||
.ace-vibrant-ink .ace_variable.ace_parameter {\
|
||||
font-style: italic\
|
||||
}\
|
||||
.ace-vibrant-ink .ace_string {\
|
||||
color: #66FF00\
|
||||
}\
|
||||
.ace-vibrant-ink .ace_string.ace_regexp {\
|
||||
color: #44B4CC\
|
||||
}\
|
||||
.ace-vibrant-ink .ace_comment {\
|
||||
color: #9933CC\
|
||||
}\
|
||||
.ace-vibrant-ink .ace_entity.ace_other.ace_attribute-name {\
|
||||
font-style: italic;\
|
||||
color: #99CC99\
|
||||
}\
|
||||
.ace-vibrant-ink .ace_indent-guide {\
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYNDTc/oPAALPAZ7hxlbYAAAAAElFTkSuQmCC) right repeat-y\
|
||||
}";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
88
modules/backend/assets/vendor/ace/theme-xcode.js
vendored
Executable file
88
modules/backend/assets/vendor/ace/theme-xcode.js
vendored
Executable file
@@ -0,0 +1,88 @@
|
||||
ace.define("ace/theme/xcode",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
|
||||
|
||||
exports.isDark = false;
|
||||
exports.cssClass = "ace-xcode";
|
||||
exports.cssText = "\
|
||||
.ace-xcode .ace_gutter {\
|
||||
background: #e8e8e8;\
|
||||
color: #333\
|
||||
}\
|
||||
.ace-xcode .ace_print-margin {\
|
||||
width: 1px;\
|
||||
background: #e8e8e8\
|
||||
}\
|
||||
.ace-xcode {\
|
||||
background-color: #FFFFFF;\
|
||||
color: #000000\
|
||||
}\
|
||||
.ace-xcode .ace_cursor {\
|
||||
color: #000000\
|
||||
}\
|
||||
.ace-xcode .ace_marker-layer .ace_selection {\
|
||||
background: #B5D5FF\
|
||||
}\
|
||||
.ace-xcode.ace_multiselect .ace_selection.ace_start {\
|
||||
box-shadow: 0 0 3px 0px #FFFFFF;\
|
||||
}\
|
||||
.ace-xcode .ace_marker-layer .ace_step {\
|
||||
background: rgb(198, 219, 174)\
|
||||
}\
|
||||
.ace-xcode .ace_marker-layer .ace_bracket {\
|
||||
margin: -1px 0 0 -1px;\
|
||||
border: 1px solid #BFBFBF\
|
||||
}\
|
||||
.ace-xcode .ace_marker-layer .ace_active-line {\
|
||||
background: rgba(0, 0, 0, 0.071)\
|
||||
}\
|
||||
.ace-xcode .ace_gutter-active-line {\
|
||||
background-color: rgba(0, 0, 0, 0.071)\
|
||||
}\
|
||||
.ace-xcode .ace_marker-layer .ace_selected-word {\
|
||||
border: 1px solid #B5D5FF\
|
||||
}\
|
||||
.ace-xcode .ace_constant.ace_language,\
|
||||
.ace-xcode .ace_keyword,\
|
||||
.ace-xcode .ace_meta,\
|
||||
.ace-xcode .ace_variable.ace_language {\
|
||||
color: #C800A4\
|
||||
}\
|
||||
.ace-xcode .ace_invisible {\
|
||||
color: #BFBFBF\
|
||||
}\
|
||||
.ace-xcode .ace_constant.ace_character,\
|
||||
.ace-xcode .ace_constant.ace_other {\
|
||||
color: #275A5E\
|
||||
}\
|
||||
.ace-xcode .ace_constant.ace_numeric {\
|
||||
color: #3A00DC\
|
||||
}\
|
||||
.ace-xcode .ace_entity.ace_other.ace_attribute-name,\
|
||||
.ace-xcode .ace_support.ace_constant,\
|
||||
.ace-xcode .ace_support.ace_function {\
|
||||
color: #450084\
|
||||
}\
|
||||
.ace-xcode .ace_fold {\
|
||||
background-color: #C800A4;\
|
||||
border-color: #000000\
|
||||
}\
|
||||
.ace-xcode .ace_entity.ace_name.ace_tag,\
|
||||
.ace-xcode .ace_support.ace_class,\
|
||||
.ace-xcode .ace_support.ace_type {\
|
||||
color: #790EAD\
|
||||
}\
|
||||
.ace-xcode .ace_storage {\
|
||||
color: #C900A4\
|
||||
}\
|
||||
.ace-xcode .ace_string {\
|
||||
color: #DF0002\
|
||||
}\
|
||||
.ace-xcode .ace_comment {\
|
||||
color: #008E00\
|
||||
}\
|
||||
.ace-xcode .ace_indent-guide {\
|
||||
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==) right repeat-y\
|
||||
}";
|
||||
|
||||
var dom = require("../lib/dom");
|
||||
dom.importCssString(exports.cssText, exports.cssClass);
|
||||
});
|
||||
8762
modules/backend/assets/vendor/ace/worker-css.js
vendored
Executable file
8762
modules/backend/assets/vendor/ace/worker-css.js
vendored
Executable file
File diff suppressed because it is too large
Load Diff
11607
modules/backend/assets/vendor/ace/worker-html.js
vendored
Executable file
11607
modules/backend/assets/vendor/ace/worker-html.js
vendored
Executable file
File diff suppressed because it is too large
Load Diff
12530
modules/backend/assets/vendor/ace/worker-javascript.js
vendored
Executable file
12530
modules/backend/assets/vendor/ace/worker-javascript.js
vendored
Executable file
File diff suppressed because it is too large
Load Diff
7021
modules/backend/assets/vendor/ace/worker-php.js
vendored
Executable file
7021
modules/backend/assets/vendor/ace/worker-php.js
vendored
Executable file
File diff suppressed because it is too large
Load Diff
8
modules/backend/assets/vendor/css-browser-selector/css-browser-selector.js
vendored
Normal file
8
modules/backend/assets/vendor/css-browser-selector/css-browser-selector.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
CSS Browser Selector v0.4.0 (Nov 02, 2010)
|
||||
Rafael Lima (http://rafael.adm.br)
|
||||
http://rafael.adm.br/css_browser_selector
|
||||
License: http://creativecommons.org/licenses/by/2.5/
|
||||
Contributors: http://rafael.adm.br/css_browser_selector#contributors
|
||||
*/
|
||||
function css_browser_selector(u){var ua=u.toLowerCase(),is=function(t){return ua.indexOf(t)>-1},g='gecko',w='webkit',s='safari',o='opera',m='mobile',h=document.documentElement,b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?g+' ff2':is('firefox/3.5')?g+' ff3 ff3_5':is('firefox/3.6')?g+' ff3 ff3_6':is('firefox/3')?g+' ff3':is('gecko/')?g:is('opera')?o+(/version\/(\d+)/.test(ua)?' '+o+RegExp.$1:(/opera(\s|\/)(\d+)/.test(ua)?' '+o+RegExp.$2:'')):is('konqueror')?'konqueror':is('blackberry')?m+' blackberry':is('android')?m+' android':is('chrome')?w+' chrome':is('iron')?w+' iron':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.$1:''):is('mozilla/')?g:'',is('j2me')?m+' j2me':is('iphone')?m+' iphone':is('ipod')?m+' ipod':is('ipad')?m+' ipad':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win'+(is('windows nt 6.0')?' vista':''):is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js']; c = b.join(' '); h.className += ' '+c; return c;}; css_browser_selector(navigator.userAgent);
|
||||
3535
modules/backend/assets/vendor/dropzone/dropzone.js
vendored
Normal file
3535
modules/backend/assets/vendor/dropzone/dropzone.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
13789
modules/backend/assets/vendor/emmet/emmet.js
vendored
Normal file
13789
modules/backend/assets/vendor/emmet/emmet.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
22
modules/backend/assets/vendor/jcrop/MIT-LICENSE.txt
vendored
Executable file
22
modules/backend/assets/vendor/jcrop/MIT-LICENSE.txt
vendored
Executable file
@@ -0,0 +1,22 @@
|
||||
Copyright (c) 2011 Tapmodo Interactive LLC,
|
||||
http://github.com/tapmodo/Jcrop
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
66
modules/backend/assets/vendor/jcrop/README.md
vendored
Executable file
66
modules/backend/assets/vendor/jcrop/README.md
vendored
Executable file
@@ -0,0 +1,66 @@
|
||||
Jcrop Image Cropping Plugin
|
||||
===========================
|
||||
|
||||
Jcrop is the quick and easy way to add image cropping functionality to
|
||||
your web application. It combines the ease-of-use of a typical jQuery
|
||||
plugin with a powerful cross-platform DHTML cropping engine that is
|
||||
faithful to familiar desktop graphics applications.
|
||||
|
||||
Cross-platform Compatibility
|
||||
----------------------------
|
||||
|
||||
* Firefox 2+
|
||||
* Safari 3+
|
||||
* Opera 9.5+
|
||||
* Google Chrome 0.2+
|
||||
* Internet Explorer 6+
|
||||
|
||||
Feature Overview
|
||||
----------------
|
||||
|
||||
* Attaches unobtrusively to any image
|
||||
* Supports aspect ratio locking
|
||||
* Supports minSize/maxSize setting
|
||||
* Callbacks for selection done, or while moving
|
||||
* Keyboard support for nudging selection
|
||||
* API features to create interactivity, including animation
|
||||
* Support for CSS styling
|
||||
* Experimental touch-screen support (iOS, Android, etc)
|
||||
|
||||
Contributors
|
||||
============
|
||||
|
||||
**Special thanks to the following contributors:**
|
||||
|
||||
* [Bruno Agutoli](mailto:brunotla1@gmail.com)
|
||||
* dhorrigan
|
||||
* Phil-B
|
||||
* jaymecd
|
||||
* all others who have committed their time and effort to help improve Jcrop
|
||||
|
||||
MIT License
|
||||
===========
|
||||
|
||||
**Jcrop is free software under MIT License.**
|
||||
|
||||
#### Copyright (c) 2008-2012 Tapmodo Interactive LLC,<br />http://github.com/tapmodo/Jcrop
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
1
modules/backend/assets/vendor/jcrop/WINTER-README.md
vendored
Normal file
1
modules/backend/assets/vendor/jcrop/WINTER-README.md
vendored
Normal file
@@ -0,0 +1 @@
|
||||
There's a hack in line 1090 in jquery.Jcrop.js. The hack prevents DOM element leakage through the event that is not unbound in the destroy() method. --ab Apr 08 2015
|
||||
BIN
modules/backend/assets/vendor/jcrop/css/Jcrop.gif
vendored
Executable file
BIN
modules/backend/assets/vendor/jcrop/css/Jcrop.gif
vendored
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 329 B |
29
modules/backend/assets/vendor/jcrop/css/jquery.Jcrop.min.css
vendored
Executable file
29
modules/backend/assets/vendor/jcrop/css/jquery.Jcrop.min.css
vendored
Executable file
@@ -0,0 +1,29 @@
|
||||
/* jquery.Jcrop.min.css v0.9.12 (build:20130126) */
|
||||
.jcrop-holder{direction:ltr;text-align:left;}
|
||||
.jcrop-vline,.jcrop-hline{background:#FFF url(Jcrop.gif);font-size:0;position:absolute;}
|
||||
.jcrop-vline{height:100%;width:1px!important;}
|
||||
.jcrop-vline.right{right:0;}
|
||||
.jcrop-hline{height:1px!important;width:100%;}
|
||||
.jcrop-hline.bottom{bottom:0;}
|
||||
.jcrop-tracker{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;height:100%;width:100%;}
|
||||
.jcrop-handle{background-color:#333;border:1px #EEE solid;font-size:1px;height:7px;width:7px;}
|
||||
.jcrop-handle.ord-n{left:50%;margin-left:-4px;margin-top:-4px;top:0;}
|
||||
.jcrop-handle.ord-s{bottom:0;left:50%;margin-bottom:-4px;margin-left:-4px;}
|
||||
.jcrop-handle.ord-e{margin-right:-4px;margin-top:-4px;right:0;top:50%;}
|
||||
.jcrop-handle.ord-w{left:0;margin-left:-4px;margin-top:-4px;top:50%;}
|
||||
.jcrop-handle.ord-nw{left:0;margin-left:-4px;margin-top:-4px;top:0;}
|
||||
.jcrop-handle.ord-ne{margin-right:-4px;margin-top:-4px;right:0;top:0;}
|
||||
.jcrop-handle.ord-se{bottom:0;margin-bottom:-4px;margin-right:-4px;right:0;}
|
||||
.jcrop-handle.ord-sw{bottom:0;left:0;margin-bottom:-4px;margin-left:-4px;}
|
||||
.jcrop-dragbar.ord-n,.jcrop-dragbar.ord-s{height:7px;width:100%;}
|
||||
.jcrop-dragbar.ord-e,.jcrop-dragbar.ord-w{height:100%;width:7px;}
|
||||
.jcrop-dragbar.ord-n{margin-top:-4px;}
|
||||
.jcrop-dragbar.ord-s{bottom:0;margin-bottom:-4px;}
|
||||
.jcrop-dragbar.ord-e{margin-right:-4px;right:0;}
|
||||
.jcrop-dragbar.ord-w{margin-left:-4px;}
|
||||
.jcrop-light .jcrop-vline,.jcrop-light .jcrop-hline{background:#FFF;filter:alpha(opacity=70)!important;opacity:.70!important;}
|
||||
.jcrop-light .jcrop-handle{-moz-border-radius:3px;-webkit-border-radius:3px;background-color:#000;border-color:#FFF;border-radius:3px;}
|
||||
.jcrop-dark .jcrop-vline,.jcrop-dark .jcrop-hline{background:#000;filter:alpha(opacity=70)!important;opacity:.7!important;}
|
||||
.jcrop-dark .jcrop-handle{-moz-border-radius:3px;-webkit-border-radius:3px;background-color:#FFF;border-color:#000;border-radius:3px;}
|
||||
.solid-line .jcrop-vline,.solid-line .jcrop-hline{background:#FFF;}
|
||||
.jcrop-holder img,img.jcrop-preview{max-width:none;}
|
||||
1699
modules/backend/assets/vendor/jcrop/js/jquery.Jcrop.js
vendored
Executable file
1699
modules/backend/assets/vendor/jcrop/js/jquery.Jcrop.js
vendored
Executable file
File diff suppressed because it is too large
Load Diff
255
modules/backend/assets/vendor/sweet-alert/sweet-alert-animations.less
vendored
Normal file
255
modules/backend/assets/vendor/sweet-alert/sweet-alert-animations.less
vendored
Normal file
@@ -0,0 +1,255 @@
|
||||
@-webkit-keyframes showSweetAlert {
|
||||
0% {
|
||||
transform: scale(0.7);
|
||||
-webkit-transform: scale(0.7); }
|
||||
45% {
|
||||
transform: scale(1.05);
|
||||
-webkit-transform: scale(1.05); }
|
||||
80% {
|
||||
transform: scale(0.95);
|
||||
-webkit-tranform: scale(0.95); }
|
||||
100% {
|
||||
transform: scale(1);
|
||||
-webkit-transform: scale(1); } }
|
||||
@keyframes showSweetAlert {
|
||||
0% {
|
||||
transform: scale(0.7);
|
||||
-webkit-transform: scale(0.7); }
|
||||
45% {
|
||||
transform: scale(1.05);
|
||||
-webkit-transform: scale(1.05); }
|
||||
80% {
|
||||
transform: scale(0.95);
|
||||
-webkit-tranform: scale(0.95); }
|
||||
100% {
|
||||
transform: scale(1);
|
||||
-webkit-transform: scale(1); } }
|
||||
@-webkit-keyframes hideSweetAlert {
|
||||
0% {
|
||||
transform: scale(1);
|
||||
-webkit-transform: scale(1); }
|
||||
100% {
|
||||
transform: scale(0.5);
|
||||
-webkit-transform: scale(0.5); } }
|
||||
@keyframes hideSweetAlert {
|
||||
0% {
|
||||
transform: scale(1);
|
||||
-webkit-transform: scale(1); }
|
||||
100% {
|
||||
transform: scale(0.5);
|
||||
-webkit-transform: scale(0.5); } }
|
||||
.showSweetAlert {
|
||||
-webkit-animation: showSweetAlert 0.3s;
|
||||
animation: showSweetAlert 0.3s; }
|
||||
|
||||
.hideSweetAlert {
|
||||
-webkit-animation: hideSweetAlert 0.2s;
|
||||
animation: hideSweetAlert 0.2s; }
|
||||
|
||||
@-webkit-keyframes animateSuccessTip {
|
||||
0% {
|
||||
width: 0;
|
||||
left: 1px;
|
||||
top: 19px; }
|
||||
54% {
|
||||
width: 0;
|
||||
left: 1px;
|
||||
top: 19px; }
|
||||
70% {
|
||||
width: 50px;
|
||||
left: -8px;
|
||||
top: 37px; }
|
||||
84% {
|
||||
width: 17px;
|
||||
left: 21px;
|
||||
top: 48px; }
|
||||
100% {
|
||||
width: 25px;
|
||||
left: 14px;
|
||||
top: 45px; } }
|
||||
@keyframes animateSuccessTip {
|
||||
0% {
|
||||
width: 0;
|
||||
left: 1px;
|
||||
top: 19px; }
|
||||
54% {
|
||||
width: 0;
|
||||
left: 1px;
|
||||
top: 19px; }
|
||||
70% {
|
||||
width: 50px;
|
||||
left: -8px;
|
||||
top: 37px; }
|
||||
84% {
|
||||
width: 17px;
|
||||
left: 21px;
|
||||
top: 48px; }
|
||||
100% {
|
||||
width: 25px;
|
||||
left: 14px;
|
||||
top: 45px; } }
|
||||
@-webkit-keyframes animateSuccessLong {
|
||||
0% {
|
||||
width: 0;
|
||||
right: 46px;
|
||||
top: 54px; }
|
||||
65% {
|
||||
width: 0;
|
||||
right: 46px;
|
||||
top: 54px; }
|
||||
84% {
|
||||
width: 55px;
|
||||
right: 0px;
|
||||
top: 35px; }
|
||||
100% {
|
||||
width: 47px;
|
||||
right: 8px;
|
||||
top: 38px; } }
|
||||
@keyframes animateSuccessLong {
|
||||
0% {
|
||||
width: 0;
|
||||
right: 46px;
|
||||
top: 54px; }
|
||||
65% {
|
||||
width: 0;
|
||||
right: 46px;
|
||||
top: 54px; }
|
||||
84% {
|
||||
width: 55px;
|
||||
right: 0px;
|
||||
top: 35px; }
|
||||
100% {
|
||||
width: 47px;
|
||||
right: 8px;
|
||||
top: 38px; } }
|
||||
@-webkit-keyframes rotatePlaceholder {
|
||||
0% {
|
||||
transform: rotate(-45deg);
|
||||
-webkit-transform: rotate(-45deg); }
|
||||
5% {
|
||||
transform: rotate(-45deg);
|
||||
-webkit-transform: rotate(-45deg); }
|
||||
12% {
|
||||
transform: rotate(-405deg);
|
||||
-webkit-transform: rotate(-405deg); }
|
||||
100% {
|
||||
transform: rotate(-405deg);
|
||||
-webkit-transform: rotate(-405deg); } }
|
||||
@keyframes rotatePlaceholder {
|
||||
0% {
|
||||
transform: rotate(-45deg);
|
||||
-webkit-transform: rotate(-45deg); }
|
||||
5% {
|
||||
transform: rotate(-45deg);
|
||||
-webkit-transform: rotate(-45deg); }
|
||||
12% {
|
||||
transform: rotate(-405deg);
|
||||
-webkit-transform: rotate(-405deg); }
|
||||
100% {
|
||||
transform: rotate(-405deg);
|
||||
-webkit-transform: rotate(-405deg); } }
|
||||
.animateSuccessTip {
|
||||
-webkit-animation: animateSuccessTip 0.75s;
|
||||
animation: animateSuccessTip 0.75s; }
|
||||
|
||||
.animateSuccessLong {
|
||||
-webkit-animation: animateSuccessLong 0.75s;
|
||||
animation: animateSuccessLong 0.75s; }
|
||||
|
||||
.icon.success.animate::after {
|
||||
-webkit-animation: rotatePlaceholder 4.25s ease-in;
|
||||
animation: rotatePlaceholder 4.25s ease-in; }
|
||||
|
||||
@-webkit-keyframes animateErrorIcon {
|
||||
0% {
|
||||
transform: rotateX(100deg);
|
||||
-webkit-transform: rotateX(100deg);
|
||||
opacity: 0; }
|
||||
100% {
|
||||
transform: rotateX(0deg);
|
||||
-webkit-transform: rotateX(0deg);
|
||||
opacity: 1; } }
|
||||
@keyframes animateErrorIcon {
|
||||
0% {
|
||||
transform: rotateX(100deg);
|
||||
-webkit-transform: rotateX(100deg);
|
||||
opacity: 0; }
|
||||
100% {
|
||||
transform: rotateX(0deg);
|
||||
-webkit-transform: rotateX(0deg);
|
||||
opacity: 1; } }
|
||||
.animateErrorIcon {
|
||||
-webkit-animation: animateErrorIcon 0.5s;
|
||||
animation: animateErrorIcon 0.5s; }
|
||||
|
||||
@-webkit-keyframes animateXMark {
|
||||
0% {
|
||||
transform: scale(0.4);
|
||||
-webkit-transform: scale(0.4);
|
||||
margin-top: 26px;
|
||||
opacity: 0; }
|
||||
50% {
|
||||
transform: scale(0.4);
|
||||
-webkit-transform: scale(0.4);
|
||||
margin-top: 26px;
|
||||
opacity: 0; }
|
||||
80% {
|
||||
transform: scale(1.15);
|
||||
-webkit-transform: scale(1.15);
|
||||
margin-top: -6px; }
|
||||
100% {
|
||||
transform: scale(1);
|
||||
-webkit-transform: scale(1);
|
||||
margin-top: 0;
|
||||
opacity: 1; } }
|
||||
@keyframes animateXMark {
|
||||
0% {
|
||||
transform: scale(0.4);
|
||||
-webkit-transform: scale(0.4);
|
||||
margin-top: 26px;
|
||||
opacity: 0; }
|
||||
50% {
|
||||
transform: scale(0.4);
|
||||
-webkit-transform: scale(0.4);
|
||||
margin-top: 26px;
|
||||
opacity: 0; }
|
||||
80% {
|
||||
transform: scale(1.15);
|
||||
-webkit-transform: scale(1.15);
|
||||
margin-top: -6px; }
|
||||
100% {
|
||||
transform: scale(1);
|
||||
-webkit-transform: scale(1);
|
||||
margin-top: 0;
|
||||
opacity: 1; } }
|
||||
.animateXMark {
|
||||
-webkit-animation: animateXMark 0.5s;
|
||||
animation: animateXMark 0.5s; }
|
||||
|
||||
@-webkit-keyframes pulseWarning {
|
||||
0% {
|
||||
border-color: #F8D486; }
|
||||
100% {
|
||||
border-color: #F8BB86; } }
|
||||
@keyframes pulseWarning {
|
||||
0% {
|
||||
border-color: #F8D486; }
|
||||
100% {
|
||||
border-color: #F8BB86; } }
|
||||
.pulseWarning {
|
||||
-webkit-animation: pulseWarning 0.75s infinite alternate;
|
||||
animation: pulseWarning 0.75s infinite alternate; }
|
||||
|
||||
@-webkit-keyframes pulseWarningIns {
|
||||
0% {
|
||||
background-color: #F8D486; }
|
||||
100% {
|
||||
background-color: #F8BB86; } }
|
||||
@keyframes pulseWarningIns {
|
||||
0% {
|
||||
background-color: #F8D486; }
|
||||
100% {
|
||||
background-color: #F8BB86; } }
|
||||
.pulseWarningIns {
|
||||
-webkit-animation: pulseWarningIns 0.75s infinite alternate;
|
||||
animation: pulseWarningIns 0.75s infinite alternate; }
|
||||
7
modules/backend/assets/vendor/sweet-alert/sweet-alert-combine.less
vendored
Normal file
7
modules/backend/assets/vendor/sweet-alert/sweet-alert-combine.less
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
/*
|
||||
SweetAlert for Bootstrap
|
||||
https://github.com/lipis/bootstrap-sweetalert
|
||||
*/
|
||||
@import "../../../../system/assets/vendor/bootstrap/variables";
|
||||
@import "../../../../system/assets/vendor/bootstrap/mixins";
|
||||
@import "sweet-alert";
|
||||
564
modules/backend/assets/vendor/sweet-alert/sweet-alert.css
vendored
Normal file
564
modules/backend/assets/vendor/sweet-alert/sweet-alert.css
vendored
Normal file
@@ -0,0 +1,564 @@
|
||||
@-webkit-keyframes showSweetAlert {
|
||||
0% {
|
||||
transform: scale(0.7);
|
||||
-webkit-transform: scale(0.7);
|
||||
}
|
||||
45% {
|
||||
transform: scale(1.05);
|
||||
-webkit-transform: scale(1.05);
|
||||
}
|
||||
80% {
|
||||
transform: scale(0.95);
|
||||
-webkit-tranform: scale(0.95);
|
||||
}
|
||||
100% {
|
||||
transform: scale(1);
|
||||
-webkit-transform: scale(1);
|
||||
}
|
||||
}
|
||||
@keyframes showSweetAlert {
|
||||
0% {
|
||||
transform: scale(0.7);
|
||||
-webkit-transform: scale(0.7);
|
||||
}
|
||||
45% {
|
||||
transform: scale(1.05);
|
||||
-webkit-transform: scale(1.05);
|
||||
}
|
||||
80% {
|
||||
transform: scale(0.95);
|
||||
-webkit-tranform: scale(0.95);
|
||||
}
|
||||
100% {
|
||||
transform: scale(1);
|
||||
-webkit-transform: scale(1);
|
||||
}
|
||||
}
|
||||
@-webkit-keyframes hideSweetAlert {
|
||||
0% {
|
||||
transform: scale(1);
|
||||
-webkit-transform: scale(1);
|
||||
}
|
||||
100% {
|
||||
transform: scale(0.5);
|
||||
-webkit-transform: scale(0.5);
|
||||
}
|
||||
}
|
||||
@keyframes hideSweetAlert {
|
||||
0% {
|
||||
transform: scale(1);
|
||||
-webkit-transform: scale(1);
|
||||
}
|
||||
100% {
|
||||
transform: scale(0.5);
|
||||
-webkit-transform: scale(0.5);
|
||||
}
|
||||
}
|
||||
.showSweetAlert {
|
||||
-webkit-animation: showSweetAlert 0.3s;
|
||||
animation: showSweetAlert 0.3s;
|
||||
}
|
||||
.hideSweetAlert {
|
||||
-webkit-animation: hideSweetAlert 0.2s;
|
||||
animation: hideSweetAlert 0.2s;
|
||||
}
|
||||
@-webkit-keyframes animateSuccessTip {
|
||||
0% {
|
||||
width: 0;
|
||||
left: 1px;
|
||||
top: 19px;
|
||||
}
|
||||
54% {
|
||||
width: 0;
|
||||
left: 1px;
|
||||
top: 19px;
|
||||
}
|
||||
70% {
|
||||
width: 50px;
|
||||
left: -8px;
|
||||
top: 37px;
|
||||
}
|
||||
84% {
|
||||
width: 17px;
|
||||
left: 21px;
|
||||
top: 48px;
|
||||
}
|
||||
100% {
|
||||
width: 25px;
|
||||
left: 14px;
|
||||
top: 45px;
|
||||
}
|
||||
}
|
||||
@keyframes animateSuccessTip {
|
||||
0% {
|
||||
width: 0;
|
||||
left: 1px;
|
||||
top: 19px;
|
||||
}
|
||||
54% {
|
||||
width: 0;
|
||||
left: 1px;
|
||||
top: 19px;
|
||||
}
|
||||
70% {
|
||||
width: 50px;
|
||||
left: -8px;
|
||||
top: 37px;
|
||||
}
|
||||
84% {
|
||||
width: 17px;
|
||||
left: 21px;
|
||||
top: 48px;
|
||||
}
|
||||
100% {
|
||||
width: 25px;
|
||||
left: 14px;
|
||||
top: 45px;
|
||||
}
|
||||
}
|
||||
@-webkit-keyframes animateSuccessLong {
|
||||
0% {
|
||||
width: 0;
|
||||
right: 46px;
|
||||
top: 54px;
|
||||
}
|
||||
65% {
|
||||
width: 0;
|
||||
right: 46px;
|
||||
top: 54px;
|
||||
}
|
||||
84% {
|
||||
width: 55px;
|
||||
right: 0px;
|
||||
top: 35px;
|
||||
}
|
||||
100% {
|
||||
width: 47px;
|
||||
right: 8px;
|
||||
top: 38px;
|
||||
}
|
||||
}
|
||||
@keyframes animateSuccessLong {
|
||||
0% {
|
||||
width: 0;
|
||||
right: 46px;
|
||||
top: 54px;
|
||||
}
|
||||
65% {
|
||||
width: 0;
|
||||
right: 46px;
|
||||
top: 54px;
|
||||
}
|
||||
84% {
|
||||
width: 55px;
|
||||
right: 0px;
|
||||
top: 35px;
|
||||
}
|
||||
100% {
|
||||
width: 47px;
|
||||
right: 8px;
|
||||
top: 38px;
|
||||
}
|
||||
}
|
||||
@-webkit-keyframes rotatePlaceholder {
|
||||
0% {
|
||||
transform: rotate(-45deg);
|
||||
-webkit-transform: rotate(-45deg);
|
||||
}
|
||||
5% {
|
||||
transform: rotate(-45deg);
|
||||
-webkit-transform: rotate(-45deg);
|
||||
}
|
||||
12% {
|
||||
transform: rotate(-405deg);
|
||||
-webkit-transform: rotate(-405deg);
|
||||
}
|
||||
100% {
|
||||
transform: rotate(-405deg);
|
||||
-webkit-transform: rotate(-405deg);
|
||||
}
|
||||
}
|
||||
@keyframes rotatePlaceholder {
|
||||
0% {
|
||||
transform: rotate(-45deg);
|
||||
-webkit-transform: rotate(-45deg);
|
||||
}
|
||||
5% {
|
||||
transform: rotate(-45deg);
|
||||
-webkit-transform: rotate(-45deg);
|
||||
}
|
||||
12% {
|
||||
transform: rotate(-405deg);
|
||||
-webkit-transform: rotate(-405deg);
|
||||
}
|
||||
100% {
|
||||
transform: rotate(-405deg);
|
||||
-webkit-transform: rotate(-405deg);
|
||||
}
|
||||
}
|
||||
.animateSuccessTip {
|
||||
-webkit-animation: animateSuccessTip 0.75s;
|
||||
animation: animateSuccessTip 0.75s;
|
||||
}
|
||||
.animateSuccessLong {
|
||||
-webkit-animation: animateSuccessLong 0.75s;
|
||||
animation: animateSuccessLong 0.75s;
|
||||
}
|
||||
.icon.success.animate::after {
|
||||
-webkit-animation: rotatePlaceholder 4.25s ease-in;
|
||||
animation: rotatePlaceholder 4.25s ease-in;
|
||||
}
|
||||
@-webkit-keyframes animateErrorIcon {
|
||||
0% {
|
||||
transform: rotateX(100deg);
|
||||
-webkit-transform: rotateX(100deg);
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
transform: rotateX(0deg);
|
||||
-webkit-transform: rotateX(0deg);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
@keyframes animateErrorIcon {
|
||||
0% {
|
||||
transform: rotateX(100deg);
|
||||
-webkit-transform: rotateX(100deg);
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
transform: rotateX(0deg);
|
||||
-webkit-transform: rotateX(0deg);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
.animateErrorIcon {
|
||||
-webkit-animation: animateErrorIcon 0.5s;
|
||||
animation: animateErrorIcon 0.5s;
|
||||
}
|
||||
@-webkit-keyframes animateXMark {
|
||||
0% {
|
||||
transform: scale(0.4);
|
||||
-webkit-transform: scale(0.4);
|
||||
margin-top: 26px;
|
||||
opacity: 0;
|
||||
}
|
||||
50% {
|
||||
transform: scale(0.4);
|
||||
-webkit-transform: scale(0.4);
|
||||
margin-top: 26px;
|
||||
opacity: 0;
|
||||
}
|
||||
80% {
|
||||
transform: scale(1.15);
|
||||
-webkit-transform: scale(1.15);
|
||||
margin-top: -6px;
|
||||
}
|
||||
100% {
|
||||
transform: scale(1);
|
||||
-webkit-transform: scale(1);
|
||||
margin-top: 0;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
@keyframes animateXMark {
|
||||
0% {
|
||||
transform: scale(0.4);
|
||||
-webkit-transform: scale(0.4);
|
||||
margin-top: 26px;
|
||||
opacity: 0;
|
||||
}
|
||||
50% {
|
||||
transform: scale(0.4);
|
||||
-webkit-transform: scale(0.4);
|
||||
margin-top: 26px;
|
||||
opacity: 0;
|
||||
}
|
||||
80% {
|
||||
transform: scale(1.15);
|
||||
-webkit-transform: scale(1.15);
|
||||
margin-top: -6px;
|
||||
}
|
||||
100% {
|
||||
transform: scale(1);
|
||||
-webkit-transform: scale(1);
|
||||
margin-top: 0;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
.animateXMark {
|
||||
-webkit-animation: animateXMark 0.5s;
|
||||
animation: animateXMark 0.5s;
|
||||
}
|
||||
@-webkit-keyframes pulseWarning {
|
||||
0% {
|
||||
border-color: #F8D486;
|
||||
}
|
||||
100% {
|
||||
border-color: #F8BB86;
|
||||
}
|
||||
}
|
||||
@keyframes pulseWarning {
|
||||
0% {
|
||||
border-color: #F8D486;
|
||||
}
|
||||
100% {
|
||||
border-color: #F8BB86;
|
||||
}
|
||||
}
|
||||
.pulseWarning {
|
||||
-webkit-animation: pulseWarning 0.75s infinite alternate;
|
||||
animation: pulseWarning 0.75s infinite alternate;
|
||||
}
|
||||
@-webkit-keyframes pulseWarningIns {
|
||||
0% {
|
||||
background-color: #F8D486;
|
||||
}
|
||||
100% {
|
||||
background-color: #F8BB86;
|
||||
}
|
||||
}
|
||||
@keyframes pulseWarningIns {
|
||||
0% {
|
||||
background-color: #F8D486;
|
||||
}
|
||||
100% {
|
||||
background-color: #F8BB86;
|
||||
}
|
||||
}
|
||||
.pulseWarningIns {
|
||||
-webkit-animation: pulseWarningIns 0.75s infinite alternate;
|
||||
animation: pulseWarningIns 0.75s infinite alternate;
|
||||
}
|
||||
.sweet-overlay {
|
||||
background-color: rgba(0, 0, 0, 0.4);
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
display: none;
|
||||
z-index: 1040;
|
||||
}
|
||||
.sweet-alert {
|
||||
background-color: #ffffff;
|
||||
width: 478px;
|
||||
padding: 17px;
|
||||
border-radius: 5px;
|
||||
text-align: center;
|
||||
position: fixed;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
margin-left: -256px;
|
||||
margin-top: -200px;
|
||||
overflow: hidden;
|
||||
display: none;
|
||||
z-index: 2000;
|
||||
}
|
||||
@media all and (max-width: 767px) {
|
||||
.sweet-alert {
|
||||
width: auto;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
left: 15px;
|
||||
right: 15px;
|
||||
}
|
||||
}
|
||||
.sweet-alert .icon {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
border: 4px solid gray;
|
||||
border-radius: 50%;
|
||||
margin: 20px auto;
|
||||
position: relative;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
.sweet-alert .icon.error {
|
||||
border-color: #d43f3a;
|
||||
}
|
||||
.sweet-alert .icon.error .x-mark {
|
||||
position: relative;
|
||||
display: block;
|
||||
}
|
||||
.sweet-alert .icon.error .line {
|
||||
position: absolute;
|
||||
height: 5px;
|
||||
width: 47px;
|
||||
background-color: #d9534f;
|
||||
display: block;
|
||||
top: 37px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
.sweet-alert .icon.error .line.left {
|
||||
-webkit-transform: rotate(45deg);
|
||||
transform: rotate(45deg);
|
||||
left: 17px;
|
||||
}
|
||||
.sweet-alert .icon.error .line.right {
|
||||
-webkit-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg);
|
||||
right: 16px;
|
||||
}
|
||||
.sweet-alert .icon.warning {
|
||||
border-color: #eea236;
|
||||
}
|
||||
.sweet-alert .icon.warning .body {
|
||||
position: absolute;
|
||||
width: 5px;
|
||||
height: 47px;
|
||||
left: 50%;
|
||||
top: 10px;
|
||||
border-radius: 2px;
|
||||
margin-left: -2px;
|
||||
background-color: #f0ad4e;
|
||||
}
|
||||
.sweet-alert .icon.warning .dot {
|
||||
position: absolute;
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: 50%;
|
||||
margin-left: -3px;
|
||||
left: 50%;
|
||||
bottom: 10px;
|
||||
background-color: #f0ad4e;
|
||||
}
|
||||
.sweet-alert .icon.info {
|
||||
border-color: #46b8da;
|
||||
}
|
||||
.sweet-alert .icon.info::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 5px;
|
||||
height: 29px;
|
||||
left: 50%;
|
||||
bottom: 17px;
|
||||
border-radius: 2px;
|
||||
margin-left: -2px;
|
||||
background-color: #5bc0de;
|
||||
}
|
||||
.sweet-alert .icon.info::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: 50%;
|
||||
margin-left: -3px;
|
||||
top: 19px;
|
||||
background-color: #5bc0de;
|
||||
}
|
||||
.sweet-alert .icon.success {
|
||||
border-color: #4cae4c;
|
||||
}
|
||||
.sweet-alert .icon.success::before,
|
||||
.sweet-alert .icon.success::after {
|
||||
content: '';
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
width: 60px;
|
||||
height: 120px;
|
||||
background: white;
|
||||
-webkit-transform: rotate(45deg);
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
.sweet-alert .icon.success::before {
|
||||
border-radius: 120px 0 0 120px;
|
||||
top: -7px;
|
||||
left: -33px;
|
||||
-webkit-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg);
|
||||
-webkit-transform-origin: 60px 60px;
|
||||
transform-origin: 60px 60px;
|
||||
}
|
||||
.sweet-alert .icon.success::after {
|
||||
border-radius: 0 120px 120px 0;
|
||||
top: -11px;
|
||||
left: 30px;
|
||||
-webkit-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg);
|
||||
-webkit-transform-origin: 0px 60px;
|
||||
transform-origin: 0px 60px;
|
||||
}
|
||||
.sweet-alert .icon.success .placeholder {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
border: 4px solid rgba(92, 184, 92, 0.2);
|
||||
border-radius: 50%;
|
||||
box-sizing: content-box;
|
||||
position: absolute;
|
||||
left: -4px;
|
||||
top: -4px;
|
||||
z-index: 2;
|
||||
}
|
||||
.sweet-alert .icon.success .fix {
|
||||
width: 5px;
|
||||
height: 90px;
|
||||
background-color: #ffffff;
|
||||
position: absolute;
|
||||
left: 28px;
|
||||
top: 8px;
|
||||
z-index: 1;
|
||||
-webkit-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
.sweet-alert .icon.success .line {
|
||||
height: 5px;
|
||||
background-color: #5cb85c;
|
||||
display: block;
|
||||
border-radius: 2px;
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
}
|
||||
.sweet-alert .icon.success .line.tip {
|
||||
width: 25px;
|
||||
left: 14px;
|
||||
top: 46px;
|
||||
-webkit-transform: rotate(45deg);
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
.sweet-alert .icon.success .line.long {
|
||||
width: 47px;
|
||||
right: 8px;
|
||||
top: 38px;
|
||||
-webkit-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
.sweet-alert .icon.custom {
|
||||
background-size: contain;
|
||||
border-radius: 0;
|
||||
border: none;
|
||||
background-position: center center;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
.sweet-alert .btn-default:focus {
|
||||
border-color: #cccccc;
|
||||
outline: 0;
|
||||
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(204, 204, 204, 0.6);
|
||||
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(204, 204, 204, 0.6);
|
||||
}
|
||||
.sweet-alert .btn-success:focus {
|
||||
border-color: #4cae4c;
|
||||
outline: 0;
|
||||
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(76, 174, 76, 0.6);
|
||||
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(76, 174, 76, 0.6);
|
||||
}
|
||||
.sweet-alert .btn-info:focus {
|
||||
border-color: #46b8da;
|
||||
outline: 0;
|
||||
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(70, 184, 218, 0.6);
|
||||
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(70, 184, 218, 0.6);
|
||||
}
|
||||
.sweet-alert .btn-danger:focus {
|
||||
border-color: #d43f3a;
|
||||
outline: 0;
|
||||
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(212, 63, 58, 0.6);
|
||||
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(212, 63, 58, 0.6);
|
||||
}
|
||||
.sweet-alert .btn-warning:focus {
|
||||
border-color: #eea236;
|
||||
outline: 0;
|
||||
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(238, 162, 54, 0.6);
|
||||
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(238, 162, 54, 0.6);
|
||||
}
|
||||
.sweet-alert button::-moz-focus-inner {
|
||||
border: 0;
|
||||
}
|
||||
39
modules/backend/assets/vendor/sweet-alert/sweet-alert.html
vendored
Normal file
39
modules/backend/assets/vendor/sweet-alert/sweet-alert.html
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
<!-- Note: this file is only intended for development use! -->
|
||||
|
||||
<div class="sweet-overlay"></div>
|
||||
|
||||
|
||||
<!-- SweetAlert box -->
|
||||
<div class="sweet-alert">
|
||||
|
||||
<div class="icon error">
|
||||
<span class="x-mark">
|
||||
<span class="line left"></span>
|
||||
<span class="line right"></span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="icon warning">
|
||||
<span class="body"></span>
|
||||
<span class="dot"></span>
|
||||
</div>
|
||||
|
||||
<div class="icon info"></div>
|
||||
|
||||
<div class="icon success">
|
||||
<span class="line tip"></span>
|
||||
<span class="line long"></span>
|
||||
<div class="placeholder"></div>
|
||||
<div class="fix"></div>
|
||||
</div>
|
||||
|
||||
<div class="icon custom"></div>
|
||||
|
||||
|
||||
<h2>Title</h2>
|
||||
<p class="text-muted">Text</p>
|
||||
<p>
|
||||
<button class="cancel btn btn-lg btn-default">Cancel</button>
|
||||
<button class="confirm btn btn-lg">OK</button>
|
||||
</p>
|
||||
</div>
|
||||
751
modules/backend/assets/vendor/sweet-alert/sweet-alert.js
vendored
Normal file
751
modules/backend/assets/vendor/sweet-alert/sweet-alert.js
vendored
Normal file
@@ -0,0 +1,751 @@
|
||||
// SweetAlert
|
||||
// 2014 (c) - Tristan Edwards
|
||||
// github.com/t4t5/sweetalert
|
||||
(function(window, document) {
|
||||
|
||||
var modalClass = '.sweet-alert',
|
||||
overlayClass = '.sweet-overlay',
|
||||
alertTypes = ['error', 'warning', 'info', 'success'],
|
||||
defaultParams = {
|
||||
title: '',
|
||||
text: '',
|
||||
type: null,
|
||||
allowOutsideClick: false,
|
||||
showCancelButton: false,
|
||||
showConfirmButton: true,
|
||||
closeOnConfirm: true,
|
||||
closeOnCancel: true,
|
||||
confirmButtonText: 'OK',
|
||||
confirmButtonClass: 'btn-primary',
|
||||
cancelButtonText: 'Cancel',
|
||||
cancelButtonClass: 'btn-default',
|
||||
containerClass: '',
|
||||
titleClass: '',
|
||||
textClass: '',
|
||||
imageUrl: null,
|
||||
imageSize: null,
|
||||
timer: null
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
* Manipulate DOM
|
||||
*/
|
||||
|
||||
var getModal = function() {
|
||||
return document.querySelector(modalClass);
|
||||
},
|
||||
getOverlay = function() {
|
||||
return document.querySelector(overlayClass);
|
||||
},
|
||||
hasClass = function(elem, className) {
|
||||
return new RegExp(' ' + className + ' ').test(' ' + elem.className + ' ');
|
||||
},
|
||||
addClass = function(elem, className) {
|
||||
if (className && !hasClass(elem, className)) {
|
||||
elem.className += ' ' + className;
|
||||
}
|
||||
},
|
||||
removeClass = function(elem, className) {
|
||||
var newClass = ' ' + elem.className.replace(/[\t\r\n]/g, ' ') + ' ';
|
||||
if (hasClass(elem, className)) {
|
||||
while (newClass.indexOf(' ' + className + ' ') >= 0) {
|
||||
newClass = newClass.replace(' ' + className + ' ', ' ');
|
||||
}
|
||||
elem.className = newClass.replace(/^\s+|\s+$/g, '');
|
||||
}
|
||||
},
|
||||
escapeHtml = function(str) {
|
||||
var div = document.createElement('div');
|
||||
div.appendChild(document.createTextNode(str));
|
||||
return div.innerHTML;
|
||||
},
|
||||
_show = function(elem) {
|
||||
elem.style.opacity = '';
|
||||
elem.style.display = 'block';
|
||||
},
|
||||
show = function(elems) {
|
||||
if (elems && !elems.length) {
|
||||
return _show(elems);
|
||||
}
|
||||
for (var i = 0; i < elems.length; ++i) {
|
||||
_show(elems[i]);
|
||||
}
|
||||
},
|
||||
_hide = function(elem) {
|
||||
elem.style.opacity = '';
|
||||
elem.style.display = 'none';
|
||||
},
|
||||
hide = function(elems) {
|
||||
if (elems && !elems.length) {
|
||||
return _hide(elems);
|
||||
}
|
||||
for (var i = 0; i < elems.length; ++i) {
|
||||
_hide(elems[i]);
|
||||
}
|
||||
},
|
||||
isDescendant = function(parent, child) {
|
||||
var node = child.parentNode;
|
||||
while (node !== null) {
|
||||
if (node === parent) {
|
||||
return true;
|
||||
}
|
||||
node = node.parentNode;
|
||||
}
|
||||
return false;
|
||||
},
|
||||
getTopMargin = function(elem) {
|
||||
elem.style.left = '-9999px';
|
||||
elem.style.display = 'block';
|
||||
|
||||
var height = elem.clientHeight;
|
||||
var padding = parseInt(getComputedStyle(elem).getPropertyValue('padding'), 10);
|
||||
|
||||
elem.style.left = '';
|
||||
elem.style.display = 'none';
|
||||
return ('-' + parseInt(height / 2 + padding) + 'px');
|
||||
},
|
||||
fadeIn = function(elem, interval) {
|
||||
if(+elem.style.opacity < 1) {
|
||||
interval = interval || 16;
|
||||
elem.style.opacity = 0;
|
||||
elem.style.display = 'block';
|
||||
var last = +new Date();
|
||||
var tick = function() {
|
||||
elem.style.opacity = +elem.style.opacity + (new Date() - last) / 100;
|
||||
last = +new Date();
|
||||
|
||||
if (+elem.style.opacity < 1) {
|
||||
setTimeout(tick, interval);
|
||||
}
|
||||
};
|
||||
tick();
|
||||
}
|
||||
},
|
||||
fadeOut = function(elem, interval) {
|
||||
interval = interval || 16;
|
||||
elem.style.opacity = 1;
|
||||
var last = +new Date();
|
||||
var tick = function() {
|
||||
elem.style.opacity = +elem.style.opacity - (new Date() - last) / 100;
|
||||
last = +new Date();
|
||||
|
||||
if (+elem.style.opacity > 0) {
|
||||
setTimeout(tick, interval);
|
||||
} else {
|
||||
elem.style.display = 'none';
|
||||
}
|
||||
};
|
||||
tick();
|
||||
},
|
||||
fireClick = function(node) {
|
||||
// Taken from http://www.nonobtrusive.com/2011/11/29/programatically-fire-crossbrowser-click-event-with-javascript/
|
||||
// Then fixed for today's Chrome browser.
|
||||
if (MouseEvent) {
|
||||
// Up-to-date approach
|
||||
var mevt = new MouseEvent('click', {
|
||||
view: window,
|
||||
bubbles: false,
|
||||
cancelable: true
|
||||
});
|
||||
node.dispatchEvent(mevt);
|
||||
} else if ( document.createEvent ) {
|
||||
// Fallback
|
||||
var evt = document.createEvent('MouseEvents');
|
||||
evt.initEvent('click', false, false);
|
||||
node.dispatchEvent(evt);
|
||||
} else if( document.createEventObject ) {
|
||||
node.fireEvent('onclick') ;
|
||||
} else if (typeof node.onclick === 'function' ) {
|
||||
node.onclick();
|
||||
}
|
||||
},
|
||||
stopEventPropagation = function(e) {
|
||||
// In particular, make sure the space bar doesn't scroll the main window.
|
||||
if (typeof e.stopPropagation === 'function') {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
} else if (window.event && window.event.hasOwnProperty('cancelBubble')) {
|
||||
window.event.cancelBubble = true;
|
||||
}
|
||||
};
|
||||
|
||||
// Remember state in cases where opening and handling a modal will fiddle with it.
|
||||
var previousActiveElement,
|
||||
previousDocumentClick,
|
||||
previousWindowKeyDown,
|
||||
lastFocusedButton;
|
||||
|
||||
/*
|
||||
* Add modal + overlay to DOM
|
||||
*/
|
||||
|
||||
window.sweetAlertInitialize = function() {
|
||||
var sweetHTML = '<div class="sweet-overlay"></div><div class="sweet-alert"><div class="icon error"><span class="x-mark"><span class="line left"></span><span class="line right"></span></span></div><div class="icon warning"> <span class="body"></span> <span class="dot"></span> </div> <div class="icon info"></div> <div class="icon success"> <span class="line tip"></span> <span class="line long"></span> <div class="placeholder"></div> <div class="fix"></div> </div> <div class="icon custom"></div> <h2>Title</h2><p class="lead text-muted">Text</p><p><button class="cancel btn" tabIndex="2">Cancel</button> <button class="confirm btn" tabIndex="1">OK</button></p></div>',
|
||||
sweetWrap = document.createElement('div');
|
||||
|
||||
sweetWrap.innerHTML = sweetHTML;
|
||||
|
||||
// For readability: check sweet-alert.html
|
||||
document.body.appendChild(sweetWrap);
|
||||
|
||||
// For development use only!
|
||||
/*jQuery.ajax({
|
||||
url: '../lib/sweet-alert.html', // Change path depending on file location
|
||||
dataType: 'html'
|
||||
})
|
||||
.done(function(html) {
|
||||
jQuery('body').append(html);
|
||||
});*/
|
||||
}
|
||||
|
||||
/*
|
||||
* Global sweetAlert function
|
||||
*/
|
||||
|
||||
window.sweetAlert = window.swal = function() {
|
||||
if (arguments[0] === undefined) {
|
||||
window.console.error('sweetAlert expects at least 1 attribute!');
|
||||
return false;
|
||||
}
|
||||
|
||||
var params = extend({}, defaultParams);
|
||||
|
||||
switch (typeof arguments[0]) {
|
||||
|
||||
case 'string':
|
||||
params.title = arguments[0];
|
||||
params.text = arguments[1] || '';
|
||||
params.type = arguments[2] || '';
|
||||
|
||||
break;
|
||||
|
||||
case 'object':
|
||||
if (arguments[0].title === undefined) {
|
||||
window.console.error('Missing "title" argument!');
|
||||
return false;
|
||||
}
|
||||
|
||||
params.title = arguments[0].title;
|
||||
params.text = arguments[0].text || defaultParams.text;
|
||||
params.type = arguments[0].type || defaultParams.type;
|
||||
params.allowOutsideClick = arguments[0].allowOutsideClick || defaultParams.allowOutsideClick;
|
||||
params.showCancelButton = arguments[0].showCancelButton !== undefined ? arguments[0].showCancelButton : defaultParams.showCancelButton;
|
||||
params.showConfirmButton = arguments[0].showConfirmButton !== undefined ? arguments[0].showConfirmButton : defaultParams.showConfirmButton;
|
||||
params.closeOnConfirm = arguments[0].closeOnConfirm !== undefined ? arguments[0].closeOnConfirm : defaultParams.closeOnConfirm;
|
||||
params.closeOnCancel = arguments[0].closeOnCancel !== undefined ? arguments[0].closeOnCancel : defaultParams.closeOnCancel;
|
||||
params.timer = arguments[0].timer || defaultParams.timer;
|
||||
|
||||
// Show "Confirm" instead of "OK" if cancel button is visible
|
||||
params.confirmButtonText = (defaultParams.showCancelButton) ? 'Confirm' : defaultParams.confirmButtonText;
|
||||
params.confirmButtonText = arguments[0].confirmButtonText || defaultParams.confirmButtonText;
|
||||
params.confirmButtonClass = arguments[0].confirmButtonClass || (arguments[0].type ? 'btn-' + arguments[0].type : null) || defaultParams.confirmButtonClass;
|
||||
params.cancelButtonText = arguments[0].cancelButtonText || defaultParams.cancelButtonText;
|
||||
params.cancelButtonClass = arguments[0].cancelButtonClass || defaultParams.cancelButtonClass;
|
||||
params.containerClass = arguments[0].containerClass || defaultParams.containerClass;
|
||||
params.titleClass = arguments[0].titleClass || defaultParams.titleClass;
|
||||
params.textClass = arguments[0].textClass || defaultParams.textClass;
|
||||
params.imageUrl = arguments[0].imageUrl || defaultParams.imageUrl;
|
||||
params.imageSize = arguments[0].imageSize || defaultParams.imageSize;
|
||||
params.doneFunction = arguments[1] || null;
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
window.console.error('Unexpected type of argument! Expected "string" or "object", got ' + typeof arguments[0]);
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
setParameters(params);
|
||||
fixVerticalPosition();
|
||||
openModal();
|
||||
|
||||
|
||||
// Modal interactions
|
||||
var modal = getModal();
|
||||
|
||||
// Mouse interactions
|
||||
var onButtonEvent = function(e) {
|
||||
|
||||
var target = e.target || e.srcElement,
|
||||
targetedConfirm = (target.className.indexOf('confirm') > -1),
|
||||
modalIsVisible = hasClass(modal, 'visible'),
|
||||
doneFunctionExists = (params.doneFunction && modal.getAttribute('data-has-done-function') === 'true');
|
||||
|
||||
switch (e.type) {
|
||||
case ("click"):
|
||||
if (targetedConfirm && doneFunctionExists && modalIsVisible) { // Clicked "confirm"
|
||||
|
||||
params.doneFunction(true);
|
||||
|
||||
if (params.closeOnConfirm) {
|
||||
closeModal();
|
||||
}
|
||||
} else if (doneFunctionExists && modalIsVisible) { // Clicked "cancel"
|
||||
|
||||
// Check if callback function expects a parameter (to track cancel actions)
|
||||
var functionAsStr = String(params.doneFunction).replace(/\s/g, '');
|
||||
var functionHandlesCancel = functionAsStr.substring(0, 9) === "function(" && functionAsStr.substring(9, 10) !== ")";
|
||||
|
||||
if (functionHandlesCancel) {
|
||||
params.doneFunction(false);
|
||||
}
|
||||
|
||||
if (params.closeOnCancel) {
|
||||
closeModal();
|
||||
}
|
||||
} else {
|
||||
closeModal();
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
var $buttons = modal.querySelectorAll('button');
|
||||
for (var i = 0; i < $buttons.length; i++) {
|
||||
$buttons[i].onclick = onButtonEvent;
|
||||
}
|
||||
|
||||
// Remember the current document.onclick event.
|
||||
previousDocumentClick = document.onclick;
|
||||
document.onclick = function(e) {
|
||||
var target = e.target || e.srcElement;
|
||||
|
||||
var clickedOnModal = (modal === target),
|
||||
clickedOnModalChild = isDescendant(modal, e.target),
|
||||
modalIsVisible = hasClass(modal, 'visible'),
|
||||
outsideClickIsAllowed = modal.getAttribute('data-allow-ouside-click') === 'true';
|
||||
|
||||
if (!clickedOnModal && !clickedOnModalChild && modalIsVisible && outsideClickIsAllowed) {
|
||||
closeModal();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
// Keyboard interactions
|
||||
var $okButton = modal.querySelector('button.confirm'),
|
||||
$cancelButton = modal.querySelector('button.cancel'),
|
||||
$modalButtons = modal.querySelectorAll('button:not([type=hidden])');
|
||||
|
||||
|
||||
function handleKeyDown(e) {
|
||||
var keyCode = e.keyCode || e.which;
|
||||
|
||||
if ([9,13,32,27].indexOf(keyCode) === -1) {
|
||||
// Don't do work on keys we don't care about.
|
||||
return;
|
||||
}
|
||||
|
||||
var $targetElement = e.target || e.srcElement;
|
||||
|
||||
var btnIndex = -1; // Find the button - note, this is a nodelist, not an array.
|
||||
for (var i = 0; i < $modalButtons.length; i++) {
|
||||
if ($targetElement === $modalButtons[i]) {
|
||||
btnIndex = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (keyCode === 9) {
|
||||
// TAB
|
||||
if (btnIndex === -1) {
|
||||
// No button focused. Jump to the confirm button.
|
||||
$targetElement = $okButton;
|
||||
} else {
|
||||
// Cycle to the next button
|
||||
if (btnIndex === $modalButtons.length - 1) {
|
||||
$targetElement = $modalButtons[0];
|
||||
} else {
|
||||
$targetElement = $modalButtons[btnIndex + 1];
|
||||
}
|
||||
}
|
||||
|
||||
stopEventPropagation(e);
|
||||
$targetElement.focus();
|
||||
|
||||
} else {
|
||||
if (keyCode === 13 || keyCode === 32) {
|
||||
if (btnIndex === -1) {
|
||||
// ENTER/SPACE clicked outside of a button.
|
||||
$targetElement = $okButton;
|
||||
} else {
|
||||
// Do nothing - let the browser handle it.
|
||||
$targetElement = undefined;
|
||||
}
|
||||
} else if (keyCode === 27 && !($cancelButton.hidden || $cancelButton.style.display === 'none')) {
|
||||
// ESC to cancel only if there's a cancel button displayed (like the alert() window).
|
||||
$targetElement = $cancelButton;
|
||||
} else {
|
||||
// Fallback - let the browser handle it.
|
||||
$targetElement = undefined;
|
||||
}
|
||||
|
||||
if ($targetElement !== undefined) {
|
||||
fireClick($targetElement, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
previousWindowKeyDown = window.onkeydown;
|
||||
window.onkeydown = handleKeyDown;
|
||||
|
||||
function handleOnBlur(e) {
|
||||
var $targetElement = e.target || e.srcElement,
|
||||
$focusElement = e.relatedTarget,
|
||||
modalIsVisible = hasClass(modal, 'visible'),
|
||||
bootstrapModalIsVisible = document.querySelector('.control-popup.modal') || false;
|
||||
|
||||
if (bootstrapModalIsVisible) {
|
||||
// Bootstrap will enforce focus on the existing model, so don't
|
||||
// do anything here to prevent infinite loop.
|
||||
return;
|
||||
}
|
||||
|
||||
if (modalIsVisible) {
|
||||
var btnIndex = -1; // Find the button - note, this is a nodelist, not an array.
|
||||
|
||||
if ($focusElement !== null) {
|
||||
// If we picked something in the DOM to focus to, let's see if it was a button.
|
||||
for (var i = 0; i < $modalButtons.length; i++) {
|
||||
if ($focusElement === $modalButtons[i]) {
|
||||
btnIndex = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (btnIndex === -1) {
|
||||
// Something in the dom, but not a visible button. Focus back on the button.
|
||||
$targetElement.focus();
|
||||
}
|
||||
} else {
|
||||
// Exiting the DOM (e.g. clicked in the URL bar);
|
||||
lastFocusedButton = $targetElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$okButton.onblur = handleOnBlur;
|
||||
$cancelButton.onblur = handleOnBlur;
|
||||
|
||||
window.onfocus = function() {
|
||||
// When the user has focused away and focused back from the whole window.
|
||||
window.setTimeout(function() {
|
||||
// Put in a timeout to jump out of the event sequence. Calling focus() in the event
|
||||
// sequence confuses things.
|
||||
if (lastFocusedButton !== undefined) {
|
||||
lastFocusedButton.focus();
|
||||
lastFocusedButton = undefined;
|
||||
}
|
||||
}, 0);
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Set default params for each popup
|
||||
* @param {Object} userParams
|
||||
*/
|
||||
window.swal.setDefaults = function(userParams) {
|
||||
if (!userParams) {
|
||||
throw new Error('userParams is required');
|
||||
}
|
||||
if (typeof userParams !== 'object') {
|
||||
throw new Error('userParams has to be a object');
|
||||
}
|
||||
|
||||
extend(defaultParams, userParams);
|
||||
};
|
||||
|
||||
/**
|
||||
* Closes the current modal
|
||||
*/
|
||||
window.swal.close = function() {
|
||||
closeModal();
|
||||
}
|
||||
|
||||
/*
|
||||
* Set type, text and actions on modal
|
||||
*/
|
||||
|
||||
function setParameters(params) {
|
||||
var modal = getModal();
|
||||
|
||||
var $title = modal.querySelector('h2'),
|
||||
$text = modal.querySelector('p'),
|
||||
$cancelBtn = modal.querySelector('button.cancel'),
|
||||
$confirmBtn = modal.querySelector('button.confirm');
|
||||
|
||||
// Title
|
||||
$title.innerHTML = escapeHtml(params.title).split("\n").join("<br>");
|
||||
|
||||
// Text
|
||||
$text.innerHTML = escapeHtml(params.text || '').split("\n").join("<br>");
|
||||
if (params.text) {
|
||||
show($text);
|
||||
}
|
||||
|
||||
// Icon
|
||||
hide(modal.querySelectorAll('.icon'));
|
||||
if (params.type) {
|
||||
var validType = false;
|
||||
for (var i = 0; i < alertTypes.length; i++) {
|
||||
if (params.type === alertTypes[i]) {
|
||||
validType = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!validType) {
|
||||
window.console.error('Unknown alert type: ' + params.type);
|
||||
return false;
|
||||
}
|
||||
var $icon = modal.querySelector('.icon.' + params.type);
|
||||
show($icon);
|
||||
|
||||
// Animate icon
|
||||
switch (params.type) {
|
||||
case "success":
|
||||
addClass($icon, 'animate');
|
||||
addClass($icon.querySelector('.tip'), 'animateSuccessTip');
|
||||
addClass($icon.querySelector('.long'), 'animateSuccessLong');
|
||||
break;
|
||||
case "error":
|
||||
addClass($icon, 'animateErrorIcon');
|
||||
addClass($icon.querySelector('.x-mark'), 'animateXMark');
|
||||
break;
|
||||
case "warning":
|
||||
addClass($icon, 'pulseWarning');
|
||||
addClass($icon.querySelector('.body'), 'pulseWarningIns');
|
||||
addClass($icon.querySelector('.dot'), 'pulseWarningIns');
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Custom image
|
||||
if (params.imageUrl) {
|
||||
var $customIcon = modal.querySelector('.icon.custom');
|
||||
|
||||
$customIcon.style.backgroundImage = 'url(' + params.imageUrl + ')';
|
||||
show($customIcon);
|
||||
|
||||
var _imgWidth = 80,
|
||||
_imgHeight = 80;
|
||||
|
||||
if (params.imageSize) {
|
||||
var imgWidth = params.imageSize.split('x')[0];
|
||||
var imgHeight = params.imageSize.split('x')[1];
|
||||
|
||||
if (!imgWidth || !imgHeight) {
|
||||
window.console.error("Parameter imageSize expects value with format WIDTHxHEIGHT, got " + params.imageSize);
|
||||
} else {
|
||||
_imgWidth = imgWidth;
|
||||
_imgHeight = imgHeight;
|
||||
|
||||
$customIcon.css({
|
||||
'width': imgWidth + 'px',
|
||||
'height': imgHeight + 'px'
|
||||
});
|
||||
}
|
||||
}
|
||||
$customIcon.setAttribute('style', $customIcon.getAttribute('style') + 'width:' + _imgWidth + 'px; height:' + _imgHeight + 'px');
|
||||
}
|
||||
|
||||
// Cancel button
|
||||
modal.setAttribute('data-has-cancel-button', params.showCancelButton);
|
||||
if (params.showCancelButton) {
|
||||
$cancelBtn.style.display = 'inline-block';
|
||||
} else {
|
||||
hide($cancelBtn);
|
||||
}
|
||||
|
||||
// Confirm button
|
||||
modal.setAttribute('data-has-confirm-button', params.showConfirmButton);
|
||||
if (params.showConfirmButton) {
|
||||
$confirmBtn.style.display = 'inline-block';
|
||||
} else {
|
||||
hide($confirmBtn);
|
||||
}
|
||||
|
||||
|
||||
// Edit text on cancel and confirm buttons
|
||||
if (params.cancelButtonText) {
|
||||
$cancelBtn.innerHTML = escapeHtml(params.cancelButtonText);
|
||||
}
|
||||
if (params.confirmButtonText) {
|
||||
$confirmBtn.innerHTML = escapeHtml(params.confirmButtonText);
|
||||
}
|
||||
|
||||
// Reset confirm buttons to default class (Ugly fix)
|
||||
$confirmBtn.className = 'confirm btn'
|
||||
|
||||
// Attach selected class to the sweet alert modal
|
||||
addClass(modal, params.containerClass);
|
||||
|
||||
// Set confirm button to selected class
|
||||
addClass($confirmBtn, params.confirmButtonClass);
|
||||
|
||||
// Set cancel button to selected class
|
||||
addClass($cancelBtn, params.cancelButtonClass);
|
||||
|
||||
// Set title to selected class
|
||||
addClass($title, params.titleClass);
|
||||
|
||||
// Set text to selected class
|
||||
addClass($text, params.textClass);
|
||||
|
||||
// Allow outside click?
|
||||
modal.setAttribute('data-allow-ouside-click', params.allowOutsideClick);
|
||||
|
||||
// Done-function
|
||||
var hasDoneFunction = (params.doneFunction) ? true : false;
|
||||
modal.setAttribute('data-has-done-function', hasDoneFunction);
|
||||
|
||||
// Close timer
|
||||
modal.setAttribute('data-timer', params.timer);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Set hover, active and focus-states for buttons (source: http://www.sitepoint.com/javascript-generate-lighter-darker-color)
|
||||
*/
|
||||
|
||||
function colorLuminance(hex, lum) {
|
||||
// Validate hex string
|
||||
hex = String(hex).replace(/[^0-9a-f]/gi, '');
|
||||
if (hex.length < 6) {
|
||||
hex = hex[0]+hex[0]+hex[1]+hex[1]+hex[2]+hex[2];
|
||||
}
|
||||
lum = lum || 0;
|
||||
|
||||
// Convert to decimal and change luminosity
|
||||
var rgb = "#", c, i;
|
||||
for (i = 0; i < 3; i++) {
|
||||
c = parseInt(hex.substr(i*2,2), 16);
|
||||
c = Math.round(Math.min(Math.max(0, c + (c * lum)), 255)).toString(16);
|
||||
rgb += ("00"+c).substr(c.length);
|
||||
}
|
||||
|
||||
return rgb;
|
||||
}
|
||||
|
||||
function extend(a, b){
|
||||
for (var key in b) {
|
||||
if (b.hasOwnProperty(key)) {
|
||||
a[key] = b[key];
|
||||
}
|
||||
}
|
||||
|
||||
return a;
|
||||
}
|
||||
|
||||
function hexToRgb(hex) {
|
||||
var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
|
||||
return result ? parseInt(result[1], 16) + ', ' + parseInt(result[2], 16) + ', ' + parseInt(result[3], 16) : null;
|
||||
}
|
||||
|
||||
// Add box-shadow style to button (depending on its chosen bg-color)
|
||||
function setFocusStyle($button, bgColor) {
|
||||
var rgbColor = hexToRgb(bgColor);
|
||||
$button.style.boxShadow = '0 0 2px rgba(' + rgbColor +', 0.8), inset 0 0 0 1px rgba(0, 0, 0, 0.05)';
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Animations
|
||||
*/
|
||||
|
||||
function openModal() {
|
||||
var modal = getModal();
|
||||
fadeIn(getOverlay(), 10);
|
||||
show(modal);
|
||||
addClass(modal, 'showSweetAlert');
|
||||
removeClass(modal, 'hideSweetAlert');
|
||||
|
||||
previousActiveElement = document.activeElement;
|
||||
var $okButton = modal.querySelector('button.confirm');
|
||||
$okButton.focus();
|
||||
|
||||
setTimeout(function() {
|
||||
addClass(modal, 'visible');
|
||||
}, 500);
|
||||
|
||||
var timer = modal.getAttribute('data-timer');
|
||||
if (timer !== "null" && timer !== "") {
|
||||
setTimeout(function() {
|
||||
closeModal();
|
||||
}, timer);
|
||||
}
|
||||
}
|
||||
|
||||
function closeModal() {
|
||||
var modal = getModal();
|
||||
fadeOut(getOverlay(), 5);
|
||||
fadeOut(modal, 5);
|
||||
removeClass(modal, 'showSweetAlert');
|
||||
addClass(modal, 'hideSweetAlert');
|
||||
removeClass(modal, 'visible');
|
||||
|
||||
|
||||
// Reset icon animations
|
||||
|
||||
var $successIcon = modal.querySelector('.icon.success');
|
||||
removeClass($successIcon, 'animate');
|
||||
removeClass($successIcon.querySelector('.tip'), 'animateSuccessTip');
|
||||
removeClass($successIcon.querySelector('.long'), 'animateSuccessLong');
|
||||
|
||||
var $errorIcon = modal.querySelector('.icon.error');
|
||||
removeClass($errorIcon, 'animateErrorIcon');
|
||||
removeClass($errorIcon.querySelector('.x-mark'), 'animateXMark');
|
||||
|
||||
var $warningIcon = modal.querySelector('.icon.warning');
|
||||
removeClass($warningIcon, 'pulseWarning');
|
||||
removeClass($warningIcon.querySelector('.body'), 'pulseWarningIns');
|
||||
removeClass($warningIcon.querySelector('.dot'), 'pulseWarningIns');
|
||||
|
||||
|
||||
// Reset the page to its previous state
|
||||
window.onkeydown = previousWindowKeyDown;
|
||||
document.onclick = previousDocumentClick;
|
||||
if (previousActiveElement) {
|
||||
previousActiveElement.focus();
|
||||
}
|
||||
lastFocusedButton = undefined;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Set "margin-top"-property on modal based on its computed height
|
||||
*/
|
||||
|
||||
function fixVerticalPosition() {
|
||||
var modal = getModal();
|
||||
modal.style.marginTop = getTopMargin(getModal());
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* If library is injected after page has loaded
|
||||
*/
|
||||
|
||||
(function () {
|
||||
if (document.readyState === "complete" || document.readyState === "interactive" && document.body) {
|
||||
sweetAlertInitialize();
|
||||
} else {
|
||||
if (document.addEventListener) {
|
||||
document.addEventListener('DOMContentLoaded', function handler() {
|
||||
document.removeEventListener('DOMContentLoaded', handler, false);
|
||||
sweetAlertInitialize();
|
||||
}, false);
|
||||
} else if (document.attachEvent) {
|
||||
document.attachEvent('onreadystatechange', function handler() {
|
||||
if (document.readyState === 'complete') {
|
||||
document.detachEvent('onreadystatechange', handler);
|
||||
sweetAlertInitialize();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
})();
|
||||
|
||||
})(window, document);
|
||||
254
modules/backend/assets/vendor/sweet-alert/sweet-alert.less
vendored
Normal file
254
modules/backend/assets/vendor/sweet-alert/sweet-alert.less
vendored
Normal file
@@ -0,0 +1,254 @@
|
||||
// SweetAlert
|
||||
// 2014 (c) - Tristan Edwards
|
||||
// github.com/t4t5/sweetalert
|
||||
|
||||
@import "sweet-alert-animations";
|
||||
|
||||
.sweet-overlay {
|
||||
background-color: fade(#000, 40%);
|
||||
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
|
||||
display: none;
|
||||
z-index: @zindex-modal + 7000;
|
||||
}
|
||||
|
||||
.sweet-alert {
|
||||
@width: 478px;
|
||||
@padding: 17px;
|
||||
|
||||
background-color: @body-bg;
|
||||
width: @width;
|
||||
padding: @padding;
|
||||
border-radius: 5px;
|
||||
text-align: center;
|
||||
|
||||
position: fixed;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
margin-left: -(@width / 2 + @padding);
|
||||
margin-top: -200px;
|
||||
|
||||
overflow: hidden;
|
||||
display: none;
|
||||
z-index: @zindex-modal + 8000;
|
||||
|
||||
@media all and (max-width: @screen-xs-max) {
|
||||
width: auto;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
|
||||
left: (@grid-gutter-width / 2);
|
||||
right: (@grid-gutter-width / 2);
|
||||
}
|
||||
|
||||
.icon {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
border: 4px solid gray;
|
||||
border-radius: 50%;
|
||||
margin: 20px auto;
|
||||
position: relative;
|
||||
box-sizing: content-box;
|
||||
|
||||
&.error {
|
||||
border-color: @btn-danger-border;
|
||||
|
||||
.x-mark {
|
||||
position: relative;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.line {
|
||||
position: absolute;
|
||||
height: 5px;
|
||||
width: 47px;
|
||||
background-color: @btn-danger-bg;
|
||||
display: block;
|
||||
top: 37px;
|
||||
border-radius: 2px;
|
||||
|
||||
&.left {
|
||||
-webkit-transform: rotate(45deg);
|
||||
transform: rotate(45deg);
|
||||
left: 17px;
|
||||
}
|
||||
&.right {
|
||||
-webkit-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg);
|
||||
right: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
&.warning {
|
||||
border-color: @btn-warning-border;
|
||||
|
||||
.body { // Exclamation mark body
|
||||
position: absolute;
|
||||
width: 5px;
|
||||
height: 47px;
|
||||
left: 50%;
|
||||
top: 10px;
|
||||
border-radius: 2px;
|
||||
margin-left: -2px;
|
||||
background-color: @btn-warning-bg;
|
||||
}
|
||||
.dot { // Exclamation mark dot
|
||||
position: absolute;
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: 50%;
|
||||
margin-left: -3px;
|
||||
left: 50%;
|
||||
bottom: 10px;
|
||||
background-color: @btn-warning-bg;
|
||||
}
|
||||
}
|
||||
&.info {
|
||||
border-color: @btn-info-border;
|
||||
|
||||
&::before { // i-letter body
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 5px;
|
||||
height: 29px;
|
||||
left: 50%;
|
||||
bottom: 17px;
|
||||
border-radius: 2px;
|
||||
margin-left: -2px;
|
||||
background-color: @btn-info-bg;
|
||||
}
|
||||
&::after { // i-letter dot
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: 50%;
|
||||
margin-left: -3px;
|
||||
top: 19px;
|
||||
background-color: @btn-info-bg;
|
||||
}
|
||||
}
|
||||
&.success {
|
||||
border-color: @btn-success-border;
|
||||
|
||||
&::before, &::after { // Emulate moving circular line
|
||||
content: '';
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
width: 60px;
|
||||
height: 120px;
|
||||
background: white;
|
||||
-webkit-transform: rotate(45deg);
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
&::before {
|
||||
border-radius: 120px 0 0 120px;
|
||||
top: -7px;
|
||||
left: -33px;
|
||||
|
||||
-webkit-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg);
|
||||
-webkit-transform-origin: 60px 60px;
|
||||
transform-origin: 60px 60px;
|
||||
}
|
||||
&::after {
|
||||
border-radius: 0 120px 120px 0;
|
||||
top: -11px;
|
||||
left: 30px;
|
||||
|
||||
-webkit-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg);
|
||||
-webkit-transform-origin: 0px 60px;
|
||||
transform-origin: 0px 60px;
|
||||
}
|
||||
|
||||
.placeholder { // Ring
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
border: 4px solid fade(@brand-success, 20%);
|
||||
border-radius: 50%;
|
||||
box-sizing: content-box;
|
||||
|
||||
position: absolute;
|
||||
left: -4px;
|
||||
top: -4px;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.fix { // Hide corners left from animation
|
||||
width: 5px;
|
||||
height: 90px;
|
||||
background-color: @body-bg;
|
||||
|
||||
position: absolute;
|
||||
left: 28px;
|
||||
top: 8px;
|
||||
z-index: 1;
|
||||
|
||||
-webkit-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
|
||||
.line {
|
||||
height: 5px;
|
||||
background-color: @btn-success-bg;
|
||||
display: block;
|
||||
border-radius: 2px;
|
||||
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
|
||||
&.tip {
|
||||
width: 25px;
|
||||
|
||||
left: 14px;
|
||||
top: 46px;
|
||||
|
||||
-webkit-transform: rotate(45deg);
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
&.long {
|
||||
width: 47px;
|
||||
|
||||
right: 8px;
|
||||
top: 38px;
|
||||
|
||||
-webkit-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
&.custom {
|
||||
background-size: contain;
|
||||
border-radius: 0;
|
||||
border: none;
|
||||
background-position: center center;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-default {
|
||||
.form-control-focus(@btn-default-border);
|
||||
}
|
||||
.btn-success {
|
||||
.form-control-focus(@btn-success-border);
|
||||
}
|
||||
.btn-info {
|
||||
.form-control-focus(@btn-info-border);
|
||||
}
|
||||
.btn-danger {
|
||||
.form-control-focus(@btn-danger-border);
|
||||
}
|
||||
.btn-warning {
|
||||
.form-control-focus(@btn-warning-border);
|
||||
}
|
||||
|
||||
button::-moz-focus-inner {
|
||||
border: 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user