From: Vincent Vanwaelscappel Date: Wed, 26 Jun 2019 13:51:18 +0000 (+0200) Subject: #2843 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=4224841ca3fbf8d7ffbfcbdb40931d3a143b3c7f;p=cubist_cms-back.git #2843 --- diff --git a/src/app/helpers.php b/src/app/helpers.php index 94828ac..e239dac 100644 --- a/src/app/helpers.php +++ b/src/app/helpers.php @@ -2,6 +2,22 @@ if (!function_exists('vendor_asset')) { function vendor_asset($path) { + $path = trim($path, '/'); + $dest = public_path($path); + + $e = explode('/', $path); + array_splice($e, 3, 0, ['public']); + $local = base_path(implode('/', $e)); + + if (!file_exists($local)) { + array_splice($e, 3, 0, ['src']); + $local = base_path(implode('/', $e)); + } + + if (!file_exists($dest) || filemtime($local) > filemtime($dest) || filesize($local) != filesize($dest)) { + copy($local, $dest); + } + return asset($path); } } diff --git a/src/public/bunchmultiple/bunchmultiple.css b/src/public/bunchmultiple/bunchmultiple.css new file mode 100644 index 0000000..e222651 --- /dev/null +++ b/src/public/bunchmultiple/bunchmultiple.css @@ -0,0 +1,17 @@ +.bunchmultiple .bunchmultiple__wrapper { + padding: 15px; + border: 1px solid #eee; + background: #fafafa; + margin-bottom: 15px; +} +.bunchmultiple .bunchmultiple__wrapper > .form-group { + padding: 0; +} +.bunchmultiple .bunchmultiple__wrapper > .form-group > label { + font-size: 1.2em; + margin-bottom: 24px; +} +.bunchmultiple .bunchmultiple__wrapper .sample { + display: none; +} +/*# sourceMappingURL=bunchmultiple.css.map */ \ No newline at end of file diff --git a/src/public/bunchmultiple/bunchmultiple.css.map b/src/public/bunchmultiple/bunchmultiple.css.map new file mode 100644 index 0000000..32c5f7f --- /dev/null +++ b/src/public/bunchmultiple/bunchmultiple.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["bunchmultiple.less"],"names":[],"mappings":"AAAA,cACI;EACI,aAAA;EACA,sBAAA;EACA,mBAAA;EACA,mBAAA;;AALR,cACI,wBAMI;EACI,UAAA;;AARZ,cACI,wBAMI,cAGI;EACI,gBAAA;EACA,mBAAA;;AAZhB,cACI,wBAeI;EACI,aAAA","file":"bunchmultiple.css"} \ No newline at end of file diff --git a/src/resources/views/fields/bunch_multiple.blade.php b/src/resources/views/fields/bunch_multiple.blade.php index 5fdfc7e..32eec18 100644 --- a/src/resources/views/fields/bunch_multiple.blade.php +++ b/src/resources/views/fields/bunch_multiple.blade.php @@ -46,12 +46,12 @@ $unique = 'bunchmultiple_' . rand(1, 100000); {{-- FIELD CSS - will be loaded in the after_styles section --}} @push('crud_fields_styles') - + @endpush {{-- FIELD JS - will be loaded in the after_scripts section --}} @push('crud_fields_scripts') - + @endpush @endif