Skip to content

Commit b3e8c5a

Browse files
committed
static: Use local file instead of cdn.
1 parent 6ce13c6 commit b3e8c5a

11 files changed

+91
-17
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ app.db
77
/ziho/ziho_uploads/
88

99
node_modules/
10+
migrations/
1011

1112

1213
# Unit test / coverage reports

.prettierignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ziho/static/css/**
2+
ziho/static/js/*.min.js
3+

ziho/static/css/bootstrap.min.css

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

ziho/static/css/main.css

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

ziho/static/icons/bootstrap-icons.css

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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:
11+
url("./fonts/bootstrap-icons.woff2?dd67030699838ea613ee6dbda90effa6")
12+
format("woff2"),
13+
url("./fonts/bootstrap-icons.woff?dd67030699838ea613ee6dbda90effa6")
14+
format("woff");
15+
}
16+
17+
.bi::before,
18+
[class^="bi-"]::before,
19+
[class*=" bi-"]::before {
20+
display: inline-block;
21+
font-family: bootstrap-icons !important;
22+
font-style: normal;
23+
font-weight: normal !important;
24+
font-variant: normal;
25+
text-transform: none;
26+
line-height: 1;
27+
vertical-align: -0.125em;
28+
-webkit-font-smoothing: antialiased;
29+
-moz-osx-font-smoothing: grayscale;
30+
}
31+
32+
.bi-bell::before {
33+
content: "\f18a";
34+
}
35+
.bi-clipboard::before {
36+
content: "\f290";
37+
}
38+
.bi-compass::before {
39+
content: "\f2d1";
40+
}
41+
.bi-grid::before {
42+
content: "\f3fc";
43+
}
44+
.bi-image::before {
45+
content: "\f42a";
46+
}
47+
.bi-layers::before {
48+
content: "\f45b";
49+
}
50+
.bi-list::before {
51+
content: "\f479";
52+
}
53+
.bi-pencil::before {
54+
content: "\f4cb";
55+
}
56+
.bi-person-circle::before {
57+
content: "\f4d7";
58+
}
59+
.bi-person::before {
60+
content: "\f4e1";
61+
}
62+
.bi-plus::before {
63+
content: "\f4fe";
64+
}
65+
.bi-trash::before {
66+
content: "\f5de";
67+
}
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)