wallaby 6.1.5 → 7.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/fonts/FontAwesome.otf +0 -0
  3. data/app/assets/fonts/fontawesome-webfont.eot +0 -0
  4. data/app/assets/fonts/fontawesome-webfont.svg +2671 -0
  5. data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
  6. data/app/assets/fonts/fontawesome-webfont.woff +0 -0
  7. data/app/assets/fonts/fontawesome-webfont.woff2 +0 -0
  8. data/app/assets/fonts/summernote.eot +0 -0
  9. data/app/assets/fonts/summernote.hash +1 -0
  10. data/app/assets/fonts/summernote.ttf +0 -0
  11. data/app/assets/fonts/summernote.woff +0 -0
  12. data/app/assets/fonts/summernote.woff2 +0 -0
  13. data/app/assets/javascripts/wallaby/base.js +1 -17
  14. data/app/assets/javascripts/wallaby/core.js +46172 -0
  15. data/app/assets/javascripts/wallaby/core.js.map +7 -0
  16. data/app/assets/javascripts/wallaby/{setup.js.erb → setup.js} +17 -5
  17. data/app/assets/stylesheets/wallaby/base/_fonts.scss +22 -0
  18. data/app/assets/stylesheets/wallaby/base/_functions.scss +15 -29
  19. data/app/assets/stylesheets/wallaby/base/_mixins.scss +7 -7
  20. data/app/assets/stylesheets/wallaby/base.scss +2 -8
  21. data/app/assets/stylesheets/wallaby/core.scss +12139 -0
  22. data/app/assets/stylesheets/wallaby/pages/_index.scss +1 -1
  23. data/app/javascript/wallaby/core.js +23 -0
  24. data/app/javascript/wallaby/globals.js +9 -0
  25. data/app/stylesheets/wallaby/core.scss +15 -0
  26. data/app/views/layouts/wallaby/resources.html.erb +1 -3
  27. data/app/views/wallaby/resources/_edit_page.html.erb +20 -0
  28. data/app/views/wallaby/resources/_form.html.erb +7 -1
  29. data/app/views/wallaby/resources/_frontend.html.erb +2 -3
  30. data/app/views/wallaby/resources/_home_page.html.erb +5 -0
  31. data/app/views/wallaby/resources/_index_page.html.erb +59 -0
  32. data/app/views/wallaby/resources/_index_query.html.erb +2 -2
  33. data/app/views/wallaby/resources/_new_page.html.erb +19 -0
  34. data/app/views/wallaby/resources/_show_page.html.erb +42 -0
  35. data/app/views/wallaby/resources/edit.html.erb +1 -18
  36. data/app/views/wallaby/resources/error.json.jbuilder +1 -0
  37. data/app/views/wallaby/resources/form/_belongs_to.html.erb +1 -1
  38. data/app/views/wallaby/resources/form/_citext.html.erb +1 -1
  39. data/app/views/wallaby/resources/form/_color.html.erb +1 -1
  40. data/app/views/wallaby/resources/form/_date.html.erb +1 -1
  41. data/app/views/wallaby/resources/form/_daterange.html.erb +1 -1
  42. data/app/views/wallaby/resources/form/_datetime.html.erb +1 -1
  43. data/app/views/wallaby/resources/form/_has_and_belongs_to_many.html.erb +1 -1
  44. data/app/views/wallaby/resources/form/_has_many.html.erb +1 -1
  45. data/app/views/wallaby/resources/form/_hstore.html.erb +1 -1
  46. data/app/views/wallaby/resources/form/_json.html.erb +1 -1
  47. data/app/views/wallaby/resources/form/_jsonb.html.erb +1 -1
  48. data/app/views/wallaby/resources/form/_longtext.html.erb +1 -1
  49. data/app/views/wallaby/resources/form/_markdown.html.erb +1 -1
  50. data/app/views/wallaby/resources/form/_mediumtext.html.erb +1 -1
  51. data/app/views/wallaby/resources/form/_text.html.erb +1 -1
  52. data/app/views/wallaby/resources/form/_time.html.erb +1 -1
  53. data/app/views/wallaby/resources/form/_tinytext.html.erb +1 -1
  54. data/app/views/wallaby/resources/form/_tsrange.html.erb +1 -1
  55. data/app/views/wallaby/resources/form/_tstzrange.html.erb +1 -1
  56. data/app/views/wallaby/resources/form/_xml.html.erb +1 -1
  57. data/app/views/wallaby/resources/home.html.erb +1 -5
  58. data/app/views/wallaby/resources/index/_box.html.erb +1 -1
  59. data/app/views/wallaby/resources/index/_circle.html.erb +1 -1
  60. data/app/views/wallaby/resources/index/_citext.html.erb +1 -1
  61. data/app/views/wallaby/resources/index/_dollar.html.erb +5 -0
  62. data/app/views/wallaby/resources/index/_hstore.html.erb +1 -1
  63. data/app/views/wallaby/resources/index/_json.html.erb +1 -1
  64. data/app/views/wallaby/resources/index/_jsonb.html.erb +1 -1
  65. data/app/views/wallaby/resources/index/_line.html.erb +1 -1
  66. data/app/views/wallaby/resources/index/_longtext.html.erb +1 -1
  67. data/app/views/wallaby/resources/index/_lseg.html.erb +1 -1
  68. data/app/views/wallaby/resources/index/_ltree.html.erb +1 -1
  69. data/app/views/wallaby/resources/index/_mediumtext.html.erb +1 -1
  70. data/app/views/wallaby/resources/index/_path.html.erb +1 -1
  71. data/app/views/wallaby/resources/index/_percent.html.erb +10 -0
  72. data/app/views/wallaby/resources/index/_polygon.html.erb +1 -1
  73. data/app/views/wallaby/resources/index/_sti.html.erb +1 -1
  74. data/app/views/wallaby/resources/index/_string.html.erb +1 -1
  75. data/app/views/wallaby/resources/index/_text.html.erb +1 -1
  76. data/app/views/wallaby/resources/index/_tinytext.html.erb +1 -1
  77. data/app/views/wallaby/resources/index/_tsvector.html.erb +1 -1
  78. data/app/views/wallaby/resources/index/_uuid.html.erb +1 -1
  79. data/app/views/wallaby/resources/index/_xml.html.erb +1 -1
  80. data/app/views/wallaby/resources/index.csv.erb +7 -1
  81. data/app/views/wallaby/resources/index.html.erb +1 -54
  82. data/app/views/wallaby/resources/new.html.erb +1 -18
  83. data/app/views/wallaby/resources/show/_active_storage.html.erb +5 -0
  84. data/app/views/wallaby/resources/show.html.erb +1 -35
  85. data/lib/generators/wallaby/engine/partials/USAGE +23 -0
  86. data/lib/generators/wallaby/engine/partials/partials_generator.rb +25 -0
  87. data/lib/generators/wallaby/install/install_generator.rb +1 -54
  88. data/lib/wallaby/ui_engine.rb +3 -2
  89. data/lib/wallaby/version.rb +1 -1
  90. data/lib/wallaby/views.rb +2 -11
  91. metadata +45 -122
  92. data/app/assets/stylesheets/wallaby/summernote.scss.erb +0 -7
  93. data/lib/generators/wallaby/install/templates/application_authorizer.rb.erb +0 -40
  94. data/lib/generators/wallaby/install/templates/application_controller.rb.erb +0 -148
  95. data/lib/generators/wallaby/install/templates/application_decorator.rb.erb +0 -10
  96. data/lib/generators/wallaby/install/templates/application_paginator.rb.erb +0 -30
  97. data/lib/generators/wallaby/install/templates/application_servicer.rb.erb +0 -50
  98. data/lib/generators/wallaby/install/templates/initializer.rb.erb +0 -58
  99. /data/app/views/wallaby/resources/{_active_storage.html.erb → index/_active_storage.html.erb} +0 -0
