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:
@@ -8,7 +8,13 @@
|
||||
|
||||
// *** Import other supporting libraries
|
||||
// import * as icons from '@lucide/svelte';
|
||||
import { Brain, House, Library, RefreshCw, Satellite } from '@lucide/svelte';
|
||||
import {
|
||||
Brain,
|
||||
House,
|
||||
Library,
|
||||
RefreshCw,
|
||||
Satellite
|
||||
} from '@lucide/svelte';
|
||||
|
||||
// *** Import Aether specific variables and functions
|
||||
import type { key_val } from '$lib/stores/ae_stores';
|
||||
@@ -76,7 +82,9 @@
|
||||
|
||||
function scroll_container() {
|
||||
return (
|
||||
document.getElementById('ae_main_content') || document.documentElement || document.body
|
||||
document.getElementById('ae_main_content') ||
|
||||
document.documentElement ||
|
||||
document.body
|
||||
);
|
||||
}
|
||||
|
||||
@@ -121,10 +129,10 @@
|
||||
</title>
|
||||
</svelte:head>
|
||||
|
||||
|
||||
{#if $events_loc?.ver && $events_loc?.ver !== $events_sess?.ver}
|
||||
<div class="fixed inset-0 bg-pink-100/80 z-40">
|
||||
<button type="button"
|
||||
<button
|
||||
type="button"
|
||||
class="
|
||||
fixed top-16 left-0 right-0 z-50 p-4 m-8 sm:mx-16 md:mx-32
|
||||
btn btn-lg rounded-2xl
|
||||
@@ -148,7 +156,9 @@
|
||||
localStorage.clear();
|
||||
sessionStorage.clear();
|
||||
|
||||
alert('The page will now reload. You may need to sign in again.');
|
||||
alert(
|
||||
'The page will now reload. You may need to sign in again.'
|
||||
);
|
||||
|
||||
await goto('/', { invalidateAll: true });
|
||||
|
||||
@@ -160,7 +170,9 @@
|
||||
<span class="m-4 sm:mx-8 text-wrap">
|
||||
New Events Module Version Available!<br />
|
||||
Click to Reload<br />
|
||||
<div class="italic text-base">You may need to sign in again.</div>
|
||||
<div class="italic text-base">
|
||||
You may need to sign in again.
|
||||
</div>
|
||||
</span>
|
||||
<span class="fas fa-sync-alt fa-spin m-1"></span>
|
||||
|
||||
@@ -219,14 +231,17 @@
|
||||
>
|
||||
<span class="justify-self-start">
|
||||
<!-- Be sure to explain what Æ (Aether) means in the title text or similar! -->
|
||||
<Satellite size="1.5em" class="mx-1 inline-block text-gray-500" />
|
||||
<Satellite
|
||||
size="1.5em"
|
||||
class="mx-1 inline-block text-gray-500"
|
||||
/>
|
||||
<abbr title="Aether - Events Module"> Æ Events </abbr>
|
||||
</span>
|
||||
{#if !$ae_sess?.disable_sys_header}
|
||||
<Element_data_store
|
||||
ds_code="hub__site__appshell_header"
|
||||
ds_type="html"
|
||||
/>
|
||||
/>
|
||||
{/if}
|
||||
<a
|
||||
href="/"
|
||||
@@ -269,7 +284,8 @@
|
||||
"
|
||||
>
|
||||
<!-- Scroll to top button -->
|
||||
<button type="button"
|
||||
<button
|
||||
type="button"
|
||||
class="
|
||||
ae_btn_success_outlined
|
||||
|
||||
@@ -298,7 +314,8 @@
|
||||
</button>
|
||||
|
||||
<!-- Scroll to bottom button -->
|
||||
<button type="button"
|
||||
<button
|
||||
type="button"
|
||||
class="
|
||||
ae_btn_success_outlined
|
||||
|
||||
|
||||
Reference in New Issue
Block a user