Skip to content

Commit

Permalink
[storybook] Cleans data.json
Browse files Browse the repository at this point in the history
Details:
- Moves data.json from public to stories/_data (new folder)
- Removes other local data.json that were in some stories, and replaced
  them by stories/_data/data.json
  • Loading branch information
jacomyal committed Jul 19, 2024
1 parent b689f23 commit db68f5a
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 8,430 deletions.
File renamed without changes.
2,808 changes: 0 additions & 2,808 deletions packages/storybook/stories/events/data.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/storybook/stories/events/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import Graph from "graphology";
import Sigma from "sigma";
import { MouseCoords } from "sigma/types";

import data from "../_data/data.json";
import { onStoryDown } from "../utils";
import data from "./data.json";

export default () => {
const container = document.getElementById("sigma-container") as HTMLElement;
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/stories/layer-webgl/contour-line.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import louvain from "graphology-communities-louvain";
import iwanthue from "iwanthue";
import Sigma from "sigma";

import data from "../../public/data.json";
import data from "../_data/data.json";
import { onStoryDown } from "../utils";

export default () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { bindWebGLLayer, createMetaballsProgram } from "@sigma/layer-webgl";
import Graph from "graphology";
import Sigma from "sigma";

import data from "../../public/data.json";
import data from "../_data/data.json";
import { onStoryDown } from "../utils";

export default () => {
Expand Down
Loading

0 comments on commit db68f5a

Please sign in to comment.