Spaces:
Paused
Paused
Upload folder using huggingface_hub
Browse files- frontend/index.html +6 -7
frontend/index.html
CHANGED
|
@@ -68,7 +68,8 @@
|
|
| 68 |
<a href="/docs">/docs</a> for Swagger.
|
| 69 |
</p>
|
| 70 |
<div class="toolbar">
|
| 71 |
-
<button type="button" id="refresh">Refresh</button>
|
|
|
|
| 72 |
<span class="muted" id="hint"></span>
|
| 73 |
</div>
|
| 74 |
|
|
@@ -159,11 +160,11 @@
|
|
| 159 |
min-width: 120px;
|
| 160 |
}
|
| 161 |
</section>
|
| 162 |
-
<section class="install-card admin-only" id="admin-section" style="border-style: dashed; background:
|
| 163 |
-
<h2 style="margin-top: 0; font-size: 1.1rem; color:
|
| 164 |
<p style="font-size: 0.85rem; margin-bottom: 1rem; opacity: 0.7;">Upload a new <code>extension.zip</code>. The system will detect the version and notify users.</p>
|
| 165 |
|
| 166 |
-
<div id="upload-zone" class="upload-zone">
|
| 167 |
<input type="file" id="zip-input" accept=".zip" style="display: none;" />
|
| 168 |
<div id="upload-prompt">
|
| 169 |
<strong>Click or Drag ZIP here</strong> to update extension
|
|
@@ -174,9 +175,7 @@
|
|
| 174 |
</div>
|
| 175 |
</section>
|
| 176 |
|
| 177 |
-
<
|
| 178 |
-
<a href="#" onclick="showAdminLogin(); return false;" style="color: inherit;">Admin Login</a>
|
| 179 |
-
</div>
|
| 180 |
|
| 181 |
<div id="admin-login-modal" style="display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); z-index: 100; align-items: center; justify-content: center;">
|
| 182 |
<div style="background: #111827; border: 1px solid #2a3544; padding: 2rem; border-radius: 12px; width: 300px; text-align: center;">
|
|
|
|
| 68 |
<a href="/docs">/docs</a> for Swagger.
|
| 69 |
</p>
|
| 70 |
<div class="toolbar">
|
| 71 |
+
<button type="button" id="refresh">Refresh Gallery</button>
|
| 72 |
+
<button type="button" onclick="showAdminLogin()" style="background: #f59e0b; color: #000; margin-left: 1rem;">Admin: Upload Build</button>
|
| 73 |
<span class="muted" id="hint"></span>
|
| 74 |
</div>
|
| 75 |
|
|
|
|
| 160 |
min-width: 120px;
|
| 161 |
}
|
| 162 |
</section>
|
| 163 |
+
<section class="install-card admin-only" id="admin-section" style="border-style: dashed; border-color: #f59e0b; background: rgba(245, 158, 11, 0.05); display: none; margin-top: 2rem;">
|
| 164 |
+
<h2 style="margin-top: 0; font-size: 1.1rem; color: #f59e0b;">Admin: Push New Build</h2>
|
| 165 |
<p style="font-size: 0.85rem; margin-bottom: 1rem; opacity: 0.7;">Upload a new <code>extension.zip</code>. The system will detect the version and notify users.</p>
|
| 166 |
|
| 167 |
+
<div id="upload-zone" class="upload-zone" style="border-color: #f59e0b;">
|
| 168 |
<input type="file" id="zip-input" accept=".zip" style="display: none;" />
|
| 169 |
<div id="upload-prompt">
|
| 170 |
<strong>Click or Drag ZIP here</strong> to update extension
|
|
|
|
| 175 |
</div>
|
| 176 |
</section>
|
| 177 |
|
| 178 |
+
<!-- Admin link removed from bottom, moved to top -->
|
|
|
|
|
|
|
| 179 |
|
| 180 |
<div id="admin-login-modal" style="display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); z-index: 100; align-items: center; justify-content: center;">
|
| 181 |
<div style="background: #111827; border: 1px solid #2a3544; padding: 2rem; border-radius: 12px; width: 300px; text-align: center;">
|