Skip to content

Commit

Permalink
PUSH
Browse files Browse the repository at this point in the history
-> Update license
-> Added page dialogs
  • Loading branch information
NaysKutzu committed Feb 26, 2024
1 parent 5b53699 commit 6aefe73
Show file tree
Hide file tree
Showing 4 changed files with 155 additions and 3 deletions.
48 changes: 48 additions & 0 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,54 @@ Here is a list of the core components that MythicalDash uses to run!
[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)


# Page Dialogs:

## What are they?
Page dialogs are a simple method to navigate into the dash by using page ids!

## Why shall i use them?
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!

## Are there some reservations?
Yes here there are:

`0-99` Client related 
`100-200` Admin related

## What are the page ids i can use?
Where here is a list:

- `0`:  Logout `/auth/logout`
- `1`:  Dashboard `/dashboard`
- `2`:  Create a server `/server/create`
- `3`:  AFK `/earn/afk`
- `4`:  Redeem `/earn/redeem`
- `5`:  Linkvertise `/earn/linkvertise`
- `6`:  Store `/store`
- `7`:  Help Center `/help-center`
- `8`:  Tickets `/help-center/tickets`
- `9`:  Terms Of Service `/help-center/tos`
- `10`:  Privacy Policy `/help-center/pp`
- `11`:  Leaderboard `/leaderboard`
- `12`:  User List `/users/list`
- `13`:  Account `/user/list`
- `14`:  Connections `/user/connections`
- `15`:  Payments `/user/payments`

- `100`: Admin Overview - `/admin/overview`
- `101`: Admin Health - `/admin/health`
- `102`: Admin API - `/admin/api`
- `103`: Admin Users - `/admin/users`
- `104`: Admin Servers List - `/admin/servers/list`
- `105`: Admin Servers Queue List - `/admin/servers/queue/list`
- `106`: Admin Servers Queue Logs - `/admin/servers/queue/logs`
- `107`: Admin Redeem - `/admin/redeem`
- `108`: Admin Locations - `/admin/locations`
- `109`: Admin Eggs List - `/admin/eggs/list`
- `110`: Admin Eggs Config - `/admin/eggs/config`
- `111`: Admin Settings - `/admin/settings`
- `112`: Admin Tickets - `/admin/tickets`

## Serial Code:
```bash
1 740 704 993
Expand Down
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
MIT License

Copyright (c) 2021-2023 MythicalSystems
Copyright (c) 2021-2023 NaysKutzu
Copyright (c) 2021-2024 MythicalSystems
Copyright (c) 2021-2024 NaysKutzu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion caches/github.json
Original file line number Diff line number Diff line change
@@ -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!"}
{"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!"}
104 changes: 104 additions & 0 deletions view/requirements/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,110 @@
<script src="<?= $appURL ?>/assets/vendor/libs/bs-stepper/bs-stepper.js"></script>
<script src="<?= $appURL ?>/assets/js/MythicalGuard.js"></script>
<script src="<?= $appURL ?>/assets/js/preloader.js"></script>
<script>
document.addEventListener('keydown', function (event) {
if (event.ctrlKey && event.keyCode === 68) {
event.preventDefault();
var userInput = prompt("Please enter a dialog number:");
if (userInput === null || userInput.trim() === "") {
window.location.href = "/dashboard";
} else {
switch (userInput) {
case "1":
window.location.href = "/dashboard";
break;
case "2":
window.location.href = "/server/create";
break;
case "3":
window.location.href = "/earn/afk";
break;
case "4":
window.location.href = "/earn/redeem";
break;
case "5":
window.location.href = "/earn/linkvertise";
break;
case "6":
window.location.href = "/store";
break;
case "7":
window.location.href = "/help-center";
break;
case "8":
window.location.href = "/help-center/tickets";
break;
case "9":
window.location.href = "/help-center/tos";
break;
case "10":
window.location.href = "/help-center/pp";
break;
case "11":
window.location.href = "/leaderboard";
break;
case "12":
window.location.href = "/users/list";
break;
case "13":
window.location.href = "/user/edit";
break;
case "14":
window.location.href = "/user/connections";
break;
case "15":
window.location.href = "/user/payments";
break;
case "0":
window.location.href = "/auth/logout";
break;
case "100":
window.location.href = "/admin/overview";
break;
case "101":
window.location.href = "/admin/health";
break;
case "102":
window.location.href = "/admin/api";
break;
case "103":
window.location.href = "/admin/users";
break;
case "104":
window.location.href = "/admin/servers/list";
break;
case "105":
window.location.href = "/admin/servers/queue/list";
break;
case "106":
window.location.href = "/admin/servers/queue/logs";
break;
case "107":
window.location.href = "/admin/redeem";
break;
case "108":
window.location.href = "/admin/locations";
break;
case "109":
window.location.href = "/admin/eggs/list";
break;
case "110":
window.location.href = "/admin/eggs/config";
break;
case "111":
window.location.href = "/admin/settings";
break;
case "112":
window.location.href = "/admin/tickets";
break;
default:
alert("Invalid dialog number. Please enter a valid dialog number.");
}

}
}
});
</script>
<?php
function fis_active_page($page_urls)
{
Expand Down

0 comments on commit 6aefe73

Please sign in to comment.