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,66 +0,0 @@
1
- .has-offcanvas
2
- position: relative
3
- min-height: 2em
4
-
5
- .offcanvas_button
6
- position: absolute !important
7
- top: - 30px
8
- height: 1em
9
- right: 14px
10
- z-index: 10
11
- font-size: 2em
12
-
13
- & > .open_icon
14
- display: inline
15
- & > .close_icon
16
- display: none
17
-
18
- @media #{$only_small}
19
-
20
- .has-offcanvas
21
- border-top: 1px solid grey
22
-
23
- .offcanvas
24
- display: none
25
- &[class*=active]
26
- width: 48% !important
27
- overflow: auto
28
- position: relative
29
- left: 0
30
- display: block
31
- float: right !important
32
- margin-right: 0
33
- z-index: 10
34
-
35
- .shifted
36
- min-height: 3em
37
-
38
- & > *:not([class*=offcanvas])
39
- margin-right: 50%
40
- margin-left: -50%
41
-
42
- .offcanvas_button
43
- z-index: 11
44
- & > .open_icon
45
- display: none
46
- & > .close_icon
47
- display: inline
48
-
49
- @media #{$very_small}
50
-
51
- .has-offcanvas
52
- border-top: 1px solid grey
53
-
54
- .offcanvas
55
- display: none
56
- &[class*=active]
57
- width: 88% !important
58
-
59
- .shifted
60
- & > *:not([class*=offcanvas])
61
- margin-right: 90%
62
- margin-left: -90%
63
-
64
- @media #{$not_small}
65
- .offcanvas_button
66
- display: none !important
@@ -1,80 +0,0 @@
1
- @media only screen and (max-width: 767px)
2
- table.flipped, table.wide
3
- display: block
4
- position: relative
5
- width: 100%
6
- border-collapse: collapse
7
- border-spacing: 0
8
- th, td
9
- margin: 0
10
- vertical-align: top
11
- height: 2em
12
-
13
- th
14
- text-align: left
15
-
16
- thead
17
- display: block
18
- float: left
19
- max-width: 40%
20
- white-space: nowrap
21
- overflow: auto
22
- overflow-y: hidden
23
-
24
- tfoot
25
- width: 100%
26
- float: right
27
-
28
- tbody
29
- display: block
30
- width: auto
31
- position: relative
32
- overflow-x: auto
33
- white-space: nowrap
34
-
35
-
36
- thead tr
37
- display: block
38
-
39
-
40
- th
41
- display: block
42
- text-align: right
43
-
44
-
45
- tbody tr
46
- display: inline-block
47
- vertical-align: top
48
-
49
-
50
- td
51
- display: block
52
- min-height: 1.25em
53
- text-align: left
54
-
55
- /* sort out borders */
56
-
57
- th
58
- border-bottom: 0
59
- border-left: 0
60
-
61
-
62
- td
63
- border-left: 0
64
- border-right: 0
65
- border-bottom: 0
66
-
67
-
68
- tbody tr
69
- border-left: 1px solid #babcbf
70
-
71
-
72
- //th:last-child, td:last-child
73
- tfoot
74
- border: 2px solid #babcbf
75
- border-top: 1px solid #babcbf
76
-
77
-
78
-
79
-
80
-
@@ -1,31 +0,0 @@
1
- .rbbt_reveal_content
2
- display: none !important
3
-
4
- .reveal-modal a.toggle_favourite
5
- &.active
6
- i
7
- color: #dd1 !important
8
- &:not(.active)
9
- i
10
- color: black !important
11
-
12
- .reveal-modal .header
13
- bottom-border: 1px solid grey
14
- .close
15
- float: right
16
- .title
17
- float: left
18
-
19
- .reveal-modal
20
- .controls
21
- a.link-reveal-modal
22
- @include reveal-close()
23
- right: 3em
24
- font-size: 1em
25
- top: 1.1em
26
-
27
- &:not(.url)
28
- .controls
29
- a.link-reveal-modal
30
- display: none
31
-
@@ -1,42 +0,0 @@
1
- @import foundation/components/inline-lists
2
- =dl_indented()
3
- dt
4
- font-weight: bold
5
- dd
6
- padding-left: 1em
7
-
8
- =panel_background()
9
- //background: darken($white, 5%)
10
- //border: solid 1px darken($white, 10%)
11
- @extend .panel
12
-
13
- =normal_button()
14
- @include button-base
15
- @include button-size
16
- @include button-style
17
- @include radius
18
- @include single-transition
19
-
20
- =button-group-list()
21
- @include inline-list()
22
- @include button-group-container()
23
- margin: 0
24
- margin-top: 5px
25
- margin-bottom: 5px
26
- li
27
- margin: 0 2px 0 0
28
-
29
- a
30
- +normal_button()
31
- margin-bottom: 2px
32
- font-size: 0.8em
33
-
34
- .button-group-list
35
- +button-group-list()
36
-
37
- =ellipsis_text()
38
- width: 100%
39
- overflow: hidden
40
- white-space: nowrap
41
- text-overflow: ellipsis
42
-
@@ -1,63 +0,0 @@
1
- $triglecolor: rgba(0,0,0,0.15)
2
- table
3
- //caption
4
- width: 100%
5
-
6
- &.wide
7
- td
8
- max-width: 200px
9
- overflow: hidden
10
- text-overflow: ellipsis
11
-
12
- tfoot
13
- ul.table_pagination
14
- margin-bottom: 0
15
- float: left
16
- li.active a
17
- text-decoration: underline
18
-
19
-
20
- ul.table_actions
21
- @include inline-list()
22
- @include button-group-container()
23
- margin-bottom: 0
24
- float: left
25
- li.filter
26
- @media print
27
- &
28
- display: none
29
-
30
-
31
- &.sorted
32
- thead
33
- tr
34
- th
35
- position: relative
36
-
37
- &:hover
38
- cursor: pointer
39
-
40
- &.headerSortUp:after, &.headerSortDown:after
41
- content: " "
42
- float: right
43
- right: 0
44
-
45
- &.headerSortDown:after
46
- margin-top: 5px
47
- @include css-triangle(5px, $triglecolor, top)
48
-
49
- &.headerSortUp:after
50
- margin-bottom: 5px
51
- @include css-triangle(5px, $triglecolor, bottom)
52
-
53
- .table_column_selector
54
- li
55
- @include grid-row()
56
-
57
- span
58
- @include ellipsis_text()
59
- @include grid-column(8)
60
- a
61
- @include grid-column(2, $last-column:false)
62
-
63
-
@@ -1,81 +0,0 @@
1
- @import colors
2
- @import "normalize"
3
- @import "foundation/_variables"
4
- @import foundation/components/_global
5
- dl.tabs
6
- position: relative
7
- background: $tab-background
8
- border: 1px solid $tab-border-color
9
- margin-bottom: 0
10
- padding-bottom: 0
11
-
12
- & > dt
13
- display: inline-block
14
- max-width: 40%
15
- overflow: hidden
16
- text-overflow: ellipsis
17
- cursor: pointer
18
- &.selected
19
- cursor: auto
20
-
21
-
22
- & > dd
23
- float: right
24
- width: 100%
25
- height: 0px
26
- margin: 0px
27
- overflow: hidden
28
- visibility: hidden
29
- &.selected
30
- height: auto
31
- visibility: visible
32
- overflow-x: auto
33
-
34
- & > dt
35
- border: 1px solid $tab-border-color
36
- background: $tab-inactive-color-bg
37
- padding: 5px
38
- margin: 10px 0px 5px 5px
39
-
40
- &.selected
41
- background: $tab-active-color-bg
42
- border-bottom: 2px solid $primary-color
43
-
44
- & > dd
45
- border: none
46
- margin: 0
47
- padding: 0
48
- &.selected
49
- padding: 5px
50
- border: 2px solid $tab-content-border-color
51
- background: white
52
- border-top: 1px solid $tab-border-color
53
- table
54
- margin: 0px
55
-
56
- // &:not(.selected)
57
- // height: 0px
58
- // margin: 0px
59
- // border: none
60
-
61
- //& > dt
62
- // z-index: 5
63
- // margin: 0px
64
- // margin-bottom: 0px
65
- // padding: 5px
66
- // padding-bottom: 2px
67
-
68
- // &:not(.selected)
69
- // z-index: 3
70
- // margin-bottom: 3px
71
-
72
- //& > dd
73
- // padding: 5px
74
- // margin: 0px
75
- // margin-bottom: 5px
76
- // z-index: 4
77
-
78
- // &:not(.selected)
79
- // padding: 0px
80
-
81
-
@@ -1,25 +0,0 @@
1
- #header
2
- margin-bottom: 1em
3
- nav.top-bar
4
- margin-bottom: 0 !important
5
-
6
- section.top-bar-section
7
- ul
8
- a#reload_page, a#toggle_favourite
9
- line-height: 43px
10
-
11
- li#top-add-favourite
12
- cursor: pointer
13
- li.search
14
- width: 300px
15
- //@include grid-row(nest-collapse)
16
- input, button
17
- display: inline-block
18
- input
19
- width: 70%
20
- button
21
- width: 28%
22
- left: -5px
23
- @media #{$not_small}
24
- top: 9
25
-
@@ -1,77 +0,0 @@
1
- /*
2
- * This is a fairly big mixin.
3
- * The reason for this is that at the time of writing (09/01/2013),
4
- * Sass does not include functions for substring or find/replace in string.
5
- * Chris Eppstein sent a Pull Request to Sass with the str-extract (substring) function back in June,
6
- * but it still has not been merged, due to lack of minor comments.
7
- * That was five months ago.
8
-
9
- =web-font($fonts, $variants: (), $subsets: (), $text: "", $effects: ())
10
- $url: "//fonts.googleapis.com/css?family="
11
- $i: 0
12
- // Add the family argument to the URL string.
13
- // We can assume that the user will always specify at least one font.
14
- @each $font in $fonts
15
- $i: $i + 1
16
- // Add the name of the font.
17
- $j: 0
18
- @each $word in $font
19
- $j: $j + 1
20
- $url: $url + $word
21
- // Add a plus symbol between words.
22
- @if $j < length($font)
23
- $url: $url + "+"
24
- // If there is/are font variant(s) for this font, add them.
25
- @if $j <= length($variants)
26
- $url: $url + ":"
27
- $k: 0
28
- @each $variant in nth($variants, $j)
29
- $k: $k + 1
30
- $url: $url + $variant
31
- // Add a comma between variants.
32
- // For some reason length($variant) doesn't work. Weird!
33
- @if $k < length(nth($variants, $j))
34
- $url: $url + ","
35
- // Add a pipe between words.
36
- // It would seem that a pipe isn't a valid URL character in its unescaped form,
37
- // but Google reccommend using it anyway.
38
- @if $i < length($fonts)
39
- $url: $url + "|"
40
- // Add the subset argument to the URL string, if it exists.
41
- @if length($subsets) > 0
42
- $url: $url + "&subset="
43
- $i: 0
44
- @each $subset in $subsets
45
- $i: $i + 1
46
- $url: $url + $subset
47
- // Add a comma between subsets.
48
- @if $i < length($subsets)
49
- $url: $url + ","
50
- // Add the text argument to the URL string, if it exists.
51
- // $text does not actually need to be enclosed in brackets.
52
- @if length($text) > 0 and $text != ""
53
- // To save the user the hassle of adding a space character every time they want
54
- // to use a web font, we add one automatically.
55
- $url: $url + "&text=%20#{$text}"
56
- // Add the effect argument to the URL string, if it exists.
57
- @if length($effects) > 0
58
- $url: $url + "&effect="
59
- $i: 0
60
- @each $effect in $effects
61
- $i: $i + 1
62
- // Add the name of the font.
63
- $j: 0
64
- @each $word in $effect
65
- $j: $j + 1
66
- $url: $url + $word
67
- // Add a hyphen between words.
68
- // A hyphen can actually be used to seperate words instead of a space,
69
- // in which case the words will be counted as one and no extra hyphens will be added.
70
- // Again, a string replacement function would make this a lot easier…
71
- @if $j < length($effect)
72
- $url: $url + "-"
73
- // Add a pipe between effects.
74
- @if $i < length($effects)
75
- $url: $url + "|"
76
- // Finally!
77
- @import url(#{$url})