Move files correctly

This commit is contained in:
Matthias 2020-08-30 15:54:26 +02:00
parent f5636273f4
commit 3179bd92a5
4 changed files with 18 additions and 18 deletions

View File

@ -2,5 +2,6 @@ export * from './auth';
export * from './blacklist'; export * from './blacklist';
export * from './chart'; export * from './chart';
export * from './daily'; export * from './daily';
export * from './plot';
export * from './profit'; export * from './profit';
export * from './types'; export * from './types';

16
src/types/plot.ts Normal file
View File

@ -0,0 +1,16 @@
export interface IndicatorConfig {
color?: string;
type?: string;
}
export interface PlotConfig {
main_plot: Record<string, IndicatorConfig>;
subplots: Record<string, Record<string, IndicatorConfig>>;
}
export interface PlotConfigStorage {
[key: string]: PlotConfig;
}
// eslint-disable-next-line @typescript-eslint/camelcase
export const EMPTY_PLOTCONFIG: PlotConfig = { main_plot: {}, subplots: {} };

View File

@ -187,20 +187,3 @@ export interface PairHistory {
/** Data end date in as millisecond timestamp */ /** Data end date in as millisecond timestamp */
data_stop_ts: number; data_stop_ts: number;
} }
export interface IndicatorConfig {
color?: string;
type?: string;
}
export interface PlotConfig {
main_plot: Record<string, IndicatorConfig>;
subplots: Record<string, Record<string, IndicatorConfig>>;
}
export interface PlotConfigStorage {
[key: string]: PlotConfig;
}
// eslint-disable-next-line @typescript-eslint/camelcase
export const EMPTY_PLOTCONFIG: PlotConfig = { main_plot: {}, subplots: {} };

View File

@ -76,7 +76,7 @@ export default class Graphs extends Vue {
public getWhitelist; public getWhitelist;
@ftbot.Action @ftbot.Action
public getAvailablePairs!: (payload: AvailablePairPayload) => void; public getAvailablePairs!: (payload: AvailablePairPayload) => Promise<void>;
mounted() { mounted() {
this.getWhitelist(); this.getWhitelist();