rbbt-rest 1.1.5 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. checksums.yaml +8 -8
  2. data/lib/rbbt/rest/common/cache.rb +33 -14
  3. data/lib/rbbt/rest/common/locate.rb +8 -6
  4. data/lib/rbbt/rest/common/misc.rb +4 -0
  5. data/lib/rbbt/rest/common/render.rb +14 -4
  6. data/lib/rbbt/rest/common/resources.rb +1 -1
  7. data/lib/rbbt/rest/common/table.rb +37 -7
  8. data/lib/rbbt/rest/entity.rb +5 -3
  9. data/lib/rbbt/rest/entity/favourites.rb +4 -1
  10. data/lib/rbbt/rest/entity/helpers.rb +12 -0
  11. data/lib/rbbt/rest/entity/rest.rb +6 -2
  12. data/lib/rbbt/rest/helpers.rb +7 -0
  13. data/lib/rbbt/rest/knowledge_base.rb +338 -0
  14. data/lib/rbbt/rest/knowledge_base/helpers.rb +57 -0
  15. data/lib/rbbt/rest/main.rb +16 -3
  16. data/share/views/compass/_rbbt.sass +11 -0
  17. data/share/views/compass/actions.sass +48 -24
  18. data/share/views/compass/app.sass +72 -50
  19. data/share/views/compass/colors.sass +3 -229
  20. data/share/views/compass/entity_card.sass +44 -108
  21. data/share/views/compass/favourites.sass +17 -72
  22. data/share/views/compass/finder.sass +30 -0
  23. data/share/views/compass/foundation.sass +79 -0
  24. data/share/views/compass/functions.sass +27 -0
  25. data/share/views/compass/help.sass +3 -0
  26. data/share/views/compass/layout.sass +132 -0
  27. data/share/views/compass/rbbt/form.sass +84 -0
  28. data/share/views/compass/rbbt/fragment.sass +7 -0
  29. data/share/views/compass/rbbt/menu.sass +189 -0
  30. data/share/views/compass/rbbt/reveal.sass +46 -0
  31. data/share/views/compass/rbbt/table.sass +169 -0
  32. data/share/views/compass/skeleton.sass +2 -0
  33. data/share/views/compass/skeleton/_dependencies.sass +151 -0
  34. data/share/views/compass/skeleton/_functions.sass +4 -0
  35. data/share/views/compass/skeleton/_mixins.sass +25 -0
  36. data/share/views/compass/skeleton/_vars.sass +72 -0
  37. data/share/views/compass/skeleton/base.sass +333 -0
  38. data/share/views/compass/skeleton/layout.sass +51 -0
  39. data/share/views/compass/skeleton/skeleton.sass +105 -0
  40. data/share/views/compass/solarized.sass +56 -0
  41. data/share/views/compass/style.sass +2 -116
  42. data/share/views/compass/theme.sass +57 -44
  43. data/share/views/compass/top_menu.sass +121 -0
  44. data/share/views/compass/user.sass +7 -0
  45. data/share/views/compass/variables.sass +7 -0
  46. data/share/views/compass/workflow.sass +6 -14
  47. data/share/views/entity_partials/action_controller.haml +7 -4
  48. data/share/views/entity_partials/entity_card.haml +10 -5
  49. data/share/views/entity_partials/entity_list.haml +4 -7
  50. data/share/views/entity_partials/entity_list_card.haml +10 -3
  51. data/share/views/entity_partials/entity_map_card.haml +2 -2
  52. data/share/views/entity_partials/list_container.haml +31 -26
  53. data/share/views/error.haml +5 -7
  54. data/share/views/help.haml +75 -31
  55. data/share/views/help/entity.haml +191 -193
  56. data/share/views/help/workflow.haml +59 -63
  57. data/share/views/job_result.haml +23 -26
  58. data/share/views/layout.haml +41 -61
  59. data/share/views/layout/top_menu.haml +19 -0
  60. data/share/views/layout/top_menu/favourites.haml +45 -0
  61. data/share/views/layout/top_menu/finder.haml +4 -0
  62. data/share/views/layout/top_menu/user.haml +15 -0
  63. data/share/views/public/js/_ajax_replace.js +17 -5
  64. data/share/views/public/js/_ellipsis.js +7 -9
  65. data/share/views/public/js/app.js +50 -2
  66. data/share/views/public/js/foundation/foundation.abide.js +194 -0
  67. data/share/views/public/js/foundation/foundation.alerts.js +52 -0
  68. data/share/views/public/js/foundation/foundation.clearing.js +516 -0
  69. data/share/views/public/js/foundation/foundation.cookie.js +74 -0
  70. data/share/views/public/js/foundation/foundation.dropdown.js +177 -0
  71. data/share/views/public/js/foundation/foundation.forms.js +533 -0
  72. data/share/views/public/js/foundation/foundation.interchange.js +280 -0
  73. data/share/views/public/js/foundation/foundation.joyride.js +850 -0
  74. data/share/views/public/js/foundation/foundation.js +440 -0
  75. data/share/views/public/js/foundation/foundation.magellan.js +135 -0
  76. data/share/views/public/js/foundation/foundation.orbit.js +412 -0
  77. data/share/views/public/js/foundation/foundation.placeholder.js +179 -0
  78. data/share/views/public/js/foundation/foundation.reveal.js +330 -0
  79. data/share/views/public/js/foundation/foundation.section.js +400 -0
  80. data/share/views/public/js/foundation/foundation.tooltips.js +208 -0
  81. data/share/views/public/js/foundation/foundation.topbar.js +300 -0
  82. data/share/views/public/js/foundation/index.js +18 -0
  83. data/share/views/public/js/helpers.js +33 -2
  84. data/share/views/public/js/jquery-ui.js +313 -0
  85. data/share/views/public/js/rbbt/actions.js +264 -0
  86. data/share/views/public/js/{_dom_update.js → rbbt/dom_update.js} +0 -0
  87. data/share/views/public/js/rbbt/favourites.js +425 -0
  88. data/share/views/public/js/rbbt/fragment.js +13 -0
  89. data/share/views/public/js/rbbt/hide.js +60 -0
  90. data/share/views/public/js/rbbt/list.js +117 -0
  91. data/share/views/public/js/{maps.js → rbbt/map.js} +3 -2
  92. data/share/views/public/js/rbbt/menu.js +22 -0
  93. data/share/views/public/js/rbbt/modal.js +96 -0
  94. data/share/views/public/js/{entities.js → rbbt/page_type.js} +12 -9
  95. data/share/views/public/js/rbbt/reveal.js +19 -0
  96. data/share/views/public/js/rbbt/table.js +283 -0
  97. data/share/views/public/js/{workflow.js → rbbt/workflow.js} +0 -0
  98. data/share/views/tasks.haml +14 -15
  99. data/share/views/wait.haml +11 -12
  100. metadata +62 -33
  101. data/share/views/compass/_foundation_setup.sass +0 -74
  102. data/share/views/compass/dom.sass +0 -32
  103. data/share/views/compass/footer.sass +0 -4
  104. data/share/views/compass/form.sass +0 -41
  105. data/share/views/compass/fragment.sass +0 -8
  106. data/share/views/compass/list_container.sass +0 -34
  107. data/share/views/compass/lists.sass +0 -33
  108. data/share/views/compass/offcanvas.sass +0 -66
  109. data/share/views/compass/responsive_table.sass +0 -80
  110. data/share/views/compass/reveal.sass +0 -31
  111. data/share/views/compass/style_mixins.sass +0 -42
  112. data/share/views/compass/table.sass +0 -63
  113. data/share/views/compass/tabs.sass +0 -81
  114. data/share/views/compass/topbar.sass +0 -25
  115. data/share/views/compass/web-fonts.sass +0 -77
  116. data/share/views/layout/favourites.haml +0 -46
  117. data/share/views/layout/header.haml +0 -44
  118. data/share/views/public/js/_fix_tablesorter_science.js +0 -38
  119. data/share/views/public/js/_foundation.js +0 -42
  120. data/share/views/public/js/actions.js +0 -108
  121. data/share/views/public/js/base.js +0 -121
  122. data/share/views/public/js/favourites.js +0 -441
  123. data/share/views/public/js/lists.js +0 -117
  124. data/share/views/public/js/offcanvas.js +0 -35
  125. data/share/views/public/js/reveal.js +0 -48
  126. data/share/views/public/js/tables.js +0 -314
  127. data/share/views/public/js/tabs.js +0 -7
