Add dashboard_css.
This commit is contained in:
parent
a939916ffc
commit
84dee8772c
4 changed files with 10 additions and 1 deletions
|
@ -224,6 +224,7 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) ]]; then
|
||||||
admin_wrapper=$conf_admin_wrapper; #(optional)
|
admin_wrapper=$conf_admin_wrapper; #(optional)
|
||||||
|
|
||||||
dashboard_wrapper=$conf_dashboard_wrapper; #(optional)
|
dashboard_wrapper=$conf_dashboard_wrapper; #(optional)
|
||||||
|
dashboard_css=$conf_dashboard_css; #(optional)
|
||||||
|
|
||||||
data_directory=$conf_data_directory; #(optional)
|
data_directory=$conf_data_directory; #(optional)
|
||||||
data_public=$conf_data_public; #(optional)
|
data_public=$conf_data_public; #(optional)
|
||||||
|
@ -364,6 +365,11 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) ]]; then
|
||||||
sed -i "s~/\* admin.css \*/~/\* admin.css \*/\n@import url(/assets/extensions/$identifier/$identifier.style.css);~g" public/themes/pterodactyl/css/pterodactyl.css;
|
sed -i "s~/\* admin.css \*/~/\* admin.css \*/\n@import url(/assets/extensions/$identifier/$identifier.style.css);~g" public/themes/pterodactyl/css/pterodactyl.css;
|
||||||
cp .blueprint/tmp/$n/$admin_css public/assets/extensions/$identifier/$identifier.style.css;
|
cp .blueprint/tmp/$n/$admin_css public/assets/extensions/$identifier/$identifier.style.css;
|
||||||
fi;
|
fi;
|
||||||
|
if [[ $dashboard_css != "" ]]; then
|
||||||
|
sed -i "s~@import url(/assets/extensions/$identifier/client.style.css);~~g" public/assets/extensions/blueprint/client.style.css;
|
||||||
|
sed -i "s~/\* client.css \*/~/\* client.css \*/\n@import url(/assets/extensions/$identifier/client.style.css);~g" public/assets/extensions/blueprint/client.style.css;
|
||||||
|
cp .blueprint/tmp/$n/$dashboard_css public/assets/extensions/$identifier/client.style.css;
|
||||||
|
fi;
|
||||||
|
|
||||||
if [[ $name == *"~"* ]]; then log_yellow "[WARNING] 'name' contains '~' and may result in an error.";fi;
|
if [[ $name == *"~"* ]]; then log_yellow "[WARNING] 'name' contains '~' and may result in an error.";fi;
|
||||||
if [[ $description == *"~"* ]]; then log_yellow "[WARNING] 'description' contains '~' and may result in an error.";fi;
|
if [[ $description == *"~"* ]]; then log_yellow "[WARNING] 'description' contains '~' and may result in an error.";fi;
|
||||||
|
@ -499,7 +505,7 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) ]]; then
|
||||||
else
|
else
|
||||||
log_green "\n\n[SUCCESS] $identifier should now be installed. If something didn't work as expected, please let us know at ptero.shop/issue.";
|
log_green "\n\n[SUCCESS] $identifier should now be installed. If something didn't work as expected, please let us know at ptero.shop/issue.";
|
||||||
fi;
|
fi;
|
||||||
if [[ $dev == false ]]; then
|
if [[ $dev != true ]]; then
|
||||||
sendTelemetry "FINISH_EXTENSION_INSTALLATION" > /dev/null;
|
sendTelemetry "FINISH_EXTENSION_INSTALLATION" > /dev/null;
|
||||||
fi;
|
fi;
|
||||||
fi;
|
fi;
|
||||||
|
|
|
@ -20,6 +20,7 @@ admin:
|
||||||
|
|
||||||
dashboard:
|
dashboard:
|
||||||
wrapper: ""
|
wrapper: ""
|
||||||
|
css: ""
|
||||||
|
|
||||||
data:
|
data:
|
||||||
directory: "data"
|
directory: "data"
|
||||||
|
|
1
public/assets/extensions/blueprint/client.style.css
Normal file
1
public/assets/extensions/blueprint/client.style.css
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/* client.css */
|
|
@ -34,6 +34,7 @@
|
||||||
<style>
|
<style>
|
||||||
@import url('//fonts.googleapis.com/css?family=Rubik:300,400,500&display=swap');
|
@import url('//fonts.googleapis.com/css?family=Rubik:300,400,500&display=swap');
|
||||||
@import url('//fonts.googleapis.com/css?family=IBM+Plex+Mono|IBM+Plex+Sans:500&display=swap');
|
@import url('//fonts.googleapis.com/css?family=IBM+Plex+Mono|IBM+Plex+Sans:500&display=swap');
|
||||||
|
@import url('/assets/extensions/blueprint/client.style.css');
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
@yield('assets')
|
@yield('assets')
|
||||||
|
|
Loading…
Reference in a new issue