Skip to content

Commit 442e537

Browse files
author
Stefan Sträßer
committed
v4.10.0 release
1 parent 8c4c0c8 commit 442e537

37 files changed

+3544
-281
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
## <span style='color:#563D7C;'>CHANGELOG</span>
22

3+
### <span style='color:#563D7C;'>Version 4.10.0 *2020-03-10*</span>
4+
5+
+ **bugfix** in the resizeit functionality, issue https://github.com/Flyer53/jsPanel4/issues/117
6+
+ **fixed** CSS issue concerning header logo in minimized panel
7+
+ **added** method `jsPanel.toggleClass()`
8+
+ **added** option `data`
9+
+ **updated** `layout` extension
10+
+ **updated** all jsPanel events (`jspanelloaded`, `jspanelclosed`, etc.) are now cancelable
11+
312
### <span style='color:#563D7C;'>Version 4.9.5 *2020-02-01*</span>
413

514
+ **bugfix** in option resizeit parameter `aspectRatio` when using modifier keys

Gulpfile.js

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
/* global require, exports */
2+
const { series, src, dest } = require('gulp');
3+
const babel = require('gulp-babel');
4+
const minify = require('gulp-minify');
5+
const sass = require('gulp-sass');
6+
const cleanCSS = require('gulp-clean-css');
7+
const rename = require('gulp-rename');
8+
const header = require('gulp-header');
9+
const footer = require('gulp-footer');
10+
const pkg = require('./package.json');
11+
12+
13+
let header_banner_strict = ['',
14+
'\'use strict\';',
15+
''].join('\n');
16+
17+
let header_banner = ['/**',
18+
' * jsPanel - <%= pkg.description %>',
19+
' * @version v<%= pkg.version %>',
20+
' * @homepage <%= pkg.homepage %>',
21+
' * @license <%= pkg.license %>',
22+
' * @author <%= pkg.author.name %> - <%= pkg.author.email %>',
23+
' * @github <%= pkg.repository.url %>',
24+
' */',
25+
''].join('\n');
26+
27+
let header_banner_es6_export = '\nexport ';
28+
29+
let header_banner_es6_import = '\nimport {jsPanel} from \'../../jspanel.js\';\n\n';
30+
31+
let footer_banner = ['\n',
32+
'// Add CommonJS module exports, so it can be imported using require() in Node.js',
33+
'// https://nodejs.org/docs/latest/api/modules.html',
34+
'if (typeof module !== \'undefined\') { module.exports = jsPanel; }',
35+
''].join('\n');
36+
37+
function scss() {
38+
return src('source/**/*.sass')
39+
.pipe(sass().on('error', sass.logError))
40+
.pipe(header(header_banner, { pkg : pkg } ))
41+
.pipe(dest('dist/'))
42+
.pipe(dest('es6module/'))
43+
.pipe(cleanCSS())
44+
.pipe(rename({ suffix: '.min' }))
45+
.pipe(dest('dist/'))
46+
.pipe(dest('es6module/'));
47+
}
48+
49+
function jspanel() {
50+
// calendar extension excluded because it's only experimental
51+
return src('source/**/*.js')
52+
.pipe(babel({
53+
presets: [
54+
['@babel/env', {
55+
'modules': false
56+
}]
57+
]
58+
}))
59+
.pipe(header(header_banner_strict, { pkg : pkg } ))
60+
.pipe(header(header_banner, { pkg : pkg } ))
61+
.pipe(footer(footer_banner, { pkg : pkg } ))
62+
.pipe(dest('dist'))
63+
.pipe(minify({
64+
ext:{ min:'.min.js' }
65+
}))
66+
.pipe(dest('dist'));
67+
}
68+
function jspanel_es6() {
69+
return src('source/jspanel.js')
70+
.pipe(header(header_banner_es6_export, { pkg : pkg } ))
71+
.pipe(header(header_banner, { pkg : pkg } ))
72+
.pipe(dest('es6module/'))
73+
.pipe(minify({
74+
ext:{ min:'.min.js' }
75+
}))
76+
.pipe(dest('es6module/'));
77+
}
78+
// don't merge jspanel_es6 with jspanel_extensions_es6 because extensions don't export anything but need the import statement
79+
function jspanel_extensions_es6() {
80+
// calendar extension excluded because it's only experimental
81+
return src('source/extensions/**/*.js')
82+
.pipe(header(header_banner_es6_import, { pkg : pkg } ))
83+
.pipe(header(header_banner, { pkg : pkg } ))
84+
.pipe(dest('es6module/extensions/'))
85+
.pipe(minify({
86+
ext:{ min:'.min.js' }
87+
}))
88+
.pipe(dest('es6module/extensions/'));
89+
}
90+
91+
function template() {
92+
return src('template_standard.html')
93+
.pipe(rename('index.html'))
94+
.pipe(dest('dist/'));
95+
}
96+
function templateES6() {
97+
return src('template_es6module.html')
98+
.pipe(rename('index.html'))
99+
.pipe(dest('es6module/'));
100+
}
101+
102+
103+
104+
105+
exports.default = series(jspanel, jspanel_es6, jspanel_extensions_es6, scss, template, templateES6);

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![license MIT](https://img.shields.io/badge/license-MIT-blue.svg) [![npm version](https://badge.fury.io/js/jspanel4.svg)](https://badge.fury.io/js/jspanel4) [![npm](https://img.shields.io/npm/dt/express.svg)](https://www.npmjs.com/package/jspanel4) [![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg)](https://gitter.im/jsPanel/Lobby?utm_source=share-link&utm_medium=link&utm_campaign=share-link)
22

3-
## [jsPanel 4.9.5 released 2020-02-01](#)
3+
## [jsPanel 4.10.0 released 2020-03-10](#)
44

55
<img src="https://res.cloudinary.com/stefanstraesser-eu/image/upload/v1558601426/jsPanel4.7.0-sample-panels-1920_yzobd9.jpg">
66

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jspanel4x",
3-
"version": "4.9.5",
3+
"version": "4.10.0",
44
"authors": [
55
"Stefan Straesser <info@jspanel.de> (http://jspanel.de/)"
66
],

0 commit comments

Comments
 (0)