Skip to content

Commit 81404af

Browse files
committed
fix: migrate Tailwind v4 - update all deprecated opacity utilities
- Replace bg-opacity-NN with bg-color/NN (Tailwind v4 slash notation) - Replace hover:bg-opacity-80 with hover:bg-color/80 for specific colors - Replace hover:/80 (bare) with appropriate hover:bg-color/80 - Apply to PageContent.vue, PageConfigs.vue, index.html Addresses: #119
1 parent fd89671 commit 81404af

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

agentic_security/static/index.html

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ <h4 class="text-lg font-semibold">
6868
<div
6969
v-for="toast in toasts"
7070
:key="toast.id"
71-
class="flex items-center p-3 rounded-xl shadow-xl text-white max-w-md animate-toast-in border border-opacity-30"
71+
class="flex items-center p-3 rounded-xl shadow-xl text-white max-w-md animate-toast-in border /30"
7272
:class="{
7373
'bg-success-toast border-accent-green': toast.type === 'success',
7474
'bg-error-toast border-accent-red': toast.type === 'error',
@@ -154,13 +154,13 @@ <h2 class="text-2xl font-bold">LLM API Spec</h2>
154154

155155
<!-- Error and Success Messages -->
156156
<div v-if="errorMsg"
157-
class="bg-dark-accent-red bg-opacity-20 border border-dark-accent-red text-dark-accent-red px-4 py-3 rounded-lg relative"
157+
class="bg-dark-accent-red /20 border border-dark-accent-red text-dark-accent-red px-4 py-3 rounded-lg relative"
158158
role="alert">
159159
<strong class="font-bold">Oops!</strong>
160160
<span class="block sm:inline">{{errorMsg}}</span>
161161
</div>
162162
<div v-if="okMsg"
163-
class="bg-dark-accent-green bg-opacity-20 border border-dark-accent-green text-dark-accent-green px-4 py-3 rounded-lg relative"
163+
class="bg-dark-accent-green /20 border border-dark-accent-green text-dark-accent-green px-4 py-3 rounded-lg relative"
164164
role="alert">
165165
<strong class="font-bold">></strong>
166166
<span class="block sm:inline">{{okMsg}}</span>
@@ -172,7 +172,7 @@ <h2 class="text-2xl font-bold">LLM API Spec</h2>
172172
<section class="flex justify-center space-x-4 mt-10">
173173
<button
174174
@click="verifyIntegration"
175-
class="bg-dark-accent-orange text-dark-bg rounded-lg px-6 py-3 font-medium hover:bg-opacity-80 transition-colors">
175+
class="bg-dark-accent-orange text-dark-bg rounded-lg px-6 py-3 font-medium hover:bg-dark-accent-orange/80 transition-colors">
176176
Verify Integration
177177
</button>
178178
</section>
@@ -219,7 +219,7 @@ <h2 class="text-2xl font-bold">Parameters</h2>
219219
<div class="flex items-center justify-end mt-4">
220220
<button
221221
@click="confirmResetState"
222-
class="flex items-center bg-dark-accent-red text-dark-bg rounded-lg px-4 py-2 text-sm font-medium hover:bg-opacity-80 transition-colors">
222+
class="flex items-center bg-dark-accent-red text-dark-bg rounded-lg px-4 py-2 text-sm font-medium hover:bg-dark-accent-red/80 transition-colors">
223223
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2"
224224
fill="none" viewBox="0 0 24 24" stroke="currentColor">
225225
<path stroke-linecap="round" stroke-linejoin="round"
@@ -232,7 +232,7 @@ <h2 class="text-2xl font-bold">Parameters</h2>
232232
<!-- Confirmation Modal -->
233233
<div
234234
v-if="showResetConfirmation"
235-
class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
235+
class="fixed inset-0 bg-black /50 flex items-center justify-center z-50">
236236
<div class="bg-dark-card rounded-lg p-6 max-w-sm w-full">
237237
<h3 class="text-xl font-bold mb-4 text-dark-text">Confirm
238238
Reset</h3>
@@ -242,12 +242,12 @@ <h3 class="text-xl font-bold mb-4 text-dark-text">Confirm
242242
<div class="flex justify-end space-x-4">
243243
<button
244244
@click="showResetConfirmation = false"
245-
class="bg-gray-600 text-dark-text rounded-lg px-4 py-2 hover:bg-opacity-80 transition-colors">
245+
class="bg-gray-600 text-dark-text rounded-lg px-4 py-2 hover:bg-gray-600/80 transition-colors">
246246
Cancel
247247
</button>
248248
<button
249249
@click="resetState"
250-
class="bg-dark-accent-red text-dark-bg rounded-lg px-4 py-2 hover:bg-opacity-80 transition-colors">
250+
class="bg-dark-accent-red text-dark-bg rounded-lg px-4 py-2 hover:bg-dark-accent-red/80 transition-colors">
251251
Reset
252252
</button>
253253
</div>
@@ -416,7 +416,7 @@ <h3 class="text-lg font-semibold">Enable Many-shot
416416
@click="package.is_active !== false && addPackage(index)"
417417
class="border rounded-lg p-3 cursor-pointer transition-all hover:shadow-md overflow-hidden"
418418
:class="{
419-
'border-dark-accent-green bg-dark-accent-green bg-opacity-20': package.selected,
419+
'border-dark-accent-green bg-dark-accent-green /20': package.selected,
420420
'border-gray-600': !package.selected,
421421
'opacity-30 pointer-events-none cursor-not-allowed': package.is_active === false
422422
}">
@@ -434,13 +434,13 @@ <h3 class="text-lg font-semibold">Enable Many-shot
434434

