mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 12:34:47 -04:00
Adds index hint to server info page.
This commit is contained in:
parent
4d56f9aebf
commit
576ca69b44
4 changed files with 20 additions and 0 deletions
|
@ -16,6 +16,22 @@ body#h5ai-info {
|
||||||
font-size: 0.6em;
|
font-size: 0.6em;
|
||||||
color: #aaa;
|
color: #aaa;
|
||||||
}
|
}
|
||||||
|
.idx-file {
|
||||||
|
margin-top: 1em;
|
||||||
|
font-size: 0.6em;
|
||||||
|
display: block;
|
||||||
|
color: #aaa;
|
||||||
|
|
||||||
|
.value {
|
||||||
|
margin-left: 0.5em;
|
||||||
|
padding: 2px 4px;
|
||||||
|
.border-radius(4px);
|
||||||
|
font-family: @font-family-mono;
|
||||||
|
letter-spacing: 0.1em;
|
||||||
|
background-color: @col-widget-back;
|
||||||
|
border: @border-widget;
|
||||||
|
}
|
||||||
|
}
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 3.6em;
|
font-size: 3.6em;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
|
@ -17,6 +17,7 @@ modulejs.define('info', ['$'], function ($) {
|
||||||
$.getJSON('server/php/index.php', {action: 'get', checks: true}, function (json) {
|
$.getJSON('server/php/index.php', {action: 'get', checks: true}, function (json) {
|
||||||
|
|
||||||
if (json) {
|
if (json) {
|
||||||
|
$('.idx-file .value').text(json.checks['idx']);
|
||||||
$('.test').each(function () {
|
$('.test').each(function () {
|
||||||
|
|
||||||
setCheckResult(this, json.checks[$(this).data('id')]);
|
setCheckResult(this, json.checks[$(this).data('id')]);
|
||||||
|
|
|
@ -22,6 +22,8 @@ html.no-js( lang="en" )
|
||||||
h1 {{pkg.name}}
|
h1 {{pkg.name}}
|
||||||
span.build-version version {{pkg.version}}
|
span.build-version version {{pkg.version}}
|
||||||
span.build-stamp {{stamp}}
|
span.build-stamp {{stamp}}
|
||||||
|
span.idx-file Index File:
|
||||||
|
span.value
|
||||||
|
|
||||||
h2 server supports
|
h2 server supports
|
||||||
ul#tests
|
ul#tests
|
||||||
|
|
|
@ -289,6 +289,7 @@ class App {
|
||||||
$du = @preg_match("/du$/", `which du`) > 0;
|
$du = @preg_match("/du$/", `which du`) > 0;
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
|
"idx" => $this->app_abs_href . "server/php/index.php",
|
||||||
"php" => $php,
|
"php" => $php,
|
||||||
"cache" => $cache,
|
"cache" => $cache,
|
||||||
"thumbs" => $gd,
|
"thumbs" => $gd,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue