luca 0.9.89 → 0.9.91
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +11 -1
- data/Gemfile +5 -2
- data/Gemfile.lock +84 -56
- data/Rakefile +10 -2
- data/app/assets/javascripts/luca/components/application.coffee +82 -89
- data/app/assets/javascripts/luca/components/collection_view.coffee +9 -5
- data/app/assets/javascripts/luca/components/controller.coffee +72 -11
- data/app/assets/javascripts/luca/components/fields/base.coffee +61 -8
- data/app/assets/javascripts/luca/components/fields/button_field.coffee +53 -7
- data/app/assets/javascripts/luca/components/fields/checkbox_array.coffee +12 -7
- data/app/assets/javascripts/luca/components/fields/text_field.coffee +1 -1
- data/app/assets/javascripts/luca/components/form_view.coffee +2 -2
- data/app/assets/javascripts/luca/components/grid_layout_view.coffee +0 -1
- data/app/assets/javascripts/luca/components/page.coffee +1 -0
- data/app/assets/javascripts/luca/components/table_view.coffee +2 -2
- data/app/assets/javascripts/luca/concerns/dom_helpers.coffee +2 -2
- data/app/assets/javascripts/luca/containers/card_view.coffee +84 -54
- data/app/assets/javascripts/luca/containers/container.coffee +126 -46
- data/app/assets/javascripts/luca/containers/modal_view.coffee +9 -9
- data/app/assets/javascripts/luca/containers/page_controller.coffee +25 -0
- data/app/assets/javascripts/luca/containers/panel_toolbar.coffee +1 -1
- data/app/assets/javascripts/luca/containers/viewport.coffee +2 -5
- data/app/assets/javascripts/luca/core/collection.coffee +18 -4
- data/app/assets/javascripts/luca/core/model.coffee +1 -1
- data/app/assets/javascripts/luca/core/panel.coffee +1 -1
- data/app/assets/javascripts/luca/core/view.coffee +26 -7
- data/app/assets/javascripts/luca/development/code_sync_manager.coffee +51 -4
- data/app/assets/javascripts/luca/development/console.coffee +1 -1
- data/app/assets/javascripts/luca/framework.coffee +1 -1
- data/app/assets/javascripts/luca/index.coffee +1 -0
- data/app/assets/javascripts/luca/util/luca.coffee +2 -1
- data/app/assets/stylesheets/luca/components/viewport.scss +0 -4
- data/bin/luca +14 -0
- data/docs/framework.json +1 -1
- data/docs/luca-framework-documentation.js +1 -0
- data/lib/luca/cli/generate.rb +37 -0
- data/lib/luca/cli/server.rb +20 -0
- data/lib/luca/cli/sync.rb +40 -0
- data/lib/luca/cli/watch.rb +16 -0
- data/lib/luca/cli.rb +68 -0
- data/lib/luca/collection/endpoint.rb +1 -0
- data/lib/luca/component_definition.rb +23 -5
- data/lib/luca/luca_application.rb +18 -7
- data/lib/luca/rails/version.rb +1 -1
- data/lib/luca/server.rb +7 -0
- data/lib/luca/stylesheet.rb +2 -3
- data/lib/luca/version.rb +3 -0
- data/lib/luca/watcher.rb +72 -0
- data/lib/luca.rb +8 -1
- data/luca.gemspec +14 -7
- data/site/.bundle/config +2 -0
- data/site/.gitignore +5 -0
- data/site/.rvmrc +1 -0
- data/site/CHANGELOG.md +41 -0
- data/site/DOCS.md +41 -0
- data/site/Gemfile +8 -0
- data/site/Gemfile.lock +134 -0
- data/site/LICENSE.md +19 -0
- data/site/config.rb +84 -0
- data/site/helpers/site_helpers.rb +20 -0
- data/site/html5bp-docs/README.md +38 -0
- data/site/html5bp-docs/contribute.md +104 -0
- data/site/html5bp-docs/crossdomain.md +21 -0
- data/site/html5bp-docs/css.md +135 -0
- data/site/html5bp-docs/extend.md +507 -0
- data/site/html5bp-docs/faq.md +77 -0
- data/site/html5bp-docs/htaccess.md +323 -0
- data/site/html5bp-docs/html.md +170 -0
- data/site/html5bp-docs/js.md +31 -0
- data/site/html5bp-docs/misc.md +25 -0
- data/site/html5bp-docs/usage.md +109 -0
- data/site/readme.md +47 -0
- data/site/source/.htaccess +540 -0
- data/site/source/404.html +157 -0
- data/site/source/app/assets/javascripts/dependencies.js.coffee +6 -0
- data/site/source/app/assets/javascripts/docs/application.coffee +64 -0
- data/site/source/app/assets/javascripts/docs/collections/docs_documentation.coffee +17 -0
- data/site/source/app/assets/javascripts/docs/collections/github_repositories.coffee +7 -0
- data/site/source/app/assets/javascripts/docs/collections/index.coffee +1 -0
- data/site/source/app/assets/javascripts/docs/collections/luca_documentation.coffee +17 -0
- data/site/source/app/assets/javascripts/docs/collections/public_gists.coffee +4 -0
- data/site/source/app/assets/javascripts/docs/config.coffee +5 -0
- data/site/source/app/assets/javascripts/docs/index.coffee +12 -0
- data/site/source/app/assets/javascripts/docs/lib/router.coffee +3 -0
- data/site/source/app/assets/javascripts/docs/lib/util.coffee +0 -0
- data/site/source/app/assets/javascripts/docs/models/component.coffee +99 -0
- data/site/source/app/assets/javascripts/docs/models/github_repository.coffee +3 -0
- data/site/source/app/assets/javascripts/docs/models/index.coffee +1 -0
- data/site/source/app/assets/javascripts/docs/templates/component_documentation.jst.ejs +55 -0
- data/site/source/app/assets/javascripts/docs/templates/examples_browser/overview.jst.ejs +4 -0
- data/site/source/app/assets/javascripts/docs/templates/examples_browser/selector.jst.ejs +11 -0
- data/site/source/app/assets/javascripts/docs/templates/github_repository.jst.ejs +4 -0
- data/site/source/app/assets/javascripts/docs/templates/layouts/main.jst.ejs +4 -0
- data/site/source/app/assets/javascripts/docs/templates/left_navigation.jst.ejs +5 -0
- data/site/source/app/assets/javascripts/docs/templates/pages/getting_started.jst.ejs +78 -0
- data/site/source/app/assets/javascripts/docs/templates/pages/home.jst.ejs +57 -0
- data/site/source/app/assets/javascripts/docs/views/components/code_editor/index.coffee +0 -0
- data/site/source/app/assets/javascripts/docs/views/components/code_editor.coffee +45 -0
- data/site/source/app/assets/javascripts/docs/views/components/component_documentation.coffee +72 -0
- data/site/source/app/assets/javascripts/docs/views/index.coffee +3 -0
- data/site/source/app/assets/javascripts/docs/views/pages/browse_source/details.coffee +37 -0
- data/site/source/app/assets/javascripts/docs/views/pages/browse_source/list.coffee +31 -0
- data/site/source/app/assets/javascripts/docs/views/pages/browse_source.coffee +46 -0
- data/site/source/app/assets/javascripts/docs/views/pages/component_editor.coffee +10 -0
- data/site/source/app/assets/javascripts/docs/views/pages/examples_browser/docs.coffee +12 -0
- data/site/source/app/assets/javascripts/docs/views/pages/examples_browser/source.coffee +13 -0
- data/site/source/app/assets/javascripts/docs/views/pages/examples_browser.coffee +102 -0
- data/site/source/app/assets/javascripts/docs/views/pages/home.coffee +10 -0
- data/site/source/app/assets/javascripts/docs/views/views/api_browser/index.coffee +43 -0
- data/site/source/app/assets/javascripts/docs/views/views/collection_view_examples/grid_layout_view_example.coffee +14 -0
- data/site/source/app/assets/javascripts/docs/views/views/collection_view_examples/table_view_example.coffee +39 -0
- data/site/source/app/assets/javascripts/docs/views/views/form_view_examples/basic_example.coffee +38 -0
- data/site/source/app/assets/javascripts/docs/views/views/form_view_examples/complex_layout.coffee +110 -0
- data/site/source/app/assets/javascripts/docs/views/views/top_navigation.coffee +6 -0
- data/site/source/app/assets/javascripts/docs-docs.js +1 -0
- data/site/source/app/assets/javascripts/luca-docs.js +1 -0
- data/site/source/app/assets/javascripts/luca-framework-documentation.js +1 -0
- data/site/source/app/assets/javascripts/site.js.coffee +4 -0
- data/site/source/app/assets/javascripts/vendor/codemirror.js +4786 -0
- data/site/source/app/assets/javascripts/vendor/coffeescript.js +346 -0
- data/site/source/app/assets/javascripts/vendor/css.js +465 -0
- data/site/source/app/assets/javascripts/vendor/htmlmixed.js +84 -0
- data/site/source/app/assets/javascripts/vendor/javascript.js +422 -0
- data/site/source/app/assets/javascripts/vendor/js-beautify.js +1353 -0
- data/site/source/app/assets/javascripts/vendor/modernizr-2.6.1.min.js +4 -0
- data/site/source/app/assets/javascripts/vendor/vim.js +2511 -0
- data/site/source/app/assets/stylesheets/docs/api-browser.css.scss +5 -0
- data/site/source/app/assets/stylesheets/docs/application.css.scss +35 -0
- data/site/source/app/assets/stylesheets/docs/browse-source.css.scss +5 -0
- data/site/source/app/assets/stylesheets/docs/scrollable-table.css.scss +5 -0
- data/site/source/app/assets/stylesheets/site.css.scss +2 -0
- data/site/source/app/assets/stylesheets/vendor/codemirror.css +240 -0
- data/site/source/app/assets/stylesheets/vendor/prettify-tomorrow-night-bright.css +160 -0
- data/site/source/app/assets/stylesheets/vendor/twilight.css +26 -0
- data/site/source/crossdomain.xml +15 -0
- data/site/source/documentation.html.haml +1 -0
- data/site/source/favicon_base.png +0 -0
- data/site/source/humans.txt +15 -0
- data/site/source/images/background.png +0 -0
- data/site/source/images/middleman.png +0 -0
- data/site/source/index.html.haml +1 -0
- data/site/source/layouts/layout.haml +55 -0
- data/site/source/readme.md +63 -0
- data/site/source/robots.txt +3 -0
- data/spec/javascripts/components/collection_view_spec.coffee +1 -1
- data/spec/javascripts/containers/card_view_spec.coffee +58 -5
- data/spec/javascripts/core/collection_spec.coffee +1 -1
- data/spec/javascripts/core/view_spec.coffee +2 -2
- data/vendor/assets/javascripts/backbone-min.js +37 -33
- data/vendor/assets/javascripts/backbone-query.min.js +1 -1
- data/vendor/assets/javascripts/jquery.js +5 -4
- data/vendor/assets/javascripts/luca-dependencies.min.js +8 -6
- data/vendor/assets/javascripts/luca-development.min.js +1 -1
- data/vendor/assets/javascripts/luca.full.min.js +12 -10
- data/vendor/assets/javascripts/luca.min.js +5 -5
- data/vendor/assets/javascripts/underscore-min.js +1 -5
- data/vendor/assets/javascripts/underscore-string.min.js +1 -1
- data/vendor/assets/stylesheets/luca-components.css +0 -2
- data/vendor/assets/stylesheets/luca-development.css +1 -1
- metadata +215 -39
- data/app/assets/javascripts/luca/components/page_controller.coffee +0 -3
- data/app/assets/javascripts/luca/core/collection_view.coffee +0 -150
- data/site/assets/bootstrap.min.js +0 -7
- data/site/assets/dependencies.js +0 -94
- data/site/assets/glyphicons-halflings-white.png +0 -0
- data/site/assets/glyphicons-halflings.png +0 -0
- data/site/assets/luca-ui-bootstrap.css +0 -1331
- data/site/assets/luca-ui-bootstrap.js +0 -9
- data/site/assets/luca-ui-development-tools.css +0 -234
- data/site/assets/luca-ui-development-tools.js +0 -18561
- data/site/assets/luca-ui-development-tools.min.js +0 -15
- data/site/assets/luca-ui-full.min.js +0 -8
- data/site/assets/luca-ui.min.js +0 -4
- data/site/assets/sandbox.css +0 -62
- data/site/assets/sandbox.js +0 -469
- data/site/docs/application.html +0 -41
- data/site/docs/caching.html +0 -43
- data/site/docs/collection.html +0 -75
- data/site/docs/collection_manager.html +0 -71
- data/site/docs/containers.html +0 -118
- data/site/docs/events.html +0 -153
- data/site/docs/view.html +0 -128
- data/site/img/glyphicons-halflings-white.png +0 -0
- data/site/img/glyphicons-halflings.png +0 -0
- data/site/index.html +0 -20
- data/site/source-map.js +0 -1
@@ -0,0 +1,35 @@
|
|
1
|
+
.docs-application > .luca-controller {
|
2
|
+
padding-top: 20px;
|
3
|
+
}
|
4
|
+
|
5
|
+
.docs-browse-source {
|
6
|
+
line-height: 2;
|
7
|
+
}
|
8
|
+
|
9
|
+
.docs-examples-browser {
|
10
|
+
.panel-selector {
|
11
|
+
padding-top: 5px;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
.hero-unit {
|
16
|
+
ul.links {
|
17
|
+
margin-left: 0px;
|
18
|
+
}
|
19
|
+
h1 {
|
20
|
+
margin-bottom: 30px;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
.docs-home {
|
25
|
+
.hero-unit {
|
26
|
+
.links {
|
27
|
+
margin-top: 25px;
|
28
|
+
}
|
29
|
+
.links li {
|
30
|
+
list-style-type:none;
|
31
|
+
display: inline;
|
32
|
+
padding-right: 25px;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
@@ -0,0 +1,240 @@
|
|
1
|
+
/* BASICS */
|
2
|
+
|
3
|
+
.CodeMirror {
|
4
|
+
/* Set height, width, borders, and global font properties here */
|
5
|
+
font-family: monospace;
|
6
|
+
height: 300px;
|
7
|
+
}
|
8
|
+
.CodeMirror-scroll {
|
9
|
+
/* Set scrolling behaviour here */
|
10
|
+
overflow: auto;
|
11
|
+
}
|
12
|
+
|
13
|
+
/* PADDING */
|
14
|
+
|
15
|
+
.CodeMirror-lines {
|
16
|
+
padding: 4px 0; /* Vertical padding around content */
|
17
|
+
}
|
18
|
+
.CodeMirror pre {
|
19
|
+
padding: 0 4px; /* Horizontal padding of content */
|
20
|
+
}
|
21
|
+
|
22
|
+
.CodeMirror-scrollbar-filler {
|
23
|
+
background-color: white; /* The little square between H and V scrollbars */
|
24
|
+
}
|
25
|
+
|
26
|
+
/* GUTTER */
|
27
|
+
|
28
|
+
.CodeMirror-gutters {
|
29
|
+
border-right: 1px solid #ddd;
|
30
|
+
background-color: #f7f7f7;
|
31
|
+
}
|
32
|
+
.CodeMirror-linenumbers {}
|
33
|
+
.CodeMirror-linenumber {
|
34
|
+
padding: 0 3px 0 5px;
|
35
|
+
min-width: 20px;
|
36
|
+
text-align: right;
|
37
|
+
color: #999;
|
38
|
+
}
|
39
|
+
|
40
|
+
/* CURSOR */
|
41
|
+
|
42
|
+
.CodeMirror div.CodeMirror-cursor {
|
43
|
+
border-left: 1px solid black;
|
44
|
+
}
|
45
|
+
/* Shown when moving in bi-directional text */
|
46
|
+
.CodeMirror div.CodeMirror-secondarycursor {
|
47
|
+
border-left: 1px solid silver;
|
48
|
+
}
|
49
|
+
.CodeMirror.cm-keymap-fat-cursor div.CodeMirror-cursor {
|
50
|
+
width: auto;
|
51
|
+
border: 0;
|
52
|
+
background: transparent;
|
53
|
+
background: rgba(0, 200, 0, .4);
|
54
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#6600c800, endColorstr=#4c00c800);
|
55
|
+
}
|
56
|
+
/* Kludge to turn off filter in ie9+, which also accepts rgba */
|
57
|
+
.CodeMirror.cm-keymap-fat-cursor div.CodeMirror-cursor:not(#nonsense_id) {
|
58
|
+
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
|
59
|
+
}
|
60
|
+
/* Can style cursor different in overwrite (non-insert) mode */
|
61
|
+
.CodeMirror div.CodeMirror-cursor.CodeMirror-overwrite {}
|
62
|
+
|
63
|
+
/* DEFAULT THEME */
|
64
|
+
|
65
|
+
.cm-s-default .cm-keyword {color: #708;}
|
66
|
+
.cm-s-default .cm-atom {color: #219;}
|
67
|
+
.cm-s-default .cm-number {color: #164;}
|
68
|
+
.cm-s-default .cm-def {color: #00f;}
|
69
|
+
.cm-s-default .cm-variable {color: black;}
|
70
|
+
.cm-s-default .cm-variable-2 {color: #05a;}
|
71
|
+
.cm-s-default .cm-variable-3 {color: #085;}
|
72
|
+
.cm-s-default .cm-property {color: black;}
|
73
|
+
.cm-s-default .cm-operator {color: black;}
|
74
|
+
.cm-s-default .cm-comment {color: #a50;}
|
75
|
+
.cm-s-default .cm-string {color: #a11;}
|
76
|
+
.cm-s-default .cm-string-2 {color: #f50;}
|
77
|
+
.cm-s-default .cm-meta {color: #555;}
|
78
|
+
.cm-s-default .cm-error {color: #f00;}
|
79
|
+
.cm-s-default .cm-qualifier {color: #555;}
|
80
|
+
.cm-s-default .cm-builtin {color: #30a;}
|
81
|
+
.cm-s-default .cm-bracket {color: #997;}
|
82
|
+
.cm-s-default .cm-tag {color: #170;}
|
83
|
+
.cm-s-default .cm-attribute {color: #00c;}
|
84
|
+
.cm-s-default .cm-header {color: blue;}
|
85
|
+
.cm-s-default .cm-quote {color: #090;}
|
86
|
+
.cm-s-default .cm-hr {color: #999;}
|
87
|
+
.cm-s-default .cm-link {color: #00c;}
|
88
|
+
|
89
|
+
.cm-negative {color: #d44;}
|
90
|
+
.cm-positive {color: #292;}
|
91
|
+
.cm-header, .cm-strong {font-weight: bold;}
|
92
|
+
.cm-em {font-style: italic;}
|
93
|
+
.cm-emstrong {font-style: italic; font-weight: bold;}
|
94
|
+
.cm-link {text-decoration: underline;}
|
95
|
+
|
96
|
+
.cm-invalidchar {color: #f00;}
|
97
|
+
|
98
|
+
div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
|
99
|
+
div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
|
100
|
+
|
101
|
+
/* STOP */
|
102
|
+
|
103
|
+
/* The rest of this file contains styles related to the mechanics of
|
104
|
+
the editor. You probably shouldn't touch them. */
|
105
|
+
|
106
|
+
.CodeMirror {
|
107
|
+
line-height: 1;
|
108
|
+
position: relative;
|
109
|
+
overflow: hidden;
|
110
|
+
}
|
111
|
+
|
112
|
+
.CodeMirror-scroll {
|
113
|
+
/* 30px is the magic margin used to hide the element's real scrollbars */
|
114
|
+
/* See overflow: hidden in .CodeMirror, and the paddings in .CodeMirror-sizer */
|
115
|
+
margin-bottom: -30px; margin-right: -30px;
|
116
|
+
padding-bottom: 30px; padding-right: 30px;
|
117
|
+
height: 100%;
|
118
|
+
outline: none; /* Prevent dragging from highlighting the element */
|
119
|
+
position: relative;
|
120
|
+
}
|
121
|
+
.CodeMirror-sizer {
|
122
|
+
position: relative;
|
123
|
+
}
|
124
|
+
|
125
|
+
/* The fake, visible scrollbars. Used to force redraw during scrolling
|
126
|
+
before actuall scrolling happens, thus preventing shaking and
|
127
|
+
flickering artifacts. */
|
128
|
+
.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler {
|
129
|
+
position: absolute;
|
130
|
+
z-index: 6;
|
131
|
+
display: none;
|
132
|
+
}
|
133
|
+
.CodeMirror-vscrollbar {
|
134
|
+
right: 0; top: 0;
|
135
|
+
overflow-x: hidden;
|
136
|
+
overflow-y: scroll;
|
137
|
+
}
|
138
|
+
.CodeMirror-hscrollbar {
|
139
|
+
bottom: 0; left: 0;
|
140
|
+
overflow-y: hidden;
|
141
|
+
overflow-x: scroll;
|
142
|
+
}
|
143
|
+
.CodeMirror-scrollbar-filler {
|
144
|
+
right: 0; bottom: 0;
|
145
|
+
z-index: 6;
|
146
|
+
}
|
147
|
+
|
148
|
+
.CodeMirror-gutters {
|
149
|
+
position: absolute; left: 0; top: 0;
|
150
|
+
height: 100%;
|
151
|
+
z-index: 3;
|
152
|
+
}
|
153
|
+
.CodeMirror-gutter {
|
154
|
+
height: 100%;
|
155
|
+
display: inline-block;
|
156
|
+
/* Hack to make IE7 behave */
|
157
|
+
*zoom:1;
|
158
|
+
*display:inline;
|
159
|
+
}
|
160
|
+
.CodeMirror-gutter-elt {
|
161
|
+
position: absolute;
|
162
|
+
cursor: default;
|
163
|
+
z-index: 4;
|
164
|
+
}
|
165
|
+
|
166
|
+
.CodeMirror-lines {
|
167
|
+
cursor: text;
|
168
|
+
}
|
169
|
+
.CodeMirror pre {
|
170
|
+
/* Reset some styles that the rest of the page might have set */
|
171
|
+
-moz-border-radius: 0; -webkit-border-radius: 0; -o-border-radius: 0; border-radius: 0;
|
172
|
+
border-width: 0;
|
173
|
+
background: transparent;
|
174
|
+
font-family: inherit;
|
175
|
+
font-size: inherit;
|
176
|
+
margin: 0;
|
177
|
+
white-space: pre;
|
178
|
+
word-wrap: normal;
|
179
|
+
line-height: inherit;
|
180
|
+
color: inherit;
|
181
|
+
z-index: 2;
|
182
|
+
position: relative;
|
183
|
+
overflow: visible;
|
184
|
+
}
|
185
|
+
.CodeMirror-wrap pre {
|
186
|
+
word-wrap: break-word;
|
187
|
+
white-space: pre-wrap;
|
188
|
+
word-break: normal;
|
189
|
+
}
|
190
|
+
.CodeMirror-linebackground {
|
191
|
+
position: absolute;
|
192
|
+
left: 0; right: 0; top: 0; bottom: 0;
|
193
|
+
z-index: 0;
|
194
|
+
}
|
195
|
+
|
196
|
+
.CodeMirror-linewidget {
|
197
|
+
position: relative;
|
198
|
+
z-index: 2;
|
199
|
+
overflow: auto;
|
200
|
+
}
|
201
|
+
|
202
|
+
.CodeMirror-wrap .CodeMirror-scroll {
|
203
|
+
overflow-x: hidden;
|
204
|
+
}
|
205
|
+
|
206
|
+
.CodeMirror-measure {
|
207
|
+
position: absolute;
|
208
|
+
width: 100%; height: 0px;
|
209
|
+
overflow: hidden;
|
210
|
+
visibility: hidden;
|
211
|
+
}
|
212
|
+
.CodeMirror-measure pre { position: static; }
|
213
|
+
|
214
|
+
.CodeMirror div.CodeMirror-cursor {
|
215
|
+
position: absolute;
|
216
|
+
visibility: hidden;
|
217
|
+
border-right: none;
|
218
|
+
width: 0;
|
219
|
+
}
|
220
|
+
.CodeMirror-focused div.CodeMirror-cursor {
|
221
|
+
visibility: visible;
|
222
|
+
}
|
223
|
+
|
224
|
+
.CodeMirror-selected { background: #d9d9d9; }
|
225
|
+
.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
|
226
|
+
|
227
|
+
.cm-searching {
|
228
|
+
background: #ffa;
|
229
|
+
background: rgba(255, 255, 0, .4);
|
230
|
+
}
|
231
|
+
|
232
|
+
/* IE7 hack to prevent it from returning funny offsetTops on the spans */
|
233
|
+
.CodeMirror span { *vertical-align: text-bottom; }
|
234
|
+
|
235
|
+
@media print {
|
236
|
+
/* Hide the cursor when printing */
|
237
|
+
.CodeMirror div.CodeMirror-cursor {
|
238
|
+
visibility: hidden;
|
239
|
+
}
|
240
|
+
}
|
@@ -0,0 +1,160 @@
|
|
1
|
+
/* Tomorrow Night Bright Theme */
|
2
|
+
/* Original theme - https://github.com/chriskempson/tomorrow-theme */
|
3
|
+
/* Pretty printing styles. Used with prettify.js. */
|
4
|
+
/* SPAN elements with the classes below are added by prettyprint. */
|
5
|
+
/* plain text */
|
6
|
+
.pln {
|
7
|
+
color: #eaeaea;
|
8
|
+
}
|
9
|
+
|
10
|
+
@media screen {
|
11
|
+
/* string content */
|
12
|
+
.str {
|
13
|
+
color: #b9ca4a;
|
14
|
+
}
|
15
|
+
|
16
|
+
/* a keyword */
|
17
|
+
.kwd {
|
18
|
+
color: #c397d8;
|
19
|
+
}
|
20
|
+
|
21
|
+
/* a comment */
|
22
|
+
.com {
|
23
|
+
color: #969896;
|
24
|
+
}
|
25
|
+
|
26
|
+
/* a type name */
|
27
|
+
.typ {
|
28
|
+
color: #7aa6da;
|
29
|
+
}
|
30
|
+
|
31
|
+
/* a literal value */
|
32
|
+
.lit {
|
33
|
+
color: #e78c45;
|
34
|
+
}
|
35
|
+
|
36
|
+
/* punctuation */
|
37
|
+
.pun {
|
38
|
+
color: #eaeaea;
|
39
|
+
}
|
40
|
+
|
41
|
+
/* lisp open bracket */
|
42
|
+
.opn {
|
43
|
+
color: #eaeaea;
|
44
|
+
}
|
45
|
+
|
46
|
+
/* lisp close bracket */
|
47
|
+
.clo {
|
48
|
+
color: #eaeaea;
|
49
|
+
}
|
50
|
+
|
51
|
+
/* a markup tag name */
|
52
|
+
.tag {
|
53
|
+
color: #d54e53;
|
54
|
+
}
|
55
|
+
|
56
|
+
/* a markup attribute name */
|
57
|
+
.atn {
|
58
|
+
color: #e78c45;
|
59
|
+
}
|
60
|
+
|
61
|
+
/* a markup attribute value */
|
62
|
+
.atv {
|
63
|
+
color: #70c0b1;
|
64
|
+
}
|
65
|
+
|
66
|
+
/* a declaration */
|
67
|
+
.dec {
|
68
|
+
color: #e78c45;
|
69
|
+
}
|
70
|
+
|
71
|
+
/* a variable name */
|
72
|
+
.var {
|
73
|
+
color: #d54e53;
|
74
|
+
}
|
75
|
+
|
76
|
+
/* a function name */
|
77
|
+
.fun {
|
78
|
+
color: #7aa6da;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
/* Use higher contrast and text-weight for printable form. */
|
82
|
+
@media print, projection {
|
83
|
+
.str {
|
84
|
+
color: #006600;
|
85
|
+
}
|
86
|
+
|
87
|
+
.kwd {
|
88
|
+
color: #006;
|
89
|
+
font-weight: bold;
|
90
|
+
}
|
91
|
+
|
92
|
+
.com {
|
93
|
+
color: #600;
|
94
|
+
font-style: italic;
|
95
|
+
}
|
96
|
+
|
97
|
+
.typ {
|
98
|
+
color: #404;
|
99
|
+
font-weight: bold;
|
100
|
+
}
|
101
|
+
|
102
|
+
.lit {
|
103
|
+
color: #004444;
|
104
|
+
}
|
105
|
+
|
106
|
+
.pun, .opn, .clo {
|
107
|
+
color: #444400;
|
108
|
+
}
|
109
|
+
|
110
|
+
.tag {
|
111
|
+
color: #006;
|
112
|
+
font-weight: bold;
|
113
|
+
}
|
114
|
+
|
115
|
+
.atn {
|
116
|
+
color: #440044;
|
117
|
+
}
|
118
|
+
|
119
|
+
.atv {
|
120
|
+
color: #006600;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
/* Style */
|
124
|
+
pre.prettyprint {
|
125
|
+
background: black;
|
126
|
+
font-family: Menlo, "Bitstream Vera Sans Mono", "DejaVu Sans Mono", Monaco, Consolas, monospace;
|
127
|
+
font-size: 12px;
|
128
|
+
line-height: 1.5;
|
129
|
+
border: 1px solid #cccccc;
|
130
|
+
padding: 10px;
|
131
|
+
}
|
132
|
+
|
133
|
+
/* Specify class=linenums on a pre to get line numbering */
|
134
|
+
ol.linenums {
|
135
|
+
margin-top: 0;
|
136
|
+
margin-bottom: 0;
|
137
|
+
}
|
138
|
+
|
139
|
+
/* IE indents via margin-left */
|
140
|
+
li.L0,
|
141
|
+
li.L1,
|
142
|
+
li.L2,
|
143
|
+
li.L3,
|
144
|
+
li.L4,
|
145
|
+
li.L5,
|
146
|
+
li.L6,
|
147
|
+
li.L7,
|
148
|
+
li.L8,
|
149
|
+
li.L9 {
|
150
|
+
/* */
|
151
|
+
}
|
152
|
+
|
153
|
+
/* Alternate shading for lines */
|
154
|
+
li.L1,
|
155
|
+
li.L3,
|
156
|
+
li.L5,
|
157
|
+
li.L7,
|
158
|
+
li.L9 {
|
159
|
+
/* */
|
160
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
.cm-s-twilight.CodeMirror { background: #141414; color: #f7f7f7; } /**/
|
2
|
+
.cm-s-twilight .CodeMirror-selected { background: #323232 !important; } /**/
|
3
|
+
|
4
|
+
.cm-s-twilight .CodeMirror-gutters { background: #222; border-right: 1px solid #aaa; }
|
5
|
+
.cm-s-twilight .CodeMirror-linenumber { color: #aaa; }
|
6
|
+
.cm-s-twilight .CodeMirror-cursor { border-left: 1px solid white !important; }
|
7
|
+
|
8
|
+
.cm-s-twilight .cm-keyword { color: #f9ee98; } /**/
|
9
|
+
.cm-s-twilight .cm-atom { color: #FC0; }
|
10
|
+
.cm-s-twilight .cm-number { color: #ca7841; } /**/
|
11
|
+
.cm-s-twilight .cm-def { color: #8DA6CE; }
|
12
|
+
.cm-s-twilight span.cm-variable-2, .cm-s-twilight span.cm-tag { color: #607392; } /**/
|
13
|
+
.cm-s-twilight span.cm-variable-3, .cm-s-twilight span.cm-def { color: #607392; } /**/
|
14
|
+
.cm-s-twilight .cm-operator { color: #cda869; } /**/
|
15
|
+
.cm-s-twilight .cm-comment { color:#777; font-style:italic; font-weight:normal; } /**/
|
16
|
+
.cm-s-twilight .cm-string { color:#8f9d6a; font-style:italic; } /**/
|
17
|
+
.cm-s-twilight .cm-string-2 { color:#bd6b18 } /*?*/
|
18
|
+
.cm-s-twilight .cm-meta { background-color:#141414; color:#f7f7f7; } /*?*/
|
19
|
+
.cm-s-twilight .cm-error { border-bottom: 1px solid red; }
|
20
|
+
.cm-s-twilight .cm-builtin { color: #cda869; } /*?*/
|
21
|
+
.cm-s-twilight .cm-tag { color: #997643; } /**/
|
22
|
+
.cm-s-twilight .cm-attribute { color: #d6bb6d; } /*?*/
|
23
|
+
.cm-s-twilight .cm-header { color: #FF6400; }
|
24
|
+
.cm-s-twilight .cm-hr { color: #AEAEAE; }
|
25
|
+
.cm-s-twilight .cm-link { color:#ad9361; font-style:italic; text-decoration:none; } /**/
|
26
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
|
3
|
+
<cross-domain-policy>
|
4
|
+
<!-- Read this: www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html -->
|
5
|
+
|
6
|
+
<!-- Most restrictive policy: -->
|
7
|
+
<site-control permitted-cross-domain-policies="none"/>
|
8
|
+
|
9
|
+
<!-- Least restrictive policy: -->
|
10
|
+
<!--
|
11
|
+
<site-control permitted-cross-domain-policies="all"/>
|
12
|
+
<allow-access-from domain="*" to-ports="*" secure="false"/>
|
13
|
+
<allow-http-request-headers-from domain="*" headers="*" secure="false"/>
|
14
|
+
-->
|
15
|
+
</cross-domain-policy>
|
@@ -0,0 +1 @@
|
|
1
|
+
%h1 Documentation
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
#viewport
|
@@ -0,0 +1,55 @@
|
|
1
|
+
!!!5
|
2
|
+
/[if lt IE 7] <html class="no-js lt-ie9 lt-ie8 lt-ie7">
|
3
|
+
/[if IE 7] <html class="no-js lt-ie9 lt-ie8">
|
4
|
+
/[if IE 8] <html class="no-js lt-ie9">
|
5
|
+
%html.no-js
|
6
|
+
%head
|
7
|
+
%meta{:charset => "utf-8"}
|
8
|
+
%meta{:content => "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible"}
|
9
|
+
|
10
|
+
-# To set titles and descriptions globally and for each individual page, see /DOCS.md
|
11
|
+
%title Better Backbone.js Apps with Luca
|
12
|
+
%meta{:content => page_description, :name => "description"}
|
13
|
+
|
14
|
+
%meta{:content => "width=device-width", :name => "viewport"}
|
15
|
+
|
16
|
+
= javascript_include_tag "vendor/modernizr-2.6.1.min"
|
17
|
+
%link{:rel=>"stylesheet",:href=>"//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/css/bootstrap-combined.min.css"}
|
18
|
+
%link{:rel=>"stylesheet",:href=>"//netdna.bootstrapcdn.com/font-awesome/3.0.2/css/font-awesome.css"}
|
19
|
+
%link{:rel=>"stylesheet",:href=>"//datapimp.github.com/luca/vendor/assets/stylesheets/luca-ui.css"}
|
20
|
+
|
21
|
+
= stylesheet_link_tag "site"
|
22
|
+
%body
|
23
|
+
#main-nav.navbar.navbar-inverse.navbar-fixed-top
|
24
|
+
.navbar-inner
|
25
|
+
.container-fluid
|
26
|
+
%button.btn.btn-navbar{:type=>"button","data-toggle"=>"collapse","data-target"=>".nav-collapse"}
|
27
|
+
%span.icon-bar
|
28
|
+
%span.icon-bar
|
29
|
+
%span.icon-bar
|
30
|
+
%a.brand{:href=>"#"} Luca
|
31
|
+
.nav-collapse.collapse
|
32
|
+
%ul.nav
|
33
|
+
%li{"data-page"=>"home"}
|
34
|
+
%a.active{:href=>"#"} Home
|
35
|
+
%li{"data-page"=>"getting_started"}
|
36
|
+
%a{:href=>"#get-started"} Get Started
|
37
|
+
%li{"data-page"=>"browse_source"}
|
38
|
+
%a{:href=>"#docs"} Documentation
|
39
|
+
%li{"data-page"=>"examples_browser"}
|
40
|
+
%a{:href=>"#examples"} Examples
|
41
|
+
%li{"data-page"=>"component_editor"}
|
42
|
+
%a{:href=>"#component_editor"} Component Editor
|
43
|
+
|
44
|
+
.container-fluid{:style=>"padding-top:40px;"}
|
45
|
+
= yield
|
46
|
+
|
47
|
+
%script{:type=>"text/javascript",:src=>"//datapimp.github.com/luca/vendor/assets/javascripts/luca-dependencies.min.js"}
|
48
|
+
%script{:type=>"text/javascript",:src=>"//datapimp.github.com/luca/vendor/assets/javascripts/luca.min.js"}
|
49
|
+
%script{:type=>"text/javascript",:src=>"//datapimp.github.com/luca/vendor/assets/javascripts/luca-development.min.js"}
|
50
|
+
%script{:type=>"text/javascript",:src=>"//cdnjs.cloudflare.com/ajax/libs/prettify/188.0.0/prettify.js"}
|
51
|
+
%script{:type=>"text/javascript",:src=>"//cdnjs.cloudflare.com/ajax/libs/coffee-script/1.4.0/coffee-script.min.js"}
|
52
|
+
%script{:type=>"text/javascript",:src=>"//cdnjs.cloudflare.com/ajax/libs/less.js/1.3.3/less.min.js"}
|
53
|
+
|
54
|
+
= javascript_include_tag "dependencies"
|
55
|
+
= javascript_include_tag "site"
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# [HTML5 Boilerplate](http://html5boilerplate.com)
|
2
|
+
|
3
|
+
HTML5 Boilerplate is a professional front-end template for building fast,
|
4
|
+
robust, and adaptable web apps or sites.
|
5
|
+
|
6
|
+
This project is the product of many years of iterative development and combined
|
7
|
+
community knowledge. It does not impose a specific development philosophy or
|
8
|
+
framework, so you're free to architect your code in the way that you want.
|
9
|
+
|
10
|
+
* Source: [https://github.com/h5bp/html5-boilerplate](https://github.com/h5bp/html5-boilerplate)
|
11
|
+
* Homepage: [http://html5boilerplate.com](http://html5boilerplate.com)
|
12
|
+
* Twitter: [@h5bp](http://twitter.com/h5bp)
|
13
|
+
|
14
|
+
|
15
|
+
## Quick start
|
16
|
+
|
17
|
+
Choose one of the following options:
|
18
|
+
|
19
|
+
1. Download the latest stable release from
|
20
|
+
[html5boilerplate.com](http://html5boilerplate.com/) or a custom build from
|
21
|
+
[Initializr](http://www.initializr.com).
|
22
|
+
2. Clone the git repo — `git clone
|
23
|
+
https://github.com/h5bp/html5-boilerplate.git` - and checkout the tagged
|
24
|
+
release you'd like to use.
|
25
|
+
|
26
|
+
|
27
|
+
## Features
|
28
|
+
|
29
|
+
* HTML5 ready. Use the new elements with confidence.
|
30
|
+
* Cross-browser compatible (Chrome, Opera, Safari, Firefox 3.6+, IE6+).
|
31
|
+
* Designed with progressive enhancement in mind.
|
32
|
+
* Includes [Normalize.css](http://necolas.github.com/normalize.css/) for CSS
|
33
|
+
normalizations and common bug fixes.
|
34
|
+
* The latest [jQuery](http://jquery.com/) via CDN, with a local fallback.
|
35
|
+
* The latest [Modernizr](http://modernizr.com/) build for feature detection.
|
36
|
+
* IE-specific classes for easier cross-browser control.
|
37
|
+
* Placeholder CSS Media Queries.
|
38
|
+
* Useful CSS helpers.
|
39
|
+
* Default print CSS, performance optimized.
|
40
|
+
* Protection against any stray `console.log` causing JavaScript errors in
|
41
|
+
IE6/7.
|
42
|
+
* An optimized Google Analytics snippet.
|
43
|
+
* Apache server caching, compression, and other configuration defaults for
|
44
|
+
Grade-A performance.
|
45
|
+
* Cross-domain Ajax and Flash.
|
46
|
+
* "Delete-key friendly." Easy to strip out parts you don't need.
|
47
|
+
* Extensive inline and accompanying documentation.
|
48
|
+
|
49
|
+
|
50
|
+
## Documentation
|
51
|
+
|
52
|
+
Take a look at the [documentation table of
|
53
|
+
contents](/h5bp/html5-boilerplate/blob/master/doc/README.md). This
|
54
|
+
documentation is bundled with the project, which makes it readily available for
|
55
|
+
offline reading and provides a useful starting point for any documentation
|
56
|
+
you want to write about your project.
|
57
|
+
|
58
|
+
|
59
|
+
## Contributing
|
60
|
+
|
61
|
+
Anyone and everyone is welcome to
|
62
|
+
[contribute](/h5bp/html5-boilerplate/blob/master/doc/contribute.md). Hundreds
|
63
|
+
of developers have helped make the HTML5 Boilerplate what it is today.
|
@@ -38,7 +38,7 @@ describe 'The Collection View', ->
|
|
38
38
|
expect( query.filter ).toEqual 'value'
|
39
39
|
|
40
40
|
it "should render the attributes in the specified list elements", ->
|
41
|
-
expect( @view.$html() ).
|
41
|
+
expect( @view.$html().match(/value_one/) ).toBeTruthy()
|
42
42
|
|
43
43
|
it "should render each of the attributes", ->
|
44
44
|
expect( @view.$('li.custom-class').length ).toEqual 2
|