Still working on upgrading to Tailwind CSS v4 an dSkeleton v3.....
This commit is contained in:
@@ -5,7 +5,6 @@ let log_lvl: number = 0;
|
||||
// *** Import Svelte specific
|
||||
// import { goto } from '$app/navigation';
|
||||
// import type { Writable } from 'svelte/store';
|
||||
// import { localStorageStore } from '@skeletonlabs/skeleton';
|
||||
|
||||
// *** Import Aether specific variables and functions
|
||||
// import type { key_val } from '$lib/ae_stores';
|
||||
@@ -50,7 +49,7 @@ if (log_lvl) {
|
||||
class:hidden={$ae_loc.iframe}
|
||||
>
|
||||
|
||||
<span class="btn-group variant-soft-secondary px-4 py-2">
|
||||
<span class=" preset-tonal-secondary px-4 py-2">
|
||||
{#each Object.entries(data.submenu) as [key, item]}
|
||||
<!-- <a href="/settings/{item.slug}">{item.title}</a> -->
|
||||
<!-- class:hidden={!$ae_loc.trusted_access && item.access} -->
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/** @type {import('./$types').LayoutLoad} */
|
||||
console.log(`ae_core root +layout.ts start`);
|
||||
// console.log(`ae_core root +layout.ts start`);
|
||||
|
||||
// import { core_func } from '$lib/ae_core_functions';
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ let person_id_random_li: string[] = [];
|
||||
|
||||
<section class="ae_core md:container h-full mx-auto">
|
||||
|
||||
<h2 class="h3">Æ Core for {$ae_loc.account_name ?? 'Æ loading...'}</h2>
|
||||
<h2 class="h3">Æ Core for {$ae_loc.account_name ?? 'Æ loading...'}</h2>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
@@ -99,7 +99,7 @@ let person_id_random_li: string[] = [];
|
||||
$ae_sess.person.show_report__person_li = true;
|
||||
});
|
||||
}}
|
||||
class="btn btn-sm variant-soft-warning hover:variant-ghost-warning"
|
||||
class="btn btn-sm preset-tonal-warning hover:preset-tonal-warning border border-warning-500"
|
||||
>
|
||||
<span class="fas fa-user mx-1"></span>
|
||||
List People
|
||||
@@ -147,7 +147,7 @@ let person_id_random_li: string[] = [];
|
||||
}
|
||||
}}
|
||||
class:hidden={!$ae_loc.edit_mode}
|
||||
class="btn btn-sm variant-soft-warning hover:variant-filled-warning"
|
||||
class="btn btn-sm preset-tonal-warning hover:preset-filled-warning-500"
|
||||
>
|
||||
<span class="fas fa-plus mx-1"></span>
|
||||
Add Person
|
||||
|
||||
@@ -54,11 +54,11 @@ let lq_kv__person_obj_li = liveQuery(
|
||||
</h2>
|
||||
|
||||
<table
|
||||
class="table table-auto table-striped table-hover w-full text-xs lg:text-sm"
|
||||
class="table table-auto table-striped w-full text-xs lg:text-sm"
|
||||
>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="px-4 py-2">Name ({$lq_kv__person_obj_li?.length}×)</th>
|
||||
<th class="px-4 py-2">Name ({$lq_kv__person_obj_li?.length}×)</th>
|
||||
<th class="px-4 py-2">Email</th>
|
||||
<th class="px-4 py-2">Affiliations</th>
|
||||
{#if show_user_fields}
|
||||
|
||||
@@ -112,7 +112,7 @@ $ae_loc.person.show_content__person_page_help = false;
|
||||
on:click={() => {
|
||||
$ae_loc.person.show_content__person_page_help = !$ae_loc.person.show_content__person_page_help;
|
||||
}}
|
||||
class="btn btn-sm mx-1 variant-ghost-error hover:variant-filled-error"
|
||||
class="btn btn-sm mx-1 preset-tonal-error border border-error-500 hover:preset-filled-error-500"
|
||||
class:hidden={!$ae_loc.person.show_content__person_page_help}
|
||||
title="Help and information about the session search"
|
||||
>
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
console.log(`ae_core person_view.svelte`);
|
||||
|
||||
import { createEventDispatcher, onMount } from 'svelte';
|
||||
// import { clipboard, FileDropzone } from '@skeletonlabs/skeleton';
|
||||
import { liveQuery } from "dexie";
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
@@ -389,7 +388,7 @@ onMount(() => {
|
||||
// $events_slct.exhibit_tracking_obj.hide = !$lq__person_obj?.hide;
|
||||
ae_triggers.hide = true;
|
||||
}}
|
||||
class="btn btn-sm variant-soft-warning"
|
||||
class="btn btn-sm preset-tonal-warning"
|
||||
>
|
||||
{#if $ae_loc.trusted_access}
|
||||
{@html ($lq__person_obj?.hide ? '<span class="fas fa-eye m-1"></span> Unhide?' : '<span class="fas fa-eye-slash m-1"></span> Hide?')}
|
||||
@@ -436,7 +435,7 @@ onMount(() => {
|
||||
// $events_slct.exhibit_tracking_obj.hide = !$lq__person_obj?.hide;
|
||||
ae_triggers.enable = true;
|
||||
}}
|
||||
class="btn btn-sm variant-soft-warning"
|
||||
class="btn btn-sm preset-tonal-warning"
|
||||
>
|
||||
{#if $ae_loc.trusted_access}
|
||||
{@html ($lq__person_obj?.enable ? '<span class="fas fa-toggle-on m-1"></span> Disable?' : '<span class="fas fa-toggle-off m-1"></span> Enable?')}
|
||||
@@ -483,7 +482,7 @@ onMount(() => {
|
||||
// $events_slct.exhibit_tracking_obj.hide = !$lq__person_obj?.hide;
|
||||
ae_triggers.priority = true;
|
||||
}}
|
||||
class="btn btn-sm variant-soft-warning"
|
||||
class="btn btn-sm preset-tonal-warning"
|
||||
>
|
||||
{#if $ae_loc.trusted_access}
|
||||
{@html ($lq__person_obj?.priority ? '<span class="fas fa-star m-1"></span> Not Priority?' : '<span class="fas fa-star m-1"></span> Priority?')}
|
||||
@@ -530,7 +529,7 @@ onMount(() => {
|
||||
// $events_slct.exhibit_tracking_obj.hide = !$lq__person_obj?.hide;
|
||||
ae_triggers.allow_auth_key = true;
|
||||
}}
|
||||
class="btn btn-sm variant-soft-warning"
|
||||
class="btn btn-sm preset-tonal-warning"
|
||||
>
|
||||
{#if $ae_loc.trusted_access}
|
||||
{@html ($lq__person_obj?.allow_auth_key ? '<span class="fas fa-key m-1"></span> Not Allow Auth Key?' : '<span class="fas fa-key m-1"></span> Allow Auth Key?')}
|
||||
@@ -558,7 +557,7 @@ onMount(() => {
|
||||
id="person__data_json"
|
||||
disabled={!$ae_loc.administrator_access}
|
||||
class="textarea ae_value person__data_json font-mono"
|
||||
class:variant-glass-error={(ae_tmp.value__data_json && ae_tmp.value__data_json.length >600 ? true : false)}
|
||||
class:preset-tonal-error={(ae_tmp.value__data_json && ae_tmp.value__data_json.length >600 ? true : false)}
|
||||
required
|
||||
rows="8" cols="70"
|
||||
bind:value={ae_tmp.value__data_json}
|
||||
@@ -580,7 +579,7 @@ onMount(() => {
|
||||
<div class="flex flex-wrap gap-2 p-1">
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-md variant-glass-primary hover:variant-filled-primary"
|
||||
class="btn btn-md preset-tonal-primary hover:preset-filled-primary-500"
|
||||
disabled={(!$ae_loc.trusted_access || ae_tmp.value__data_json == $lq__person_obj.data_json)}
|
||||
on:click={() => {
|
||||
console.log('*** Save button clicked ***');
|
||||
|
||||
Reference in New Issue
Block a user