feat: add storage for eqp

This commit is contained in:
SikongJueluo 2025-07-09 21:21:07 +08:00
parent bbad7388d8
commit 48501d79e2
No known key found for this signature in database
2 changed files with 3 additions and 33 deletions

View File

@ -1,5 +1,6 @@
import { ref, reactive, watchPostEffect } from 'vue' import { ref, reactive, watchPostEffect } from 'vue'
import { defineStore } from 'pinia' import { defineStore } from 'pinia'
import { useLocalStorage } from '@vueuse/core'
import { isString, toNumber } from 'lodash'; import { isString, toNumber } from 'lodash';
import { Common } from '@/utils/Common'; import { Common } from '@/utils/Common';
import z from "zod" import z from "zod"
@ -14,9 +15,8 @@ export const useEquipments = defineStore('equipments', () => {
const constrainsts = useConstraintsStore(); const constrainsts = useConstraintsStore();
const dialog = useDialogStore(); const dialog = useDialogStore();
// Basic Info const boardAddr = useLocalStorage('fpga-board-addr', "127.0.0.1");
const boardAddr = ref("127.0.0.1"); const boardPort = useLocalStorage('fpga-board-port', 1234);
const boardPort = ref(1234);
// Jtag // Jtag
const jtagBitstream = ref<File>(); const jtagBitstream = ref<File>();

View File

@ -1,30 +0,0 @@
import Konva from "konva";
import type { VueElement } from "vue";
interface VNode extends VueElement {
getNode(): Konva.Node
}
interface VLayer extends VueElement {
getNode(): Konva.Layer
}
interface VGroup extends VueElement {
getNode(): Konva.Group
}
interface VStage extends VueElement {
getNode(): Konva.Stage
}
interface VTransformer extends VueElement {
getNode(): Konva.Transformer
}
export type {
VNode,
VLayer,
VGroup,
VStage,
VTransformer,
}