refactor(ui): standardize button types and migrate file operations to V3 Action API
This commit is contained in:
@@ -73,9 +73,9 @@
|
||||
<summary class="summary">General Config (cfg_json)</summary>
|
||||
<div class="p-4">
|
||||
<div class="flex justify-end">
|
||||
<button class="btn btn-sm" onclick={() => (cfg_json_view = 'form')}>Form</button
|
||||
<button type="button" class="btn btn-sm" onclick={() => (cfg_json_view = 'form')}>Form</button
|
||||
>
|
||||
<button class="btn btn-sm" onclick={() => (cfg_json_view = 'json')}>JSON</button
|
||||
<button type="button" class="btn btn-sm" onclick={() => (cfg_json_view = 'json')}>JSON</button
|
||||
>
|
||||
</div>
|
||||
{#if cfg_json_view === 'form'}
|
||||
@@ -92,7 +92,7 @@
|
||||
placeholder="JSON config"
|
||||
class_li="p-1 preset-outlined-success-400-600 shadow-lg rounded-lg"
|
||||
/>
|
||||
<button
|
||||
<button type="button"
|
||||
class="btn preset-tonal-primary"
|
||||
onclick={() => {
|
||||
if (event_obj) handle_save('cfg_json', event_obj.cfg_json);
|
||||
@@ -106,10 +106,10 @@
|
||||
<summary class="summary">Presentation Management (mod_pres_mgmt_json)</summary>
|
||||
<div class="p-4">
|
||||
<div class="flex justify-end">
|
||||
<button class="btn btn-sm" onclick={() => (pres_mgmt_json_view = 'form')}
|
||||
<button type="button" class="btn btn-sm" onclick={() => (pres_mgmt_json_view = 'form')}
|
||||
>Form</button
|
||||
>
|
||||
<button class="btn btn-sm" onclick={() => (pres_mgmt_json_view = 'json')}
|
||||
<button type="button" class="btn btn-sm" onclick={() => (pres_mgmt_json_view = 'json')}
|
||||
>JSON</button
|
||||
>
|
||||
</div>
|
||||
@@ -127,7 +127,7 @@
|
||||
placeholder="JSON config"
|
||||
class_li="p-1 preset-outlined-success-400-600 shadow-lg rounded-lg"
|
||||
/>
|
||||
<button
|
||||
<button type="button"
|
||||
class="btn preset-tonal-primary"
|
||||
onclick={() => {
|
||||
if (event_obj)
|
||||
@@ -142,10 +142,10 @@
|
||||
<summary class="summary">Badges (mod_badges_json)</summary>
|
||||
<div class="p-4">
|
||||
<div class="flex justify-end">
|
||||
<button class="btn btn-sm" onclick={() => (badges_json_view = 'form')}
|
||||
<button type="button" class="btn btn-sm" onclick={() => (badges_json_view = 'form')}
|
||||
>Form</button
|
||||
>
|
||||
<button class="btn btn-sm" onclick={() => (badges_json_view = 'json')}
|
||||
<button type="button" class="btn btn-sm" onclick={() => (badges_json_view = 'json')}
|
||||
>JSON</button
|
||||
>
|
||||
</div>
|
||||
@@ -163,7 +163,7 @@
|
||||
placeholder="JSON config"
|
||||
class_li="p-1 preset-outlined-success-400-600 shadow-lg rounded-lg"
|
||||
/>
|
||||
<button
|
||||
<button type="button"
|
||||
class="btn preset-tonal-primary"
|
||||
onclick={() => {
|
||||
if (event_obj) handle_save('mod_badges_json', event_obj.mod_badges_json);
|
||||
@@ -177,10 +177,10 @@
|
||||
<summary class="summary">Abstracts (mod_abstracts_json)</summary>
|
||||
<div class="p-4">
|
||||
<div class="flex justify-end">
|
||||
<button class="btn btn-sm" onclick={() => (abstracts_json_view = 'form')}
|
||||
<button type="button" class="btn btn-sm" onclick={() => (abstracts_json_view = 'form')}
|
||||
>Form</button
|
||||
>
|
||||
<button class="btn btn-sm" onclick={() => (abstracts_json_view = 'json')}
|
||||
<button type="button" class="btn btn-sm" onclick={() => (abstracts_json_view = 'json')}
|
||||
>JSON</button
|
||||
>
|
||||
</div>
|
||||
@@ -198,7 +198,7 @@
|
||||
placeholder="JSON config"
|
||||
class_li="p-1 preset-outlined-success-400-600 shadow-lg rounded-lg"
|
||||
/>
|
||||
<button
|
||||
<button type="button"
|
||||
class="btn preset-tonal-primary"
|
||||
onclick={() => {
|
||||
if (event_obj)
|
||||
@@ -220,7 +220,7 @@
|
||||
placeholder="JSON config"
|
||||
class_li="p-1 preset-outlined-success-400-600 shadow-lg rounded-lg"
|
||||
/>
|
||||
<button
|
||||
<button type="button"
|
||||
class="btn preset-tonal-primary"
|
||||
onclick={() => {
|
||||
if (event_obj) handle_save('mod_exhibits_json', event_obj.mod_exhibits_json);
|
||||
@@ -240,7 +240,7 @@
|
||||
placeholder="JSON config"
|
||||
class_li="p-1 preset-outlined-success-400-600 shadow-lg rounded-lg"
|
||||
/>
|
||||
<button
|
||||
<button type="button"
|
||||
class="btn preset-tonal-primary"
|
||||
onclick={() => {
|
||||
if (event_obj) handle_save('mod_meetings_json', event_obj.mod_meetings_json);
|
||||
|
||||
Reference in New Issue
Block a user