@@ -3,13 +3,25 @@
3
3
  (function (jQuery) {
4
4
  'use strict';
5
5
 
6
- window.readyPrefix = function readyPrefix(eventName) {
7
- return '<%= Wallaby.configuration.features.turbolinks_enabled ? "turbolinks:load" : "ready" %>' + eventName;
6
+ window.readyPrefix = function readyPrefix(namespace) {
7
+ if (typeof Turbolinks === "object") {
8
+ return "turbolinks:load" + namespace;
9
+ } else {
10
+ return "ready" + namespace;
11
+ }
8
12
  }
9
13
 
10
- jQuery(document).off(readyPrefix('.wallaby')).on(readyPrefix('.wallaby'), function () {
11
- 'use strict';
14
+ window.documentReady = function documentReady(namespace, handler) {
15
+ if (typeof Turbolinks === "object") {
16
+ const turbolinksReady = "turbolinks:load" + namespace
17
+ return jQuery(document).off(turbolinksReady).on(handler);
18
+ } else {
19
+ return jQuery(handler);
20
+ }
21
+ }
12
22
 
23
+ documentReady('.wallaby', function () {
24
+ console.log('ready here')
13
25
  // for tooltip
14
26
  jQuery('[data-toggle="tooltip"]').tooltip({ container: 'body' })
15
27
 
@@ -67,4 +79,4 @@
67
79
  CodeMirror.defaults.lineNumbers = true;
68
80
  }
69
81
  })
70
- })(jQuery);
82
+ })(window.jQuery);
@@ -0,0 +1,22 @@
1
+ @font-face {
2
+ font-family: 'FontAwesome';
3
+ src: font-url('fontawesome-webfont.eot?v=4.7.0');
4
+ src: font-url('fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'),
5
+ font-url('fontawesome-webfont.woff2?v=4.7.0') format('woff2'),
6
+ font-url('fontawesome-webfont.woff?v=4.7.0') format('woff'),
7
+ font-url('fontawesome-webfont.ttf?v=4.7.0') format('truetype'),
8
+ font-url('fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');
9
+ font-weight: normal;
10
+ font-style: normal;
11
+ }
12
+
13
+ @font-face {
14
+ font-family: "summernote";
15
+ font-style: normal;
16
+ font-weight: 400;
17
+ font-display: auto;
18
+ src: font-url("summernote.eot?#iefix") format("embedded-opentype"),
19
+ font-url("summernote.woff2") format("woff2"),
20
+ font-url("summernote.woff") format("woff"),
21
+ font-url("summernote.ttf") format("truetype");
22
+ }
@@ -1,34 +1,20 @@
1
+ $fa-class-map: null;
2
+
1
3
  @function fa-content($fa-var) {
2
4
  // Make sure FA value is wrapped in quotes
3
5
  @return unquote("\"#{ $fa-var }\"");
4
6
  }
