style: Apply Prettier formatting to codebase
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { preventDefault } from 'svelte/legacy';
|
||||
|
||||
|
||||
// Imports
|
||||
// Import components and elements
|
||||
import Element_input_files_tbl from '$lib/elements/element_input_files_tbl.svelte';
|
||||
@@ -21,10 +20,6 @@
|
||||
} from '$lib/stores/ae_stores';
|
||||
|
||||
// Exports
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
interface Props {
|
||||
log_lvl?: number;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { preventDefault } from 'svelte/legacy';
|
||||
|
||||
|
||||
// Imports
|
||||
// Import components and elements
|
||||
import Element_input_files_tbl from '$lib/elements/element_input_files_tbl.svelte';
|
||||
@@ -21,10 +20,6 @@
|
||||
} from '$lib/stores/ae_stores';
|
||||
|
||||
// Exports
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
interface Props {
|
||||
log_lvl?: number;
|
||||
|
||||
@@ -1,50 +1,50 @@
|
||||
export const editable_fields = [
|
||||
'code',
|
||||
'conference',
|
||||
'type',
|
||||
'name',
|
||||
'summary',
|
||||
'description',
|
||||
'start_datetime',
|
||||
'end_datetime',
|
||||
'timezone',
|
||||
'location_address_json',
|
||||
'location_text',
|
||||
'attend_json',
|
||||
'attend_text',
|
||||
'status',
|
||||
'mod_abstracts_json',
|
||||
'mod_badges_json',
|
||||
'mod_exhibits_json',
|
||||
'mod_meetings_json',
|
||||
'mod_pres_mgmt_json',
|
||||
'cfg_json',
|
||||
'enable',
|
||||
'hide',
|
||||
'priority',
|
||||
'sort',
|
||||
'group',
|
||||
'notes',
|
||||
'contact_li_json',
|
||||
'external_person_id',
|
||||
'physical',
|
||||
'virtual',
|
||||
'recurring',
|
||||
'recurring_pattern',
|
||||
'recurring_start_time',
|
||||
'recurring_end_time',
|
||||
'recurring_text',
|
||||
'weekday_sunday',
|
||||
'weekday_monday',
|
||||
'weekday_tuesday',
|
||||
'weekday_wednesday',
|
||||
'weekday_thursday',
|
||||
'weekday_friday',
|
||||
'weekday_saturday',
|
||||
'attend_url',
|
||||
'attend_url_text',
|
||||
'attend_url_code',
|
||||
'attend_url_passcode',
|
||||
'attend_phone',
|
||||
'attend_phone_passcode'
|
||||
'code',
|
||||
'conference',
|
||||
'type',
|
||||
'name',
|
||||
'summary',
|
||||
'description',
|
||||
'start_datetime',
|
||||
'end_datetime',
|
||||
'timezone',
|
||||
'location_address_json',
|
||||
'location_text',
|
||||
'attend_json',
|
||||
'attend_text',
|
||||
'status',
|
||||
'mod_abstracts_json',
|
||||
'mod_badges_json',
|
||||
'mod_exhibits_json',
|
||||
'mod_meetings_json',
|
||||
'mod_pres_mgmt_json',
|
||||
'cfg_json',
|
||||
'enable',
|
||||
'hide',
|
||||
'priority',
|
||||
'sort',
|
||||
'group',
|
||||
'notes',
|
||||
'contact_li_json',
|
||||
'external_person_id',
|
||||
'physical',
|
||||
'virtual',
|
||||
'recurring',
|
||||
'recurring_pattern',
|
||||
'recurring_start_time',
|
||||
'recurring_end_time',
|
||||
'recurring_text',
|
||||
'weekday_sunday',
|
||||
'weekday_monday',
|
||||
'weekday_tuesday',
|
||||
'weekday_wednesday',
|
||||
'weekday_thursday',
|
||||
'weekday_friday',
|
||||
'weekday_saturday',
|
||||
'attend_url',
|
||||
'attend_url_text',
|
||||
'attend_url_code',
|
||||
'attend_url_passcode',
|
||||
'attend_phone',
|
||||
'attend_phone_passcode'
|
||||
];
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<script lang="ts">
|
||||
|
||||
interface Props {
|
||||
log_lvl?: number;
|
||||
site_google_tracking_id?: string;
|
||||
|
||||
@@ -9,12 +9,6 @@
|
||||
import { onMount, onDestroy } from 'svelte';
|
||||
import { ensureCodeMirrorModules } from '../elements/codemirror_modules';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
interface Props {
|
||||
// Props
|
||||
content?: string;
|
||||
@@ -46,7 +40,6 @@
|
||||
tab_size = 4,
|
||||
class: classes = ''
|
||||
}: Props = $props();
|
||||
|
||||
|
||||
let editor_element: HTMLDivElement = $state();
|
||||
let editorView: any = $state(); // Changed to any
|
||||
|
||||
@@ -23,8 +23,6 @@
|
||||
|
||||
// *** Import Aether module components
|
||||
|
||||
|
||||
|
||||
interface Props {
|
||||
// *** Export/Exposed variables and functions for component
|
||||
start_qr_scanner?: boolean;
|
||||
|
||||
@@ -15,17 +15,9 @@
|
||||
// *** Import Aether module variables and functions
|
||||
// *** Import Aether module components
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// export let show_field_name = true;
|
||||
// export let show_original_value = true;
|
||||
// export let trim_string = false;
|
||||
|
||||
|
||||
interface Props {
|
||||
// *** Export/Exposed variables and functions for component
|
||||
@@ -98,7 +90,6 @@
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// Updated 2024-03-22
|
||||
async function handle_obj_field_patch(new_field_value: any) {
|
||||
console.log('*** handle_obj_field_patch() ***');
|
||||
|
||||
@@ -8,7 +8,11 @@
|
||||
classes?: string;
|
||||
}
|
||||
|
||||
let { html_text = $bindable(''), placeholder = 'Type your text here...', classes = '' }: Props = $props();
|
||||
let {
|
||||
html_text = $bindable(''),
|
||||
placeholder = 'Type your text here...',
|
||||
classes = ''
|
||||
}: Props = $props();
|
||||
</script>
|
||||
|
||||
<div class="block w-full h-full {classes}">
|
||||
|
||||
@@ -8,17 +8,10 @@
|
||||
import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||
import type { key_val } from '$lib/stores/ae_stores';
|
||||
|
||||
|
||||
console.log(
|
||||
`ae_e_data_store ${ds_code} for_type=${for_type} for_id=${for_id} account_id=${$ae_loc.account_id}`
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
let ae_promises: key_val = {}; // Promise<any>;
|
||||
let ds_get_results: Promise<any> | key_val = $state();
|
||||
let ds_loading_status: string = 'starting...';
|
||||
@@ -178,7 +171,6 @@
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
async function load_data_store({
|
||||
code,
|
||||
type = 'text',
|
||||
|
||||
@@ -19,11 +19,6 @@
|
||||
});
|
||||
|
||||
// export let store: string = 'local';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
let ae_promises: key_val = {};
|
||||
// let ae_tmp: key_val = {};
|
||||
@@ -168,7 +163,6 @@
|
||||
}, random_ms);
|
||||
}
|
||||
|
||||
|
||||
async function load_data_store({
|
||||
code,
|
||||
type = 'text',
|
||||
@@ -774,23 +768,21 @@
|
||||
</form>
|
||||
|
||||
{#snippet footer()}
|
||||
|
||||
<div class="text-center w-full">
|
||||
<button
|
||||
type="button"
|
||||
onclick={() => {
|
||||
<div class="text-center w-full">
|
||||
<button
|
||||
type="button"
|
||||
onclick={() => {
|
||||
console.log('Close modal edit data store.');
|
||||
show_edit = false;
|
||||
show_view = true;
|
||||
}}
|
||||
class="btn btn-sm preset-tonal-warning hover:preset-tonal-warning border border-warning-500"
|
||||
>
|
||||
<span class="fas fa-times mx-1"></span>
|
||||
Close
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{/snippet}
|
||||
class="btn btn-sm preset-tonal-warning hover:preset-tonal-warning border border-warning-500"
|
||||
>
|
||||
<span class="fas fa-times mx-1"></span>
|
||||
Close
|
||||
</button>
|
||||
</div>
|
||||
{/snippet}
|
||||
</Modal>
|
||||
|
||||
<!-- </section> -->
|
||||
|
||||
@@ -9,9 +9,6 @@
|
||||
import { check_hosted_file_obj_w_hash } from '$lib/ae_core/core__check_hosted_file_obj_w_hash';
|
||||
import { ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$lib/stores/ae_stores';
|
||||
|
||||
|
||||
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
interface Props {
|
||||
@@ -53,7 +50,6 @@
|
||||
console.log('** Element Mounted: ** Element Input File');
|
||||
});
|
||||
|
||||
|
||||
async function process_file_list(file_list) {
|
||||
console.log('*** process_file_list() ***');
|
||||
|
||||
|
||||
@@ -9,9 +9,6 @@
|
||||
import { check_hosted_file_obj_w_hash } from '$lib/ae_core/core__check_hosted_file_obj_w_hash';
|
||||
import { ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$lib/stores/ae_stores';
|
||||
|
||||
|
||||
|
||||
|
||||
interface Props {
|
||||
// export let element_id = 'svelte_input_file_element';
|
||||
container_class_li?: string[];
|
||||
@@ -43,7 +40,6 @@
|
||||
console.log('** Element Mounted: ** Element Input File');
|
||||
});
|
||||
|
||||
|
||||
async function process_file_list(file_list) {
|
||||
console.log('*** process_file_list() ***');
|
||||
|
||||
|
||||
@@ -7,19 +7,11 @@
|
||||
|
||||
// import Select_element_lu from './element_select_lu.svelte';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
console.log(`Input name=${name} value=${value}`);
|
||||
|
||||
|
||||
console.log('Original Value', original_value);
|
||||
console.log('Data Type:', data_type);
|
||||
|
||||
|
||||
|
||||
let set_input_type = $state((node) => {
|
||||
node.type = 'text';
|
||||
});
|
||||
@@ -33,37 +25,20 @@
|
||||
|
||||
console.log(`Input name=${name} value=${value} type=${type}`);
|
||||
|
||||
|
||||
/* *** END *** Core input settings */
|
||||
|
||||
/* *** BEGIN *** Container content, layout, and behavior */
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
console.log(`Input input_mode=${input_mode}`);
|
||||
|
||||
/* *** END *** Container content, layout, and behavior */
|
||||
|
||||
/* *** BEGIN *** Input type specific */
|
||||
|
||||
|
||||
|
||||
|
||||
if (type == 'textarea') {
|
||||
console.log(`Input textarea size=${size} rows=${rows} cols=${cols}`);
|
||||
}
|
||||
|
||||
|
||||
interface Props {
|
||||
/* *** BEGIN *** Core input settings */
|
||||
id_random?: string; // OSIT Aether specific
|
||||
|
||||
@@ -19,7 +19,11 @@
|
||||
obj?: any;
|
||||
}
|
||||
|
||||
let { row_header = false, primary_obj_li_type = $bindable(slct_obj_li_type), obj = null }: Props = $props();
|
||||
let {
|
||||
row_header = false,
|
||||
primary_obj_li_type = $bindable(slct_obj_li_type),
|
||||
obj = null
|
||||
}: Props = $props();
|
||||
console.log(obj);
|
||||
console.log(typeof obj);
|
||||
|
||||
|
||||
@@ -14,8 +14,6 @@
|
||||
|
||||
// *** Import Aether module components
|
||||
|
||||
|
||||
|
||||
interface Props {
|
||||
// *** Export/Exposed variables and functions for component
|
||||
api_cfg: any;
|
||||
|
||||
Reference in New Issue
Block a user