mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 01:55:59 +00:00
import type refactor
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { DictionaryDescription } from 'dbgate-datalib';
|
||||
import type { DictionaryDescription } from 'dbgate-datalib';
|
||||
import type { ApplicationDefinition, TableInfo } from 'dbgate-types';
|
||||
import _ from 'lodash';
|
||||
import { apiCall } from './api';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import _ from 'lodash';
|
||||
import uuidv1 from 'uuid/v1';
|
||||
import { get } from 'svelte/store';
|
||||
import { getOpenedTabs, openedTabs, TabDefinition } from '../stores';
|
||||
import { getOpenedTabs, openedTabs } from '../stores';
|
||||
import tabs from '../tabs';
|
||||
import { setSelectedTabFunc } from './common';
|
||||
import localforage from 'localforage';
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { derived, Readable } from 'svelte/store';
|
||||
import { derived } from 'svelte/store';
|
||||
import type { Readable } from 'svelte/store';
|
||||
import { useDatabaseInfo } from './metadataLoaders';
|
||||
import { MultipleDatabaseInfo } from 'dbgate-datalib';
|
||||
import type { MultipleDatabaseInfo } from 'dbgate-datalib';
|
||||
|
||||
export function useMultipleDatabaseInfo(dbs: { conid: string; database: string }[]): Readable<MultipleDatabaseInfo> {
|
||||
return derived(
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
import {
|
||||
analyseDataPattern,
|
||||
import { analyseDataPattern, PerspectiveCache } from 'dbgate-datalib';
|
||||
import type {
|
||||
MultipleDatabaseInfo,
|
||||
PerspectiveCache,
|
||||
PerspectiveConfig,
|
||||
PerspectiveDatabaseConfig,
|
||||
PerspectiveDataLoadProps,
|
||||
PerspectiveDataPattern,
|
||||
PerspectiveDataPatternDict,
|
||||
} from 'dbgate-datalib';
|
||||
import { PerspectiveDataLoader } from 'dbgate-datalib/lib/PerspectiveDataLoader';
|
||||
import { writable, Readable } from 'svelte/store';
|
||||
import type { PerspectiveDataLoader } from 'dbgate-datalib/lib/PerspectiveDataLoader';
|
||||
import { writable } from 'svelte/store';
|
||||
import type { Readable } from 'svelte/store';
|
||||
|
||||
export function getPerspectiveDataPatternsFromCache(
|
||||
databaseConfig: PerspectiveDatabaseConfig,
|
||||
|
||||
Reference in New Issue
Block a user