mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 10:21:55 +00:00
Merge pull request #741 from freqtrade/vue-tsc
use Vue tsc to check types
This commit is contained in:
commit
aea41dee26
|
@ -7,7 +7,7 @@
|
|||
"dev": "vite",
|
||||
"build": "vite build --mode prod",
|
||||
"test:unit": "jest",
|
||||
"check-types": "tsc --noemit",
|
||||
"check-types": "vue-tsc --noEmit",
|
||||
"lint": "eslint --ext .ts,vue src tests",
|
||||
"lint-ci": "eslint --no-fix --ext .ts,vue src tests",
|
||||
"cy:open": "cypress open",
|
||||
|
@ -65,6 +65,7 @@
|
|||
"vite": "^2.9.5",
|
||||
"vite-jest": "^0.1.4",
|
||||
"vite-plugin-vue2": "^1.5.1",
|
||||
"vue-template-compiler": "^2.6.14"
|
||||
"vue-template-compiler": "^2.6.14",
|
||||
"vue-tsc": "^0.34.10"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,6 +36,7 @@ import axios from 'axios';
|
|||
import ThemeLightDark from 'vue-material-design-icons/Brightness6.vue';
|
||||
import { FTHTMLStyleElement } from '@/types/styleElement';
|
||||
import { useSettingsStore } from '@/stores/settings';
|
||||
import { ThemeType } from '@/shared/themes';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'BootswatchThemeSelect',
|
||||
|
@ -48,7 +49,7 @@ export default defineComponent({
|
|||
},
|
||||
setup(props) {
|
||||
const activeTheme = ref('');
|
||||
const themeList = ref([]);
|
||||
const themeList = ref<ThemeType[]>([]);
|
||||
const settingsStore = useSettingsStore();
|
||||
|
||||
const setTheme = (themeName) => {
|
||||
|
|
|
@ -42,7 +42,7 @@ export default defineComponent({
|
|||
EditIcon,
|
||||
},
|
||||
props: {
|
||||
bot: { required: true, type: Object },
|
||||
bot: { required: true, type: Object as () => BotDescriptor },
|
||||
noButtons: { default: false, type: Boolean },
|
||||
},
|
||||
emits: ['edit'],
|
||||
|
|
|
@ -5,7 +5,7 @@ forceexit
|
|||
class="btn btn-secondary btn-sm ml-1"
|
||||
:disabled="!botStore.activeBot.isTrading || isRunning"
|
||||
title="Start Trading"
|
||||
@click="startBot()"
|
||||
@click="botStore.activeBot.startBot()"
|
||||
>
|
||||
<PlayIcon />
|
||||
</button>
|
||||
|
@ -59,7 +59,7 @@ forceexit
|
|||
:disabled="isTrading"
|
||||
class="btn btn-secondary btn-sm ml-1"
|
||||
title="Start Trading mode"
|
||||
@click="startTrade()"
|
||||
@click="botStore.activeBot.startTrade()"
|
||||
>
|
||||
<PlayIcon />
|
||||
</button>
|
||||
|
|
|
@ -22,7 +22,10 @@
|
|||
>,
|
||||
<strong
|
||||
>force entry:
|
||||
{{ botStore.activeBot.botState.force_entry_enable || botState.forcebuy_enabled }}</strong
|
||||
{{
|
||||
botStore.activeBot.botState.force_entry_enable ||
|
||||
botStore.activeBot.botState.forcebuy_enabled
|
||||
}}</strong
|
||||
>
|
||||
</p>
|
||||
<p>
|
||||
|
|
|
@ -229,7 +229,7 @@ export default defineComponent({
|
|||
|
||||
watch(
|
||||
() => botStore.activeBot.detailTradeId,
|
||||
(val: number) => {
|
||||
(val) => {
|
||||
const index = props.trades.findIndex((v) => v.trade_id === val);
|
||||
// Unselect when another tradeTable is selected!
|
||||
if (index < 0) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
export interface BalanceRecords {
|
||||
[key: string]: string | number | boolean | undefined;
|
||||
[key: string]: string | number;
|
||||
balance: number;
|
||||
currency: string;
|
||||
est_stake: number;
|
||||
|
@ -7,10 +7,11 @@ export interface BalanceRecords {
|
|||
used: number;
|
||||
stake: string;
|
||||
// Properties added in v 2.x
|
||||
side?: string;
|
||||
leverage?: number;
|
||||
is_position: boolean;
|
||||
position?: number;
|
||||
// Temporarily disabled to fix type errors
|
||||
// side: string;
|
||||
// leverage: number;
|
||||
// is_position: boolean;
|
||||
// position: number;
|
||||
}
|
||||
|
||||
export interface BalanceInterface {
|
||||
|
|
24
src/types/vue-grid-item.d.ts
vendored
24
src/types/vue-grid-item.d.ts
vendored
|
@ -1,16 +1,16 @@
|
|||
/* eslint-disable max-classes-per-file */
|
||||
declare module 'vue-grid-layout' {
|
||||
import Vue from 'vue';
|
||||
// declare module 'vue-grid-layout' {
|
||||
// import Vue from 'vue';
|
||||
|
||||
export class GridLayout extends Vue {}
|
||||
// export class GridLayout extends Vue {}
|
||||
|
||||
export class GridItem extends Vue {}
|
||||
// export class GridItem extends Vue {}
|
||||
|
||||
export interface GridItemData {
|
||||
x: number;
|
||||
y: number;
|
||||
w: number;
|
||||
h: number;
|
||||
i: string;
|
||||
}
|
||||
}
|
||||
// export interface GridItemData {
|
||||
// x: number;
|
||||
// y: number;
|
||||
// w: number;
|
||||
// h: number;
|
||||
// i: string;
|
||||
// }
|
||||
// }
|
||||
|
|
115
yarn.lock
115
yarn.lock
|
@ -466,6 +466,11 @@
|
|||
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.16.3.tgz#271bafcb811080905a119222edbc17909c82261d"
|
||||
integrity sha512-dcNwU1O4sx57ClvLBVFbEgx0UZWfd0JQX5X6fxFRCLHelFBGXFfSz6Y0FAq2PEwUqlqLkdVjVr4VASEOuUnLJw==
|
||||
|
||||
"@babel/parser@^7.16.4":
|
||||
version "7.17.9"
|
||||
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.17.9.tgz#9c94189a6062f0291418ca021077983058e171ef"
|
||||
integrity sha512-vqUSBLP8dQHFPdPi9bc5GK9vRkYHJ49fsZdtoJ8EQ8ibpwk5rPKfvNIwChB0KVXcIjcepEBBd2VHC5r9Gy8ueg==
|
||||
|
||||
"@babel/parser@^7.17.0":
|
||||
version "7.17.0"
|
||||
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.17.0.tgz#f0ac33eddbe214e4105363bb17c3341c5ffcc43c"
|
||||
|
@ -1361,6 +1366,40 @@
|
|||
"@typescript-eslint/types" "5.20.0"
|
||||
eslint-visitor-keys "^3.0.0"
|
||||
|
||||
"@volar/code-gen@0.34.10":
|
||||
version "0.34.10"
|
||||
resolved "https://registry.yarnpkg.com/@volar/code-gen/-/code-gen-0.34.10.tgz#1dfd71eff7c10c925ef9bc830f26e19531e99637"
|
||||
integrity sha512-Pygl26uA4CuQcDgNndeTSNOYF+NbShcV+rwWRy/nRNv1JB++1EbaQ60/ti8c5zTRoL4a8OtipKMq9Sw8LzpRIw==
|
||||
dependencies:
|
||||
"@volar/source-map" "0.34.10"
|
||||
|
||||
"@volar/source-map@0.34.10":
|
||||
version "0.34.10"
|
||||
resolved "https://registry.yarnpkg.com/@volar/source-map/-/source-map-0.34.10.tgz#bf29ea7a983882c26f5ad906085ac8ddd2bc23a0"
|
||||
integrity sha512-DBSUGNJB2B08U6Ut14ZJSEOcBS7eV/aiinhoLbMrEe/HJtZRcnPuyE8f0c2BvmRM2LK8WQx77V54/lw/Ra8WDA==
|
||||
|
||||
"@volar/vue-code-gen@0.34.10":
|
||||
version "0.34.10"
|
||||
resolved "https://registry.yarnpkg.com/@volar/vue-code-gen/-/vue-code-gen-0.34.10.tgz#d84d18411fff99265313ad83e9df9ccd82b76c95"
|
||||
integrity sha512-oK5gat5AHllSMJzY+UMbttJvAjoUGzicXxLHoIwb6DTHpfcf2pADYUndiw5kSYHo+2Xd/+U1c9D8FUOJ+JHAFw==
|
||||
dependencies:
|
||||
"@volar/code-gen" "0.34.10"
|
||||
"@volar/source-map" "0.34.10"
|
||||
"@vue/compiler-core" "^3.2.31"
|
||||
"@vue/compiler-dom" "^3.2.31"
|
||||
"@vue/shared" "^3.2.31"
|
||||
|
||||
"@volar/vue-typescript@0.34.10":
|
||||
version "0.34.10"
|
||||
resolved "https://registry.yarnpkg.com/@volar/vue-typescript/-/vue-typescript-0.34.10.tgz#c62e5d4d8faa97d2135d2f17d80c53e2495d9e95"
|
||||
integrity sha512-FCGSqLC+T/AcBUFXoFniPKLa/fLslBuHsepUmId8dG5ROXZhQaJ5h4fkA87247SWb7z4o9mI6v86xevXEjRVKw==
|
||||
dependencies:
|
||||
"@volar/code-gen" "0.34.10"
|
||||
"@volar/source-map" "0.34.10"
|
||||
"@volar/vue-code-gen" "0.34.10"
|
||||
"@vue/compiler-sfc" "^3.2.31"
|
||||
"@vue/reactivity" "^3.2.31"
|
||||
|
||||
"@vue/babel-helper-vue-jsx-merge-props@^1.2.1":
|
||||
version "1.2.1"
|
||||
resolved "https://registry.yarnpkg.com/@vue/babel-helper-vue-jsx-merge-props/-/babel-helper-vue-jsx-merge-props-1.2.1.tgz#31624a7a505fb14da1d58023725a4c5f270e6a81"
|
||||
|
@ -1441,6 +1480,48 @@
|
|||
"@vue/babel-plugin-transform-vue-jsx" "^1.2.1"
|
||||
camelcase "^5.0.0"
|
||||
|
||||
"@vue/compiler-core@3.2.33", "@vue/compiler-core@^3.2.31":
|
||||
version "3.2.33"
|
||||
resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.2.33.tgz#e915d59cce85898f5c5cfebe4c09e539278c3d59"
|
||||
integrity sha512-AAmr52ji3Zhk7IKIuigX2osWWsb2nQE5xsdFYjdnmtQ4gymmqXbjLvkSE174+fF3A3kstYrTgGkqgOEbsdLDpw==
|
||||
dependencies:
|
||||
"@babel/parser" "^7.16.4"
|
||||
"@vue/shared" "3.2.33"
|
||||
estree-walker "^2.0.2"
|
||||
source-map "^0.6.1"
|
||||
|
||||
"@vue/compiler-dom@3.2.33", "@vue/compiler-dom@^3.2.31":
|
||||
version "3.2.33"
|
||||
resolved "https://registry.yarnpkg.com/@vue/compiler-dom/-/compiler-dom-3.2.33.tgz#6db84296f949f18e5d3e7fd5e80f943dbed7d5ec"
|
||||
integrity sha512-GhiG1C8X98Xz9QUX/RlA6/kgPBWJkjq0Rq6//5XTAGSYrTMBgcLpP9+CnlUg1TFxnnCVughAG+KZl28XJqw8uQ==
|
||||
dependencies:
|
||||
"@vue/compiler-core" "3.2.33"
|
||||
"@vue/shared" "3.2.33"
|
||||
|
||||
"@vue/compiler-sfc@^3.2.31":
|
||||
version "3.2.33"
|
||||
resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-3.2.33.tgz#7ce01dc947a8b76c099811dc6ca58494d4dc773d"
|
||||
integrity sha512-H8D0WqagCr295pQjUYyO8P3IejM3vEzeCO1apzByAEaAR/WimhMYczHfZVvlCE/9yBaEu/eu9RdiWr0kF8b71Q==
|
||||
dependencies:
|
||||
"@babel/parser" "^7.16.4"
|
||||
"@vue/compiler-core" "3.2.33"
|
||||
"@vue/compiler-dom" "3.2.33"
|
||||
"@vue/compiler-ssr" "3.2.33"
|
||||
"@vue/reactivity-transform" "3.2.33"
|
||||
"@vue/shared" "3.2.33"
|
||||
estree-walker "^2.0.2"
|
||||
magic-string "^0.25.7"
|
||||
postcss "^8.1.10"
|
||||
source-map "^0.6.1"
|
||||
|
||||
"@vue/compiler-ssr@3.2.33":
|
||||
version "3.2.33"
|
||||
resolved "https://registry.yarnpkg.com/@vue/compiler-ssr/-/compiler-ssr-3.2.33.tgz#3e820267e4eea48fde9519f006dedca3f5e42e71"
|
||||
integrity sha512-XQh1Xdk3VquDpXsnoCd7JnMoWec9CfAzQDQsaMcSU79OrrO2PNR0ErlIjm/mGq3GmBfkQjzZACV+7GhfRB8xMQ==
|
||||
dependencies:
|
||||
"@vue/compiler-dom" "3.2.33"
|
||||
"@vue/shared" "3.2.33"
|
||||
|
||||
"@vue/component-compiler-utils@^3.2.2":
|
||||
version "3.3.0"
|
||||
resolved "https://registry.yarnpkg.com/@vue/component-compiler-utils/-/component-compiler-utils-3.3.0.tgz#f9f5fb53464b0c37b2c8d2f3fbfe44df60f61dc9"
|
||||
|
@ -1481,6 +1562,29 @@
|
|||
dependencies:
|
||||
vue-eslint-parser "^7.0.0"
|
||||
|
||||
"@vue/reactivity-transform@3.2.33":
|
||||
version "3.2.33"
|
||||
resolved "https://registry.yarnpkg.com/@vue/reactivity-transform/-/reactivity-transform-3.2.33.tgz#286063f44ca56150ae9b52f8346a26e5913fa699"
|
||||
integrity sha512-4UL5KOIvSQb254aqenW4q34qMXbfZcmEsV/yVidLUgvwYQQ/D21bGX3DlgPUGI3c4C+iOnNmDCkIxkILoX/Pyw==
|
||||
dependencies:
|
||||
"@babel/parser" "^7.16.4"
|
||||
"@vue/compiler-core" "3.2.33"
|
||||
"@vue/shared" "3.2.33"
|
||||
estree-walker "^2.0.2"
|
||||
magic-string "^0.25.7"
|
||||
|
||||
"@vue/reactivity@^3.2.31":
|
||||
version "3.2.33"
|
||||
resolved "https://registry.yarnpkg.com/@vue/reactivity/-/reactivity-3.2.33.tgz#c84eedb5225138dbfc2472864c151d3efbb4b673"
|
||||
integrity sha512-62Sq0mp9/0bLmDuxuLD5CIaMG2susFAGARLuZ/5jkU1FCf9EDbwUuF+BO8Ub3Rbodx0ziIecM/NsmyjardBxfQ==
|
||||
dependencies:
|
||||
"@vue/shared" "3.2.33"
|
||||
|
||||
"@vue/shared@3.2.33", "@vue/shared@^3.2.31":
|
||||
version "3.2.33"
|
||||
resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.2.33.tgz#69a8c99ceb37c1b031d5cc4aec2ff1dc77e1161e"
|
||||
integrity sha512-UBc1Pg1T3yZ97vsA2ueER0F6GbJebLHYlEi4ou1H5YL4KWvMOOWwpYo9/QpWq93wxKG6Wo13IY74Hcn/f7c7Bg==
|
||||
|
||||
"@vue/test-utils@^1.1.3", "@vue/test-utils@^1.3.0":
|
||||
version "1.3.0"
|
||||
resolved "https://registry.yarnpkg.com/@vue/test-utils/-/test-utils-1.3.0.tgz#d563decdcd9c68a7bca151d4179a2bfd6d5c3e15"
|
||||
|
@ -2684,7 +2788,7 @@ estraverse@^5.1.0, estraverse@^5.2.0:
|
|||
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123"
|
||||
integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==
|
||||
|
||||
estree-walker@^2.0.1:
|
||||
estree-walker@^2.0.1, estree-walker@^2.0.2:
|
||||
version "2.0.2"
|
||||
resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac"
|
||||
integrity sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==
|
||||
|
@ -4409,7 +4513,7 @@ postcss@^7.0.36:
|
|||
picocolors "^0.2.1"
|
||||
source-map "^0.6.1"
|
||||
|
||||
postcss@^8.4.12:
|
||||
postcss@^8.1.10, postcss@^8.4.12:
|
||||
version "8.4.12"
|
||||
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.12.tgz#1e7de78733b28970fa4743f7da6f3763648b1905"
|
||||
integrity sha512-lg6eITwYe9v6Hr5CncVbK70SoioNQIq81nsaG86ev5hAidQvmOeETBqs7jm43K2F5/Ley3ytDtriImV6TpNiSg==
|
||||
|
@ -5314,6 +5418,13 @@ vue-template-es2015-compiler@^1.9.0, vue-template-es2015-compiler@^1.9.1:
|
|||
resolved "https://registry.yarnpkg.com/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.9.1.tgz#1ee3bc9a16ecbf5118be334bb15f9c46f82f5825"
|
||||
integrity sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==
|
||||
|
||||
vue-tsc@^0.34.10:
|
||||
version "0.34.10"
|
||||
resolved "https://registry.yarnpkg.com/vue-tsc/-/vue-tsc-0.34.10.tgz#f23b00ee53b74e484d55841b685ab69ecfd295a4"
|
||||
integrity sha512-rWU4SjDqk9ylQN2hbnyP+rEu8W2a712DWUmciX6rDnId1m8sN/cuypTKjWjHHjaBLWNKULoEakRTOvrQ4ainhw==
|
||||
dependencies:
|
||||
"@volar/vue-typescript" "0.34.10"
|
||||
|
||||
vue2-helpers@^1.1.7:
|
||||
version "1.1.7"
|
||||
resolved "https://registry.yarnpkg.com/vue2-helpers/-/vue2-helpers-1.1.7.tgz#f105313979af0260ef446c583fd2fa75b067afd1"
|
||||
|
|
Loading…
Reference in New Issue
Block a user