Still working on upgrading to Tailwind CSS v4 an dSkeleton v3.....
This commit is contained in:
@@ -184,8 +184,8 @@ if (browser) {
|
||||
<!-- <h1>Archives {$lq__archive_obj?.name} - {$lq__archive_content_obj_li?.length}</h1> -->
|
||||
|
||||
<a href="/idaa/archives" class="novi_btn btn btn-secondary btn-sm
|
||||
variant-ghost-tertiary
|
||||
hover:variant-filled-tertiary
|
||||
preset-tonal-tertiary border border-tertiary-500
|
||||
hover:preset-filled-tertiary-500
|
||||
transition
|
||||
">
|
||||
<!-- <span class="fas fa-arrow-left m-1"></span> Back to Archives -->
|
||||
@@ -234,7 +234,7 @@ if (browser) {
|
||||
$idaa_sess.archives.show__modal_view__archive_id = $idaa_slct.archive_id;
|
||||
$idaa_sess.archives.show__modal_edit__archive_id = false;
|
||||
}}
|
||||
class="novi_btn btn btn-sm variant-ghost-warning hover:variant-filled-warning transition"
|
||||
class="novi_btn btn btn-sm preset-tonal-warning border border-warning-500 hover:preset-filled-warning-500 transition"
|
||||
title={`View meeting: ${$lq__archive_obj?.name}`}
|
||||
>
|
||||
<span class="fas fa-eye m-1"></span> View
|
||||
@@ -301,7 +301,7 @@ if (browser) {
|
||||
$idaa_sess.archives.show__modal_view__archive_content_id = $idaa_slct.archive_content_id;
|
||||
$idaa_sess.archives.show__modal_edit__archive_content_id = false;
|
||||
}}
|
||||
class="novi_btn btn btn-sm variant-ghost-warning hover:variant-filled-warning transition"
|
||||
class="novi_btn btn btn-sm preset-tonal-warning border border-warning-500 hover:preset-filled-warning-500 transition"
|
||||
title={`View meeting: ${$lq__archive_content_obj?.name}`}
|
||||
>
|
||||
<span class="fas fa-eye m-1"></span> View
|
||||
|
||||
@@ -398,9 +398,9 @@ $effect(() => {
|
||||
class="select w-52"
|
||||
>
|
||||
<option value="">-- None --</option>
|
||||
<option value="hosted_file" selected>Hosted File in Æ</option>
|
||||
<option value="html">Hosted HTML in Æ</option>
|
||||
<option value="json">Hosted JSON in Æ</option>
|
||||
<option value="hosted_file" selected>Hosted File in Æ</option>
|
||||
<option value="html">Hosted HTML in Æ</option>
|
||||
<option value="json">Hosted JSON in Æ</option>
|
||||
<option value="url">External URL</option>
|
||||
<option value="other">Other</option>
|
||||
</select>
|
||||
@@ -445,7 +445,7 @@ $effect(() => {
|
||||
{#if $ae_loc.trusted_access}
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-sm variant-ghost-warning hover:variant-filled-warning float-right"
|
||||
class="btn btn-sm preset-tonal-warning border border-warning-500 hover:preset-filled-warning-500 float-right"
|
||||
title="Toggle between Upload and Select from Hosted Files"
|
||||
onclick={() => {
|
||||
if ($ae_sess.files.add_to_use_files_method == 'upload') {
|
||||
@@ -566,7 +566,7 @@ $effect(() => {
|
||||
|
||||
}
|
||||
}}
|
||||
class="novi_btn btn btn-sm variant-soft-error float-right"
|
||||
class="novi_btn btn btn-sm preset-tonal-error float-right"
|
||||
>
|
||||
{#await prom_api__archive_content_obj__hosted_file}
|
||||
<span class="fas fa-spinner fa-spin m-1"></span>
|
||||
@@ -670,7 +670,7 @@ $effect(() => {
|
||||
{#if $ae_loc.trusted_access}
|
||||
<button
|
||||
type="button"
|
||||
class="novi_btn btn btn-sm variant-soft-secondary float-right"
|
||||
class="novi_btn btn btn-sm preset-tonal-secondary float-right"
|
||||
onclick={() => {
|
||||
$idaa_loc.archives.show__admin_options = !$idaa_loc.archives.show__admin_options;
|
||||
}}
|
||||
@@ -815,7 +815,7 @@ $effect(() => {
|
||||
<button
|
||||
type="submit"
|
||||
disabled={disable_submit_btn}
|
||||
class="novi_btn btn btn-md variant-ghost-primary hover:variant-filled-primary transition"
|
||||
class="novi_btn btn btn-md preset-tonal-primary border border-primary-500 hover:preset-filled-primary-500 transition"
|
||||
>
|
||||
<span class="fas fa-check m-1"></span>
|
||||
Save Archive Content
|
||||
@@ -839,7 +839,7 @@ $effect(() => {
|
||||
$idaa_sess.archives.show__modal_edit__archive_content_id = false;
|
||||
$idaa_sess.archives.show__modal_view__archive_content_id = false;
|
||||
}}
|
||||
class="novi_btn btn btn-sm variant-soft-warning"
|
||||
class="novi_btn btn btn-sm preset-tonal-warning"
|
||||
title="Disable this archive content"
|
||||
>
|
||||
<span class="fas fa-minus m-1"></span>
|
||||
|
||||
@@ -32,10 +32,10 @@ let ae_promises: key_val = $state({});
|
||||
{#each $lq__archive_content_obj_li as idaa_archive_content_obj, index}
|
||||
|
||||
{#if idaa_archive_content_obj.group && idaa_archive_content_obj.group != $lq__archive_content_obj_li[index - 1]?.group}
|
||||
<div class="ae_row archive_content__group flex flex-row items-center justify-center bg-white rounded-lg p-2 w-full max-w-screen-lg">
|
||||
<div class="ae_row archive_content__group flex flex-row items-center justify-center bg-white rounded-lg p-2 w-full max-w-(--breakpoint-lg)">
|
||||
<button
|
||||
type="button"
|
||||
class="novi_btn novi_margin_sm btn btn-md btn-info variant-glass-secondary hover:variant-filled-secondary transition w-96"
|
||||
class="novi_btn novi_margin_sm btn btn-md btn-info preset-tonal-secondary hover:preset-filled-secondary-500 transition w-96"
|
||||
onclick={() => {
|
||||
if ($idaa_sess.archives.show_list__archive_content_li_group == idaa_archive_content_obj.group) {
|
||||
$idaa_sess.archives.show_list__archive_content_li_group = null;
|
||||
@@ -63,7 +63,7 @@ let ae_promises: key_val = $state({});
|
||||
{#if $idaa_sess.archives.show_list__archive_content_li_group == idaa_archive_content_obj.group}
|
||||
|
||||
<div
|
||||
class="container archive archive_content_obj border border-1 p-2 mb-2 space-y-2 w-full max-w-screen-lg flex flex-col items-center justify-center bg-white rounded-lg"
|
||||
class="container archive archive_content_obj border border p-2 mb-2 space-y-2 w-full max-w-(--breakpoint-lg) flex flex-col items-center justify-center bg-white rounded-lg"
|
||||
class:dim={idaa_archive_content_obj.hide}
|
||||
class:bg-warning-100={!idaa_archive_content_obj?.enable}
|
||||
>
|
||||
@@ -74,7 +74,7 @@ let ae_promises: key_val = $state({});
|
||||
</h3>
|
||||
|
||||
{#if idaa_archive_content_obj.original_location}
|
||||
—
|
||||
—
|
||||
<h4 class="h5">
|
||||
<!-- <span class="ae_label">Location:</span> -->
|
||||
<span class="ae_value">{idaa_archive_content_obj.original_location}</span>
|
||||
@@ -112,7 +112,7 @@ let ae_promises: key_val = $state({});
|
||||
$idaa_sess.archives.show__modal_view__archive_content_id = $idaa_slct.archive_content_id;
|
||||
$idaa_sess.archives.show__modal_edit__archive_content_id = false;
|
||||
}}
|
||||
class="novi_btn btn btn-md btn-secondary variant-ghost-primary hover:variant-filled-primary transition"
|
||||
class="novi_btn btn btn-md btn-secondary preset-tonal-primary border border-primary-500 hover:preset-filled-primary-500 transition"
|
||||
title={`View: ${idaa_archive_content_obj?.name}`}
|
||||
>
|
||||
<span class="fas fa-play m-1"></span> Play/View
|
||||
@@ -134,7 +134,7 @@ let ae_promises: key_val = $state({});
|
||||
|
||||
// window.postMessage({ type: 'download_event_file', hosted_file_id: idaa_archive_content_obj.hosted_file_id, filename: idaa_archive_content_obj.filename, auto_download: true }, '*');
|
||||
}}
|
||||
class="novi_btn btn btn-sm lg:btn-md variant-soft-primary hover:variant-filled-primary min-w-72 lg:min-w-96"
|
||||
class="novi_btn btn btn-sm lg:btn-md preset-tonal-primary hover:preset-filled-primary-500 min-w-72 lg:min-w-96"
|
||||
title={`Download this file:\n${idaa_archive_content_obj.filename}\n[API] SHA256: ${idaa_archive_content_obj?.hash_sha256.slice(0, 10)}... Hosted ID: ${idaa_archive_content_obj.hosted_file_id} Archive Content ID: ${idaa_archive_content_obj.archive_content_id}`}
|
||||
>
|
||||
{#await ae_promises[idaa_archive_content_obj.hosted_file_id]}
|
||||
@@ -180,7 +180,7 @@ let ae_promises: key_val = $state({});
|
||||
$idaa_sess.archives.show__modal_view__archive_content_id = false;
|
||||
$idaa_sess.archives.show__modal_edit__archive_content_id = $idaa_slct.archive_content_id;
|
||||
}}
|
||||
class="novi_btn btn btn-sm variant-glass-warning hover:variant-filled-warning transition"
|
||||
class="novi_btn btn btn-sm preset-tonal-warning hover:preset-filled-warning-500 transition"
|
||||
title={`Edit archive content: ${idaa_archive_content_obj?.name}`}
|
||||
>
|
||||
<span class="fas fa-edit m-1"></span> Edit Content
|
||||
|
||||
@@ -437,7 +437,7 @@ async function handle_delete_archive_obj(
|
||||
{#if $ae_loc.trusted_access}
|
||||
<button
|
||||
type="button"
|
||||
class="novi_btn btn btn-sm variant-soft-secondary float-right"
|
||||
class="novi_btn btn btn-sm preset-tonal-secondary float-right"
|
||||
onclick={() => {
|
||||
$idaa_loc.archives.show__admin_options = !$idaa_loc.archives.show__admin_options;
|
||||
}}
|
||||
@@ -581,7 +581,7 @@ async function handle_delete_archive_obj(
|
||||
<section class="ae_section ae_options flex flex-row gap-1 items-center justify-center">
|
||||
<button
|
||||
type="submit"
|
||||
class="novi_btn btn btn-md variant-ghost-primary hover:variant-filled-primary transition"
|
||||
class="novi_btn btn btn-md preset-tonal-primary border border-primary-500 hover:preset-filled-primary-500 transition"
|
||||
>
|
||||
<span class="fas fa-check m-1"></span>
|
||||
Save Archive
|
||||
@@ -595,7 +595,7 @@ async function handle_delete_archive_obj(
|
||||
if (!confirm('Are you sure you want to delete this archive?')) {return false;}
|
||||
handle_delete_archive_obj({archive_id: $idaa_slct.archive_id});
|
||||
}}
|
||||
class="novi_btn btn btn-sm variant-soft-warning"
|
||||
class="novi_btn btn btn-sm preset-tonal-warning"
|
||||
>
|
||||
<span class="fas fa-minus m-1"></span> Delete
|
||||
</button>
|
||||
|
||||
@@ -30,7 +30,7 @@ let { log_lvl = 0, lq__archive_obj, lq__archive_content_obj_li }: Props = $props
|
||||
<h2 class="archive__name h3">
|
||||
{@html $lq__archive_obj?.name ?? 'Loading...'}
|
||||
{#if $ae_loc.trusted_access && $ae_loc.edit_mode}
|
||||
({$lq__archive_content_obj_li?.length ?? '0'}×)
|
||||
({$lq__archive_content_obj_li?.length ?? '0'}×)
|
||||
{/if}
|
||||
{#await $idaa_prom.load__archive_content_obj_li}
|
||||
<span class="fas fa-spinner fa-spin"></span>
|
||||
@@ -117,7 +117,7 @@ let { log_lvl = 0, lq__archive_obj, lq__archive_content_obj_li }: Props = $props
|
||||
// console.log(`load_archive_content_obj_li = `, load_archive_content_obj_li);
|
||||
// $idaa_slct.archive_content_obj_li = load_archive_content_obj_li;
|
||||
}}
|
||||
class="novi_btn btn_show_archives_archive_content ae_btn btn btn-info btn-sm variant-ghost-secondary"
|
||||
class="novi_btn btn_show_archives_archive_content ae_btn btn btn-info btn-sm preset-tonal-secondary border border-secondary-500"
|
||||
>
|
||||
<span class="fas fa-eye m-1"></span> Show Hidden Content
|
||||
</button>
|
||||
@@ -145,7 +145,7 @@ let { log_lvl = 0, lq__archive_obj, lq__archive_content_obj_li }: Props = $props
|
||||
// console.log(`load_archive_content_obj_li = `, load_archive_content_obj_li);
|
||||
// $idaa_slct.archive_content_obj_li = load_archive_content_obj_li;
|
||||
}}
|
||||
class="novi_btn btn_hide_archives_archive_content ae_btn btn btn-info btn-sm variant-ghost-secondary"
|
||||
class="novi_btn btn_hide_archives_archive_content ae_btn btn btn-info btn-sm preset-tonal-secondary border border-secondary-500"
|
||||
>
|
||||
<span class="fas fa-eye-slash m-1"></span> Hide Hidden Content
|
||||
</button>
|
||||
@@ -173,7 +173,7 @@ let { log_lvl = 0, lq__archive_obj, lq__archive_content_obj_li }: Props = $props
|
||||
// log_lvl: log_lvl
|
||||
// });
|
||||
}}
|
||||
class="novi_btn btn_show_bb_post ae_btn btn btn-warning btn-sm variant-ghost-secondary"
|
||||
class="novi_btn btn_show_bb_post ae_btn btn btn-warning btn-sm preset-tonal-secondary border border-secondary-500"
|
||||
>
|
||||
<span class="fas fa-eye m-1"></span> Show Disabled Events
|
||||
</button>
|
||||
@@ -199,7 +199,7 @@ let { log_lvl = 0, lq__archive_obj, lq__archive_content_obj_li }: Props = $props
|
||||
// log_lvl: log_lvl
|
||||
// });
|
||||
}}
|
||||
class="novi_btn btn_hide_bb_post ae_btn btn btn-warning btn-sm variant-ghost-secondary"
|
||||
class="novi_btn btn_hide_bb_post ae_btn btn btn-warning btn-sm preset-tonal-secondary border border-secondary-500"
|
||||
>
|
||||
<span class="fas fa-eye-slash m-1"></span> Hide Disabled Events
|
||||
</button>
|
||||
@@ -221,7 +221,7 @@ let { log_lvl = 0, lq__archive_obj, lq__archive_content_obj_li }: Props = $props
|
||||
$idaa_sess.archives.show__modal_view__archive_content_id = false;
|
||||
$idaa_sess.archives.show__modal_edit__archive_content_id = true;
|
||||
}}
|
||||
class="novi_btn btn btn-sm variant-glass-warning"
|
||||
class="novi_btn btn btn-sm preset-tonal-warning"
|
||||
title={`Add content for: ${$lq__archive_obj?.name}`}
|
||||
>
|
||||
<span class="fas fa-plus m-1"></span> Add Content
|
||||
@@ -245,7 +245,7 @@ let { log_lvl = 0, lq__archive_obj, lq__archive_content_obj_li }: Props = $props
|
||||
$idaa_sess.archives.show__modal_view__archive_id = false;
|
||||
$idaa_sess.archives.show__modal_edit__archive_id = $idaa_slct.archive_id;
|
||||
}}
|
||||
class="novi_btn btn btn-sm variant-glass-warning"
|
||||
class="novi_btn btn btn-sm preset-tonal-warning"
|
||||
title={`Edit archive: ${$lq__archive_obj?.name}`}
|
||||
>
|
||||
<span class="fas fa-edit m-1"></span> Edit Archive
|
||||
|
||||
@@ -25,7 +25,7 @@ let { lq__archive_obj_li }: Props = $props();
|
||||
|
||||
{#each $lq__archive_obj_li as idaa_archive_obj, index}
|
||||
<div
|
||||
class="container archive archive_obj border border-1 rounded p-2 mb-2 space-y-2 w-full max-w-screen-lg flex flex-col items-center justify-center"
|
||||
class="container archive archive_obj border border rounded p-2 mb-2 space-y-2 w-full max-w-(--breakpoint-lg) flex flex-col items-center justify-center"
|
||||
class:hidden={(idaa_archive_obj?.hide || !idaa_archive_obj?.enable) && !$ae_loc.trusted_access}
|
||||
class:dim={idaa_archive_obj.hide}
|
||||
class:bg-warning-100={!idaa_archive_obj?.enable}
|
||||
@@ -46,11 +46,11 @@ let { lq__archive_obj_li }: Props = $props();
|
||||
{/if}
|
||||
</header>
|
||||
|
||||
{#if idaa_archive_obj.description}<pre class="archive__description p-2 bg-white shadow-md rounded-lg text-sm font-normal text-wrap whitespace-pre-wrap word-break max-w-screen-md novi_text_wrap">{@html idaa_archive_obj.description}</pre>{/if}
|
||||
{#if idaa_archive_obj.description}<pre class="archive__description p-2 bg-white shadow-md rounded-lg text-sm font-normal text-wrap whitespace-pre-wrap word-break max-w-(--breakpoint-md) novi_text_wrap">{@html idaa_archive_obj.description}</pre>{/if}
|
||||
|
||||
<div class="ae_options flex flex-row gap-2 items-center justify-center">
|
||||
|
||||
<a href="/idaa/archives/{idaa_archive_obj?.archive_id}" class="btn btn-secondary btn-md variant-ghost-primary hover:variant-filled-primary transition" title={`View: ${idaa_archive_obj?.name}`}>
|
||||
<a href="/idaa/archives/{idaa_archive_obj?.archive_id}" class="btn btn-secondary btn-md preset-tonal-primary border border-primary-500 hover:preset-filled-primary-500 transition" title={`View: ${idaa_archive_obj?.name}`}>
|
||||
<span class="fas fa-envelope-open m-1"></span> Open
|
||||
|
||||
{#if idaa_archive_obj?.archive_content_count}
|
||||
@@ -72,7 +72,7 @@ let { lq__archive_obj_li }: Props = $props();
|
||||
|
||||
goto(`/idaa/archives/${idaa_archive_obj?.archive_id}`);
|
||||
}}
|
||||
class="btn btn-sm variant-ghost-warning hover:variant-filled-warning transition"
|
||||
class="btn btn-sm preset-tonal-warning border border-warning-500 hover:preset-filled-warning-500 transition"
|
||||
title={`Edit archive: ${idaa_archive_obj.title}`}
|
||||
>
|
||||
<span class="fas fa-edit m-1"></span> Edit Archive
|
||||
|
||||
@@ -113,7 +113,7 @@ onDestroy(() => {
|
||||
<a
|
||||
href="{$ae_api.base_url}/hosted_file/{$idaa_slct.archive_content_obj?.hosted_file_id}/download?x_no_account_id_token=direct-download"
|
||||
target="_blank"
|
||||
class="btn btn-md variant-ghost-primary hover:variant-filled-primary transition"
|
||||
class="btn btn-md preset-tonal-primary border border-primary-500 hover:preset-filled-primary-500 transition"
|
||||
title="Download: {$idaa_slct.archive_content_obj.filename}"
|
||||
download="{$idaa_slct.archive_content_obj.filename}"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user