From afa87af01c79a9baa539f2992d32154d2a4739bd Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Sat, 14 Feb 2026 14:46:37 -0800 Subject: task: delete vanilla js prototype\n\n- Removed vanilla/ directory and web/dist/vanilla directory\n- Updated Makefile, Dockerfile, and CI workflow to remove vanilla references\n- Cleaned up web/web.go to remove vanilla embed and routes\n- Verified build and tests pass\n\nCloses NK-2tcnmq --- web/web.go | 7 ------- 1 file changed, 7 deletions(-) (limited to 'web/web.go') diff --git a/web/web.go b/web/web.go index 1a713bd..29c3d2c 100644 --- a/web/web.go +++ b/web/web.go @@ -37,9 +37,6 @@ var ( //go:embed dist/v2/* frontendFiles embed.FS - - //go:embed dist/vanilla/* - vanillaFiles embed.FS ) // init is no longer strictly needed for finding boxes with embed, @@ -259,10 +256,6 @@ func NewRouter(cfg *config.Settings) http.Handler { // Wait, /api/stream -> StripPrefix -> /stream. apiServer handles /stream. Correct. mux.Handle("/api/", GzipMiddleware(http.StripPrefix("/api", AuthWrapHandler(apiServer)))) - // Vanilla JS Prototype from web/dist/vanilla - vanillaSub, _ := fs.Sub(vanillaFiles, "dist/vanilla") - mux.Handle("/vanilla/", GzipMiddleware(http.StripPrefix("/vanilla/", http.FileServer(http.FS(vanillaSub))))) - // Legacy routes for backward compatibility mux.HandleFunc("/stream/", AuthWrap(apiServer.HandleStream)) mux.HandleFunc("/item/", AuthWrap(apiServer.HandleItem)) -- cgit v1.2.3