Some cleanup
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Peter Stuifzand 2021-08-17 22:38:37 +02:00
parent 562dadbf4a
commit 2a0a582d7b
2 changed files with 3 additions and 2 deletions

View File

@ -49,6 +49,7 @@ function wikiGraph(selector, options) {
if (props.nodes.length) { if (props.nodes.length) {
let nodeId = props.nodes[0] let nodeId = props.nodes[0]
let node = nodes.get(nodeId) let node = nodes.get(nodeId)
// TODO: Reload directly in this same page
window.location.href = '/edit/' + node.label window.location.href = '/edit/' + node.label
} }
}) })

View File

@ -486,7 +486,7 @@ func getPageBase(repo PagesRepository, t time.Time) pageBaseInfo {
pageBase := pageBaseInfo{ pageBase := pageBaseInfo{
BaseURL: clientID, BaseURL: clientID,
RedirectURI: redirectURI, RedirectURI: redirectURI,
Days: prepareDays(mp, t), Days: prepareDays(repo, t),
Month: t.Month().String(), Month: t.Month().String(),
Year: t.Year(), Year: t.Year(),
} }
@ -1177,7 +1177,7 @@ func main() {
// Keep a copy of the nodes, buildFromCenter appends to the nodeMap // Keep a copy of the nodes, buildFromCenter appends to the nodeMap
var nodes []string var nodes []string
for k, _ := range gb.nodeMap { for k := range gb.nodeMap {
nodes = append(nodes, k) nodes = append(nodes, k)
} }