435435
<!-- Error and Success Messages -->
436436
<div v-if="errorMsg"
437-
class="bg-dark-accent-red bg-opacity-20 border border-dark-accent-red text-dark-accent-red px-4 py-3 rounded-lg relative"
437+
class="bg-dark-accent-red /20 border border-dark-accent-red text-dark-accent-red px-4 py-3 rounded-lg relative"
438438
role="alert">
439439
<strong class="font-bold">Oops!</strong>
440440
<span class="block sm:inline">{{errorMsg}}</span>
441441
</div>
442442
<div v-if="okMsg"
443-
class="bg-dark-accent-green bg-opacity-20 border border-dark-accent-green text-dark-accent-green px-4 py-3 rounded-lg relative"
443+
class="bg-dark-accent-green /20 border border-dark-accent-green text-dark-accent-green px-4 py-3 rounded-lg relative"
444444
role="alert">
445445
<strong class="font-bold">></strong>
446446
<span class="block sm:inline">{{okMsg}}</span>
@@ -452,13 +452,13 @@ <h3 class="text-lg font-semibold">Enable Many-shot
452452
<section class="flex justify-center space-x-4">
453453
<button
454454
@click="verifyIntegration"
455-
class="bg-dark-accent-orange text-dark-bg rounded-lg px-6 py-3 font-medium hover:bg-opacity-80 transition-colors">
455+
class="bg-dark-accent-orange text-dark-bg rounded-lg px-6 py-3 font-medium hover:bg-dark-accent-orange/80 transition-colors">
456456
Verify Integration
457457
</button>
458458
<button
459459
@click="startScan"
460460
v-if="!scanRunning"
461-
class="bg-dark-accent-green text-dark-bg rounded-lg px-6 py-3 font-medium hover:bg-opacity-80 transition-colors flex items-center">
461+
class="bg-dark-accent-green text-dark-bg rounded-lg px-6 py-3 font-medium hover:bg-dark-accent-green/80 transition-colors flex items-center">
462462
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
463463
viewBox="0 0 24 24" fill="none" stroke="currentColor"
464464
stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
@@ -468,7 +468,7 @@ <h3 class="text-lg font-semibold">Enable Many-shot
468468
<button
469469
@click="stopScan"
470470
v-if="scanRunning"
471-
class="bg-dark-accent-red text-dark-bg rounded-lg px-6 py-3 font-medium hover:bg-opacity-80 transition-colors flex items-center">
471+
class="bg-dark-accent-red text-dark-bg rounded-lg px-6 py-3 font-medium hover:bg-dark-accent-red/80 transition-colors flex items-center">
472472
<!-- Stop Icon -->
473473
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
474474
viewBox="0 0 24 24" fill="none" stroke="currentColor"
@@ -519,7 +519,7 @@ <h2 class="text-2xl font-bold mb-4">Scan Results</h2>
519519
<!-- Download Button -->
520520
<button
521521
@click="downloadFailures"
522-
class="bg-dark-accent-yellow text-dark-bg rounded-lg px-6 py-3 font-medium hover:bg-opacity-80 transition-colors">
522+
class="bg-dark-accent-yellow text-dark-bg rounded-lg px-6 py-3 font-medium hover:bg-dark-accent-yellow/80 transition-colors">
523523
Download failures
524524
</button>
525525

@@ -547,7 +547,7 @@ <h2 class="text-2xl font-bold">Logs</h2>
547547
Math.min(logs.length, maxDisplayedLogs) }} of {{ logs.length }}
548548
logs</span>
549549
<button @click="downloadLogs"
550-
class="bg-dark-accent-green text-dark-bg rounded-lg px-4 py-2 text-sm font-medium hover:bg-opacity-80 transition-colors">
550+
class="bg-dark-accent-green text-dark-bg rounded-lg px-4 py-2 text-sm font-medium hover:bg-dark-accent-green/80 transition-colors">
551551
Download Logs
552552
</button>
553553
</div>

0 commit comments

Comments
 (0)