matestack-ui-bootstrap 2.0.1 → 3.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +36 -60
- data/lib/matestack/ui/bootstrap/base_component.rb +0 -2
- data/lib/matestack/ui/bootstrap/base_vue_js_component.rb +1 -3
- data/lib/matestack/ui/bootstrap/components/alert.js +14 -12
- data/lib/matestack/ui/bootstrap/components/carousel.js +17 -15
- data/lib/matestack/ui/bootstrap/components/collapse.js +18 -16
- data/lib/matestack/ui/bootstrap/components/dropdown.js +7 -5
- data/lib/matestack/ui/bootstrap/components/modal.js +12 -11
- data/lib/matestack/ui/bootstrap/components/navbar.rb +3 -3
- data/lib/matestack/ui/bootstrap/components/popover.js +10 -9
- data/lib/matestack/ui/bootstrap/components/toast.js +19 -18
- data/lib/matestack/ui/bootstrap/components/toast.rb +3 -3
- data/lib/matestack/ui/bootstrap/components/tooltip.js +9 -9
- data/lib/matestack/ui/bootstrap/content/smart_collection/content.rb +16 -3
- data/lib/matestack/ui/bootstrap/form/checkbox.rb +15 -8
- data/lib/matestack/ui/bootstrap/form/input.rb +7 -7
- data/lib/matestack/ui/bootstrap/form/radio.rb +6 -6
- data/lib/matestack/ui/bootstrap/form/select.rb +2 -4
- data/lib/matestack/ui/bootstrap/form/submit.rb +2 -2
- data/lib/matestack/ui/bootstrap/form/switch.rb +1 -3
- data/lib/matestack/ui/bootstrap/form/textarea.rb +47 -0
- data/lib/matestack/ui/bootstrap/index.js +26 -10
- data/lib/matestack/ui/bootstrap/initialize.rb +3 -0
- data/lib/matestack/ui/bootstrap/layout/sidebar.js +9 -8
- data/lib/matestack/ui/bootstrap/layout/sidebar.rb +10 -12
- data/lib/matestack/ui/bootstrap/{apps → layouts}/admin_template.rb +9 -11
- data/lib/matestack/ui/bootstrap/registry.rb +4 -0
- data/lib/matestack/ui/bootstrap/version.rb +1 -1
- data/lib/matestack/ui/bootstrap.rb +5 -2
- metadata +24 -14
- data/config/webpack/development.js +0 -5
- data/config/webpack/environment.js +0 -29
- data/config/webpack/production.js +0 -33
- data/config/webpack/test.js +0 -5
- data/config/webpacker.yml +0 -96
@@ -1,33 +0,0 @@
|
|
1
|
-
process.env.NODE_ENV = process.env.NODE_ENV || 'production'
|
2
|
-
|
3
|
-
const environment = require('./environment')
|
4
|
-
|
5
|
-
// Add `.min` to the production versions of the output files.
|
6
|
-
// https://github.com/matestack/matestack-ui-core/issues/343#issuecomment-580246554
|
7
|
-
// https://github.com/matestack/matestack-ui-core/issues/343#issuecomment-581149092
|
8
|
-
//
|
9
|
-
environment.config.set("output.filename", chunkData => {
|
10
|
-
return "[name].min.js"
|
11
|
-
})
|
12
|
-
const miniCssExtractPlugin = environment.plugins.get('MiniCssExtract')
|
13
|
-
miniCssExtractPlugin.options.filename = "[name].min.css"
|
14
|
-
|
15
|
-
// In order to have babel's es5 (ie11) transpiling be applied to all of the
|
16
|
-
// js code, it needs to be included in the loader paths.
|
17
|
-
// https://github.com/rails/webpacker/blob/master/docs/webpack.md
|
18
|
-
// https://github.com/matestack/matestack-ui-core/issues/238
|
19
|
-
//
|
20
|
-
const babelLoader = environment.loaders.get('babel')
|
21
|
-
delete babelLoader.exclude
|
22
|
-
const path = require('path')
|
23
|
-
const matestackUiBootstrapRootPath = path.resolve(__dirname, '../..')
|
24
|
-
babelLoader.include.push(path.resolve(matestackUiBootstrapRootPath, 'app/concepts/matestack/ui/bootstrap'))
|
25
|
-
babelLoader.include.push(path.resolve(matestackUiBootstrapRootPath, 'node_modules'))
|
26
|
-
|
27
|
-
// We also need to tell babel where to find matestack-ui-material if we are using `npm link`.
|
28
|
-
// Otherwise, it won't follow the symlink to `node_modules/matestack-ui-core`.
|
29
|
-
//
|
30
|
-
// const matestackUiCoreRootPath = path.resolve(require.resolve('matestack-ui-core'), '../../../')
|
31
|
-
// babelLoader.include.push(matestackUiCoreRootPath)
|
32
|
-
|
33
|
-
module.exports = environment.toWebpackConfig()
|
data/config/webpack/test.js
DELETED
data/config/webpacker.yml
DELETED
@@ -1,96 +0,0 @@
|
|
1
|
-
# Note: You must restart bin/webpack-dev-server for changes to take effect
|
2
|
-
|
3
|
-
default: &default
|
4
|
-
source_path: app/javascript
|
5
|
-
source_entry_path: packs
|
6
|
-
public_root_path: vendor/assets/javascripts
|
7
|
-
public_output_path: dist
|
8
|
-
cache_path: tmp/cache/webpacker
|
9
|
-
check_yarn_integrity: false
|
10
|
-
webpack_compile_output: true
|
11
|
-
|
12
|
-
# Additional paths webpack should lookup modules
|
13
|
-
# ['app/assets', 'engine/foo/app/assets']
|
14
|
-
additional_paths: ['node_modules']
|
15
|
-
|
16
|
-
# Reload manifest.json on all requests so we reload latest compiled packs
|
17
|
-
cache_manifest: false
|
18
|
-
|
19
|
-
# Extract and emit a css file
|
20
|
-
extract_css: true
|
21
|
-
|
22
|
-
static_assets_extensions:
|
23
|
-
- .jpg
|
24
|
-
- .jpeg
|
25
|
-
- .png
|
26
|
-
- .gif
|
27
|
-
- .tiff
|
28
|
-
- .ico
|
29
|
-
- .svg
|
30
|
-
- .eot
|
31
|
-
- .otf
|
32
|
-
- .ttf
|
33
|
-
- .woff
|
34
|
-
- .woff2
|
35
|
-
|
36
|
-
extensions:
|
37
|
-
- .mjs
|
38
|
-
- .js
|
39
|
-
- .sass
|
40
|
-
- .scss
|
41
|
-
- .css
|
42
|
-
- .module.sass
|
43
|
-
- .module.scss
|
44
|
-
- .module.css
|
45
|
-
- .png
|
46
|
-
- .svg
|
47
|
-
- .gif
|
48
|
-
- .jpeg
|
49
|
-
- .jpg
|
50
|
-
|
51
|
-
development:
|
52
|
-
<<: *default
|
53
|
-
compile: true
|
54
|
-
|
55
|
-
# Verifies that correct packages and versions are installed by inspecting package.json, yarn.lock, and node_modules
|
56
|
-
check_yarn_integrity: true
|
57
|
-
|
58
|
-
# Reference: https://webpack.js.org/configuration/dev-server/
|
59
|
-
dev_server:
|
60
|
-
https: false
|
61
|
-
host: localhost
|
62
|
-
port: 3035
|
63
|
-
public: localhost:3035
|
64
|
-
hmr: false
|
65
|
-
# Inline should be set to true if using HMR
|
66
|
-
inline: true
|
67
|
-
overlay: true
|
68
|
-
compress: true
|
69
|
-
disable_host_check: true
|
70
|
-
use_local_ip: false
|
71
|
-
quiet: false
|
72
|
-
pretty: false
|
73
|
-
headers:
|
74
|
-
'Access-Control-Allow-Origin': '*'
|
75
|
-
watch_options:
|
76
|
-
ignored: '**/node_modules/**'
|
77
|
-
|
78
|
-
|
79
|
-
test:
|
80
|
-
<<: *default
|
81
|
-
compile: true
|
82
|
-
|
83
|
-
# Compile test packs to a separate directory
|
84
|
-
public_output_path: packs-test
|
85
|
-
|
86
|
-
production:
|
87
|
-
<<: *default
|
88
|
-
|
89
|
-
# Production depends on precompilation of packs prior to booting for performance.
|
90
|
-
compile: false
|
91
|
-
|
92
|
-
# Extract and emit a css file
|
93
|
-
extract_css: true
|
94
|
-
|
95
|
-
# Cache manifest.json for performance
|
96
|
-
cache_manifest: true
|