Skip to content

Commit

Permalink
Fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
DM1122 committed Jun 27, 2023
1 parent c1db9de commit f3d971e
Showing 1 changed file with 47 additions and 47 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Meta, Story } from "@storybook/angular"
import { NodeDirectoryComponent } from "/workspaces/tree-visualizer/client/src/app/components/node-directory/node-directory.component"
import { NodeDirectoryComponent } from "./node-directory.component"
import { action } from "@storybook/addon-actions"
import * as go from "gojs"

Expand All @@ -12,54 +12,54 @@ const Template: Story = (args) => ({
})

const model: go.TreeModel = new go.TreeModel({
nodeKeyProperty: "id",
nodeDataArray: [
{
id: "ff5892a7-b5c9-4a25-97bd-663b2cff5bd7",
parent: "",
title: "UTAT-Team-A",
qualifier: "SHALL",
type: "Performance",
description: "A description",
rationale: "A rationale",
url: "https://www.notion.so/UTAT-Team-A-74331bc1129c417c850a0a5ca0deb759",
},
{
id: "123456789",
parent: "ff5892a7-b5c9-4a25-97bd-663b2cff5bd7",
title: "UTAT-Team-B",
qualifier: "SHOULD",
type: "Constraint",
description: "Another description",
rationale: "A rationale",
url: "https://www.notion.so/Child-1-123456789",
},
{
id: "abcdefghi",
parent: "ff5892a7-b5c9-4a25-97bd-663b2cff5bd7",
title: "UTAT-Team-C",
qualifier: "SHALL",
type: "Component Selection",
description:
"A very long form description that may or may not exceed the width of the node. The quick brown fox jumps over the lazy dog. Octopuses have several tentacles. Icecream is cold. Did you know that lava is warm? Lava cake with an ice cream scoop on the side is delicious.",
rationale: "A rationale",
url: "https://www.notion.so/Child-2-abcdefghi",
},
{
id: "qwertyuiop",
parent: "123456789",
title: "UTAT-Team-D",
qualifier: "SHOULD",
type: "A type",
description: "Yet another description that is just a little bit longer",
rationale: "A rationale",
url: "https://www.notion.so/Grandchild-1-qwertyuiop",
},
],
});
nodeKeyProperty: "id",
nodeDataArray: [
{
id: "ff5892a7-b5c9-4a25-97bd-663b2cff5bd7",
parent: "",
title: "UTAT-Team-A",
qualifier: "SHALL",
type: "Performance",
description: "A description",
rationale: "A rationale",
url: "https://www.notion.so/UTAT-Team-A-74331bc1129c417c850a0a5ca0deb759",
},
{
id: "123456789",
parent: "ff5892a7-b5c9-4a25-97bd-663b2cff5bd7",
title: "UTAT-Team-B",
qualifier: "SHOULD",
type: "Constraint",
description: "Another description",
rationale: "A rationale",
url: "https://www.notion.so/Child-1-123456789",
},
{
id: "abcdefghi",
parent: "ff5892a7-b5c9-4a25-97bd-663b2cff5bd7",
title: "UTAT-Team-C",
qualifier: "SHALL",
type: "Component Selection",
description:
"A very long form description that may or may not exceed the width of the node. The quick brown fox jumps over the lazy dog. Octopuses have several tentacles. Icecream is cold. Did you know that lava is warm? Lava cake with an ice cream scoop on the side is delicious.",
rationale: "A rationale",
url: "https://www.notion.so/Child-2-abcdefghi",
},
{
id: "qwertyuiop",
parent: "123456789",
title: "UTAT-Team-D",
qualifier: "SHOULD",
type: "A type",
description: "Yet another description that is just a little bit longer",
rationale: "A rationale",
url: "https://www.notion.so/Grandchild-1-qwertyuiop",
},
],
})

export const Default = Template.bind({})
Default.args = {
model,
nodeClicked: action("nodeClicked"),
}
}

0 comments on commit f3d971e

Please sign in to comment.