mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 10:21:55 +00:00
chore: more to utils
This commit is contained in:
parent
fc306cf14d
commit
2bc363183e
3
src/auto-imports.d.ts
vendored
3
src/auto-imports.d.ts
vendored
|
@ -52,6 +52,7 @@ declare global {
|
||||||
const exportForTesting: typeof import('./utils/formatters/timeformat')['exportForTesting']
|
const exportForTesting: typeof import('./utils/formatters/timeformat')['exportForTesting']
|
||||||
const extendRef: typeof import('@vueuse/core')['extendRef']
|
const extendRef: typeof import('@vueuse/core')['extendRef']
|
||||||
const findGridLayout: typeof import('./stores/layout')['findGridLayout']
|
const findGridLayout: typeof import('./stores/layout')['findGridLayout']
|
||||||
|
const formatObjectForTable: typeof import('./utils/objectToTableItems')['formatObjectForTable']
|
||||||
const formatPercent: typeof import('./utils/formatters/numberformat')['formatPercent']
|
const formatPercent: typeof import('./utils/formatters/numberformat')['formatPercent']
|
||||||
const formatPrice: typeof import('./utils/formatters/numberformat')['formatPrice']
|
const formatPrice: typeof import('./utils/formatters/numberformat')['formatPrice']
|
||||||
const formatPriceCurrency: typeof import('./utils/formatters/numberformat')['formatPriceCurrency']
|
const formatPriceCurrency: typeof import('./utils/formatters/numberformat')['formatPriceCurrency']
|
||||||
|
@ -406,6 +407,7 @@ declare module 'vue' {
|
||||||
readonly exportForTesting: UnwrapRef<typeof import('./utils/formatters/timeformat')['exportForTesting']>
|
readonly exportForTesting: UnwrapRef<typeof import('./utils/formatters/timeformat')['exportForTesting']>
|
||||||
readonly extendRef: UnwrapRef<typeof import('@vueuse/core')['extendRef']>
|
readonly extendRef: UnwrapRef<typeof import('@vueuse/core')['extendRef']>
|
||||||
readonly findGridLayout: UnwrapRef<typeof import('./stores/layout')['findGridLayout']>
|
readonly findGridLayout: UnwrapRef<typeof import('./stores/layout')['findGridLayout']>
|
||||||
|
readonly formatObjectForTable: UnwrapRef<typeof import('./utils/objectToTableItems')['formatObjectForTable']>
|
||||||
readonly formatPercent: UnwrapRef<typeof import('./utils/formatters/numberformat')['formatPercent']>
|
readonly formatPercent: UnwrapRef<typeof import('./utils/formatters/numberformat')['formatPercent']>
|
||||||
readonly formatPrice: UnwrapRef<typeof import('./utils/formatters/numberformat')['formatPrice']>
|
readonly formatPrice: UnwrapRef<typeof import('./utils/formatters/numberformat')['formatPrice']>
|
||||||
readonly formatPriceCurrency: UnwrapRef<typeof import('./utils/formatters/numberformat')['formatPriceCurrency']>
|
readonly formatPriceCurrency: UnwrapRef<typeof import('./utils/formatters/numberformat')['formatPriceCurrency']>
|
||||||
|
@ -751,6 +753,7 @@ declare module '@vue/runtime-core' {
|
||||||
readonly exportForTesting: UnwrapRef<typeof import('./utils/formatters/timeformat')['exportForTesting']>
|
readonly exportForTesting: UnwrapRef<typeof import('./utils/formatters/timeformat')['exportForTesting']>
|
||||||
readonly extendRef: UnwrapRef<typeof import('@vueuse/core')['extendRef']>
|
readonly extendRef: UnwrapRef<typeof import('@vueuse/core')['extendRef']>
|
||||||
readonly findGridLayout: UnwrapRef<typeof import('./stores/layout')['findGridLayout']>
|
readonly findGridLayout: UnwrapRef<typeof import('./stores/layout')['findGridLayout']>
|
||||||
|
readonly formatObjectForTable: UnwrapRef<typeof import('./utils/objectToTableItems')['formatObjectForTable']>
|
||||||
readonly formatPercent: UnwrapRef<typeof import('./utils/formatters/numberformat')['formatPercent']>
|
readonly formatPercent: UnwrapRef<typeof import('./utils/formatters/numberformat')['formatPercent']>
|
||||||
readonly formatPrice: UnwrapRef<typeof import('./utils/formatters/numberformat')['formatPrice']>
|
readonly formatPrice: UnwrapRef<typeof import('./utils/formatters/numberformat')['formatPrice']>
|
||||||
readonly formatPriceCurrency: UnwrapRef<typeof import('./utils/formatters/numberformat')['formatPriceCurrency']>
|
readonly formatPriceCurrency: UnwrapRef<typeof import('./utils/formatters/numberformat')['formatPriceCurrency']>
|
||||||
|
|
|
@ -74,7 +74,6 @@
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { StrategyBacktestResult } from '@/types';
|
import { StrategyBacktestResult } from '@/types';
|
||||||
import { formatObjectForTable } from '@/shared/objectToTableItems';
|
|
||||||
|
|
||||||
import { generateBacktestMetricRows, generateBacktestSettingRows } from '@/shared/backtestMetrics';
|
import { generateBacktestMetricRows, generateBacktestSettingRows } from '@/shared/backtestMetrics';
|
||||||
import { TableField } from 'bootstrap-vue-next';
|
import { TableField } from 'bootstrap-vue-next';
|
||||||
|
|
|
@ -29,7 +29,6 @@
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { BacktestResultInMemory } from '@/types';
|
import { BacktestResultInMemory } from '@/types';
|
||||||
import { formatObjectForTable } from '@/shared/objectToTableItems';
|
|
||||||
|
|
||||||
import { generateBacktestMetricRows } from '@/shared/backtestMetrics';
|
import { generateBacktestMetricRows } from '@/shared/backtestMetrics';
|
||||||
import { TableField } from 'bootstrap-vue-next';
|
import { TableField } from 'bootstrap-vue-next';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { describe, it, expect } from 'vitest';
|
import { describe, it, expect } from 'vitest';
|
||||||
import { formatObjectForTable } from '@/shared/objectToTableItems';
|
import { formatObjectForTable } from '@/utils/objectToTableItems';
|
||||||
|
|
||||||
describe('objectArray.ts', () => {
|
describe('objectArray.ts', () => {
|
||||||
it('converts object array', () => {
|
it('converts object array', () => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user