Browse Source

Enable embedded web by default

fastled
Xose Pérez 7 years ago
parent
commit
9bf4a2b725
7 changed files with 74 additions and 74 deletions
  1. +0
    -62
      code/espurna/config/data.h
  2. +1
    -1
      code/espurna/config/general.h
  3. BIN
      code/espurna/data/index.html.gz
  4. +62
    -0
      code/espurna/static/index.html.gz.h
  5. +1
    -1
      code/espurna/web.ino
  6. +3
    -3
      code/gulpfile.js
  7. +7
    -7
      code/html/index.html

+ 0
- 62
code/espurna/config/data.h
File diff suppressed because it is too large
View File


+ 1
- 1
code/espurna/config/general.h View File

@ -115,7 +115,7 @@
// of the web interface by running "gulp buildfs_embed"
#ifndef EMBEDDED_WEB
#define EMBEDDED_WEB 0
#define EMBEDDED_WEB 1
#endif
// -----------------------------------------------------------------------------


BIN
code/espurna/data/index.html.gz View File


+ 62
- 0
code/espurna/static/index.html.gz.h
File diff suppressed because it is too large
View File


+ 1
- 1
code/espurna/web.ino View File

@ -17,7 +17,7 @@ Copyright (C) 2016-2017 by Xose Pérez <xose dot perez at gmail dot com>
#include <vector>
#if EMBEDDED_WEB
#include "config/data.h"
#include "static/index.html.gz.h"
#endif
AsyncWebServer * _server;


+ 3
- 3
code/gulpfile.js View File

@ -52,10 +52,10 @@ gulp.task('files', ['clean'], function() {
.pipe(gulp.dest(dataFolder));
});
gulp.task('buildfs_embed', ['buildfs_inline'], function() {
gulp.task('buildfs_embeded', ['buildfs_inline'], function() {
var source = dataFolder + 'index.html.gz';
var destination = dataFolder + '../config/data.h';
var destination = dataFolder + '../static/index.html.gz.h';
var wstream = fs.createWriteStream(destination);
wstream.on('error', function (err) {
@ -113,4 +113,4 @@ gulp.task('buildfs_split', ['files'], function() {
.pipe(gulp.dest(dataFolder));
});
gulp.task('default', ['buildfs_inline']);
gulp.task('default', ['buildfs_embeded']);

+ 7
- 7
code/html/index.html View File

@ -90,10 +90,6 @@
<a href="#" class="pure-menu-link" data="panel-general">GENERAL</a>
</li>
<li class="pure-menu-item">
<a href="#" class="pure-menu-link" data="panel-security">SECURITY</a>
</li>
<li class="pure-menu-item">
<a href="#" class="pure-menu-link" data="panel-wifi">WIFI</a>
</li>
@ -110,6 +106,10 @@
<a href="#" class="pure-menu-link" data="panel-power">POWER</a>
</li>
<li class="pure-menu-item">
<a href="#" class="pure-menu-link" data="panel-admin">ADMIN</a>
</li>
</ul>
<div class="main-buttons">
@ -328,11 +328,11 @@
</div>
</div>
<div class="panel" id="panel-security">
<div class="panel" id="panel-admin">
<div class="header">
<h1>SECURITY</h1>
<h2>Device security settings</h2>
<h1>ADMINISTRATION</h1>
<h2>Device administration and security settings</h2>
</div>
<div class="page">


Loading…
Cancel
Save