This repository has been archived by the owner on Jul 10, 2022. It is now read-only.
forked from pterodactyl/panel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch filemanager and EULA check to use pure Javascript methods
Removes the need for the javascript to be parsed by Blade template engine by using a defined javascript variable with the values that are necessary for checking everything and passing the correct values. This does make it so that if a user does not have permission to do something they could theoretically make the option show up in the context menu, however when they click it, it will simply return an error by the daemon.
- Loading branch information
1 parent
e282f77
commit aa6e733
Showing
13 changed files
with
566 additions
and
527 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| View to Bind JavaScript Vars To | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Set this value to the name of the view (or partial) that | ||
| you want to prepend all JavaScript variables to. | ||
| This can be a single view, or an array of views. | ||
| Example: 'footer' or ['footer', 'bottom'] | ||
| | ||
*/ | ||
'bind_js_vars_to_this_view' => [ | ||
'layouts.master' | ||
], | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| JavaScript Namespace | ||
|-------------------------------------------------------------------------- | ||
| | ||
| By default, we'll add variables to the global window object. However, | ||
| it's recommended that you change this to some namespace - anything. | ||
| That way, you can access vars, like "SomeNamespace.someVariable." | ||
| | ||
*/ | ||
'js_namespace' => 'Pterodactyl' | ||
|
||
]; |
Oops, something went wrong.