Skip to content

Commit 2d51879

Browse files
committed
Added index section to config page
1 parent 3b08b5b commit 2d51879

File tree

2 files changed

+61
-8
lines changed

2 files changed

+61
-8
lines changed

resources/views/components/config/config.blade.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ function text($key){
224224
?>
225225

226226

227-
<h2 class="ch2">Application</h2>
227+
<a name="Application"><h2 class="ch2">Application</h2></a>
228228

229229

230230
{{-- start register --}}
@@ -276,7 +276,7 @@ function text($key){
276276
{{text('APP_NAME')}}
277277

278278

279-
<h2 class="ch2">Panel settings</h2>
279+
<a name="Panel-settings"><h2 class="ch2">Panel settings</h2></a>
280280

281281
{{toggle('NOTIFY_EVENTS')}}
282282

@@ -296,7 +296,7 @@ function text($key){
296296
{{toggle('USE_THEME_PREVIEW_IFRAME')}}
297297

298298

299-
<h2 class="ch2">Security</h2>
299+
<a name="Security"><h2 class="ch2">Security</h2></a>
300300

301301

302302
{{toggle('ALLOW_USER_HTML')}}
@@ -308,7 +308,7 @@ function text($key){
308308
{{toggle('ENABLE_THEME_UPDATER')}}
309309

310310

311-
<h2 class="ch2">Advanced</h2>
311+
<a name="Advanced"><h2 class="ch2">Advanced</h2></a>
312312

313313

314314
{{-- start MAINTENANCE_MODE --}}
@@ -347,7 +347,7 @@ function text($key){
347347

348348

349349
{{-- start SMTP settings --}}
350-
<h2 class="ch2">SMTP</h2>
350+
<a name="SMTP"><h2 class="ch2">SMTP</h2></a>
351351
<form id="smtp-form" action="{{route('editConfig')}}" enctype="multipart/form-data" method="post">
352352
<div class="form-group col-lg-8">
353353
<input value="smtp" name="type" style="display:none;" type="text" required>
@@ -379,7 +379,7 @@ function text($key){
379379

380380

381381
{{-- start debug settings --}}
382-
<h2 class="ch2">Debug</h2>
382+
<a name="Debug"><h2 class="ch2">Debug</h2></a>
383383
<form id="debug-form" action="{{route('editConfig')}}" enctype="multipart/form-data" method="post">
384384
<div class="form-group col-lg-8">
385385
<input value="debug" name="type" style="display:none;" type="text" required>

resources/views/panel/config-editor.blade.php

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
.option{
3434
background-color: #343a40;
3535
color: rgba(255, 255, 255, 0.8) !important;
36-
height: 100px;
36+
min-height: 100px;
37+
overflow: hidden;
3738
padding: 20px;
3839
border-radius: 5px;
3940
-webkit-transition-duration: 0.3s;
@@ -59,6 +60,46 @@
5960
bottom: 10px;
6061
position: relative;
6162
}
63+
64+
.legend{
65+
background-color: #343a40;
66+
color: rgba(255, 255, 255, 0.8) !important;
67+
min-height: 65px;
68+
overflow: hidden;
69+
padding: 10px 10px;
70+
padding-left: 30px;
71+
padding-right: 30px;
72+
border-radius: 5px;
73+
-webkit-transition-duration: 0.3s;
74+
transition-duration: 0.3s;
75+
}
76+
.legend h3{
77+
color:white!important;
78+
}
79+
.legend:hover, .legend:focus, .legend:active {
80+
box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
81+
}
82+
.legendl {
83+
padding: 10px;
84+
margin-left: 5px;
85+
margin-right: 5px;
86+
min-width: 120px;
87+
display: flex;
88+
justify-content: center;
89+
align-items: center;
90+
background-color: #31363b;
91+
border-radius: 5px;
92+
position: relative;
93+
display: flex;
94+
-webkit-transition-duration: 0.3s;
95+
transition-duration: 0.3s;
96+
color: white;
97+
box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
98+
}
99+
.legendl:hover, .legendl:focus, .legendl:active {
100+
-webkit-transform: scale(1.1);
101+
transform: scale(1.1);
102+
}
62103
</style>
63104

64105
<div class="option"><a href="?alternative-config">
@@ -74,7 +115,19 @@
74115
<div class="option"><a href="{{ url('panel/phpinfo') }}">
75116
<div class="row"><i class="bi bi-filetype-php opt-img"></i><div>
76117
<h3 class="">PHP info</h3><p class="text-muted opt-txt">Display debuggin infromation about your PHP setup</p>
77-
</div></div></a></div><br>
118+
</div></div></a></div><br><br>
119+
120+
<h3>Jump directly to:</h3>
121+
<div class="legend">
122+
<div class="row">
123+
<a href="#Application"><div class="legendl">Application</div></a>
124+
<a href="#Panel-settings"><div class="legendl">Panel settings</div></a>
125+
<a href="#Security"><div class="legendl">Security</div></a>
126+
<a href="#Advanced"><div class="legendl">Advanced</div></a>
127+
<a href="#SMTP"><div class="legendl">SMTP</div></a>
128+
<a href="#Debug"><div class="legendl">Debug</div></a>
129+
<div>
130+
</div></div></div>
78131

79132
@include('components.config.config')
80133

0 commit comments

Comments
 (0)