mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-19 00:56:16 +00:00
chore(web): remove obsolete jsdiff dependency
The jsdiff library at pkg/service/handlers/web/js/diff.min.js (29 KB) was loaded by the management UI to render rich diffs on the parity- mismatch detail view. The previous two commits removed both the tab and the JS consumer; the asset, its <script> tag, and the served- asset test stanza were left behind. Removes: - pkg/service/handlers/web/js/diff.min.js (the asset itself) - web/index.html: <script src="/web/js/diff.min.js"></script> - handlers_media_test.go: the // 3. Test diff.min.js stanza in TestStaticWeb, and renumbers the trailing "// 4. Test Favicon" comment to "// 3." No remaining Diff./jsdiff/diffChars/diffLines references in any tracked JS or HTML. go build + TestStaticMedia + TestStaticWeb stay green. The //go:embed pattern in handlers_media.go is web/js/* (wildcard), so the embed bundle regenerates without the asset on the next build with no directive edit needed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
2747d95a8f
commit
018e9fd7cb
@@ -149,18 +149,7 @@ func TestStaticWeb(t *testing.T) {
|
||||
t.Errorf("JS: Expected javascript content type, got %s", res.Header.Get("Content-Type"))
|
||||
}
|
||||
|
||||
// 3. Test diff.min.js
|
||||
res, err = http.Get(ts.URL + "/web/js/diff.min.js")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer res.Body.Close()
|
||||
|
||||
if res.StatusCode != http.StatusOK {
|
||||
t.Errorf("Diff JS: Expected status OK, got %v", res.Status)
|
||||
}
|
||||
|
||||
// 4. Test Favicon
|
||||
// 3. Test Favicon
|
||||
res, err = http.Get(ts.URL + "/web/img/favicon-braille.svg")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
<title>AfterTouch (SoundTouch Toolkit)</title>
|
||||
<link rel="icon" href="/web/img/favicon-braille.svg" type="image/svg+xml"/>
|
||||
<link rel="stylesheet" href="/web/css/style.css"/>
|
||||
<script src="/web/js/diff.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1><img src="/web/img/favicon-braille.svg" alt="AfterTouch Logo" class="logo"/>AfterTouch</h1>
|
||||
|
||||
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user