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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 96c4c4b816f5e2fb82a5cfefe3aa5a3037258cec330642b31aef475def433393
4
- data.tar.gz: cece76497ea0d4a52fb978d72099914e9e67ee76f340d81564f4aea4184e9e78
3
+ metadata.gz: 889e392cdfd29f28e97946153f889a2fe522d2f04cbd4944e882c8b31a9b7768
4
+ data.tar.gz: 4e312f0b2dde6ad7b0a1451bce9cc68f3ebc98b2f85edab42f9d8009c99ecab0
5
5
  SHA512:
6
- metadata.gz: 17b0475676348ca99281df8d1604410635296a2a195ebbf5080b97eefebb85ca0363c58c4279bad1f0448a5238823b009562bf8a39794d2d182aa84ecccd08d0
7
- data.tar.gz: 1e0afb471bbece1a613e08df7d0a79b355852f82dea8e85c132fa6fb90dba23ffceb3283ea260ad1d78c1a1c477157734eb2575cce8a0859c41abb51467a4251
6
+ metadata.gz: ece8b293fb498122180a4bf80f96d02c5edff7cfbaca63a07e1baee703e23de7a91442d58c2de1d1994c2dccb789a637658a2ca81bc700c6c06deff1b911367e
7
+ data.tar.gz: 8a5031d3f027da237c32e2953cd43b153ac3cbee0c174bfb145fa6acbf508d98d863d4231fdf07dfe5ff18a64601928edaa927f71f58192e9722ef5c46ad0630
data/.travis.yml CHANGED
@@ -2,5 +2,5 @@
2
2
  language: ruby
3
3
  cache: bundler
4
4
  rvm:
5
- - 2.7.1
5
+ - 2.7.2
6
6
  before_install: gem install bundler -v 2.1.4
data/Gemfile CHANGED
@@ -2,5 +2,5 @@ source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
4
 
5
- gem "rake", "~> 12.0"
6
- gem "minitest", "~> 5.0"
5
+ gem "rake"
6
+ gem "minitest"
data/Gemfile.lock CHANGED
@@ -1,63 +1,63 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- frontview (1.0.1)
5
- down (~> 5.0)
6
- rails (~> 6.0.3, >= 6.0.3.1)
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.1)
12
- actionpack (= 6.0.3.1)
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.1)
16
- actionpack (= 6.0.3.1)
17
- activejob (= 6.0.3.1)
18
- activerecord (= 6.0.3.1)
19
- activestorage (= 6.0.3.1)
20
- activesupport (= 6.0.3.1)
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.1)
23
- actionpack (= 6.0.3.1)
24
- actionview (= 6.0.3.1)
25
- activejob (= 6.0.3.1)
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.1)
29
- actionview (= 6.0.3.1)
30
- activesupport (= 6.0.3.1)
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.1)
36
- actionpack (= 6.0.3.1)
37
- activerecord (= 6.0.3.1)
38
- activestorage (= 6.0.3.1)
39
- activesupport (= 6.0.3.1)
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.1)
42
- activesupport (= 6.0.3.1)
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.1)
48
- activesupport (= 6.0.3.1)
47
+ activejob (6.0.3.6)
48
+ activesupport (= 6.0.3.6)
49
49
  globalid (>= 0.3.6)
50
- activemodel (6.0.3.1)
51
- activesupport (= 6.0.3.1)
52
- activerecord (6.0.3.1)
53
- activemodel (= 6.0.3.1)
54
- activesupport (= 6.0.3.1)
55
- activestorage (6.0.3.1)
56
- actionpack (= 6.0.3.1)
57
- activejob (= 6.0.3.1)
58
- activerecord (= 6.0.3.1)
59
- marcel (~> 0.3.1)
60
- activesupport (6.0.3.1)
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.6)
71
+ concurrent-ruby (1.1.8)
72
72
  crass (1.0.6)
73
- down (5.1.1)
73
+ down (5.2.0)
74
74
  addressable (~> 2.5)
75
- erubi (1.9.0)
75
+ erubi (1.10.0)
76
76
  globalid (0.4.2)
77
77
  activesupport (>= 4.2.0)
78
- i18n (1.8.2)
78
+ i18n (1.8.10)
79
79
  concurrent-ruby (~> 1.0)
