Slowly updating things to Data Store v3. Also doing some safe code clean up. Mainly removing commented out code.
This commit is contained in:
@@ -20,14 +20,7 @@
|
||||
} from '$lib/stores/ae_stores';
|
||||
import { core_func } from '$lib/ae_core/ae_core_functions';
|
||||
import { idaa_loc, idaa_sess, idaa_slct } from '$lib/stores/ae_idaa_stores';
|
||||
import Element_data_store from '$lib/elements/element_data_store_v2.svelte';
|
||||
|
||||
// const modalRegistry: Record<string, ModalComponent> = {
|
||||
// // Set a unique modal ID, then pass the component reference
|
||||
// // modalComponentEditSponsorshipObj: { ref: ModalComponentEditSponsorshipObj },
|
||||
// // modalComponentTwo: { ref: ModalComponentTwo },
|
||||
// // ...
|
||||
// };
|
||||
import Element_data_store from '$lib/elements/element_data_store_v3.svelte';
|
||||
|
||||
interface Props {
|
||||
/** @type {import('./$types').LayoutData} */
|
||||
@@ -37,13 +30,6 @@
|
||||
|
||||
let { data, children }: Props = $props();
|
||||
|
||||
// if (browser) {
|
||||
// add_activity_log({
|
||||
// action: 'idaa_root_layout',
|
||||
// action_with: 'browser'
|
||||
// });
|
||||
// }
|
||||
|
||||
function add_activity_log({
|
||||
action = 'idaa_root_layout',
|
||||
action_with = 'none'
|
||||
@@ -179,15 +165,6 @@
|
||||
// });
|
||||
});
|
||||
|
||||
// if (browser) {
|
||||
// $idaa_loc.novi_uuid = data.params.uuid;
|
||||
// $idaa_loc.novi_email = decodeURIComponent(data.params.email);
|
||||
// $idaa_loc.novi_full_name = decodeURIComponent(data.params.full_name);
|
||||
// // $idaa_loc.novi_admin_li = novi_admin_li;
|
||||
// // $idaa_loc.novi_trusted_li = novi_trusted_li;
|
||||
// console.log(`$idaa_loc.novi_uuid:`, $idaa_loc.novi_uuid);
|
||||
// }
|
||||
|
||||
let iframe = data.url.searchParams.get('iframe');
|
||||
if (browser && iframe == 'true') {
|
||||
console.log('Use iframe layout!');
|
||||
|
||||
Reference in New Issue
Block a user