Show graph in sidebar-right
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Peter Stuifzand 2021-08-17 21:24:57 +02:00
parent f5a6586b5f
commit 9d4c6ed770
3 changed files with 10 additions and 9 deletions

View File

@ -3,15 +3,16 @@ import moment from 'moment'
import './styles.scss'
import Editor from './editor'
import MD from './markdown'
import wikiGraph from "./graph";
moment.locale('nl')
// mermaid.initialize({startOnLoad: true})
// PrismJS.plugins.filterHighlightAll.reject.addSelector('.language-mermaid')
// PrismJS.plugins.filterHighlightAll.reject.addSelector('.language-dot')
// $(function () {
// wikiGraph('.graph-network')
// })
$(function () {
setTimeout(() => wikiGraph('.graph-network'), 1);
})
/*
* EVENTS

View File

@ -36,12 +36,6 @@
</div>
{{ end }}
</div>
<div class="column is-hidden graph-view">
{{ if .ShowGraph }}
<div class="graph-network" data-name="{{ .Name }}" style="height:80vh; top:0; position: sticky"></div>
{{ end }}
</div>
</div>
{{ end }}

View File

@ -2,5 +2,11 @@
<div class="sidebar-right">
{{block "calendar" .}}
{{end}}
<div class="graph-view">
{{ if .ShowGraph }}
<div class="graph-network" data-name="{{ .Name }}" style="height:80vh; top:0; position: sticky"></div>
{{ end }}
</div>
</div>
{{ end }}