@@ -0,0 +1,11 @@
1
+ @import "foundation"
2
+ @import "functions"
3
+ @import "colors"
4
+ @import "variables"
5
+
6
+ @import "rbbt/menu"
7
+ @import "rbbt/table"
8
+ @import "rbbt/reveal"
9
+ @import "rbbt/form"
10
+ @import "rbbt/fragment"
11
+
@@ -1,8 +1,44 @@
1
1
  .action_controller
2
- ul.controls, ul.actions
2
+ @media print
3
+ display: none
4
+
5
+ border: 1px solid $color_action_active_border
6
+ background-color: $color_action_controler_bg
7
+ border: 1px solid
8
+ border-color: $color_action_controler_border
9
+ margin-top: $vindent
10
+
11
+ ul.actions
12
+ +rbbt_button_list($color_bg: $color_action_controler_bg, $color_item_bg: $color_action_active_bg, $width: 19%)
13
+ li
14
+ border: 1px solid $color_action_controler_border
15
+ &.active > a
16
+ color: $magenta
17
+ &.loading > a
18
+ color: $color_alt3
19
+
20
+ ul.controls
21
+ +rbbt_button_list($color_bg: $color_action_controler_bg, $color_item_bg: $color_action_active_bg, $width: 0, $padding: 0 15, $margin: 5px)
22
+ li
23
+ border: 1px solid $color_action_controler_border
24
+
25
+ ul.controls
26
+ li
27
+ a
28
+ width: 100%
29
+
30
+ li.pin.saved.active
31
+ background-color: gold !important
32
+
33
+ li.url.bookmarked.active > a > i
34
+ color: $red !important
35
+
36
+ li.parameters:not(.active), li.reload:not(.active), li.url:not(.active), li.pin:not(.active)
37
+ background-color: $color_action_inactive_bg
38
+ cursor: default !important
39
+ a
40
+ cursor: default !important
3
41
 
