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

View File

@ -36,12 +36,6 @@
</div> </div>
{{ end }} {{ end }}
</div> </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> </div>
{{ end }} {{ end }}

View File

@ -2,5 +2,11 @@
<div class="sidebar-right"> <div class="sidebar-right">
{{block "calendar" .}} {{block "calendar" .}}
{{end}} {{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> </div>
{{ end }} {{ end }}