myg 1.2.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/generators/myg/install_generator.rb +49 -17
- data/lib/generators/templates/install/initializer.rb +8 -2
- data/lib/generators/templates/install/javascripts/action-button.js +5 -0
- data/lib/generators/templates/install/javascripts/button.js +5 -0
- data/lib/generators/templates/install/javascripts/card.js +5 -0
- data/lib/generators/templates/install/javascripts/checkbox.js +5 -0
- data/lib/generators/templates/install/javascripts/dialog.js +5 -0
- data/lib/generators/templates/install/javascripts/drawer.js +5 -0
- data/lib/generators/templates/install/javascripts/dropdown.js +5 -0
- data/lib/generators/templates/install/javascripts/footer.js +5 -0
- data/lib/generators/templates/install/javascripts/form-field.js +5 -0
- data/lib/generators/templates/install/javascripts/icon.js +5 -0
- data/lib/generators/templates/install/javascripts/index.js.erb +26 -0
- data/lib/generators/templates/install/javascripts/input.js +5 -0
- data/lib/generators/templates/install/javascripts/menu.js +5 -0
- data/lib/generators/templates/install/javascripts/modal.js +5 -0
- data/lib/generators/templates/install/javascripts/progress.js +5 -0
- data/lib/generators/templates/install/javascripts/radio.js +5 -0
- data/lib/generators/templates/install/javascripts/select.js +5 -0
- data/lib/generators/templates/install/javascripts/sidebar.js +5 -0
- data/lib/generators/templates/install/javascripts/slide.js +5 -0
- data/lib/generators/templates/install/javascripts/slider.js +5 -0
- data/lib/generators/templates/install/javascripts/tabs.js +5 -0
- data/lib/generators/templates/install/javascripts/text.js +5 -0
- data/lib/generators/templates/install/javascripts/theme.js +5 -0
- data/lib/generators/templates/install/javascripts/titlebar.js +5 -0
- data/lib/generators/templates/install/javascripts/toast.js +5 -0
- data/lib/generators/templates/install/javascripts/toolbar.js +5 -0
- data/lib/generators/templates/install/javascripts/tooltip.js +5 -0
- data/lib/generators/templates/install/{_myg.sass → stylesheets/_myg.sass} +0 -0
- data/lib/generators/templates/install/{_variables.sass → stylesheets/_variables.sass} +0 -0
- data/lib/generators/templates/install/{myg.sass → stylesheets/myg.sass} +0 -0
- data/lib/generators/templates/install/{theme → stylesheets/theme}/_default.scss +0 -0
- data/lib/generators/templates/install/{theme → stylesheets/theme}/theme.sass +0 -0
- data/lib/generators/templates/install/{variables → stylesheets/variables}/_action-button.scss +0 -0
- data/lib/generators/templates/install/{variables → stylesheets/variables}/_animate.scss +0 -0
- data/lib/generators/templates/install/{variables → stylesheets/variables}/_base.scss +0 -0
- data/lib/generators/templates/install/{variables → stylesheets/variables}/_elevation.scss +0 -0
- data/lib/generators/templates/install/{variables → stylesheets/variables}/_font.scss +0 -0
- data/lib/generators/templates/install/{variables → stylesheets/variables}/_footer.scss +0 -0
- data/lib/generators/templates/install/{variables → stylesheets/variables}/_grid.scss +0 -0
- data/lib/generators/templates/install/{variables → stylesheets/variables}/_layout.scss +0 -0
- data/lib/generators/templates/install/{variables → stylesheets/variables}/_spacing.scss +0 -0
- data/lib/generators/templates/install/{variables → stylesheets/variables}/_text.scss +0 -0
- data/lib/generators/templates/install/{variables → stylesheets/variables}/_theme.scss +0 -0
- data/lib/myg/configuration.rb +6 -2
- data/lib/myg/version.rb +1 -1
- metadata +44 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55cef74361c47b08c31b7f964505ae27eca66fddae39e3affb5949d315e146bf
|
4
|
+
data.tar.gz: b9c42791739b28782f876b6894029b0430b889178948178f2873627cdc1467d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0816eab69e1891006b65e78cda7226fd44a1f58d8790bae4b05f09f41697f84305e84344159cffd6c066d3ad716b233306b8c0b4482e73856b4708a6de03841b'
|
7
|
+
data.tar.gz: 4ebad2ef55260fd0a86249a399aa356b89773b401b720a4ab0ebf6b1c54331965e47085b718e84f8b1bc71e06d99062656c207ad9949b646813d2d6b9a08ca47
|
data/CHANGELOG.md
CHANGED
@@ -12,23 +12,55 @@ class Myg::InstallGenerator < Rails::Generators::Base
|
|
12
12
|
template 'initializer.rb', 'config/initializers/myg.rb'
|
13
13
|
end
|
14
14
|
|
15
|
-
def
|
16
|
-
template 'myg.sass', "#{Myg.configuration&.
|
17
|
-
template '_myg.sass', "#{Myg.configuration&.
|
18
|
-
template '_variables.sass', "#{Myg.configuration&.
|
19
|
-
template 'variables/_action-button.scss', "#{Myg.configuration&.
|
20
|
-
template 'variables/_animate.scss', "#{Myg.configuration&.
|
21
|
-
template 'variables/_base.scss', "#{Myg.configuration&.
|
22
|
-
template 'variables/_elevation.scss', "#{Myg.configuration&.
|
23
|
-
template 'variables/_font.scss', "#{Myg.configuration&.
|
24
|
-
template 'variables/_footer.scss', "#{Myg.configuration&.
|
25
|
-
template 'variables/_grid.scss', "#{Myg.configuration&.
|
26
|
-
template 'variables/_layout.scss', "#{Myg.configuration&.
|
27
|
-
template 'variables/_spacing.scss', "#{Myg.configuration&.
|
28
|
-
template 'variables/_text.scss', "#{Myg.configuration&.
|
29
|
-
template 'variables/_theme.scss', "#{Myg.configuration&.
|
30
|
-
template 'theme/theme.sass', "#{Myg.configuration&.
|
31
|
-
template 'theme/_default.scss', "#{Myg.configuration&.
|
15
|
+
def create_stylesheets
|
16
|
+
template 'stylesheets/myg.sass', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/myg.sass"
|
17
|
+
template 'stylesheets/_myg.sass', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/_myg.sass"
|
18
|
+
template 'stylesheets/_variables.sass', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/_variables.sass"
|
19
|
+
template 'stylesheets/variables/_action-button.scss', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/variables/_action-button.scss"
|
20
|
+
template 'stylesheets/variables/_animate.scss', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/variables/_animate.scss"
|
21
|
+
template 'stylesheets/variables/_base.scss', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/variables/_base.scss"
|
22
|
+
template 'stylesheets/variables/_elevation.scss', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/variables/_elevation.scss"
|
23
|
+
template 'stylesheets/variables/_font.scss', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/variables/_font.scss"
|
24
|
+
template 'stylesheets/variables/_footer.scss', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/variables/_footer.scss"
|
25
|
+
template 'stylesheets/variables/_grid.scss', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/variables/_grid.scss"
|
26
|
+
template 'stylesheets/variables/_layout.scss', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/variables/_layout.scss"
|
27
|
+
template 'stylesheets/variables/_spacing.scss', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/variables/_spacing.scss"
|
28
|
+
template 'stylesheets/variables/_text.scss', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/variables/_text.scss"
|
29
|
+
template 'stylesheets/variables/_theme.scss', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/variables/_theme.scss"
|
30
|
+
template 'stylesheets/theme/theme.sass', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/theme/theme.sass"
|
31
|
+
template 'stylesheets/theme/_default.scss', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/theme/_default.scss"
|
32
|
+
end
|
33
|
+
|
34
|
+
def create_javascripts
|
35
|
+
template 'javascripts/index.js.erb', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/index.js"
|
36
|
+
unless Myg.configuration&.es6 == false
|
37
|
+
template 'javascripts/action-button.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/action-button.js"
|
38
|
+
template 'javascripts/button.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/button.js"
|
39
|
+
template 'javascripts/card.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/card.js"
|
40
|
+
template 'javascripts/checkbox.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/checkbox.js"
|
41
|
+
template 'javascripts/dialog.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/dialog.js"
|
42
|
+
template 'javascripts/drawer.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/drawer.js"
|
43
|
+
template 'javascripts/dropdown.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/dropdown.js"
|
44
|
+
template 'javascripts/footer.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/footer.js"
|
45
|
+
template 'javascripts/form-field.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/form-field.js"
|
46
|
+
template 'javascripts/icon.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/icon.js"
|
47
|
+
template 'javascripts/input.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/input.js"
|
48
|
+
template 'javascripts/menu.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/menu.js"
|
49
|
+
template 'javascripts/modal.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/modal.js"
|
50
|
+
template 'javascripts/progress.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/progress.js"
|
51
|
+
template 'javascripts/radio.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/radio.js"
|
52
|
+
template 'javascripts/select.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/select.js"
|
53
|
+
template 'javascripts/sidebar.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/sidebar.js"
|
54
|
+
template 'javascripts/slide.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/slide.js"
|
55
|
+
template 'javascripts/slider.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/slider.js"
|
56
|
+
template 'javascripts/tabs.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/tabs.js"
|
57
|
+
template 'javascripts/text.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/text.js"
|
58
|
+
template 'javascripts/theme.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/theme.js"
|
59
|
+
template 'javascripts/titlebar.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/titlebar.js"
|
60
|
+
template 'javascripts/toast.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/toast.js"
|
61
|
+
template 'javascripts/toolbar.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/toolbar.js"
|
62
|
+
template 'javascripts/tooltip.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/tooltip.js"
|
63
|
+
end
|
32
64
|
end
|
33
65
|
|
34
66
|
end
|
@@ -1,7 +1,13 @@
|
|
1
1
|
Myg.configure do |config|
|
2
2
|
|
3
|
-
# Path to Myg
|
4
|
-
# config.
|
3
|
+
# Path to Myg javascripts directory
|
4
|
+
# config.javascripts_dir = 'app/assets/javascripts/myg'
|
5
|
+
|
6
|
+
# Path to Myg stylehseets directory
|
7
|
+
# config.stylehseets_dir = 'app/assets/stylesheets/myg'
|
8
|
+
|
9
|
+
# Enable or disable Webpack (ES6)
|
10
|
+
# config.es6 = true
|
5
11
|
|
6
12
|
|
7
13
|
##### MYG-THEME #####
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<% if Myg.configuration&.es6 == false %>//= require myg/dist/myg<% else %>import './action-button';
|
2
|
+
import './button';
|
3
|
+
import './card';
|
4
|
+
import './checkbox';
|
5
|
+
import './dialog';
|
6
|
+
import './drawer';
|
7
|
+
import './dropdown';
|
8
|
+
import './footer';
|
9
|
+
import './form-field';
|
10
|
+
import './icon';
|
11
|
+
import './input';
|
12
|
+
import './menu';
|
13
|
+
import './modal';
|
14
|
+
import './progress';
|
15
|
+
import './radio';
|
16
|
+
import './select';
|
17
|
+
import './sidebar';
|
18
|
+
import './slide';
|
19
|
+
import './slider';
|
20
|
+
import './tabs';
|
21
|
+
import './text';
|
22
|
+
import './theme';
|
23
|
+
import './titlebar';
|
24
|
+
import './toast';
|
25
|
+
import './toolbar';
|
26
|
+
import './tooltip';<% end %>
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/generators/templates/install/{variables → stylesheets/variables}/_action-button.scss
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/myg/configuration.rb
CHANGED
@@ -11,7 +11,9 @@ module Myg
|
|
11
11
|
|
12
12
|
class Configuration
|
13
13
|
|
14
|
-
attr_accessor :
|
14
|
+
attr_accessor :stylesheets_dir
|
15
|
+
attr_accessor :javascripts_dir
|
16
|
+
attr_accessor :es6
|
15
17
|
attr_accessor :themes
|
16
18
|
attr_accessor :theme
|
17
19
|
attr_accessor :theme_auto
|
@@ -21,7 +23,9 @@ module Myg
|
|
21
23
|
attr_accessor :theme_night_time
|
22
24
|
|
23
25
|
def initialize
|
24
|
-
@
|
26
|
+
@stylesheets_dir = 'app/assets/stylesheets/myg'
|
27
|
+
@javascripts_dir = 'app/assets/javascripts/myg'
|
28
|
+
@es6 = true
|
25
29
|
@themes = ['default']
|
26
30
|
@theme = 'default'
|
27
31
|
@theme_auto = false
|
data/lib/myg/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: myg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Hübotter
|
@@ -139,23 +139,50 @@ files:
|
|
139
139
|
- app/views/mozaic/myg/_toolbar.html.erb
|
140
140
|
- lib/generators/myg/install_generator.rb
|
141
141
|
- lib/generators/myg/theme_generator.rb
|
142
|
-
- lib/generators/templates/install/_myg.sass
|
143
|
-
- lib/generators/templates/install/_variables.sass
|
144
142
|
- lib/generators/templates/install/initializer.rb
|
145
|
-
- lib/generators/templates/install/
|
146
|
-
- lib/generators/templates/install/
|
147
|
-
- lib/generators/templates/install/
|
148
|
-
- lib/generators/templates/install/
|
149
|
-
- lib/generators/templates/install/
|
150
|
-
- lib/generators/templates/install/
|
151
|
-
- lib/generators/templates/install/
|
152
|
-
- lib/generators/templates/install/
|
153
|
-
- lib/generators/templates/install/
|
154
|
-
- lib/generators/templates/install/
|
155
|
-
- lib/generators/templates/install/
|
156
|
-
- lib/generators/templates/install/
|
157
|
-
- lib/generators/templates/install/
|
158
|
-
- lib/generators/templates/install/
|
143
|
+
- lib/generators/templates/install/javascripts/action-button.js
|
144
|
+
- lib/generators/templates/install/javascripts/button.js
|
145
|
+
- lib/generators/templates/install/javascripts/card.js
|
146
|
+
- lib/generators/templates/install/javascripts/checkbox.js
|
147
|
+
- lib/generators/templates/install/javascripts/dialog.js
|
148
|
+
- lib/generators/templates/install/javascripts/drawer.js
|
149
|
+
- lib/generators/templates/install/javascripts/dropdown.js
|
150
|
+
- lib/generators/templates/install/javascripts/footer.js
|
151
|
+
- lib/generators/templates/install/javascripts/form-field.js
|
152
|
+
- lib/generators/templates/install/javascripts/icon.js
|
153
|
+
- lib/generators/templates/install/javascripts/index.js.erb
|
154
|
+
- lib/generators/templates/install/javascripts/input.js
|
155
|
+
- lib/generators/templates/install/javascripts/menu.js
|
156
|
+
- lib/generators/templates/install/javascripts/modal.js
|
157
|
+
- lib/generators/templates/install/javascripts/progress.js
|
158
|
+
- lib/generators/templates/install/javascripts/radio.js
|
159
|
+
- lib/generators/templates/install/javascripts/select.js
|
160
|
+
- lib/generators/templates/install/javascripts/sidebar.js
|
161
|
+
- lib/generators/templates/install/javascripts/slide.js
|
162
|
+
- lib/generators/templates/install/javascripts/slider.js
|
163
|
+
- lib/generators/templates/install/javascripts/tabs.js
|
164
|
+
- lib/generators/templates/install/javascripts/text.js
|
165
|
+
- lib/generators/templates/install/javascripts/theme.js
|
166
|
+
- lib/generators/templates/install/javascripts/titlebar.js
|
167
|
+
- lib/generators/templates/install/javascripts/toast.js
|
168
|
+
- lib/generators/templates/install/javascripts/toolbar.js
|
169
|
+
- lib/generators/templates/install/javascripts/tooltip.js
|
170
|
+
- lib/generators/templates/install/stylesheets/_myg.sass
|
171
|
+
- lib/generators/templates/install/stylesheets/_variables.sass
|
172
|
+
- lib/generators/templates/install/stylesheets/myg.sass
|
173
|
+
- lib/generators/templates/install/stylesheets/theme/_default.scss
|
174
|
+
- lib/generators/templates/install/stylesheets/theme/theme.sass
|
175
|
+
- lib/generators/templates/install/stylesheets/variables/_action-button.scss
|
176
|
+
- lib/generators/templates/install/stylesheets/variables/_animate.scss
|
177
|
+
- lib/generators/templates/install/stylesheets/variables/_base.scss
|
178
|
+
- lib/generators/templates/install/stylesheets/variables/_elevation.scss
|
179
|
+
- lib/generators/templates/install/stylesheets/variables/_font.scss
|
180
|
+
- lib/generators/templates/install/stylesheets/variables/_footer.scss
|
181
|
+
- lib/generators/templates/install/stylesheets/variables/_grid.scss
|
182
|
+
- lib/generators/templates/install/stylesheets/variables/_layout.scss
|
183
|
+
- lib/generators/templates/install/stylesheets/variables/_spacing.scss
|
184
|
+
- lib/generators/templates/install/stylesheets/variables/_text.scss
|
185
|
+
- lib/generators/templates/install/stylesheets/variables/_theme.scss
|
159
186
|
- lib/generators/templates/theme/_theme.scss.erb
|
160
187
|
- lib/myg.rb
|
161
188
|
- lib/myg/configuration.rb
|