4
- .action_controller .action_parameters
5
- @extend .offcanvas
6
42
 
7
43
  .action_loader
8
44
  .action_card > .title
@@ -16,26 +52,14 @@
16
52
  padding: 0
17
53
  padding-top: 1em
18
54
 
19
- @media #{$not_small}
20
- ul.actions
21
- li.select
22
- display: none
23
55
 
24
- @media #{$only_small}
25
- .action_controller
26
- min-height: 6em
27
- ul.actions
28
- position: relative
29
- min-height: 2.5em
30
- li
31
- font-size: 1em
32
- a
33
- width: 100%
34
- width: 100%
35
- position: absolute
36
- top: 0
37
- z-index: -10
38
- &.active
39
- z-index: 10
40
- position: relative
56
+ .action_loader
57
+ span.loading, span.error
58
+ margin-top: 1em
59
+ display: inline-block
41
60
 
61
+
62
+ .action_loader
63
+ &.reloading
64
+ *
65
+ color: rgba(0,0,0,0.2) !important
@@ -1,50 +1,72 @@
1
- @import _foundation_setup
2
- @import style_mixins
3
-
4
- @import lists
5
- @import list_container
6
- @import dom
7
- @import form
8
- @import table
9
- @import tabs
10
- @import responsive_table
11
-
12
- @import topbar
13
- @import favourites
14
- @import footer
15
- @import entity_card
16
- @import actions
17
- @import offcanvas
18
- @import fragment
19
- @import workflow
20
- @import reveal
21
- @import style
22
-
23
- body
24
- margin: 0
25
- padding: 0
26
-
27
- #body
28
- min-height: 900px
29
-
30
- ul.entities
31
- @extend .inline-list
32
- li
33
- float: left
34
-
35
- dl.details
36
- @extend dl.indented
37
-
38
-
39
- .filter_controls
40
- @media #{$medium}
41
- div.input
42
- @include grid-column(4)
43
- &.submit, &.submit > input
44
- float: right
45
- clear: both
46
- label
47
- @include ellipsis_text()
48
-
49
- .map_management ul
50
- @include button-group-list()
1
+ @import "foundation"
2
+ @import "_rbbt"
3
+
4
+ @import "user"
5
+ @import "workflow"
6
+ @import "finder"
7
+ @import "entity_card"
8
+ @import "favourites"
9
+ @import "actions"
10
+ @import "top_menu"
11
+ @import "help"
12
+ @import "layout"
13
+
14
+ table
15
+ +rbbt_table
16
+
17
+ .table_column_selector
18
+ +table_column_selector
19
+
20
+ .rbbt_reveal_content
21
+ +rbbt_reveal_content
22
+
23
+ .modal
24
+ +modal
25
+
26
+ .action_loader > .action_card > .action_parameters
27
+ margin-top: 0
28
+ border-top: none
29
+
30
+ .action_parameters
31
+ +action_parameters
32
+
33
+ .entity_card, .entity_list_card, .entity_map_card, .action_card
34
+ +card
35
+
36
+ & > .card > .sidebar dl
37
+ margin: $vindent $indent
38
+ +indented_dl
39
+ font-weight: normal
40
+ &.rbbt_accordion
41
+ margin: 0 0
42
+
43
+ & > dt, dd
44
+ border-left: 0
45
+ border-right: 0
46
+ dt.next
47
+ min-height: 3em
48
+ font-weight: normal
49
+ &> span.title
50
+ margin-left: 3em
51
+ &> a
52
+ position: absolute
53
+ left: $indent
54
+
55
+ .sidebar
56
+ overflow-y: hidden
57
+ overflow-x: hidden
58
+ p
59
+ margin-left: $indent
60
+ ul.entity_list
61
+ +clean_list
62
+ margin: $vindent $indent
63
+ li
64
+ display: block
65
+
66
+ a.fragment
67
+ +fragment
68
+
69
+ .hide_toggle
70
+ width: 100%
71
+ width: 2em
72
+
@@ -1,231 +1,5 @@
1
- @import "theme"
1
+ @import 'theme'
2
+ //{{{ RBBT MENUS
2
3
 
