From 240dd06c0f0843943f6ffbdd0dc8d33bc1ce361d Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 29 Aug 2020 11:23:39 +0200 Subject: [PATCH] Move types to seperate directory --- src/components/Login.vue | 2 +- src/components/charts/CumProfitChart.vue | 2 +- src/components/charts/DailyChart.vue | 2 +- src/components/charts/HourlyChart.vue | 2 +- src/components/ftbot/Balance.vue | 2 +- src/components/ftbot/BotControls.vue | 2 +- src/components/ftbot/BotStatus.vue | 2 +- src/components/ftbot/FTBotAPIPairList.vue | 2 +- src/components/ftbot/ForceBuyForm.vue | 2 +- src/components/ftbot/LogViewer.vue | 2 +- src/components/ftbot/Performance.vue | 2 +- src/components/ftbot/TradeList.vue | 2 +- src/shared/userService.ts | 2 +- src/store/modules/ftbot.ts | 2 +- src/types/index.ts | 1 + src/{store => types}/types.ts | 0 src/views/Dashboard.vue | 2 +- src/views/Trading.vue | 2 +- 18 files changed, 17 insertions(+), 16 deletions(-) create mode 100644 src/types/index.ts rename src/{store => types}/types.ts (100%) diff --git a/src/components/Login.vue b/src/components/Login.vue index 2597b60c..d308f8d9 100644 --- a/src/components/Login.vue +++ b/src/components/Login.vue @@ -57,7 +57,7 @@ import { Mutation } from 'vuex-class'; import userService from '@/shared/userService'; import { setBaseUrl } from '@/shared/apiService'; -import { AuthPayload } from '@/store/types'; +import { AuthPayload } from '@/types'; const defaultURL = 'http://localhost:8080'; diff --git a/src/components/charts/CumProfitChart.vue b/src/components/charts/CumProfitChart.vue index 8ad46bb4..e3935bff 100644 --- a/src/components/charts/CumProfitChart.vue +++ b/src/components/charts/CumProfitChart.vue @@ -16,7 +16,7 @@ import 'echarts/lib/component/dataZoom'; import 'echarts/lib/component/visualMap'; import 'echarts/lib/component/visualMapPiecewise'; -import { ClosedTrade } from '@/store/types'; +import { ClosedTrade } from '@/types'; // Define Column labels here to avoid typos const CHART_PROFIT = 'Profit'; diff --git a/src/components/charts/DailyChart.vue b/src/components/charts/DailyChart.vue index 36f51a89..77366692 100644 --- a/src/components/charts/DailyChart.vue +++ b/src/components/charts/DailyChart.vue @@ -12,7 +12,7 @@ import 'echarts/lib/component/title'; import 'echarts/lib/component/tooltip'; import 'echarts/lib/component/legend'; -import { DailyReturnValue } from '@/store/types'; +import { DailyReturnValue } from '@/types'; // Define Column labels here to avoid typos const CHART_ABS_PROFIT = 'Absolute profit'; diff --git a/src/components/charts/HourlyChart.vue b/src/components/charts/HourlyChart.vue index eafe0943..3dea1acd 100644 --- a/src/components/charts/HourlyChart.vue +++ b/src/components/charts/HourlyChart.vue @@ -15,7 +15,7 @@ import 'echarts/lib/component/legend'; import 'echarts/lib/component/visualMap'; import 'echarts/lib/component/visualMapPiecewise'; -import { Trade } from '@/store/types'; +import { Trade } from '@/types'; import { timestampHour } from '@/shared/formatters'; // Define Column labels here to avoid typos diff --git a/src/components/ftbot/Balance.vue b/src/components/ftbot/Balance.vue index 32ba21b2..c41d656d 100644 --- a/src/components/ftbot/Balance.vue +++ b/src/components/ftbot/Balance.vue @@ -25,7 +25,7 @@