aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-03-04 21:37:22 +0900
committernsfisis <nsfisis@gmail.com>2025-03-04 21:37:22 +0900
commit5062cb9460915624e3f7b808c8f814ba9c31db75 (patch)
treec6fc829aaf17092ea6c5ad2b5b0f8b73f1088a23 /backend
parenta966efb99f9dee4850fcb1240e9d4472631a99b2 (diff)
downloadphperkaigi-2025-albatross-5062cb9460915624e3f7b808c8f814ba9c31db75.tar.gz
phperkaigi-2025-albatross-5062cb9460915624e3f7b808c8f814ba9c31db75.tar.zst
phperkaigi-2025-albatross-5062cb9460915624e3f7b808c8f814ba9c31db75.zip
rm audio feature
Diffstat (limited to 'backend')
-rw-r--r--backend/admin/handler.go22
-rw-r--r--backend/admin/templates/audio.html14
-rw-r--r--backend/admin/templates/dashboard.html3
3 files changed, 0 insertions, 39 deletions
diff --git a/backend/admin/handler.go b/backend/admin/handler.go
index c3e40e9..ca70639 100644
--- a/backend/admin/handler.go
+++ b/backend/admin/handler.go
@@ -69,7 +69,6 @@ func (h *Handler) RegisterHandlers(g *echo.Group) {
g.GET("/games", h.getGames)
g.GET("/games/:gameID", h.getGameEdit)
g.POST("/games/:gameID", h.postGameEdit)
- g.GET("/audio", h.getAudioTest)
}
func (h *Handler) getDashboard(c echo.Context) error {
@@ -290,24 +289,3 @@ func (h *Handler) postGameEdit(c echo.Context) error {
return c.Redirect(http.StatusSeeOther, basePath+"/admin/games")
}
-
-func (h *Handler) getAudioTest(c echo.Context) error {
- return c.Render(http.StatusOK, "audio", echo.Map{
- "BasePath": basePath,
- "Title": "Audio Test",
- "Audio": []echo.Map{
- {"FileName": "EX_33.wav", "Label": "終了"},
- {"FileName": "EX_34.wav", "Label": "勝敗1"},
- {"FileName": "EX_35.wav", "Label": "勝敗2"},
- {"FileName": "EX_36.wav", "Label": "グッド1"},
- {"FileName": "EX_37.wav", "Label": "グッド2"},
- {"FileName": "EX_38.wav", "Label": "グッド3"},
- {"FileName": "EX_39.wav", "Label": "グッド4"},
- {"FileName": "EX_40.wav", "Label": "スコア更新1"},
- {"FileName": "EX_41.wav", "Label": "スコア更新2"},
- {"FileName": "EX_42.wav", "Label": "スコア更新3"},
- {"FileName": "EX_43.wav", "Label": "コンパイルエラー1"},
- {"FileName": "EX_44.wav", "Label": "コンパイルエラー2"},
- },
- })
-}
diff --git a/backend/admin/templates/audio.html b/backend/admin/templates/audio.html
deleted file mode 100644
index 21ec463..0000000
--- a/backend/admin/templates/audio.html
+++ /dev/null
@@ -1,14 +0,0 @@
-{{ template "base.html" . }}
-
-{{ define "breadcrumb" }}
-<a href="{{ .BasePath }}/admin/dashboard">Dashboard</a>
-{{ end }}
-
-{{ define "content" }}
- {{ range .Audio }}
- <figure>
- <figcaption>{{ .Label }}</figcaption>
- <audio controls src="{{ $.BasePath }}/files/audio/{{ .FileName }}"></audio>
- </figure>
- {{ end }}
-{{ end }}
diff --git a/backend/admin/templates/dashboard.html b/backend/admin/templates/dashboard.html
index 0f1fbaf..15b10ff 100644
--- a/backend/admin/templates/dashboard.html
+++ b/backend/admin/templates/dashboard.html
@@ -7,9 +7,6 @@
<p>
<a href="{{ .BasePath }}/admin/games">Games</a>
</p>
-<p>
- <a href="{{ .BasePath }}/admin/audio">Audio Test</a>
-</p>
<form method="post" action="{{ .BasePath }}/logout">
<button type="submit">Logout</button>
</form>