1
0
mirror of https://github.com/lrsjng/h5ai.git synced 2025-08-30 09:10:28 +02:00

Compare commits

...

4 Commits

Author SHA1 Message Date
Lars Jung
e70d9029d2 Added es translation. 2011-07-30 12:35:51 +02:00
Lars Jung
b561082bca Updated build process and readme. 2011-07-29 13:52:51 +02:00
Lars Jung
ae464169a6 Updated readme. 2011-07-29 03:25:48 +02:00
Lars Jung
0f681930b3 Fixed unchecked use of console.log. 2011-07-29 02:36:53 +02:00
9 changed files with 61 additions and 26 deletions

View File

@@ -1,22 +1,26 @@
# h5ai v0.12   ·   a beautified Apache index
# h5ai
h5ai tries to make browsing files on a Apache HTTP server more comfortable. It makes use of the
built-in autoindex module of Apache and adds styles and functionality to the page generated by
this module.
For installation instructions and documentation have a look at the [project page](http://larsjung.de/h5ai).
There is also a [sample folder](http://larsjung.de/h5ai/sample).
* [Download, docs and demo](http://larsjung.de/h5ai)
* [Sources at GitHub](http://github.com/lrsjng/h5ai)
[h5ai](http://larsjung.de/h5ai) is provided under the terms of the MIT License.
It uses
[HTML5 Boilerplate](http://html5boilerplate.com),
[jQuery](http://jquery.com),
[Modernizr](http://www.modernizr.com) and
[Faenza icon set](http://tiheum.deviantart.com/art/Faenza-Icons-173323228),
please respect their rights.
h5ai is provided under the terms of the [MIT License](http://github.com/lrsjng/h5ai/blob/master/LICENSE.txt).
It uses the [Faenza icon set](http://tiheum.deviantart.com/art/Faenza-Icons-173323228) (GPL license).
## Changelog
### v0.12.2
*2011-07-30*
* added es translation by Jose David Calderon Serrano
### v0.12.1
*2011-07-29*
* fixed unchecked use of console.log
### v0.12
*2011-07-28*

View File

@@ -3,7 +3,7 @@ custom = true
# project
project.name = h5ai
project.version = 0.12
project.version = 0.12.2
# src

View File

@@ -2,7 +2,7 @@
<project
name="h5ai"
basedir="."
default="build"
default="release"
xmlns:scripp="antlib:de.larsjung.scripp.ant"
>
<target name="init">
@@ -26,35 +26,48 @@
</target>
<target name="build" depends="clean">
<target name="build-prepare" depends="clean">
<mkdir dir="${build.dir}" />
<copy todir="${build.dir}">
<fileset dir="${src.dir}" />
<fileset file="LICENSE.txt" />
<fileset file="README.md" />
</copy>
<copy file="LICENSE.txt" todir="${build.dir}" />
<replace dir="${build.dir}">
<replacefilter token="%BUILD%" value="${build.label}" />
<replacefilter token="%BUILD_NAME%" value="${project.name}" />
<replacefilter token="%BUILD_VERSION%" value="${project.version}" />
<replacefilter token="%BUILD_STAMP%" value="${build.stamp}" />
</replace>
</target>
<target name="build" depends="build-prepare">
<scripp.dir dir="${build.dir}/h5ai/css" />
<scripp.dir dir="${build.dir}/h5ai/js" />
</target>
<!-- release -->
<target name="build-uncompressed" depends="build-prepare">
<scripp.dir dir="${build.dir}/h5ai/css" compress="false" />
<scripp.dir dir="${build.dir}/h5ai/js" compress="false" />
</target>
<target name="release" depends="build">
<mkdir dir="${release.dir}" />
<zip destfile="${release.dir}/${project.name}-${project.version}.zip" basedir="${build.dir}" />
<tar destfile="${release.dir}/${project.name}-${project.version}.tar" basedir="${build.dir}"/>
<gzip destfile="${release.dir}/${project.name}-${project.version}.tar.gz" src="${release.dir}/${project.name}-${project.version}.tar"/>
<delete file="${release.dir}/${project.name}-${project.version}.tar" />
<zip destfile="${release.dir}/${project.name}-${project.version}.zip" basedir="${build.dir}" />
</target>
<macrodef name="scripp.dir">
<attribute name="dir" />
<attribute name="compress" default="true" />
<sequential>
<scripp:process>
<scripp:process compress="@{compress}">
<fileset dir="@{dir}" includes="**/*.less,**/*.css,**/*.js" excludes="inc/**/*,**/*.min.css,**/*.min.js" />
<globmapper from="*.less" to="*.css" />
<globmapper from="*.css" to="*.css" />

BIN
release/h5ai-0.12.2.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@@ -219,11 +219,11 @@ var H5ai = function ( options, langs, pathCache ) {
var path = pathCache.getPathForTableRow( document.location.pathname, this );
$ul.append( path.updateExtendedHtml() );
} );
$.timer.log( "end entries" );
$.timer.log( "end entries" );
$( "#table" ).remove();
$( "#extended" ).append( $ul );
console.log( "folders", $( "#extended .folder" ).size() , "files", $( "#extended .file" ).size() );
$.log( document.location.pathname, "folders:", $( "#extended .folder" ).size() , "files:", $( "#extended .file" ).size() );
// empty
if ( $ul.children( ".entry:not(.parentfolder)" ).size() === 0 ) {

View File

@@ -6,14 +6,21 @@
// @include "inc/h5ai.js"
// @include "inc/tree.js"
var Timer = function () {
// http://paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
$.log = function () {
$.log.history = $.log.history || [];
$.log.history.push( arguments );
if ( window.console ) {
window.console.log( Array.prototype.slice.call( arguments ) );
};
};
var Timer = function () {
this.start = new Date().getTime();;
this.last = this.start;
this.log = function ( label ) {
var now = new Date().getTime();
console.log( "timer", label, "+" + (now - this.last), "=" + (now - this.start) );
$.log( "timer", label, "+" + (now - this.last), "=" + (now - this.start) );
this.last = now;
};
};

View File

@@ -148,6 +148,17 @@ h5aiLangs = {
footerUsing: "používá",
parentDirectory: "Nadriadený priečinok",
empty: "prázdny"
},
"es": {
viewDetails: "Detalles",
viewIcons: "Íconos",
columnName: "Nombre",
columnLastModified: "Última modificación",
columnSize: "Tamaño",
footerUsing: "usando",
parentDirectory: "Directorio superior",
empty: "vacío"
}
};