Spaces:
Paused
Paused
fix embed path
Browse files- internal/handler/index.go +1 -1
- internal/handler/index.html +164 -0
internal/handler/index.go
CHANGED
|
@@ -5,7 +5,7 @@ _ "embed"
|
|
| 5 |
"net/http"
|
| 6 |
)
|
| 7 |
|
| 8 |
-
//go:embed
|
| 9 |
var indexHTML []byte
|
| 10 |
|
| 11 |
func HandleIndex(w http.ResponseWriter, r *http.Request) {
|
|
|
|
| 5 |
"net/http"
|
| 6 |
)
|
| 7 |
|
| 8 |
+
//go:embed index.html
|
| 9 |
var indexHTML []byte
|
| 10 |
|
| 11 |
func HandleIndex(w http.ResponseWriter, r *http.Request) {
|
internal/handler/index.html
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="es">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>ROW-PROXY // CCCP</title>
|
| 7 |
+
<style>
|
| 8 |
+
*{box-sizing:border-box;margin:0;padding:0}
|
| 9 |
+
body{background:#0d0d0d;font-family:"Courier New",monospace;color:#c8a84b}
|
| 10 |
+
.header{background:#1a1200;border-bottom:2px solid #c8a84b;padding:1.5rem 2rem;display:flex;align-items:center;gap:1rem}
|
| 11 |
+
.star{color:#cc0000;font-size:28px}
|
| 12 |
+
.header-title{font-size:22px;font-weight:bold;letter-spacing:4px;color:#c8a84b}
|
| 13 |
+
.header-sub{font-size:11px;letter-spacing:3px;color:#7a6228;margin-top:2px}
|
| 14 |
+
.red-bar{height:4px;background:#cc0000}
|
| 15 |
+
.content{padding:2rem;max-width:900px;margin:0 auto}
|
| 16 |
+
.section-label{font-size:10px;letter-spacing:4px;color:#7a6228;border-bottom:1px solid #3a2a00;padding-bottom:6px;margin-bottom:1rem;margin-top:1.5rem}
|
| 17 |
+
.status-row{display:flex;gap:1rem;margin-bottom:1rem}
|
| 18 |
+
.status-card{flex:1;background:#1a1200;border:1px solid #3a2a00;border-left:3px solid #c8a84b;padding:1rem}
|
| 19 |
+
.status-card .val{font-size:18px;color:#c8a84b;font-weight:bold;margin-bottom:2px}
|
| 20 |
+
.status-card .lbl{font-size:10px;color:#7a6228;letter-spacing:2px}
|
| 21 |
+
.online{color:#44aa99}
|
| 22 |
+
.url-box{background:#111;border:1px solid #3a2a00;border-left:3px solid #cc0000;padding:1rem 1.25rem;margin-bottom:1rem}
|
| 23 |
+
.url-label{font-size:10px;color:#7a6228;letter-spacing:3px;margin-bottom:6px}
|
| 24 |
+
.url-val{font-size:13px;color:#e8c86b;word-break:break-all}
|
| 25 |
+
.key-row{display:flex;align-items:center;gap:8px;margin-top:6px}
|
| 26 |
+
.key-val{font-size:12px;color:#c8a84b;font-family:monospace}
|
| 27 |
+
.reveal-btn{background:#2a1e00;border:1px solid #c8a84b;color:#c8a84b;font-size:10px;padding:3px 10px;cursor:pointer;letter-spacing:2px;font-family:"Courier New"}
|
| 28 |
+
.reveal-btn:hover{background:#3a2a00}
|
| 29 |
+
.models-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:1rem}
|
| 30 |
+
.model-item{background:#1a1200;border:1px solid #2a1e00;padding:8px 12px;display:flex;align-items:center;gap:8px}
|
| 31 |
+
.model-dot{width:6px;height:6px;background:#44aa99;border-radius:50%;flex-shrink:0}
|
| 32 |
+
.model-dot.glm{background:#c8a84b}
|
| 33 |
+
.model-name{font-size:11px;color:#c8a84b}
|
| 34 |
+
.tank-section{background:#1a1200;border:1px solid #3a2a00;padding:1.5rem;margin-bottom:1rem}
|
| 35 |
+
.tank-title{font-size:13px;color:#cc0000;letter-spacing:3px;margin-bottom:1rem;font-weight:bold}
|
| 36 |
+
.tank-row{display:flex;gap:1rem;margin-bottom:8px;align-items:center}
|
| 37 |
+
.tank-name{font-size:12px;color:#e8c86b;width:80px;flex-shrink:0}
|
| 38 |
+
.tank-bar-wrap{flex:1;background:#0d0d0d;height:14px}
|
| 39 |
+
.tank-bar{height:100%;background:#cc0000}
|
| 40 |
+
.tank-era{font-size:10px;color:#7a6228;width:80px;text-align:right;flex-shrink:0}
|
| 41 |
+
.hoi4-section{background:#1a1200;border:1px solid #3a2a00;padding:1.5rem;margin-bottom:1rem}
|
| 42 |
+
.hoi4-title{font-size:13px;color:#cc0000;letter-spacing:3px;margin-bottom:1rem;font-weight:bold}
|
| 43 |
+
.op-row{display:flex;gap:8px;margin-bottom:8px;align-items:flex-start}
|
| 44 |
+
.op-name{font-size:11px;color:#e8c86b;width:160px;flex-shrink:0}
|
| 45 |
+
.op-desc{font-size:11px;color:#7a6228;line-height:1.5}
|
| 46 |
+
.commander-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:1rem}
|
| 47 |
+
.commander-card{background:#0d0d0d;border:1px solid #2a1e00;padding:8px 12px}
|
| 48 |
+
.cmd-name{font-size:12px;color:#e8c86b;font-weight:bold}
|
| 49 |
+
.cmd-trait{font-size:10px;color:#7a6228;margin-top:2px;letter-spacing:1px}
|
| 50 |
+
.focus-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:1rem}
|
| 51 |
+
.focus-pill{background:#2a1000;border:1px solid #cc0000;color:#cc0000;font-size:9px;padding:3px 8px;letter-spacing:1px}
|
| 52 |
+
.quote-box{background:#0d0d0d;border-left:3px solid #cc0000;padding:0.75rem 1rem;margin-top:1rem;font-size:11px;color:#7a6228;font-style:italic}
|
| 53 |
+
.footer{border-top:1px solid #3a2a00;padding:1rem 2rem;text-align:center;font-size:10px;color:#4a3a10;letter-spacing:3px;margin-top:1rem}
|
| 54 |
+
.classified{color:#cc0000}
|
| 55 |
+
</style>
|
| 56 |
+
</head>
|
| 57 |
+
<body>
|
| 58 |
+
<div class="header">
|
| 59 |
+
<div class="star">★</div>
|
| 60 |
+
<div>
|
| 61 |
+
<div class="header-title">ROW-PROXY // CCCP</div>
|
| 62 |
+
<div class="header-sub">SOVIET ARMORED DIVISION β AI GATEWAY β NO STEP BACK β 1941-1985</div>
|
| 63 |
+
</div>
|
| 64 |
+
<div style="margin-left:auto;text-align:right">
|
| 65 |
+
<div style="font-size:10px;color:#44aa99;letter-spacing:2px">● SISTEMA ACTIVO</div>
|
| 66 |
+
<div style="font-size:10px;color:#7a6228;margin-top:2px">HF DEPLOY // GO v1.23</div>
|
| 67 |
+
</div>
|
| 68 |
+
</div>
|
| 69 |
+
<div class="red-bar"></div>
|
| 70 |
+
<div class="content">
|
| 71 |
+
|
| 72 |
+
<div class="section-label">// ESTADO DEL SISTEMA</div>
|
| 73 |
+
<div class="status-row">
|
| 74 |
+
<div class="status-card"><div class="val online">● ONLINE</div><div class="lbl">PROXY STATUS</div></div>
|
| 75 |
+
<div class="status-card"><div class="val">24</div><div class="lbl">MODELOS ACTIVOS</div></div>
|
| 76 |
+
<div class="status-card"><div class="val">GLM-4.7</div><div class="lbl">MOTOR PRINCIPAL</div></div>
|
| 77 |
+
</div>
|
| 78 |
+
|
| 79 |
+
<div class="section-label">// PUNTO DE ACCESO β CLASIFICADO</div>
|
| 80 |
+
<div class="url-box">
|
| 81 |
+
<div class="url-label">BASE URL β PRODUCCION</div>
|
| 82 |
+
<div class="url-val">https://moge-row-row-proxy.hf.space/v1</div>
|
| 83 |
+
<div class="key-row">
|
| 84 |
+
<span class="key-val">API KEY: </span>
|
| 85 |
+
<span class="key-val" id="keyval">████████</span>
|
| 86 |
+
<button class="reveal-btn" onclick="toggleKey()">REVELAR</button>
|
| 87 |
+
</div>
|
| 88 |
+
</div>
|
| 89 |
+
|
| 90 |
+
<div class="section-label">// MODELOS DISPONIBLES</div>
|
| 91 |
+
<div class="models-grid">
|
| 92 |
+
<div class="model-item"><div class="model-dot"></div><div class="model-name">claude-sonnet-4-6</div></div>
|
| 93 |
+
<div class="model-item"><div class="model-dot"></div><div class="model-name">claude-haiku-4-5</div></div>
|
| 94 |
+
<div class="model-item"><div class="model-dot"></div><div class="model-name">claude-opus-4-6</div></div>
|
| 95 |
+
<div class="model-item"><div class="model-dot"></div><div class="model-name">claude-3-5-sonnet</div></div>
|
| 96 |
+
<div class="model-item"><div class="model-dot glm"></div><div class="model-name">glm-4.7-thinking</div></div>
|
| 97 |
+
<div class="model-item"><div class="model-dot glm"></div><div class="model-name">glm-5</div></div>
|
| 98 |
+
<div class="model-item"><div class="model-dot glm"></div><div class="model-name">glm-5-thinking</div></div>
|
| 99 |
+
<div class="model-item"><div class="model-dot glm"></div><div class="model-name">glm-4.5-air</div></div>
|
| 100 |
+
</div>
|
| 101 |
+
|
| 102 |
+
<div class="section-label">// RAMA SOVIETICA β GUERRA FRIA // WAR THUNDER</div>
|
| 103 |
+
<div class="tank-section">
|
| 104 |
+
<div class="tank-title">★ MODELOS MAS USADOS</div>
|
| 105 |
+
<div class="tank-row"><div class="tank-name">claude-sonnet</div><div class="tank-bar-wrap"><div class="tank-bar" style="width:95%"></div></div><div class="tank-era">~12K tokens</div></div>
|
| 106 |
+
<div class="tank-row"><div class="tank-name">glm-4.7</div><div class="tank-bar-wrap"><div class="tank-bar" style="width:80%"></div></div><div class="tank-era">~9K tokens</div></div>
|
| 107 |
+
<div class="tank-row"><div class="tank-name">glm-5</div><div class="tank-bar-wrap"><div class="tank-bar" style="width:65%"></div></div><div class="tank-era">~7K tokens</div></div>
|
| 108 |
+
<div class="tank-row"><div class="tank-name">claude-haiku</div><div class="tank-bar-wrap"><div class="tank-bar" style="width:50%"></div></div><div class="tank-era">~5K tokens</div></div>
|
| 109 |
+
<div class="tank-row"><div class="tank-name">glm-4.7-think</div><div class="tank-bar-wrap"><div class="tank-bar" style="width:35%"></div></div><div class="tank-era">~3K tokens</div></div>
|
| 110 |
+
<div style="margin-top:0.75rem;font-size:10px;color:#7a6228;letter-spacing:1px">⚠ DATOS EN TIEMPO REAL PROXIMAMENTE</div>
|
| 111 |
+
</div>
|
| 112 |
+
|
| 113 |
+
<div class="section-label">// HOI4 β NO STEP BACK β FRENTE ORIENTAL</div>
|
| 114 |
+
<div class="hoi4-section">
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
<div class="tank-title" style="margin-top:1rem">★ TOP USUARIOS</div>
|
| 118 |
+
<div class="commander-grid">
|
| 119 |
+
<div class="commander-card"><div class="cmd-name">Usuario #1</div><div class="cmd-trait">SOLICITUDES: -- // TOKENS: --</div></div>
|
| 120 |
+
<div class="commander-card"><div class="cmd-name">Usuario #2</div><div class="cmd-trait">SOLICITUDES: -- // TOKENS: --</div></div>
|
| 121 |
+
<div class="commander-card"><div class="cmd-name">Usuario #3</div><div class="cmd-trait">SOLICITUDES: -- // TOKENS: --</div></div>
|
| 122 |
+
<div class="commander-card"><div class="cmd-name">Usuario #4</div><div class="cmd-trait">SOLICITUDES: -- // TOKENS: --</div></div>
|
| 123 |
+
</div>
|
| 124 |
+
|
| 125 |
+
<div class="tank-title" style="margin-top:1rem">★ ARBOL DE ENFOQUE SOVIETICO</div>
|
| 126 |
+
<div class="focus-row">
|
| 127 |
+
<div class="focus-pill">INDUSTRIA DE GUERRA</div>
|
| 128 |
+
<div class="focus-pill">COLLECTIVIZACION</div>
|
| 129 |
+
<div class="focus-pill">PURGA MILITAR</div>
|
| 130 |
+
<div class="focus-pill">LEND-LEASE</div>
|
| 131 |
+
<div class="focus-pill">PACTO RIBBENTROP</div>
|
| 132 |
+
<div class="focus-pill">RUTA COMUNISTA</div>
|
| 133 |
+
<div class="focus-pill">DEFENSA EN PROFUNDIDAD</div>
|
| 134 |
+
<div class="focus-pill">FRENTE POPULAR</div>
|
| 135 |
+
</div>
|
| 136 |
+
|
| 137 |
+
<div class="quote-box">
|
| 138 |
+
“La victoria es para aquellos que no retroceden. Ni un paso atras.”<br>
|
| 139 |
+
<span style="color:#c8a84b;font-style:normal">β Orden No. 227, Stalin β 1942 β NO STEP BACK</span>
|
| 140 |
+
</div>
|
| 141 |
+
</div>
|
| 142 |
+
|
| 143 |
+
</div>
|
| 144 |
+
<div class="footer">
|
| 145 |
+
<span class="classified">★ CLASIFICADO ★</span> — ROW-PROXY v1.0 — CCCP AI GATEWAY — HOI4 NO STEP BACK — <span class="classified">★ CLASIFICADO ★</span>
|
| 146 |
+
</div>
|
| 147 |
+
<script>
|
| 148 |
+
var revealed = false;
|
| 149 |
+
var key = "free";
|
| 150 |
+
function toggleKey() {
|
| 151 |
+
revealed = !revealed;
|
| 152 |
+
var el = document.getElementById("keyval");
|
| 153 |
+
var btn = document.querySelector(".reveal-btn");
|
| 154 |
+
if (revealed) {
|
| 155 |
+
el.textContent = key;
|
| 156 |
+
btn.textContent = "OCULTAR";
|
| 157 |
+
} else {
|
| 158 |
+
el.textContent = "ββββββββ";
|
| 159 |
+
btn.textContent = "REVELAR";
|
| 160 |
+
}
|
| 161 |
+
}
|
| 162 |
+
</script>
|
| 163 |
+
</body>
|
| 164 |
+
</html>
|