chore: lint files

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-03-31 21:30:23 +02:00
committed by Braks
parent 9d597ff454
commit f61e5beb02
69 changed files with 623 additions and 424 deletions
+6 -4
View File
@@ -10,15 +10,17 @@ const state = useStorage<FlowExportObject>(flowKey, {
zoom: 1,
})
const getNodeId = () => `randomnode_${+new Date()}`
function getNodeId() {
return `randomnode_${+new Date()}`
}
const { addNodes, setNodes, setEdges, toObject, dimensions, setTransform } = useVueFlow()
const onSave = () => {
function onSave() {
state.value = toObject()
}
const onRestore = () => {
function onRestore() {
const flow: FlowExportObject | null = state.value
if (flow) {
@@ -32,7 +34,7 @@ const onRestore = () => {
}
}
const onAdd = () => {
function onAdd() {
const newNode = {
id: `random_node-${getNodeId()}`,
label: 'Added node',