refactor(ui): standardize button types and migrate file operations to V3 Action API

This commit is contained in:
Scott Idem
2026-02-03 22:54:22 -05:00
parent e8f92b818a
commit 49f0a888b0
81 changed files with 393 additions and 653 deletions

View File

@@ -660,7 +660,7 @@
<span class="bg-amber-50 px-1 py-0.5 rounded font-bold">{display_name} ({email})</span>
{/if}
</div>
<button
<button type="button"
class="px-2 py-1 bg-red-200 text-white rounded hover:bg-red-400"
onclick={() => (expand_jitsi_tools = false)}
title="Close Jitsi Tools"
@@ -671,7 +671,7 @@
</div>
<!-- Meeting Details -->
<div class="mt-1">
<button
<button type="button"
onclick={() => (show_meeting_details = !show_meeting_details)}
class="w-full flex justify-between items-center font-bold text-left"
>
@@ -693,7 +693,7 @@
<!-- Live Meeting Stats -->
<div class="mt-2 pt-2 border-t-2 border-dashed border-gray-400">
<button
<button type="button"
onclick={() => (show_live_stats = !show_live_stats)}
class="w-full flex justify-between items-center font-bold text-left"
>
@@ -730,7 +730,7 @@
<!-- Profile -->
<div class="mt-2 pt-2 border-t-2 border-dashed border-gray-400">
<button
<button type="button"
onclick={() => (show_profile_editor = !show_profile_editor)}
class="w-full flex justify-between items-center font-bold text-left"
>
@@ -759,7 +759,7 @@
placeholder="Enter new email"
/>
</div>
<button
<button type="button"
onclick={handle_profile_update}
class="w-full mt-1 px-2 py-1 bg-green-500 text-white rounded hover:bg-green-600"
title="Update your profile"
@@ -773,7 +773,7 @@
<!-- Jitsi Sound Settings -->
<div class="mt-2 pt-2 border-t-2 border-dashed border-gray-400">
<button
<button type="button"
onclick={() => (show_sound_settings = !show_sound_settings)}
class="w-full flex justify-between items-center font-bold text-left"
>
@@ -863,7 +863,7 @@
btn_class="mt-2 px-2 py-1 bg-indigo-400 text-white rounded hover:bg-indigo-500"
></MyClipboard>
<button
<button type="button"
class="mt-2 px-2 py-1 bg-orange-200 text-white rounded hover:bg-orange-400"
onclick={() => init_jitsi()}
title="Re-initialize Jitsi Meeting"
@@ -873,7 +873,7 @@
</button>
<!-- https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-iframe-commands/ -->
<button
<button type="button"
onclick={() => jitsi_api && jitsi_api.executeCommand('endConference')}
class="mt-2 px-2 py-1 bg-red-200 text-white rounded hover:bg-red-400"
title="End meeting for all participants"
@@ -882,7 +882,7 @@
End Meeting for *All*
</button>
<button
<button type="button"
onclick={() => (show_jitsi_container = !show_jitsi_container)}
class="mt-2 px-2 py-1 bg-gray-200 text-white rounded hover:bg-gray-400"
title="{show_jitsi_container ? 'Hide' : 'Show'} Jitsi Meeting"
@@ -898,7 +898,7 @@
<span class="sr-only">Container</span>
</button>
<button
<button type="button"
class="mt-2 px-2 py-1 bg-blue-200 text-white rounded hover:bg-blue-400"
onclick={handle_novi_resync}
title="Re-synchronize Novi data"
@@ -910,7 +910,7 @@
</div>
{:else}
<button
<button type="button"
class="px-2 py-1 bg-red-200 text-white rounded hover:bg-red-400"
onclick={() => (expand_jitsi_tools = true)}
aria-label="Open Jitsi Tools"