Show graph in sidebar-right
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f5a6586b5f
commit
9d4c6ed770
|
@ -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
|
||||||
|
|
|
@ -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 }}
|
||||||
|
|
||||||
|
|
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user