From 2c37d77f829552d0d832738e1f4322852f44d2db Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 29 Aug 2019 00:16:13 +0100 Subject: [PATCH] Refactor the default peppermint.json nav more menu value ....but the supporting backend code isn't there yet. --- peppermint.guiconfig.json | 92 +++++++++++++++++++++------------------ 1 file changed, 50 insertions(+), 42 deletions(-) diff --git a/peppermint.guiconfig.json b/peppermint.guiconfig.json index 8265bb9..1e8e9cb 100644 --- a/peppermint.guiconfig.json +++ b/peppermint.guiconfig.json @@ -69,52 +69,60 @@ ], "menu" ]}, - "nav_links_extra": { "type": "nav", "description": "An array of additional links in the above format that will be shown under \"More\" subsection.", "default": [ - [ - "⌛ Page History", - "?action=history&page={page}" + "nav_links_extra": { "type": "nav", "description": "An array of additional links in the above format that will be shown under \"More\" subsection.", "default": { + "Page": [ + [ + "⌛ Page History", + "?action=history&page={page}" + ], + [ + "📤 Upload", + "index.php?action=upload" + ] ], - [ - "🎫 All Tags", - "index.php?action=list-tags" + "Navigation": [ + [ + "🎫 All Tags", + "index.php?action=list-tags" + ], + [ + "🎊 Random Page", + "?action=random" + ], + [ + "📅 Recent changes", + "?action=recent-changes" + ] ], - [ - "👥 All Users", - "index.php?action=user-list" + "Wiki": [ + [ + "📊 Statistics", + "?action=stats" + ], + [ + "👥 All Users", + "index.php?action=user-list" + ] ], - [ - "🎊 Random Page", - "?action=random" - ], - [ - "🗓 Recent changes", - "?action=recent-changes" - ], - [ - "📊 Statistics", - "?action=stats" - ], - [ - "🌥 Upload", - "index.php?action=upload" - ], - [ - "◆ 🚫 Delete", - "index.php?action=delete&page={page}" - ], - [ - "◆ 🚠 Move", - "index.php?action=move&page={page}" - ], - [ - "◆ 🔐 Toggle Protection", - "index.php?action=protect&page={page}" - ], - [ - "◆ 🔧 Edit master settings", - "index.php?action=configure" + "Moderator": [ + [ + "◆ 🚫 Delete", + "index.php?action=delete&page={page}" + ], + [ + "◆ 🚠 Move", + "index.php?action=move&page={page}" + ], + [ + "◆ 🔐 Toggle Protection", + "index.php?action=protect&page={page}" + ], + [ + "◆ 🔧 Edit master settings", + "index.php?action=configure" + ] ] - ]}, + } }, "nav_links_bottom": { "type": "nav", "description": "An array of links in the above format that will be shown at the bottom of the page.", "default": [ [ "🖨 Printable version",