You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MIGRATION.md
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,22 +81,19 @@ All functions that previously called `loadFromServer()` now use `fetchAPI()`:
81
81
82
82
-`echoReqHtml()` — HTML wrapper used to execute parent callbacks from an iframe.
83
83
-`ea()` — JS helper that encoded arrays into a string for embedding in HTML callback arguments.
84
-
-`setVersion()` (frontend) — compatibility wrapper; version rendering is handled directly by `loadVersion()` now.
85
84
86
85
In Go code, leftover helpers used only for the iframe flow were also removed.
87
86
88
87
## Notable updated handlers (backend)
89
88
90
89
-`handleRequest` — accepts JSON (`Content-Type: application/json`) and falls back to form parsing if needed. It dispatches on the request `function` field and returns JSON.
The backend changes are focused on returning proper JSON and preserving behaviors (directory listing, searches, presigned URLs for S3, or local-file routing).
95
93
96
94
## Frontend changes (static/script.js)
97
95
98
96
- New `fetchAPI()` async wrapper that sends JSON and parses JSON responses.
99
-
-`loadVersion()` is async and updates the version DOM element directly.
100
97
- UI callbacks (`getBrowserData`, `getSearchTitle`, `getSearchDir`, etc.) now accept JSON objects and handle them without iframe callbacks.
101
98
102
99
## Backward compatibility
@@ -116,7 +113,6 @@ All functions that previously called `loadFromServer()` now use `fetchAPI()`:
116
113
Run these locally before/after deployment:
117
114
118
115
-[x] Directory browsing (browse directories and see file lists)
119
-
-[x] Version loads and displays in the UI
120
116
-[x] Search by title (results show expected matches)
121
117
-[x] Search by directory (results show expected matches)
122
118
-[x] Get all MP3(s) and per-directory MP3 listings
0 commit comments