Skip to content

Commit

Permalink
latest build
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar committed Feb 18, 2019
1 parent 3cc9a8c commit 9d927c2
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 15,836 deletions.
11,799 changes: 1 addition & 11,798 deletions build/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/app.js.map

Large diffs are not rendered by default.

4,033 changes: 1 addition & 4,032 deletions build/dash.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/dash.js.map

Large diffs are not rendered by default.

Binary file modified build/index.htm.gz
Binary file not shown.
6 changes: 6 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ gulp.task('styles', function () {
.pipe(gulp.dest('./build'))
});

gulp.task('scripts', function () {
return gulp.src('./build/dash.js')
.pipe(gzip())
.pipe(gulp.dest('./build'))
});

gulp.task('pages', function() {
return gulp.src(['./src/index.htm'])
.pipe(htmlmin({
Expand Down
2 changes: 1 addition & 1 deletion src/lib/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { loader } from './loader';
import { menu } from './menu';

const PLUGINS = [
'http://localhost:8080/build/dash.js'
'/dash.js.gz'
];

const dynamicallyLoadScript = (url) => {
Expand Down
8 changes: 6 additions & 2 deletions src/pages/fs.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import { h, Component } from 'preact';
import { deleteFile, storeFile } from '../lib/espeasy';
import { loader } from '../lib/loader';

export class FSPage extends Component {
constructor(props) {
super(props);
this.state = { files: [] }

this.saveForm = () => {
storeFile(this.file.files[0]);
this.saveForm = async () => {
loader.show();
await storeFile(this.file.files[0]);
await fetch();
}

this.deleteFile = e => {
Expand All @@ -23,6 +26,7 @@ export class FSPage extends Component {
}

render(props) {
loader.hide();
return (
<div>
<form class="pure-form pure-form-aligned">
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var LiveReloadPlugin = require('webpack-livereload-plugin');
var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;

module.exports = env => ({
mode: 'development', //env && env.production ? 'production' : 'development',
mode: 'production', //env && env.production ? 'production' : 'development',
entry: {
app: './src/app.js',
dash: './src/plugins/dashboard/index.js',
Expand Down

0 comments on commit 9d927c2

Please sign in to comment.