- fixed mousewheel scroll in select options, closed #696

- fixed Gulp task "help"
This commit is contained in:
Mark Friedrich
2018-11-29 09:54:19 +01:00
parent a8b51af028
commit 783123052b
6 changed files with 49 additions and 41 deletions

View File

@@ -109,14 +109,16 @@ let uglifyJsOptions = {
let printError = (title, example) => {
let cliLineLength = (cliBoxLength - 8);
log('').log(colors.red( '= ERROR ' + '=' . repeat(cliLineLength)));
log('');
log(colors.red( '= ERROR ' + '=' . repeat(cliLineLength)));
log(colors.red(title));
if(example){
log(`
${colors.gray(example)}
`);
}
log(colors.red('='.repeat(cliBoxLength))).log('');
log(colors.red('='.repeat(cliBoxLength)));
log('');
};
// == Settings ========================================================================================================
@@ -270,34 +272,34 @@ let mergeConf = (confUser, confDefault) => {
*/
let printHelp = () => {
let cliLineLength = (cliBoxLength - 7);
log('')
.log(colors.cyan( '= HELP ' + '='.repeat(cliLineLength)))
.log(`
${colors.cyan('documentation:')} ${colors.gray('https://github.com/exodus4d/pathfinder/wiki/GulpJs')}
log('');
log(colors.cyan( '= HELP ' + '='.repeat(cliLineLength)));
log(`
${colors.cyan('documentation:')} ${colors.gray('https://github.com/exodus4d/pathfinder/wiki/GulpJs')}
${colors.cyan('usage:')} ${colors.gray('$ npm run gulp [task] -- [--options] ...')}
${colors.cyan('tasks:')}
${colors.gray('help')} This view
${colors.gray('default')} Development environment. Working with row src files and file watcher, default:
${colors.gray('')} ${colors.gray('--jsUglify=false --jsSourcemaps=false --cssSourcemaps=false --jsGzip=false --cssGzip=false --jsBrotli=false --cssBrotli=false')}
${colors.gray('production')} Production build. Concat and uglify static resources, default:
${colors.gray('')} ${colors.gray('--jsUglify=true --jsSourcemaps=true --cssSourcemaps=true --jsGzip=true --cssGzip=true --jsBrotli=true --cssBrotli=true')}
${colors.cyan('options:')}
${colors.gray('--tag')} Set build version. ${colors.gray('default: --tag="v1.2.4" -> dest path: public/js/v1.2.4')}
${colors.gray('--jsUglify')} Set js uglification. ${colors.gray('(true || false)')}
${colors.gray('--jsSourcemaps')} Set js sourcemaps generation. ${colors.gray('(true || false)')}
${colors.gray('--jsGzip')} Set js "gzip" compression mode. ${colors.gray('(true || false)')}
${colors.gray('--jsBrotli')} Set js "brotli" compression mode. ${colors.gray('(true || false)')}
${colors.cyan('usage:')} ${colors.gray('$ npm run gulp [task] -- [--options] ...')}
${colors.cyan('tasks:')}
${colors.gray('help')} This view
${colors.gray('default')} Development environment. Working with row src files and file watcher, default:
${colors.gray('')} ${colors.gray('--jsUglify=false --jsSourcemaps=false --cssSourcemaps=false --jsGzip=false --cssGzip=false --jsBrotli=false --cssBrotli=false')}
${colors.gray('production')} Production build. Concat and uglify static resources, default:
${colors.gray('')} ${colors.gray('--jsUglify=true --jsSourcemaps=true --cssSourcemaps=true --jsGzip=true --cssGzip=true --jsBrotli=true --cssBrotli=true')}
${colors.cyan('options:')}
${colors.gray('--tag')} Set build version. ${colors.gray('default: --tag="v1.2.4" -> dest path: public/js/v1.2.4')}
${colors.gray('--jsUglify')} Set js uglification. ${colors.gray('(true || false)')}
${colors.gray('--jsSourcemaps')} Set js sourcemaps generation. ${colors.gray('(true || false)')}
${colors.gray('--jsGzip')} Set js "gzip" compression mode. ${colors.gray('(true || false)')}
${colors.gray('--jsBrotli')} Set js "brotli" compression mode. ${colors.gray('(true || false)')}
${colors.gray('--cssSourcemaps')} Set CSS sourcemaps generation. ${colors.gray('(true || false)')}
${colors.gray('--cssGzip')} Set CSS "gzip" compression mode. ${colors.gray('(true || false)')}
${colors.gray('--cssBrotli')} Set CSS "brotli" compression mode. ${colors.gray('(true || false)')}
${colors.gray('--debug')} Set debug mode (more output). ${colors.gray('(true || false)')}
`)
.log(colors.cyan('='.repeat(cliBoxLength)))
.log('');
${colors.gray('--cssSourcemaps')} Set CSS sourcemaps generation. ${colors.gray('(true || false)')}
${colors.gray('--cssGzip')} Set CSS "gzip" compression mode. ${colors.gray('(true || false)')}
${colors.gray('--cssBrotli')} Set CSS "brotli" compression mode. ${colors.gray('(true || false)')}
${colors.gray('--debug')} Set debug mode (more output). ${colors.gray('(true || false)')}
`);
log(colors.cyan('='.repeat(cliBoxLength)));
log('');
};
/**

View File

@@ -4,7 +4,9 @@
define([
'jquery',
'app/init',
'app/util'
'app/util',
'mousewheel',
'customScrollbar'
], ($, Init, Util) => {
'use strict';

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -4,7 +4,9 @@
define([
'jquery',
'app/init',
'app/util'
'app/util',
'mousewheel',
'customScrollbar'
], ($, Init, Util) => {
'use strict';

View File

@@ -19,14 +19,6 @@ input, select{
-webkit-text-fill-color: $gray-lighter;
}
// file input
&::-webkit-file-upload-button{
background-color: transparent;
border: none;
color: $gray-light;
outline: none;
}
&[disabled]{
@include placeholder(transparent);
}
@@ -44,6 +36,16 @@ input[type='number']{
-moz-appearance: none;
appearance: none;
margin: 0;
display: none;
}
}
input[type='file']{
&::-webkit-file-upload-button{
background-color: transparent;
border: none;
color: $gray-light;
outline: none;
}
}