style: apply fmt
This commit is contained in:
parent
910ae2ba2e
commit
314073ffc8
|
@ -12,8 +12,8 @@ import { siteDb } from './site_db_manual.ts'
|
||||||
export function App() {
|
export function App() {
|
||||||
return (
|
return (
|
||||||
<main>
|
<main>
|
||||||
<h1>Live example</h1>
|
<h1>Live example</h1>
|
||||||
<DbGraph db={siteDb} />
|
<DbGraph db={siteDb} />
|
||||||
</main>
|
</main>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,6 @@ export function DbGraph({ db }: { db: DbEntry[] }) {
|
||||||
* @param graph - Container html reference.
|
* @param graph - Container html reference.
|
||||||
*/
|
*/
|
||||||
function drawDb({ db, graph }: { db: DbEntry[]; graph: Ref<HTMLDivElement> }) {
|
function drawDb({ db, graph }: { db: DbEntry[]; graph: Ref<HTMLDivElement> }) {
|
||||||
|
|
||||||
//Convert db entries to "vis-network" nodes
|
//Convert db entries to "vis-network" nodes
|
||||||
const nodes = db.map(({ id, title, links }) => ({
|
const nodes = db.map(({ id, title, links }) => ({
|
||||||
id,
|
id,
|
||||||
|
|
Loading…
Reference in a new issue