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
@@ -1,113 +1,49 @@
1
- // GRID LAYOUT
2
- .entity_card, .entity_list_card, .action_card, .entity_map_card
1
+ =card_title
2
+ margin-bottom: $vindent
3
+ .name
4
+ @extend h3
5
+ //font-size: 1.5em
6
+ //font-weight: 600
7
+ //margin-bottom: 0.3em
8
+ .long_name
9
+ font-size: 1.2em
10
+ font-weight: 600
11
+ //margin-top: 0
12
+ margin-left: $indent
13
+ //display: inline-block
14
+ //text-overflow: ellipsis
15
+
16
+ =card
17
+ +grid-row()
3
18
 
4
19
  & > .title
5
- @include grid-row(collapse)
6
- @include grid-column()
7
-
8
- & > .card
9
- clear: both
10
- @include grid-row()
11
-
12
- @media #{$not_small}
13
- & > .sidebar
14
- @include grid-column(3, $float:left)
15
- & > .content
16
- @include grid-column(9, $float:right, $last-column:true, $collapse:true)
17
-
18
- @media #{$only_small}
19
- & > .sidebar
20
- @include grid-column(4)
21
- & > .content
22
- @include grid-column(12, $collapse:true, $float:none)
23
-
24
- & > .content
25
- position: relative
26
- & > .description
27
- @include grid-row()
28
- @include grid-column(12)
29
- width: 100%
30
- & > .actions
31
- width: 100%
32
- & > .action_controller
33
- @include grid-row()
34
- @include grid-column(12)
35
- width: 100%
36
- & > .action_loader
37
- @include grid-row()
38
- @include grid-column(12)
39
-
40
-
41
- & > .action_parameters
42
- @include grid-row()
43
- @include grid-column()
44
-
45
- & > .action_content
46
- @include grid-row()
47
- @include grid-column($float:none)
48
- margin-top: 0
49
- clear: left
50
-
51
-
52
- .entity_card, .entity_list_card, .action_card, .entity_map_card
53
- & > .title
54
- margin-bottom: 1em
55
-
56
- .name
57
- @extend h3
58
- font-weight: 600
59
- margin-bottom: 0.3em
60
- .long_name
61
- @extend h5
62
- font-weight: 200
63
- margin-top: 0
64
- margin-left: 1em
65
- display: inline-block
66
- text-overflow: ellipsis
20
+ +card_title
21
+ width: 100%
22
+ padding: 0
67
23
 
68
24
  & > .card
69
-
70
- & > .sidebar
71
- .meta
72
- padding: $vindent 0 0 0
73
- +panel_background()
74
- & > *
75
- padding: 0 $indent
76
- dl
77
- +dl_indented()
78
-
79
- div.entity_lists
80
- padding: 0
81
-
82
- ul.entity_list
83
- list-style: none
84
-
85
- .list_management
86
- ul
87
- overflow: auto
88
- list-style: none
89
- li > a
90
- @extend .button
91
- @extend .tiny
92
-
93
- & > .content
94
- position: relative
95
- div.description
96
- margin-bottom: 20px
97
- p
98
- text-align: justify
99
- max-width: 50em
100
-
101
-
102
- @media #{$not-small}
103
- .reveal-modal
104
- .entity_card, .entity_list_card, .action_card, .entity_map_card
105
- &> .card
106
- &>.sidebar
107
- width: 33%
108
- &>.content
109
- width: 67%
110
-
111
- form.rename
112
- input[name=rename]
113
25
  width: 100%
26
+ padding: 0
27
+ position: relative
28
+ & > .sidebar
29
+ +rbbt_panel
30
+ z-index: 10
31
+ @media #{$not-large}
32
+ width: 100%
33
+ &:not(.shown)
34
+ display: none
35
+ @media #{$only-large}
36
+ +grid-column(3, $float:left)
37
+ padding: 0px !important
38
+
39
+ margin-bottom: $vindent
40
+ & > .content, & > .action_content
41
+ @media #{$not-large}
42
+ @media #{$only-large}
43
+ +grid-column(9, $float:right, $last_column: true)
44
+ padding-right: 0px !important
45
+
46
+ & > .actions
47
+ .action_controller
48
+ > ul
49
+ +clean_list
@@ -1,75 +1,20 @@
1
- .reveal-modal a.toggle_favourite
2
- &:not(.active)
3
- i
4
- color: black !important
1
+ #top_menu > ul > li.favourites > dl > dd > dl > dd > ul
2
+ margin: 0
3
+ & > li
4
+ @media #{only-large}
5
+ +ellipsis_text
6
+ display: block
5
7
 
