mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 12:34:47 -04:00
Minor changes.
This commit is contained in:
parent
d784b7407f
commit
26857fea74
6 changed files with 15 additions and 8 deletions
|
@ -29,7 +29,7 @@ modulejs.define('info', ['$', 'config'], function ($, config) {
|
||||||
addTests = function () {
|
addTests = function () {
|
||||||
|
|
||||||
addTest(
|
addTest(
|
||||||
'PHP version', 'PHP version >= 5.3.0',
|
'PHP version', 'PHP version >= ' + setup.MIN_PHP_VERSION,
|
||||||
setup.HAS_PHP_VERSION
|
setup.HAS_PHP_VERSION
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
|
|
||||||
modulejs.define('view/ensure', ['$', 'core/event'], function ($, event) {
|
modulejs.define('view/ensure', ['$', 'config', 'core/event'], function ($, config, event) {
|
||||||
|
|
||||||
var selb = '#bottombar',
|
var selb = '#bottombar',
|
||||||
selr = selb + ' .right',
|
selr = selb + ' .right',
|
||||||
sela = selr + ' a',
|
sela = selr + ' a',
|
||||||
sequence = 'powered by h5ai',
|
sequence = 'powered by h5ai ' + config.setup.VERSION,
|
||||||
url = 'http://larsjung.de/h5ai/',
|
url = 'http://larsjung.de/h5ai/',
|
||||||
isVisible = ':visible',
|
isVisible = ':visible',
|
||||||
styleKey = 'style',
|
styleKey = 'style',
|
||||||
|
|
|
@ -38,5 +38,5 @@ html.no-js.browser( lang="en" )
|
||||||
| ! ⚡
|
| ! ⚡
|
||||||
span.right
|
span.right
|
||||||
a( href="{{pkg.url}}", title="{{pkg.name}} {{pkg.version}} · {{pkg.description}}" )
|
a( href="{{pkg.url}}", title="{{pkg.name}} {{pkg.version}} · {{pkg.description}}" )
|
||||||
| powered by h5ai
|
| powered by h5ai {{pkg.version}}
|
||||||
span.center
|
span.center
|
||||||
|
|
|
@ -25,9 +25,13 @@ class App {
|
||||||
public function get_setup() {
|
public function get_setup() {
|
||||||
|
|
||||||
$consts = get_defined_constants(true);
|
$consts = get_defined_constants(true);
|
||||||
$consts_user = $consts["user"];
|
$setup = $consts["user"];
|
||||||
$consts_user["PHP_VERSION"] = PHP_VERSION;
|
$setup["PHP_VERSION"] = PHP_VERSION;
|
||||||
return $consts_user;
|
unset($setup["APP_PATH"]);
|
||||||
|
unset($setup["ROOT_PATH"]);
|
||||||
|
unset($setup["CURRENT_PATH"]);
|
||||||
|
unset($setup["CACHE_PATH"]);
|
||||||
|
return $setup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ html.no-js.browser( lang="en" )
|
||||||
| ! ⚡
|
| ! ⚡
|
||||||
span.right
|
span.right
|
||||||
a( href="{{pkg.url}}", title="{{pkg.name}} {{pkg.version}} · {{pkg.description}}" )
|
a( href="{{pkg.url}}", title="{{pkg.name}} {{pkg.version}} · {{pkg.description}}" )
|
||||||
| powered by h5ai
|
| powered by h5ai {{pkg.version}}
|
||||||
span.center
|
span.center
|
||||||
|
|
||||||
div#sidebar
|
div#sidebar
|
||||||
|
|
|
@ -8,6 +8,9 @@ function setup() {
|
||||||
setlocale(LC_CTYPE, "en_US.UTF-8");
|
setlocale(LC_CTYPE, "en_US.UTF-8");
|
||||||
date_default_timezone_set("UTC");
|
date_default_timezone_set("UTC");
|
||||||
|
|
||||||
|
define("NAME", "{{pkg.name}}");
|
||||||
|
define("VERSION", "{{pkg.version}}");
|
||||||
|
|
||||||
define("BACKEND", "PHP");
|
define("BACKEND", "PHP");
|
||||||
define("API", true);
|
define("API", true);
|
||||||
define("FILE_PREFIX", "_{{pkg.name}}");
|
define("FILE_PREFIX", "_{{pkg.name}}");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue