frontview 2.1.1 → 2.2.1
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.
- checksums.yaml +4 -4
- data/.rubocop.yml +13 -0
- data/.travis.yml +2 -2
- data/CHANGELOG.md +5 -0
- data/CODE_OF_CONDUCT.md +57 -47
- data/Gemfile +3 -1
- data/Gemfile.lock +115 -95
- data/LICENSE.txt +1 -1
- data/README.md +34 -49
- data/Rakefile +5 -1
- data/assets/banner.jpg +0 -0
- data/assets/favicon.png +0 -0
- data/{logo → assets}/logo.png +0 -0
- data/assets/sample1.png +0 -0
- data/assets/sample2.png +0 -0
- data/assets/sample3.png +0 -0
- data/assets/sample4.png +0 -0
- data/assets/sample5.png +0 -0
- data/bin/console +2 -1
- data/frontview.gemspec +6 -6
- data/lib/frontview/contents/alerts_content.rb +2 -2
- data/lib/frontview/contents/application_content.rb +26 -26
- data/lib/frontview/contents/footer_content.rb +78 -89
- data/lib/frontview/contents/header_content.rb +27 -48
- data/lib/frontview/contents/index_routes_content.rb +77 -478
- data/lib/frontview/contents/main_content.rb +35 -208
- data/lib/frontview/contents/style_content.rb +508 -3408
- data/lib/frontview/install_generator.rb +16 -71
- data/lib/frontview/version.rb +1 -1
- data/lib/frontview.rb +2 -1
- metadata +27 -30
data/frontview.gemspec
CHANGED
@@ -10,10 +10,11 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.description = "This gem creates folders and files that are meant for the Views of your rails web app so as to
|
11
11
|
provide easier starting point to your development process.\n You can check the github repo for this gem:\n
|
12
12
|
\t ======> https://github.com/elibiz443/frontview (Here you will get to have a step by step usage of the gem)\n
|
13
|
-
Remember to give a contribution. Make the gem better than it already is.
|
13
|
+
Remember to give a contribution. Make the gem better than it already is. You can also support the efforts to always update and provide the best
|
14
|
+
themes free for everyone through: ========> https://www.buymeacoffee.com/elibiz"
|
14
15
|
spec.homepage = "https://rubygems.org/gems/frontview"
|
15
16
|
spec.license = "MIT"
|
16
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.
|
17
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
|
17
18
|
|
18
19
|
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
19
20
|
|
@@ -28,11 +29,10 @@ Gem::Specification.new do |spec|
|
|
28
29
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
30
|
spec.require_paths = ["lib"]
|
30
31
|
|
31
|
-
spec.add_development_dependency "bundler", "~> 2.
|
32
|
-
spec.add_development_dependency "codelog", "~> 0.8.0"
|
32
|
+
spec.add_development_dependency "bundler", "~> 2.2.15"
|
33
33
|
spec.add_development_dependency "down", "~> 5.0"
|
34
|
-
spec.add_development_dependency 'rails', '~> 6.
|
34
|
+
spec.add_development_dependency 'rails', '~> 6.1', '>= 6.1.4.1'
|
35
35
|
|
36
36
|
spec.add_dependency "down", "~> 5.0"
|
37
|
-
spec.add_dependency 'rails', '~> 6.
|
37
|
+
spec.add_dependency 'rails', '~> 6.1', '>= 6.1.4.1'
|
38
38
|
end
|
@@ -4,8 +4,8 @@ module Frontview
|
|
4
4
|
def write_in_alerts_file
|
5
5
|
File.open("app/views/shared/_alerts.html.erb", "w+") {
|
6
6
|
|file| file.puts(
|
7
|
-
|
8
|
-
|
7
|
+
'<p class="notice"><%= notice %></p>
|
8
|
+
<p class="alert"><%= alert %></p>'
|
9
9
|
)
|
10
10
|
}
|
11
11
|
end
|
@@ -4,32 +4,32 @@ module Frontview
|
|
4
4
|
def write_in_application_file
|
5
5
|
File.open("app/views/layouts/application.html.erb", "w+") {
|
6
6
|
|file| file.puts(
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
7
|
+
'<!DOCTYPE html>
|
8
|
+
<html lang="en">
|
9
|
+
<head>
|
10
|
+
<title>FrontView</title>
|
11
|
+
<meta charset="utf-8">
|
12
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
13
|
+
<%= csrf_meta_tags %>
|
14
|
+
<%= csp_meta_tag %>
|
15
|
+
<%= stylesheet_link_tag \'application\', media: \'all\', \'data-turbolinks-track\': \'reload\' %>
|
16
|
+
<%= javascript_pack_tag \'application\', \'data-turbolinks-track\': \'reload\' %>
|
17
|
+
|
18
|
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans|Oswald:300">
|
19
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
|
20
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.1.1/css/bootstrap.min.css">
|
21
|
+
|
22
|
+
<link rel="stylesheet" href="assets/css/style.css">
|
23
|
+
<%= favicon_link_tag asset_path(\'favicon.png\') %>
|
24
|
+
</head>
|
25
|
+
<body>
|
26
|
+
<%= render \'shared/header\' %>
|
27
|
+
<%= render \'shared/alerts\' %>
|
28
|
+
<%= yield %>
|
29
|
+
<%= render \'shared/footer\' %>
|
30
|
+
<%= javascript_pack_tag \'main\', \'data-turbolinks-track\': \'reload\' %>
|
31
|
+
</body>
|
32
|
+
</html>'
|
33
33
|
)
|
34
34
|
}
|
35
35
|
end
|
@@ -4,95 +4,84 @@ module Frontview
|
|
4
4
|
def write_in_footer_file
|
5
5
|
File.open("app/views/shared/_footer.html.erb", "w+") {
|
6
6
|
|file| file.puts(
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
</div>
|
86
|
-
</footer>
|
87
|
-
|
88
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>
|
89
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
|
90
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/2.5.3/umd/popper.min.js"></script>
|
91
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/js/bootstrap.min.js"></script>
|
92
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/SlickNav/1.0.10/jquery.slicknav.min.js"></script>
|
93
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.2.1/owl.carousel.min.js"></script>
|
94
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.js"></script>
|
95
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/scrollup/1.1.0/jquery.scrollUp.min.js"></script>'
|
7
|
+
'<footer class="flex-rw">
|
8
|
+
<ul class="footer-list-top">
|
9
|
+
<li>
|
10
|
+
<h4 class="footer-list-header">About Us</h4>
|
11
|
+
</li>
|
12
|
+
<li>
|
13
|
+
<a href="#" class="generic-anchor footer-list-anchor" itemprop="significantLink">
|
14
|
+
<i class="fas fa-question-circle"></i> 
|
15
|
+
What We Do
|
16
|
+
</a>
|
17
|
+
</li>
|
18
|
+
<li>
|
19
|
+
<a href="#" class="generic-anchor footer-list-anchor" itemprop="significantLink">
|
20
|
+
<i class="fa fa-binoculars"></i> 
|
21
|
+
Case Studies
|
22
|
+
</a>
|
23
|
+
</li>
|
24
|
+
</ul>
|
25
|
+
<ul class="footer-list-top">
|
26
|
+
<li>
|
27
|
+
<h4 class="footer-list-header">Support</h4>
|
28
|
+
</li>
|
29
|
+
<li>
|
30
|
+
<a href="#" class="generic-anchor footer-list-anchor">
|
31
|
+
<i class="fas fa-tools"></i> 
|
32
|
+
Settings
|
33
|
+
</a>
|
34
|
+
</li>
|
35
|
+
<li>
|
36
|
+
<a href="#" class="generic-anchor footer-list-anchor">
|
37
|
+
<i class="fa fa-list"></i> 
|
38
|
+
FAQs
|
39
|
+
</a>
|
40
|
+
</li>
|
41
|
+
</ul>
|
42
|
+
<ul class="footer-list-top">
|
43
|
+
<li>
|
44
|
+
<h4 class="footer-list-header">Our Contacts</h4>
|
45
|
+
</li>
|
46
|
+
<li>
|
47
|
+
<a href="#" class="generic-anchor footer-list-anchor" itemprop="significantLink">
|
48
|
+
<i class="fa fa-phone"></i> 
|
49
|
+
+000-123-456789
|
50
|
+
</a>
|
51
|
+
</li>
|
52
|
+
<li>
|
53
|
+
<a href="#" class="generic-anchor footer-list-anchor" itemprop="significantLink">
|
54
|
+
<i class="fa fa-envelope"></i> 
|
55
|
+
frontviewtech4@gmail.com
|
56
|
+
</a>
|
57
|
+
</li>
|
58
|
+
</ul>
|
59
|
+
<section class="footer-social-section flex-rw">
|
60
|
+
<span class="footer-social-overlap footer-social-connect">
|
61
|
+
CONNECT <span class="footer-social-small">with</span> US
|
62
|
+
</span>
|
63
|
+
<span class="footer-social-overlap footer-social-icons-wrapper">
|
64
|
+
<a href="#" class="generic-anchor" target="_blank" title="Facebook" itemprop="significantLink"><i class="fab fa-facebook"></i></a>
|
65
|
+
<a href="#" class="generic-anchor" target="_blank" title="Twitter" itemprop="significantLink"><i class="fab fa-twitter"></i></a>
|
66
|
+
<a href="#" class="generic-anchor" target="_blank" title="Instagram" itemprop="significantLink"><i class="fab fa-instagram"></i></a>
|
67
|
+
<a href="#" class="generic-anchor" target="_blank" title="Youtube" itemprop="significantLink"><i class="fab fa-youtube"></i></a>
|
68
|
+
</span>
|
69
|
+
</section>
|
70
|
+
<section class="footer-bottom-section flex-rw">
|
71
|
+
<div class="footer-bottom-wrapper">
|
72
|
+
<i class="fa fa-copyright" role="copyright"></i>
|
73
|
+
2021 Frontview
|
74
|
+
<address class="footer-address" role="company address"> Located in Olympus Mons, Mars</address>
|
75
|
+
<span class="footer-bottom-rights"> - All Rights Reserved.</span>
|
76
|
+
</div>
|
77
|
+
<div class="footer-bottom-wrapper">
|
78
|
+
<a href="#" class="generic-anchor" rel="nofollow">Terms</a> |
|
79
|
+
<a href="#" class="generic-anchor" rel="nofollow">Privacy</a>
|
80
|
+
</div>
|
81
|
+
</section>
|
82
|
+
</footer>
|
83
|
+
|
84
|
+
<script src="https://code.jquery.com/jquery-1.9.1.js"></script>'
|
96
85
|
)
|
97
86
|
}
|
98
87
|
end
|
@@ -4,55 +4,34 @@ module Frontview
|
|
4
4
|
def write_in_header_file
|
5
5
|
File.open("app/views/shared/_header.html.erb", "w+") {
|
6
6
|
|file| file.puts(
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
7
|
+
'<header class="main_h">
|
8
|
+
<div class="row">
|
9
|
+
<a class="logo" href="/">
|
10
|
+
<i class="icon-size fa fa-laptop" aria-hidden="true"></i>
|
11
|
+
FontView
|
12
|
+
</a>
|
13
|
+
<div class="mobile-toggle">
|
14
|
+
<span></span>
|
15
|
+
<span></span>
|
16
|
+
<span></span>
|
17
|
+
</div>
|
18
|
+
<nav class="h-reposition d-none d-md-block d-lg-block d-xl-block">
|
19
|
+
<ul>
|
20
|
+
<li><a href="#about">About Us</a></li>
|
21
|
+
<li><a href="#service">Our Services</a></li>
|
22
|
+
<li><a href="#contact">Contact Us</a></li>
|
23
|
+
</ul>
|
24
|
+
</nav>
|
19
25
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
<a href="/"><img src="assets/logo.png" alt=""></a>
|
30
|
-
</div>
|
31
|
-
</div>
|
32
|
-
<div class="col-xl-10 col-lg-10 col-md-10">
|
33
|
-
<!-- Main-menu -->
|
34
|
-
<div class="main-menu f-right d-none d-lg-block">
|
35
|
-
<nav>
|
36
|
-
<ul id="navigation">
|
37
|
-
<li class="active"><a href="/">Home</a></li>
|
38
|
-
<li><a href="#services">Services</a></li>
|
39
|
-
<li><a href="#pricing">Pricing</a></li>
|
40
|
-
<li><a href="#about">About Us</a></li>
|
41
|
-
<li><a href="#contact">Contact</a></li>
|
42
|
-
</ul>
|
43
|
-
</nav>
|
44
|
-
</div>
|
45
|
-
</div>
|
46
|
-
<!-- Mobile Menu -->
|
47
|
-
<div class="col-12">
|
48
|
-
<div class="mobile_menu d-block d-lg-none"></div>
|
49
|
-
</div>
|
50
|
-
</div>
|
51
|
-
</div>
|
52
|
-
</div>
|
53
|
-
</div>
|
54
|
-
<!-- Header End -->
|
55
|
-
</header>'
|
26
|
+
<nav class="d-block d-md-none d-lg-none d-xl-none">
|
27
|
+
<ul>
|
28
|
+
<li><a href="#about">About Us</a></li>
|
29
|
+
<li><a href="#service">Our Services</a></li>
|
30
|
+
<li><a href="#contact">Contact Us</a></li>
|
31
|
+
</ul>
|
32
|
+
</nav>
|
33
|
+
</div>
|
34
|
+
</header>'
|
56
35
|
)
|
57
36
|
}
|
58
37
|
end
|