mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-03-19 12:00:01 +01:00
Moves index.html to jade. Minor changes.
This commit is contained in:
parent
bdcab107eb
commit
a99c28f234
18
makefile.js
18
makefile.js
@ -36,7 +36,7 @@ var version = '0.22-dev-8',
|
||||
|
||||
mapper = function (blob) {
|
||||
|
||||
return blob.source.replace(src, build).replace(/\.less$/, '.css');
|
||||
return blob.source.replace(src, build).replace(/\.less$/, '.css').replace(/\.jade$/, '.html');
|
||||
},
|
||||
|
||||
mapperRoot = function (blob) {
|
||||
@ -118,7 +118,13 @@ module.exports = function (make) {
|
||||
.cssmin()
|
||||
.write($.OVERWRITE, mapper);
|
||||
|
||||
$(src + ': **, ! _h5ai/js/**, ! _h5ai/css/**')
|
||||
$(src + ': **/*.jade')
|
||||
.modified(mapper)
|
||||
.handlebars(replacements)
|
||||
.jade()
|
||||
.write($.OVERWRITE, mapper);
|
||||
|
||||
$(src + ': **, ! _h5ai/js/**, ! _h5ai/css/**, ! **/*.jade')
|
||||
.modified(mapper)
|
||||
.handlebars(replacements)
|
||||
.write($.OVERWRITE, mapper);
|
||||
@ -144,7 +150,13 @@ module.exports = function (make) {
|
||||
// .cssmin()
|
||||
.write($.OVERWRITE, mapper);
|
||||
|
||||
$(src + ': **, ! _h5ai/js/**, ! _h5ai/css/**')
|
||||
$(src + ': **/*.jade')
|
||||
.modified(mapper)
|
||||
.handlebars(replacements)
|
||||
.jade()
|
||||
.write($.OVERWRITE, mapper);
|
||||
|
||||
$(src + ': **, ! _h5ai/js/**, ! _h5ai/css/**, ! **/*.jade')
|
||||
.modified(mapper)
|
||||
.handlebars(replacements)
|
||||
.write($.OVERWRITE, mapper);
|
||||
|
@ -1,7 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
|
||||
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
|
||||
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
|
||||
<!--[if lt IE 9]> <html class="no-js oldie" lang="en"> <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
@ -282,7 +282,7 @@ var H5AI_CONFIG = {
|
||||
/*
|
||||
Requires PHP on the server.
|
||||
Show thumbnails for image files. Needs the "/_h5ai/cache" folder to be
|
||||
writable for the Apache Server.
|
||||
writable for the web Server.
|
||||
- img thumbnails depend on PHP-GD
|
||||
- mov thumbnails depend on ffmpeg
|
||||
- doc thumbnails depend on convert
|
||||
|
@ -12,7 +12,7 @@ $H5AI_CONFIG = array(
|
||||
|
||||
/*
|
||||
* This configuration assumes that h5ai is installed
|
||||
* in the webroot directory of the Apache server.
|
||||
* in the webroot directory of the web server.
|
||||
*/
|
||||
"ROOT_ABS_PATH" => dirname(dirname(__FILE__)),
|
||||
|
||||
|
@ -66,7 +66,7 @@ body#h5ai-info {
|
||||
margin: 4px 0 12px 12px;
|
||||
font-size: 0.7em;
|
||||
color: #aaa;
|
||||
width: 300px;
|
||||
width: 310px;
|
||||
line-height: 1.2em;
|
||||
}
|
||||
}
|
||||
|
@ -1,67 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
|
||||
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
|
||||
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<title>h5ai {{version}} server details</title>
|
||||
<meta name="description" content="h5ai server details">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="shortcut icon" type="image/png" href="/_h5ai/images/h5ai-16x16.png">
|
||||
<link rel="apple-touch-icon" type="image/png" href="/_h5ai/images/h5ai-48x48.png">
|
||||
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic,700italic|Ubuntu:400,700,400italic,700italic">
|
||||
<link rel="stylesheet" href="/_h5ai/css/styles.css">
|
||||
<script src="/_h5ai/js/modernizr.js"></script>
|
||||
</head>
|
||||
<body id="h5ai-info">
|
||||
<h1>h5ai</h1>
|
||||
<span class="build-version">version {{version}}</span>
|
||||
<span class="build-stamp">{{stamp}}</span>
|
||||
<h2>server supports</h2>
|
||||
<ul id="tests">
|
||||
<li class="test" data-id="php"><span class="test-label">php version</span><span class="test-result">?</span>
|
||||
<div class="test-info">PHP version >= 5.2.1</div>
|
||||
</li>
|
||||
<li class="test" data-id="cache"><span class="test-label">cache</span><span class="test-result">?</span>
|
||||
<div class="test-info">_h5ai/cache writable for the server</div>
|
||||
</li>
|
||||
<li class="test" data-id="thumbs"><span class="test-label">image thumbs</span><span class="test-result">?</span>
|
||||
<div class="test-info">PHP GD extension with JPEG support available</div>
|
||||
</li>
|
||||
<li class="test" data-id="ffmpeg"><span class="test-label">movie thumbs</span><span class="test-result">?</span>
|
||||
<div class="test-info">ffmpeg executable in a shell</div>
|
||||
</li>
|
||||
<li class="test" data-id="convert"><span class="test-label">pdf thumbs</span><span class="test-result">?</span>
|
||||
<div class="test-info">convert executable in a shell</div>
|
||||
</li>
|
||||
<li class="test" data-id="temp"><span class="test-label">temp directory</span><span class="test-result">?</span>
|
||||
<div class="test-info">temporary directory writable for the server</div>
|
||||
</li>
|
||||
<li class="test" data-id="archive"><span class="test-label">php tar and zip</span><span class="test-result">?</span>
|
||||
<div class="test-info">PHP Phar extension available</div>
|
||||
</li>
|
||||
<li class="test" data-id="tar"><span class="test-label">shell tar</span><span class="test-result">?</span>
|
||||
<div class="test-info">tar executable in a shell</div>
|
||||
</li>
|
||||
<li class="test" data-id="zip"><span class="test-label">shell zip</span><span class="test-result">?</span>
|
||||
<div class="test-info">zip executable in a shell</div>
|
||||
</li>
|
||||
<li class="test" data-id="du"><span class="test-label">folder size</span><span class="test-result">?</span>
|
||||
<div class="test-info">du executable in a shell</div>
|
||||
</li>
|
||||
</ul>
|
||||
<div id="bottombar" class="clearfix">
|
||||
<span class="left">
|
||||
<a id="h5ai-reference" href="http://larsjung.de/h5ai" title="h5ai project page">h5ai {{version}}</a>
|
||||
<span class="hideOnJs noJsMsg"> ⚡ JavaScript is disabled! ⚡ </span>
|
||||
<span class="oldBrowser"> ⚡ Some features disabled! Works best in <a href="http://browsehappy.com">modern browsers</a>. ⚡ </span>
|
||||
</span>
|
||||
<span class="right"></span>
|
||||
<span class="center"></span>
|
||||
</div>
|
||||
<script src="/_h5ai/config.js"></script>
|
||||
<script src="/_h5ai/js/scripts.js"></script>
|
||||
</body>
|
||||
</html>
|
81
src/_h5ai/index.jade
Normal file
81
src/_h5ai/index.jade
Normal file
@ -0,0 +1,81 @@
|
||||
doctype 5
|
||||
//if lt IE 9
|
||||
<html class="no-js oldie" lang="en">
|
||||
//[if gt IE 8]><!
|
||||
html.no-js( lang="en" )
|
||||
//<![endif]
|
||||
|
||||
head
|
||||
meta( charset="utf-8" )
|
||||
meta( http-equiv="X-UA-Compatible", content="IE=edge,chrome=1" )
|
||||
title h5ai {{version}} server details
|
||||
meta( name="description", content="h5ai server details" )
|
||||
meta( name="viewport", content="width=device-width" )
|
||||
link( rel="shortcut icon", type="image/png", href="/_h5ai/images/h5ai-16x16.png" )
|
||||
link( rel="apple-touch-icon", type="image/png", href="/_h5ai/images/h5ai-48x48.png" )
|
||||
link( rel="stylesheet", href="//fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic,700italic|Ubuntu:400,700,400italic,700italic" )
|
||||
link( rel="stylesheet", href="/_h5ai/css/styles.css" )
|
||||
script( src="/_h5ai/js/modernizr.js" )
|
||||
|
||||
body#h5ai-info
|
||||
|
||||
h1 h5ai
|
||||
span.build-version version {{version}}
|
||||
span.build-stamp {{stamp}}
|
||||
|
||||
h2 server supports
|
||||
ul#tests
|
||||
li.test( data-id="php" )
|
||||
span.test-label php version
|
||||
span.test-result ?
|
||||
div.test-info PHP version >= 5.2.1
|
||||
li.test( data-id="cache" )
|
||||
span.test-label cache
|
||||
span.test-result ?
|
||||
div.test-info _h5ai/cache writable for the server
|
||||
li.test( data-id="thumbs" )
|
||||
span.test-label image thumbs
|
||||
span.test-result ?
|
||||
div.test-info PHP GD extension with JPEG support available
|
||||
li.test( data-id="ffmpeg" )
|
||||
span.test-label movie thumbs
|
||||
span.test-result ?
|
||||
div.test-info ffmpeg executable in a shell
|
||||
li.test( data-id="convert" )
|
||||
span.test-label pdf thumbs
|
||||
span.test-result ?
|
||||
div.test-info convert executable in a shell
|
||||
li.test( data-id="temp" )
|
||||
span.test-label temp directory
|
||||
span.test-result ?
|
||||
div.test-info temporary directory writable for the server
|
||||
li.test( data-id="archive" )
|
||||
span.test-label php tar and zip
|
||||
span.test-result ?
|
||||
div.test-info PHP Phar extension available
|
||||
li.test( data-id="tar" )
|
||||
span.test-label shell tar
|
||||
span.test-result ?
|
||||
div.test-info tar executable in a shell
|
||||
li.test( data-id="zip" )
|
||||
span.test-label shell zip
|
||||
span.test-result ?
|
||||
div.test-info zip executable in a shell
|
||||
li.test( data-id="du" )
|
||||
span.test-label folder size
|
||||
span.test-result ?
|
||||
div.test-info du executable in a shell
|
||||
|
||||
div#bottombar.clearfix
|
||||
span.left
|
||||
a#h5ai-reference( href="http://larsjung.de/h5ai", title="h5ai project page" ) h5ai {{version}}
|
||||
span.hideOnJs.noJsMsg ⚡ JavaScript is disabled! ⚡
|
||||
span.oldBrowser
|
||||
| ⚡ Some features disabled! Works best in
|
||||
a( href="http://browsehappy.com" ) modern browsers
|
||||
| . ⚡
|
||||
span.right
|
||||
span.center
|
||||
|
||||
script( src="/_h5ai/config.js" )
|
||||
script( src="/_h5ai/js/scripts.js" )
|
@ -1,8 +1,6 @@
|
||||
<?php header("Content-type: text/html;h5ai={{version}}"); ?>
|
||||
<!DOCTYPE html>
|
||||
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
|
||||
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
|
||||
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
|
||||
<!--[if lt IE 9]> <html class="no-js oldie" lang="en"> <![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
Loading…
x
Reference in New Issue
Block a user