fix tsconfig
This commit is contained in:
@@ -1,12 +1,13 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { iskFormater } from '@/utils';
|
import { iskFormater } from '@/utils';
|
||||||
|
import { useStorage } from '@vueuse/core';
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import ReprocessInput from './ReprocessInput.vue';
|
import ReprocessInput from './ReprocessInput.vue';
|
||||||
import { ReprocessItemValues, reprocess } from './reprocess';
|
import { ReprocessItemValues, reprocess } from './reprocess';
|
||||||
|
|
||||||
const items = ref("");
|
const items = ref("");
|
||||||
const minerals = ref("");
|
const minerals = ref("");
|
||||||
const efficiency = ref(0.55);
|
const efficiency = useStorage('reprocess-efficiency', 0.55);
|
||||||
|
|
||||||
const result = ref<ReprocessItemValues[]>([]);
|
const result = ref<ReprocessItemValues[]>([]);
|
||||||
|
|
||||||
@@ -28,8 +29,8 @@ const send = async () => result.value = await reprocess(items.value, minerals.va
|
|||||||
<div class="grid mt-2 px-4">
|
<div class="grid mt-2 px-4">
|
||||||
<button class="py-0.5 px-2 justify-self-end border rounded bg-slate-200" @click="send">Send</button>
|
<button class="py-0.5 px-2 justify-self-end border rounded bg-slate-200" @click="send">Send</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid mt-2 px-4">
|
<div v-if="result.length > 0" class="grid mt-2 px-4">
|
||||||
<table v-if="result.length > 0" class="table-auto border-collapse border w-full">
|
<table class="table-auto border-collapse border w-full">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="border bg-slate-200">Item</th>
|
<th class="border bg-slate-200">Item</th>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { apiAxiosInstance } from "../service";
|
import { apiAxiosInstance } from "@/service";
|
||||||
|
|
||||||
export type ReprocessItemValues = {
|
export type ReprocessItemValues = {
|
||||||
typeID: number;
|
typeID: number;
|
||||||
|
|||||||
@@ -18,7 +18,15 @@
|
|||||||
"strict": true,
|
"strict": true,
|
||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
"noUnusedParameters": true,
|
"noUnusedParameters": true,
|
||||||
"noFallthroughCasesInSwitch": true
|
"noFallthroughCasesInSwitch": true,
|
||||||
|
"paths": {
|
||||||
|
"@/*": [
|
||||||
|
"./src/*"
|
||||||
|
],
|
||||||
|
"src/*": [
|
||||||
|
"./src/*"
|
||||||
|
]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
|
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
|
||||||
"references": [{ "path": "./tsconfig.node.json" }]
|
"references": [{ "path": "./tsconfig.node.json" }]
|
||||||
|
|||||||
Reference in New Issue
Block a user