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.
- checksums.yaml +4 -4
- data/app/assets/fonts/FontAwesome.otf +0 -0
- data/app/assets/fonts/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/fontawesome-webfont.svg +2671 -0
- data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/fontawesome-webfont.woff +0 -0
- data/app/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/app/assets/fonts/summernote.eot +0 -0
- data/app/assets/fonts/summernote.hash +1 -0
- data/app/assets/fonts/summernote.ttf +0 -0
- data/app/assets/fonts/summernote.woff +0 -0
- data/app/assets/fonts/summernote.woff2 +0 -0
- data/app/assets/javascripts/wallaby/base.js +1 -17
- data/app/assets/javascripts/wallaby/core.js +46172 -0
- data/app/assets/javascripts/wallaby/core.js.map +7 -0
- data/app/assets/javascripts/wallaby/{setup.js.erb → setup.js} +17 -5
- data/app/assets/stylesheets/wallaby/base/_fonts.scss +22 -0
- data/app/assets/stylesheets/wallaby/base/_functions.scss +15 -29
- data/app/assets/stylesheets/wallaby/base/_mixins.scss +7 -7
- data/app/assets/stylesheets/wallaby/base.scss +2 -8
- data/app/assets/stylesheets/wallaby/core.scss +12139 -0
- data/app/assets/stylesheets/wallaby/pages/_index.scss +1 -1
- data/app/javascript/wallaby/core.js +23 -0
- data/app/javascript/wallaby/globals.js +9 -0
- data/app/stylesheets/wallaby/core.scss +15 -0
- data/app/views/layouts/wallaby/resources.html.erb +1 -3
- data/app/views/wallaby/resources/_edit_page.html.erb +20 -0
- data/app/views/wallaby/resources/_form.html.erb +7 -1
- data/app/views/wallaby/resources/_frontend.html.erb +2 -3
- data/app/views/wallaby/resources/_home_page.html.erb +5 -0
- data/app/views/wallaby/resources/_index_page.html.erb +59 -0
- data/app/views/wallaby/resources/_index_query.html.erb +2 -2
- data/app/views/wallaby/resources/_new_page.html.erb +19 -0
- data/app/views/wallaby/resources/_show_page.html.erb +42 -0
- data/app/views/wallaby/resources/edit.html.erb +1 -18
- data/app/views/wallaby/resources/error.json.jbuilder +1 -0
- data/app/views/wallaby/resources/form/_belongs_to.html.erb +1 -1
- data/app/views/wallaby/resources/form/_citext.html.erb +1 -1
- data/app/views/wallaby/resources/form/_color.html.erb +1 -1
- data/app/views/wallaby/resources/form/_date.html.erb +1 -1
- data/app/views/wallaby/resources/form/_daterange.html.erb +1 -1
- data/app/views/wallaby/resources/form/_datetime.html.erb +1 -1
- data/app/views/wallaby/resources/form/_has_and_belongs_to_many.html.erb +1 -1
- data/app/views/wallaby/resources/form/_has_many.html.erb +1 -1
- data/app/views/wallaby/resources/form/_hstore.html.erb +1 -1
- data/app/views/wallaby/resources/form/_json.html.erb +1 -1
- data/app/views/wallaby/resources/form/_jsonb.html.erb +1 -1
- data/app/views/wallaby/resources/form/_longtext.html.erb +1 -1
- data/app/views/wallaby/resources/form/_markdown.html.erb +1 -1
- data/app/views/wallaby/resources/form/_mediumtext.html.erb +1 -1
- data/app/views/wallaby/resources/form/_text.html.erb +1 -1
- data/app/views/wallaby/resources/form/_time.html.erb +1 -1
- data/app/views/wallaby/resources/form/_tinytext.html.erb +1 -1
- data/app/views/wallaby/resources/form/_tsrange.html.erb +1 -1
- data/app/views/wallaby/resources/form/_tstzrange.html.erb +1 -1
- data/app/views/wallaby/resources/form/_xml.html.erb +1 -1
- data/app/views/wallaby/resources/home.html.erb +1 -5
- data/app/views/wallaby/resources/index/_box.html.erb +1 -1
- data/app/views/wallaby/resources/index/_circle.html.erb +1 -1
- data/app/views/wallaby/resources/index/_citext.html.erb +1 -1
- data/app/views/wallaby/resources/index/_dollar.html.erb +5 -0
- data/app/views/wallaby/resources/index/_hstore.html.erb +1 -1
- data/app/views/wallaby/resources/index/_json.html.erb +1 -1
- data/app/views/wallaby/resources/index/_jsonb.html.erb +1 -1
- data/app/views/wallaby/resources/index/_line.html.erb +1 -1
- data/app/views/wallaby/resources/index/_longtext.html.erb +1 -1
- data/app/views/wallaby/resources/index/_lseg.html.erb +1 -1
- data/app/views/wallaby/resources/index/_ltree.html.erb +1 -1
- data/app/views/wallaby/resources/index/_mediumtext.html.erb +1 -1
- data/app/views/wallaby/resources/index/_path.html.erb +1 -1
- data/app/views/wallaby/resources/index/_percent.html.erb +10 -0
- data/app/views/wallaby/resources/index/_polygon.html.erb +1 -1
- data/app/views/wallaby/resources/index/_sti.html.erb +1 -1
- data/app/views/wallaby/resources/index/_string.html.erb +1 -1
- data/app/views/wallaby/resources/index/_text.html.erb +1 -1
- data/app/views/wallaby/resources/index/_tinytext.html.erb +1 -1
- data/app/views/wallaby/resources/index/_tsvector.html.erb +1 -1
- data/app/views/wallaby/resources/index/_uuid.html.erb +1 -1
- data/app/views/wallaby/resources/index/_xml.html.erb +1 -1
- data/app/views/wallaby/resources/index.csv.erb +7 -1
- data/app/views/wallaby/resources/index.html.erb +1 -54
- data/app/views/wallaby/resources/new.html.erb +1 -18
- data/app/views/wallaby/resources/show/_active_storage.html.erb +5 -0
- data/app/views/wallaby/resources/show.html.erb +1 -35
- data/lib/generators/wallaby/engine/partials/USAGE +23 -0
- data/lib/generators/wallaby/engine/partials/partials_generator.rb +25 -0
- data/lib/generators/wallaby/install/install_generator.rb +1 -54
- data/lib/wallaby/ui_engine.rb +3 -2
- data/lib/wallaby/version.rb +1 -1
- data/lib/wallaby/views.rb +2 -11
- metadata +45 -122
- data/app/assets/stylesheets/wallaby/summernote.scss.erb +0 -7
- data/lib/generators/wallaby/install/templates/application_authorizer.rb.erb +0 -40
- data/lib/generators/wallaby/install/templates/application_controller.rb.erb +0 -148
- data/lib/generators/wallaby/install/templates/application_decorator.rb.erb +0 -10
- data/lib/generators/wallaby/install/templates/application_paginator.rb.erb +0 -30
- data/lib/generators/wallaby/install/templates/application_servicer.rb.erb +0 -50
- data/lib/generators/wallaby/install/templates/initializer.rb.erb +0 -58
- /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(
|
7
|
-
|
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
|
-
|
11
|
-
|
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
|
-
|
7
|
-
|
8
|
-
$fa-var-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
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
|
-
|
133
|
-
|
134
|
-
|
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';
|