administrate-bootstrap-theme 0.2.0 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +71 -37
  3. data/app/assets/javascripts/administrate-bootstrap-theme/{bootstrap/bootstrap.bundle.js → bootstrap.bundle.js} +1376 -1310
  4. data/app/assets/stylesheets/administrate-bootstrap-theme/_base.scss +4 -21
  5. data/app/assets/stylesheets/administrate-bootstrap-theme/_variables.scss +4 -0
  6. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_accordion.scss +4 -2
  7. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_card.scss +7 -6
  8. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_carousel.scss +2 -2
  9. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_dropdown.scss +11 -17
  10. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_functions.scss +94 -3
  11. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_grid.scss +11 -0
  12. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_helpers.scss +2 -0
  13. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_images.scss +1 -1
  14. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_list-group.scss +5 -5
  15. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_mixins.scss +2 -0
  16. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_modal.scss +7 -35
  17. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_navbar.scss +30 -1
  18. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_offcanvas.scss +19 -13
  19. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_placeholders.scss +51 -0
  20. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_popover.scss +10 -10
  21. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_reboot.scss +12 -8
  22. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_root.scss +39 -2
  23. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_spinners.scss +2 -2
  24. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_tables.scss +1 -0
  25. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_toasts.scss +3 -3
  26. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_tooltip.scss +4 -4
  27. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_transitions.scss +6 -0
  28. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_utilities.scss +44 -8
  29. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_variables.scss +193 -28
  30. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/bootstrap-grid.scss +1 -1
  31. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/bootstrap-reboot.scss +1 -1
  32. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/bootstrap-utilities.scss +1 -1
  33. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/bootstrap.scss +2 -1
  34. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_floating-labels.scss +3 -1
  35. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_form-check.scss +1 -1
  36. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_form-control.scss +1 -1
  37. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_form-range.scss +1 -1
  38. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_form-select.scss +3 -0
  39. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_stacks.scss +15 -0
  40. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_vr.scss +8 -0
  41. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_backdrop.scss +14 -0
  42. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_buttons.scss +1 -1
  43. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_color-scheme.scss +7 -0
  44. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_forms.scss +15 -5
  45. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_grid.scss +40 -10
  46. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_utilities.scss +27 -6
  47. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/vendor/_rfs.scss +55 -13
  48. data/app/assets/stylesheets/administrate-bootstrap-theme/colors/_autumn.scss +8 -0
  49. data/app/assets/stylesheets/administrate-bootstrap-theme/colors/_default.scss +8 -0
  50. data/app/assets/stylesheets/administrate-bootstrap-theme/colors/_forest.scss +9 -0
  51. data/app/assets/stylesheets/administrate-bootstrap-theme/colors/_industrial.scss +8 -0
  52. data/app/assets/stylesheets/administrate-bootstrap-theme/colors/_water.scss +8 -0
  53. data/app/assets/stylesheets/administrate-bootstrap-theme/components/_content_body.scss +28 -10
  54. data/app/assets/stylesheets/administrate-bootstrap-theme/components/_content_header.scss +4 -6
  55. data/app/assets/stylesheets/administrate-bootstrap-theme/components/_form.scss +6 -6
  56. data/app/assets/stylesheets/administrate-bootstrap-theme/components/_navigation.scss +26 -3
  57. data/app/assets/stylesheets/administrate-bootstrap-theme/components/_pagination.scss +1 -1
  58. data/app/assets/stylesheets/administrate-bootstrap-theme/fonts/_lato.scss +5 -0
  59. data/app/assets/stylesheets/administrate-bootstrap-theme/fonts/_montserrat.scss +5 -0
  60. data/app/assets/stylesheets/administrate-bootstrap-theme/fonts/_open_sans.scss +5 -0
  61. data/app/assets/stylesheets/administrate-bootstrap-theme/fonts/_roboto.scss +5 -0
  62. data/app/assets/stylesheets/administrate-bootstrap-theme/fonts/_source_sans_pro.scss +5 -0
  63. data/app/assets/stylesheets/administrate-bootstrap-theme/theme.scss +10 -61
  64. data/lib/administrate-bootstrap-theme/version.rb +2 -1
  65. data/lib/generators/administrate_bootstrap_theme/install/USAGE +10 -0
  66. data/lib/generators/administrate_bootstrap_theme/install/install_generator.rb +33 -0
  67. data/package.json +10 -0
  68. metadata +24 -9
  69. data/Rakefile +0 -16
  70. data/app/assets/javascripts/administrate-bootstrap-theme/flatpickr/flatpickr.js +0 -2673
  71. data/app/assets/javascripts/administrate-bootstrap-theme/theme.js +0 -22
  72. data/app/assets/stylesheets/administrate-bootstrap-theme/flatpickr/flatpickr.css +0 -791
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ module AdministrateBootstrapTheme
4
+ class InstallGenerator < Rails::Generators::Base
5
+ source_root File.expand_path('templates', __dir__)
6
+
7
+ def append_assets
8
+ append_file 'config/initializers/assets.rb', <<~FILE
9
+ Rails.application.config.assets.precompile += %w[
10
+ administrate-bootstrap-theme.scss
11
+ administrate-bootstrap-theme/theme.css
12
+ administrate-bootstrap-theme/bootstrap.bundle.js
13
+ ]
14
+ FILE
15
+ end
16
+
17
+ def create_stylesheets_assets
18
+ create_file 'app/assets/stylesheets/administrate-bootstrap-theme.scss', <<~FILE
19
+ @import 'administrate-bootstrap-theme/colors/default';
20
+ @import 'administrate-bootstrap-theme/fonts/source_sans_pro';
21
+ @import 'administrate-bootstrap-theme/theme';
22
+ FILE
23
+ end
24
+
25
+ def create_initializer
26
+ initializer 'administrate_bootstrap_theme.rb', <<~FILE
27
+ Administrate::Engine.stylesheets.clear # required to remove Administrate base styles
28
+ Administrate::Engine.add_stylesheet('administrate-bootstrap-theme')
29
+ Administrate::Engine.add_javascript('administrate-bootstrap-theme/bootstrap.bundle.js')
30
+ FILE
31
+ end
32
+ end
33
+ end
data/package.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "administrate-bootstrap-theme",
3
+ "version": "1.0.4",
4
+ "main": "index.js",
5
+ "author": "Mattia Roccoberton <mat@blocknot.es>",
6
+ "license": "MIT",
7
+ "dependencies": {
8
+ "bootstrap": "^5.0.1"
9
+ }
10
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: administrate-bootstrap-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mattia Roccoberton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-02 00:00:00.000000000 Z
11
+ date: 2022-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: administrate
@@ -33,11 +33,8 @@ extra_rdoc_files: []
33
33
  files:
34
34
  - MIT-LICENSE
35
35
  - README.md
36
- - Rakefile
37
36
  - app/assets/config/administrate-bootstrap-theme_manifest.js
38
- - app/assets/javascripts/administrate-bootstrap-theme/bootstrap/bootstrap.bundle.js
39
- - app/assets/javascripts/administrate-bootstrap-theme/flatpickr/flatpickr.js
40
- - app/assets/javascripts/administrate-bootstrap-theme/theme.js
37
+ - app/assets/javascripts/administrate-bootstrap-theme/bootstrap.bundle.js
41
38
  - app/assets/stylesheets/administrate-bootstrap-theme/_base.scss
42
39
  - app/assets/stylesheets/administrate-bootstrap-theme/_variables.scss
43
40
  - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_accordion.scss
@@ -63,6 +60,7 @@ files:
63
60
  - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_navbar.scss
64
61
  - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_offcanvas.scss
65
62
  - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_pagination.scss
63
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_placeholders.scss
66
64
  - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_popover.scss
67
65
  - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_progress.scss
68
66
  - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_reboot.scss
@@ -92,16 +90,20 @@ files:
92
90
  - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_colored-links.scss
93
91
  - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_position.scss
94
92
  - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_ratio.scss
93
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_stacks.scss
95
94
  - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_stretched-link.scss
96
95
  - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_text-truncation.scss
97
96
  - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_visually-hidden.scss
97
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_vr.scss
98
98
  - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_alert.scss
99
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_backdrop.scss
99
100
  - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_border-radius.scss
100
101
  - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_box-shadow.scss
