mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-27 05:25:17 +00:00
Move types to seperate directory
This commit is contained in:
parent
44874377b8
commit
240dd06c0f
|
@ -57,7 +57,7 @@ import { Mutation } from 'vuex-class';
|
||||||
import userService from '@/shared/userService';
|
import userService from '@/shared/userService';
|
||||||
import { setBaseUrl } from '@/shared/apiService';
|
import { setBaseUrl } from '@/shared/apiService';
|
||||||
|
|
||||||
import { AuthPayload } from '@/store/types';
|
import { AuthPayload } from '@/types';
|
||||||
|
|
||||||
const defaultURL = 'http://localhost:8080';
|
const defaultURL = 'http://localhost:8080';
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ import 'echarts/lib/component/dataZoom';
|
||||||
import 'echarts/lib/component/visualMap';
|
import 'echarts/lib/component/visualMap';
|
||||||
import 'echarts/lib/component/visualMapPiecewise';
|
import 'echarts/lib/component/visualMapPiecewise';
|
||||||
|
|
||||||
import { ClosedTrade } from '@/store/types';
|
import { ClosedTrade } from '@/types';
|
||||||
|
|
||||||
// Define Column labels here to avoid typos
|
// Define Column labels here to avoid typos
|
||||||
const CHART_PROFIT = 'Profit';
|
const CHART_PROFIT = 'Profit';
|
||||||
|
|
|
@ -12,7 +12,7 @@ import 'echarts/lib/component/title';
|
||||||
import 'echarts/lib/component/tooltip';
|
import 'echarts/lib/component/tooltip';
|
||||||
import 'echarts/lib/component/legend';
|
import 'echarts/lib/component/legend';
|
||||||
|
|
||||||
import { DailyReturnValue } from '@/store/types';
|
import { DailyReturnValue } from '@/types';
|
||||||
|
|
||||||
// Define Column labels here to avoid typos
|
// Define Column labels here to avoid typos
|
||||||
const CHART_ABS_PROFIT = 'Absolute profit';
|
const CHART_ABS_PROFIT = 'Absolute profit';
|
||||||
|
|
|
@ -15,7 +15,7 @@ import 'echarts/lib/component/legend';
|
||||||
import 'echarts/lib/component/visualMap';
|
import 'echarts/lib/component/visualMap';
|
||||||
import 'echarts/lib/component/visualMapPiecewise';
|
import 'echarts/lib/component/visualMapPiecewise';
|
||||||
|
|
||||||
import { Trade } from '@/store/types';
|
import { Trade } from '@/types';
|
||||||
import { timestampHour } from '@/shared/formatters';
|
import { timestampHour } from '@/shared/formatters';
|
||||||
|
|
||||||
// Define Column labels here to avoid typos
|
// Define Column labels here to avoid typos
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Component, Vue } from 'vue-property-decorator';
|
import { Component, Vue } from 'vue-property-decorator';
|
||||||
import { namespace } from 'vuex-class';
|
import { namespace } from 'vuex-class';
|
||||||
import { BalanceInterface } from '@/store/types';
|
import { BalanceInterface } from '@/types';
|
||||||
|
|
||||||
const ftbot = namespace('ftbot');
|
const ftbot = namespace('ftbot');
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Component, Vue } from 'vue-property-decorator';
|
import { Component, Vue } from 'vue-property-decorator';
|
||||||
import { namespace } from 'vuex-class';
|
import { namespace } from 'vuex-class';
|
||||||
import { BotState } from '@/store/types';
|
import { BotState } from '@/types';
|
||||||
import ForceBuyForm from './ForceBuyForm.vue';
|
import ForceBuyForm from './ForceBuyForm.vue';
|
||||||
|
|
||||||
const ftbot = namespace('ftbot');
|
const ftbot = namespace('ftbot');
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Component, Vue } from 'vue-property-decorator';
|
import { Component, Vue } from 'vue-property-decorator';
|
||||||
import { namespace } from 'vuex-class';
|
import { namespace } from 'vuex-class';
|
||||||
import { BotState } from '@/store/types';
|
import { BotState } from '@/types';
|
||||||
|
|
||||||
const ftbot = namespace('ftbot');
|
const ftbot = namespace('ftbot');
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Component, Vue } from 'vue-property-decorator';
|
import { Component, Vue } from 'vue-property-decorator';
|
||||||
import { namespace } from 'vuex-class';
|
import { namespace } from 'vuex-class';
|
||||||
import { BlacklistPayload, BlacklistResponse } from '@/store/types';
|
import { BlacklistPayload, BlacklistResponse } from '@/types';
|
||||||
|
|
||||||
const ftbot = namespace('ftbot');
|
const ftbot = namespace('ftbot');
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Component, Vue } from 'vue-property-decorator';
|
import { Component, Vue } from 'vue-property-decorator';
|
||||||
import { namespace } from 'vuex-class';
|
import { namespace } from 'vuex-class';
|
||||||
import { ForcebuyPayload } from '@/store/types';
|
import { ForcebuyPayload } from '@/types';
|
||||||
|
|
||||||
const ftbot = namespace('ftbot');
|
const ftbot = namespace('ftbot');
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Component, Vue } from 'vue-property-decorator';
|
import { Component, Vue } from 'vue-property-decorator';
|
||||||
import { namespace } from 'vuex-class';
|
import { namespace } from 'vuex-class';
|
||||||
import { Logs } from '@/store/types';
|
import { Logs } from '@/types';
|
||||||
|
|
||||||
const ftbot = namespace('ftbot');
|
const ftbot = namespace('ftbot');
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Component, Vue } from 'vue-property-decorator';
|
import { Component, Vue } from 'vue-property-decorator';
|
||||||
import { namespace } from 'vuex-class';
|
import { namespace } from 'vuex-class';
|
||||||
import { PerformanceEntry } from '@/store/types';
|
import { PerformanceEntry } from '@/types';
|
||||||
|
|
||||||
const ftbot = namespace('ftbot');
|
const ftbot = namespace('ftbot');
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ import { namespace } from 'vuex-class';
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
import { formatPercent } from '@/shared/formatters';
|
import { formatPercent } from '@/shared/formatters';
|
||||||
import { Trade } from '@/store/types';
|
import { Trade } from '@/types';
|
||||||
|
|
||||||
const ftbot = namespace('ftbot');
|
const ftbot = namespace('ftbot');
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
|
|
||||||
import { AuthPayload } from '@/store/types';
|
import { AuthPayload } from '@/types';
|
||||||
|
|
||||||
const AUTH_REFRESH_TOKEN = 'auth_ref_token';
|
const AUTH_REFRESH_TOKEN = 'auth_ref_token';
|
||||||
const AUTH_ACCESS_TOKEN = 'auth_access_token';
|
const AUTH_ACCESS_TOKEN = 'auth_access_token';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { api } from '@/shared/apiService';
|
import { api } from '@/shared/apiService';
|
||||||
import { BotState, BlacklistPayload, ForcebuyPayload, Logs, DailyPayload } from '@/store/types';
|
import { BotState, BlacklistPayload, ForcebuyPayload, Logs, DailyPayload } from '@/types';
|
||||||
|
|
||||||
export enum UserStoreGetters {
|
export enum UserStoreGetters {
|
||||||
openTrades = 'openTrades',
|
openTrades = 'openTrades',
|
||||||
|
|
1
src/types/index.ts
Normal file
1
src/types/index.ts
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export * from './types';
|
|
@ -14,7 +14,7 @@ import DailyChart from '@/components/charts/DailyChart.vue';
|
||||||
import HourlyChart from '@/components/charts/HourlyChart.vue';
|
import HourlyChart from '@/components/charts/HourlyChart.vue';
|
||||||
import CumProfitChart from '@/components/charts/CumProfitChart.vue';
|
import CumProfitChart from '@/components/charts/CumProfitChart.vue';
|
||||||
|
|
||||||
import { Trade, DailyReturnValue } from '@/store/types';
|
import { Trade, DailyReturnValue } from '@/types';
|
||||||
|
|
||||||
const ftbot = namespace('ftbot');
|
const ftbot = namespace('ftbot');
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@ import TradeDetail from '@/components/ftbot/TradeDetail.vue';
|
||||||
import ReloadControl from '@/components/ftbot/ReloadControl.vue';
|
import ReloadControl from '@/components/ftbot/ReloadControl.vue';
|
||||||
import LogViewer from '@/components/ftbot/LogViewer.vue';
|
import LogViewer from '@/components/ftbot/LogViewer.vue';
|
||||||
|
|
||||||
import { Trade } from '@/store/types';
|
import { Trade } from '@/types';
|
||||||
import { UserStoreGetters } from '@/store/modules/ftbot';
|
import { UserStoreGetters } from '@/store/modules/ftbot';
|
||||||
|
|
||||||
const ftbot = namespace('ftbot');
|
const ftbot = namespace('ftbot');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user