tabler-rubygem 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -4
- data/assets/stylesheets/_tabler.plugins.scss +5 -5
- data/assets/stylesheets/tabler/plugins/charts-c3/{plugin.css → plugin.scss} +0 -0
- data/assets/stylesheets/tabler/plugins/fullcalendar/{plugin.css → plugin.scss} +0 -0
- data/assets/stylesheets/tabler/plugins/iconfonts/{plugin.css → plugin.scss} +0 -0
- data/assets/stylesheets/tabler/plugins/maps-google/{plugin.css → plugin.scss} +0 -0
- data/assets/stylesheets/tabler/plugins/prismjs/{plugin.css → plugin.scss} +0 -0
- data/lib/tabler/rubygem/version.rb +1 -1
- data/tasks/updater/scss.rb +2 -2
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60166d212ee7839763c9884d6ead9ed4c79562ad3b710b180969e543373e9f1a
|
4
|
+
data.tar.gz: 7d77b2c1698b0855462aa525a39fc38139a509d29047dd28d59a4222c92db7e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed186a66c9dd925444f6615f7050d46ed7737d09b181ee5e9702f201c9127ec3f780e9940afce8bfa277d41bcf7bc8e910b37f7683a9da64f14b4c18b21a4cd3
|
7
|
+
data.tar.gz: dc35945981f81b4a231359582a88182ff0b03a6e647406689b2c8e18104e93161621afc97a4fb2c1d275763d3e5ad4febf90f10bf7a7b8e1695f0f49837fd3bb
|
data/README.md
CHANGED
@@ -13,9 +13,10 @@ Please see the appropriate guide for your environment of choice:
|
|
13
13
|
|
14
14
|
### a. Ruby on Rails
|
15
15
|
|
16
|
-
Add `tabler-rubygem` to your Gemfile:
|
16
|
+
Add `bootstrap` and `tabler-rubygem` to your Gemfile:
|
17
17
|
|
18
18
|
```ruby
|
19
|
+
gem 'bootstrap', '~> 4.1.1'
|
19
20
|
gem 'tabler-rubygem'
|
20
21
|
```
|
21
22
|
|
@@ -26,9 +27,11 @@ Ensure that `sprockets-rails` is at least v2.3.2.
|
|
26
27
|
Import Tabler styles and optionally Tabler Plugin styles in `app/assets/stylesheets/application.scss`:
|
27
28
|
|
28
29
|
```scss
|
29
|
-
// Custom tabler variables must be set or imported *before* tabler.
|
30
|
+
// Custom tabler variables must be set or imported *before* bootstrap and tabler.
|
31
|
+
@import "tabler/variables";
|
32
|
+
@import "bootstrap";
|
30
33
|
@import "tabler";
|
31
|
-
@import "tabler.plugins"
|
34
|
+
@import "tabler.plugins";
|
32
35
|
```
|
33
36
|
|
34
37
|
The available variables can be found [here][tabler-variables.scss].
|
@@ -38,8 +41,10 @@ You can also choose to include plugin css on a per-plugin basis, for example:
|
|
38
41
|
|
39
42
|
```scss
|
40
43
|
// Custom tabler variables must be set or imported *before* tabler.
|
44
|
+
@import "tabler/variables";
|
45
|
+
@import "bootstrap";
|
41
46
|
@import "tabler";
|
42
|
-
@import "tabler/plugins/charts-c3/plugin.
|
47
|
+
@import "tabler/plugins/charts-c3/plugin.scss";
|
43
48
|
```
|
44
49
|
|
45
50
|
Make sure the file has `.scss` extension (or `.sass` for Sass syntax). If you have just generated a new Rails app,
|
@@ -63,6 +68,16 @@ Add Tabler and optionally Tabler Plugins to your `application.js`:
|
|
63
68
|
Tabler already includes jQuery and Bootstrap javascript.
|
64
69
|
Tabler plugins includes the javascripts found [here][tabler-plugins].
|
65
70
|
|
71
|
+
If you already include jQuery in your project, you can include tabler's js on a per-file basis to avoid conflicts:
|
72
|
+
|
73
|
+
```js
|
74
|
+
// = require tabler/tabler
|
75
|
+
// = require tabler/vendors/bootstrap.bundle.min
|
76
|
+
// = require tabler/vendors/circle-progress.min
|
77
|
+
// = require tabler/vendors/jquery.sparkline.min
|
78
|
+
// = require tabler/core
|
79
|
+
```
|
80
|
+
|
66
81
|
You can also choose to include plugin js on a per-plugin basis, for example:
|
67
82
|
|
68
83
|
```js
|
@@ -1,5 +1,5 @@
|
|
1
|
-
@import "tabler/plugins/charts-c3/plugin.
|
2
|
-
@import "tabler/plugins/fullcalendar/plugin.
|
3
|
-
@import "tabler/plugins/iconfonts/plugin.
|
4
|
-
@import "tabler/plugins/maps-google/plugin.
|
5
|
-
@import "tabler/plugins/prismjs/plugin.
|
1
|
+
@import "tabler/plugins/charts-c3/plugin.scss";
|
2
|
+
@import "tabler/plugins/fullcalendar/plugin.scss";
|
3
|
+
@import "tabler/plugins/iconfonts/plugin.scss";
|
4
|
+
@import "tabler/plugins/maps-google/plugin.scss";
|
5
|
+
@import "tabler/plugins/prismjs/plugin.scss";
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/tasks/updater/scss.rb
CHANGED
@@ -13,7 +13,7 @@ class Updater
|
|
13
13
|
|
14
14
|
tabler_plugin_files = get_paths_by_type('dist/assets/plugins', /\.css$/)
|
15
15
|
read_files('dist/assets/plugins', tabler_plugin_files).each do |name, content|
|
16
|
-
save_file("#{save_to}/dashboard/plugins/#{name}", remove_source_mapping_url(content))
|
16
|
+
save_file("#{save_to}/dashboard/plugins/#{name.gsub('.css', '.scss')}", remove_source_mapping_url(content))
|
17
17
|
end
|
18
18
|
log_processed "#{tabler_plugin_files * ' '}"
|
19
19
|
|
@@ -62,7 +62,7 @@ class Updater
|
|
62
62
|
|
63
63
|
def write_plugins_file(plugins_file, tabler_plugin_files)
|
64
64
|
tabler_plugin_files.each do |line|
|
65
|
-
plugins_file.puts "@import \"tabler/plugins/#{line}\";"
|
65
|
+
plugins_file.puts "@import \"tabler/plugins/#{line.gsub('.css', '.scss')}\";"
|
66
66
|
end
|
67
67
|
end
|
68
68
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tabler-rubygem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lightyrs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: autoprefixer-rails
|
@@ -685,11 +685,11 @@ files:
|
|
685
685
|
- assets/stylesheets/tabler/forms/_custom-range.scss
|
686
686
|
- assets/stylesheets/tabler/forms/_custom-selectgroup.scss
|
687
687
|
- assets/stylesheets/tabler/forms/_custom-switch.scss
|
688
|
-
- assets/stylesheets/tabler/plugins/charts-c3/plugin.
|
689
|
-
- assets/stylesheets/tabler/plugins/fullcalendar/plugin.
|
690
|
-
- assets/stylesheets/tabler/plugins/iconfonts/plugin.
|
691
|
-
- assets/stylesheets/tabler/plugins/maps-google/plugin.
|
692
|
-
- assets/stylesheets/tabler/plugins/prismjs/plugin.
|
688
|
+
- assets/stylesheets/tabler/plugins/charts-c3/plugin.scss
|
689
|
+
- assets/stylesheets/tabler/plugins/fullcalendar/plugin.scss
|
690
|
+
- assets/stylesheets/tabler/plugins/iconfonts/plugin.scss
|
691
|
+
- assets/stylesheets/tabler/plugins/maps-google/plugin.scss
|
692
|
+
- assets/stylesheets/tabler/plugins/prismjs/plugin.scss
|
693
693
|
- lib/tabler/rubygem.rb
|
694
694
|
- lib/tabler/rubygem/engine.rb
|
695
695
|
- lib/tabler/rubygem/version.rb
|
@@ -757,7 +757,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
757
757
|
version: '0'
|
758
758
|
requirements: []
|
759
759
|
rubyforge_project:
|
760
|
-
rubygems_version: 2.7.
|
760
|
+
rubygems_version: 2.7.6
|
761
761
|
signing_key:
|
762
762
|
specification_version: 4
|
763
763
|
summary: Integrates Tabler Dashboard UI Kit (built on Bootstrap 4) into Rails Asset
|