datagram 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. data/.env.sample +7 -0
  2. data/.gitignore +20 -0
  3. data/.rbenv-version +1 -0
  4. data/Gemfile +12 -0
  5. data/LICENSE.txt +22 -0
  6. data/Procfile +1 -0
  7. data/README.md +29 -0
  8. data/Rakefile +1 -0
  9. data/config.ru +5 -0
  10. data/datagram.gemspec +23 -0
  11. data/db/migrate/1_create_queries.rb +9 -0
  12. data/db/migrate/2_add_name_to_queries.rb +5 -0
  13. data/lib/datagram/version.rb +3 -0
  14. data/lib/datagram.rb +135 -0
  15. data/lib/views/application.coffee +222 -0
  16. data/lib/views/index.haml +47 -0
  17. data/lib/views/layout.haml +17 -0
  18. data/lib/views/style.sass +179 -0
  19. data/public/ace/ace.js +15209 -0
  20. data/public/ace/ext-elastic_tabstops_lite.js +301 -0
  21. data/public/ace/ext-emmet.js +253 -0
  22. data/public/ace/ext-searchbox.js +441 -0
  23. data/public/ace/ext-spellcheck.js +67 -0
  24. data/public/ace/ext-static_highlight.js +96 -0
  25. data/public/ace/ext-textarea.js +492 -0
  26. data/public/ace/ext-whitespace.js +204 -0
  27. data/public/ace/keybinding-emacs.js +962 -0
  28. data/public/ace/keybinding-vim.js +1704 -0
  29. data/public/ace/mode-abap.js +260 -0
  30. data/public/ace/mode-asciidoc.js +372 -0
  31. data/public/ace/mode-c9search.js +182 -0
  32. data/public/ace/mode-c_cpp.js +737 -0
  33. data/public/ace/mode-clojure.js +299 -0
  34. data/public/ace/mode-coffee.js +426 -0
  35. data/public/ace/mode-coldfusion.js +1753 -0
  36. data/public/ace/mode-csharp.js +612 -0
  37. data/public/ace/mode-css.js +773 -0
  38. data/public/ace/mode-curly.js +1950 -0
  39. data/public/ace/mode-dart.js +945 -0
  40. data/public/ace/mode-diff.js +166 -0
  41. data/public/ace/mode-django.js +1969 -0
  42. data/public/ace/mode-dot.js +320 -0
  43. data/public/ace/mode-ftl.js +907 -0
  44. data/public/ace/mode-glsl.js +810 -0
  45. data/public/ace/mode-golang.js +632 -0
  46. data/public/ace/mode-groovy.js +1037 -0
  47. data/public/ace/mode-haml.js +487 -0
  48. data/public/ace/mode-haxe.js +609 -0
  49. data/public/ace/mode-html.js +1881 -0
  50. data/public/ace/mode-jade.js +1951 -0
  51. data/public/ace/mode-java.js +996 -0
  52. data/public/ace/mode-javascript.js +876 -0
  53. data/public/ace/mode-json.js +578 -0
  54. data/public/ace/mode-jsp.js +1351 -0
  55. data/public/ace/mode-jsx.js +635 -0
  56. data/public/ace/mode-latex.js +189 -0
  57. data/public/ace/mode-less.js +807 -0
  58. data/public/ace/mode-liquid.js +862 -0
  59. data/public/ace/mode-lisp.js +138 -0
  60. data/public/ace/mode-livescript.js +288 -0
  61. data/public/ace/mode-logiql.js +664 -0
  62. data/public/ace/mode-lsl.js +828 -0
  63. data/public/ace/mode-lua.js +455 -0
  64. data/public/ace/mode-luapage.js +2340 -0
  65. data/public/ace/mode-lucene.js +64 -0
  66. data/public/ace/mode-makefile.js +313 -0
  67. data/public/ace/mode-markdown.js +2280 -0
  68. data/public/ace/mode-mushcode.js +704 -0
  69. data/public/ace/mode-mushcode_high_rules.js +569 -0
  70. data/public/ace/mode-objectivec.js +659 -0
  71. data/public/ace/mode-ocaml.js +443 -0
  72. data/public/ace/mode-pascal.js +233 -0
  73. data/public/ace/mode-perl.js +316 -0
  74. data/public/ace/mode-pgsql.js +908 -0
  75. data/public/ace/mode-php.js +2291 -0
  76. data/public/ace/mode-powershell.js +618 -0
  77. data/public/ace/mode-python.js +264 -0
  78. data/public/ace/mode-r.js +404 -0
  79. data/public/ace/mode-rdoc.js +184 -0
  80. data/public/ace/mode-rhtml.js +2168 -0
  81. data/public/ace/mode-ruby.js +431 -0
  82. data/public/ace/mode-sass.js +442 -0
  83. data/public/ace/mode-scad.js +670 -0
  84. data/public/ace/mode-scala.js +1025 -0
  85. data/public/ace/mode-scheme.js +144 -0
  86. data/public/ace/mode-scss.js +832 -0
  87. data/public/ace/mode-sh.js +204 -0
  88. data/public/ace/mode-sql.js +118 -0
  89. data/public/ace/mode-stylus.js +483 -0
  90. data/public/ace/mode-svg.js +1442 -0
  91. data/public/ace/mode-tcl.js +319 -0
  92. data/public/ace/mode-tex.js +166 -0
  93. data/public/ace/mode-text.js +0 -0
  94. data/public/ace/mode-textile.js +170 -0
  95. data/public/ace/mode-tmsnippet.js +200 -0
  96. data/public/ace/mode-toml.js +180 -0
  97. data/public/ace/mode-typescript.js +961 -0
  98. data/public/ace/mode-vbscript.js +281 -0
  99. data/public/ace/mode-velocity.js +962 -0
  100. data/public/ace/mode-xml.js +789 -0
  101. data/public/ace/mode-xquery.js +2750 -0
  102. data/public/ace/mode-yaml.js +289 -0
  103. data/public/ace/theme-ambiance.js +202 -0
  104. data/public/ace/theme-chaos.js +182 -0
  105. data/public/ace/theme-chrome.js +161 -0
  106. data/public/ace/theme-clouds.js +135 -0
  107. data/public/ace/theme-clouds_midnight.js +136 -0
  108. data/public/ace/theme-cobalt.js +150 -0
  109. data/public/ace/theme-crimson_editor.js +154 -0
  110. data/public/ace/theme-dawn.js +146 -0
  111. data/public/ace/theme-dreamweaver.js +173 -0
  112. data/public/ace/theme-eclipse.js +122 -0
  113. data/public/ace/theme-github.js +136 -0
  114. data/public/ace/theme-idle_fingers.js +136 -0
  115. data/public/ace/theme-kr.js +143 -0
  116. data/public/ace/theme-merbivore.js +135 -0
  117. data/public/ace/theme-merbivore_soft.js +136 -0
  118. data/public/ace/theme-mono_industrial.js +148 -0
  119. data/public/ace/theme-monokai.js +140 -0
  120. data/public/ace/theme-pastel_on_dark.js +148 -0
  121. data/public/ace/theme-solarized_dark.js +128 -0
  122. data/public/ace/theme-solarized_light.js +131 -0
  123. data/public/ace/theme-terminal.js +154 -0
  124. data/public/ace/theme-textmate.js +0 -0
  125. data/public/ace/theme-tomorrow.js +147 -0
  126. data/public/ace/theme-tomorrow_night.js +147 -0
  127. data/public/ace/theme-tomorrow_night_blue.js +145 -0
  128. data/public/ace/theme-tomorrow_night_bright.js +147 -0
  129. data/public/ace/theme-tomorrow_night_eighties.js +144 -0
  130. data/public/ace/theme-twilight.js +147 -0
  131. data/public/ace/theme-vibrant_ink.js +131 -0
  132. data/public/ace/theme-xcode.js +125 -0
  133. data/public/ace/worker-coffee.js +7091 -0
  134. data/public/ace/worker-css.js +8289 -0
  135. data/public/ace/worker-javascript.js +6496 -0
  136. data/public/ace/worker-json.js +2305 -0
  137. data/public/ace/worker-lua.js +3313 -0
  138. data/public/ace/worker-php.js +6743 -0
  139. data/public/ace/worker-xquery.js +21897 -0
  140. data/public/font/FontAwesome.otf +0 -0
  141. data/public/font/fontawesome-webfont.eot +0 -0
  142. data/public/font/fontawesome-webfont.svg +284 -0
  143. data/public/font/fontawesome-webfont.ttf +0 -0
  144. data/public/font/fontawesome-webfont.woff +0 -0
  145. data/public/font-awesome.css +540 -0
  146. data/public/jquery.js +9597 -0
  147. data/script/migrate.sh +2 -0
  148. metadata +242 -0
