Skip to content

Commit

Permalink
chore: fix typings
Browse files Browse the repository at this point in the history
  • Loading branch information
Maizify committed May 24, 2023
1 parent 5229e8e commit 289dd76
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/log/log.svelte
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<script lang="ts">
import { onMount, onDestroy } from "svelte";
import { isMatchedFilterText } from "./logTool";
import { VConsoleLogStore as Store } from "./log.store";
import LogRow from "./logRow.svelte";
import LogCommand from "./logCommand.svelte";
import Style from "./log.less";
import type { IConsoleLogMethod, IVConsoleLog } from "./log.model";
import RecycleScroller from "../component/recycleScroller/recycleScroller.svelte";
import type { IVConsoleTabOptions } from "../lib/plugin";
<script lang='ts'>
import { onMount, onDestroy } from 'svelte';
import { isMatchedFilterText } from './logTool';
import { VConsoleLogStore as Store } from './log.store';
import LogRow from './logRow.svelte';
import LogCommand from './logCommand.svelte';
import Style from './log.less';
import type { IConsoleLogMethod, IVConsoleLog } from './log.model';
import RecycleScroller from '../component/recycleScroller/recycleScroller.svelte';
import type { IVConsoleTabOptions } from '../lib/plugin';
export let pluginId: string = "default";
export let pluginId: string = 'default';
export let showCmd: boolean = false;
export let filterType: "all" | IConsoleLogMethod = "all";
export let filterType: 'all' | IConsoleLogMethod = 'all';
export let showTimestamps: boolean = false;
let isInited: boolean = false;
let filterText: string = "";
let filterText: string = '';
let store: ReturnType<typeof Store.get>;
let scrollerHandler;
let logList: IVConsoleLog[] = [];
Expand All @@ -31,9 +31,9 @@
logList = $store.logList.filter((log) => {
let ret =
// filterType
(filterType === "all" || filterType === log.type) &&
(filterType === 'all' || filterType === log.type) &&
// filterText
(filterText === "" || isMatchedFilterText(log, filterText)) &&
(filterText === '' || isMatchedFilterText(log, filterText)) &&
// group
!log.groupCollapsed;
return ret;
Expand Down

0 comments on commit 289dd76

Please sign in to comment.