feat(anlian-mq): align site with Django anlian browse UX
Port original CSS/JS/assets, rebuild home as four sections with feed fragments, expand schema (boards/notices/rooms/topics), and add page.chrome HTML overrides plus invoke html returns so Marqdo can render Django-class chrome without json glue. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
e292c8a7c7
commit
d3b137c919
56 files changed
+6839
-196
No files matched your search
@@ -119,7 +119,7 @@ func (st *state) handleInvoke(w http.ResponseWriter, r *http.Request, route invo
|
||||
}
|
||||
|
||||
switch route.ReturnMode {
|
||||
case "text":
|
||||
case "text", "html", "text/html":
|
||||
if value == nil {
|
||||
jsonErr(w, http.StatusInternalServerError, "null result")
|
||||
return
|
||||
@@ -128,7 +128,11 @@ func (st *state) handleInvoke(w http.ResponseWriter, r *http.Request, route invo
|
||||
if s, ok := value.(string); ok {
|
||||
text = s
|
||||
}
|
||||
w.Header().Set("Content-Type", "text/plain; charset=utf-8")
|
||||
ct := "text/plain; charset=utf-8"
|
||||
if route.ReturnMode == "html" || route.ReturnMode == "text/html" {
|
||||
ct = "text/html; charset=utf-8"
|
||||
}
|
||||
w.Header().Set("Content-Type", ct)
|
||||
w.WriteHeader(http.StatusOK)
|
||||
_, _ = io.WriteString(w, text)
|
||||
case "status":
|
||||
|
||||
Reference in new issue
Block a user