Commit Graph

1490 Commits

Author SHA1 Message Date
Dane Everitt 9ae3c17913
Don't even render components if the user doesn't have permission 2020-08-22 19:01:29 -07:00
Dane Everitt 54f9c5f187
Merge branch 'develop' into feature/file-uploads 2020-08-22 18:33:09 -07:00
Dane Everitt 91cdbd6c2e
Support modifying startup variables for servers 2020-08-22 18:13:59 -07:00
Dane Everitt 9b16f5883c
Refactor to a single transformer file 2020-08-22 15:46:13 -07:00
Dane Everitt cae604e79d
Include egg variables in the output from the API 2020-08-22 15:43:28 -07:00
Dane Everitt 1e735cf0e8
Support failed backup display on the frontend; use SWR for backup pages 2020-08-20 21:44:33 -07:00
Dane Everitt f144ba8394
Don't enter d i s c o m o d e when first opening the page; closes #2190
This was caused by the location.key being undefined when the page first renders (for some reason), and therefore the fade component just kept re-rendering since it wasn't using a unique key.
2020-08-19 21:30:45 -07:00
Dane Everitt 13ace83f42
Move the file selector out of the editor itself; closes #2147 2020-08-19 21:11:29 -07:00
Dane Everitt 57bb652d81
Whoops, don't always show this modal 2020-08-18 20:16:13 -07:00
Dane Everitt e873c597bb
Allow passing props through to determine modal options 2020-08-17 22:04:24 -07:00
Dane Everitt c28cba92e2
Make modals programatically controllable via a HOC
This allows entire components to be unmounted when the modal is hidden without affecting the fade in/out of the modal itself.

This also makes it easier to programatically dismiss a modal without having to copy the visibility all over the place, and makes working with props much simpler in those modal components
2020-08-17 21:35:11 -07:00
Dane Everitt d41b86f0ea
Correctly pass along allowed IPs for client API keys, closes #2244 2020-08-17 19:48:51 -07:00
Dane Everitt 231ff0386c
Fix kill button not showing up when restarting 2020-08-13 20:47:16 -07:00
Dane Everitt 14c587eabe
Correctly inject new directory into file manager 2020-08-06 20:33:17 -07:00
Dane Everitt 95e8492c5d
What the heck are these abysmal timeouts; closes #2223 2020-08-06 20:25:35 -07:00
Dane Everitt 26704a2d5f
Clear reinstall messages when mounting; closes #2213 2020-08-03 20:58:15 -07:00
Dane Everitt 941da821e1
Merge pull request #2205 from Sir3lit/pagetitles2
Page Titles v2 - Using React Helmet
2020-08-01 21:27:23 -07:00
Dane Everitt 9387be3b0d
Fix permissions on subuser rows 2020-08-01 21:25:28 -07:00
Charles Morgan 658c2b12ae
Merge branch 'develop' into pagetitles2 2020-08-01 23:14:27 -05:00
Dane Everitt b52fc0b4d9
Fix recaptcha handling during login & password reset flows; closes #2064 2020-08-01 21:08:35 -07:00
Charles Morgan d3316f61d7
Titles on index / account pages
Also changed to use  `const { ..., name: serverName } = useServer();` where feasible
2020-08-01 23:49:00 -04:00
Charles Morgan 27f201f27e
Merge branch 'develop' into pagetitles2 2020-08-01 22:10:58 -05:00
Dane Everitt dd381f65a9
Don't try to be fancy, just pain 2020-08-01 20:06:17 -07:00
Charles Morgan d604a4a5f2
Merge branch 'develop' into pagetitles2 2020-08-01 22:03:07 -05:00
Dane Everitt a966613890
Fix task edit modal not filling the payload correctly 2020-08-01 19:52:13 -07:00
Dane Everitt c58348735d
Avoid double-click double-submit issues in modals; closes #2199 2020-08-01 19:49:38 -07:00
Dane Everitt 0c7f118f45
add withFlash() context HOC 2020-08-01 19:44:50 -07:00
Dane Everitt b92c97060b
Use a key that doesn't change to avoid re-render issues; closes #2203 2020-08-01 18:48:58 -07:00
Dane Everitt b5d97c00df
Merge pull request #2184 from Sir3lit/scrollbar
Re-add scroll bar style, fix missed tw conversion
2020-08-01 16:55:23 -07:00
Dane Everitt 0d089acf3d
Merge pull request #2191 from Sir3lit/googleanalytics2
Add Google Analytics Support
2020-08-01 16:55:06 -07:00
Dane Everitt 0fa90dd6bd
Add listener for install start/end 2020-07-29 22:02:00 -07:00
Dane Everitt 4c558a8662
Fix date display for scheduled tasks; closes #2195 2020-07-29 20:23:46 -07:00
Charles Morgan 6d79ad23a5
Attempt 2?
80% sure this isn't how to use react-helmet.... but it works....
2020-07-26 23:32:24 -04:00
Charles Morgan cb4f8efbe6
Add Google Analytics
Added Google Analytics to latest dev branch
2020-07-26 21:05:54 -04:00
Dane Everitt f0ac0725b6
[Security] Don't return all servers on the system when not a root admin and admin level servers are requested
Cleaned up the API endpoint by simplifying the logic and adds test case to cover this bug.

If you ever need to list _all_ of the servers on the system you should be using the application API endpoint for the servers most likely.
2020-07-26 10:43:46 -07:00
Charles Morgan 1fe254efc6
Re-add scroll bar style, fix missed tw conversion
Fixed backup message still using old method of "className" changed to use css={ts}
readded scrollbar styling from PR#2118
2020-07-22 01:54:49 -04:00
Dane Everitt ff9f893dc3
Code cleanup for file manager 2020-07-18 10:45:41 -07:00
Dane Everitt c2b1e7e6ab
Use archive icon 2020-07-16 22:21:06 -07:00
Matthew Penner df385cef3a Add additional mimetypes to check if a file is an archive 2020-07-15 13:09:45 -06:00
Dane Everitt 1a6669aa5c
Add endpoint support for decompressing files 2020-07-14 21:16:49 -07:00
Dane Everitt 6c0d308348
Paginate servers on frontend; closes #2106 2020-07-14 20:48:41 -07:00
Matthew Penner 67ba3baff0 Fix lint warnings 2020-07-12 16:47:00 -06:00
Matthew Penner 1d2acbd5b4 Get basic file upload functionality working 2020-07-12 16:42:32 -06:00
Matthew Penner 3ebb6eadbf Add upload button and drag&drop modal 2020-07-12 15:20:37 -06:00
Dane Everitt 17c57d37bc
Merge branch 'develop' of https://github.com/Pterodactyl/Panel into develop 2020-07-12 11:57:50 -07:00
Dane Everitt 90ab185dce
Delete global.d.ts 2020-07-12 11:57:48 -07:00
Dane Everitt cf366be06c
Merge pull request #2171 from pterodactyl/fix/2165
Fix table search bar not rendering properly across browsers
2020-07-12 11:16:19 -07:00
Dane Everitt 01faa86c73
swr for servers on dash; fix whatever is going on with the spinner 2020-07-12 11:15:54 -07:00
Matthew Penner f26226e465 Fix table search bar not rendering properly across browsers 2020-07-12 12:15:01 -06:00
DarthShmev 3dbb297645
Update DisableTwoFactorModal.tsx - Fix lint errors
Whoops! Trailing space after `<Button` on line 60.
2020-07-12 13:51:54 -04:00