feat: add storage for eqp
This commit is contained in:
		@@ -1,5 +1,6 @@
 | 
			
		||||
import { ref, reactive, watchPostEffect } from 'vue'
 | 
			
		||||
import { defineStore } from 'pinia'
 | 
			
		||||
import { useLocalStorage } from '@vueuse/core'
 | 
			
		||||
import { isString, toNumber } from 'lodash';
 | 
			
		||||
import { Common } from '@/utils/Common';
 | 
			
		||||
import z from "zod"
 | 
			
		||||
@@ -14,9 +15,8 @@ export const useEquipments = defineStore('equipments', () => {
 | 
			
		||||
  const constrainsts = useConstraintsStore();
 | 
			
		||||
  const dialog = useDialogStore();
 | 
			
		||||
 | 
			
		||||
  // Basic Info
 | 
			
		||||
  const boardAddr = ref("127.0.0.1");
 | 
			
		||||
  const boardPort = ref(1234);
 | 
			
		||||
  const boardAddr = useLocalStorage('fpga-board-addr', "127.0.0.1");
 | 
			
		||||
  const boardPort = useLocalStorage('fpga-board-port', 1234);
 | 
			
		||||
 | 
			
		||||
  // Jtag
 | 
			
		||||
  const jtagBitstream = ref<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,
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user