Skip to content

Commit

Permalink
Merge pull request #180 from leepeuker/replace-external-cdn-usages
Browse files Browse the repository at this point in the history
Replace external cdn usages with local deliveries
  • Loading branch information
leepeuker authored Dec 23, 2022
2 parents 7c4d294 + 0ab4658 commit c8ca042
Show file tree
Hide file tree
Showing 19 changed files with 110 additions and 57 deletions.
76 changes: 38 additions & 38 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions public/css/bootstrap-5.2.3.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/css/bootstrap-5.2.3.min.css.map

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions public/css/bootstrap-icons-1.10.2.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
@font-face {
font-display: block;
font-family: "bootstrap-icons";
src: url("../fonts/bootstrap-icons.woff2?24e3eb84d0bcaf83d77f904c78ac1f47") format("woff2"),
url("../fonts/bootstrap-icons.woff?24e3eb84d0bcaf83d77f904c78ac1f47") format("woff");
}

.bi::before,
[class^="bi-"]::before,
[class*=" bi-"]::before {
display: inline-block;
font-family: bootstrap-icons !important;
font-style: normal;
font-weight: normal !important;
font-variant: normal;
text-transform: none;
line-height: 1;
vertical-align: -.125em;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.bi-arrow-clockwise::before { content: "\f116"; }
.bi-calendar-date::before { content: "\f1e4"; }
.bi-check-circle-fill::before { content: "\f26a"; }
.bi-chevron-down::before { content: "\f282"; }
.bi-chevron-up::before { content: "\f286"; }
.bi-pencil-square::before { content: "\f4ca"; }
.bi-search::before { content: "\f52a"; }
.bi-star::before { content: "\f588"; }
.bi-star-fill::before { content: "\f586"; }
.bi-star-half::before { content: "\f587"; }
.bi-trash-fill::before { content: "\f5dd"; }
.bi-x-circle-fill::before { content: "\f622"; }
1 change: 1 addition & 0 deletions public/css/datepicker-1.2.0.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added public/fonts/bootstrap-icons.woff
Binary file not shown.
Binary file added public/fonts/bootstrap-icons.woff2
Binary file not shown.
7 changes: 7 additions & 0 deletions public/js/bootstrap-5.2.3.bundle.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/js/bootstrap-5.2.3.bundle.min.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/js/datepicker-full-1.2.0.min.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions public/js/jquery-3.3.1.js

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions templates/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
<head>
<meta charset="UTF-8">
<title>{% block title %}{% endblock %}</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous">
<link href="/css/bootstrap-5.2.3.min.css" rel="stylesheet">
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="manifest" href="/manifest.json">
Expand All @@ -15,9 +14,8 @@
<script>0</script>
{% block body %}{% endblock %}

<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-pprn3073KE6tl6bjs2QrFaJGz5/SUsLqktiwsUTF55Jfv3qYSDhgCecCxMW52nD2"
crossorigin="anonymous"></script>
<script src="/js/jquery-3.3.1.js"></script>
<script src="/js/bootstrap-5.2.3.bundle.min.js"></script>
<script src="/js/app.js"></script>

{% block scripts %}{% endblock %}
Expand Down
2 changes: 1 addition & 1 deletion templates/page/actors.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% endblock %}

{% block stylesheets %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.1/font/bootstrap-icons.css">
<link rel="stylesheet" href="/css/bootstrap-icons-1.10.2.css">
{% endblock %}

{% block scripts %}
Expand Down
2 changes: 1 addition & 1 deletion templates/page/dashboard.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

{% block stylesheets %}
<link href="/css/dashboard.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.1/font/bootstrap-icons.css">
<link rel="stylesheet" href="/css/bootstrap-icons-1.10.2.css">
{% endblock %}

{% block scripts %}
Expand Down
2 changes: 1 addition & 1 deletion templates/page/directors.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

{% block stylesheets %}
<link href="/css/app.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.1/font/bootstrap-icons.css">
<link rel="stylesheet" href="/css/bootstrap-icons-1.10.2.css">
{% endblock %}

{% block scripts %}
Expand Down
2 changes: 1 addition & 1 deletion templates/page/history.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

{% block stylesheets %}
<link href="/css/app.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.1/font/bootstrap-icons.css">
<link rel="stylesheet" href="/css/bootstrap-icons-1.10.2.css">
{% endblock %}

{% block scripts %}
Expand Down
6 changes: 3 additions & 3 deletions templates/page/log-movie.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
{% endblock %}

{% block stylesheets %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/datepicker.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<link rel="stylesheet" href="/css/bootstrap-icons-1.10.2.css">
<link rel="stylesheet" href="/css/datepicker-1.2.0.min.css">
{% endblock %}

{% block scripts %}
<script src="https://cdn.jsdelivr.net/npm/vanillajs-datepicker@1.2.0/dist/js/datepicker-full.min.js"></script>
<script src="/js/datepicker-full-1.2.0.min.js"></script>
<script src="/js/logMovie.js"></script>
{% endblock %}

Expand Down
3 changes: 1 addition & 2 deletions templates/page/movie.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@

{% block stylesheets %}
<link href="/css/movie.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.1/font/bootstrap-icons.css">
<link rel="stylesheet" href="/css/bootstrap-icons-1.10.2.css">
{% endblock %}

{% block scripts %}
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/datepicker-full.min.js"></script>
<script src="/js/movie.js"></script>
<script src="/js/userSelect.js"></script>
{% endblock %}
Expand Down
Loading

0 comments on commit c8ca042

Please sign in to comment.