6
- a#toggle_favourite, .reveal-modal a.toggle_favourite
7
- &.inactive
8
- span.remove
9
- display: none !important
10
- i
11
- color: white
12
-
13
- &.active
14
- span.add
15
- display: none !important
16
- i
17
- color: yellow
18
-
19
- #find_wrapper
20
- background-color: grey
21
- position: absolute
22
- top: 3.2em
23
- left: 14em
24
- z-index: 999
25
- ul
26
- li
27
- margin-bottom: 2px
28
- list-style: none
29
- span.code
30
- font-size: 0.5em
31
- margin-left: 1em
8
+ #top_menu > ul > li.user ul.jobs
9
+ margin: 0
10
+ & > li
11
+ @media #{only-large}
12
+ +ellipsis_text
13
+ display: block
32
14
 
33
- ul.favourite_entity_lists
34
- li
35
- ul
36
- li:not(.title)
37
- +clearfix()
38
- position: relative
39
- width: 100%
40
- padding-right: 3em
41
- a
42
- min-height: 1em
43
- display: inline-block !important
44
- &.highlight
45
- width: 3em !important
46
- position: absolute
47
- left: 0
48
- &.active
49
- i
50
- color: yellow
51
- &:not(.highlight)
52
- position: relative
53
- margin-left: 3em
54
15
 
55
-
56
- ul.favourite_entities, ul.favourite_entity_lists, ul.favourite_entity_maps
57
- ul.dropdown
58
- li
59
- @media #{ $not-small }
60
- background: none repeat scroll 0 0 #00434C
61
- a
62
- @media #{ $not-small }
63
- +ellipsis_text()
64
- max-width: 400px
65
- z-index: 9
66
- &:not(.highlight):hover
67
- white-space: normal !important
68
- z-index: 10
69
-
70
-
71
- //@media only screen and (max-width: 767px)
72
- #find_wrapper
73
- top: 9em
74
- left: 0em
75
-
16
+ select[type=All]
17
+ option[disabled]
18
+ font-weight: bold
19
+ &:before
20
+ content: "\000A7\000A0"
@@ -0,0 +1,30 @@
1
+ li.find
2
+ @media #{$only-large}
3
+ width: 19em
4
+ margin-left: $indent
5
+ margin-right: $indent
6
+ @media #{$not-large}
7
+ width: 50%
8
+ margin: 0
9
+ padding: 0
10
+ form
11
+ width: 98%
12
+ @media #{$not-large}
13
+ margin-left: auto
14
+ margin-right: auto
15
+ position: relative
16
+ +rbbt_menu_item($color_bg: rgba(0,0,0,0))
17
+ padding: 0
18
+ input[type=text]
19
+ width: 100%
20
+ height: 2em
21
+ padding-right: $width_finder_button
22
+ button[type=submit]
23
+ width: $width_finder_button
24
+ display: inline-block
25
+ @media #{$not-large}
26
+ display: none
27
+ position: absolute
28
+ bottom: 1px
29
+ right: 0
30
+ height: 2em
@@ -0,0 +1,79 @@
1
+ // Make sure the charset is set appropriately
2
+ @charset "UTF-8"
3
+
4
+ // This includes all of the foundation global elements that are needed to work with any of the other files.
5
+ @import "foundation/variables"
6
+
7
+
8
+ $breakpoint: 1024px
9
+
10
+ $small-screen: emCalc($breakpoint)
11
+ $medium-screen: emCalc(1280px)
12
+ $large-screen: emCalc(1440px)
13
+
14
+ //$small: "only screen and (min-width:"#{$small-screen}")"
15
+ //$medium: "only screen and (min-width:"#{$medium-screen}")"
16
+ //$large: "only screen and (min-width:"#{$large-screen}")"
17
+ //
18
+ //
19
+ //$very_small: "only screen and (max-width: #{$small-screen / 2})"
20
+ //
21
+ //$topbar-breakpoint: emCalc($breakpoint)
22
+ //$topbar-media-query: "only screen and (min-width:"#{$topbar-breakpoint}")"
23
+
24
+ $row-width: auto
25
+ $column-gutter: 30px
26
+ $total-columns: 12
27
+ //$mobile-total-columns: 4
28
+ //$block-grid-elements: 12
29
+
30
+
31
+ $indent: 15px
32
+ $vindent: 22px
33
+
34
+
35
+ // Foundation Components
36
+ @import "foundation/components/global"
37
+ @import "foundation/components/grid"
38
+ @import "foundation/components/visibility"
39
+ //@import "foundation/components/block-grid"
40
+ @import "foundation/components/type"
41
+ //@import "foundation/components/buttons"
42
+ //@import "foundation/components/forms"
43
+ //@import "foundation/components/button-groups"
44
+ //@import "foundation/components/dropdown-buttons"
45
+ //@import "foundation/components/split-buttons"
46
+ //@import "foundation/components/flex-video"
47
+ //@import "foundation/components/section"
48
+ //@import "foundation/components/top-bar"
49
+ //@import "foundation/components/orbit"
50
+ //@import "foundation/components/reveal"
51
+ //@import "foundation/components/joyride"
52
+ //@import "foundation/components/clearing"
53
+ //@import "foundation/components/alert-boxes"
54
+ //@import "foundation/components/breadcrumbs"
55
+ //@import "foundation/components/custom-forms"
56
+ //@import "foundation/components/keystrokes"
57
+ //@import "foundation/components/labels"
58
+ //@import "foundation/components/inline-lists"
59
+ @import "foundation/components/pagination"
60
+ //@import "foundation/components/panels"
61
+ //@import "foundation/components/pricing-tables"
62
+ //@import "foundation/components/progress-bars"
63
+ //@import "foundation/components/side-nav"
64
+ //@import "foundation/components/sub-nav"
65
+ //@import "foundation/components/switch"
66
+ //@import "foundation/components/magellan"
67
+ //@import "foundation/components/tables"
68
+ //@import "foundation/components/thumbs"
69
+ //@import "foundation/components/tooltips"
70
+ //@import "foundation/components/dropdown"
71
+
72
+
73
+
74
+ //
75
+ $not-small: "only screen and (min-width: #{$small-screen})"
76
+ $only-small: "only screen and (max-width: #{$small-screen})"
77
+
78
+ $only-large: "only screen and (min-width: #{$small-screen})"
79
+ $not-large: "only screen and (max-width: #{$small-screen})"
@@ -0,0 +1,27 @@
1
+ =indented_dl()
2
+ dt
3
+ font-weight: bold
4
+ dd
5
+ padding-left: 1em
6
+
7
+ =clean_list($inline: true)
8
+ list-style: none
9
+ margin: 0
10
+ @if ($inline)
11
+ & > li
12
+ display: inline-block
13
+
14
+ =ellipsis_text()
15
+ overflow: hidden
16
+ white-space: nowrap
17
+ text-overflow: ellipsis
18
+ &:hover
19
+ overflow: visible
20
+ white-space: normal
21
+ text-overflow: none
22
+
23
+ =rbbt_panel($color_bg: $color_panel_bg, $color_border: $color_panel_border)
24
+ background-color: $color_bg
25
+ border: 1px solid $color_border
26
+ padding: $vindent $indent
27
+
@@ -0,0 +1,3 @@
1
+ a.help
2
+ font-size: 1.2em
3
+ display: block
@@ -0,0 +1,132 @@
1
+ $gap: 12px
2
+ body
3
+ margin: 0
4
+ font-size: 14px !important
5
+ +clearfix
6
+
7
+ #content
8
+ +clearfix
9
+ min-height: 900px
10
+ margin-left: $indent
11
+ margin-right: $indent
12
+ margin-bottom: $vindent
13
+
14
+ dl.rbbt_menu
15
+ @media #{$not-large}
16
+ +rbbt_accordion
17
+ @media #{$only-large}
18
+ +rbbt_menu
19
+
20
+ dl.rbbt_vertical_menu
21
+ @media #{$not-large}
22
+ +rbbt_accordion
23
+ @media #{$only-large}
24
+ +rbbt_vertical_menu
25
+
26
+ dl.rbbt_accordion
27
+ +rbbt_accordion
28
+ @media #{$not-large}
29
+
30
+ dl.tabs, dl.rbbt_tabs
31
+ +rbbt_tabs
32
+
33
+ dl.rbbt_menu, dl.rbbt_vertical_menu, dl.rbbt_accordion, dl.tabs, dl.rbbt_tabs
34
+ @media #{$not-large}
35
+ width: 100%
36
+ dt
37
+ min-width: 30%
38
+
39
+ ul.clean_list
40
+ +clean_list(false)
41
+
42
+ //@import url(http://fonts.googleapis.com/css?family=Noticia+Text)
43
+
44
+ //@import url(http://fonts.googleapis.com/css?family=Open+Sans)
45
+ @font-face
46
+ font-family: 'Open Sans'
47
+ font-style: normal
48
+ font-weight: 400
49
+ src: local('Open Sans'), local('OpenSans'), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/cJZKeOuBrn4kERxqtaUH3T8E0i7KZn-EPnyo3HZu7kw.woff) format('woff')
50
+
51
+
52
+
53
+ body, p, h1, h2, h3, h4, h5, h6
54
+ font-family: "Open Sans", "Trebuchet MS", "Noticia Text", Verdana, Arial, "Helvetica Neue", Helvetica, sans-serif
55
+ line-height: 1.4em
56
+
57
+ footer
58
+ text-align: center
59
+ position: relative
60
+ clear: both
61
+ margin: 0
62
+ margin-top: $vindent
63
+ padding: $vindent $indent
64
+ background-color: $color_main
65
+ border-top: 1px solid darken($color_menu_bg, 15)
66
+
67
+ .list_management, .map_management
68
+ ul
69
+ +rbbt_button_list($color_bg: $color_list_management_bg, $width: 31%)
70
+ border-bottom: 1px solid $color_menu_border
71
+
72
+ .map_management ul li
73
+ min-width: 45%
74
+
75
+ .filter_controls
76
+ @extend .action_parameters
77
+
78
+ ul.list_comparison
79
+ +clean_list
80
+ & > li
81
+ width: 100%
82
+ & > a
83
+ ul.list_comparison_buttons
84
+ +clean_list
85
+ display: inline-block
86
+ background-color: #fff
87
+ padding: 0
88
+ margin: 0
89
+ margin-right: $indent
90
+ & > li
91
+ +_rbbt_menu_item
92
+ background-color: #fff
93
+ border: 1px solid rgba(0,0,0,0.11)
94
+ padding: 0 5px
95
+ a
96
+ width: 100%
97
+ display: inline-block
98
+
99
+ .input
100
+ &.list_id, &.map_id
101
+ width: 100%
102
+ input
103
+ width: 100%
104
+
105
+ .wait
106
+ ul.step_messages
107
+ +clean_list(false)
108
+ li
109
+ color: darken($color_main, 30)
110
+
111
+ h5
112
+ span.name
113
+ display: inline-block
114
+ margin-right: $indent
115
+ color: darken($color_main, 30)
116
+ span.hash
117
+ display: inline-block
118
+ color: $color_main
119
+
120
+ a[href]
121
+ &:not([href^=\/])
122
+ &:not([href^='#'])
123
+ &:after
124
+ content: '\2192'
125
+
126
+
127
+ .action_loader
128
+ min-height: 500px
129
+
130
+ @media #{$not-large}
131
+ table.wide, table.flip
132
+ +responsive_table