3
- //{{{{{{{{{
4
- //{{{ MAIN
5
- //{{{{{{{{{
4
+ //{{{ RBBT PANEL
6
5
 
7
- $body-bg: $color_main_text_bg
8
- $body-font-color: $color_main_text
9
- $header-font-color: $color_main_text
10
-
11
- //{{{{{{{{{
12
- //{{{ ACTIONS
13
- //{{{{{{{{{
14
-
15
- $actions_active: darken($primary-color, 15%)
16
-
17
- //{{{{{{{{{
18
- //{{{ FOOTER
19
- //{{{{{{{{{
20
-
21
- $footer_bg: lighten($color_contrast_text_bg, 85%)
22
- $footer_color: lighten($color_contrast_text_bg, 30%)
23
-
24
-
25
- //{{{{{{{{{
26
- //{{{ TOPBAR
27
- //{{{{{{{{{
28
-
29
- $topbar-bg: $color_contrast_text_bg
30
- $topbar-dropdown-bg: lighten($color_contrast_text_bg, 30%)
31
- $topbar-link-color: $color_contrast_text
32
- $topbar-dropdown-link-color: $color_contrast_text
33
- $topbar-dropdown-toggle-color: $color_contrast_text
34
- $topbar-menu-link-color: $color_contrast_text
35
- $topbar-menu-icon-color: $color_contrast_text
36
- $topbar-menu-link-color-toggled: #888
37
- $topbar-menu-icon-color-toggled: #888
38
-
39
- //{{{{{{{{{
40
- //{{{ SECTION
41
- //{{{{{{{{{
42
-
43
- $section-title-color: $section_title
44
- $section-title-bg: $section_title_bg
45
- $section-title-bg-active-tabs: $section_active_bg
46
- $section-content-bg: $section_content_bg
47
-
48
- //{{{{{{{{{
49
- //{{{ TABS
50
- //{{{{{{{{{
51
-
52
- $tab-background: $section-title-bg
53
- $tab-border-color: $section-active-bg
54
- $tab-content-border-color: $primary-color
55
-
56
- $tab-active-border-color: darken($section-title-bg-active-tabs, 10%)
57
- $tab-active-color-bg: $section-title-bg-active-tabs
58
- $tab-active-content-color-bg: white
59
-
60
- $tab-inactive-border-color: $section_title_bg
61
- $tab-inactive-color-bg: darken(white, 5%)
62
-
63
-
64
- //{{{{{{{{{
65
- //{{{ PANEL
66
- //{{{{{{{{{
67
-
68
- $panel-bg: darken($color_main_text_bg, 5%)
69
- $panel-font-color-alt: $color_contrast_text
70
-
71
- //{{{{{{{{{
72
- //{{{ DROPDOWN
73
- //{{{{{{{{{
74
-
75
- $f-dropdown-bg: $color_main_text_bg
76
- $f-dropdown-list-hover-bg: $very_subtle_main_text_bg
77
- $dropdown-button-pip-color: $color_contrast_text
78
- $f-dropdown-font-color: $subtle_main_text
79
- $f-dropdown-border-color: $subtle_main_text_bg
80
- $f-dropdown-triangle-color: $color_main_text_bg
81
-
82
- //{{{{{{{{{
83
- //{{{ TABLE
84
- //{{{{{{{{{
85
-
86
- $table-bg: $color_main_text_bg
87
- $table-even-row-bg: #f9f9f9
88
- $table-head-bg: #f5f5f5
89
-
90
- $table-head-font-color: $color_main_text
91
- $table-row-font-color: $color_main_text
92
-
93
- //{{{{{{{{{
94
- //{{{ BACKGROUNDS
95
- //{{{{{{{{{
96
-
97
- $legend-bg: $color_main_text_bg
98
- $reveal-modal-bg: $color_main_text_bg
99
-
100
- $custom-form-bg: $color_main_text_bg
101
- $custom-select-bg: $color_main_text_bg
102
- $custom-dropdown-bg: $color_main_text_bg
103
- $input-bg-color: $color_main_text_bg
104
- $input-focus-bg-color: darken($color_main_text_bg, 2%)
105
- $input-prefix-bg: darken($color_main_text_bg, 5%)
106
- $custom-form-bg-disabled: #ddd
107
- $input-disabled-bg: #ddd
108
-
109
- //{{{{{{{{{
110
- //{{{ FONTS
111
- //{{{{{{{{{
112
-
113
-
114
- $alert-font-color: $color_contrast_text
115
- $button-font-color: $color_contrast_text
116
-
117
- $split-button-pip-color: $color_contrast_text
118
- $sub-nav-active-color: $color_contrast_text
119
-
120
- // $button-font-color-alt: #333
121
- // $panel-font-color: #333
122
- // $split-button-pip-color-alt: #333
123
- // $dropdown-button-pip-color-alt: #333
124
-
125
- // $sub-nav-font-color: #999
126
- // $section-border-color: #ccc
127
-
128
-
129
- //{{{{{{{{{
130
- //{{{ MISC
131
- //{{{{{{{{{
132
-
133
- // $hr-border-color: #ddd
134
-
135
- // $alert-color: #c60f13
136
- // $success-color: #5da423
137
-
138
- // $alert-close-color: #333
139
-
140
- // $table-border-color: #ddd
141
-
142
- //{{{{{{{{{{{{{{{ {}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
143
-
144
- //{{{{{{{{{{{{{{{ {}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
145
- //{{{ OTHER STUFF {}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
146
- //{{{{{{{{{{{{{{{ {}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
147
-
148
- //{{{{{{{{{{{{{{{ {}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
149
-
150
- // $custom-form-border-color: #ccc
151
- // $custom-form-check-color: #222
152
- // $custom-select-fade-to-color: #f3f3f3
153
- // $custom-select-border-color: #ddd
154
- // $custom-select-triangle-color: #aaa
155
- // $custom-select-triangle-color-open: #222
156
- // $custom-select-font-color-selected: #141414
157
- // $custom-select-disabled-color: #888
158
- // $custom-dropdown-border-color: darken(#fff, 20%)
159
- // $custom-dropdown-font-color: #555
160
- // $custom-dropdown-color-selected: #eeeeee
161
- // $custom-dropdown-font-color-selected: #000
162
-
163
- // $label-font-color: lighten(#000, 30%)
164
- // $input-bg-color: #fff
165
- // $input-focus-bg-color: darken(#fff, 2%)
166
- // $input-border-color: darken(#fff, 20%)
167
- // $input-focus-border-color: darken(#fff, 40%)
168
- // $fieldset-border-color: #ddd
169
- // $input-prefix-border-color: darken(#fff, 20%)
170
- // $input-prefix-font-color: #333
171
- // $input-prefix-font-color-alt: #fff
172
- // $input-error-message-font-color: #fff
173
- // $input-error-message-font-color-alt: #333
174
-
175
- // $crumb-font-color-current: #333
176
- // $crumb-font-color-unavailable: #999
177
- // $crumb-slash-color: #aaa
178
-
179
- // $clearing-close-color: #fff
180
- // $clearing-caption-font-color: #fff
181
-
182
- // $joyride-tip-font-color: #fff
183
- // $joyride-tip-timer-color: #666
184
- // $joyride-tip-close-color: #777
185
- // $keystroke-font-color: #222
186
- // $keystroke-font-color-alt: #fff
187
-
188
- // $orbit-caption-font-color: #fff
189
- // $orbit-bullet-nav-color: #999
190
- // $orbit-bullet-nav-color-active: #222
191
- // $orbit-slide-number-font-color: #fff
192
-
193
- // $pagination-li-font-color: #222
194
- // $pagination-link-font-color: #999
195
- // $pagination-link-unavailable-font-color: #999
196
- // $pagination-link-current-font-color: #fff
197
-
198
- // $price-title-color: #333
199
- // $price-money-color: #333
200
- // $price-desc-color: #777
201
- // $price-item-color: #333
202
-
203
- // $reveal-close-color: #aaa
204
- // $reveal-border-color: #666
205
- // $switch-negative-color: #f5f5f5
206
-
207
- // $thumb-border-color: #fff
208
- // $has-tip-font-color: #333
209
- // $tooltip-font-color: #fff
210
- // $tooltip-close-font-color: #888
211
-
212
- // $microformat-border-color: #ddd
213
-
214
-
215
- //{{{{ BACKGROUNDS
216
-
217
- // $clearing-bg: #111
218
- // $clearing-carousel-bg: #111
219
- //
220
- // $keystroke-bg: darken(#fff, $keystroke-function-factor)
221
- // $orbit-caption-bg-old-browser: #000
222
- // $pagination-link-active-bg: darken(#fff, 10%)
223
- // $price-title-bg: #ddd
224
- // $price-money-bg: #eee
225
- // $price-bg: #fff
226
- // $price-cta-bg: #f5f5f5
227
- //
228
- // $switch-bg: #fff
229
- // $switch-paddle-bg: #fff
230
- //
231
- // $tooltip-bg: #000