mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-29 16:50:08 +02:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
427ca82722 | ||
|
c521ecd055 | ||
|
44e53ab213 |
@@ -1,3 +1,3 @@
|
||||
build
|
||||
node_modules
|
||||
**/vendor
|
||||
/build/
|
||||
/node_modules/
|
||||
/**/vendor/
|
||||
|
@@ -5,9 +5,6 @@
|
||||
es6: true
|
||||
node: true
|
||||
|
||||
parserOptions:
|
||||
ecmaVersion: 6
|
||||
|
||||
rules:
|
||||
array-bracket-spacing: [2, never]
|
||||
arrow-parens: [2, as-needed]
|
||||
|
8
.gitignore
vendored
8
.gitignore
vendored
@@ -1,4 +1,4 @@
|
||||
build
|
||||
local
|
||||
node_modules
|
||||
npm-debug.log
|
||||
/build/
|
||||
/local/
|
||||
/node_modules/
|
||||
/npm-debug.log
|
||||
|
24
CHANGELOG.md
24
CHANGELOG.md
@@ -1,6 +1,30 @@
|
||||
# Changelog
|
||||
|
||||
|
||||
## v0.29.2 - *2019-03-22*
|
||||
|
||||
* update `babel-loader` to 7.1.1
|
||||
* update `eslint` to 5.15.3
|
||||
* update `ghu` to 0.13.0
|
||||
* update `jsdom` to 14.0.0
|
||||
* update `kjua` to 0.2.0
|
||||
* update `lolight` to 1.0.0
|
||||
* update `scar` to 1.2.0
|
||||
|
||||
|
||||
## v0.29.1 - *2019-01-20*
|
||||
|
||||
* replace `babel-preset-es2015` with `babel-preset-env`
|
||||
* update `eslint` to 5.14.1
|
||||
* update `ghu` to 0.12.0
|
||||
* update `jsdom` to 9.2.0
|
||||
* update `kjua` to 0.1.2
|
||||
* update `lolight` to 0.6.0
|
||||
* update `marked` to 0.6.1
|
||||
* update `normalize.css` to 8.0.1
|
||||
* update `scar` to 1.0.0
|
||||
|
||||
|
||||
## v0.29.0 - *2016-08-12*
|
||||
|
||||
* back to cleaner visual experience
|
||||
|
@@ -32,7 +32,7 @@ requires [`node 6.0+`][node] to be installed).
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 Lars Jung (https://larsjung.de)
|
||||
Copyright (c) 2019 Lars Jung (https://larsjung.de)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
8
ghu.js
8
ghu.js
@@ -18,7 +18,7 @@ const webpackCfg = include => ({
|
||||
loader: 'babel-loader',
|
||||
query: {
|
||||
cacheDirectory: true,
|
||||
presets: ['es2015']
|
||||
presets: ['babel-preset-env']
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -62,10 +62,6 @@ ghu.task('clean', 'delete build folder', () => {
|
||||
return remove(BUILD);
|
||||
});
|
||||
|
||||
ghu.task('lint', 'lint all JavaScript files with eslint', () => {
|
||||
return run('eslint .', {stdio: 'inherit'});
|
||||
});
|
||||
|
||||
ghu.task('build:scripts', runtime => {
|
||||
return read(`${SRC}/_h5ai/public/js/scripts.js`)
|
||||
.then(newerThan(mapper, `${SRC}/_h5ai/public/js/**`))
|
||||
@@ -108,7 +104,7 @@ ghu.task('build:copy', runtime => {
|
||||
read(`${SRC}: **, ! **/*.js, ! **/*.less, ! **/*.pug, ! **/conf/*.json`)
|
||||
.then(newerThan(mapper))
|
||||
.then(each(obj => {
|
||||
if (/index\.php$/.test(obj.source)) {
|
||||
if ((/index\.php$/).test(obj.source)) {
|
||||
obj.content = obj.content.replace('{{VERSION}}', runtime.pkg.version);
|
||||
}
|
||||
}))
|
||||
|
6930
package-lock.json
generated
Normal file
6930
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
29
package.json
29
package.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "h5ai",
|
||||
"version": "0.29.0",
|
||||
"version": "0.29.2",
|
||||
"description": "Modern HTTP web server index.",
|
||||
"homepage": "https://larsjung.de/h5ai/",
|
||||
"bugs": "https://github.com/lrsjng/h5ai/issues",
|
||||
@@ -11,22 +11,25 @@
|
||||
"url": "https://github.com/lrsjng/h5ai.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "node ghu release"
|
||||
"lint": "eslint .",
|
||||
"test": "node test",
|
||||
"build": "node ghu release",
|
||||
"precommit": "npm run lint && npm run test"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-loader": "6.2.4",
|
||||
"babel-preset-es2015": "6.13.2",
|
||||
"eslint": "3.2.2",
|
||||
"ghu": "0.11.0",
|
||||
"jsdom": "9.4.2",
|
||||
"kjua": "0.1.1",
|
||||
"lolight": "0.3.0",
|
||||
"marked": "0.3.6",
|
||||
"normalize.css": "4.2.0",
|
||||
"babel-loader": "7.1.1",
|
||||
"babel-preset-env": "1.7.0",
|
||||
"eslint": "5.15.3",
|
||||
"ghu": "0.13.0",
|
||||
"jsdom": "14.0.0",
|
||||
"kjua": "0.2.0",
|
||||
"lolight": "1.0.0",
|
||||
"marked": "0.6.1",
|
||||
"normalize.css": "8.0.1",
|
||||
"null-loader": "0.1.1",
|
||||
"scar": "0.17.0"
|
||||
"scar": "1.2.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6.0.0"
|
||||
"node": ">=10.0.0"
|
||||
}
|
||||
}
|
||||
|
@@ -122,7 +122,7 @@
|
||||
- alwaysVisible: boolean, always show download button (defaults to download the current folder)
|
||||
*/
|
||||
"download": {
|
||||
"enabled": false,
|
||||
"enabled": true,
|
||||
"type": "php-tar",
|
||||
"packageName": null,
|
||||
"alwaysVisible": false
|
||||
@@ -157,7 +157,7 @@
|
||||
- type: string, "php" (sloooow) or "shell-du" (sloow)
|
||||
*/
|
||||
"foldersize": {
|
||||
"enabled": false,
|
||||
"enabled": true,
|
||||
"type": "php"
|
||||
},
|
||||
|
||||
@@ -180,7 +180,7 @@
|
||||
- qrColor: string, QR-Code fill color
|
||||
*/
|
||||
"info": {
|
||||
"enabled": false,
|
||||
"enabled": true,
|
||||
"show": false,
|
||||
"qrcode": true,
|
||||
"qrFill": "#999",
|
||||
@@ -318,7 +318,7 @@
|
||||
- checkboxes: boolean, show a checkbox on mouse over item
|
||||
*/
|
||||
"select": {
|
||||
"enabled": false,
|
||||
"enabled": true,
|
||||
"clickndrag": true,
|
||||
"checkboxes": true
|
||||
},
|
||||
|
@@ -49,7 +49,7 @@ const addListener = (el, type, fn) => el.addEventListener(type, fn);
|
||||
const removeListener = (el, type, fn) => el.removeEventListener(type, fn);
|
||||
|
||||
const readyPromise = new Promise(resolve => {
|
||||
if (/^(i|c|loade)/.test(doc.readyState)) {
|
||||
if ((/^(i|c|loade)/).test(doc.readyState)) {
|
||||
resolve();
|
||||
} else {
|
||||
addListener(doc, 'DOMContentLoaded', () => resolve());
|
||||
|
@@ -1,5 +1,6 @@
|
||||
if (!global.window) {
|
||||
global.window = require('jsdom').jsdom().defaultView;
|
||||
const JSDOM = require('jsdom').JSDOM;
|
||||
global.window = new JSDOM('').window;
|
||||
}
|
||||
|
||||
const {test} = require('scar');
|
||||
|
Reference in New Issue
Block a user