various fixes and liquid glass

This commit is contained in:
2026-10-26 17:57:34 +05:30
parent 889d959a70
commit 71e7cd6d1f
22 changed files with 23626 additions and 124 deletions
+1
View File
@@ -150,6 +150,7 @@ func saveLastRunHandler(w http.ResponseWriter, r *http.Request) {
func getDocsDataHandler(w http.ResponseWriter, r *http.Request) {
paths := []string{
"data/bulk-api-tester/docs_apis.json",
"web/bulk-api-tester/static/data/docs_apis.json",
"web/docs/data.json",
"scratch/faithful_docs_data.json",
+47 -8
View File
@@ -4,6 +4,7 @@ import (
"log/slog"
"net/http"
"os"
"path/filepath"
"github.com/go-chi/chi/v5"
"github.com/go-chi/chi/v5/middleware"
@@ -12,10 +13,9 @@ import (
)
func registerRoutes(r chi.Router) {
// Serve static files from web/bulk-api-tester/static
workDir, _ := os.Getwd()
fs := http.FileServer(http.Dir(workDir + "/web/bulk-api-tester"))
webDir := filepath.Join(workDir, "web", "bulk-api-tester")
// API Endpoints
r.Post("/api/proxy-request", proxyRequestHandler)
r.Get("/api/collections", getCollectionsHandler)
@@ -29,10 +29,49 @@ func registerRoutes(r chi.Router) {
r.Post("/api/last-run", saveLastRunHandler)
r.Get("/api/docs-data", getDocsDataHandler)
// Serve static assets and index.html
r.Handle("/static/*", fs)
// Direct routes for 3-file system
r.Get("/", func(w http.ResponseWriter, req *http.Request) {
w.Header().Set("Content-Type", "text/html; charset=utf-8")
http.ServeFile(w, req, filepath.Join(webDir, "index.html"))
})
r.Get("/index.html", func(w http.ResponseWriter, req *http.Request) {
w.Header().Set("Content-Type", "text/html; charset=utf-8")
http.ServeFile(w, req, filepath.Join(webDir, "index.html"))
})
r.Get("/styles.css", func(w http.ResponseWriter, req *http.Request) {
w.Header().Set("Content-Type", "text/css; charset=utf-8")
http.ServeFile(w, req, filepath.Join(webDir, "styles.css"))
})
r.Get("/style.css", func(w http.ResponseWriter, req *http.Request) {
w.Header().Set("Content-Type", "text/css; charset=utf-8")
http.ServeFile(w, req, filepath.Join(webDir, "styles.css"))
})
r.Get("/app.js", func(w http.ResponseWriter, req *http.Request) {
w.Header().Set("Content-Type", "application/javascript; charset=utf-8")
http.ServeFile(w, req, filepath.Join(webDir, "app.js"))
})
// Static assets (displacement maps, specular maps, icons)
r.Get("/assets/*", func(w http.ResponseWriter, req *http.Request) {
w.Header().Set("Access-Control-Allow-Origin", "*")
w.Header().Set("Cache-Control", "public, max-age=86400")
fs := http.StripPrefix("/assets/", http.FileServer(http.Dir(filepath.Join(webDir, "assets"))))
fs.ServeHTTP(w, req)
})
// Legacy static asset compatibility aliases
r.Get("/static/css/style.css", func(w http.ResponseWriter, req *http.Request) {
w.Header().Set("Content-Type", "text/css; charset=utf-8")
http.ServeFile(w, req, filepath.Join(webDir, "styles.css"))
})
r.Get("/static/js/app.js", func(w http.ResponseWriter, req *http.Request) {
w.Header().Set("Content-Type", "application/javascript; charset=utf-8")
http.ServeFile(w, req, filepath.Join(webDir, "app.js"))
})
// Catch-all SPA handler
r.Get("/*", func(w http.ResponseWriter, req *http.Request) {
http.ServeFile(w, req, workDir+"/web/bulk-api-tester/index.html")
http.ServeFile(w, req, filepath.Join(webDir, "index.html"))
})
}
@@ -50,9 +89,9 @@ func main() {
if scriptName != "" {
r.Use(common.PrefixMiddleware(scriptName))
}
registerRoutes(r)
slog.Info("starting bulk-api-tester", "port", port, "prefix", scriptName, "pid", os.Getpid())
if err := http.ListenAndServe("127.0.0.1:"+port, r); err != nil {
slog.Error("server failed", "error", err)
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

+131 -115
View File
@@ -1,131 +1,151 @@
<!DOCTYPE html>
<html lang="en">
<head>
<script>
window.onerror = function(msg, url, lineNo, columnNo, error) {
alert("Error: " + msg + "\nLine: " + lineNo + "\nCol: " + columnNo);
return false;
};
window.onunhandledrejection = function(event) { alert("Promise Error: " + event.reason); };
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Phoenix — Enterprise API Suite</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="theme-color" content="#000000">
<meta name="color-scheme" content="dark">
<meta name="description" content="Phoenix — an advanced bulk API testing suite with batch execution, file-driven runs and workspace collections.">
<title>Phoenix · Liquid API Suite</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;1,14..32,400&family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link rel="stylesheet" href="/static/css/style.css?v=21">
<style>
/* Loading Screen */
@keyframes loaderSpin { to { transform: rotate(360deg); } }
@keyframes loaderPulse { 0%,100%{opacity:.45} 50%{opacity:1} }
@keyframes loaderGlow { 0%,100%{box-shadow:0 0 16px rgba(255,108,55,.2)} 50%{box-shadow:0 0 32px rgba(255,108,55,.45),0 0 60px rgba(255,108,55,.12)} }
@keyframes loaderFadeUp { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
@keyframes dotWave { 0%,80%,100%{transform:scale(0);opacity:.3} 40%{transform:scale(1);opacity:1} }
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;0,14..32,900;1,14..32,400&family=JetBrains+Mono:wght@400;500;600;700&family=Sora:wght@400;500;600;700;800;900&display=swap" rel="stylesheet">
#loading-overlay {
position: fixed; inset: 0;
background: radial-gradient(ellipse at 50% 38%, #0f0f22 0%, #07070d 68%);
display: flex; align-items: center; justify-content: center;
z-index: 10000;
transition: opacity 0.4s ease, visibility 0.4s ease;
}
.loader-wrap {
display: flex; flex-direction: column; align-items: center; gap: 28px;
animation: loaderFadeUp 0.5s ease both;
}
/* Concentric rings */
.loader-rings {
position: relative; width: 64px; height: 64px;
}
.loader-rings::before, .loader-rings::after {
content: '';
position: absolute; border-radius: 50%; border-style: solid;
}
.loader-rings::before {
inset: 0;
border-width: 2px;
border-color: transparent rgba(255,108,55,0.18) transparent rgba(255,108,55,0.9);
animation: loaderSpin 1.1s linear infinite, loaderGlow 2s ease-in-out infinite;
}
.loader-rings::after {
inset: 10px;
border-width: 1.5px;
border-color: rgba(255,108,55,0.35) transparent rgba(255,108,55,0.35) transparent;
animation: loaderSpin 1.7s linear infinite reverse;
}
.loader-icon {
position: absolute; inset: 0;
display: flex; align-items: center; justify-content: center;
font-size: 20px; color: #FF6C37;
filter: drop-shadow(0 0 8px rgba(255,108,55,0.6));
animation: loaderPulse 2s ease-in-out infinite;
}
/* Brand text */
.loader-brand {
display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.loader-brand-name {
font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
font-size: 24px; font-weight: 800;
letter-spacing: 0.18em; text-transform: uppercase;
background: linear-gradient(135deg, #fff 25%, #FF8C5A 65%, #FF6C37 100%);
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
background-clip: text;
}
.loader-brand-sub {
font-family: 'Inter', sans-serif;
font-size: 10px; font-weight: 600;
letter-spacing: 0.22em; text-transform: uppercase;
color: #444c5c;
}
/* Dot wave loader */
.loader-dots {
display: flex; gap: 6px; align-items: center;
}
.loader-dot {
width: 5px; height: 5px; border-radius: 50%;
background: rgba(255,108,55,0.55);
}
.loader-dot:nth-child(1) { animation: dotWave 1.4s ease-in-out 0.0s infinite; }
.loader-dot:nth-child(2) { animation: dotWave 1.4s ease-in-out 0.2s infinite; }
.loader-dot:nth-child(3) { animation: dotWave 1.4s ease-in-out 0.4s infinite; }
.loader-dot:nth-child(4) { animation: dotWave 1.4s ease-in-out 0.6s infinite; }
.loader-dot:nth-child(5) { animation: dotWave 1.4s ease-in-out 0.8s infinite; }
</style>
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.35' cy='.3' r='.85'%3E%3Cstop offset='0' stop-color='%23FFFFFF' stop-opacity='.95'/%3E%3Cstop offset='.45' stop-color='%23A0C8FF' stop-opacity='.7'/%3E%3Cstop offset='1' stop-color='%237257FF' stop-opacity='.55'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='64' height='64' rx='16' fill='%23000000'/%3E%3Cpath fill='url(%23g)' d='M32 6C22 17 14 25 14 39a18 18 0 0 0 36 0c0-6-2.5-11-6-16-1 5-3 8-6 10 1-10-1-20-6-27z'/%3E%3C/svg%3E">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link rel="stylesheet" href="/styles.css">
</head>
<body>
<!-- ════════════════════════════════════════════════════════════════
LIQUID GLASS · SVG FILTER DEFS (kube.io physics-based refraction)
Magnifying Glass Lens Optics + Snell's Law Displacement & Specular Bloom
════════════════════════════════════════════════════════════════ -->
<svg width="0" height="0" style="position:absolute;pointer-events:none;" aria-hidden="true">
<defs>
<!-- 1. Kube.io Magnifying Glass Filter — Dual Displacement Lens (Zoom + Edge Refraction + Specular) -->
<filter id="magnifying-glass-filter" x="-20%" y="-20%" width="140%" height="140%" color-interpolation-filters="sRGB">
<feImage href="/assets/magnifying-map.png?v=2" x="0" y="0" width="100%" height="100%" preserveAspectRatio="none" result="magnifying_displacement_map"></feImage>
<feDisplacementMap in="SourceGraphic" in2="magnifying_displacement_map" xChannelSelector="R" yChannelSelector="G" result="magnified_source" scale="24"></feDisplacementMap>
<feGaussianBlur in="magnified_source" stdDeviation="0" result="blurred_source"></feGaussianBlur>
<feImage href="/assets/displacement-map-w2qrsb.png?v=2" x="0" y="0" width="100%" height="100%" preserveAspectRatio="none" result="displacement_map"></feImage>
<feDisplacementMap in="blurred_source" in2="displacement_map" xChannelSelector="R" yChannelSelector="G" result="displaced" scale="98"></feDisplacementMap>
<feColorMatrix in="displaced" type="saturate" result="displaced_saturated" values="9"></feColorMatrix>
<feImage href="/assets/specular-map-w2qrsb.png?v=2" x="0" y="0" width="100%" height="100%" preserveAspectRatio="none" result="specular_layer"></feImage>
<feComposite in="displaced_saturated" in2="specular_layer" operator="in" result="specular_saturated"></feComposite>
<feComponentTransfer in="specular_layer" result="specular_faded">
<feFuncA type="linear" slope="0.5"></feFuncA>
</feComponentTransfer>
<feBlend in="specular_saturated" in2="displaced" mode="normal" result="withSaturation"></feBlend>
<feBlend in="specular_faded" in2="withSaturation" mode="normal"></feBlend>
</filter>
<!-- 2. Kube.io Liquid Glass Bar Filter (Convex Bezel for Bars / Headers / Buttons) -->
<filter id="liquid-glass-bar" x="-10%" y="-10%" width="120%" height="120%" color-interpolation-filters="sRGB">
<feImage href="/assets/magnifying-map.png?v=2" x="0" y="0" width="100%" height="100%" preserveAspectRatio="none" result="magnifying_displacement_map"></feImage>
<feDisplacementMap in="SourceGraphic" in2="magnifying_displacement_map" xChannelSelector="R" yChannelSelector="G" result="magnified_source" scale="14"></feDisplacementMap>
<feImage href="/assets/displacement-map-76hifn.png?v=2" x="0" y="0" width="100%" height="100%" preserveAspectRatio="none" result="displacement_map"></feImage>
<feDisplacementMap in="magnified_source" in2="displacement_map" xChannelSelector="R" yChannelSelector="G" result="displaced" scale="42"></feDisplacementMap>
<feColorMatrix in="displaced" type="saturate" result="displaced_saturated" values="7"></feColorMatrix>
<feImage href="/assets/specular-map-76hifn.png?v=2" x="0" y="0" width="100%" height="100%" preserveAspectRatio="none" result="specular_layer"></feImage>
<feComposite in="displaced_saturated" in2="specular_layer" operator="in" result="specular_saturated"></feComposite>
<feComponentTransfer in="specular_layer" result="specular_faded">
<feFuncA type="linear" slope="0.45"></feFuncA>
</feComponentTransfer>
<feBlend in="specular_saturated" in2="displaced" mode="normal" result="withSaturation"></feBlend>
<feBlend in="specular_faded" in2="withSaturation" mode="normal"></feBlend>
</filter>
<!-- 3. Kube.io Liquid Glass Precision Lens Filter (Panels, Cards, Modals) -->
<filter id="liquid-glass-panel" x="-15%" y="-15%" width="130%" height="130%" color-interpolation-filters="sRGB">
<feImage href="/assets/magnifying-map.png?v=2" x="0" y="0" width="100%" height="100%" preserveAspectRatio="none" result="magnifying_displacement_map"></feImage>
<feDisplacementMap in="SourceGraphic" in2="magnifying_displacement_map" xChannelSelector="R" yChannelSelector="G" result="magnified_source" scale="18"></feDisplacementMap>
<feGaussianBlur in="magnified_source" stdDeviation="0.2" result="blurred_source"></feGaussianBlur>
<feImage href="/assets/displacement-map-w2qrsb.png?v=2" x="0" y="0" width="100%" height="100%" preserveAspectRatio="none" result="displacement_map"></feImage>
<feDisplacementMap in="blurred_source" in2="displacement_map" xChannelSelector="R" yChannelSelector="G" result="displaced" scale="64"></feDisplacementMap>
<feColorMatrix in="displaced" type="saturate" result="displaced_saturated" values="6"></feColorMatrix>
<feImage href="/assets/specular-map-w2qrsb.png?v=2" x="0" y="0" width="100%" height="100%" preserveAspectRatio="none" result="specular_layer"></feImage>
<feComposite in="displaced_saturated" in2="specular_layer" operator="in" result="specular_saturated"></feComposite>
<feComponentTransfer in="specular_layer" result="specular_faded">
<feFuncA type="linear" slope="0.5"></feFuncA>
</feComponentTransfer>
<feBlend in="specular_saturated" in2="displaced" mode="normal" result="withSaturation"></feBlend>
<feBlend in="specular_faded" in2="withSaturation" mode="normal"></feBlend>
</filter>
<!-- Backwards-compatibility aliases -->
<filter id="kube-liquid-glass" x="-20%" y="-20%" width="140%" height="140%" color-interpolation-filters="sRGB">
<feImage href="/assets/displacement-map-w2qrsb.png?v=2" x="0" y="0" width="100%" height="100%" preserveAspectRatio="none" result="displacement_map"></feImage>
<feDisplacementMap in="SourceGraphic" in2="displacement_map" scale="48" xChannelSelector="R" yChannelSelector="G" result="displaced"></feDisplacementMap>
<feColorMatrix in="displaced" type="saturate" values="2.2" result="displaced_saturated"></feColorMatrix>
<feImage href="/assets/specular-map-w2qrsb.png?v=2" x="0" y="0" width="100%" height="100%" preserveAspectRatio="none" result="specular_layer"></feImage>
<feComposite in="displaced_saturated" in2="specular_layer" operator="in" result="specular_saturated"></feComposite>
<feComponentTransfer in="specular_layer" result="specular_faded"><feFuncA type="linear" slope="0.5"></feFuncA></feComponentTransfer>
<feBlend in="specular_saturated" in2="displaced" mode="normal" result="withSaturation"></feBlend>
<feBlend in="specular_faded" in2="withSaturation" mode="normal"></feBlend>
</filter>
<filter id="liquid-glass" x="-20%" y="-20%" width="140%" height="140%" color-interpolation-filters="sRGB">
<feImage href="/assets/displacement-map-w2qrsb.png?v=2" x="0" y="0" width="100%" height="100%" preserveAspectRatio="none" result="displacement_map"></feImage>
<feDisplacementMap in="SourceGraphic" in2="displacement_map" scale="48" xChannelSelector="R" yChannelSelector="G" result="displaced"></feDisplacementMap>
<feColorMatrix in="displaced" type="saturate" values="2.2" result="displaced_saturated"></feColorMatrix>
<feImage href="/assets/specular-map-w2qrsb.png?v=2" x="0" y="0" width="100%" height="100%" preserveAspectRatio="none" result="specular_layer"></feImage>
<feComposite in="displaced_saturated" in2="specular_layer" operator="in" result="specular_saturated"></feComposite>
<feComponentTransfer in="specular_layer" result="specular_faded"><feFuncA type="linear" slope="0.5"></feFuncA></feComponentTransfer>
<feBlend in="specular_saturated" in2="displaced" mode="normal" result="withSaturation"></feBlend>
<feBlend in="specular_faded" in2="withSaturation" mode="normal"></feBlend>
</filter>
<!-- Specular Light Reflection & Bloom Filter (kube.io) -->
<filter id="specular-rim" x="-10%" y="-10%" width="120%" height="120%">
<feGaussianBlur in="SourceAlpha" stdDeviation="0.8" result="rimBlur"/>
<feSpecularLighting in="rimBlur" surfaceScale="2.5" specularConstant="1.6" specularExponent="24" lighting-color="#ffffff" result="spec">
<fePointLight x="-120" y="-140" z="260"/>
</feSpecularLighting>
<feComposite in="spec" in2="SourceAlpha" operator="in" result="specMasked"/>
<feComposite in="SourceGraphic" in2="specMasked" operator="arithmetic" k1="0" k2="1" k3="0.85" k4="0"/>
</filter>
</defs>
</svg>
<!-- ── Interactive Kube.io Precision Liquid Glass Lens Rig ── -->
<div id="kubePrecisionLens" class="kube-lens-capsule" hidden>
<div class="kube-lens-drag-handle">
<span class="kube-lens-badge"><i class="fa-solid fa-wand-magic-sparkles" style="margin-right:5px;color:#38bdf8;"></i> Liquid Glass Lens</span>
<button id="btnCloseLens" class="kube-lens-close" title="Close Lens">&times;</button>
</div>
</div>
<!-- ════════════════════════════════════════════════════════════════
AMBIENT BACKDROP · Living chromatic liquid aurora mesh
Provides high-contrast caustics that bend optically through the glass
════════════════════════════════════════════════════════════════ -->
<div class="aurora-wall" aria-hidden="true">
<div class="aurora-mesh-lines"></div>
<div class="aurora-grain"></div>
<div class="aurora-vignette"></div>
</div>
<!-- ── Error Display ─────────────────────────────────────── -->
<div id="error-display" style="display:none; position:fixed; top:0; left:0; right:0; background:rgba(255,69,105,0.92); color:white; padding:16px 20px; z-index:99999; font-family:'Inter',sans-serif; font-size:13px; box-shadow:0 4px 24px rgba(0,0,0,0.5);"></div>
<script>
window.onerror = function(msg, url, line) {
const el = document.getElementById('error-display');
el.style.display = 'block';
el.innerHTML += `<div style="margin-bottom:6px;"><strong>⚠ Error:</strong> ${msg} <span style="opacity:.7; font-size:11px;">(${url}:${line})</span></div>`;
};
window.onunhandledrejection = function(event) { alert("Promise Error: " + event.reason); };
</script>
<div id="error-display"></div>
<!-- ── Loading Overlay ───────────────────────────────────── -->
<div id="loading-overlay">
<div class="loader-wrap">
<div class="loader-rings">
<div class="loader-icon"><i class="fa-solid fa-fire"></i></div>
<div class="loader-orb">
<div class="loader-orb-inner"></div>
<div class="loader-orb-glow"></div>
<div class="loader-orb-icon"><i class="fa-solid fa-fire"></i></div>
</div>
<div class="loader-brand">
<div class="loader-brand-name">PHOENIX</div>
<div class="loader-brand-sub">Enterprise API Suite</div>
<div class="loader-brand-sub">Liquid API Suite</div>
</div>
<div class="loader-dots">
<div class="loader-dot"></div>
<div class="loader-dot"></div>
<div class="loader-dot"></div>
<div class="loader-dot"></div>
<div class="loader-dot"></div>
<div class="loader-pulse">
<div class="loader-pulse-dot"></div>
<div class="loader-pulse-dot"></div>
<div class="loader-pulse-dot"></div>
</div>
</div>
</div>
@@ -141,11 +161,7 @@
<div id="toast-container"></div>
<!-- ── Scripts ───────────────────────────────────────────── -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js">
window.onunhandledrejection = function(event) { alert("Promise Error: " + event.reason); };
</script>
<script src="/static/js/app.js?v=30">
window.onunhandledrejection = function(event) { alert("Promise Error: " + event.reason); };
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"></script>
<script src="/app.js" defer></script>
</body>
</html>
File diff suppressed because it is too large Load Diff