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
@@ -11,10 +11,64 @@ require "frontview/contents/index_routes_content"
|
|
11
11
|
module Frontview
|
12
12
|
class InstallGenerator < Rails::Generators::Base
|
13
13
|
def create_assets_contents
|
14
|
-
|
14
|
+
tempfile = Down.download("https://railsfront.herokuapp.com/assets/logo.png")
|
15
15
|
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
16
16
|
|
17
|
-
tempfile = Down.download("https://
|
17
|
+
tempfile = Down.download("https://railsfront.herokuapp.com/assets/favicon.ico")
|
18
|
+
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
19
|
+
|
20
|
+
tempfile = Down.download("https://railsfront.herokuapp.com/assets/advert_btn.png")
|
21
|
+
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
22
|
+
|
23
|
+
tempfile = Down.download("https://railsfront.herokuapp.com/assets/background.jpg")
|
24
|
+
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
25
|
+
|
26
|
+
tempfile = Down.download("https://railsfront.herokuapp.com/assets/beauty.png")
|
27
|
+
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
28
|
+
|
29
|
+
tempfile = Down.download("https://railsfront.herokuapp.com/assets/circle.png")
|
30
|
+
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
31
|
+
|
32
|
+
tempfile = Down.download("https://railsfront.herokuapp.com/assets/desktop.png")
|
33
|
+
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
34
|
+
|
35
|
+
tempfile = Down.download("https://railsfront.herokuapp.com/assets/doted1.png")
|
36
|
+
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
37
|
+
|
38
|
+
tempfile = Down.download("https://railsfront.herokuapp.com/assets/doted2.png")
|
39
|
+
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
40
|
+
|
41
|
+
tempfile = Down.download("https://railsfront.herokuapp.com/assets/doted3.png")
|
42
|
+
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
43
|
+
|
44
|
+
tempfile = Down.download("https://railsfront.herokuapp.com/assets/elibiz.png")
|
45
|
+
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
46
|
+
|
47
|
+
tempfile = Down.download("https://railsfront.herokuapp.com/assets/home_pic.png")
|
48
|
+
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
49
|
+
|
50
|
+
tempfile = Down.download("https://railsfront.herokuapp.com/assets/paper_plane.png")
|
51
|
+
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
52
|
+
|
53
|
+
tempfile = Down.download("https://railsfront.herokuapp.com/assets/paper_plane2.png")
|
54
|
+
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
55
|
+
|
56
|
+
tempfile = Down.download("https://railsfront.herokuapp.com/assets/preloader.png")
|
57
|
+
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
58
|
+
|
59
|
+
tempfile = Down.download("https://railsfront.herokuapp.com/assets/view1.png")
|
60
|
+
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
61
|
+
|
62
|
+
tempfile = Down.download("https://railsfront.herokuapp.com/assets/view2.png")
|
63
|
+
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
64
|
+
|
65
|
+
tempfile = Down.download("https://railsfront.herokuapp.com/assets/view3.png")
|
66
|
+
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
67
|
+
|
68
|
+
tempfile = Down.download("https://railsfront.herokuapp.com/assets/view4.png")
|
69
|
+
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
70
|
+
|
71
|
+
tempfile = Down.download("https://railsfront.herokuapp.com/assets/view5.png")
|
18
72
|
FileUtils.mv(tempfile.path, "app/assets/images/#{tempfile.original_filename}")
|
19
73
|
|
20
74
|
Dir.mkdir("app/assets/stylesheets/css") unless File.exists?("app/assets/stylesheets/css")
|
@@ -32,18 +86,20 @@ module Frontview
|
|
32
86
|
file = File.new("app/views/shared/_header.html.erb", "w+")
|
33
87
|
end
|
34
88
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
89
|
+
def write_in_other_files
|
90
|
+
system("rails g frontview:contents:index_routes_content")
|
91
|
+
system("rails g frontview:contents:style_content")
|
92
|
+
system("rails g frontview:contents:main_content")
|
93
|
+
system("rails g frontview:contents:application_content")
|
94
|
+
system("rails g frontview:contents:alerts_content")
|
95
|
+
system("rails g frontview:contents:footer_content")
|
96
|
+
system("rails g frontview:contents:header_content")
|
97
|
+
end
|
44
98
|
|
45
99
|
def show_info
|
46
|
-
|
47
|
-
|
48
|
-
|
100
|
+
puts :success
|
101
|
+
puts "You can support the efforts to always update and provide the best
|
102
|
+
themes free for everyone through: ========> https://www.buymeacoffee.com/elibiz"
|
103
|
+
end
|
104
|
+
end
|
49
105
|
end
|
data/lib/frontview/version.rb
CHANGED
metadata
CHANGED
@@ -1,130 +1,106 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: frontview
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- elibiz443
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 2.1.4
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 2.1.4
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rake
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
17
|
+
- - ">="
|
32
18
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
19
|
+
version: '0'
|
34
20
|
type: :development
|
35
21
|
prerelease: false
|
36
22
|
version_requirements: !ruby/object:Gem::Requirement
|
37
23
|
requirements:
|
38
|
-
- - "
|
24
|
+
- - ">="
|
39
25
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
26
|
+
version: '0'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: codelog
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
44
30
|
requirements:
|
45
|
-
- - "
|
31
|
+
- - ">="
|
46
32
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0
|
33
|
+
version: '0'
|
48
34
|
type: :development
|
49
35
|
prerelease: false
|
50
36
|
version_requirements: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
52
|
-
- - "
|
38
|
+
- - ">="
|
53
39
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0
|
40
|
+
version: '0'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: down
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
58
44
|
requirements:
|
59
|
-
- - "
|
45
|
+
- - ">="
|
60
46
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
47
|
+
version: '0'
|
62
48
|
type: :development
|
63
49
|
prerelease: false
|
64
50
|
version_requirements: !ruby/object:Gem::Requirement
|
65
51
|
requirements:
|
66
|
-
- - "
|
52
|
+
- - ">="
|
67
53
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
54
|
+
version: '0'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: rails
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
72
58
|
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 6.0.3
|
76
59
|
- - ">="
|
77
60
|
- !ruby/object:Gem::Version
|
78
|
-
version:
|
61
|
+
version: '0'
|
79
62
|
type: :development
|
80
63
|
prerelease: false
|
81
64
|
version_requirements: !ruby/object:Gem::Requirement
|
82
65
|
requirements:
|
83
|
-
- - "~>"
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
version: 6.0.3
|
86
66
|
- - ">="
|
87
67
|
- !ruby/object:Gem::Version
|
88
|
-
version:
|
68
|
+
version: '0'
|
89
69
|
- !ruby/object:Gem::Dependency
|
90
70
|
name: down
|
91
71
|
requirement: !ruby/object:Gem::Requirement
|
92
72
|
requirements:
|
93
|
-
- - "
|
73
|
+
- - ">="
|
94
74
|
- !ruby/object:Gem::Version
|
95
|
-
version: '
|
75
|
+
version: '0'
|
96
76
|
type: :runtime
|
97
77
|
prerelease: false
|
98
78
|
version_requirements: !ruby/object:Gem::Requirement
|
99
79
|
requirements:
|
100
|
-
- - "
|
80
|
+
- - ">="
|
101
81
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
82
|
+
version: '0'
|
103
83
|
- !ruby/object:Gem::Dependency
|
104
84
|
name: rails
|
105
85
|
requirement: !ruby/object:Gem::Requirement
|
106
86
|
requirements:
|
107
|
-
- - "~>"
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: 6.0.3
|
110
87
|
- - ">="
|
111
88
|
- !ruby/object:Gem::Version
|
112
|
-
version:
|
89
|
+
version: '0'
|
113
90
|
type: :runtime
|
114
91
|
prerelease: false
|
115
92
|
version_requirements: !ruby/object:Gem::Requirement
|
116
93
|
requirements:
|
117
|
-
- - "~>"
|
118
|
-
- !ruby/object:Gem::Version
|
119
|
-
version: 6.0.3
|
120
94
|
- - ">="
|
121
95
|
- !ruby/object:Gem::Version
|
122
|
-
version:
|
96
|
+
version: '0'
|
123
97
|
description: "This gem creates folders and files that are meant for the Views of your
|
124
98
|
rails web app so as to\n provide easier starting point to your development process.\n
|
125
99
|
You can check the github repo for this gem:\n \n \t ======> https://github.com/elibiz443/frontview
|
126
100
|
(Here you will get to have a step by step usage of the gem)\n\n Remember to give
|
127
|
-
a contribution. Make the gem better than it already is.
|
101
|
+
a contribution. Make the gem better than it already is. You can also support the
|
102
|
+
efforts to always update and provide the best\n themes free for everyone through:
|
103
|
+
========> https://www.buymeacoffee.com/elibiz"
|
128
104
|
email:
|
129
105
|
- elibiz443@gmail.com
|
130
106
|
executables: []
|
@@ -139,12 +115,14 @@ files:
|
|
139
115
|
- LICENSE.txt
|
140
116
|
- README.md
|
141
117
|
- Rakefile
|
118
|
+
- assets/logo.png
|
119
|
+
- assets/sample1.png
|
120
|
+
- assets/sample2.png
|
121
|
+
- assets/sample3.png
|
122
|
+
- assets/sample4.png
|
123
|
+
- assets/sample5.png
|
142
124
|
- bin/console
|
143
125
|
- bin/setup
|
144
|
-
- frontview-0.1.0.gem
|
145
|
-
- frontview-0.1.1.gem
|
146
|
-
- frontview-1.0.1.gem
|
147
|
-
- frontview-1.1.1.gem
|
148
126
|
- frontview.gemspec
|
149
127
|
- lib/frontview.rb
|
150
128
|
- lib/frontview/contents/alerts_content.rb
|
@@ -179,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
179
157
|
- !ruby/object:Gem::Version
|
180
158
|
version: '0'
|
181
159
|
requirements: []
|
182
|
-
rubygems_version: 3.1.
|
160
|
+
rubygems_version: 3.1.4
|
183
161
|
signing_key:
|
184
162
|
specification_version: 4
|
185
163
|
summary: Simple gem that creates folders & files for front-end rails web apps
|
data/frontview-0.1.0.gem
DELETED
Binary file
|
data/frontview-0.1.1.gem
DELETED
Binary file
|
data/frontview-1.0.1.gem
DELETED
Binary file
|
data/frontview-1.1.1.gem
DELETED
Binary file
|