Skip to content

Commit 2a04b32

Browse files
authored
Merge pull request #116 from MythicalLTD/115-add-page-dialogs
PUSH
2 parents 5b53699 + 6aefe73 commit 2a04b32

File tree

4 files changed

+155
-3
lines changed

4 files changed

+155
-3
lines changed

.github/README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,54 @@ Here is a list of the core components that MythicalDash uses to run!
117117
[PHP-Router](https://packagist.org/packages/mythicalsystems/php-router), [Yaml](https://packagist.org/packages/symfony/yaml), [PHPMailer](https://packagist.org/packages/phpmailer/phpmailer), [Fody](https://www.nuget.org/packages/Costura.Fody/), [MySqlConnector](https://www.nuget.org/packages/MySqlConnector/), [YamlDotNet](https://www.nuget.org/packages/YamlDotNet)
118118

119119

120+
# Page Dialogs:
121+
122+
## What are they?
123+
Page dialogs are a simple method to navigate into the dash by using page ids!
124+
125+
## Why shall i use them?
126+
Well you do not have to use them if you do not want to use them, but there are just for developers or ppl that get annoyed in trying to find something in the UI!
127+
128+
## Are there some reservations?
129+
Yes here there are:
130+
131+
`0-99` Client related 
132+
`100-200` Admin related
133+
134+
## What are the page ids i can use?
135+
Where here is a list:
136+
137+
- `0`:  Logout `/auth/logout`
138+
- `1`:  Dashboard `/dashboard`
139+
- `2`:  Create a server `/server/create`
140+
- `3`:  AFK `/earn/afk`
141+
- `4`:  Redeem `/earn/redeem`
142+
- `5`:  Linkvertise `/earn/linkvertise`
143+
- `6`:  Store `/store`
144+
- `7`:  Help Center `/help-center`
145+
- `8`:  Tickets `/help-center/tickets`
146+
- `9`:  Terms Of Service `/help-center/tos`
147+
- `10`:  Privacy Policy `/help-center/pp`
148+
- `11`:  Leaderboard `/leaderboard`
149+
- `12`:  User List `/users/list`
150+
- `13`:  Account `/user/list`
151+
- `14`:  Connections `/user/connections`
152+
- `15`:  Payments `/user/payments`
153+
154+
- `100`: Admin Overview - `/admin/overview`
155+
- `101`: Admin Health - `/admin/health`
156+
- `102`: Admin API - `/admin/api`
157+
- `103`: Admin Users - `/admin/users`
158+
- `104`: Admin Servers List - `/admin/servers/list`
159+
- `105`: Admin Servers Queue List - `/admin/servers/queue/list`
160+
- `106`: Admin Servers Queue Logs - `/admin/servers/queue/logs`
161+
- `107`: Admin Redeem - `/admin/redeem`
162+
- `108`: Admin Locations - `/admin/locations`
163+
- `109`: Admin Eggs List - `/admin/eggs/list`
164+
- `110`: Admin Eggs Config - `/admin/eggs/config`
165+
- `111`: Admin Settings - `/admin/settings`
166+
- `112`: Admin Tickets - `/admin/tickets`
167+
120168
## Serial Code:
121169
```bash
122170
1 740 704 993

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
MIT License
22

3-
Copyright (c) 2021-2023 MythicalSystems
4-
Copyright (c) 2021-2023 NaysKutzu
3+
Copyright (c) 2021-2024 MythicalSystems
4+
Copyright (c) 2021-2024 NaysKutzu
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

caches/github.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"url":"https://api.github.com/repos/MythicalLTD/MythicalDash/releases/137880538","assets_url":"https://api.github.com/repos/MythicalLTD/MythicalDash/releases/137880538/assets","upload_url":"https://uploads.github.com/repos/MythicalLTD/MythicalDash/releases/137880538/assets{?name,label}","html_url":"https://github.com/MythicalLTD/MythicalDash/releases/tag/3.1.3","id":137880538,"author":{"login":"NaysKutzu","id":87282334,"node_id":"MDQ6VXNlcjg3MjgyMzM0","avatar_url":"https://avatars.githubusercontent.com/u/87282334?v=4","gravatar_id":"","url":"https://api.github.com/users/NaysKutzu","html_url":"https://github.com/NaysKutzu","followers_url":"https://api.github.com/users/NaysKutzu/followers","following_url":"https://api.github.com/users/NaysKutzu/following{/other_user}","gists_url":"https://api.github.com/users/NaysKutzu/gists{/gist_id}","starred_url":"https://api.github.com/users/NaysKutzu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NaysKutzu/subscriptions","organizations_url":"https://api.github.com/users/NaysKutzu/orgs","repos_url":"https://api.github.com/users/NaysKutzu/repos","events_url":"https://api.github.com/users/NaysKutzu/events{/privacy}","received_events_url":"https://api.github.com/users/NaysKutzu/received_events","type":"User","site_admin":false},"node_id":"RE_kwDOJGZssM4IN-Pa","tag_name":"3.1.3","target_commitish":"develop","name":"3.1.3","draft":false,"prerelease":false,"created_at":"2024-01-20T21:34:54Z","published_at":"2024-01-21T11:13:12Z","assets":[{"url":"https://api.github.com/repos/MythicalLTD/MythicalDash/releases/assets/147116321","id":147116321,"node_id":"RA_kwDOJGZssM4IxNEh","name":"MythicalDash.zip","label":null,"uploader":{"login":"NaysKutzu","id":87282334,"node_id":"MDQ6VXNlcjg3MjgyMzM0","avatar_url":"https://avatars.githubusercontent.com/u/87282334?v=4","gravatar_id":"","url":"https://api.github.com/users/NaysKutzu","html_url":"https://github.com/NaysKutzu","followers_url":"https://api.github.com/users/NaysKutzu/followers","following_url":"https://api.github.com/users/NaysKutzu/following{/other_user}","gists_url":"https://api.github.com/users/NaysKutzu/gists{/gist_id}","starred_url":"https://api.github.com/users/NaysKutzu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NaysKutzu/subscriptions","organizations_url":"https://api.github.com/users/NaysKutzu/orgs","repos_url":"https://api.github.com/users/NaysKutzu/repos","events_url":"https://api.github.com/users/NaysKutzu/events{/privacy}","received_events_url":"https://api.github.com/users/NaysKutzu/received_events","type":"User","site_admin":false},"content_type":"application/x-zip-compressed","state":"uploaded","size":109762342,"download_count":8,"created_at":"2024-01-22T17:34:32Z","updated_at":"2024-01-22T17:36:37Z","browser_download_url":"https://github.com/MythicalLTD/MythicalDash/releases/download/3.1.3/MythicalDash.zip"}],"tarball_url":"https://api.github.com/repos/MythicalLTD/MythicalDash/tarball/3.1.3","zipball_url":"https://api.github.com/repos/MythicalLTD/MythicalDash/zipball/3.1.3","body":"-> Added a landing page\r\n-> Fresh theme for 2024\r\n-> Fixed update checker\r\n-> Bump CLI to net8.0\r\n-> Added a method to delete servers in database if they don't exist anymore in panel\r\n-> Added a translation system\r\n-> Added a confirmation for delete server\r\n-> Optimized some code\r\n-> Rewrote how the dash connects to the panel\r\n-> Fixed some minor bugs\r\n-> Added more things into README\r\n-> Now the dash has a default landing page theme\r\n-> Bump the build script to 8.0\r\n-> Bump composer packages to the latest version\r\n-> Added an option to change the background picture in dash!"}
1+
{"url":"https://api.github.com/repos/MythicalLTD/MythicalDash/releases/138215485","assets_url":"https://api.github.com/repos/MythicalLTD/MythicalDash/releases/138215485/assets","upload_url":"https://uploads.github.com/repos/MythicalLTD/MythicalDash/releases/138215485/assets{?name,label}","html_url":"https://github.com/MythicalLTD/MythicalDash/releases/tag/3.1.4","id":138215485,"author":{"login":"NaysKutzu","id":87282334,"node_id":"MDQ6VXNlcjg3MjgyMzM0","avatar_url":"https://avatars.githubusercontent.com/u/87282334?v=4","gravatar_id":"","url":"https://api.github.com/users/NaysKutzu","html_url":"https://github.com/NaysKutzu","followers_url":"https://api.github.com/users/NaysKutzu/followers","following_url":"https://api.github.com/users/NaysKutzu/following{/other_user}","gists_url":"https://api.github.com/users/NaysKutzu/gists{/gist_id}","starred_url":"https://api.github.com/users/NaysKutzu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NaysKutzu/subscriptions","organizations_url":"https://api.github.com/users/NaysKutzu/orgs","repos_url":"https://api.github.com/users/NaysKutzu/repos","events_url":"https://api.github.com/users/NaysKutzu/events{/privacy}","received_events_url":"https://api.github.com/users/NaysKutzu/received_events","type":"User","site_admin":false},"node_id":"RE_kwDOJGZssM4IPQA9","tag_name":"3.1.4","target_commitish":"develop","name":"3.1.4","draft":false,"prerelease":false,"created_at":"2024-01-23T19:04:50Z","published_at":"2024-01-23T19:10:34Z","assets":[{"url":"https://api.github.com/repos/MythicalLTD/MythicalDash/releases/assets/147354486","id":147354486,"node_id":"RA_kwDOJGZssM4IyHN2","name":"MythicalDash.zip","label":null,"uploader":{"login":"NaysKutzu","id":87282334,"node_id":"MDQ6VXNlcjg3MjgyMzM0","avatar_url":"https://avatars.githubusercontent.com/u/87282334?v=4","gravatar_id":"","url":"https://api.github.com/users/NaysKutzu","html_url":"https://github.com/NaysKutzu","followers_url":"https://api.github.com/users/NaysKutzu/followers","following_url":"https://api.github.com/users/NaysKutzu/following{/other_user}","gists_url":"https://api.github.com/users/NaysKutzu/gists{/gist_id}","starred_url":"https://api.github.com/users/NaysKutzu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NaysKutzu/subscriptions","organizations_url":"https://api.github.com/users/NaysKutzu/orgs","repos_url":"https://api.github.com/users/NaysKutzu/repos","events_url":"https://api.github.com/users/NaysKutzu/events{/privacy}","received_events_url":"https://api.github.com/users/NaysKutzu/received_events","type":"User","site_admin":false},"content_type":"application/x-zip-compressed","state":"uploaded","size":109764988,"download_count":117,"created_at":"2024-01-23T19:08:35Z","updated_at":"2024-01-23T19:10:14Z","browser_download_url":"https://github.com/MythicalLTD/MythicalDash/releases/download/3.1.4/MythicalDash.zip"}],"tarball_url":"https://api.github.com/repos/MythicalLTD/MythicalDash/tarball/3.1.4","zipball_url":"https://api.github.com/repos/MythicalLTD/MythicalDash/zipball/3.1.4","body":"-> Fixed the pterodactyl registration error forever\r\n-> Added a class for users in client\r\n-> Made so that tickets now show a message by the author, then showing a description\r\n-> Finally enabled landing page for everyone!\r\n-> Added a setting so you can change the feedbacks from the landing page via the settings page\r\n-> Rewrote how the route system works\r\n-> Fixed the server limit thing!\r\n-> Now you can log in using the username too!\r\n-> Finish translation system!"}

view/requirements/footer.php

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,110 @@
2121
<script src="<?= $appURL ?>/assets/vendor/libs/bs-stepper/bs-stepper.js"></script>
2222
<script src="<?= $appURL ?>/assets/js/MythicalGuard.js"></script>
2323
<script src="<?= $appURL ?>/assets/js/preloader.js"></script>
24+
<script>
25+
document.addEventListener('keydown', function (event) {
26+
if (event.ctrlKey && event.keyCode === 68) {
27+
event.preventDefault();
28+
var userInput = prompt("Please enter a dialog number:");
29+
if (userInput === null || userInput.trim() === "") {
30+
window.location.href = "/dashboard";
31+
} else {
32+
switch (userInput) {
33+
case "1":
34+
window.location.href = "/dashboard";
35+
break;
36+
case "2":
37+
window.location.href = "/server/create";
38+
break;
39+
case "3":
40+
window.location.href = "/earn/afk";
41+
break;
42+
case "4":
43+
window.location.href = "/earn/redeem";
44+
break;
45+
case "5":
46+
window.location.href = "/earn/linkvertise";
47+
break;
48+
case "6":
49+
window.location.href = "/store";
50+
break;
51+
case "7":
52+
window.location.href = "/help-center";
53+
break;
54+
case "8":
55+
window.location.href = "/help-center/tickets";
56+
break;
57+
case "9":
58+
window.location.href = "/help-center/tos";
59+
break;
60+
case "10":
61+
window.location.href = "/help-center/pp";
62+
break;
63+
case "11":
64+
window.location.href = "/leaderboard";
65+
break;
66+
case "12":
67+
window.location.href = "/users/list";
68+
break;
69+
case "13":
70+
window.location.href = "/user/edit";
71+
break;
72+
case "14":
73+
window.location.href = "/user/connections";
74+
break;
75+
case "15":
76+
window.location.href = "/user/payments";
77+
break;
78+
case "0":
79+
window.location.href = "/auth/logout";
80+
break;
81+
case "100":
82+
window.location.href = "/admin/overview";
83+
break;
84+
case "101":
85+
window.location.href = "/admin/health";
86+
break;
87+
case "102":
88+
window.location.href = "/admin/api";
89+
break;
90+
case "103":
91+
window.location.href = "/admin/users";
92+
break;
93+
case "104":
94+
window.location.href = "/admin/servers/list";
95+
break;
96+
case "105":
97+
window.location.href = "/admin/servers/queue/list";
98+
break;
99+
case "106":
100+
window.location.href = "/admin/servers/queue/logs";
101+
break;
102+
case "107":
103+
window.location.href = "/admin/redeem";
104+
break;
105+
case "108":
106+
window.location.href = "/admin/locations";
107+
break;
108+
case "109":
109+
window.location.href = "/admin/eggs/list";
110+
break;
111+
case "110":
112+
window.location.href = "/admin/eggs/config";
113+
break;
114+
case "111":
115+
window.location.href = "/admin/settings";
116+
break;
117+
case "112":
118+
window.location.href = "/admin/tickets";
119+
break;
120+
default:
121+
alert("Invalid dialog number. Please enter a valid dialog number.");
122+
}
123+
124+
}
125+
}
126+
});
127+
</script>
24128
<?php
25129
function fis_active_page($page_urls)
26130
{

0 commit comments

Comments
 (0)