5
7
 
6
- @if variable-exists(fa-var-pencil) {
7
- // FontAwesome 4
8
- $fa-var-map: (
9
- pencil-alt: $fa-var-pencil,
10
- times: $fa-var-remove,
11
- sort-up: $fa-var-sort-asc,
12
- sort-down: $fa-var-sort-desc,
13
- ) !global;
14
- $fa-class-map: (
15
- pencil-alt: "fa-pencil",
16
- times: "fa-remove",
17
- sort-up: "fa-sort-asc",
18
- sort-down: "fa-sort-desc",
19
- ) !global;
20
- } @else {
21
- // FontAwesome 5
22
- $fa-var-map: (
23
- pencil-alt: $fa-var-pencil-alt,
24
- times: $fa-var-times,
25
- sort-up: $fa-var-sort-up,
26
- sort-down: $fa-var-sort-down,
27
- ) !global;
28
- $fa-class-map: (
29
- pencil-alt: "fa-pencil-alt",
30
- times: "fa-times",
31
- sort-up: "fa-sort-up",
32
- sort-down: "fa-sort-down",
33
- ) !global;
34
- }
8
+ // FontAwesome 4
9
+ $fa-var-map: (
10
+ pencil-alt: $fa-var-pencil,
11
+ times: $fa-var-remove,
12
+ sort-up: $fa-var-sort-asc,
13
+ sort-down: $fa-var-sort-desc,
14
+ ) !global;
15
+ $fa-class-map: (
16
+ pencil-alt: "fa-pencil",
17
+ times: "fa-remove",
18
+ sort-up: "fa-sort-asc",
19
+ sort-down: "fa-sort-desc",
20
+ ) !global;
@@ -128,11 +128,11 @@
128
128
  #{$parent} {
129
129
  color: $color !important;
130
130
  }
131
- @if $emphasized-link-hover-darken-percentage != 0 {
132
- a#{$parent} {
133
- @include hover-focus() {
134
- color: darken($color, $emphasized-link-hover-darken-percentage) !important;
135
- }
136
- }
137
- }
131
+ // @if $emphasized-link-hover-darken-percentage != 0 {
132
+ // a#{$parent} {
133
+ // @include hover-focus() {
134
+ // color: darken($color, $emphasized-link-hover-darken-percentage) !important;
135
+ // }
136
+ // }
137
+ // }
138
138
  }
@@ -1,17 +1,11 @@
1
1
 
2
2
  // NOTE: "bootstrap-sprockets" must be imported
3
3
  // before "bootstrap" and "bootstrap/variables"
4
+ @import 'core';
4
5
  @import 'base/vars';
5
- @import 'bootstrap';
6
- @import "font-awesome-sprockets";
7
- @import "font-awesome";
8
- @import 'tempusdominus-bootstrap-4';
9
- @import 'jquery.minicolors';
10
- @import "summernote-bs4";
11
- @import 'codemirror/5.49.2/lib/codemirror';
12
- @import 'codemirror/5.49.2/theme/mdn-like';
13
6
  @import 'base/functions';
14
7
  @import 'base/mixins';
8
+ @import 'base/fonts';
15
9
  @import 'base/layout';
16
10
  @import 'components/text';
17
11
  @import 'components/links';