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,51 @@
1
+ /**
2
+ * SASS/SCSS/Compass Transcription of Skeleton Responsive Grid
3
+ * originally authored by Dave Gamache. This translation offers
4
+ * mixins that support fluid and as well as fixed grids to supplement
5
+ * the work that Dave Gamache has done.
6
+ * @author Dennis Thompson <http://www.atomicpages.net>
7
+ * @copyright Copyright (c) 2013 AtomicPages LLC
8
+ * @license MIT
9
+ * @version 1.5.1
10
+
11
+ // IMPORTS
12
+ @import vars
13
+
14
+ // import _global_variables.scss
15
+ @import mixins
16
+
17
+ // import _mixins.scss
18
+
19
+ /* SITE STYLES
20
+ * ------------------------------------------------
21
+ /* Add site styles here such as a { color: #000; }
22
+
23
+ /* PAGE STYLES
24
+ * ------------------------------------------------
25
+ /* Add page styles here such as .page-home { background: rgba(0, 0, 0, 0.4); }
26
+
27
+ /* MEDIA QUERIES
28
+ * ------------------------------------------------
29
+ /* Otherwise known as custom responsive code! Write it here!
30
+ @media only screen and (min-width: $baseWidthMQ) and (max-width: 1280px)
31
+ /* add code here
32
+
33
+ /* Smaller than standard #{strip-units($baseWidthMQ)} (devices and browsers)
34
+ @media only screen and (max-width: $baseWidthMQ - 1)
35
+ /* add code here
36
+
37
+ /* Tablet Portrait size to standard #{strip-units($baseWidthMQ)} (devices and browsers)
38
+ @media only screen and (min-width: $tabletWidth) and (max-width: $baseWidthMQ - 1)
39
+ /* add code here
40
+
41
+ /* All Mobile Sizes (devices and browser)
42
+ @media only screen and (max-width: $tabletWidth - 1)
43
+ /* add code here
44
+
45
+ /* Mobile Landscape Size to Tablet Portrait (devices and browsers)
46
+ @media only screen and (min-width: 480px) and (max-width: $tabletWidth - 1)
47
+ /* add code here
48
+
49
+ /* Mobile Portrait Size to Mobile Landscape Size (devices and browsers)
50
+ @media only screen and (max-width: 479px)
51
+ /* add code here
@@ -0,0 +1,105 @@
1
+ /**
2
+ * SASS/SCSS/Compass Transcription of Skeleton Responsive Grid
3
+ * originally authored by Dave Gamache. This translation offers
4
+ * mixins that support fluid and as well as fixed grids to supplement
5
+ * the work that Dave Gamache has done.
6
+ * @author Dennis Thompson <http://www.atomicpages.net>
7
+ * @copyright Copyright (c) 2013 AtomicPages LLC
8
+ * @license MIT
9
+ * @version 1.5.1
10
+
11
+ // IMPORTS
12
+ @import vars
13
+
14
+ // import _vars
15
+ @import mixins
16
+
17
+ // import _mixins
18
+
19
+ /* BASE GRID
20
+ * ------------------------------------------------
21
+ .container
22
+ position: relative
23
+ width: $baseWidth
24
+ margin: 0 auto
25
+ padding: 0
26
+ .column,
27
+ .columns
28
+ float: left
29
+ display: inline
30
+ position: relative
31
+ &.alpha
32
+ margin-left: 0
33
+ &.omega
34
+ margin-right: 0
35
+
36
+ .row
37
+ margin-bottom: 20px
38
+
39
+ // @include grid($baseWidth, true); // fluid
40
+ // @include grid($baseWidth, false, 20px, 12); // 12-column fixed grid
41
+ // @include grid($baseWidth, false, 20px, 20); // 20-column fixed grid
42
+ +grid($baseWidth)
43
+
44
+ /* TABLET (PORTRAIT)
45
+ * ------------------------------------------------
46
+ @media only screen and (min-width: 768px) and (max-width: 959px)
47
+ .container
48
+ width: $tabletWidth
49
+ .column, .columns
50
+ &.alpha
51
+ margin:
52
+ left: 0
53
+ right: 10px
54
+ &.omega
55
+ margin:
56
+ right: 0
57
+ left: 10px
58
+ .alpha.omega
59
+ margin:
60
+ left: 0
61
+ right: 0
62
+ // @include grid($tabletWidth, true); // fluid
63
+ // @include grid($tabletWidth, false, 20px, 12); // 12-column fixed grid
64
+ // @include grid($tabletWidth, false, 20px, 20); // 20-column fixed grid
65
+ +grid($tabletWidth, false)
66
+ // fixed
67
+
68
+ /* MOBILE (PORTRAIT)
69
+ * ------------------------------------------------
70
+ @media only screen and (max-width: 767px)
71
+ +mobileGrid($mobilePortraitWidth)
72
+
73
+ /* MOBILE (LANDSCAPE)
74
+ * ------------------------------------------------
75
+ @media only screen and (min-width: 480px) and (max-width: 767px)
76
+ +mobileGrid($mobileLandscapeWidth)
77
+
78
+ /* CLEARING
79
+ * ------------------------------------------------
80
+ .container:after
81
+ content: "\0020"
82
+ display: block
83
+ height: 0
84
+ clear: both
85
+ visibility: hidden
86
+
87
+ .clearfix, .row
88
+ zoom: 1
89
+ &:before, &:after
90
+ content: "\0020"
91
+ display: block
92
+ overflow: hidden
93
+ visibility: hidden
94
+ width: 0
95
+ height: 0
96
+ &:after
97
+ clear: both
98
+
99
+ .clear
100
+ clear: both
101
+ display: block
102
+ overflow: hidden
103
+ visibility: hidden
104
+ width: 0
105
+ height: 0
@@ -0,0 +1,56 @@
1
+ $base03: #002b36
2
+ $base02: #073642
3
+ $base01: #586e75
4
+ $base00: #657b83
5
+ $base0: #839496
6
+ $base1: #93a1a1
7
+ $base2: #eee8d5
8
+ $base3: #fdf6e3
9
+ $yellow: #b58900
10
+ $orange: #cb4b16
11
+ $red: #dc322f
12
+ $magenta: #d33682
13
+ $violet: #6c71c4
14
+ $blue: #268bd2
15
+ $cyan: #2aa198
16
+ $green: #859900
17
+
18
+ =rebase($rebase03,$rebase02,$rebase01,$rebase00,$rebase0,$rebase1,$rebase2,$rebase3)
19
+ background-color: $rebase03
20
+ color: $rebase0
21
+ *
22
+ color: $rebase0
23
+ h1,h2,h3,h4,h5,h6
24
+ color: $rebase1
25
+ border-color: $rebase0
26
+
27
+ a, a:active, a:visited
28
+ color: $rebase1
29
+
30
+ =accentize($accent1, $accent2)
31
+ a, a:active, a:visited, code.url
32
+ color: $accent1
33
+ h1,h2,h3,h4,h5,h6
34
+ color: $accent2
35
+
36
+
37
+ //@mixin rebase($rebase03,$rebase02,$rebase01,$rebase00,$rebase0,$rebase1,$rebase2,$rebase3)
38
+ //{
39
+ // background-color:$rebase03;
40
+ // color:$rebase0;
41
+ // * { color:$rebase0; }
42
+ // h1,h2,h3,h4,h5,h6 { color:$rebase1; border-color: $rebase0; }
43
+ // a, a:active, a:visited { color: $rebase1; }
44
+ //}
45
+ //@mixin accentize($accent) {
46
+ // a, a:active, a:visited, code.url { color: $accent; }
47
+ // h1,h2,h3,h4,h5,h6 {color:$accent}
48
+ //}
49
+ ///* light is default mode, so pair with general html definition */
50
+ //html, .light { @include rebase($base3,$base2,$base1,$base0,$base00,$base01,$base02,$base03)}
51
+ //.dark { @include rebase($base03,$base02,$base01,$base00,$base0,$base1,$base2,$base3)}
52
+ //html * {
53
+ // color-profile: sRGB;
54
+ // rendering-intent: auto;
55
+ //}
56
+ //
@@ -1,116 +1,2 @@
1
- @import "colors"
2
- @import url(http://fonts.googleapis.com/css?family=Noticia+Text)
3
- @import url(http://fonts.googleapis.com/css?family=Open+Sans)
4
-
5
- body, p, h1, h2, h3, h4, h5, h6
6
- font-family: "Open Sans", "Trebuchet MS", "Noticia Text", Verdana, Arial, "Helvetica Neue", Helvetica, sans-serif
7
- line-height: 1.4em
8
-
9
- body
10
- font-size: 16px
11
-
12
- footer
13
- @extend .panel
14
- text-align: center
15
- font-size: 1em
16
- margin-top: 25px
17
- padding-top: 25px
18
- padding-bottom: 10px
19
-
20
- .action_controller
21
- background-color: lighten($primary-color, 65%)
22
- border: 1px solid
23
- border-color: lighten($primary-color, 30%)
24
- padding-top: 3px
25
- ul.actions > li.active > a
26
- background-color: darken($primary-color, 30%)
27
-
28
- ul.controls, ul.actions
29
- @extend .button-group-list
30
-
31
- ul.controls
32
- li.parameters:not(.active), li.reload:not(.active)
33
- a
34
- background-color: lighten($primary-color, 50%)
35
- border-color: lighten($primary-color, 30%)
36
-
37
- .action_loader
38
- span.loading, span.error
39
- margin-top: 1em
40
- display: inline-block
41
-
42
- .action_parameters
43
- +panel_background()
44
-
45
- .action_loader
46
- &.reloading
47
- *
48
- color: rgba(0,0,0,0.2) !important
49
-
50
- .entity_list_card
51
- .sidebar
52
- ul.entity_list
53
- li
54
- overflow: hidden
55
- text-overflow: ellipsis
56
-
57
- .sidebar
58
- font-size: 0.9em
59
- @media #{$not_small}
60
- .action_controller
61
- font-size: 0.9em
62
- .action_loader
63
- img
64
- max-width: 900px
65
-
66
- @media #{$only_small}
67
- ul.actions
68
- li.select, li.select a
69
- background-color: rgba(0,0,0,0)
70
- color: rgba(0,0,0,0)
71
- z-index: 15
72
-
73
- ul.actions.select
74
- @include panel()
75
- background-color: $color_main_text_bg
76
- position: absolute
77
- bottom: -4em
78
- z-index: 15
79
- li
80
- position: relative
81
- margin-bottom: 2px
82
- z-index: 16
83
- li.select
84
- display: none
85
-
86
- ul.clean_list
87
- list-style: none
88
-
89
- span.error_message
90
- font-size: 1.2em
91
- display: block
92
- margin: 1em 0px
93
-
94
- ul.error_backtrace, ul.step_messages
95
- color: gray
96
-
97
- select.favourite_entities
98
- option:disabled
99
- font-weight: bold
100
-
101
- a.entity.highlighted
102
- font-weight: bold
103
-
104
- .help
105
- margin: auto
106
- ul
107
- margin-left: 2em
108
-
109
- p
110
- max-width: 60em
111
-
112
-
113
- a.help
114
- display: block
115
- font-size: 2em
116
- line-height: 2em
1
+ .menu_item
2
+ +_rbbt_menu_item
@@ -1,58 +1,71 @@
1
- $red: #900
2
- $white: #fff
3
- $black: #000
4
- $black: #222
1
+ @import 'solarized'
5
2
 
6
- $color1: #A9DC3A
7
- $color2: #2FCAD8
8
- $color3: #D45354
9
- $color4: #CDCDC1
3
+ $color1: $base03
4
+ $color2: $base02
5
+ $color3: $base3
10
6
 
11
- $color1: #21445B
12
- $color2: #5D8A66
13
- $color4: #1A6566
14
- $color3: #EBD096
7
+ $color_main: $color1
8
+ $color_alt: $yellow
9
+ $color_alt2: $magenta
10
+ $color_alt3: $cyan
15
11
 
12
+ $color_panel_bg: $color_main
16
13
 
17
- $main: #FFFFFF
18
- $contrast: #AFD687
19
- $primary: #008798
20
- $secondary: #00C3A9
21
- $contrast: $primary
14
+ $color_menu_border: #494949
15
+ $color_menu_text: #020202
22
16
 
23
17
 
24
- // $color_main_text: #222
25
- // $color_main_text_bg: #fff
26
- $color_main_text: darken($main, 95%)
27
- $color_main_text_bg: lighten($main, 70%)
28
- $color_main_text_bg: lighten($main, 70%)
29
- //
18
+ .dark
19
+ +rebase($base3,$base2,$base1,$base0,$base00,$base01,$base02,$base03)
20
+ .light
21
+ +rebase($base03,$base02,$base01,$base00,$base0,$base1,$base2,$base3)
30
22
 
31
- // $color_contrast_text: #fff
32
- // $color_contrast_text_bg: #111
33
- $color_contrast_text: $white
34
- $color_contrast_text_bg: darken($contrast, 20%)
35
- //
23
+ body
24
+ background-color: $base3
36
25
 
37
- // $primary-color: #2ba6cb
38
- // $secondary-color: #e9e9e9
39
- $primary-color: $primary
40
- //$secondary-color: $secondary
41
- //
26
+ html
27
+ *
28
+ color-profile: sRGB
29
+ rendering-intent: auto
30
+ @extend .dark
31
+ +accentize($color_alt, $color_alt2)
32
+
42
33
 
43
- //{{{{{{ COMPUTED
34
+ //{{{ RBBT MENUS
44
35
 
45
- $subtle_main_text_bg: darken($color_main_text_bg, 20%)
46
- $subtle_main_text: lighten($color_main_text, 30%)
36
+ $color_top_menu: $base02
47
37
 
48
- $very_subtle_main_text_bg: darken($color_contrast_text_bg, 5%)
49
- $very_subtle_main_text_bg: darken($color_main_text_bg, 5%)
50
- $very_subtle_main_text: lighten($color_contrast_text, 10%)
38
+ $color_menu_bg: $base03
39
+ $color_menu_text: $base0
40
+ $color_menu_item_bg: $base03
41
+ $color_menu_item_text: $base0
42
+ $color_menu_content_bg: $base3
43
+ $color_menu_content_text: $base0
51
44
 
52
- // SECTION
53
- $section_title: $very_subtle_main_text
54
- $section_title_bg: $very_subtle_main_text_bg
55
- $section_active_bg: $subtle_main_text_bg
56
- $section_content_bg: $color_main_text_bg
45
+ $color_list_management_bg: $base02
46
+ //{{{ RBBT PANEL
57
47
 
48
+ $color_panel_bg: $base02
49
+ $color_panel_border: $base1
50
+ $color_panel_text: $base0
58
51
 
52
+ //{{{ ACTIONS
53
+
54
+ $action-color: $base02
55
+ $color_action_controler_bg: $action-color
56
+ $color_action_controler_border: $base01
57
+
58
+ $color_action_active_bg: $base03
59
+ $color_action_active_border: $base02
60
+
61
+ $color_action_inactive_bg: $base01
62
+ $color_action_inactive_border: $base01
63
+
64
+ $color_action_parameters_bg: $base2
65
+ $color_action_parameters_text: $base0
66
+ $color_action_parameters_border: $base01
67
+ $color_action_parameter_label: $base01
68
+
69
+ //{{{ TABLES
70
+
71
+ $table_color: lighten($color_alt, 60)