Skip to content

Commit e48dbf8

Browse files
committed
static: Use local file instead of cdn.
1 parent 8f9bb99 commit e48dbf8

File tree

7 files changed

+53
-17
lines changed

7 files changed

+53
-17
lines changed

ziho/static/icons/bootstrap-icons.css

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*!
2+
* Bootstrap Icons v1.11.3 (https://icons.getbootstrap.com/)
3+
* Copyright 2019-2024 The Bootstrap Authors
4+
* Licensed under MIT (https://github.com/twbs/icons/blob/main/LICENSE)
5+
*/
6+
7+
@font-face {
8+
font-display: block;
9+
font-family: "bootstrap-icons";
10+
src: url("./fonts/bootstrap-icons.woff2?dd67030699838ea613ee6dbda90effa6") format("woff2"),
11+
url("./fonts/bootstrap-icons.woff?dd67030699838ea613ee6dbda90effa6") format("woff");
12+
}
13+
14+
.bi::before,
15+
[class^="bi-"]::before,
16+
[class*=" bi-"]::before {
17+
display: inline-block;
18+
font-family: bootstrap-icons !important;
19+
font-style: normal;
20+
font-weight: normal !important;
21+
font-variant: normal;
22+
text-transform: none;
23+
line-height: 1;
24+
vertical-align: -.125em;
25+
-webkit-font-smoothing: antialiased;
26+
-moz-osx-font-smoothing: grayscale;
27+
}
28+
29+
.bi-bell::before { content: "\f18a"; }
30+
.bi-clipboard::before { content: "\f290"; }
31+
.bi-compass::before { content: "\f2d1"; }
32+
.bi-grid::before { content: "\f3fc"; }
33+
.bi-image::before { content: "\f42a"; }
34+
.bi-layers::before { content: "\f45b"; }
35+
.bi-list::before { content: "\f479"; }
36+
.bi-pencil::before { content: "\f4cb"; }
37+
.bi-person-circle::before { content: "\f4d7"; }
38+
.bi-person::before { content: "\f4e1"; }
39+
.bi-plus::before { content: "\f4fe"; }
40+
.bi-trash::before { content: "\f5de"; }
172 KB
Binary file not shown.
127 KB
Binary file not shown.

ziho/static/js/bootstrap.bundle.min.js

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ziho/static/js/jquery-3.7.1.min.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ziho/templates/_partials/topbar.html

-5
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ <h3>
88
<div class="col-auto p-4">
99
</div>
1010
{% else %}
11-
<div class="col-auto p-2 m-auto">
12-
<button class="btn btn-light">
13-
<i class="bi bi-bell"></i>
14-
</button>
15-
</div>
1611
<div class="col-auto p-2">
1712
<div class="dropdown">
1813
<button class="btn btn-light dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">

ziho/templates/base.html

+4-12
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,8 @@
1111
<title>Welcome to Ziho</title>
1212
{% endif %}
1313
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
14-
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"
15-
rel="stylesheet"
16-
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN"
17-
crossorigin="anonymous">
18-
<link rel="stylesheet"
19-
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
14+
<link href="{{ url_for('static', filename='css/bootstrap.min.css')}}" rel="stylesheet">
15+
<link href="{{ url_for('static', filename='icons/bootstrap-icons.css')}}" rel="stylesheet">
2016
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/main.css') }}" />
2117
</head>
2218
<body>
@@ -65,12 +61,8 @@ <h5>
6561
</main>
6662
</div>
6763
</div>
68-
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
69-
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
70-
crossorigin="anonymous"></script>
71-
<script src="https://code.jquery.com/jquery-3.7.1.min.js"
72-
integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo="
73-
crossorigin="anonymous"></script>
64+
<script type="text/javascript" src="{{ url_for('static', filename='js/bootstrap.bundle.min.js') }}"></script>
65+
<script type="text/javascript" src="{{ url_for('static', filename='js/jquery-3.7.1.min.js') }}" ></script>
7466
<script type="text/javascript" src="{{ url_for('static', filename='js/fsrs.js') }}"></script>
7567
<script type="text/javascript" src="{{ url_for('static', filename='js/queue.js') }}"></script>
7668
<script type="text/javascript" src="{{ url_for('static', filename='js/displayer.js') }}"></script>

0 commit comments

Comments
 (0)