Skip to content

Commit

Permalink
♻️ Updated dead package urls to cdns
Browse files Browse the repository at this point in the history
  • Loading branch information
clevyr-anthony committed Aug 28, 2023
1 parent e29d4b7 commit 6c40888
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
var _tooltip = jQuery.fn.tooltip;
</script>

<script src="/packages/jquery-ui-dist/jquery-ui.min.js"></script>
@basset('https://cdn.jsdelivr.net/npm/jquery-ui@1.13.2/dist/jquery-ui.min.js')

<script type="text/javascript">
jQuery.fn.tooltip = _tooltip;
Expand Down
7 changes: 3 additions & 4 deletions src/resources/views/crud/pages/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ class="form-control"
@endsection

@section('before_styles')
<link rel="stylesheet" href="{{ asset('packages/bootstrap-datepicker/dist/css/bootstrap-datepicker3.css') }}">
<link rel="stylesheet" href="{{ asset('packages/pc-bootstrap4-datetimepicker/build/css/bootstrap-datetimepicker.min.css') }}">
@basset('https://cdn.jsdelivr.net/npm/[email protected]/build/css/bootstrap-datetimepicker.min.css')

<style type="text/css">
#saveActions.form-group {
Expand Down Expand Up @@ -172,8 +171,8 @@ class="form-control"
});
</script>

<script type="text/javascript" src="{{ asset('packages/moment/min/moment.min.js') }}"></script>
<script src="{{ asset('packages/pc-bootstrap4-datetimepicker/build/js/bootstrap-datetimepicker.min.js') }}"></script>
@basset('https://cdn.jsdelivr.net/npm/moment@2.29.4/moment.min.js')
@basset('https://cdn.jsdelivr.net/npm/pc-bootstrap4-datetimepicker@4.17.51/build/js/bootstrap-datetimepicker.min.js')
<script>
var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,b){for(a=String(a),b=b||2;a.length<b;)a="0"+a;return a};return function(e,f,g){var h=dateFormat;if(1!=arguments.length||"[object String]"!=Object.prototype.toString.call(e)||/\d/.test(e)||(f=e,e=void 0),e=e?new Date(e):new Date,isNaN(e))throw SyntaxError("invalid date");f=String(h.masks[f]||f||h.masks.default),"UTC:"==f.slice(0,4)&&(f=f.slice(4),g=!0);var i=g?"getUTC":"get",j=e[i+"Date"](),k=e[i+"Day"](),l=e[i+"Month"](),m=e[i+"FullYear"](),n=e[i+"Hours"](),o=e[i+"Minutes"](),p=e[i+"Seconds"](),q=e[i+"Milliseconds"](),r=g?0:e.getTimezoneOffset(),s={d:j,dd:d(j),ddd:h.i18n.dayNames[k],dddd:h.i18n.dayNames[k+7],m:l+1,mm:d(l+1),mmm:h.i18n.monthNames[l],mmmm:h.i18n.monthNames[l+12],yy:String(m).slice(2),yyyy:m,h:n%12||12,hh:d(n%12||12),H:n,HH:d(n),M:o,MM:d(o),s:p,ss:d(p),l:d(q,3),L:d(q>99?Math.round(q/10):q),t:n<12?"a":"p",tt:n<12?"am":"pm",T:n<12?"A":"P",TT:n<12?"AM":"PM",Z:g?"UTC":(String(e).match(b)||[""]).pop().replace(c,""),o:(r>0?"-":"+")+d(100*Math.floor(Math.abs(r)/60)+Math.abs(r)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(a,function(a){return a in s?s[a]:a.slice(1,a.length-1)})}}();dateFormat.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"},dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},Date.prototype.format=function(a,b){return dateFormat(this,a,b)};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function maximumServerUploadSizeInBytes() {

{{-- FIELD CSS - will be loaded in the after_styles section --}}
@push('crud_fields_styles')
<link href="{{ asset('packages/cropperjs/dist/cropper.min.css') }}" rel="stylesheet" type="text/css" />
@basset('https://cdn.jsdelivr.net/npm/cropperjs@1.6.0/dist/cropper.min.css')
<style>
.image .btn-group {
margin-top: 10px;
Expand Down Expand Up @@ -147,8 +147,8 @@ function maximumServerUploadSizeInBytes() {

{{-- FIELD JS - will be loaded in the after_scripts section --}}
@push('crud_fields_scripts')
<script src="{{ asset('packages/cropperjs/dist/cropper.min.js') }}"></script>
<script src="{{ asset('packages/jquery-cropper/dist/jquery-cropper.min.js') }}"></script>
@basset('https://cdn.jsdelivr.net/npm/cropperjs@1.6.0/dist/cropper.min.js')
@basset('https://cdn.jsdelivr.net/npm/jquery-cropper@1.0.1/dist/jquery-cropper.min.js')
<script>
function bpFieldInitCropperImageElement(element) {
// Find DOM elements under this form-group element
Expand Down

0 comments on commit 6c40888

Please sign in to comment.