80
- loofah (2.5.0)
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.3.3)
86
- mimemagic (~> 0.3.2)
85
+ marcel (1.0.0)
87
86
  method_source (1.0.0)
88
- mimemagic (0.3.5)
89
- mini_mime (1.0.2)
90
- mini_portile2 (2.4.0)
91
- minitest (5.14.1)
92
- nio4r (2.5.2)
93
- nokogiri (1.10.9)
94
- mini_portile2 (~> 2.4.0)
95
- public_suffix (4.0.5)
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.1)
100
- actioncable (= 6.0.3.1)
101
- actionmailbox (= 6.0.3.1)
102
- actionmailer (= 6.0.3.1)
103
- actionpack (= 6.0.3.1)
104
- actiontext (= 6.0.3.1)
105
- actionview (= 6.0.3.1)
106
- activejob (= 6.0.3.1)
107
- activemodel (= 6.0.3.1)
108
- activerecord (= 6.0.3.1)
109
- activestorage (= 6.0.3.1)
110
- activesupport (= 6.0.3.1)
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.1)
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.1)
120
- actionpack (= 6.0.3.1)
121
- activesupport (= 6.0.3.1)
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 (12.3.3)
126
- sprockets (4.0.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.1)
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.7)
133
+ tzinfo (1.2.9)
136
134
  thread_safe (~> 0.1)
137
- websocket-driver (0.7.1)
135
+ websocket-driver (0.7.3)
138
136
  websocket-extensions (>= 0.1.0)
139
- websocket-extensions (0.1.4)
140
- zeitwerk (2.3.0)
137
+ websocket-extensions (0.1.5)
138
+ zeitwerk (2.4.2)
141
139
 
142
140
  PLATFORMS
143
- ruby
141
+ x86_64-linux
144
142
 
145
143
  DEPENDENCIES
146
- bundler (~> 2.1.4)
147
- codelog (~> 0.8.0)
148
- down (~> 5.0)
144
+ bundler
145
+ codelog
146
+ down
149
147
  frontview!
150
- minitest (~> 5.0)
151
- rails (~> 6.0.3, >= 6.0.3.1)
152
- rake (~> 12.0)
148
+ minitest
149
+ rails
150
+ rake
153
151
 
154
152
  BUNDLED WITH
155
- 2.1.4
153
+ 2.2.14
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
- ![alt text](https://viewfront.herokuapp.com/assets/logo.png)
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
- $ bundle install
15
+ ```
16
+ $ bundle install
17
+ ```
18
18
 
19
19
  Or install it yourself as:
20
20
 
21
- $ gem install frontview
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. Respective files and folders will be added to your application. Configure and modify the files and folders in accordance with your preference.
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
- It's better if you then run the scaffold. Lets assume our model is 'example' which has a 'title' and a 'body'
36
+ (Optional) - Delete the Sass files i.e homes.scss.
28
37
 
29
- $ rails g scaffold example title:string body:text
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
- $ rails g frontview:install
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 we will write 'home' and press enter. All the files will then be in place.
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
- $ rails db:create && rails db:migrate
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
- $ rails s
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
- Access you web in: localhost:3000
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
Binary file
Binary file
Binary file
Binary file
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", "~> 2.1.4"
32
- spec.add_development_dependency "rake", "~> 12.0"
33
- spec.add_development_dependency "codelog", "~> 0.8.0"
34
- spec.add_development_dependency "down", "~> 5.0"
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", "~> 5.0"
38
- spec.add_dependency "rails", "~> 6.0.3", ">= 6.0.3.1"
37
+ spec.add_dependency "down"
38
+ spec.add_dependency "rails"
39
39
  end
@@ -6,7 +6,7 @@ module Frontview
6
6
  |file| file.puts(
7
7
  '<p class="notice"><%= notice %></p>
8
8
  <p class="alert"><%= alert %></p>'
9
- )
9
+ )
10
10
  }
11
11
  end
12
12
  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://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css">
18
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.4.1/css/bootstrap.css">
19
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.css">
20
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/magnific-popup.css">
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.png\') %>
23
+ <%= favicon_link_tag asset_path(\'favicon.ico\') %>
23
24
  </head>
24
- <body style="background-color: #fafafa;">
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