refactor: standardize event file actions and apply batch formatting
- Updated 'create_event_file_obj_from_hosted_file_async' to use the modern V3 action endpoint. - Standardized 'prevent_default' helper names in root Event and Archive components. - Applied batch formatting (printWidth: 80) across the settings and events modules.
This commit is contained in:
@@ -6,8 +6,18 @@
|
||||
|
||||
import { liveQuery } from 'dexie';
|
||||
import { db_events } from '$lib/ae_events/db_events';
|
||||
import { ae_loc, ae_sess, ae_api, slct, slct_trigger } from '$lib/stores/ae_stores';
|
||||
import { events_loc, events_slct, events_trigger } from '$lib/stores/ae_events_stores';
|
||||
import {
|
||||
ae_loc,
|
||||
ae_sess,
|
||||
ae_api,
|
||||
slct,
|
||||
slct_trigger
|
||||
} from '$lib/stores/ae_stores';
|
||||
import {
|
||||
events_loc,
|
||||
events_slct,
|
||||
events_trigger
|
||||
} from '$lib/stores/ae_events_stores';
|
||||
import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||
|
||||
import { page } from '$app/stores';
|
||||
@@ -60,17 +70,22 @@
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<h2 class="h3">Presentation Management for {$ae_loc.account_name ?? 'Æ loading...'}</h2>
|
||||
<h2 class="h3">
|
||||
Presentation Management for {$ae_loc.account_name ?? 'Æ loading...'}
|
||||
</h2>
|
||||
|
||||
{#if $ae_loc.administrator_access}
|
||||
<h3 class="h4">Administrator Access - Technical Support</h3>
|
||||
<p>
|
||||
You are accessing the presentation management system with "administrator" level permissions.
|
||||
You are accessing the presentation management system with
|
||||
"administrator" level permissions.
|
||||
</p>
|
||||
{:else if $ae_loc.trusted_access}
|
||||
<h3 class="h4">Trusted Access - Staff</h3>
|
||||
<p>You are accessing the presentation management system with "trusted" level permissions.</p>
|
||||
<p>
|
||||
You are accessing the presentation management system with "trusted"
|
||||
level permissions.
|
||||
</p>
|
||||
{:else if !$ae_loc.trusted_access}
|
||||
<h3 class="h4">Restricted Access</h3>
|
||||
<p>You access to the presentation management system is limited.</p>
|
||||
@@ -99,12 +114,13 @@
|
||||
/> -->
|
||||
|
||||
{#if $lq__event_obj_li}
|
||||
|
||||
{#if $lq__event_obj_li.length}
|
||||
<ul class="space-y-2">
|
||||
{#each $lq__event_obj_li as event_obj}
|
||||
<li class:dim={event_obj?.hide}>
|
||||
<span class="w-full flex flex-row gap-1 items-center justify-between">
|
||||
<span
|
||||
class="w-full flex flex-row gap-1 items-center justify-between"
|
||||
>
|
||||
<!-- We do not want to show events more than 8 months old. -->
|
||||
{#if new Date(event_obj.start_datetime ?? '').getTime() > new Date().getTime() - 1000 * 60 * 60 * 24 * 30 * 8 || $ae_loc.trusted_access}
|
||||
<span>
|
||||
@@ -131,7 +147,9 @@
|
||||
{/if}
|
||||
</span>
|
||||
|
||||
<span class="w-full flex flex-row gap-1 items-center justify-evenly">
|
||||
<span
|
||||
class="w-full flex flex-row gap-1 items-center justify-evenly"
|
||||
>
|
||||
{#if $ae_loc.authenticated_access}
|
||||
<a
|
||||
data-sveltekit-reload
|
||||
@@ -178,12 +196,18 @@
|
||||
{/each}
|
||||
</ul>
|
||||
<div class="flex justify-center items-center space-x-4 mt-4">
|
||||
<button type="button" class="btn btn-sm" onclick={prev_page} disabled={current_page === 1}
|
||||
>Previous</button
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-sm"
|
||||
onclick={prev_page}
|
||||
disabled={current_page === 1}>Previous</button
|
||||
>
|
||||
<span>Page {current_page} of {total_pages}</span>
|
||||
<button type="button" class="btn btn-sm" onclick={next_page} disabled={current_page === total_pages}
|
||||
>Next</button
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-sm"
|
||||
onclick={next_page}
|
||||
disabled={current_page === total_pages}>Next</button
|
||||
>
|
||||
</div>
|
||||
{:else}
|
||||
|
||||
Reference in New Issue
Block a user