Skip to content

Commit

Permalink
remove jsdelivr links and replace them with hosted scripts instead
Browse files Browse the repository at this point in the history
  • Loading branch information
zerratar committed Nov 8, 2023
1 parent e3ba165 commit 8d8b451
Show file tree
Hide file tree
Showing 8 changed files with 10,504 additions and 19 deletions.
22 changes: 9 additions & 13 deletions src/RavenNest.Blazor/Pages/_Host.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@
<link rel="icon" type="image/png" href="favicon.png" sizes="32x32">
<link rel="icon" type="image/png" href="favicon.png" sizes="96x96">
<link href="_content/Blazored.Typeahead/blazored-typeahead.css" rel="stylesheet" />

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-zCbKRCUGaJDkqS1kPbPd7TveP5iyJE0EjAuZQTgFLD2ylzuqKfdKlfG/eSrtxUkn" crossorigin="anonymous">


<link href="_content/Blazorise/blazorise.css" rel="stylesheet" />
<link href="_content/Blazorise.Bootstrap/blazorise.bootstrap.css" rel="stylesheet" />

Expand All @@ -43,7 +39,7 @@

<link href="css/dark.css" rel="stylesheet" />
<!-- This is the glue between Blazor and Chart.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js"></script>
<script src="js/moment.min.js"></script>

<!-- Load the Twitch embed script -->
<script src="https://embed.twitch.tv/embed/v1.js"></script>
Expand Down Expand Up @@ -277,19 +273,19 @@
</script>
<script src="_framework/blazor.server.js"></script>
<script src="_content/Blazored.Typeahead/blazored-typeahead.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
@*<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>*@
<script src="js/jquery.min.js"></script>


<!-- inside of body section and after the div/app tag -->
<!-- These are the standard js dependencies this provider tipically dependes upon, but Blazorise deems these as optional as Blazorise Components should work correctly without these -->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-VHvPCCyXqtD5DqJeNxl2dtTyhF78xXNXdkwX1CZeRusQfRKp+tA7hAShOK/B/fQ2" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.7.1/chart.min.js"></script>
<script src="js/jquery.slim.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/chart.min.js"></script>

<script>
if (window.matchMedia("(prefers-color-scheme:dark)").matches){
document.querySelector("body").classList.toggle("dark-mode",true);
if (window.matchMedia("(prefers-color-scheme:dark)").matches) {
document.querySelector("body").classList.toggle("dark-mode", true);
} else {
document.querySelector("body").classList.toggle("light-mode", true);
}
Expand Down
10,467 changes: 10,461 additions & 6 deletions src/RavenNest.Blazor/wwwroot/css/bootstrap/bootstrap.min.css

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions src/RavenNest.Blazor/wwwroot/js/bootstrap.min.js

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions src/RavenNest.Blazor/wwwroot/js/chart.min.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/RavenNest.Blazor/wwwroot/js/jquery.min.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/RavenNest.Blazor/wwwroot/js/jquery.slim.min.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/RavenNest.Blazor/wwwroot/js/moment.min.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/RavenNest.Blazor/wwwroot/js/popper.min.js

Large diffs are not rendered by default.

0 comments on commit 8d8b451

Please sign in to comment.