Skip to content

Commit 6cf9ec4

Browse files
committed
props
1 parent 24c943d commit 6cf9ec4

File tree

6 files changed

+13
-12
lines changed

6 files changed

+13
-12
lines changed

src/utils/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Dictionary, Point, Links, Link } from "./types"
1+
import { Dictionary, Link, Links, Point } from "./types"
22

33
/** filter function for links ensure we match clab_far.clab_node */
44
export function fFarEndNode(far: string) {

src/utils/message.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { h, VNodeChild } from "vue"
1+
import { VNodeChild, h } from "vue"
22
import {
33
MessageApi,
44
MessageOptions,

src/utils/websocket.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useEventBus } from "@vueuse/core"
2-
import { Dictionary, Context, NodeProps, vngLayouts } from "@/utils/types"
2+
import { Context, Dictionary, NodeProps, vngLayouts } from "@/utils/types"
33

44
export interface Options {
55
layout: string

test/const.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { test, expect } from "vitest"
2-
import { base_uri, localhost, ws_uri, api_uri } from "../src/utils/const"
1+
import { expect, test } from "vitest"
2+
import { api_uri, base_uri, localhost, ws_uri } from "../src/utils/const"
33

44
test("const", async () => {
55
expect(base_uri === "/labctl/")

test/helpers.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { test, expect } from "vitest"
1+
import { expect, test } from "vitest"
22
import {
3-
parseTemplateFN,
4-
labelDirection,
53
TTemplateFN,
4+
labelDirection,
5+
parseTemplateFN,
66
} from "../src/utils/helpers"
7-
import { Point, Links, Link } from "../src/utils/types"
7+
import { Link, Links, Point } from "../src/utils/types"
88

99
test("label position", async () => {
1010
const nodes = {

test/utils.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { test, expect } from "vitest"
2-
import { sortDictionary, isObject } from "../src/utils/utils"
1+
import { expect, test } from "vitest"
2+
import { isObject, sortDictionary } from "../src/utils/utils"
33

4+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
45
function comp(a: any, b: any) {
56
return a.localeCompare(b)
67
}
@@ -11,7 +12,7 @@ test("sortDictionary", () => {
1112
{ b: 1, a: 2 },
1213
{ a: 1, b: 2 },
1314
],
14-
] as Array<Array<Record<string, any>>>
15+
] as Array<Array<Record<string, unknown>>>
1516

1617
tests.map((t) => {
1718
let res = sortDictionary(t[1], comp)

0 commit comments

Comments
 (0)