Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
46df11f087 | |||
dc8983aa91 | |||
|
9db703d88f | ||
|
05d3caddf4 | ||
|
e3ebef90d9 | ||
|
d494400e7e | ||
|
61f38aefe7 | ||
|
8e9ca4c531 | ||
|
2e512cc3ed |
@@ -1,37 +1,37 @@
|
|||||||
{
|
{
|
||||||
"name": "leenooks/laravel",
|
"name": "laravel/leenooks",
|
||||||
"description": "Leenooks standard templates and tools.",
|
"description": "Leenooks standard templates and tools.",
|
||||||
"keywords": ["laravel", "leenooks"],
|
"keywords": ["laravel","leenooks"],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Deon George",
|
"name": "Deon George",
|
||||||
"email": "deon@leenooks.net"
|
"email": "deon@dege.au"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"creativeorange/gravatar": "^1.0",
|
"creativeorange/gravatar": "^1.0",
|
||||||
"orchestra/asset": "^6.0"
|
"orchestra/asset": "^6.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"Leenooks\\": "src"
|
"Leenooks\\": "src"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"src/helpers.php"
|
"src/helpers.php"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
"laravel": {
|
"laravel": {
|
||||||
"providers": [
|
"providers": [
|
||||||
"Orchestra\\Asset\\AssetServiceProvider",
|
"Orchestra\\Asset\\AssetServiceProvider",
|
||||||
"Collective\\Html\\HtmlServiceProvider",
|
"Collective\\Html\\HtmlServiceProvider",
|
||||||
"Leenooks\\Providers\\LeenooksServiceProvider",
|
"Leenooks\\Providers\\LeenooksServiceProvider",
|
||||||
"Leenooks\\Providers\\CustomBladeServiceProvider"
|
"Leenooks\\Providers\\CustomBladeServiceProvider"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"minimum-stability": "dev"
|
"minimum-stability": "dev"
|
||||||
}
|
}
|
||||||
|
@@ -83,7 +83,7 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$("input[name=q]").typeahead({
|
$('input[name=q]').typeahead({
|
||||||
autoSelect: false,
|
autoSelect: false,
|
||||||
scrollHeight: 10,
|
scrollHeight: 10,
|
||||||
theme: 'bootstrap4',
|
theme: 'bootstrap4',
|
||||||
@@ -149,6 +149,11 @@
|
|||||||
$('span[name=searching]').addClass("d-none");
|
$('span[name=searching]').addClass("d-none");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
statusCode: {
|
||||||
|
401: function() {
|
||||||
|
window.parent.location.href = '{{ route('login') }}';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}, 500);
|
}, 500);
|
||||||
|
@@ -44,7 +44,7 @@
|
|||||||
$.AdminLTESidebarTweak.Open = state;
|
$.AdminLTESidebarTweak.Open = state;
|
||||||
|
|
||||||
if (addclass !== 'undefined')
|
if (addclass !== 'undefined')
|
||||||
$("body")
|
$('body')
|
||||||
.addClass(state ? 'sidebar-open' : 'sidebar-collapse');
|
.addClass(state ? 'sidebar-open' : 'sidebar-collapse');
|
||||||
|
|
||||||
$(this).delay($.AdminLTESidebarTweak.ResizeDelay).queue(function() {
|
$(this).delay($.AdminLTESidebarTweak.ResizeDelay).queue(function() {
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
$(function () {
|
$(function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
$("body").on("collapsed.lte.pushmenu", function(){
|
$('body').on('collapsed.lte.pushmenu', function(){
|
||||||
if($.AdminLTESidebarTweak.options.EnableRemember) {
|
if($.AdminLTESidebarTweak.options.EnableRemember) {
|
||||||
document.cookie = "toggleState=closed;path=/";
|
document.cookie = "toggleState=closed;path=/";
|
||||||
|
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$("body").on("shown.lte.pushmenu", function(){
|
$('body').on('shown.lte.pushmenu', function(){
|
||||||
if($.AdminLTESidebarTweak.options.EnableRemember){
|
if($.AdminLTESidebarTweak.options.EnableRemember){
|
||||||
document.cookie = "toggleState=opened;path=/";
|
document.cookie = "toggleState=opened;path=/";
|
||||||
|
|
||||||
|
12
resources/themes/adminlte/views/widget/errors.blade.php
Normal file
12
resources/themes/adminlte/views/widget/errors.blade.php
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<!-- Errors -->
|
||||||
|
@if ($errors->any())
|
||||||
|
<div class="alert alert-danger alert-dismissible">
|
||||||
|
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||||
|
<h5><i class="icon fas fa-ban"></i> Whoops!</h5>
|
||||||
|
<ul>
|
||||||
|
@foreach ($errors->all() as $error)
|
||||||
|
<li>{!! $error !!}</li>
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
@endif
|
17
resources/themes/adminlte/views/widget/form_date.blade.php
Normal file
17
resources/themes/adminlte/views/widget/form_date.blade.php
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<div class="form-group">
|
||||||
|
<label for="{{ $id }}">{{ $label }}</label>
|
||||||
|
<div class="input-group has-validation">
|
||||||
|
@empty($icon)
|
||||||
|
@else
|
||||||
|
<div class="input-group-prepend">
|
||||||
|
<span class="input-group-text"><i class="fa-fw {{ $icon }}"></i></span>
|
||||||
|
</div>
|
||||||
|
@endempty()
|
||||||
|
<input type="date" class="form-control @error($id) is-invalid @enderror" id="{{ $id }}" name="{{ $name ?? $id}}" value="{{ old($old,$value) }}">
|
||||||
|
<span class="invalid-feedback" role="alert">
|
||||||
|
@error($id)
|
||||||
|
{{ $message }}
|
||||||
|
@enderror
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
39
resources/themes/adminlte/views/widget/form_file.blade.php
Normal file
39
resources/themes/adminlte/views/widget/form_file.blade.php
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
<div class="form-group">
|
||||||
|
<label for="{{ $id }}">{{ $label }}</label>
|
||||||
|
<div class="input-group has-validation">
|
||||||
|
@empty($icon)
|
||||||
|
@else
|
||||||
|
<div class="input-group-prepend">
|
||||||
|
<span class="input-group-text"><i class="fa-fw {{ $icon }}"></i></span>
|
||||||
|
</div>
|
||||||
|
@endempty()
|
||||||
|
<div class="custom-file">
|
||||||
|
<input type="file" class="custom-file-input @error($id) is-invalid @enderror" id="{{ $id }}" name="{{ $name ?? $id}}">
|
||||||
|
<label class="custom-file-label input-group-text" for="{{ $id }}">Choose file</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{--
|
||||||
|
<div class="input-group-append">
|
||||||
|
<button type="submit" class="input-group-text btn btn-success" id="">Upload</button>
|
||||||
|
</div>
|
||||||
|
--}}
|
||||||
|
<span class="invalid-feedback @error($id) d-block @enderror" role="alert">
|
||||||
|
@error($id)
|
||||||
|
{{ $message }}
|
||||||
|
@enderror
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@section('page-scripts')
|
||||||
|
<script>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$('#{{ $id }}').on('change',function(){
|
||||||
|
//get the file name
|
||||||
|
var fileName = $(this).val();
|
||||||
|
//replace the "Choose a file" label
|
||||||
|
$(this).next('.custom-file-label').html(fileName);
|
||||||
|
})
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
@append
|
57
resources/themes/adminlte/views/widget/form_select.blade.php
Normal file
57
resources/themes/adminlte/views/widget/form_select.blade.php
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
<div class="form-group">
|
||||||
|
<label for="{{ $id }}">{{ $label }}</label>
|
||||||
|
<div class="input-group has-validation">
|
||||||
|
@empty($icon)
|
||||||
|
@else
|
||||||
|
<div class="input-group-prepend">
|
||||||
|
<span class="input-group-text"><i class="fa-fw {{ $icon }}"></i></span>
|
||||||
|
</div>
|
||||||
|
@endempty()
|
||||||
|
|
||||||
|
<select class="form-control @error($id) is-invalid @enderror" id="{{ $id }}" name="{{ $name ?? $id}}">
|
||||||
|
@if(! isset($addvalues) || ! $addvalues)
|
||||||
|
<option id="new"></option>
|
||||||
|
@endif
|
||||||
|
@empty($groupby)
|
||||||
|
@foreach($options as $option)
|
||||||
|
@empty(Arr::get($option,'value')) @continue @endempty
|
||||||
|
<option value="{{ Arr::get($option,'id') }}" @if(Arr::get($option,'id') == old($old,$value))selected @endif>{{ Arr::get($option,'value') }}</option>
|
||||||
|
@endforeach
|
||||||
|
@else
|
||||||
|
@foreach($options->groupBy($groupby) as $group)
|
||||||
|
<optgroup label="{{ $groupby == 'active' ? (Arr::get($group->first(),$groupby) ? 'Active' : 'Not Active') : Arr::get($group->first(),$groupby) }}">
|
||||||
|
@foreach($group as $option)
|
||||||
|
@empty(Arr::get($option,'value')) @continue @endempty
|
||||||
|
<option value="{{ Arr::get($option,'id') }}" @if(Arr::get($option,'id') == old($old,$value))selected @endif>{{ Arr::get($option,'value') }}</option>
|
||||||
|
@endforeach
|
||||||
|
</optgroup>
|
||||||
|
@endforeach
|
||||||
|
@endempty
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<span class="invalid-feedback" role="alert">
|
||||||
|
@error($id)
|
||||||
|
{{ $message }}
|
||||||
|
@enderror
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@section('page-scripts')
|
||||||
|
@css(select2)
|
||||||
|
@js(select2,autofocus)
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(document).ready(function() {
|
||||||
|
$('#{{ $id }}').select2({
|
||||||
|
dropdownAutoWidth: true,
|
||||||
|
width: 'style',
|
||||||
|
@isset($addvalues)
|
||||||
|
tags: true,
|
||||||
|
placeholder: '',
|
||||||
|
allowClear: true,
|
||||||
|
@endisset
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
@append
|
17
resources/themes/adminlte/views/widget/form_text.blade.php
Normal file
17
resources/themes/adminlte/views/widget/form_text.blade.php
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<div class="form-group">
|
||||||
|
<label for="{{ $id }}">{{ $label }}</label>
|
||||||
|
<div class="input-group has-validation">
|
||||||
|
@empty($icon)
|
||||||
|
@else
|
||||||
|
<div class="input-group-prepend">
|
||||||
|
<span class="input-group-text"><i class="fa-fw {{ $icon }}"></i></span>
|
||||||
|
</div>
|
||||||
|
@endempty()
|
||||||
|
<input type="text" class="form-control {{ $classes ?? ''}}@error($id) is-invalid @enderror" id="{{ $id }}" name="{{ $name ?: $id }}" value="{{ old($old ?? $name,$value) }}">
|
||||||
|
<span class="invalid-feedback" role="alert">
|
||||||
|
@error($id)
|
||||||
|
{{ $message }}
|
||||||
|
@enderror
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
11
resources/themes/adminlte/views/widget/form_toggle.blade.php
Normal file
11
resources/themes/adminlte/views/widget/form_toggle.blade.php
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<div class="form-group">
|
||||||
|
<div class="custom-control custom-switch custom-switch-off-danger custom-switch-on-success">
|
||||||
|
<input type="checkbox" class="custom-control-input" id="{{ $id }}" name="{{ $name ?: $id }}" {{ old($old ?? $name,$value) ? 'checked' : '' }}>
|
||||||
|
<label class="custom-control-label" for="{{ $id }}">{{ $label }}</label>
|
||||||
|
</div>
|
||||||
|
<span class="invalid-feedback @error($id) d-block @enderror" role="alert">
|
||||||
|
@error($id)
|
||||||
|
{{ $message }}
|
||||||
|
@enderror
|
||||||
|
</span>
|
||||||
|
</div>
|
@@ -1,23 +1,3 @@
|
|||||||
<!-- Success -->
|
@include('adminlte::widget.success')
|
||||||
@if(session()->has('success'))
|
|
||||||
<div class="alert alert-success alert-dismissible">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
||||||
<h5><i class="icon fas fa-check"></i> Success!</h5>
|
|
||||||
<ul>
|
|
||||||
<li>{{ session()->get('success') }}</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<!-- Errors -->
|
@include('adminlte::widget.errors')
|
||||||
@if ($errors->any())
|
|
||||||
<div class="alert alert-danger alert-dismissible">
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
||||||
<h5><i class="icon fas fa-ban"></i> Whoops!</h5>
|
|
||||||
<ul>
|
|
||||||
@foreach ($errors->all() as $error)
|
|
||||||
<li>{!! $error !!}</li>
|
|
||||||
@endforeach
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
10
resources/themes/adminlte/views/widget/success.blade.php
Normal file
10
resources/themes/adminlte/views/widget/success.blade.php
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<!-- Success -->
|
||||||
|
@if(session()->has('success'))
|
||||||
|
<div class="alert alert-success alert-dismissible">
|
||||||
|
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||||
|
<h5><i class="icon fas fa-check"></i> Success!</h5>
|
||||||
|
<ul>
|
||||||
|
<li>{{ session()->get('success') }}</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
@endif
|
@@ -0,0 +1 @@
|
|||||||
|
@if(session()->has('success'))<span class="ml-3 pt-0 pb-0 pr-1 pl-1 btn btn-outline-success float-right"><small>{{ session()->get('success') }}</small></span>@endif
|
@@ -146,6 +146,14 @@ class CustomBladeServiceProvider extends ServiceProvider
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'debounce':
|
||||||
|
switch ($content) {
|
||||||
|
case 'js':
|
||||||
|
$urls->put($type,'js/debounce.js');
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
case 'highcharts':
|
case 'highcharts':
|
||||||
switch ($content) {
|
switch ($content) {
|
||||||
case 'js':
|
case 'js':
|
||||||
@@ -172,13 +180,23 @@ class CustomBladeServiceProvider extends ServiceProvider
|
|||||||
$urls->put($key,'https://code.highcharts.com/modules/drilldown.js');
|
$urls->put($key,'https://code.highcharts.com/modules/drilldown.js');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'export':
|
||||||
|
$urls->put($key,'https://code.highcharts.com/modules/exporting.js');
|
||||||
|
$urls->put($key.'data','https://code.highcharts.com/modules/export-data.js');
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'funnel':
|
||||||
|
$urls->put($key,'https://code.highcharts.com/modules/funnel.js');
|
||||||
|
break;
|
||||||
|
|
||||||
case 'heatmap':
|
case 'heatmap':
|
||||||
$urls->put($key,'https://code.highcharts.com/modules/heatmap.js');
|
$urls->put($key,'https://code.highcharts.com/modules/heatmap.js');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'export':
|
case 'solidguage':
|
||||||
$urls->put($key,'https://code.highcharts.com/modules/exporting.js');
|
$urls->put($key,'https://code.highcharts.com/highcharts-more.js');
|
||||||
$urls->put($key.'data','https://code.highcharts.com/modules/export-data.js');
|
$urls->put($key.'accessiblity','https://code.highcharts.com/modules/accessibility.js');
|
||||||
|
$urls->put($key.'solid-guage','https://code.highcharts.com/modules/solid-gauge.js');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'theme-dark':
|
case 'theme-dark':
|
||||||
@@ -275,6 +293,16 @@ class CustomBladeServiceProvider extends ServiceProvider
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'validation':
|
||||||
|
switch ($content) {
|
||||||
|
case 'js':
|
||||||
|
// Base
|
||||||
|
$urls->put('validate','https://cdn.jsdelivr.net/npm/jquery-validation@1.19.3/dist/jquery.validate.min.js');
|
||||||
|
$urls->put('validate.additional','https://cdn.jsdelivr.net/npm/jquery-validation@1.19.3/dist/additional-methods.min.js');
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw new \Exception(sprintf('Unknown Expression: [%s]',$expression));
|
throw new \Exception(sprintf('Unknown Expression: [%s]',$expression));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user