datagram 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.env.sample +7 -0
- data/.gitignore +20 -0
- data/.rbenv-version +1 -0
- data/Gemfile +12 -0
- data/LICENSE.txt +22 -0
- data/Procfile +1 -0
- data/README.md +29 -0
- data/Rakefile +1 -0
- data/config.ru +5 -0
- data/datagram.gemspec +23 -0
- data/db/migrate/1_create_queries.rb +9 -0
- data/db/migrate/2_add_name_to_queries.rb +5 -0
- data/lib/datagram/version.rb +3 -0
- data/lib/datagram.rb +135 -0
- data/lib/views/application.coffee +222 -0
- data/lib/views/index.haml +47 -0
- data/lib/views/layout.haml +17 -0
- data/lib/views/style.sass +179 -0
- data/public/ace/ace.js +15209 -0
- data/public/ace/ext-elastic_tabstops_lite.js +301 -0
- data/public/ace/ext-emmet.js +253 -0
- data/public/ace/ext-searchbox.js +441 -0
- data/public/ace/ext-spellcheck.js +67 -0
- data/public/ace/ext-static_highlight.js +96 -0
- data/public/ace/ext-textarea.js +492 -0
- data/public/ace/ext-whitespace.js +204 -0
- data/public/ace/keybinding-emacs.js +962 -0
- data/public/ace/keybinding-vim.js +1704 -0
- data/public/ace/mode-abap.js +260 -0
- data/public/ace/mode-asciidoc.js +372 -0
- data/public/ace/mode-c9search.js +182 -0
- data/public/ace/mode-c_cpp.js +737 -0
- data/public/ace/mode-clojure.js +299 -0
- data/public/ace/mode-coffee.js +426 -0
- data/public/ace/mode-coldfusion.js +1753 -0
- data/public/ace/mode-csharp.js +612 -0
- data/public/ace/mode-css.js +773 -0
- data/public/ace/mode-curly.js +1950 -0
- data/public/ace/mode-dart.js +945 -0
- data/public/ace/mode-diff.js +166 -0
- data/public/ace/mode-django.js +1969 -0
- data/public/ace/mode-dot.js +320 -0
- data/public/ace/mode-ftl.js +907 -0
- data/public/ace/mode-glsl.js +810 -0
- data/public/ace/mode-golang.js +632 -0
- data/public/ace/mode-groovy.js +1037 -0
- data/public/ace/mode-haml.js +487 -0
- data/public/ace/mode-haxe.js +609 -0
- data/public/ace/mode-html.js +1881 -0
- data/public/ace/mode-jade.js +1951 -0
- data/public/ace/mode-java.js +996 -0
- data/public/ace/mode-javascript.js +876 -0
- data/public/ace/mode-json.js +578 -0
- data/public/ace/mode-jsp.js +1351 -0
- data/public/ace/mode-jsx.js +635 -0
- data/public/ace/mode-latex.js +189 -0
- data/public/ace/mode-less.js +807 -0
- data/public/ace/mode-liquid.js +862 -0
- data/public/ace/mode-lisp.js +138 -0
- data/public/ace/mode-livescript.js +288 -0
- data/public/ace/mode-logiql.js +664 -0
- data/public/ace/mode-lsl.js +828 -0
- data/public/ace/mode-lua.js +455 -0
- data/public/ace/mode-luapage.js +2340 -0
- data/public/ace/mode-lucene.js +64 -0
- data/public/ace/mode-makefile.js +313 -0
- data/public/ace/mode-markdown.js +2280 -0
- data/public/ace/mode-mushcode.js +704 -0
- data/public/ace/mode-mushcode_high_rules.js +569 -0
- data/public/ace/mode-objectivec.js +659 -0
- data/public/ace/mode-ocaml.js +443 -0
- data/public/ace/mode-pascal.js +233 -0
- data/public/ace/mode-perl.js +316 -0
- data/public/ace/mode-pgsql.js +908 -0
- data/public/ace/mode-php.js +2291 -0
- data/public/ace/mode-powershell.js +618 -0
- data/public/ace/mode-python.js +264 -0
- data/public/ace/mode-r.js +404 -0
- data/public/ace/mode-rdoc.js +184 -0
- data/public/ace/mode-rhtml.js +2168 -0
- data/public/ace/mode-ruby.js +431 -0
- data/public/ace/mode-sass.js +442 -0
- data/public/ace/mode-scad.js +670 -0
- data/public/ace/mode-scala.js +1025 -0
- data/public/ace/mode-scheme.js +144 -0
- data/public/ace/mode-scss.js +832 -0
- data/public/ace/mode-sh.js +204 -0
- data/public/ace/mode-sql.js +118 -0
- data/public/ace/mode-stylus.js +483 -0
- data/public/ace/mode-svg.js +1442 -0
- data/public/ace/mode-tcl.js +319 -0
- data/public/ace/mode-tex.js +166 -0
- data/public/ace/mode-text.js +0 -0
- data/public/ace/mode-textile.js +170 -0
- data/public/ace/mode-tmsnippet.js +200 -0
- data/public/ace/mode-toml.js +180 -0
- data/public/ace/mode-typescript.js +961 -0
- data/public/ace/mode-vbscript.js +281 -0
- data/public/ace/mode-velocity.js +962 -0
- data/public/ace/mode-xml.js +789 -0
- data/public/ace/mode-xquery.js +2750 -0
- data/public/ace/mode-yaml.js +289 -0
- data/public/ace/theme-ambiance.js +202 -0
- data/public/ace/theme-chaos.js +182 -0
- data/public/ace/theme-chrome.js +161 -0
- data/public/ace/theme-clouds.js +135 -0
- data/public/ace/theme-clouds_midnight.js +136 -0
- data/public/ace/theme-cobalt.js +150 -0
- data/public/ace/theme-crimson_editor.js +154 -0
- data/public/ace/theme-dawn.js +146 -0
- data/public/ace/theme-dreamweaver.js +173 -0
- data/public/ace/theme-eclipse.js +122 -0
- data/public/ace/theme-github.js +136 -0
- data/public/ace/theme-idle_fingers.js +136 -0
- data/public/ace/theme-kr.js +143 -0
- data/public/ace/theme-merbivore.js +135 -0
- data/public/ace/theme-merbivore_soft.js +136 -0
- data/public/ace/theme-mono_industrial.js +148 -0
- data/public/ace/theme-monokai.js +140 -0
- data/public/ace/theme-pastel_on_dark.js +148 -0
- data/public/ace/theme-solarized_dark.js +128 -0
- data/public/ace/theme-solarized_light.js +131 -0
- data/public/ace/theme-terminal.js +154 -0
- data/public/ace/theme-textmate.js +0 -0
- data/public/ace/theme-tomorrow.js +147 -0
- data/public/ace/theme-tomorrow_night.js +147 -0
- data/public/ace/theme-tomorrow_night_blue.js +145 -0
- data/public/ace/theme-tomorrow_night_bright.js +147 -0
- data/public/ace/theme-tomorrow_night_eighties.js +144 -0
- data/public/ace/theme-twilight.js +147 -0
- data/public/ace/theme-vibrant_ink.js +131 -0
- data/public/ace/theme-xcode.js +125 -0
- data/public/ace/worker-coffee.js +7091 -0
- data/public/ace/worker-css.js +8289 -0
- data/public/ace/worker-javascript.js +6496 -0
- data/public/ace/worker-json.js +2305 -0
- data/public/ace/worker-lua.js +3313 -0
- data/public/ace/worker-php.js +6743 -0
- data/public/ace/worker-xquery.js +21897 -0
- data/public/font/FontAwesome.otf +0 -0
- data/public/font/fontawesome-webfont.eot +0 -0
- data/public/font/fontawesome-webfont.svg +284 -0
- data/public/font/fontawesome-webfont.ttf +0 -0
- data/public/font/fontawesome-webfont.woff +0 -0
- data/public/font-awesome.css +540 -0
- data/public/jquery.js +9597 -0
- data/script/migrate.sh +2 -0
- metadata +242 -0
@@ -0,0 +1,131 @@
|
|
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/vibrant_ink', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
|
32
|
+
|
33
|
+
exports.isDark = true;
|
34
|
+
exports.cssClass = "ace-vibrant-ink";
|
35
|
+
exports.cssText = ".ace-vibrant-ink .ace_gutter {\
|
36
|
+
background: #1a1a1a;\
|
37
|
+
color: #BEBEBE\
|
38
|
+
}\
|
39
|
+
.ace-vibrant-ink .ace_print-margin {\
|
40
|
+
width: 1px;\
|
41
|
+
background: #1a1a1a\
|
42
|
+
}\
|
43
|
+
.ace-vibrant-ink .ace_scroller {\
|
44
|
+
background-color: #0F0F0F\
|
45
|
+
}\
|
46
|
+
.ace-vibrant-ink .ace_text-layer {\
|
47
|
+
color: #FFFFFF\
|
48
|
+
}\
|
49
|
+
.ace-vibrant-ink .ace_cursor {\
|
50
|
+
border-left: 2px solid #FFFFFF\
|
51
|
+
}\
|
52
|
+
.ace-vibrant-ink .ace_overwrite-cursors .ace_cursor {\
|
53
|
+
border-left: 0px;\
|
54
|
+
border-bottom: 1px solid #FFFFFF\
|
55
|
+
}\
|
56
|
+
.ace-vibrant-ink .ace_marker-layer .ace_selection {\
|
57
|
+
background: #6699CC\
|
58
|
+
}\
|
59
|
+
.ace-vibrant-ink.ace_multiselect .ace_selection.ace_start {\
|
60
|
+
box-shadow: 0 0 3px 0px #0F0F0F;\
|
61
|
+
border-radius: 2px\
|
62
|
+
}\
|
63
|
+
.ace-vibrant-ink .ace_marker-layer .ace_step {\
|
64
|
+
background: rgb(102, 82, 0)\
|
65
|
+
}\
|
66
|
+
.ace-vibrant-ink .ace_marker-layer .ace_bracket {\
|
67
|
+
margin: -1px 0 0 -1px;\
|
68
|
+
border: 1px solid #404040\
|
69
|
+
}\
|
70
|
+
.ace-vibrant-ink .ace_marker-layer .ace_active-line {\
|
71
|
+
background: #333333\
|
72
|
+
}\
|
73
|
+
.ace-vibrant-ink .ace_gutter-active-line {\
|
74
|
+
background-color: #333333\
|
75
|
+
}\
|
76
|
+
.ace-vibrant-ink .ace_marker-layer .ace_selected-word {\
|
77
|
+
border: 1px solid #6699CC\
|
78
|
+
}\
|
79
|
+
.ace-vibrant-ink .ace_invisible {\
|
80
|
+
color: #404040\
|
81
|
+
}\
|
82
|
+
.ace-vibrant-ink .ace_keyword,\
|
83
|
+
.ace-vibrant-ink .ace_meta {\
|
84
|
+
color: #FF6600\
|
85
|
+
}\
|
86
|
+
.ace-vibrant-ink .ace_constant,\
|
87
|
+
.ace-vibrant-ink .ace_constant.ace_character,\
|
88
|
+
.ace-vibrant-ink .ace_constant.ace_character.ace_escape,\
|
89
|
+
.ace-vibrant-ink .ace_constant.ace_other {\
|
90
|
+
color: #339999\
|
91
|
+
}\
|
92
|
+
.ace-vibrant-ink .ace_constant.ace_numeric {\
|
93
|
+
color: #99CC99\
|
94
|
+
}\
|
95
|
+
.ace-vibrant-ink .ace_invalid,\
|
96
|
+
.ace-vibrant-ink .ace_invalid.ace_deprecated {\
|
97
|
+
color: #CCFF33;\
|
98
|
+
background-color: #000000\
|
99
|
+
}\
|
100
|
+
.ace-vibrant-ink .ace_fold {\
|
101
|
+
background-color: #FFCC00;\
|
102
|
+
border-color: #FFFFFF\
|
103
|
+
}\
|
104
|
+
.ace-vibrant-ink .ace_entity.ace_name.ace_function,\
|
105
|
+
.ace-vibrant-ink .ace_support.ace_function,\
|
106
|
+
.ace-vibrant-ink .ace_variable {\
|
107
|
+
color: #FFCC00\
|
108
|
+
}\
|
109
|
+
.ace-vibrant-ink .ace_variable.ace_parameter {\
|
110
|
+
font-style: italic\
|
111
|
+
}\
|
112
|
+
.ace-vibrant-ink .ace_string {\
|
113
|
+
color: #66FF00\
|
114
|
+
}\
|
115
|
+
.ace-vibrant-ink .ace_string.ace_regexp {\
|
116
|
+
color: #44B4CC\
|
117
|
+
}\
|
118
|
+
.ace-vibrant-ink .ace_comment {\
|
119
|
+
color: #9933CC\
|
120
|
+
}\
|
121
|
+
.ace-vibrant-ink .ace_entity.ace_other.ace_attribute-name {\
|
122
|
+
font-style: italic;\
|
123
|
+
color: #99CC99\
|
124
|
+
}\
|
125
|
+
.ace-vibrant-ink .ace_indent-guide {\
|
126
|
+
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPg5+f/z7Bq1ar/AA5lBCqoLxsgAAAAAElFTkSuQmCC) right repeat-y\
|
127
|
+
}";
|
128
|
+
|
129
|
+
var dom = require("../lib/dom");
|
130
|
+
dom.importCssString(exports.cssText, exports.cssClass);
|
131
|
+
});
|
@@ -0,0 +1,125 @@
|
|
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/xcode', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
|
32
|
+
|
33
|
+
exports.isDark = false;
|
34
|
+
exports.cssClass = "ace-xcode";
|
35
|
+
exports.cssText = "/* THIS THEME WAS AUTOGENERATED BY Theme.tmpl.css (UUID: EE3AD170-2B7F-4DE1-B724-C75F13FE0085) */\
|
36
|
+
.ace-xcode .ace_gutter {\
|
37
|
+
background: #e8e8e8;\
|
38
|
+
color: #333\
|
39
|
+
}\
|
40
|
+
.ace-xcode .ace_print-margin {\
|
41
|
+
width: 1px;\
|
42
|
+
background: #e8e8e8\
|
43
|
+
}\
|
44
|
+
.ace-xcode .ace_scroller {\
|
45
|
+
background-color: #FFFFFF\
|
46
|
+
}\
|
47
|
+
.ace-xcode .ace_text-layer {\
|
48
|
+
color: #000000\
|
49
|
+
}\
|
50
|
+
.ace-xcode .ace_cursor {\
|
51
|
+
border-left: 2px solid #000000\
|
52
|
+
}\
|
53
|
+
.ace-xcode .ace_overwrite-cursors .ace_cursor {\
|
54
|
+
border-left: 0px;\
|
55
|
+
border-bottom: 1px solid #000000\
|
56
|
+
}\
|
57
|
+
.ace-xcode .ace_marker-layer .ace_selection {\
|
58
|
+
background: #B5D5FF\
|
59
|
+
}\
|
60
|
+
.ace-xcode.ace_multiselect .ace_selection.ace_start {\
|
61
|
+
box-shadow: 0 0 3px 0px #FFFFFF;\
|
62
|
+
border-radius: 2px\
|
63
|
+
}\
|
64
|
+
.ace-xcode .ace_marker-layer .ace_step {\
|
65
|
+
background: rgb(198, 219, 174)\
|
66
|
+
}\
|
67
|
+
.ace-xcode .ace_marker-layer .ace_bracket {\
|
68
|
+
margin: -1px 0 0 -1px;\
|
69
|
+
border: 1px solid #BFBFBF\
|
70
|
+
}\
|
71
|
+
.ace-xcode .ace_marker-layer .ace_active-line {\
|
72
|
+
background: rgba(0, 0, 0, 0.071)\
|
73
|
+
}\
|
74
|
+
.ace-xcode .ace_gutter-active-line {\
|
75
|
+
background-color: rgba(0, 0, 0, 0.071)\
|
76
|
+
}\
|
77
|
+
.ace-xcode .ace_marker-layer .ace_selected-word {\
|
78
|
+
border: 1px solid #B5D5FF\
|
79
|
+
}\
|
80
|
+
.ace-xcode .ace_constant.ace_language,\
|
81
|
+
.ace-xcode .ace_keyword,\
|
82
|
+
.ace-xcode .ace_meta,\
|
83
|
+
.ace-xcode .ace_variable.ace_language {\
|
84
|
+
color: #C800A4\
|
85
|
+
}\
|
86
|
+
.ace-xcode .ace_invisible {\
|
87
|
+
color: #BFBFBF\
|
88
|
+
}\
|
89
|
+
.ace-xcode .ace_constant.ace_character,\
|
90
|
+
.ace-xcode .ace_constant.ace_other {\
|
91
|
+
color: #275A5E\
|
92
|
+
}\
|
93
|
+
.ace-xcode .ace_constant.ace_numeric {\
|
94
|
+
color: #3A00DC\
|
95
|
+
}\
|
96
|
+
.ace-xcode .ace_entity.ace_other.ace_attribute-name,\
|
97
|
+
.ace-xcode .ace_support.ace_constant,\
|
98
|
+
.ace-xcode .ace_support.ace_function {\
|
99
|
+
color: #450084\
|
100
|
+
}\
|
101
|
+
.ace-xcode .ace_fold {\
|
102
|
+
background-color: #C800A4;\
|
103
|
+
border-color: #000000\
|
104
|
+
}\
|
105
|
+
.ace-xcode .ace_entity.ace_name.ace_tag,\
|
106
|
+
.ace-xcode .ace_support.ace_class,\
|
107
|
+
.ace-xcode .ace_support.ace_type {\
|
108
|
+
color: #790EAD\
|
109
|
+
}\
|
110
|
+
.ace-xcode .ace_storage {\
|
111
|
+
color: #C900A4\
|
112
|
+
}\
|
113
|
+
.ace-xcode .ace_string {\
|
114
|
+
color: #DF0002\
|
115
|
+
}\
|
116
|
+
.ace-xcode .ace_comment {\
|
117
|
+
color: #008E00\
|
118
|
+
}\
|
119
|
+
.ace-xcode .ace_indent-guide {\
|
120
|
+
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==) right repeat-y;\
|
121
|
+
}";
|
122
|
+
|
123
|
+
var dom = require("../lib/dom");
|
124
|
+
dom.importCssString(exports.cssText, exports.cssClass);
|
125
|
+
});
|