File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
resources/views/components/config Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
- <p >Allows editing the frontend of your site. Amongst other things, this file allows customization of:<br >
1
+ <p >Allows editing the frontend of your site. Amongst other things, this file allows customization of:<br >
2
2
Home Page, links, titles, Google Analytics and meta tags.</p >
3
3
<form action =" {{ route (' editAC' ) } }" method =" post" >
4
4
@csrf
5
5
<div class =" form-group" >
6
6
<label >Advanced Configuration file.</label >
7
7
<textarea style =" width :100% ;display :none ;" class =" form-control" name =" AdvancedConfig" rows =" 280" >{{ file_get_contents (' config/advanced-config.php' ) } } </textarea >
8
- <div id =" editor" style =" width :100% ; height :<?php echo count(file(' config/advanced-config.php' )) * 24 + 15;?>px ;" class =" form-control" name =" AdvancedConfig" rows =" 280" >{{ file_get_contents (' config/advanced-config.php' ) } } </div >
8
+ <div id =" editor" style =" width :100% ; height :<?php echo count(file(' config/advanced-config.php' )) * 24 + 15;?>px ; background-color : transparent !important ; " class =" form-control border-1 border-light " name =" AdvancedConfig" rows =" 280" >{{ file_get_contents (' config/advanced-config.php' ) } } </div >
9
9
</div >
10
10
<button type =" submit" class =" mt-3 ml-3 btn btn-info" >Save</button >
11
11
<a class =" mt-3 ml-3 btn btn-primary confirmation" href =" {{ url (' /panel/advanced-config?restore-defaults' )} }" >Restore defaults</a >
24
24
<script src =" {{ asset (' studio/external-dependencies/ace.js' ) } }" type =" text/javascript" charset =" utf-8" ></script >
25
25
<script >
26
26
var editor = ace .edit (" editor" );
27
- editor .setTheme (" ace/theme/xcode" );
27
+ // if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
28
+ if (! $ (' #toggle-switch' ).is (' :checked' )){
29
+ // dark mode
30
+ editor .setTheme (" ace/theme/tomorrow_night" );
31
+ } else {
32
+ editor .setTheme (" ace/theme/xcode" );
33
+ }
28
34
editor .getSession ().setMode (" ace/mode/javascript" );
29
35
editor .session .setUseWorker (false );
30
36
</script >
You can’t perform that action at this time.
0 commit comments