voyage 1.44.0.8 → 1.44.0.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34805db52fd3603e41eb324e307c4c5fca0e05af
|
4
|
+
data.tar.gz: 62e934b8eb5fae05b49f229c0795888d41fa1c96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a41c3764da14b591fd920a1c44c59bd7576351ad6b967120609d930f3975c5498db0d671f99c060420bf9f762c43b588ece957abf6752559d486eb1f53946585
|
7
|
+
data.tar.gz: 0ab410d991d66a534598e5b285f986f4301bc273ef24b8c6793babb308f1af6886c70bbc9f2ce9b58883c1b511504db09997bb37fef7a71a2236a78bc70f9688
|
data/lib/voyage/app_builder.rb
CHANGED
@@ -598,8 +598,23 @@ module Suspenders
|
|
598
598
|
|
599
599
|
def add_app_css_file
|
600
600
|
create_file "app/assets/stylesheets/#{app_name}.sass" do <<-RUBY.gsub(/^ {8}/, '')
|
601
|
-
.
|
601
|
+
.outer-wrapper
|
602
|
+
position: relative
|
603
|
+
min-height: 100%
|
604
|
+
|
605
|
+
.navigation-wrapper
|
606
|
+
@include outer-container
|
607
|
+
|
608
|
+
.main
|
602
609
|
padding: 18px
|
610
|
+
@include outer-container
|
611
|
+
padding-bottom: 450px
|
612
|
+
|
613
|
+
.footer
|
614
|
+
min-height: 420px
|
615
|
+
position: absolute
|
616
|
+
bottom: 0
|
617
|
+
left: 0
|
603
618
|
RUBY
|
604
619
|
end
|
605
620
|
end
|
@@ -608,6 +623,16 @@ module Suspenders
|
|
608
623
|
replace_in_file 'app/assets/stylesheets/refills/_flashes.scss', "margin-bottom: $base-spacing / 2;", "// margin-bottom: $base-spacing / 2;"
|
609
624
|
end
|
610
625
|
|
626
|
+
def update_application_css_file
|
627
|
+
inject_into_file 'app/assets/stylesheets/application.scss', before: '@import "neat";' do <<-RUBY.gsub(/^ {8}/, '')
|
628
|
+
$visual-grid: true;
|
629
|
+
$visual-grid-color: #9cf !default;
|
630
|
+
$visual-grid-index: front !default;
|
631
|
+
$visual-grid-opacity: 0.1 !default;
|
632
|
+
RUBY
|
633
|
+
end
|
634
|
+
end
|
635
|
+
|
611
636
|
def add_admin_links_to_navigation
|
612
637
|
return unless @@use_devise
|
613
638
|
inject_into_file 'app/views/refills/_navigation.html.erb', after: ' <li class="nav-link"><a href="javascript:void(0)">Contact</a></li>' do <<-RUBY
|
@@ -724,10 +749,16 @@ module Suspenders
|
|
724
749
|
.env
|
725
750
|
.zenflow-log
|
726
751
|
errors.err
|
752
|
+
.ctags
|
727
753
|
RUBY
|
728
754
|
end
|
729
755
|
end
|
730
756
|
|
757
|
+
def spin_up_webpacker
|
758
|
+
rake 'webpacker:install'
|
759
|
+
rake 'webpacker:install:react'
|
760
|
+
end
|
761
|
+
|
731
762
|
###############################
|
732
763
|
# OVERRIDE SUSPENDERS METHODS #
|
733
764
|
###############################
|
@@ -35,6 +35,7 @@ module Suspenders
|
|
35
35
|
invoke :generate_refills
|
36
36
|
invoke :add_app_css_file
|
37
37
|
invoke :update_flashes_css_file
|
38
|
+
invoke :update_application_css_file
|
38
39
|
invoke :overwrite_application_layout
|
39
40
|
invoke :generate_test_environment
|
40
41
|
invoke :update_test_environment
|
@@ -50,6 +51,7 @@ module Suspenders
|
|
50
51
|
invoke :run_rubocop_auto_correct
|
51
52
|
invoke :copy_env_to_example
|
52
53
|
invoke :add_to_gitignore
|
54
|
+
invoke :spin_up_webpacker
|
53
55
|
invoke :actually_setup_spring
|
54
56
|
invoke :bon_voyage
|
55
57
|
super
|
@@ -103,6 +105,10 @@ module Suspenders
|
|
103
105
|
build :update_flashes_css_file
|
104
106
|
end
|
105
107
|
|
108
|
+
def update_application_css_file
|
109
|
+
build :update_application_css_file
|
110
|
+
end
|
111
|
+
|
106
112
|
def overwrite_application_layout
|
107
113
|
build :overwrite_application_layout
|
108
114
|
end
|
@@ -131,6 +137,10 @@ module Suspenders
|
|
131
137
|
build :add_favicon
|
132
138
|
end
|
133
139
|
|
140
|
+
def spin_up_webpacker
|
141
|
+
build :spin_up_webpacker
|
142
|
+
end
|
143
|
+
|
134
144
|
def rake_db_setup
|
135
145
|
build :rake_db_setup
|
136
146
|
end
|
@@ -21,28 +21,17 @@
|
|
21
21
|
<%%= Gon::Base.render_data %>
|
22
22
|
</head>
|
23
23
|
<body class="<%%= devise_controller? ? 'devise' : 'application' %> <%%= body_class %>">
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
24
|
+
<div class='outer-wrapper'>
|
25
|
+
<%%# Add gon here for turbolinks benefit %>
|
26
|
+
<%%= Gon::Base.render_data %>
|
27
|
+
<%%= render 'flashes' -%>
|
28
28
|
<% if config[:add_refills] %><%%= render 'refills/navigation' %><% end %>
|
29
|
-
<div class='main
|
29
|
+
<div class='main'>
|
30
30
|
<%%= yield %>
|
31
31
|
</div>
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
<div class='main-content'>
|
38
|
-
<%%= yield %>
|
39
|
-
</div>
|
40
|
-
</div>
|
41
|
-
</div>
|
42
|
-
<%% end %>
|
43
|
-
|
44
|
-
<% if config[:add_refills] %><%%= render 'refills/footer' %><% end %>
|
45
|
-
<%%= render 'javascript' %>
|
46
|
-
<%%= render 'css_overrides' %>
|
32
|
+
<% if config[:add_refills] %><%%= render 'refills/footer' %><% end %>
|
33
|
+
<%%= render 'javascript' %>
|
34
|
+
<%%= render 'css_overrides' %>
|
35
|
+
</div>
|
47
36
|
</body>
|
48
37
|
</html>
|
data/lib/voyage/version.rb
CHANGED