818405982d
* Initial commit of the new dashboard code. * Periodically grabbing topology json * Pulling file saving out into its own module * Ignoring downloaded topology file * Moved everything public into a public folder * Refreshing the mixmining report * Mounting static files from /public * Including mixminiming report grabber * Leaving the route in place to pick up later. It's not used right now. * Removing json download from git * Ignoring topology download * Moving recurrent jobs in to a jobs module * Adding websocket dependencies * Starting to get client/server websocket functionality running. * Fixing unused imports * Separating client and server functionality a bit more cleanly * WIP to sketch out the ws client and server a bit more * Initial metrics broadcaster * Import fixup * Spawning rocket in tokio task * Removed outdated comment * removed the js file Co-authored-by: Dave <futurechimp@users.noreply.github.com>
34 lines
860 B
JavaScript
34 lines
860 B
JavaScript
var gulp = require('gulp');
|
|
var path = require('path');
|
|
var sass = require('gulp-sass');
|
|
var autoprefixer = require('gulp-autoprefixer');
|
|
var sourcemaps = require('gulp-sourcemaps');
|
|
var open = require('gulp-open');
|
|
|
|
var Paths = {
|
|
HERE: './',
|
|
DIST: 'dist/',
|
|
CSS: './assets/css/',
|
|
SCSS_TOOLKIT_SOURCES: './assets/scss/paper-dashboard.scss',
|
|
SCSS: './assets/scss/**/**'
|
|
};
|
|
|
|
gulp.task('compile-scss', function() {
|
|
return gulp.src(Paths.SCSS_TOOLKIT_SOURCES)
|
|
.pipe(sourcemaps.init())
|
|
.pipe(sass().on('error', sass.logError))
|
|
.pipe(autoprefixer())
|
|
.pipe(sourcemaps.write(Paths.HERE))
|
|
.pipe(gulp.dest(Paths.CSS));
|
|
});
|
|
|
|
gulp.task('watch', function() {
|
|
gulp.watch(Paths.SCSS, ['compile-scss']);
|
|
});
|
|
|
|
gulp.task('open', function() {
|
|
gulp.src('examples/dashboard.html')
|
|
.pipe(open());
|
|
});
|
|
|
|
gulp.task('open-app', ['open', 'watch']); |