frontview 1.1.2 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/Gemfile +2 -2
- data/Gemfile.lock +83 -85
- data/README.md +60 -14
- data/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/frontview.gemspec +8 -8
- data/lib/frontview/contents/alerts_content.rb +1 -1
- data/lib/frontview/contents/application_content.rb +8 -7
- data/lib/frontview/contents/footer_content.rb +85 -13
- data/lib/frontview/contents/header_content.rb +46 -13
- data/lib/frontview/contents/index_routes_content.rb +454 -80
- data/lib/frontview/contents/main_content.rb +196 -91
- data/lib/frontview/contents/style_content.rb +3409 -217
- data/lib/frontview/install_generator.rb +70 -14
- data/lib/frontview/version.rb +1 -1
- metadata +32 -54
- data/frontview-0.1.0.gem +0 -0
- data/frontview-0.1.1.gem +0 -0
- data/frontview-1.0.1.gem +0 -0
- data/frontview-1.1.1.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 889e392cdfd29f28e97946153f889a2fe522d2f04cbd4944e882c8b31a9b7768
|
4
|
+
data.tar.gz: 4e312f0b2dde6ad7b0a1451bce9cc68f3ebc98b2f85edab42f9d8009c99ecab0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ece8b293fb498122180a4bf80f96d02c5edff7cfbaca63a07e1baee703e23de7a91442d58c2de1d1994c2dccb789a637658a2ca81bc700c6c06deff1b911367e
|
7
|
+
data.tar.gz: 8a5031d3f027da237c32e2953cd43b153ac3cbee0c174bfb145fa6acbf508d98d863d4231fdf07dfe5ff18a64601928edaa927f71f58192e9722ef5c46ad0630
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,63 +1,63 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
frontview (1.
|
5
|
-
down
|
6
|
-
rails
|
4
|
+
frontview (2.1.3)
|
5
|
+
down
|
6
|
+
rails
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actioncable (6.0.3.
|
12
|
-
actionpack (= 6.0.3.
|
11
|
+
actioncable (6.0.3.6)
|
12
|
+
actionpack (= 6.0.3.6)
|
13
13
|
nio4r (~> 2.0)
|
14
14
|
websocket-driver (>= 0.6.1)
|
15
|
-
actionmailbox (6.0.3.
|
16
|
-
actionpack (= 6.0.3.
|
17
|
-
activejob (= 6.0.3.
|
18
|
-
activerecord (= 6.0.3.
|
19
|
-
activestorage (= 6.0.3.
|
20
|
-
activesupport (= 6.0.3.
|
15
|
+
actionmailbox (6.0.3.6)
|
16
|
+
actionpack (= 6.0.3.6)
|
17
|
+
activejob (= 6.0.3.6)
|
18
|
+
activerecord (= 6.0.3.6)
|
19
|
+
activestorage (= 6.0.3.6)
|
20
|
+
activesupport (= 6.0.3.6)
|
21
21
|
mail (>= 2.7.1)
|
22
|
-
actionmailer (6.0.3.
|
23
|
-
actionpack (= 6.0.3.
|
24
|
-
actionview (= 6.0.3.
|
25
|
-
activejob (= 6.0.3.
|
22
|
+
actionmailer (6.0.3.6)
|
23
|
+
actionpack (= 6.0.3.6)
|
24
|
+
actionview (= 6.0.3.6)
|
25
|
+
activejob (= 6.0.3.6)
|
26
26
|
mail (~> 2.5, >= 2.5.4)
|
27
27
|
rails-dom-testing (~> 2.0)
|
28
|
-
actionpack (6.0.3.
|
29
|
-
actionview (= 6.0.3.
|
30
|
-
activesupport (= 6.0.3.
|
28
|
+
actionpack (6.0.3.6)
|
29
|
+
actionview (= 6.0.3.6)
|
30
|
+
activesupport (= 6.0.3.6)
|
31
31
|
rack (~> 2.0, >= 2.0.8)
|
32
32
|
rack-test (>= 0.6.3)
|
33
33
|
rails-dom-testing (~> 2.0)
|
34
34
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
35
|
-
actiontext (6.0.3.
|
36
|
-
actionpack (= 6.0.3.
|
37
|
-
activerecord (= 6.0.3.
|
38
|
-
activestorage (= 6.0.3.
|
39
|
-
activesupport (= 6.0.3.
|
35
|
+
actiontext (6.0.3.6)
|
36
|
+
actionpack (= 6.0.3.6)
|
37
|
+
activerecord (= 6.0.3.6)
|
38
|
+
activestorage (= 6.0.3.6)
|
39
|
+
activesupport (= 6.0.3.6)
|
40
40
|
nokogiri (>= 1.8.5)
|
41
|
-
actionview (6.0.3.
|
42
|
-
activesupport (= 6.0.3.
|
41
|
+
actionview (6.0.3.6)
|
42
|
+
activesupport (= 6.0.3.6)
|
43
43
|
builder (~> 3.1)
|
44
44
|
erubi (~> 1.4)
|
45
45
|
rails-dom-testing (~> 2.0)
|
46
46
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
47
|
-
activejob (6.0.3.
|
48
|
-
activesupport (= 6.0.3.
|
47
|
+
activejob (6.0.3.6)
|
48
|
+
activesupport (= 6.0.3.6)
|
49
49
|
globalid (>= 0.3.6)
|
50
|
-
activemodel (6.0.3.
|
51
|
-
activesupport (= 6.0.3.
|
52
|
-
activerecord (6.0.3.
|
53
|
-
activemodel (= 6.0.3.
|
54
|
-
activesupport (= 6.0.3.
|
55
|
-
activestorage (6.0.3.
|
56
|
-
actionpack (= 6.0.3.
|
57
|
-
activejob (= 6.0.3.
|
58
|
-
activerecord (= 6.0.3.
|
59
|
-
marcel (~> 0.
|
60
|
-
activesupport (6.0.3.
|
50
|
+
activemodel (6.0.3.6)
|
51
|
+
activesupport (= 6.0.3.6)
|
52
|
+
activerecord (6.0.3.6)
|
53
|
+
activemodel (= 6.0.3.6)
|
54
|
+
activesupport (= 6.0.3.6)
|
55
|
+
activestorage (6.0.3.6)
|
56
|
+
actionpack (= 6.0.3.6)
|
57
|
+
activejob (= 6.0.3.6)
|
58
|
+
activerecord (= 6.0.3.6)
|
59
|
+
marcel (~> 1.0.0)
|
60
|
+
activesupport (6.0.3.6)
|
61
61
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
62
62
|
i18n (>= 0.7, < 2)
|
63
63
|
minitest (~> 5.1)
|
@@ -68,88 +68,86 @@ GEM
|
|
68
68
|
builder (3.2.4)
|
69
69
|
codelog (0.8.0)
|
70
70
|
thor (~> 0.19)
|
71
|
-
concurrent-ruby (1.1.
|
71
|
+
concurrent-ruby (1.1.8)
|
72
72
|
crass (1.0.6)
|
73
|
-
down (5.
|
73
|
+
down (5.2.0)
|
74
74
|
addressable (~> 2.5)
|
75
|
-
erubi (1.
|
75
|
+
erubi (1.10.0)
|
76
76
|
globalid (0.4.2)
|
77
77
|
activesupport (>= 4.2.0)
|
78
|
-
i18n (1.8.
|
78
|
+
i18n (1.8.10)
|
79
79
|
concurrent-ruby (~> 1.0)
|
80
|
-
loofah (2.
|
80
|
+
loofah (2.9.0)
|
81
81
|
crass (~> 1.0.2)
|
82
82
|
nokogiri (>= 1.5.9)
|
83
83
|
mail (2.7.1)
|
84
84
|
mini_mime (>= 0.1.1)
|
85
|
-
marcel (0.
|
86
|
-
mimemagic (~> 0.3.2)
|
85
|
+
marcel (1.0.0)
|
87
86
|
method_source (1.0.0)
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
rack (2.2.2)
|
87
|
+
mini_mime (1.0.3)
|
88
|
+
minitest (5.14.4)
|
89
|
+
nio4r (2.5.7)
|
90
|
+
nokogiri (1.11.2-x86_64-linux)
|
91
|
+
racc (~> 1.4)
|
92
|
+
public_suffix (4.0.6)
|
93
|
+
racc (1.5.2)
|
94
|
+
rack (2.2.3)
|
97
95
|
rack-test (1.1.0)
|
98
96
|
rack (>= 1.0, < 3)
|
99
|
-
rails (6.0.3.
|
100
|
-
actioncable (= 6.0.3.
|
101
|
-
actionmailbox (= 6.0.3.
|
102
|
-
actionmailer (= 6.0.3.
|
103
|
-
actionpack (= 6.0.3.
|
104
|
-
actiontext (= 6.0.3.
|
105
|
-
actionview (= 6.0.3.
|
106
|
-
activejob (= 6.0.3.
|
107
|
-
activemodel (= 6.0.3.
|
108
|
-
activerecord (= 6.0.3.
|
109
|
-
activestorage (= 6.0.3.
|
110
|
-
activesupport (= 6.0.3.
|
97
|
+
rails (6.0.3.6)
|
98
|
+
actioncable (= 6.0.3.6)
|
99
|
+
actionmailbox (= 6.0.3.6)
|
100
|
+
actionmailer (= 6.0.3.6)
|
101
|
+
actionpack (= 6.0.3.6)
|
102
|
+
actiontext (= 6.0.3.6)
|
103
|
+
actionview (= 6.0.3.6)
|
104
|
+
activejob (= 6.0.3.6)
|
105
|
+
activemodel (= 6.0.3.6)
|
106
|
+
activerecord (= 6.0.3.6)
|
107
|
+
activestorage (= 6.0.3.6)
|
108
|
+
activesupport (= 6.0.3.6)
|
111
109
|
bundler (>= 1.3.0)
|
112
|
-
railties (= 6.0.3.
|
110
|
+
railties (= 6.0.3.6)
|
113
111
|
sprockets-rails (>= 2.0.0)
|
114
112
|
rails-dom-testing (2.0.3)
|
115
113
|
activesupport (>= 4.2.0)
|
116
114
|
nokogiri (>= 1.6)
|
117
115
|
rails-html-sanitizer (1.3.0)
|
118
116
|
loofah (~> 2.3)
|
119
|
-
railties (6.0.3.
|
120
|
-
actionpack (= 6.0.3.
|
121
|
-
activesupport (= 6.0.3.
|
117
|
+
railties (6.0.3.6)
|
118
|
+
actionpack (= 6.0.3.6)
|
119
|
+
activesupport (= 6.0.3.6)
|
122
120
|
method_source
|
123
121
|
rake (>= 0.8.7)
|
124
122
|
thor (>= 0.20.3, < 2.0)
|
125
|
-
rake (
|
126
|
-
sprockets (4.0.
|
123
|
+
rake (13.0.3)
|
124
|
+
sprockets (4.0.2)
|
127
125
|
concurrent-ruby (~> 1.0)
|
128
126
|
rack (> 1, < 3)
|
129
|
-
sprockets-rails (3.2.
|
127
|
+
sprockets-rails (3.2.2)
|
130
128
|
actionpack (>= 4.0)
|
131
129
|
activesupport (>= 4.0)
|
132
130
|
sprockets (>= 3.0.0)
|
133
131
|
thor (0.20.3)
|
134
132
|
thread_safe (0.3.6)
|
135
|
-
tzinfo (1.2.
|
133
|
+
tzinfo (1.2.9)
|
136
134
|
thread_safe (~> 0.1)
|
137
|
-
websocket-driver (0.7.
|
135
|
+
websocket-driver (0.7.3)
|
138
136
|
websocket-extensions (>= 0.1.0)
|
139
|
-
websocket-extensions (0.1.
|
140
|
-
zeitwerk (2.
|
137
|
+
websocket-extensions (0.1.5)
|
138
|
+
zeitwerk (2.4.2)
|
141
139
|
|
142
140
|
PLATFORMS
|
143
|
-
|
141
|
+
x86_64-linux
|
144
142
|
|
145
143
|
DEPENDENCIES
|
146
|
-
bundler
|
147
|
-
codelog
|
148
|
-
down
|
144
|
+
bundler
|
145
|
+
codelog
|
146
|
+
down
|
149
147
|
frontview!
|
150
|
-
minitest
|
151
|
-
rails
|
152
|
-
rake
|
148
|
+
minitest
|
149
|
+
rails
|
150
|
+
rake
|
153
151
|
|
154
152
|
BUNDLED WITH
|
155
|
-
2.
|
153
|
+
2.2.14
|
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
|
-
![alt text](
|
1
|
+
![alt text](assets/logo.png)
|
2
2
|
|
3
|
-
This is frontview gem, a gem that gives the front-end template to the rails 6 applications for easier web development.
|
4
|
-
|
5
|
-
It provides the assets contents i.e folders & files(images[favicon.png & logo.png], stylesheets[css/style.css]), javascript content i.e (javascript/packs/main.js) & the views contents folders & Files ([shared/_header.html.erb || _footer.html.erb || _alerts.html.erb],[views/index.html.erb],[layouts/application.html.erb]).
|
3
|
+
This is frontview gem, a gem that gives the front-end template to the rails 6 applications for easier web development. It provides the assets contents i.e folders & files(images[favicon.png & logo.png], stylesheets[css/style.css]), javascript content i.e (javascript/packs/main.js) & the views contents folders & Files.
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
@@ -14,40 +12,88 @@ gem 'frontview'
|
|
14
12
|
|
15
13
|
And then execute:
|
16
14
|
|
17
|
-
|
15
|
+
```
|
16
|
+
$ bundle install
|
17
|
+
```
|
18
18
|
|
19
19
|
Or install it yourself as:
|
20
20
|
|
21
|
-
|
21
|
+
```
|
22
|
+
$ gem install frontview
|
23
|
+
```
|
22
24
|
|
23
25
|
## Usage
|
24
26
|
|
25
|
-
Add the gem to your gemfile and then run bundle install.
|
27
|
+
Add the gem to your gemfile and then run bundle install.
|
28
|
+
Run scaffold. Lets assume our model is 'home' which has a 'title' and a 'body'(Optional)
|
29
|
+
|
30
|
+
```
|
31
|
+
$ rails g scaffold home title:string body:text
|
32
|
+
```
|
33
|
+
|
34
|
+
Delete scaffold.scss, from (assets/stylesheets/scaffold.scss).
|
26
35
|
|
27
|
-
|
36
|
+
(Optional) - Delete the Sass files i.e homes.scss.
|
28
37
|
|
29
|
-
|
38
|
+
Delete all the files in views/homes except index.html.erb
|
30
39
|
|
31
40
|
Generate the necessary files and folders by:
|
32
41
|
|
33
|
-
|
42
|
+
```
|
43
|
+
$ rails g frontview:install
|
44
|
+
```
|
34
45
|
|
35
46
|
N/B: You will be prompted to give the name of your model,
|
36
|
-
In this case
|
47
|
+
In this case you'll write 'home' and press enter. All the files will then be in place.
|
37
48
|
|
38
49
|
Create & Migrate DB
|
39
50
|
|
40
|
-
|
51
|
+
```
|
52
|
+
$ rails db:create && rails db:migrate
|
53
|
+
```
|
41
54
|
|
42
55
|
Finally run the rails server and you are good to go:
|
43
56
|
|
44
|
-
|
57
|
+
```
|
58
|
+
$ rails s
|
59
|
+
```
|
60
|
+
|
61
|
+
Access your web in: localhost:3000
|
62
|
+
|
63
|
+
Optional:
|
64
|
+
1. Remove the line '*= require_tree .' from 'assets/stylesheets/application.css'
|
65
|
+
2. Remove or comment the line 'require("turbolinks").start()' from 'javascript/packs/application.js'
|
66
|
+
|
67
|
+
Reasons for the above optional procedures:
|
45
68
|
|
46
|
-
|
69
|
+
The first option allows for the individual inclusion of each css file in the 'application.html.erb' file.
|
70
|
+
The second and third options disable turbolinks. Rails core team has chose to enable it by default. Unfortunately there are some subtle edge cases and scenarios in which Turbolinks will not work as expected, and for these reasons we don't think it's a great default.
|
47
71
|
|
48
72
|
This gem is suitable for a new project. It helps to kickstart everything very fast.
|
49
73
|
If everything runs perfectly, don't forget to follow on twitter ========> https://twitter.com/frontview3
|
50
74
|
|
75
|
+
You can also support the efforts to always update and provide the best themes free for everyone through: ========> https://www.buymeacoffee.com/elibiz
|
76
|
+
|
77
|
+
## Sample screenshots of the frontview theme:
|
78
|
+
|
79
|
+
## Home Screenshot in large screens:
|
80
|
+
![alt text](assets/sample1.png)
|
81
|
+
|
82
|
+
## Features Screenshot:
|
83
|
+
|
84
|
+
![alt text](assets/sample2.png)
|
85
|
+
|
86
|
+
## Pricing Screenshot:
|
87
|
+
|
88
|
+
![alt text](assets/sample3.png)
|
89
|
+
|
90
|
+
## Contact Screenshot:
|
91
|
+
|
92
|
+
![alt text](assets/sample4.png)
|
93
|
+
|
94
|
+
## Home Screenshot in small screens:
|
95
|
+
![alt text](assets/sample5.png)
|
96
|
+
|
51
97
|
## Congrats
|
52
98
|
|
53
99
|
\
|
data/assets/logo.png
ADDED
Binary file
|
data/assets/sample1.png
ADDED
Binary file
|
data/assets/sample2.png
ADDED
Binary file
|
data/assets/sample3.png
ADDED
Binary file
|
data/assets/sample4.png
ADDED
Binary file
|
data/assets/sample5.png
ADDED
Binary file
|
data/frontview.gemspec
CHANGED
@@ -10,7 +10,8 @@ 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
17
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
@@ -28,12 +29,11 @@ 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"
|
32
|
-
spec.add_development_dependency "
|
33
|
-
spec.add_development_dependency "
|
34
|
-
spec.add_development_dependency "
|
35
|
-
spec.add_development_dependency "rails", "~> 6.0.3", ">= 6.0.3.1"
|
32
|
+
spec.add_development_dependency "bundler"
|
33
|
+
spec.add_development_dependency "codelog"
|
34
|
+
spec.add_development_dependency "down"
|
35
|
+
spec.add_development_dependency "rails"
|
36
36
|
|
37
|
-
spec.add_dependency "down"
|
38
|
-
spec.add_dependency "rails"
|
37
|
+
spec.add_dependency "down"
|
38
|
+
spec.add_dependency "rails"
|
39
39
|
end
|
@@ -14,14 +14,15 @@ module Frontview
|
|
14
14
|
<%= csp_meta_tag %>
|
15
15
|
<%= stylesheet_link_tag \'application\', media: \'all\', \'data-turbolinks-track\': \'reload\' %>
|
16
16
|
<%= javascript_pack_tag \'application\', \'data-turbolinks-track\': \'reload\' %>
|
17
|
-
<link rel="stylesheet" href="https://
|
18
|
-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/
|
19
|
-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/
|
20
|
-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/
|
17
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.min.css">
|
18
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css">
|
19
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.2.1/assets/owl.carousel.min.css">
|
20
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.6.2/animate.min.css">
|
21
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.css">
|
21
22
|
<link rel="stylesheet" href="assets/css/style.css">
|
22
|
-
<%= favicon_link_tag asset_path(\'favicon.
|
23
|
+
<%= favicon_link_tag asset_path(\'favicon.ico\') %>
|
23
24
|
</head>
|
24
|
-
<body
|
25
|
+
<body>
|
25
26
|
<%= render \'shared/header\' %>
|
26
27
|
<%= render \'shared/alerts\' %>
|
27
28
|
<%= yield %>
|
@@ -29,7 +30,7 @@ module Frontview
|
|
29
30
|
<%= javascript_pack_tag \'main\', \'data-turbolinks-track\': \'reload\' %>
|
30
31
|
</body>
|
31
32
|
</html>'
|
32
|
-
|
33
|
+
)
|
33
34
|
}
|
34
35
|
end
|
35
36
|
end
|