diff options
-rw-r--r-- | pages/api/menu.php | 109 |
1 files changed, 55 insertions, 54 deletions
diff --git a/pages/api/menu.php b/pages/api/menu.php index 10214d8..56e5b88 100644 --- a/pages/api/menu.php +++ b/pages/api/menu.php @@ -11,6 +11,12 @@ die(json_encode([ "title" => "Cold Haze", "items" => [ [ + "title" => "Emergency alert", + "link" => "coldhaze://-/emergency", + "show" => $available["coldHaze"], + "icon" => "icons://emergency" + ], + [ "title" => "Front planner", "link" => "coldhaze://-/fronting", "show" => $available["coldHaze"], @@ -29,6 +35,18 @@ die(json_encode([ "icon" => "icons://money" ], [ + "title" => "Address book", + "link" => "coldhaze://-/contacts", + "show" => $available["coldHaze"] && $isLoggedIn, + "icon" => "icons://contacts" + ], + [ + "title" => "Schedules", + "link" => "coldhaze://-/schedules", + "show" => $available["coldHaze"], + "icon" => "icons://schedules" + ], + [ "title" => "Rules", "link" => "coldhaze://-/rules", "show" => $available["coldHaze"] && $isLoggedIn, @@ -61,19 +79,49 @@ die(json_encode([ ] ], [ - "title" => "Utilities", + "title" => "Other apps", "items" => [ [ - "title" => "Backup viewer", - "link" => "local://backup", + "title" => "Ponycon.info", + "link" => "ponycon://", + "show" => $available["ponycon"], + "icon" => "icons://ponycon" + ], + [ + "title" => "Delta", + "link" => "delta://", + "show" => $available["delta"], + "icon" => "icons://delta" + ], + [ + "title" => "Gitea", + "link" => "gitea://equestria.dev", + "show" => $available["gitea"], + "icon" => "icons://gitea" + ], + [ + "title" => "JetBrains Hub", + "link" => "hub://hub/projects", "show" => true, - "icon" => "icons://backup" + "icon" => "icons://hub" ], [ - "title" => "SSH client", - "link" => "local://ssh", + "title" => "YouTrack", + "link" => "youtrack://", + "show" => $available["youtrack"], + "icon" => "icons://youtrack" + ], + [ + "title" => "Plex", + "link" => "https://plex.equestria.dev", "show" => true, - "icon" => "icons://ssh" + "icon" => "icons://plex" + ], + [ + "title" => "Proxmox", + "link" => "https://admin.equestria.dev", + "show" => true, + "icon" => "icons://proxmox" ] ] ], @@ -117,52 +165,5 @@ die(json_encode([ "icon" => "https://booru.equestria.dev/nsfw/icon/" ] ] - ], - [ - "title" => "Other apps", - "items" => [ - [ - "title" => "Ponycon.info", - "link" => "ponycon://", - "show" => $available["ponycon"], - "icon" => "icons://ponycon" - ], - [ - "title" => "Delta", - "link" => "delta://", - "show" => $available["delta"], - "icon" => "icons://delta" - ], - [ - "title" => "Gitea", - "link" => "gitea://equestria.dev", - "show" => $available["gitea"], - "icon" => "icons://gitea" - ], - [ - "title" => "JetBrains Hub", - "link" => "hub://hub/projects", - "show" => true, - "icon" => "icons://hub" - ], - [ - "title" => "YouTrack", - "link" => "youtrack://", - "show" => $available["youtrack"], - "icon" => "icons://youtrack" - ], - [ - "title" => "Plex", - "link" => "https://plex.equestria.dev", - "show" => true, - "icon" => "icons://plex" - ], - [ - "title" => "Proxmox", - "link" => "https://admin.equestria.dev", - "show" => true, - "icon" => "icons://proxmox" - ] - ] ] ]));
\ No newline at end of file |