Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/App.tsx → examples/App.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { GraphView } from './lib/components/Graph';
import { GraphView } from '../src/lib/Graph';
import graphData from '../graphData.json';

const App = () => {
return (
<GraphView
data={graphData}
className='graph-widget'
variant='arrow'
/>
)
}
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/asimov.svg" />
<link rel="icon" type="image/svg+xml" href="/public/asimov.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ASIMOV Graph Widget</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<script type="module" src="/examples/main.tsx"></script>
</body>
</html>
480 changes: 278 additions & 202 deletions package-lock.json

Large diffs are not rendered by default.

File renamed without changes
1 change: 0 additions & 1 deletion public/vite.svg

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/lib/main.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './components/Graph';
export * from './Graph';
2 changes: 1 addition & 1 deletion tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true
},
"include": ["src"]
"include": ["src", "examples"],
}
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default defineConfig({
react(),
dts({
tsconfigPath: './tsconfig.app.json',
exclude: ['src/App.tsx', 'src/main.tsx', 'src/index.css'],
exclude: ['examples'],
})
],
build: {
Expand Down