spiderfw 0.6.30 → 0.6.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -7
- data/CHANGELOG +11 -0
- data/VERSION +1 -1
- data/apps/app_server/config/options.rb +1 -1
- data/apps/core/auth/controllers/login_controller.rb +3 -0
- data/apps/core/components/assets.rb +61 -3
- data/apps/core/components/public/bootstrap_3/img/glyphicons-halflings-regular.eot +0 -0
- data/apps/core/components/public/bootstrap_3/img/glyphicons-halflings-regular.svg +229 -0
- data/apps/core/components/public/bootstrap_3/img/glyphicons-halflings-regular.ttf +0 -0
- data/apps/core/components/public/bootstrap_3/img/glyphicons-halflings-regular.woff +0 -0
- data/apps/core/components/public/bootstrap_3/js/affix.js +140 -0
- data/apps/core/components/public/bootstrap_3/js/alert.js +92 -0
- data/apps/core/components/public/bootstrap_3/js/button.js +110 -0
- data/apps/core/components/public/bootstrap_3/js/carousel.js +210 -0
- data/apps/core/components/public/bootstrap_3/js/collapse.js +180 -0
- data/apps/core/components/public/bootstrap_3/js/dropdown.js +151 -0
- data/apps/core/components/public/bootstrap_3/js/modal.js +277 -0
- data/apps/core/components/public/bootstrap_3/js/popover.js +113 -0
- data/apps/core/components/public/bootstrap_3/js/scrollspy.js +158 -0
- data/apps/core/components/public/bootstrap_3/js/tab.js +128 -0
- data/apps/core/components/public/bootstrap_3/js/tooltip.js +456 -0
- data/apps/core/components/public/bootstrap_3/js/transition.js +48 -0
- data/apps/core/components/public/bootstrap_3/scss/_alerts.scss +67 -0
- data/apps/core/components/public/bootstrap_3/scss/_badges.scss +57 -0
- data/apps/core/components/public/bootstrap_3/scss/_breadcrumbs.scss +26 -0
- data/apps/core/components/public/bootstrap_3/scss/_button-groups.scss +240 -0
- data/apps/core/components/public/bootstrap_3/scss/_buttons.scss +159 -0
- data/apps/core/components/public/bootstrap_3/scss/_carousel.scss +243 -0
- data/apps/core/components/public/bootstrap_3/scss/_close.scss +35 -0
- data/apps/core/components/public/bootstrap_3/scss/_code.scss +62 -0
- data/apps/core/components/public/bootstrap_3/scss/_component-animations.scss +35 -0
- data/apps/core/components/public/bootstrap_3/scss/_dropdowns.scss +214 -0
- data/apps/core/components/public/bootstrap_3/scss/_forms.scss +489 -0
- data/apps/core/components/public/bootstrap_3/scss/_glyphicons.scss +237 -0
- data/apps/core/components/public/bootstrap_3/scss/_grid.scss +84 -0
- data/apps/core/components/public/bootstrap_3/scss/_input-groups.scss +166 -0
- data/apps/core/components/public/bootstrap_3/scss/_jumbotron.scss +48 -0
- data/apps/core/components/public/bootstrap_3/scss/_labels.scss +66 -0
- data/apps/core/components/public/bootstrap_3/scss/_list-group.scss +129 -0
- data/apps/core/components/public/bootstrap_3/scss/_media.scss +56 -0
- data/apps/core/components/public/bootstrap_3/scss/_mixins.scss +39 -0
- data/apps/core/components/public/bootstrap_3/scss/_modals.scss +147 -0
- data/apps/core/components/public/bootstrap_3/scss/_navbar.scss +658 -0
- data/apps/core/components/public/bootstrap_3/scss/_navs.scss +242 -0
- data/apps/core/components/public/bootstrap_3/scss/_normalize.scss +425 -0
- data/apps/core/components/public/bootstrap_3/scss/_pager.scss +55 -0
- data/apps/core/components/public/bootstrap_3/scss/_pagination.scss +88 -0
- data/apps/core/components/public/bootstrap_3/scss/_panels.scss +240 -0
- data/apps/core/components/public/bootstrap_3/scss/_popovers.scss +133 -0
- data/apps/core/components/public/bootstrap_3/scss/_print.scss +101 -0
- data/apps/core/components/public/bootstrap_3/scss/_progress-bars.scss +89 -0
- data/apps/core/components/public/bootstrap_3/scss/_responsive-embed.scss +34 -0
- data/apps/core/components/public/bootstrap_3/scss/_responsive-utilities.scss +174 -0
- data/apps/core/components/public/bootstrap_3/scss/_scaffolding.scss +150 -0
- data/apps/core/components/public/bootstrap_3/scss/_tables.scss +233 -0
- data/apps/core/components/public/bootstrap_3/scss/_theme.scss +247 -0
- data/apps/core/components/public/bootstrap_3/scss/_thumbnails.scss +38 -0
- data/apps/core/components/public/bootstrap_3/scss/_tooltip.scss +95 -0
- data/apps/core/components/public/bootstrap_3/scss/_type.scss +298 -0
- data/apps/core/components/public/bootstrap_3/scss/_utilities.scss +56 -0
- data/apps/core/components/public/bootstrap_3/scss/_variables.scss +853 -0
- data/apps/core/components/public/bootstrap_3/scss/_wells.scss +29 -0
- data/apps/core/components/public/bootstrap_3/scss/bootstrap.scss +50 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_alerts.scss +14 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_background-variant.scss +11 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_border-radius.scss +18 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_buttons.scss +50 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_center-block.scss +7 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_clearfix.scss +22 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_forms.scss +84 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_gradients.scss +58 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_grid-framework.scss +87 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_grid.scss +122 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_hide-text.scss +21 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_image.scss +33 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_labels.scss +12 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_list-group.scss +31 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_nav-divider.scss +10 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_nav-vertical-align.scss +9 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_opacity.scss +8 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_pagination.scss +23 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_panels.scss +20 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_progress-bar.scss +8 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_reset-filter.scss +8 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_resize.scss +6 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_responsive-visibility.scss +21 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_size.scss +10 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_tab-focus.scss +9 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_table-row.scss +28 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_text-emphasis.scss +11 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_text-overflow.scss +8 -0
- data/apps/core/components/public/bootstrap_3/scss/mixins/_vendor-prefixes.scss +224 -0
- data/apps/core/components/public/js/jquery/plugins/bsmselect/js/jquery.bsmselect.js +1 -1
- data/apps/core/components/widgets/month_calendar/month_calendar.shtml +3 -3
- data/apps/core/components/widgets/table/table.rb +6 -2
- data/apps/core/components/widgets/table/table.shtml +4 -4
- data/apps/core/forms/widgets/form/form.rb +1 -1
- data/apps/core/forms/widgets/inputs/select/select.rb +13 -2
- data/apps/messenger/lib/backends/mobyt.rb +6 -2
- data/apps/messenger/lib/backends/skebby.rb +1 -1
- data/apps/webdav/controllers/webdav_controller.rb +16 -7
- data/lib/spiderfw/controller/http_controller.rb +4 -1
- data/lib/spiderfw/env.rb +0 -1
- data/lib/spiderfw/http/adapters/rack.rb +3 -1
- data/lib/spiderfw/model/base_model.rb +7 -3
- data/lib/spiderfw/model/storage/connection_pool.rb +6 -2
- data/lib/spiderfw/model/storage/db/db_storage.rb +25 -9
- data/lib/spiderfw/site.rb +1 -1
- metadata +308 -149
@@ -0,0 +1,35 @@
|
|
1
|
+
//
|
2
|
+
// Close icons
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
.close {
|
7
|
+
float: right;
|
8
|
+
font-size: ($font-size-base * 1.5);
|
9
|
+
font-weight: $close-font-weight;
|
10
|
+
line-height: 1;
|
11
|
+
color: $close-color;
|
12
|
+
text-shadow: $close-text-shadow;
|
13
|
+
@include opacity(.2);
|
14
|
+
|
15
|
+
&:hover,
|
16
|
+
&:focus {
|
17
|
+
color: $close-color;
|
18
|
+
text-decoration: none;
|
19
|
+
cursor: pointer;
|
20
|
+
@include opacity(.5);
|
21
|
+
}
|
22
|
+
|
23
|
+
// [converter] extracted button& to button.close
|
24
|
+
}
|
25
|
+
|
26
|
+
// Additional properties for button version
|
27
|
+
// iOS requires the button element instead of an anchor tag.
|
28
|
+
// If you want the anchor version, it requires `href="#"`.
|
29
|
+
button.close {
|
30
|
+
padding: 0;
|
31
|
+
cursor: pointer;
|
32
|
+
background: transparent;
|
33
|
+
border: 0;
|
34
|
+
-webkit-appearance: none;
|
35
|
+
}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
//
|
2
|
+
// Code (inline and block)
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Inline and block code styles
|
7
|
+
code,
|
8
|
+
kbd,
|
9
|
+
pre,
|
10
|
+
samp {
|
11
|
+
font-family: $font-family-monospace;
|
12
|
+
}
|
13
|
+
|
14
|
+
// Inline code
|
15
|
+
code {
|
16
|
+
padding: 2px 4px;
|
17
|
+
font-size: 90%;
|
18
|
+
color: $code-color;
|
19
|
+
background-color: $code-bg;
|
20
|
+
border-radius: $border-radius-base;
|
21
|
+
}
|
22
|
+
|
23
|
+
// User input typically entered via keyboard
|
24
|
+
kbd {
|
25
|
+
padding: 2px 4px;
|
26
|
+
font-size: 90%;
|
27
|
+
color: $kbd-color;
|
28
|
+
background-color: $kbd-bg;
|
29
|
+
border-radius: $border-radius-small;
|
30
|
+
box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
|
31
|
+
}
|
32
|
+
|
33
|
+
// Blocks of code
|
34
|
+
pre {
|
35
|
+
display: block;
|
36
|
+
padding: (($line-height-computed - 1) / 2);
|
37
|
+
margin: 0 0 ($line-height-computed / 2);
|
38
|
+
font-size: ($font-size-base - 1); // 14px to 13px
|
39
|
+
line-height: $line-height-base;
|
40
|
+
word-break: break-all;
|
41
|
+
word-wrap: break-word;
|
42
|
+
color: $pre-color;
|
43
|
+
background-color: $pre-bg;
|
44
|
+
border: 1px solid $pre-border-color;
|
45
|
+
border-radius: $border-radius-base;
|
46
|
+
|
47
|
+
// Account for some code outputs that place code tags in pre tags
|
48
|
+
code {
|
49
|
+
padding: 0;
|
50
|
+
font-size: inherit;
|
51
|
+
color: inherit;
|
52
|
+
white-space: pre-wrap;
|
53
|
+
background-color: transparent;
|
54
|
+
border-radius: 0;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
// Enable scrollable blocks of code
|
59
|
+
.pre-scrollable {
|
60
|
+
max-height: $pre-scrollable-max-height;
|
61
|
+
overflow-y: scroll;
|
62
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
//
|
2
|
+
// Component animations
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
// Heads up!
|
6
|
+
//
|
7
|
+
// We don't use the `.opacity()` mixin here since it causes a bug with text
|
8
|
+
// fields in IE7-8. Source: https://github.com/twbs/bootstrap/pull/3552.
|
9
|
+
|
10
|
+
.fade {
|
11
|
+
opacity: 0;
|
12
|
+
@include transition(opacity .15s linear);
|
13
|
+
&.in {
|
14
|
+
opacity: 1;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
.collapse {
|
19
|
+
display: none;
|
20
|
+
|
21
|
+
&.in { display: block; }
|
22
|
+
// [converter] extracted tr&.in to tr.collapse.in
|
23
|
+
// [converter] extracted tbody&.in to tbody.collapse.in
|
24
|
+
}
|
25
|
+
|
26
|
+
tr.collapse.in { display: table-row; }
|
27
|
+
|
28
|
+
tbody.collapse.in { display: table-row-group; }
|
29
|
+
|
30
|
+
.collapsing {
|
31
|
+
position: relative;
|
32
|
+
height: 0;
|
33
|
+
overflow: hidden;
|
34
|
+
@include transition(height .35s ease);
|
35
|
+
}
|
@@ -0,0 +1,214 @@
|
|
1
|
+
//
|
2
|
+
// Dropdown menus
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Dropdown arrow/caret
|
7
|
+
.caret {
|
8
|
+
display: inline-block;
|
9
|
+
width: 0;
|
10
|
+
height: 0;
|
11
|
+
margin-left: 2px;
|
12
|
+
vertical-align: middle;
|
13
|
+
border-top: $caret-width-base solid;
|
14
|
+
border-right: $caret-width-base solid transparent;
|
15
|
+
border-left: $caret-width-base solid transparent;
|
16
|
+
}
|
17
|
+
|
18
|
+
// The dropdown wrapper (div)
|
19
|
+
.dropdown {
|
20
|
+
position: relative;
|
21
|
+
}
|
22
|
+
|
23
|
+
// Prevent the focus on the dropdown toggle when closing dropdowns
|
24
|
+
.dropdown-toggle:focus {
|
25
|
+
outline: 0;
|
26
|
+
}
|
27
|
+
|
28
|
+
// The dropdown menu (ul)
|
29
|
+
.dropdown-menu {
|
30
|
+
position: absolute;
|
31
|
+
top: 100%;
|
32
|
+
left: 0;
|
33
|
+
z-index: $zindex-dropdown;
|
34
|
+
display: none; // none by default, but block on "open" of the menu
|
35
|
+
float: left;
|
36
|
+
min-width: 160px;
|
37
|
+
padding: 5px 0;
|
38
|
+
margin: 2px 0 0; // override default ul
|
39
|
+
list-style: none;
|
40
|
+
font-size: $font-size-base;
|
41
|
+
text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
|
42
|
+
background-color: $dropdown-bg;
|
43
|
+
border: 1px solid $dropdown-fallback-border; // IE8 fallback
|
44
|
+
border: 1px solid $dropdown-border;
|
45
|
+
border-radius: $border-radius-base;
|
46
|
+
@include box-shadow(0 6px 12px rgba(0,0,0,.175));
|
47
|
+
background-clip: padding-box;
|
48
|
+
|
49
|
+
// Aligns the dropdown menu to right
|
50
|
+
//
|
51
|
+
// Deprecated as of 3.1.0 in favor of `.dropdown-menu-[dir]`
|
52
|
+
&.pull-right {
|
53
|
+
right: 0;
|
54
|
+
left: auto;
|
55
|
+
}
|
56
|
+
|
57
|
+
// Dividers (basically an hr) within the dropdown
|
58
|
+
.divider {
|
59
|
+
@include nav-divider($dropdown-divider-bg);
|
60
|
+
}
|
61
|
+
|
62
|
+
// Links within the dropdown menu
|
63
|
+
> li > a {
|
64
|
+
display: block;
|
65
|
+
padding: 3px 20px;
|
66
|
+
clear: both;
|
67
|
+
font-weight: normal;
|
68
|
+
line-height: $line-height-base;
|
69
|
+
color: $dropdown-link-color;
|
70
|
+
white-space: nowrap; // prevent links from randomly breaking onto new lines
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
// Hover/Focus state
|
75
|
+
.dropdown-menu > li > a {
|
76
|
+
&:hover,
|
77
|
+
&:focus {
|
78
|
+
text-decoration: none;
|
79
|
+
color: $dropdown-link-hover-color;
|
80
|
+
background-color: $dropdown-link-hover-bg;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
// Active state
|
85
|
+
.dropdown-menu > .active > a {
|
86
|
+
&,
|
87
|
+
&:hover,
|
88
|
+
&:focus {
|
89
|
+
color: $dropdown-link-active-color;
|
90
|
+
text-decoration: none;
|
91
|
+
outline: 0;
|
92
|
+
background-color: $dropdown-link-active-bg;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
// Disabled state
|
97
|
+
//
|
98
|
+
// Gray out text and ensure the hover/focus state remains gray
|
99
|
+
|
100
|
+
.dropdown-menu > .disabled > a {
|
101
|
+
&,
|
102
|
+
&:hover,
|
103
|
+
&:focus {
|
104
|
+
color: $dropdown-link-disabled-color;
|
105
|
+
}
|
106
|
+
}
|
107
|
+
// Nuke hover/focus effects
|
108
|
+
.dropdown-menu > .disabled > a {
|
109
|
+
&:hover,
|
110
|
+
&:focus {
|
111
|
+
text-decoration: none;
|
112
|
+
background-color: transparent;
|
113
|
+
background-image: none; // Remove CSS gradient
|
114
|
+
@include reset-filter();
|
115
|
+
cursor: not-allowed;
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
// Open state for the dropdown
|
120
|
+
.open {
|
121
|
+
// Show the menu
|
122
|
+
> .dropdown-menu {
|
123
|
+
display: block;
|
124
|
+
}
|
125
|
+
|
126
|
+
// Remove the outline when :focus is triggered
|
127
|
+
> a {
|
128
|
+
outline: 0;
|
129
|
+
}
|
130
|
+
}
|
131
|
+
|
132
|
+
// Menu positioning
|
133
|
+
//
|
134
|
+
// Add extra class to `.dropdown-menu` to flip the alignment of the dropdown
|
135
|
+
// menu with the parent.
|
136
|
+
.dropdown-menu-right {
|
137
|
+
left: auto; // Reset the default from `.dropdown-menu`
|
138
|
+
right: 0;
|
139
|
+
}
|
140
|
+
// With v3, we enabled auto-flipping if you have a dropdown within a right
|
141
|
+
// aligned nav component. To enable the undoing of that, we provide an override
|
142
|
+
// to restore the default dropdown menu alignment.
|
143
|
+
//
|
144
|
+
// This is only for left-aligning a dropdown menu within a `.navbar-right` or
|
145
|
+
// `.pull-right` nav component.
|
146
|
+
.dropdown-menu-left {
|
147
|
+
left: 0;
|
148
|
+
right: auto;
|
149
|
+
}
|
150
|
+
|
151
|
+
// Dropdown section headers
|
152
|
+
.dropdown-header {
|
153
|
+
display: block;
|
154
|
+
padding: 3px 20px;
|
155
|
+
font-size: $font-size-small;
|
156
|
+
line-height: $line-height-base;
|
157
|
+
color: $dropdown-header-color;
|
158
|
+
}
|
159
|
+
|
160
|
+
// Backdrop to catch body clicks on mobile, etc.
|
161
|
+
.dropdown-backdrop {
|
162
|
+
position: fixed;
|
163
|
+
left: 0;
|
164
|
+
right: 0;
|
165
|
+
bottom: 0;
|
166
|
+
top: 0;
|
167
|
+
z-index: ($zindex-dropdown - 10);
|
168
|
+
}
|
169
|
+
|
170
|
+
// Right aligned dropdowns
|
171
|
+
.pull-right > .dropdown-menu {
|
172
|
+
right: 0;
|
173
|
+
left: auto;
|
174
|
+
}
|
175
|
+
|
176
|
+
// Allow for dropdowns to go bottom up (aka, dropup-menu)
|
177
|
+
//
|
178
|
+
// Just add .dropup after the standard .dropdown class and you're set, bro.
|
179
|
+
// TODO: abstract this so that the navbar fixed styles are not placed here?
|
180
|
+
|
181
|
+
.dropup,
|
182
|
+
.navbar-fixed-bottom .dropdown {
|
183
|
+
// Reverse the caret
|
184
|
+
.caret {
|
185
|
+
border-top: 0;
|
186
|
+
border-bottom: $caret-width-base solid;
|
187
|
+
content: "";
|
188
|
+
}
|
189
|
+
// Different positioning for bottom up menu
|
190
|
+
.dropdown-menu {
|
191
|
+
top: auto;
|
192
|
+
bottom: 100%;
|
193
|
+
margin-bottom: 1px;
|
194
|
+
}
|
195
|
+
}
|
196
|
+
|
197
|
+
|
198
|
+
// Component alignment
|
199
|
+
//
|
200
|
+
// Reiterate per navbar.less and the modified component alignment there.
|
201
|
+
|
202
|
+
@media (min-width: $grid-float-breakpoint) {
|
203
|
+
.navbar-right {
|
204
|
+
.dropdown-menu {
|
205
|
+
right: 0; left: auto;
|
206
|
+
}
|
207
|
+
// Necessary for overrides of the default right aligned menu.
|
208
|
+
// Will remove come v4 in all likelihood.
|
209
|
+
.dropdown-menu-left {
|
210
|
+
left: 0; right: auto;
|
211
|
+
}
|
212
|
+
}
|
213
|
+
}
|
214
|
+
|