@@ -0,0 +1,136 @@
1
+ /* ***** BEGIN LICENSE BLOCK *****
2
+ * Distributed under the BSD license:
3
+ *
4
+ * Copyright (c) 2010, Ajax.org B.V.
5
+ * All rights reserved.
6
+ *
7
+ * Redistribution and use in source and binary forms, with or without
8
+ * modification, are permitted provided that the following conditions are met:
9
+ * * Redistributions of source code must retain the above copyright
10
+ * notice, this list of conditions and the following disclaimer.
11
+ * * Redistributions in binary form must reproduce the above copyright
12
+ * notice, this list of conditions and the following disclaimer in the
13
+ * documentation and/or other materials provided with the distribution.
14
+ * * Neither the name of Ajax.org B.V. nor the
15
+ * names of its contributors may be used to endorse or promote products
16
+ * derived from this software without specific prior written permission.
17
+ *
18
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+ *
29
+ * ***** END LICENSE BLOCK ***** */
30
+
31
+ define('ace/theme/merbivore_soft', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
32
+
33
+ exports.isDark = true;
34
+ exports.cssClass = "ace-merbivore-soft";
35
+ exports.cssText = ".ace-merbivore-soft .ace_gutter {\
36
+ background: #262424;\
37
+ color: #E6E1DC\
38
+ }\
39
+ .ace-merbivore-soft .ace_print-margin {\
40
+ width: 1px;\
41
+ background: #262424\
42
+ }\
43
+ .ace-merbivore-soft .ace_scroller {\
44
+ background-color: #1C1C1C\
45
+ }\
46
+ .ace-merbivore-soft .ace_text-layer {\
47
+ color: #E6E1DC\
48
+ }\
49
+ .ace-merbivore-soft .ace_cursor {\
50
+ border-left: 2px solid #FFFFFF\
51
+ }\
52
+ .ace-merbivore-soft .ace_overwrite-cursors .ace_cursor {\
53
+ border-left: 0px;\
54
+ border-bottom: 1px solid #FFFFFF\
55
+ }\
56
+ .ace-merbivore-soft .ace_marker-layer .ace_selection {\
57
+ background: #494949\
58
+ }\
59
+ .ace-merbivore-soft.ace_multiselect .ace_selection.ace_start {\
60
+ box-shadow: 0 0 3px 0px #1C1C1C;\
61
+ border-radius: 2px\
62
+ }\
63
+ .ace-merbivore-soft .ace_marker-layer .ace_step {\
64
+ background: rgb(102, 82, 0)\
65
+ }\
66
+ .ace-merbivore-soft .ace_marker-layer .ace_bracket {\
67
+ margin: -1px 0 0 -1px;\
68
+ border: 1px solid #404040\
69
+ }\
70
+ .ace-merbivore-soft .ace_marker-layer .ace_active-line {\
71
+ background: #333435\
72
+ }\
73
+ .ace-merbivore-soft .ace_gutter-active-line {\
74
+ background-color: #333435\
75
+ }\
76
+ .ace-merbivore-soft .ace_marker-layer .ace_selected-word {\
77
+ border: 1px solid #494949\
78
+ }\
79
+ .ace-merbivore-soft .ace_invisible {\
80
+ color: #404040\
81
+ }\
82
+ .ace-merbivore-soft .ace_entity.ace_name.ace_tag,\
83
+ .ace-merbivore-soft .ace_keyword,\
84
+ .ace-merbivore-soft .ace_meta,\
85
+ .ace-merbivore-soft .ace_meta.ace_tag,\
86
+ .ace-merbivore-soft .ace_storage {\
87
+ color: #FC803A\
88
+ }\
89
+ .ace-merbivore-soft .ace_constant,\
90
+ .ace-merbivore-soft .ace_constant.ace_character,\
91
+ .ace-merbivore-soft .ace_constant.ace_character.ace_escape,\
92
+ .ace-merbivore-soft .ace_constant.ace_other,\
93
+ .ace-merbivore-soft .ace_support.ace_type {\
94
+ color: #68C1D8\
95
+ }\
96
+ .ace-merbivore-soft .ace_constant.ace_character.ace_escape {\
97
+ color: #B3E5B4\
98
+ }\
99
+ .ace-merbivore-soft .ace_constant.ace_language {\
100
+ color: #E1C582\
101
+ }\
102
+ .ace-merbivore-soft .ace_constant.ace_library,\
103
+ .ace-merbivore-soft .ace_string,\
104
+ .ace-merbivore-soft .ace_support.ace_constant {\
105
+ color: #8EC65F\
106
+ }\
107
+ .ace-merbivore-soft .ace_constant.ace_numeric {\
108
+ color: #7FC578\
109
+ }\
110
+ .ace-merbivore-soft .ace_invalid,\
111
+ .ace-merbivore-soft .ace_invalid.ace_deprecated {\
112
+ color: #FFFFFF;\
113
+ background-color: #FE3838\
114
+ }\
115
+ .ace-merbivore-soft .ace_fold {\
116
+ background-color: #FC803A;\
117
+ border-color: #E6E1DC\
118
+ }\
119
+ .ace-merbivore-soft .ace_comment,\
120
+ .ace-merbivore-soft .ace_meta {\
121
+ font-style: italic;\
122
+ color: #AC4BB8\
123
+ }\
124
+ .ace-merbivore-soft .ace_entity.ace_other.ace_attribute-name {\
125
+ color: #EAF1A3\
126
+ }\
127
+ .ace-merbivore-soft .ace_markup.ace_underline {\
128
+ text-decoration: underline\
129
+ }\
130
+ .ace-merbivore-soft .ace_indent-guide {\
131
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWOQkZH5zzBz5sz/AA8EBB6crd1rAAAAAElFTkSuQmCC) right repeat-y\
132
+ }";
133
+
134
+ var dom = require("../lib/dom");
135
+ dom.importCssString(exports.cssText, exports.cssClass);
136
+ });
@@ -0,0 +1,148 @@
1
+ /* ***** BEGIN LICENSE BLOCK *****
2
+ * Distributed under the BSD license:
3
+ *
4
+ * Copyright (c) 2010, Ajax.org B.V.
5
+ * All rights reserved.
6
+ *
7
+ * Redistribution and use in source and binary forms, with or without
8
+ * modification, are permitted provided that the following conditions are met:
9
+ * * Redistributions of source code must retain the above copyright
10
+ * notice, this list of conditions and the following disclaimer.
11
+ * * Redistributions in binary form must reproduce the above copyright
12
+ * notice, this list of conditions and the following disclaimer in the
13
+ * documentation and/or other materials provided with the distribution.
14
+ * * Neither the name of Ajax.org B.V. nor the
15
+ * names of its contributors may be used to endorse or promote products
16
+ * derived from this software without specific prior written permission.
17
+ *
18
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+ *
29
+ * ***** END LICENSE BLOCK ***** */
30
+
31
+ define('ace/theme/mono_industrial', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
32
+
33
+ exports.isDark = true;
34
+ exports.cssClass = "ace-mono-industrial";
35
+ exports.cssText = ".ace-mono-industrial .ace_gutter {\
36
+ background: #1d2521;\
37
+ color: #C5C9C9\
38
+ }\
39
+ .ace-mono-industrial .ace_print-margin {\
40
+ width: 1px;\
41
+ background: #555651\
42
+ }\
43
+ .ace-mono-industrial .ace_scroller {\
44
+ background-color: #222C28\
45
+ }\
46
+ .ace-mono-industrial .ace_text-layer {\
47
+ color: #FFFFFF\
48
+ }\
49
+ .ace-mono-industrial .ace_cursor {\
50
+ border-left: 2px solid #FFFFFF\
51
+ }\
52
+ .ace-mono-industrial .ace_overwrite-cursors .ace_cursor {\
53
+ border-left: 0px;\
54
+ border-bottom: 1px solid #FFFFFF\
55
+ }\
56
+ .ace-mono-industrial .ace_marker-layer .ace_selection {\
57
+ background: rgba(145, 153, 148, 0.40)\
58
+ }\
59
+ .ace-mono-industrial.ace_multiselect .ace_selection.ace_start {\
60
+ box-shadow: 0 0 3px 0px #222C28;\
61
+ border-radius: 2px\
62
+ }\
63
+ .ace-mono-industrial .ace_marker-layer .ace_step {\
64
+ background: rgb(102, 82, 0)\
65
+ }\
66
+ .ace-mono-industrial .ace_marker-layer .ace_bracket {\
67
+ margin: -1px 0 0 -1px;\
68
+ border: 1px solid rgba(102, 108, 104, 0.50)\
69
+ }\
70
+ .ace-mono-industrial .ace_marker-layer .ace_active-line {\
71
+ background: rgba(12, 13, 12, 0.25)\
72
+ }\
73
+ .ace-mono-industrial .ace_gutter-active-line {\
74
+ background-color: rgba(12, 13, 12, 0.25)\
75
+ }\
76
+ .ace-mono-industrial .ace_marker-layer .ace_selected-word {\
77
+ border: 1px solid rgba(145, 153, 148, 0.40)\
78
+ }\
79
+ .ace-mono-industrial .ace_invisible {\
80
+ color: rgba(102, 108, 104, 0.50)\
81
+ }\
82
+ .ace-mono-industrial .ace_string {\
83
+ background-color: #151C19;\
84
+ color: #FFFFFF\
85
+ }\
86
+ .ace-mono-industrial .ace_keyword,\
87
+ .ace-mono-industrial .ace_meta {\
88
+ color: #A39E64\
89
+ }\
90
+ .ace-mono-industrial .ace_constant,\
91
+ .ace-mono-industrial .ace_constant.ace_character,\
92
+ .ace-mono-industrial .ace_constant.ace_character.ace_escape,\
93
+ .ace-mono-industrial .ace_constant.ace_numeric,\
94
+ .ace-mono-industrial .ace_constant.ace_other {\
95
+ color: #E98800\
96
+ }\
97
+ .ace-mono-industrial .ace_entity.ace_name.ace_function,\
98
+ .ace-mono-industrial .ace_keyword.ace_operator,\
99
+ .ace-mono-industrial .ace_variable {\
100
+ color: #A8B3AB\
101
+ }\
102
+ .ace-mono-industrial .ace_invalid {\
103
+ color: #FFFFFF;\
104
+ background-color: rgba(153, 0, 0, 0.68)\
105
+ }\
106
+ .ace-mono-industrial .ace_support.ace_constant {\
107
+ color: #C87500\
108
+ }\
109
+ .ace-mono-industrial .ace_fold {\
110
+ background-color: #A8B3AB;\
111
+ border-color: #FFFFFF\
112
+ }\
113
+ .ace-mono-industrial .ace_support.ace_function {\
114
+ color: #588E60\
115
+ }\
116
+ .ace-mono-industrial .ace_entity.ace_name,\
117
+ .ace-mono-industrial .ace_support.ace_class,\
118
+ .ace-mono-industrial .ace_support.ace_type {\
119
+ color: #5778B6\
120
+ }\
121
+ .ace-mono-industrial .ace_storage {\
122
+ color: #C23B00\
123
+ }\
124
+ .ace-mono-industrial .ace_variable.ace_language,\
125
+ .ace-mono-industrial .ace_variable.ace_parameter {\
126
+ color: #648BD2\
127
+ }\
128
+ .ace-mono-industrial .ace_comment {\
129
+ color: #666C68;\
130
+ background-color: #151C19\
131
+ }\
132
+ .ace-mono-industrial .ace_entity.ace_other.ace_attribute-name {\
133
+ color: #909993\
134
+ }\
135
+ .ace-mono-industrial .ace_markup.ace_underline {\
136
+ text-decoration: underline\
137
+ }\
138
+ .ace-mono-industrial .ace_entity.ace_name.ace_tag {\
139
+ color: #A65EFF\
140
+ }\
141
+ .ace-mono-industrial .ace_indent-guide {\
142
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNQ0tH4zzBz5sz/ABAOBECKH+evAAAAAElFTkSuQmCC) right repeat-y\
143
+ }\
144
+ ";
145
+
146
+ var dom = require("../lib/dom");
147
+ dom.importCssString(exports.cssText, exports.cssClass);
148
+ });
@@ -0,0 +1,140 @@
1
+ /* ***** BEGIN LICENSE BLOCK *****
2
+ * Distributed under the BSD license:
3
+ *
4
+ * Copyright (c) 2010, Ajax.org B.V.
5
+ * All rights reserved.
6
+ *
7
+ * Redistribution and use in source and binary forms, with or without
8
+ * modification, are permitted provided that the following conditions are met:
9
+ * * Redistributions of source code must retain the above copyright
10
+ * notice, this list of conditions and the following disclaimer.
11
+ * * Redistributions in binary form must reproduce the above copyright
12
+ * notice, this list of conditions and the following disclaimer in the
13
+ * documentation and/or other materials provided with the distribution.
14
+ * * Neither the name of Ajax.org B.V. nor the
15
+ * names of its contributors may be used to endorse or promote products
16
+ * derived from this software without specific prior written permission.
17
+ *
18
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+ *
29
+ * ***** END LICENSE BLOCK ***** */
30
+
31
+ define('ace/theme/monokai', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
32
+
33
+ exports.isDark = true;
34
+ exports.cssClass = "ace-monokai";
35
+ exports.cssText = ".ace-monokai .ace_gutter {\
36
+ background: #2F3129;\
37
+ color: #8F908A\
38
+ }\
39
+ .ace-monokai .ace_print-margin {\
40
+ width: 1px;\
41
+ background: #555651\
42
+ }\
43
+ .ace-monokai .ace_scroller {\
44
+ background-color: #272822\
45
+ }\
46
+ .ace-monokai .ace_text-layer {\
47
+ color: #F8F8F2\
48
+ }\
49
+ .ace-monokai .ace_cursor {\
50
+ border-left: 2px solid #F8F8F0\
51
+ }\
52
+ .ace-monokai .ace_overwrite-cursors .ace_cursor {\
53
+ border-left: 0px;\
54
+ border-bottom: 1px solid #F8F8F0\
55
+ }\
56
+ .ace-monokai .ace_marker-layer .ace_selection {\
57
+ background: #49483E\
58
+ }\
59
+ .ace-monokai.ace_multiselect .ace_selection.ace_start {\
60
+ box-shadow: 0 0 3px 0px #272822;\
61
+ border-radius: 2px\
62
+ }\
63
+ .ace-monokai .ace_marker-layer .ace_step {\
64
+ background: rgb(102, 82, 0)\
65
+ }\
66
+ .ace-monokai .ace_marker-layer .ace_bracket {\
67
+ margin: -1px 0 0 -1px;\
68
+ border: 1px solid #49483E\
69
+ }\
70
+ .ace-monokai .ace_marker-layer .ace_active-line {\
71
+ background: #202020\
72
+ }\
73
+ .ace-monokai .ace_gutter-active-line {\
74
+ background-color: #272727\
75
+ }\
76
+ .ace-monokai .ace_marker-layer .ace_selected-word {\
77
+ border: 1px solid #49483E\
78
+ }\
79
+ .ace-monokai .ace_invisible {\
80
+ color: #52524d\
81
+ }\
82
+ .ace-monokai .ace_entity.ace_name.ace_tag,\
83
+ .ace-monokai .ace_keyword,\
84
+ .ace-monokai .ace_meta,\
85
+ .ace-monokai .ace_storage {\
86
+ color: #F92672\
87
+ }\
88
+ .ace-monokai .ace_constant.ace_character,\
89
+ .ace-monokai .ace_constant.ace_language,\
90
+ .ace-monokai .ace_constant.ace_numeric,\
91
+ .ace-monokai .ace_constant.ace_other {\
92
+ color: #AE81FF\
93
+ }\
94
+ .ace-monokai .ace_invalid {\
95
+ color: #F8F8F0;\
96
+ background-color: #F92672\
97
+ }\
98
+ .ace-monokai .ace_invalid.ace_deprecated {\
99
+ color: #F8F8F0;\
100
+ background-color: #AE81FF\
101
+ }\
102
+ .ace-monokai .ace_support.ace_constant,\
103
+ .ace-monokai .ace_support.ace_function {\
104
+ color: #66D9EF\
105
+ }\
106
+ .ace-monokai .ace_fold {\
107
+ background-color: #A6E22E;\
108
+ border-color: #F8F8F2\
109
+ }\
110
+ .ace-monokai .ace_storage.ace_type,\
111
+ .ace-monokai .ace_support.ace_class,\
112
+ .ace-monokai .ace_support.ace_type {\
113
+ font-style: italic;\
114
+ color: #66D9EF\
115
+ }\
116
+ .ace-monokai .ace_entity.ace_name.ace_function,\
117
+ .ace-monokai .ace_entity.ace_other,\
118
+ .ace-monokai .ace_variable {\
119
+ color: #A6E22E\
120
+ }\
121
+ .ace-monokai .ace_variable.ace_parameter {\
122
+ font-style: italic;\
123
+ color: #FD971F\
124
+ }\
125
+ .ace-monokai .ace_string {\
126
+ color: #E6DB74\
127
+ }\
128
+ .ace-monokai .ace_comment {\
129
+ color: #75715E\
130
+ }\
131
+ .ace-monokai .ace_markup.ace_underline {\
132
+ text-decoration: underline\
133
+ }\
134
+ .ace-monokai .ace_indent-guide {\
135
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNQ11D6z7Bq1ar/ABCKBG6g04U2AAAAAElFTkSuQmCC) right repeat-y\
136
+ }";
137
+
138
+ var dom = require("../lib/dom");
139
+ dom.importCssString(exports.cssText, exports.cssClass);
140
+ });
@@ -0,0 +1,148 @@
1
+ /* ***** BEGIN LICENSE BLOCK *****
2
+ * Distributed under the BSD license:
3
+ *
4
+ * Copyright (c) 2010, Ajax.org B.V.
5
+ * All rights reserved.
6
+ *
7
+ * Redistribution and use in source and binary forms, with or without
8
+ * modification, are permitted provided that the following conditions are met:
9
+ * * Redistributions of source code must retain the above copyright
10
+ * notice, this list of conditions and the following disclaimer.
11
+ * * Redistributions in binary form must reproduce the above copyright
12
+ * notice, this list of conditions and the following disclaimer in the
13
+ * documentation and/or other materials provided with the distribution.
14
+ * * Neither the name of Ajax.org B.V. nor the
15
+ * names of its contributors may be used to endorse or promote products
16
+ * derived from this software without specific prior written permission.
17
+ *
18
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+ *
29
+ * ***** END LICENSE BLOCK ***** */
30
+
31
+ define('ace/theme/pastel_on_dark', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
32
+
33
+ exports.isDark = true;
34
+ exports.cssClass = "ace-pastel-on-dark";
35
+ exports.cssText = ".ace-pastel-on-dark .ace_gutter {\
36
+ background: #353030;\
37
+ color: #8F938F\
38
+ }\
39
+ .ace-pastel-on-dark .ace_print-margin {\
40
+ width: 1px;\
41
+ background: #353030\
42
+ }\
43
+ .ace-pastel-on-dark .ace_scroller {\
44
+ background-color: #2C2828\
45
+ }\
46
+ .ace-pastel-on-dark .ace_text-layer {\
47
+ color: #8F938F\
48
+ }\
49
+ .ace-pastel-on-dark .ace_cursor {\
50
+ border-left: 2px solid #A7A7A7\
51
+ }\
52
+ .ace-pastel-on-dark .ace_overwrite-cursors .ace_cursor {\
53
+ border-left: 0px;\
54
+ border-bottom: 1px solid #A7A7A7\
55
+ }\
56
+ .ace-pastel-on-dark .ace_marker-layer .ace_selection {\
57
+ background: rgba(221, 240, 255, 0.20)\
58
+ }\
59
+ .ace-pastel-on-dark.ace_multiselect .ace_selection.ace_start {\
60
+ box-shadow: 0 0 3px 0px #2C2828;\
61
+ border-radius: 2px\
62
+ }\
63
+ .ace-pastel-on-dark .ace_marker-layer .ace_step {\
64
+ background: rgb(102, 82, 0)\
65
+ }\
66
+ .ace-pastel-on-dark .ace_marker-layer .ace_bracket {\
67
+ margin: -1px 0 0 -1px;\
68
+ border: 1px solid rgba(255, 255, 255, 0.25)\
69
+ }\
70
+ .ace-pastel-on-dark .ace_marker-layer .ace_active-line {\
71
+ background: rgba(255, 255, 255, 0.031)\
72
+ }\
73
+ .ace-pastel-on-dark .ace_gutter-active-line {\
74
+ background-color: rgba(255, 255, 255, 0.031)\
75
+ }\
76
+ .ace-pastel-on-dark .ace_marker-layer .ace_selected-word {\
77
+ border: 1px solid rgba(221, 240, 255, 0.20)\
78
+ }\
79
+ .ace-pastel-on-dark .ace_invisible {\
80
+ color: rgba(255, 255, 255, 0.25)\
81
+ }\
82
+ .ace-pastel-on-dark .ace_keyword,\
83
+ .ace-pastel-on-dark .ace_meta {\
84
+ color: #757aD8\
85
+ }\
86
+ .ace-pastel-on-dark .ace_constant,\
87
+ .ace-pastel-on-dark .ace_constant.ace_character,\
88
+ .ace-pastel-on-dark .ace_constant.ace_character.ace_escape,\
89
+ .ace-pastel-on-dark .ace_constant.ace_other {\
90
+ color: #4FB7C5\
91
+ }\
92
+ .ace-pastel-on-dark .ace_keyword.ace_operator {\
93
+ color: #797878\
94
+ }\
95
+ .ace-pastel-on-dark .ace_constant.ace_character {\
96
+ color: #AFA472\
97
+ }\
98
+ .ace-pastel-on-dark .ace_constant.ace_language {\
99
+ color: #DE8E30\
100
+ }\
101
+ .ace-pastel-on-dark .ace_constant.ace_numeric {\
102
+ color: #CCCCCC\
103
+ }\
104
+ .ace-pastel-on-dark .ace_invalid,\
105
+ .ace-pastel-on-dark .ace_invalid.ace_illegal {\
106
+ color: #F8F8F8;\
107
+ background-color: rgba(86, 45, 86, 0.75)\
108
+ }\
109
+ .ace-pastel-on-dark .ace_invalid.ace_deprecated {\
110
+ text-decoration: underline;\
111
+ font-style: italic;\
112
+ color: #D2A8A1\
113
+ }\
114
+ .ace-pastel-on-dark .ace_fold {\
115
+ background-color: #757aD8;\
116
+ border-color: #8F938F\
117
+ }\
118
+ .ace-pastel-on-dark .ace_support.ace_function {\
119
+ color: #AEB2F8\
120
+ }\
121
+ .ace-pastel-on-dark .ace_string {\
122
+ color: #66A968\
123
+ }\
124
+ .ace-pastel-on-dark .ace_string.ace_regexp {\
125
+ color: #E9C062\
126
+ }\
127
+ .ace-pastel-on-dark .ace_comment {\
128
+ color: #A6C6FF\
129
+ }\
130
+ .ace-pastel-on-dark .ace_variable {\
131
+ color: #BEBF55\
132
+ }\
133
+ .ace-pastel-on-dark .ace_variable.ace_language {\
134
+ color: #C1C144\
135
+ }\
136
+ .ace-pastel-on-dark .ace_xml-pe {\
137
+ color: #494949\
138
+ }\
139
+ .ace-pastel-on-dark .ace_markup.ace_underline {\
140
+ text-decoration: underline\
141
+ }\
142
+ .ace-pastel-on-dark .ace_indent-guide {\
143
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ0dD4z9DR0fEfAA+vBBPqhbn1AAAAAElFTkSuQmCC) right repeat-y\
144
+ }";
145
+
146
+ var dom = require("../lib/dom");
147
+ dom.importCssString(exports.cssText, exports.cssClass);
148
+ });
@@ -0,0 +1,128 @@
1
+ /* ***** BEGIN LICENSE BLOCK *****
2
+ * Distributed under the BSD license:
3
+ *
4
+ * Copyright (c) 2010, Ajax.org B.V.
5
+ * All rights reserved.
6
+ *
7
+ * Redistribution and use in source and binary forms, with or without
8
+ * modification, are permitted provided that the following conditions are met:
9
+ * * Redistributions of source code must retain the above copyright
10
+ * notice, this list of conditions and the following disclaimer.
11
+ * * Redistributions in binary form must reproduce the above copyright
12
+ * notice, this list of conditions and the following disclaimer in the
13
+ * documentation and/or other materials provided with the distribution.
14
+ * * Neither the name of Ajax.org B.V. nor the
15
+ * names of its contributors may be used to endorse or promote products
16
+ * derived from this software without specific prior written permission.
17
+ *
18
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY
22
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+ *
29
+ * ***** END LICENSE BLOCK ***** */
30
+
31
+ define('ace/theme/solarized_dark', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
32
+
33
+ exports.isDark = true;
34
+ exports.cssClass = "ace-solarized-dark";
35
+ exports.cssText = ".ace-solarized-dark .ace_gutter {\
36
+ background: #01313f;\
37
+ color: #d0edf7\
38
+ }\
39
+ .ace-solarized-dark .ace_print-margin {\
40
+ width: 1px;\
41
+ background: #33555E\
42
+ }\
43
+ .ace-solarized-dark .ace_scroller {\
44
+ background-color: #002B36\
45
+ }\
46
+ .ace-solarized-dark .ace_entity.ace_other.ace_attribute-name,\
47
+ .ace-solarized-dark .ace_storage,\
48
+ .ace-solarized-dark .ace_text-layer {\
49
+ color: #93A1A1\
50
+ }\
51
+ .ace-solarized-dark .ace_cursor {\
52
+ border-left: 2px solid #D30102\
53
+ }\
54
+ .ace-solarized-dark .ace_overwrite-cursors .ace_cursor {\
55
+ border-left: 0px;\
56
+ border-bottom: 1px solid #D30102\
57
+ }\
58
+ .ace-solarized-dark .ace_marker-layer .ace_active-line,\
59
+ .ace-solarized-dark .ace_marker-layer .ace_selection {\
60
+ background: rgba(255, 255, 255, 0.1)\
61
+ }\
62
+ .ace-solarized-dark.ace_multiselect .ace_selection.ace_start {\
63
+ box-shadow: 0 0 3px 0px #002B36;\
64
+ border-radius: 2px\
65
+ }\
66
+ .ace-solarized-dark .ace_marker-layer .ace_step {\
67
+ background: rgb(102, 82, 0)\
68
+ }\
69
+ .ace-solarized-dark .ace_marker-layer .ace_bracket {\
70
+ margin: -1px 0 0 -1px;\
71
+ border: 1px solid rgba(147, 161, 161, 0.50)\
72
+ }\
73
+ .ace-solarized-dark .ace_gutter-active-line {\
74
+ background-color: #0d3440\
75
+ }\
76
+ .ace-solarized-dark .ace_marker-layer .ace_selected-word {\
77
+ border: 1px solid #073642\
78
+ }\
79
+ .ace-solarized-dark .ace_invisible {\
80
+ color: rgba(147, 161, 161, 0.50)\
81
+ }\
82
+ .ace-solarized-dark .ace_keyword,\
83
+ .ace-solarized-dark .ace_meta,\
84
+ .ace-solarized-dark .ace_support.ace_class,\
85
+ .ace-solarized-dark .ace_support.ace_type {\
86
+ color: #859900\
87
+ }\
88
+ .ace-solarized-dark .ace_constant.ace_character,\
89
+ .ace-solarized-dark .ace_constant.ace_other {\
90
+ color: #CB4B16\
91
+ }\
92
+ .ace-solarized-dark .ace_constant.ace_language {\
93
+ color: #B58900\
94
+ }\
95
+ .ace-solarized-dark .ace_constant.ace_numeric {\
96
+ color: #D33682\
97
+ }\
98
+ .ace-solarized-dark .ace_fold {\
99
+ background-color: #268BD2;\
100
+ border-color: #93A1A1\
101
+ }\
102
+ .ace-solarized-dark .ace_entity.ace_name.ace_function,\
103
+ .ace-solarized-dark .ace_entity.ace_name.ace_tag,\
104
+ .ace-solarized-dark .ace_support.ace_function,\
105
+ .ace-solarized-dark .ace_variable,\
106
+ .ace-solarized-dark .ace_variable.ace_language {\
107
+ color: #268BD2\
108
+ }\
109
+ .ace-solarized-dark .ace_string {\
110
+ color: #2AA198\
111
+ }\
112
+ .ace-solarized-dark .ace_string.ace_regexp {\
113
+ color: #D30102\
114
+ }\
115
+ .ace-solarized-dark .ace_comment {\
116
+ font-style: italic;\
117
+ color: #657B83\
118
+ }\
119
+ .ace-solarized-dark .ace_markup.ace_underline {\
120
+ text-decoration: underline\
121
+ }\
122
+ .ace-solarized-dark .ace_indent-guide {\
123
+ background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNg0Db7zzBz5sz/AA82BCv7wOIDAAAAAElFTkSuQmCC) right repeat-y\
124
+ }";
125
+
126
+ var dom = require("../lib/dom");
127
+ dom.importCssString(exports.cssText, exports.cssClass);
128
+ });