Commit Graph

2041 Commits

Author SHA1 Message Date
DaneEveritt 0d0c595909
Show starting/stopping correctly in stats; closes #4209 2022-06-30 20:33:09 -04:00
DaneEveritt 3120e1d4a0
Fix console rendering on Safari; closes #4189 2022-06-30 20:30:01 -04:00
Boy132 003afb271b
fix: java version modal default value (#4216) 2022-06-30 20:23:40 -04:00
VinGal cc06d1faa9
Fixes rounding when 0.001% or less on CPU usage. (#4207) 2022-06-30 20:23:27 -04:00
Arnaud Lier ccea09c9d9
Enable standards mode (#4194) 2022-06-30 20:23:15 -04:00
DaneEveritt 20a7794a18
Fix incorrect type definitions 2022-06-27 20:54:58 -04:00
DaneEveritt 4aa163b76f
Hide IP addresses from activity logs not generated by the user themselves 2022-06-27 20:52:27 -04:00
DaneEveritt b570769a34
Fix permission matching on routes; closes #4181 2022-06-27 20:41:49 -04:00
DaneEveritt bd278b2688
Fix install warning display and make it reactive 2022-06-27 20:36:24 -04:00
Boy132 2dda151a49
fix: correct route for console (#4178)
fixes #4177
2022-06-27 20:21:12 -04:00
DaneEveritt 7886251cd8
Fix infinity display 2022-06-27 20:16:43 -04:00
DaneEveritt 050d4e7a36
Show the resource limits next to numbers 2022-06-27 20:14:55 -04:00
DaneEveritt 5f156e193a
Improve the graph display; hide the bottom bar when no data exists. 2022-06-27 19:59:36 -04:00
DaneEveritt bf287c45d6
Logic improvements, move stat blocks to right side 2022-06-27 19:56:26 -04:00
DaneEveritt ad6e9f076b
Fix copy to clipboard when clicking server address
closes #4187
2022-06-27 19:18:58 -04:00
DaneEveritt 72f545259f
Roll back changes to conversion unit (1000->1024)
closes #4183
2022-06-27 18:46:36 -04:00
Ziga Zajc 1b5d77dc17
Changed Mb to MB (#4171) 2022-06-27 18:30:46 -04:00
Boy132 ac997cd7a6
fix: use correct network stat (#4175) 2022-06-27 18:30:21 -04:00
Boy132 63cf6ee96e
fix: round cpu usage in chart (#4182)
fixes #4168
2022-06-27 18:30:00 -04:00
DaneEveritt 80ae600fe1
Correctly update dependencies for release 2022-06-26 17:31:47 -04:00
DaneEveritt 13bdb66ff0
Revert "Package updates prior to release"
This reverts commit af2a84d379.
2022-06-26 17:19:12 -04:00
DaneEveritt af2a84d379
Package updates prior to release 2022-06-26 17:11:55 -04:00
DaneEveritt c166f1305b
Remove unused deps 2022-06-26 16:14:32 -04:00
DaneEveritt 922d75f471
fix remaining eslint error 2022-06-26 15:30:05 -04:00
DaneEveritt dc84af9937
Apply new eslint rules; default to prettier for styling 2022-06-26 15:13:52 -04:00
DaneEveritt 1eb3ea2ee4
Some code cleanup, add jest coverage and begin using it for utility functions 2022-06-26 14:34:09 -04:00
DaneEveritt 82d8713b5d
Fix allocation display when a description is present 2022-06-25 21:41:52 -04:00
DaneEveritt 47d6235ea0
Keep server address at the top 2022-06-25 21:31:10 -04:00
DaneEveritt 00338e431b
Automatically hide the kill modal when server stops 2022-06-25 21:29:41 -04:00
DaneEveritt 76f3b996fe
Auto resize values when they'd overflow the container 2022-06-25 21:27:18 -04:00
DaneEveritt 182507ff0e
Upgrade charts to ChartJS 3 and improve UI for them 2022-06-25 20:51:49 -04:00
DaneEveritt 54c619e6ba
Some mobile improvements for the UI; make console fill space better 2022-06-21 18:43:59 -04:00
DaneEveritt faff263f17
First pass at new server console design 2022-06-20 17:26:47 -04:00
DaneEveritt 61018b5e67
Update more of the UI to use new design elements 2022-06-20 15:28:27 -04:00
DaneEveritt 2824db7352
Update file manager design a bit 2022-06-20 14:16:42 -04:00
DaneEveritt 8bd518048e
Fix excessive re-rendering due to route changesd 2022-06-20 13:19:40 -04:00
DaneEveritt 7b0e2ce99d
Button styling cleanup, prop consistency 2022-06-20 12:38:23 -04:00
DaneEveritt 7dd74ecc9d
Modal cleanup, begin transitioning towards the new dialog 2022-06-20 11:17:33 -04:00
DaneEveritt 3834aca3fe
Use nicer avatars when showing activity log 2022-06-19 13:46:15 -04:00
DaneEveritt 76472411e3
Some better activity translations 2022-06-18 16:36:19 -04:00
DaneEveritt cf01490883
Support hiding activity from admin accounts not associated with the server 2022-06-18 15:48:22 -04:00
DaneEveritt 95de4c30fc
Abuse the translation engine to handle more of the formatting for us 2022-06-18 15:28:42 -04:00
DaneEveritt d47a05881b
Show when an event was triggered via the API directly 2022-06-18 12:52:26 -04:00
DaneEveritt 4f3651b578
Fix typo with identifier 2022-06-18 12:16:54 -04:00
DaneEveritt 6ffe5730da
Log when an API key is blocked due to IP restrictions 2022-06-18 12:04:51 -04:00
DaneEveritt cd97936179
Improve mobile support 2022-06-12 15:40:14 -04:00
DaneEveritt 68a654f9e8
Selectively show the additional metadata if it isn't in the display string at all 2022-06-12 15:30:49 -04:00
DaneEveritt 88987fb6c7
Correctly pull button styles 2022-06-12 15:17:14 -04:00
DaneEveritt 2f1c8ae91d
Add basic server activity log view 2022-06-12 15:16:48 -04:00
DaneEveritt 0b4936ff1c
Break out rows for activity; show metadata icon 2022-06-12 15:08:26 -04:00
DaneEveritt 33823b65de
Fix dialog and tooltip design 2022-06-12 15:07:52 -04:00
DaneEveritt 064a942574
Little bit of language cleanup 2022-06-12 13:36:42 -04:00
DaneEveritt b50e722948
Add account related routes to router file 2022-06-12 13:33:25 -04:00
DaneEveritt 7197d28815
Chunk out the different routers and clean up feature logic 2022-06-12 11:56:00 -04:00
DaneEveritt 04e97cc67e
Make it easier for plugins to extend the navigation and add routes 2022-06-12 11:36:55 -04:00
DaneEveritt 88a7bd7578
Make the delay less goofy when mousing over elements 2022-06-12 09:39:20 -04:00
DaneEveritt f860fd2cfe
Improve usability of icon buttons in header with tooltip 2022-06-12 09:35:02 -04:00
DaneEveritt 9c957952fb
Improve mobile display of activity log 2022-06-12 09:09:01 -04:00
DaneEveritt 4d30cc9e7e
Add translation values to activity log output 2022-06-11 14:52:41 -04:00
DaneEveritt 06427f8d13
Don't make two API calls for activity log data 2022-06-11 14:52:33 -04:00
DaneEveritt 986c375052
Improve support for use of i18next; rely on browser caching to keep things simple 2022-06-11 14:04:09 -04:00
DaneEveritt 8e02966935
Use a normal HTML tag for this 2022-06-11 11:05:03 -04:00
DaneEveritt e17c2ec262
Add base activity log strings 2022-06-11 11:03:40 -04:00
DaneEveritt 0bfba306bf
Add filtering support for activity logs 2022-06-05 19:23:25 -04:00
DaneEveritt c6e8b893c8
Add basic activity log view 2022-06-05 18:35:53 -04:00
DaneEveritt 2a2fc42e37
Add support for tooltips 2022-06-05 18:27:54 -04:00
DaneEveritt 1a5465dc34
Update react, add some V2 components for V1 usage 2022-06-05 14:56:42 -04:00
DaneEveritt 921da09a63
Update to Tailwind 3; support normal tailwind usage without twin.macro 2022-06-05 14:34:29 -04:00
Harry W c0a3dea6d8
Disable autocapitalization on console input (#4120) 2022-06-05 13:22:41 -04:00
DaneEveritt 03a497fb8a
Use a post request to delete SSH keys, some hashes use slashes which cause 404 errors; closes #4100 2022-05-30 17:28:42 -04:00
DaneEveritt 4213775b5c
Fix mounting behavior to work correctly when adding to a server 2022-05-30 11:33:42 -04:00
DaneEveritt dbc9846320
Fix cache busting when creating a new server 2022-05-30 11:09:51 -04:00
DaneEveritt a5521ecb79
Add support for returning transforming activity logs on the front-end 2022-05-29 20:34:48 -04:00
DaneEveritt 3fceb588fb
Fix router logic to account for logged out users; closes #4085
Middleware was removed from the `/` route to redirect users without authentication, so now we need to handle this on the front-end properly.
2022-05-28 13:32:35 -04:00
DaneEveritt dca53611ff
Ensure we don't cause a mess with the auth providers 2022-05-22 18:16:47 -04:00
DaneEveritt 4d3362b24f
Perform a bit of code cleanup 2022-05-22 17:23:48 -04:00
DaneEveritt be88e4e893
Ignore migrations, pass credentials 2022-05-22 17:01:39 -04:00
DaneEveritt 97280a62a2
Add support for storing SSH keys on user accounts 2022-05-14 17:31:53 -04:00
DaneEveritt 62b178ed02
Show network usage on the server console view 2022-05-13 23:00:59 -04:00
DaneEveritt 8791d681bc
Fix server image selection not... existing 2022-05-13 22:09:20 -04:00
DaneEveritt 100d4ee726
Remove more unnecessary translations 2022-05-12 17:53:29 -04:00
Alex 0e3e14aa93
fix: artisan translations (#4069) 2022-05-08 11:28:17 -04:00
DaneEveritt 6d5ca5a811
Update java version modal to only suggest allowed images 2022-05-07 18:18:14 -04:00
DaneEveritt c8faf64059
Support naming docker images on eggs; closes #4052
Bumps PTDL_v1 export images to PTDL_v2, updates the Minecraft specific eggs to use named images.
2022-05-07 17:45:22 -04:00
DaneEveritt 53207abcb3
Add base model layout from V2 for frontend 2022-05-07 16:52:58 -04:00
DaneEveritt 1ae98604a4
Mark the 2FA field as a one-time-password field for autocomplete; closes #4038 2022-05-07 15:25:50 -04:00
DaneEveritt e88d24e0db
Don't allow allocations to be deleted by users if no limit is defined; closes #3703 2022-05-07 15:05:28 -04:00
DaneEveritt c751ce7f44
Allow more values for remote field when creating a database; closes #3842 2022-05-07 14:17:10 -04:00
DaneEveritt f5ad9b9e11
Replace debug bar with clockwork 2022-05-04 19:19:00 -04:00
Jelco af4616ccf2
Add cron cheatsheet (#3866) 2022-03-28 12:43:45 -07:00
Jim C K Flaten 2680fe4c8e
Feature/task order (#3807) 2022-03-28 12:31:35 -07:00
FabianS 82818414a3
Ability to create nodes with artisan (#3319) 2022-03-28 12:28:16 -07:00
Alex 5120590e47
ref: remove google analytics (#3912) 2022-02-05 09:08:43 -08:00
Mrxbox98 0ff60d83eb
Fix incorrect alignment on 2FA boxes due to incorrect TW breakpoints (#3914) 2022-02-05 09:08:11 -08:00
Alex edfd97e0b4
feat(pid_limit): expand list of errors for pid_limit feature (#3942)
Expands the list of errors for pid_limit egg feature to support Steam PID errors and re-organize the list to be prettier
2022-02-05 09:05:36 -08:00
Mrxbox98 21f74a835c
Fixed error (#3870) 2022-01-19 17:06:31 -08:00
Alex 0ff2f28ced
feat(egg): Add Steam out of disk space modal (#3891) 2022-01-18 13:00:10 -07:00
Mrxbox98 1f3217c3c5
fix(server/files): duplicate entry when making a nested folder (#3813) 2022-01-18 12:49:06 -07:00
Alex 5f308feb3f
feat(model/pid): lowercase error array element (#3892) 2022-01-18 12:34:44 -07:00
Boy132 7d0d71baec
Checkbox & Dropdown for Startup Variables (#3769) 2022-01-17 20:08:53 -07:00
Charles Morgan aed9f85bce
Add PID Modal (#3845) 2022-01-17 20:02:10 -07:00
Paul Vogel 04656f8da8
Fix anchor in link to docker docs (#3793)
The former version does not "scroll" to the section
2022-01-15 08:10:01 -08:00
Dane Everitt f2e92d80ac
Adjust copyright in footer to be more consistent 2022-01-02 07:25:07 -08:00
Boy132 1d02365efe
Fix eslint warnings (#3814) 2021-12-19 09:50:18 -08:00
Mrxbox98 66c56b0da8
CPU Graph change (#3804) 2021-12-12 10:19:06 -08:00
Mrxbox98 15619fb8e4
Fixes overlapping Two Factor Authentication Box (#3803) 2021-12-12 10:15:44 -08:00
Charles Morgan 0d5ff6afac
Add Pug / Jade to file editor, closes #3512 (#3514) 2021-12-04 10:51:52 -08:00
Patrick R 622b939f00
Show ipv6 with correct in-url syntax (#3776) 2021-12-04 10:35:55 -08:00
Lukas Moucka e8e2911a92
Change order of docker images in JavaVersionModalFeature (#3782)
This changes the order of the Docker images in JavaVersionModalFeature, and also sets the default state to Java 17. Previously it was Java 16, even though the first entry in the list was Java 8, that confused a lot of people
2021-12-04 10:35:39 -08:00
Boy132 96c3338e96
Add the MC 1.18 message to Java Version Modal (#3778) 2021-12-04 10:35:20 -08:00
Boy132 4cc8658334
GSL Token Modal Feature (#3746) 2021-12-04 10:29:24 -08:00
Paul Vogel b9d73afb63
Fix typo in messsage when deleting a database (#3777) 2021-12-04 10:24:06 -08:00
Dane Everitt bf9cbe2c6d
Add consistent CSRF token verification to API endpoints; address security concern with non-CSRF protected endpoints 2021-11-16 20:02:18 -08:00
Alex 01871d8a6c
add Java 17 LTS image to Minecraft eggs (#3744)
* feat: add Java 17 LTS for Minecraft

* feat: add java 17 option to java modal
2021-11-15 08:15:27 -08:00
Alex d0663dcbd4
fix: use POST for admin logout route (#3710)
Quick fix for logging out from the admin panel as the auth route was changed from GET to POST.
2021-10-30 13:27:59 -07:00
Alex 4dca4f0aa9
change display format of the container uptime (#3706)
* change display format of the container uptime

Display `day, hour, min` if days is more than 0, otherwise default to existing `hour, min, sec`. Removes pads to make it more clean in this new format.

* clean the return
2021-10-24 14:41:01 -07:00
Alex ef4410bac6
expose uptime to client resources API endpoint (#3705)
resolves #3704
2021-10-24 10:12:17 -07:00
Dane Everitt 45999ba4ee
(security) use POST for logout rather than GET
see https://github.com/pterodactyl/panel/security/advisories/GHSA-m49f-hcxp-6hm6
2021-10-23 13:00:21 -07:00
Dane Everitt 81ba333270
If uptime is present in stats output, display it for the server; closes #3653 2021-10-03 12:59:44 -07:00
Dane Everitt 8f0eda21c5
Fix all screens on the panel unintentionally loading the root directory for a server 2021-09-11 14:17:20 -07:00
Dane Everitt 52588beeb0
Fix state management of overrides not properly resetting loader; closes #3429 2021-09-11 13:24:57 -07:00
Josh Miles bd271e2e62
Consistency in Java version modal (#3569) 2021-08-24 12:42:58 -06:00
Alex b94d69bbab
Introduce OOM Killer to Server Creation (#3548) 2021-08-18 12:32:45 -06:00
Cam White 5d41ac09fd
Grammatical fix on SetupTwoFactorModal (#3549) 2021-08-18 11:48:06 -06:00
Matthew Penner 10b357b71e
ui(server): fix used backup count (#3526)
* ui(server): fix used backup count

* ui(server): refactor backup count code
2021-08-04 20:34:00 -07:00
Charles Morgan 0074c84001
Add javaversion to java eggs. (#3518)
Co-authored-by: Matthew Penner <me@matthewp.io>
2021-08-03 20:11:45 -07:00
Matthew Penner 1c071b05aa
ui: fix spinner z-index (#3520) 2021-08-03 19:46:00 -07:00
Matthew Penner 970f281859
backups: default is_successful to false (#3522)
* backups: default is_successful to false
* backups: properly query backups
2021-08-03 19:45:25 -07:00
Mia bda1ff50ab
[UI] Display the 2FA token, show spinner on load (#3367)
Co-authored-by: Dane Everitt <dane@daneeveritt.com>
2021-08-02 20:39:12 -07:00
Charles Morgan 924f00ac9a
Java Docker image updater feature (#3430)
Co-Authored-By: Lance Pioch <me@lance.sh>
2021-08-02 20:32:10 -07:00
Linux123123 9c64fb29a4
Fix ScheduleEdit page not working directly by url (#3477) 2021-08-02 20:07:39 -07:00
Triassic e8746feb97
Fix a typo in DisableTwoFactorModal.tsx (#3507) 2021-08-02 20:07:26 -07:00
Linux123123 2c2c35303a
Fix backup dropdown permissions (#3469) 2021-07-17 10:02:37 -07:00
Alex ca2269fea1
Fix z-index of the mass delete modal (#3463)
Fixes the order of mass confirmation modal to correctly be displayed prominently on top of all elements
2021-07-11 11:27:52 -07:00
iamkubi cc05b0886b
Fix CPU tooltip on server create page (#3416)
CPU usage is based on threads, however the create server page incorrectly specifies physical cores in the help text.
Relocate a BlockIO blurb at the end of the CPU usage text which seems to be in the wrong place.
2021-06-19 12:10:02 -07:00
Fabian 725fc82657
fix eslint issues (#3410) 2021-06-12 10:46:10 -07:00
Alex e33b1792b1
Show CPU limit next to CPU usage (#3307) 2021-06-05 08:40:48 -07:00
Jakob 647d2cbf92
add scroll down helper to console (#2951) 2021-06-05 08:39:36 -07:00
Lukas 75d254a6a4
Add support for mailgun API endpoint (#3364) 2021-06-05 08:38:47 -07:00
notil b79d6e9e64
Minor UI fixes (#3366)
* Added same spacing as CPU graph to RAM graph
* Have the "New Database" button be on the right when on mobile
2021-06-05 08:38:24 -07:00
Jelco b3a1825b56
Fix server delete swal (#3391) 2021-06-05 08:36:59 -07:00
Dane Everitt 2fd16f441d
Fix component stack depth crashes due to looping setState 2021-05-29 10:58:24 -07:00
Dane Everitt 010ef8621b
[security]: remove external dependency for loading QR codes for 2FA 2021-05-16 12:45:04 -07:00
Dane Everitt 1f64086c67
Merge branch 'develop' of github.com:pterodactyl/panel into develop 2021-05-16 12:35:52 -07:00
Dane Everitt 6b16b9bc2a
Cleanup logic for `asModal` to make it a little easier to use dynamically 2021-05-16 12:35:49 -07:00
Charles Morgan 3898e40fa4
Add list of files being deleted to delete modal (#3299)
Shows the first 15 file names being deleted. If more then 15, the first 15 will be shown then the last line will be ` + ## other(s)`
2021-05-16 11:28:52 -07:00
Charles Morgan 69ac2ca40b
Allow MAB div to be clicked through (#3359)
Allows users to interact with files that are blocked by the div that renders the MassActionbar
2021-05-16 09:49:21 -07:00
Antony 9c3c5f6f71
Fixed a very small minor issue (#3360) 2021-05-16 09:48:55 -07:00
Charles Morgan 76ac1998cf
Don't allow backups to be made via schedules if limit = 0 (#3323) 2021-05-16 09:47:36 -07:00
Dane Everitt 5a82dd6a18
Update to TypeScript 4 2021-05-08 10:37:18 -07:00