Skip to content
This repository was archived by the owner on Jul 12, 2023. It is now read-only.

Commit ab083d3

Browse files
committed
Move JS and CSS external
This isn't all JS and CSS, just the big bits
1 parent 5d24f4a commit ab083d3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+402
-518
lines changed

cmd/adminapi/main.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,7 @@ func realMain(ctx context.Context) error {
148148
sub.Use(requireAPIKey)
149149
sub.Use(processFirewall)
150150

151-
issueapiController, err := issueapi.New(ctx, cfg, db, limiterStore, h)
152-
if err != nil {
153-
return fmt.Errorf("issueapi.New: %w", err)
154-
}
151+
issueapiController := issueapi.New(ctx, cfg, db, limiterStore, h)
155152
sub.Handle("/issue", issueapiController.HandleIssue()).Methods("POST")
156153

157154
codeStatusController := codestatus.NewAPI(ctx, cfg, db, h)

cmd/server/assets/admin/caches/index.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ <h5 class="mb-1">{{$cache.Name}}</h5>
3434
</ul>
3535
</div>
3636
</main>
37-
38-
{{template "scripts" .}}
3937
</body>
4038
</html>
4139
{{end}}

cmd/server/assets/admin/email/show.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<html lang="en">
77
<head>
88
{{template "head" .}}
9-
{{template "floatingform" .}}
109
</head>
1110

1211
<body class="tab-content">
@@ -82,8 +81,6 @@ <h1>System email config</h1>
8281
</div>
8382
</div>
8483
</main>
85-
86-
{{template "scripts" .}}
8784
</body>
8885
</html>
8986
{{end}}

cmd/server/assets/admin/info.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
</div>
2626
</div>
2727
</main>
28-
29-
{{template "scripts" .}}
3028
</body>
3129
</html>
3230
{{end}}

cmd/server/assets/admin/realms/edit.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<html lang="en">
99
<head>
1010
{{template "head" .}}
11-
{{template "floatingform" .}}
1211
</head>
1312

1413
<body class="tab-content">
@@ -121,8 +120,6 @@ <h1>Edit realm</h1>
121120
</div>
122121
{{end}}
123122
</main>
124-
125-
{{template "scripts" .}}
126123
</body>
127124
</html>
128125
{{end}}

cmd/server/assets/admin/realms/index.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@
5959
</div>
6060
</div>
6161
</main>
62-
63-
{{template "scripts" .}}
6462
</body>
6563
</html>
6664
{{end}}

cmd/server/assets/admin/realms/new.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<html lang="en">
88
<head>
99
{{template "head" .}}
10-
{{template "floatingform" .}}
1110
</head>
1211

1312
<body class="tab-content">
@@ -105,8 +104,6 @@ <h1>New realm</h1>
105104
</div>
106105
</div>
107106
</main>
108-
109-
{{template "scripts" .}}
110107
</body>
111108
</html>
112109
{{end}}

cmd/server/assets/admin/sms/show.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<html lang="en">
77
<head>
88
{{template "head" .}}
9-
{{template "floatingform" .}}
109
</head>
1110

1211
<body class="tab-content">
@@ -74,8 +73,6 @@ <h1>System SMS config</h1>
7473
</div>
7574
</div>
7675
</main>
77-
78-
{{template "scripts" .}}
7976
</body>
8077
</html>
8178
{{end}}

cmd/server/assets/admin/users/index.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@
6060
</div>
6161
</div>
6262
</main>
63-
64-
{{template "scripts" .}}
6563
</body>
6664
</html>
6765
{{end}}

cmd/server/assets/admin/users/new.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
<head>
99
{{template "head" .}}
10-
{{template "floatingform" .}}
1110
</head>
1211

1312
<body class="tab-content">
@@ -56,8 +55,6 @@ <h1>New system admin</h1>
5655
</div>
5756
</div>
5857
</main>
59-
60-
{{template "scripts" .}}
6158
</body>
6259

6360
</html>

0 commit comments

Comments
 (0)