Revised the built-in CDN library URLs for long lines in the Mia core application.

This commit is contained in:
依瑪貓 2020-09-02 15:35:44 +08:00
parent bc5f940e0a
commit 910abb7d74

View File

@ -442,27 +442,43 @@ class PaginationException(Exception):
CDN_LIBRARIES = { CDN_LIBRARIES = {
"jquery": {"css": [], "js": ["https://code.jquery.com/jquery-3.5.1.min.js"]}, "jquery": {"css": [],
"js": ["https://code.jquery.com/jquery-3.5.1.min.js"]},
"bootstrap4": { "bootstrap4": {
"css": ["https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"], "css": [("https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/"
"js": ["https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js", "bootstrap.min.css")],
"https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"]}, "js": [("https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/"
"popper.min.js"),
("https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/"
"bootstrap.min.js")]},
"font-awesome-5": { "font-awesome-5": {
"css": ["https://use.fontawesome.com/releases/v5.14.0/css/all.css"], "css": ["https://use.fontawesome.com/releases/v5.14.0/css/all.css"],
"js": []}, "js": []},
"bootstrap4-datatables": { "bootstrap4-datatables": {
"css": ["https://cdn.datatables.net/1.10.21/css/jquery.dataTables.min.css", "css": [("https://cdn.datatables.net/1.10.21/css/"
"https://cdn.datatables.net/1.10.21/css/dataTables.bootstrap4.min.css"], "jquery.dataTables.min.css"),
"js": ["https://cdn.datatables.net/1.10.21/js/jquery.dataTables.min.js", ("https://cdn.datatables.net/1.10.21/css/"
"https://cdn.datatables.net/1.10.21/js/dataTables.bootstrap4.min.js"]}, "dataTables.bootstrap4.min.css")],
"jquery-ui": {"css": ["https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css"], "js": [("https://cdn.datatables.net/1.10.21/js/"
"js": ["https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"]}, "jquery.dataTables.min.js"),
("https://cdn.datatables.net/1.10.21/js/"
"dataTables.bootstrap4.min.js")]},
"jquery-ui": {"css": [("https://cdnjs.cloudflare.com/ajax/libs/jqueryui/"
"1.12.1/jquery-ui.min.css")],
"js": [("https://cdnjs.cloudflare.com/ajax/libs/jqueryui/"
"1.12.1/jquery-ui.min.js")]},
"bootstrap4-tempusdominus": { "bootstrap4-tempusdominus": {
"css": ["https://cdnjs.cloudflare.com/ajax/libs/tempusdominus-bootstrap-4/5.1.2/css/tempusdominus-bootstrap-4.min.css"], "css": [("https://cdnjs.cloudflare.com/ajax/libs/"
"js": ["https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.27.0/moment-with-locales.min.js", "tempusdominus-bootstrap-4/5.1.2/css/"
"https://cdnjs.cloudflare.com/ajax/libs/tempusdominus-bootstrap-4/5.1.2/js/tempusdominus-bootstrap-4.js"]}, "tempusdominus-bootstrap-4.min.css")],
"js": [("https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.27.0/"
"moment-with-locales.min.js"),
("https://cdnjs.cloudflare.com/ajax/libs/"
"tempusdominus-bootstrap-4/5.1.2/js/"
"tempusdominus-bootstrap-4.js")]},
"decimal-js": {"css": [], "decimal-js": {"css": [],
"js": ["https://cdnjs.cloudflare.com/ajax/libs/decimal.js/10.2.0/decimal.min.js"]}, "js": [("https://cdnjs.cloudflare.com/ajax/libs/decimal.js/"
"10.2.0/decimal.min.js")]},
"period-chooser": {"css": ["mia_core/css/period-chooser.css"], "period-chooser": {"css": ["mia_core/css/period-chooser.css"],
"js": ["mia_core/js/period-chooser.js"]} "js": ["mia_core/js/period-chooser.js"]}
} }