101
102
  - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_breakpoints.scss
102
103
  - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_buttons.scss
103
104
  - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_caret.scss
104
105
  - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_clearfix.scss
106
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_color-scheme.scss
105
107
  - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_container.scss
106
108
  - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_deprecate.scss
107
109
  - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_forms.scss
@@ -120,22 +122,35 @@ files:
120
122
  - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_visually-hidden.scss
121
123
  - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/utilities/_api.scss
122
124
  - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/vendor/_rfs.scss
125
+ - app/assets/stylesheets/administrate-bootstrap-theme/colors/_autumn.scss
126
+ - app/assets/stylesheets/administrate-bootstrap-theme/colors/_default.scss
127
+ - app/assets/stylesheets/administrate-bootstrap-theme/colors/_forest.scss
128
+ - app/assets/stylesheets/administrate-bootstrap-theme/colors/_industrial.scss
129
+ - app/assets/stylesheets/administrate-bootstrap-theme/colors/_water.scss
123
130
  - app/assets/stylesheets/administrate-bootstrap-theme/components/_content_body.scss
124
131
  - app/assets/stylesheets/administrate-bootstrap-theme/components/_content_header.scss
125
132
  - app/assets/stylesheets/administrate-bootstrap-theme/components/_form.scss
126
133
  - app/assets/stylesheets/administrate-bootstrap-theme/components/_navigation.scss
127
134
  - app/assets/stylesheets/administrate-bootstrap-theme/components/_pagination.scss
128
- - app/assets/stylesheets/administrate-bootstrap-theme/flatpickr/flatpickr.css
135
+ - app/assets/stylesheets/administrate-bootstrap-theme/fonts/_lato.scss
136
+ - app/assets/stylesheets/administrate-bootstrap-theme/fonts/_montserrat.scss
137
+ - app/assets/stylesheets/administrate-bootstrap-theme/fonts/_open_sans.scss
138
+ - app/assets/stylesheets/administrate-bootstrap-theme/fonts/_roboto.scss
139
+ - app/assets/stylesheets/administrate-bootstrap-theme/fonts/_source_sans_pro.scss
129
140
  - app/assets/stylesheets/administrate-bootstrap-theme/theme.scss
130
141
  - lib/administrate-bootstrap-theme.rb
131
142
  - lib/administrate-bootstrap-theme/engine.rb
132
143
  - lib/administrate-bootstrap-theme/version.rb
144
+ - lib/generators/administrate_bootstrap_theme/install/USAGE
145
+ - lib/generators/administrate_bootstrap_theme/install/install_generator.rb
146
+ - package.json
133
147
  homepage: https://github.com/blocknotes/administrate-bootstrap-theme
134
148
  licenses:
135
149
  - MIT
136
150
  metadata:
137
151
  homepage_uri: https://github.com/blocknotes/administrate-bootstrap-theme
138
152
  source_code_uri: https://github.com/blocknotes/administrate-bootstrap-theme
153
+ rubygems_mfa_required: 'true'
139
154
  post_install_message:
140
155
  rdoc_options: []
141
156
  require_paths:
@@ -144,14 +159,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
144
159
  requirements:
145
160
  - - ">="
146
161
  - !ruby/object:Gem::Version
147
- version: 2.5.0
162
+ version: 2.6.0
148
163
  required_rubygems_version: !ruby/object:Gem::Requirement
149
164
  requirements:
150
165
  - - ">="
151
166
  - !ruby/object:Gem::Version
152
167
  version: '0'
153
168
  requirements: []
154
- rubygems_version: 3.0.3
169
+ rubygems_version: 3.1.6
155
170
  signing_key:
156
171
  specification_version: 4
157
172
  summary: Administrate Bootstrap Theme
data/Rakefile DELETED
@@ -1,16 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
4
-
5
- begin
6
- require 'rspec/core/rake_task'
7
-
8
- RSpec::Core::RakeTask.new(:spec) do |t|
9
- # t.ruby_opts = %w[-w]
10
- t.rspec_opts = ['--color', '--format documentation']
11
- end
12
-
13
- task default: :spec
14
- rescue LoadError
15
- puts '! LoadError: no RSpec available'
16
- end