Setting the type to number for log_lvl.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
/** @type {import('./$types').LayoutData} */
|
||||
let log_lvl = 0;
|
||||
let log_lvl: number = 0;
|
||||
if (log_lvl) {
|
||||
console.log(`ae_idaa_archives +layout.svelte data:`, data);
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ import { browser } from '$app/environment';
|
||||
import { archives_func } from '$lib/ae_archives/ae_archives_functions';
|
||||
|
||||
export async function load({ fetch, params, parent }) { // route
|
||||
let log_lvl = 0;
|
||||
let log_lvl: number = 0;
|
||||
|
||||
let data = await parent();
|
||||
data.log_lvl = log_lvl;
|
||||
|
||||
@@ -6,7 +6,7 @@ import { browser } from '$app/environment';
|
||||
import { archives_func } from '$lib/ae_archives/ae_archives_functions';
|
||||
|
||||
export async function load({ params, parent }) { // route
|
||||
// let log_lvl = 0;
|
||||
// let log_lvl: number = 0;
|
||||
|
||||
// let data = await parent();
|
||||
// data.log_lvl = log_lvl;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
/** @type {import('./$types').PageData} */
|
||||
let log_lvl = 0;
|
||||
let log_lvl: number = 0;
|
||||
|
||||
// *** Import Svelte specific
|
||||
import { browser } from '$app/environment';
|
||||
|
||||
@@ -6,7 +6,7 @@ import { browser } from '$app/environment';
|
||||
import { archives_func } from '$lib/ae_archives/ae_archives_functions';
|
||||
|
||||
export async function load({ params, parent }) { // route
|
||||
let log_lvl = 1;
|
||||
let log_lvl: number = 0;
|
||||
|
||||
let data = await parent();
|
||||
data.log_lvl = log_lvl;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
export let log_lvl = 1;
|
||||
export let log_lvl: number = 0;
|
||||
// *** Import Svelte core
|
||||
import { onMount } from 'svelte';
|
||||
import { fade } from 'svelte/transition';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
export let log_lvl = 1;
|
||||
export let log_lvl: number = 0;
|
||||
// *** Import Svelte core
|
||||
import { onMount } from 'svelte';
|
||||
import { fade } from 'svelte/transition';
|
||||
|
||||
@@ -7,7 +7,7 @@ import { ae_snip, ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$
|
||||
import { idaa_loc, idaa_sess, idaa_slct, idaa_trig, idaa_prom } from '$lib/ae_idaa_stores';
|
||||
import { archives_func } from '$lib/ae_archives/ae_archives_functions';
|
||||
|
||||
export let log_lvl = 0;
|
||||
export let log_lvl: number = 0;
|
||||
export let lq__archive_obj: any;
|
||||
export let lq__archive_content_obj_li: any;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
let log_lvl = 0;
|
||||
let log_lvl: number = 0;
|
||||
|
||||
// *** Import Svelte specific
|
||||
import { goto } from '$app/navigation';
|
||||
|
||||
Reference in New Issue
Block a user