Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit ab65a94

Browse files
committed
webui: Add glyphicon fonts so they're served locally
1 parent 043c8d9 commit ab65a94

6 files changed

+303
-0
lines changed
19.7 KB
Binary file not shown.

webui/fonts/glyphicons-halflings-regular.svg

Lines changed: 288 additions & 0 deletions
Loading
44.3 KB
Binary file not shown.
22.9 KB
Binary file not shown.
17.6 KB
Binary file not shown.

webui/main.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3212,6 +3212,21 @@ func main() {
32123212
http.Handle("/css/fontawesome-webfont.woff2", gz.GzipHandler(logReq(func(w http.ResponseWriter, r *http.Request) {
32133213
http.ServeFile(w, r, filepath.Join(com.Conf.Web.BaseDir, "webui", "fonts", "fontawesome-webfont-4.7.0.woff2"))
32143214
})))
3215+
http.Handle("/fonts/glyphicons-halflings-regular.eot", gz.GzipHandler(logReq(func(w http.ResponseWriter, r *http.Request) {
3216+
http.ServeFile(w, r, filepath.Join(com.Conf.Web.BaseDir, "webui", "fonts", "glyphicons-halflings-regular.eot"))
3217+
})))
3218+
http.Handle("/fonts/glyphicons-halflings-regular.svg", gz.GzipHandler(logReq(func(w http.ResponseWriter, r *http.Request) {
3219+
http.ServeFile(w, r, filepath.Join(com.Conf.Web.BaseDir, "webui", "fonts", "glyphicons-halflings-regular.svg"))
3220+
})))
3221+
http.Handle("/fonts/glyphicons-halflings-regular.ttf", gz.GzipHandler(logReq(func(w http.ResponseWriter, r *http.Request) {
3222+
http.ServeFile(w, r, filepath.Join(com.Conf.Web.BaseDir, "webui", "fonts", "glyphicons-halflings-regular.ttf"))
3223+
})))
3224+
http.Handle("/fonts/glyphicons-halflings-regular.woff", gz.GzipHandler(logReq(func(w http.ResponseWriter, r *http.Request) {
3225+
http.ServeFile(w, r, filepath.Join(com.Conf.Web.BaseDir, "webui", "fonts", "glyphicons-halflings-regular.woff"))
3226+
})))
3227+
http.Handle("/fonts/glyphicons-halflings-regular.woff2", gz.GzipHandler(logReq(func(w http.ResponseWriter, r *http.Request) {
3228+
http.ServeFile(w, r, filepath.Join(com.Conf.Web.BaseDir, "webui", "fonts", "glyphicons-halflings-regular.woff2"))
3229+
})))
32153230

32163231
// Javascript
32173232
http.Handle("/js/angular-1.8.2.min.js", gz.GzipHandler(logReq(func(w http.ResponseWriter, r *http.Request) {

0 commit comments

Comments
 (0)