Commit 52cb8cd7 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

wip(frontend): booking fallbaks

issue #1337
parent 0e1293be
https://cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.css morris.js/
https://use.fontawesome.com/releases/v5.10.1/fontawesome-free-5.10.1-web.zip
https://cdnjs.cloudflare.com/ajax/libs/intro.js/2.7.0/introjs.css intro.js/bin/
https://code.jquery.com/jquery-3.5.0.min.js jquery/
https://code.jquery.com/jquery-3.5.1.slim.min.js jquery/
https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js
https://jqueryui.com/resources/download/jquery-ui-1.11.4.zip
https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js
https://code.angularjs.org/1.7.8/angular-1.7.8.zip
https://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/2.5.0/ui-bootstrap.min.js
https://cdn.jsdelivr.net/npm/ui-bootstrap4@3.0.6/dist/ui-bootstrap-tpls.js
https://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js raphael.js/
https://github.com/snapappointments/bootstrap-select/archive/v1.13.15.zip
https://cdnjs.cloudflare.com/ajax/libs/morris.js/0.5.1/morris.min.js morris.js/
......@@ -17,3 +18,13 @@ https://readthedocs.org/projects/ravada/badge/?version=latest ../img/latest.svg
https://img.shields.io/badge/License-AGPL%20v3-blue.svg ../img/License-AGPL%20v3-blue.svg
https://download.cksource.com/CKEditor/CKEditor/CKEditor%204.12.1/ckeditor_4.12.1_standard_easyimage.zip
https://ajax.googleapis.com/ajax/libs/angular_material/1.1.0/angular-material.min.js angular-material/
# bookings
https://cdn.jsdelivr.net/npm/fullcalendar@5.1.0/main.css bookings/
https://cdn.jsdelivr.net/npm/clockpicker@0.0.7/dist/bootstrap-clockpicker.min.css bookings/
https://cdn.jsdelivr.net/npm/angularjs-toast@latest/angularjs-toast.css bookings/
https://cdn.jsdelivr.net/npm/angularjs-toast@latest/angularjs-toast.js bookings/
https://cdn.jsdelivr.net/npm/fullcalendar@5.1.0/main.min.js bookings/
https://cdn.jsdelivr.net/npm/fullcalendar-scheduler@5.1.0/locales-all.min.js bookings/
https://cdn.jsdelivr.net/npm/moment@2.27.0/min/moment-with-locales.min.js bookings/
https://cdn.jsdelivr.net/npm/angular-moment@1.3.0/angular-moment.min.js bookings/
https://cdn.jsdelivr.net/npm/clockpicker@0.0.7/dist/bootstrap-clockpicker.min.js bookings/
......@@ -44,10 +44,12 @@ sub download($url, $dst = $DIR_FALLBACK) {
print "$url downloaded to $dst\n";
$res->content->asset->move_to($dst);
}
elsif ($res->is_error) { print $res->message."\n" }
elsif ($res->is_error) { print $res->message."\n"; exit }
elsif ($res->code == 301) { print $res->headers->location."\n" }
else { print "Error ".$res->code." ".$res->message
." downloading $url\n"}
." downloading $url\n";
exit;
}
return $dst;
}
......
......@@ -31,9 +31,9 @@
<script src="//cdn.jsdelivr.net/npm/clockpicker@0.0.7/dist/bootstrap-clockpicker.min.js"></script>
<!-- end booking module -->
% } else {
<script src="/fallback/jquery/jquery-3.5.0.min.js"></script>
<script src="/fallback/jquery-ui-1.11.4/jquery-ui.min.js"></script>
<script src="/fallback/bootstrap-4.3.1-dist/js/bootstrap.min.js"></script>
<script src="/fallback/jquery/jquery-3.5.1.slim.min.js"></script>
<script src="/fallback/popper.min.js"></script>
<script src="/fallback/bootstrap.min.js"></script>
<script src="/fallback/angular-1.7.8/angular.min.js"></script>
<script src="/fallback/angular-1.7.8/angular-resource.min.js"></script>
......@@ -43,6 +43,7 @@
<script src="/fallback/angular-1.7.8/angular-sanitize.min.js"></script>
<script src="/fallback/angular-material/angular-material.min.js"></script>
<script src="/fallback/ui-bootstrap-tpls.js"></script>
<script src="/fallback/raphael.js/raphael-min.js"></script>
<script src="/fallback/morris.js/morris.min.js"></script>
......@@ -50,6 +51,18 @@
<script src="/fallback/bootstrap-select-1.13.15/dist/js/bootstrap-select.js"></script>
<script src="/fallback/intro.js/intro.js"></script>
<!-- booking module -->
<link rel="stylesheet" href="/fallback/bookings/main.css">
<link rel="stylesheet" href="/fallback/bookings/bootstrap-clockpicker.min.css">
<link rel="stylesheet" href="/fallback/bookings/angularjs-toast.css">
<script src="/fallback/bookings/angularjs-toast.js"></script>
<script src="/fallback/bookings/main.min.js"></script>
<script src="/fallback/bookings/locales-all.min.js"></script>
<script src="/fallback/bookings/moment-with-locales.min.js"></script>
<script src="/fallback/bookings/angular-moment.min.js"></script>
<script src="/fallback/bookings/bootstrap-clockpicker.min.js"></script>
<!-- end booking module -->
% }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment