Skip to content

Commit 36d3378

Browse files
Ayoub-Aguezar-12Ayoub-Aguezar-12
authored andcommitted
webUI: serve Tailwind v4 and update deprecated opacity utilities
1 parent 5b90eb0 commit 36d3378

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ agentic_security/agents/operator_agno.py
2323
.claude/
2424
plan.md
2525
auto_loop.sh
26+
.venv/
27+
.cache/

agentic_security/routes/static.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ async def serve_icon(icon_name: str) -> FileResponse:
115115
async def proxy_tailwindcss() -> FileResponse:
116116
"""Proxy the Tailwind CSS script."""
117117
return proxy_external_resource(
118-
"https://cdn.tailwindcss.com",
118+
"https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4",
119119
STATIC_DIR / "tailwindcss.js",
120120
"application/javascript",
121121
)

agentic_security/static/partials/concent.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div id="consent-modal" v-if="showConsentModal"
2-
class="fixed inset-0 bg-black bg-opacity-75 flex justify-center items-center z-50">
2+
class="fixed inset-0 bg-black/75 flex justify-center items-center z-50">
33
<div
44
class="bg-dark-card text-dark-text p-8 rounded-xl shadow-2xl max-w-xl w-full">
55
<h2 class="text-2xl font-bold mb-6 text-center">AI Red Team Ethical
@@ -54,12 +54,12 @@ <h2 class="text-2xl font-bold mb-6 text-center">AI Red Team Ethical
5454
<div class="flex justify-center space-x-4 mt-8">
5555
<button
5656
@click="declineConsent"
57-
class="bg-dark-accent-red text-white rounded-lg px-6 py-3 font-medium hover:bg-opacity-80 transition-colors">
57+
class="bg-dark-accent-red text-white rounded-lg px-6 py-3 font-medium hover:bg-dark-accent-red/80 transition-colors">
5858
Decline
5959
</button>
6060
<button
6161
@click="acceptConsent"
62-
class="bg-dark-accent-green text-dark-bg rounded-lg px-6 py-3 font-medium hover:bg-opacity-80 transition-colors">
62+
class="bg-dark-accent-green text-dark-bg rounded-lg px-6 py-3 font-medium hover:bg-dark-accent-green/80 transition-colors">
6363
I Agree and Understand
6464
</button>
6565
</div>

0 commit comments

Comments
 (0)