anchor_ui-webpacker 5.2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 6b90fb0d0647e8fb9836fbb2bfba2ce78cb7569131be2394259ac34d9388b59b
4
+ data.tar.gz: 2931ea6a51eca467dd9fc1d1bf06f146add20896b8427981e584cb8522663b02
5
+ SHA512:
6
+ metadata.gz: 45a37d35f49f05b8cc58224e0e0ba70c369c569285de0ba59367a545c60263a6d7c8b6b6ea6e9b696397b2259175b1f991e1dfaff2e70efd7d34a7ee423e8f37
7
+ data.tar.gz: dfeadebd1c315df4f1088cbd6b653178b90fde7ca4d1bd23c48394dc2130337f84f621a0f320dbaf3b3505236f78d0e19d673b9f384930e18998bc43304bf015
data/README.md ADDED
@@ -0,0 +1,65 @@
1
+ # AnchorUI - Webpacker
2
+
3
+ Add [CoreUI](https://coreui.io/index.html) to Rails 5 projects and the asset pipeline.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'anchor_ui-webpacker'
11
+ ```
12
+
13
+ And then execute:
14
+ ```bash
15
+ $ bundle
16
+ ```
17
+
18
+ Or install it yourself as:
19
+ ```bash
20
+ $ gem install anchor_ui-webpacker
21
+ ```
22
+
23
+ Then run the installation:
24
+ ```bash
25
+ bin/rails g anchor_ui:webpacker:install
26
+ ```
27
+
28
+ ## Development
29
+
30
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run
31
+ `rake test` to run the tests. You can also run `bin/console` for an interactive
32
+ prompt that will allow you to experiment.
33
+
34
+ To install this gem onto your local machine, run `bundle exec rake install`. To
35
+ release a new version, update the version number in `version.rb`, and then run
36
+ `bundle exec rake release`, which will create a git tag for the version, push
37
+ git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
38
+
39
+ After upgrading the coreui node module, the generators template needs to be
40
+ compiled again.
41
+
42
+ There is a script to automate this task and the syntax is like this:
43
+ ```bash
44
+ bin/update 2.1.1
45
+ ```
46
+
47
+ ## Test
48
+
49
+ To execute the test suite run `bin/test` to reference test script from the bin
50
+ folder of the project.
51
+
52
+ ## Contributing
53
+
54
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/anchor_ui.
55
+ This project is intended to be a safe, welcoming space for collaboration, and
56
+ contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
57
+
58
+ ## License
59
+
60
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
61
+
62
+ ## Code of Conduct
63
+
64
+ Everyone interacting in the AnchorUI project’s codebases, issue trackers, chat
65
+ rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/anchor_ui/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,17 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ require 'bundler/gem_tasks'
8
+ require 'rake/testtask'
9
+
10
+ Rake::TestTask.new(:test) do |t|
11
+ t.libs << 'test'
12
+ t.pattern = 'test/**/*_test.rb'
13
+ t.verbose = false
14
+ t.warning = false
15
+ end
16
+
17
+ task default: :test
@@ -0,0 +1,4 @@
1
+ require 'webpacker'
2
+ require 'anchor_ui/webpacker/railtie'
3
+ require 'anchor_ui/webpacker/core_ui'
4
+ require 'anchor_ui/webpacker/generator'
@@ -0,0 +1,68 @@
1
+ module AnchorUi
2
+ module Webpacker
3
+ class CoreUi < AnchorUi::Core::Assets::Base
4
+ include AnchorUi::Core::Assets::Concerns::CoreUi
5
+
6
+ def update
7
+ ensure_module
8
+ compile_coreui_scss
9
+ compile_variables_scss
10
+ puts 'CoreUi updated'
11
+ end
12
+
13
+ private
14
+
15
+ def root_path
16
+ @tmp_path || begin
17
+ Pathname.new File.expand_path("#{__dir__}/../../..")
18
+ end
19
+ end
20
+
21
+ def templates_path
22
+ root_path.join 'lib/generators/anchor_ui/webpacker/templates'
23
+ end
24
+
25
+ def node_path
26
+ tmp_path.join 'node_modules/@coreui/coreui'
27
+ end
28
+
29
+ def stylesheets_source_path
30
+ node_path.join stylesheets_relative_path
31
+ end
32
+
33
+ def ensure_module
34
+ unless Dir.exists?(node_path)
35
+ FileUtils.mkdir_p tmp_path
36
+ system "cd #{tmp_path} && yarn install && yarn add chalk @coreui/coreui@#{version}"
37
+ end
38
+ end
39
+
40
+ def compile_coreui_scss
41
+ super(
42
+ '~@coreui/coreui/scss',
43
+ '~@coreui/icons/scss/coreui-icons'
44
+ )
45
+ end
46
+
47
+ def compile_variables_scss
48
+ super(
49
+ <<~SCSS,
50
+ @import
51
+ '~bootstrap/scss/functions',
52
+ '~bootstrap/scss/variables';
53
+
54
+ SCSS
55
+ <<~SCSS
56
+
57
+ // Paths
58
+ $simple-line-font-path: '~simple-line-icons/fonts/';
59
+ $fa-font-path: '~font-awesome/fonts';
60
+ $flag-icon-css-path: '~flag-icon-css/flags';
61
+ $coreui-icons-font-path: '~@coreui/icons/fonts';
62
+ SCSS
63
+ )
64
+ end
65
+
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,16 @@
1
+ module AnchorUi
2
+ module Webpacker
3
+ class Generator < Rails::Generators::Base
4
+
5
+ private
6
+
7
+ def yarn(cmd)
8
+ in_root do
9
+ prefix = extify(:yarn)
10
+ run "#{prefix} #{cmd}"
11
+ end
12
+ end
13
+
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,6 @@
1
+ module AnchorUi
2
+ module Webpacker
3
+ class Railtie < Rails::Railtie
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,7 @@
1
+ module AnchorUi
2
+ module Webpacker
3
+
4
+ VERSION = '5.2.0.1'
5
+
6
+ end
7
+ end
@@ -0,0 +1,66 @@
1
+ module AnchorUi
2
+ module Webpacker
3
+ class InstallGenerator < Generator
4
+ include AnchorUi::Core::Generators::Concerns::Install
5
+
6
+ source_root File.expand_path('../templates', __FILE__)
7
+
8
+ def install_webpacker
9
+ rake 'webpacker:install'
10
+ end
11
+
12
+ def install_railties
13
+ yarn 'add rails-ujs'
14
+ yarn 'add turbolinks'
15
+ end
16
+
17
+ def install_coreui
18
+ # Versions referenced from https://github.com/coreui/coreui-free-bootstrap-admin-template/blob/v2.1.10/package.json
19
+ yarn 'add @coreui/coreui@^2.1.3'
20
+ yarn 'add @coreui/coreui-plugin-chartjs-custom-tooltips@1.2.0'
21
+ yarn 'add @coreui/icons@0.3.0'
22
+ yarn 'add popper.js@^1.14.5'
23
+ yarn 'add simple-line-icons@2.4.1'
24
+ yarn 'add perfect-scrollbar@1.4.0'
25
+ yarn 'add pace@^0.0.4'
26
+ yarn 'add pace-progress@1.0.2'
27
+ yarn 'add jquery@3.3.1'
28
+ yarn 'add font-awesome@4.7.0'
29
+ yarn 'add flag-icon-css@^3.2.1'
30
+ yarn 'add core-js@^2.5.7'
31
+ yarn 'add chart.js@2.7.3'
32
+ end
33
+
34
+ def copy_assets
35
+ empty_directory packs_path
36
+ filename = 'application.js'
37
+ copy_file filename, packs_path.join(filename)
38
+
39
+ empty_directory src_path
40
+ %w(application _variables _coreui).each do |name|
41
+ filename = "#{name}.scss"
42
+ copy_file filename, src_path.join(filename)
43
+ end
44
+ end
45
+
46
+ def override_layout
47
+ generate_layout 'pack', 'pack', 'style'
48
+ end
49
+
50
+ private
51
+
52
+ def javascript_path
53
+ Pathname.new 'app/javascript'
54
+ end
55
+
56
+ def packs_path
57
+ javascript_path.join 'packs'
58
+ end
59
+
60
+ def src_path
61
+ javascript_path.join 'src'
62
+ end
63
+
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,11 @@
1
+ module AnchorUi
2
+ module Webpacker
3
+ class SignaturePadGenerator < Generator
4
+
5
+ def install_signature_pad
6
+ yarn 'add signature_pad'
7
+ end
8
+
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,36 @@
1
+ @import
2
+ '~@coreui/icons/scss/coreui-icons',
3
+ '~@coreui/coreui/scss/mixins',
4
+ '~@coreui/coreui/scss/animate',
5
+ '~@coreui/coreui/scss/vendors',
6
+ '~@coreui/coreui/scss/aside',
7
+ '~@coreui/coreui/scss/avatars',
8
+ '~@coreui/coreui/scss/badge',
9
+ '~@coreui/coreui/scss/breadcrumb-menu',
10
+ '~@coreui/coreui/scss/breadcrumb',
11
+ '~@coreui/coreui/scss/brand-card',
12
+ '~@coreui/coreui/scss/brand-buttons',
13
+ '~@coreui/coreui/scss/buttons',
14
+ '~@coreui/coreui/scss/callout',
15
+ '~@coreui/coreui/scss/card',
16
+ '~@coreui/coreui/scss/charts',
17
+ '~@coreui/coreui/scss/dropdown',
18
+ '~@coreui/coreui/scss/footer',
19
+ '~@coreui/coreui/scss/grid',
20
+ '~@coreui/coreui/scss/header',
21
+ '~@coreui/coreui/scss/input-group',
22
+ '~@coreui/coreui/scss/images',
23
+ '~@coreui/coreui/scss/list-group',
24
+ '~@coreui/coreui/scss/modal',
25
+ '~@coreui/coreui/scss/nav',
26
+ '~@coreui/coreui/scss/progress',
27
+ '~@coreui/coreui/scss/progress-group',
28
+ '~@coreui/coreui/scss/sidebar',
29
+ '~@coreui/coreui/scss/switches',
30
+ '~@coreui/coreui/scss/tables',
31
+ '~@coreui/coreui/scss/widgets',
32
+ '~@coreui/coreui/scss/layout',
33
+ '~@coreui/coreui/scss/others',
34
+ '~@coreui/coreui/scss/utilities',
35
+ '~@coreui/coreui/scss/rtl',
36
+ '~@coreui/coreui/scss/ie-custom-properties';
@@ -0,0 +1,414 @@
1
+ // Color system
2
+ // stylelint-disable
3
+
4
+ $white: #fff !default;
5
+ $gray-base: #181b1e !default;
6
+ $gray-100: #f0f3f5 !default; // lighten($gray-base, 85%);
7
+ $gray-200: #e4e7ea !default; // lighten($gray-base, 80%);
8
+ $gray-300: #c8ced3 !default; // lighten($gray-base, 70%);
9
+ $gray-400: #acb4bc !default; // lighten($gray-base, 60%);
10
+ $gray-500: #8f9ba6 !default; // lighten($gray-base, 50%);
11
+ $gray-600: #73818f !default; // lighten($gray-base, 40%);
12
+ $gray-700: #5c6873 !default; // lighten($gray-base, 30%);
13
+ $gray-800: #2f353a !default; // lighten($gray-base, 10%);
14
+ $gray-900: #23282c !default; // lighten($gray-base, 5%);
15
+ $black: #000 !default;
16
+
17
+ $grays: () !default;
18
+ $grays: map-merge(
19
+ (
20
+ "100": $gray-100,
21
+ "200": $gray-200,
22
+ "300": $gray-300,
23
+ "400": $gray-400,
24
+ "500": $gray-500,
25
+ "600": $gray-600,
26
+ "700": $gray-700,
27
+ "800": $gray-800,
28
+ "900": $gray-900
29
+ ),
30
+ $grays
31
+ );
32
+
33
+ $blue: #20a8d8 !default;
34
+ $indigo: #6610f2 !default;
35
+ $purple: #6f42c1 !default;
36
+ $pink: #e83e8c !default;
37
+ $red: #f86c6b !default;
38
+ $orange: #f8cb00 !default;
39
+ $yellow: #ffc107 !default;
40
+ $green: #4dbd74 !default;
41
+ $teal: #20c997 !default;
42
+ $cyan: #17a2b8 !default;
43
+ $light-blue: #63c2de !default;
44
+
45
+ $colors: () !default;
46
+ $colors: map-merge(
47
+ (
48
+ "blue": $blue,
49
+ "indigo": $indigo,
50
+ "purple": $purple,
51
+ "pink": $pink,
52
+ "red": $red,
53
+ "orange": $orange,
54
+ "yellow": $yellow,
55
+ "green": $green,
56
+ "teal": $teal,
57
+ "cyan": $cyan,
58
+ "light-blue": $light-blue,
59
+ "white": $white,
60
+ "gray": $gray-600,
61
+ "gray-dark": $gray-800
62
+ ),
63
+ $colors
64
+ );
65
+
66
+ $primary: $blue !default;
67
+ $secondary: $gray-300 !default;
68
+ $success: $green !default;
69
+ $info: $light-blue !default;
70
+ $warning: $yellow !default;
71
+ $danger: $red !default;
72
+ $light: $gray-100 !default;
73
+ $dark: $gray-800 !default;
74
+
75
+ $theme-colors: () !default;
76
+ $theme-colors: map-merge(
77
+ (
78
+ "primary": $primary,
79
+ "secondary": $secondary,
80
+ "success": $success,
81
+ "info": $info,
82
+ "warning": $warning,
83
+ "danger": $danger,
84
+ "light": $light,
85
+ "dark": $dark
86
+ ),
87
+ $theme-colors
88
+ );
89
+
90
+ // Brand Colors
91
+
92
+ $facebook: #3b5998 !default;
93
+ $twitter: #00aced !default;
94
+ $linkedin: #4875b4 !default;
95
+ $google-plus: #d34836 !default;
96
+ $flickr: #ff0084 !default;
97
+ $tumblr: #32506d !default;
98
+ $xing: #026466 !default;
99
+ $github: #4183c4 !default;
100
+ $html5: #e34f26 !default;
101
+ $openid: #f78c40 !default;
102
+ $stack-overflow: #fe7a15 !default;
103
+ $youtube: #b00 !default;
104
+ $css3: #0170ba !default;
105
+ $dribbble: #ea4c89 !default;
106
+ $google-plus: #bb4b39 !default;
107
+ $instagram: #517fa4 !default;
108
+ $pinterest: #cb2027 !default;
109
+ $vk: #45668e !default;
110
+ $yahoo: #400191 !default;
111
+ $behance: #1769ff !default;
112
+ $dropbox: #007ee5 !default;
113
+ $reddit: #ff4500 !default;
114
+ $spotify: #7ab800 !default;
115
+ $vine: #00bf8f !default;
116
+ $foursquare: #1073af !default;
117
+ $vimeo: #aad450 !default;
118
+
119
+ $brands-colors: () !default;
120
+ $brands-colors: map-merge((
121
+ "facebook": $facebook,
122
+ "twitter": $twitter,
123
+ "linkedin": $linkedin,
124
+ "google-plus": $google-plus,
125
+ "flickr": $flickr,
126
+ "tumblr": $tumblr,
127
+ "xing": $xing,
128
+ "github": $github,
129
+ "html5": $html5,
130
+ "openid": $openid,
131
+ "stack-overflow": $stack-overflow,
132
+ "youtube": $youtube,
133
+ "css3": $css3,
134
+ "dribbble": $dribbble,
135
+ "instagram": $instagram,
136
+ "pinterest": $pinterest,
137
+ "vk": $vk,
138
+ "yahoo": $yahoo,
139
+ "behance": $behance,
140
+ "dropbox": $dropbox,
141
+ "reddit": $reddit,
142
+ "spotify": $spotify,
143
+ "vine": $vine,
144
+ "foursquare": $foursquare,
145
+ "vimeo": $vimeo
146
+ ), $brands-colors);
147
+
148
+ // stylelint-disable
149
+ // Bootstrap overrides
150
+
151
+ // Options
152
+ //
153
+ // Quickly modify global styling by enabling or disabling optional features.
154
+
155
+ $enable-transitions: true !default;
156
+
157
+ // Body
158
+ //
159
+ // Settings for the `<body>` element.
160
+
161
+ $body-bg: #e4e5e6 !default;
162
+
163
+ // Components
164
+ //
165
+ // Define common padding and border radius sizes and more.
166
+
167
+ $border-color: $gray-300 !default;
168
+
169
+ // Typography
170
+ //
171
+ // Font, line-height, and color for body text, headings, and more.
172
+
173
+ $font-size-base: .875rem !default;
174
+
175
+ // Breadcrumbs
176
+
177
+ $breadcrumb-bg: #fff !default;
178
+ $breadcrumb-margin-bottom: 1.5rem !default;
179
+ $breadcrumb-border-radius: 0 !default;
180
+
181
+ // Cards
182
+
183
+ $card-border-color: $gray-300 !default;
184
+ $card-cap-bg: $gray-100 !default;
185
+
186
+ // Dropdowns
187
+
188
+ $dropdown-padding-y: 0 !default;
189
+ $dropdown-border-color: $gray-300 !default;
190
+ $dropdown-divider-bg: $gray-200 !default;
191
+
192
+ // Buttons
193
+
194
+ $btn-secondary-border: $gray-300 !default;
195
+
196
+ // Progress bars
197
+
198
+ $progress-bg: $gray-100 !default;
199
+
200
+ // Tables
201
+
202
+ $table-bg-accent: $gray-100 !default;
203
+ $table-bg-hover: $gray-100 !default;
204
+
205
+ // Forms
206
+
207
+ $input-group-addon-bg: $gray-100 !default;
208
+ $input-border-color: $gray-200 !default;
209
+ $input-group-addon-border-color: $gray-200 !default;
210
+
211
+ @import
212
+ '~bootstrap/scss/functions',
213
+ '~bootstrap/scss/variables';
214
+
215
+ // CoreUI Variables
216
+
217
+ // stylelint-disable
218
+ $enable-sidebar-nav-rounded: false !default;
219
+ $layout-transition-speed: .25s !default;
220
+
221
+ // Navbar
222
+
223
+ $navbar-height: 55px !default;
224
+ $navbar-bg: #fff !default;
225
+ $navbar-border: (
226
+ bottom: (
227
+ size: 1px,
228
+ style: solid,
229
+ color: $border-color
230
+ )
231
+ ) !default;
232
+ $navbar-brand-width: 155px !default;
233
+ $navbar-brand-bg: transparent !default;
234
+ $navbar-brand-border: 0 !default;
235
+
236
+ $navbar-brand-minimized-width: 50px !default;
237
+ $navbar-brand-minimized-bg: $navbar-brand-bg !default;
238
+ $navbar-brand-minimized-border: $navbar-brand-border !default;
239
+
240
+ $navbar-color: $gray-600 !default;
241
+ $navbar-hover-color: $gray-800 !default;
242
+ $navbar-active-color: $gray-800 !default;
243
+ $navbar-disabled-color: $gray-300 !default;
244
+
245
+ $navbar-toggler-icon: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='#{$navbar-color}' stroke-width='2.25' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"), "#", "%23") !default;
246
+ $navbar-toggler-icon-hover: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='#{$navbar-hover-color}' stroke-width='2.25' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"), "#", "%23") !default;
247
+
248
+ // Sidebar
249
+
250
+ $sidebar-width: 200px !default;
251
+ $sidebar-padding: 0 !default;
252
+ $sidebar-minimized-width: 50px !default;
253
+ $sidebar-minimized-height: $sidebar-minimized-width !default;
254
+ $sidebar-compact-width: 150px !default;
255
+ $sidebar-compact-height: $sidebar-compact-width !default;
256
+ $sidebar-color: #fff !default;
257
+ $sidebar-bg: $gray-800 !default;
258
+ $sidebar-borders: none !default;
259
+ $mobile-sidebar-width: 220px !default;
260
+
261
+ // Sidebar Header
262
+
263
+ $sidebar-header-height: auto !default;
264
+ $sidebar-header-bg: rgba(0,0,0,.2) !default;
265
+ $sidebar-header-padding-y: .75rem !default;
266
+ $sidebar-header-padding-x: 1rem !default;
267
+
268
+ // Sidebar Form
269
+
270
+ $sidebar-form-border: 0 !default;
271
+ $sidebar-form-bg: darken($sidebar-bg,10%) !default;
272
+ $sidebar-form-color: #fff !default;
273
+ $sidebar-form-placeholder-color: rgba(255,255,255,.7) !default;
274
+
275
+ // Sidebar Navigation
276
+
277
+ $sidebar-nav-color: #fff !default;
278
+ $sidebar-nav-title-padding-y: .75rem !default;
279
+ $sidebar-nav-title-padding-x: 1rem !default;
280
+ $sidebar-nav-title-color: $gray-200 !default;
281
+ $sidebar-nav-link-padding-y: .75rem !default;
282
+ $sidebar-nav-link-padding-x: 1rem !default;
283
+ $sidebar-nav-link-color: #fff !default;
284
+ $sidebar-nav-link-bg: transparent !default;
285
+ $sidebar-nav-link-icon-color: $gray-600 !default;
286
+ $sidebar-nav-link-borders: 0 !default;
287
+
288
+ $sidebar-nav-link-hover-color: #fff !default;
289
+ $sidebar-nav-link-hover-bg: theme-color("primary") !default;
290
+ $sidebar-nav-link-hover-icon-color: #fff !default;
291
+ $sidebar-nav-link-hover-borders: 0 !default;
292
+
293
+ $sidebar-nav-link-active-color: #fff !default;
294
+ $sidebar-nav-link-active-bg: lighten($sidebar-bg, 5%) !default;
295
+ $sidebar-nav-link-active-icon-color: theme-color("primary") !default;
296
+ $sidebar-nav-link-active-borders: 0 !default;
297
+
298
+ $sidebar-nav-link-disabled-color: darken(#fff, 30%) !default;
299
+ $sidebar-nav-link-disabled-bg: $sidebar-bg !default;
300
+ $sidebar-nav-link-disabled-icon-color: $sidebar-nav-link-icon-color !default;
301
+ $sidebar-nav-link-disabled-borders: 0 !default;
302
+
303
+ $sidebar-nav-dropdown-color: #fff !default;
304
+ $sidebar-nav-dropdown-bg: rgba(0,0,0,.2) !default;
305
+ $sidebar-nav-dropdown-borders: 0 !default;
306
+ $sidebar-nav-dropdown-indicator-color:$gray-600 !default;
307
+ $sidebar-nav-dropdown-indicator: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 14'%3E%3Cpath fill='#{$sidebar-nav-dropdown-indicator-color}' d='M9.148 2.352l-4.148 4.148 4.148 4.148q0.148 0.148 0.148 0.352t-0.148 0.352l-1.297 1.297q-0.148 0.148-0.352 0.148t-0.352-0.148l-5.797-5.797q-0.148-0.148-0.148-0.352t0.148-0.352l5.797-5.797q0.148-0.148 0.352-0.148t0.352 0.148l1.297 1.297q0.148 0.148 0.148 0.352t-0.148 0.352z'/%3E%3C/svg%3E"), "#", "%23") !default;
308
+ $sidebar-nav-dropdown-indicator-hover-color:$sidebar-nav-link-hover-color;
309
+ $sidebar-nav-dropdown-indicator-hover:str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 14'%3E%3Cpath fill='#{$sidebar-nav-dropdown-indicator-hover-color}' d='M9.148 2.352l-4.148 4.148 4.148 4.148q0.148 0.148 0.148 0.352t-0.148 0.352l-1.297 1.297q-0.148 0.148-0.352 0.148t-0.352-0.148l-5.797-5.797q-0.148-0.148-0.148-0.352t0.148-0.352l5.797-5.797q0.148-0.148 0.352-0.148t0.352 0.148l1.297 1.297q0.148 0.148 0.148 0.352t-0.148 0.352z'/%3E%3C/svg%3E"), "#", "%23") !default;
310
+
311
+ // Sidebar Footer
312
+
313
+ $sidebar-footer-height: auto !default;
314
+ $sidebar-footer-bg: rgba(0,0,0,.2) !default;
315
+ $sidebar-footer-padding-y: .75rem !default;
316
+ $sidebar-footer-padding-x: 1rem !default;
317
+ $sidebar-footer-borders: 0 !default;
318
+
319
+ // Sidebar Minimizer
320
+
321
+ $sidebar-minimizer-height: 50px !default;
322
+ $sidebar-minimizer-bg: rgba(0,0,0,.2) !default;
323
+ $sidebar-minimizer-borders: 0 !default;
324
+ $sidebar-minimizer-indicator-color: $gray-600 !default;
325
+ $sidebar-minimizer-indicator: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 14'%3E%3Cpath fill='#{$sidebar-minimizer-indicator-color}' d='M9.148 2.352l-4.148 4.148 4.148 4.148q0.148 0.148 0.148 0.352t-0.148 0.352l-1.297 1.297q-0.148 0.148-0.352 0.148t-0.352-0.148l-5.797-5.797q-0.148-0.148-0.148-0.352t0.148-0.352l5.797-5.797q0.148-0.148 0.352-0.148t0.352 0.148l1.297 1.297q0.148 0.148 0.148 0.352t-0.148 0.352z'/%3E%3C/svg%3E"), "#", "%23") !default;
326
+ $sidebar-minimizer-hover-bg: rgba(0,0,0,.3) !default;
327
+ $sidebar-minimizer-hover-indicator-color:$sidebar-nav-link-hover-color !default;
328
+ $sidebar-minimizer-hover-indicator: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 14'%3E%3Cpath fill='#{$sidebar-minimizer-hover-indicator-color}' d='M9.148 2.352l-4.148 4.148 4.148 4.148q0.148 0.148 0.148 0.352t-0.148 0.352l-1.297 1.297q-0.148 0.148-0.352 0.148t-0.352-0.148l-5.797-5.797q-0.148-0.148-0.148-0.352t0.148-0.352l5.797-5.797q0.148-0.148 0.352-0.148t0.352 0.148l1.297 1.297q0.148 0.148 0.148 0.352t-0.148 0.352z'/%3E%3C/svg%3E"), "#", "%23") !default;
329
+
330
+ // Breadcrumb
331
+ $breadcrumb-borders: (
332
+ bottom: (
333
+ size: 1px,
334
+ style: solid,
335
+ color: $border-color
336
+ )
337
+ ) !default;
338
+
339
+ // Aside
340
+
341
+ $aside-menu-width: 250px !default;
342
+ $aside-menu-color: $gray-800 !default;
343
+ $aside-menu-bg: #fff !default;
344
+ $aside-menu-borders: (
345
+ left: (
346
+ size: 1px,
347
+ style: solid,
348
+ color: $border-color
349
+ )
350
+ ) !default;
351
+
352
+ $aside-menu-nav-padding-y: .75rem !default;
353
+ $aside-menu-nav-padding-x: 1rem !default;
354
+
355
+ // Footer
356
+
357
+ $footer-height: 50px !default;
358
+ $footer-bg: $gray-100 !default;
359
+ $footer-color: $body-color !default;
360
+ $footer-borders: (
361
+ top: (
362
+ size: 1px,
363
+ style: solid,
364
+ color: $border-color
365
+ )
366
+ ) !default;
367
+
368
+ // Avatars
369
+
370
+ $avatar-width: 36px !default;
371
+ $avatar-status-width: 10px !default;
372
+
373
+ $avatar-lg-width: 72px !default;
374
+ $avatar-lg-status-width: 12px !default;
375
+
376
+ $avatar-sm-width: 24px !default;
377
+ $avatar-sm-status-width: 8px !default;
378
+
379
+ $avatar-xs-width: 20px !default;
380
+ $avatar-xs-status-width: 8px !default;
381
+
382
+ // Cards
383
+
384
+ $card-icon-bg: transparent !default;
385
+ $card-icon-color: $body-color !default;
386
+
387
+ // Switches
388
+
389
+ $switch-width: 40px !default;
390
+ $switch-height: 26px !default;
391
+ $switch-font-size: 10px !default;
392
+
393
+ $switch-lg-width: 48px !default;
394
+ $switch-lg-height: 30px !default;
395
+ $switch-lg-font-size: 12px !default;
396
+
397
+ $switch-sm-width: 32px !default;
398
+ $switch-sm-height: 22px !default;
399
+ $switch-sm-font-size: 8px !default;
400
+
401
+ $switch-label-width: 48px !default;
402
+ $switch-label-lg-width: 56px !default;
403
+ $switch-label-sm-width: 40px !default;
404
+
405
+ $switch-handle-margin: 2px !default;
406
+
407
+ // Cursor
408
+ $cursor-disabled: default !default;
409
+
410
+ // Paths
411
+ $simple-line-font-path: '~simple-line-icons/fonts/';
412
+ $fa-font-path: '~font-awesome/fonts';
413
+ $flag-icon-css-path: '~flag-icon-css/flags';
414
+ $coreui-icons-font-path: '~@coreui/icons/fonts';
@@ -0,0 +1,15 @@
1
+ import '../src/application.scss'
2
+
3
+ import Turbolinks from 'turbolinks'
4
+ Turbolinks.start()
5
+
6
+ import Rails from 'rails-ujs'
7
+ Rails.start()
8
+
9
+ import 'popper.js'
10
+ import 'chart.js'
11
+ import 'core-js'
12
+ import 'pace-progress'
13
+ import 'perfect-scrollbar'
14
+ import 'bootstrap'
15
+ import '@coreui/coreui'
@@ -0,0 +1,7 @@
1
+ @import
2
+ 'variables',
3
+ '~flag-icon-css/sass/flag-icon',
4
+ '~simple-line-icons/scss/simple-line-icons',
5
+ '~font-awesome/scss/font-awesome',
6
+ '~bootstrap/scss/bootstrap',
7
+ 'coreui';
metadata ADDED
@@ -0,0 +1,113 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: anchor_ui-webpacker
3
+ version: !ruby/object:Gem::Version
4
+ version: 5.2.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Anchor Admin
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-03-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: webpacker
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 3.5.5
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 3.5.5
27
+ - !ruby/object:Gem::Dependency
28
+ name: puma
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 3.12.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 3.12.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: capybara
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 3.14.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 3.14.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: selenium-webdriver
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 3.141.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 3.141.0
69
+ description: UI Kit based on open source projects to allow rapid prototypes of internal
70
+ apps.
71
+ email:
72
+ - admin@anchorhealth.com
73
+ executables: []
74
+ extensions: []
75
+ extra_rdoc_files: []
76
+ files:
77
+ - README.md
78
+ - Rakefile
79
+ - lib/anchor_ui/webpacker.rb
80
+ - lib/anchor_ui/webpacker/core_ui.rb
81
+ - lib/anchor_ui/webpacker/generator.rb
82
+ - lib/anchor_ui/webpacker/railtie.rb
83
+ - lib/anchor_ui/webpacker/version.rb
84
+ - lib/generators/anchor_ui/webpacker/install_generator.rb
85
+ - lib/generators/anchor_ui/webpacker/signature_pad_generator.rb
86
+ - lib/generators/anchor_ui/webpacker/templates/_coreui.scss
87
+ - lib/generators/anchor_ui/webpacker/templates/_variables.scss
88
+ - lib/generators/anchor_ui/webpacker/templates/application.js
89
+ - lib/generators/anchor_ui/webpacker/templates/application.scss
90
+ homepage: https://github.com/anchoradmin/anchor_ui.git
91
+ licenses:
92
+ - MIT
93
+ metadata: {}
94
+ post_install_message:
95
+ rdoc_options: []
96
+ require_paths:
97
+ - lib
98
+ required_ruby_version: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ required_rubygems_version: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ version: '0'
108
+ requirements: []
109
+ rubygems_version: 3.0.1
110
+ signing_key:
111
+ specification_version: 4
112
+ summary: UI Kit for internal apps
113
+ test_files: []