This repository has been archived by the owner on Nov 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
123 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
var gulp = require('gulp'), | ||
babel = require('gulp-babel'), | ||
browserSync = require('browser-sync') | ||
sass = require('gulp-sass'), | ||
plumber = require('gulp-plumber'), | ||
sourcemaps = require('gulp-sourcemaps'); | ||
var gulp = require('gulp'); | ||
var babel = require('gulp-babel'); | ||
var browserSync = require('browser-sync'); | ||
var sass = require('gulp-sass'); | ||
var plumber = require('gulp-plumber'); | ||
var sourcemaps = require('gulp-sourcemaps'); | ||
|
||
|
||
|
||
gulp.task('serve', ['compile-js', 'compile-scss'], function(){ | ||
gulp.task('serve', ['compile-js', 'compile-scss'], function() { | ||
browserSync.init({ | ||
server: { | ||
baseDir:'./' | ||
} | ||
}) | ||
baseDir:'./', | ||
}, | ||
}); | ||
|
||
gulp.watch(['src/scripts/*.js'], ['compile-js']) | ||
gulp.watch(["src/styles/*.scss"], ['compile-scss']); | ||
gulp.watch(['*.html','src/styles/*.scss','src/scripts/*.js']).on('change', browserSync.reload) | ||
gulp.watch(['src/scripts/*.js'], ['compile-js']); | ||
gulp.watch(['src/styles/*.scss'], ['compile-scss']); | ||
gulp.watch(['*.html', 'src/styles/*.scss', 'src/scripts/*.js']).on('change', browserSync.reload); | ||
|
||
}) | ||
}); | ||
|
||
gulp.task('compile-js', function(){ | ||
gulp.task('compile-js', function() { | ||
return gulp.src('src/scripts/*.js') | ||
.pipe(plumber()) | ||
.pipe(sourcemaps.init()) | ||
.pipe(babel({ | ||
presets:['es2015'] | ||
presets:['es2015'], | ||
})) | ||
.pipe(sourcemaps.write('maps')) | ||
.pipe(gulp.dest('lib')) | ||
}) | ||
.pipe(gulp.dest('lib')); | ||
}); | ||
|
||
gulp.task('compile-scss', function(){ | ||
gulp.task('compile-scss', function() { | ||
return gulp.src('src/styles/*.scss') | ||
.pipe(plumber()) | ||
.pipe(sourcemaps.init()) | ||
.pipe(sass().on('error', sass.logError)) | ||
.pipe(sourcemaps.write('maps')) | ||
.pipe(gulp.dest('lib')) | ||
}) | ||
.pipe(gulp.dest('lib')); | ||
}); | ||
|
||
gulp.task('default', ['serve']) | ||
gulp.task('default', ['serve']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import Chart from '../'; | ||
// import Chart from '../'; | ||
|
||
describe('Radar Component', () => { | ||
it('should render', () => { | ||
expect(true).toBe(true, 'This is a placeholder true') | ||
expect(true).toBe(true, 'This is a placeholder true'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,26 @@ | ||
const data = [ | ||
[//iPhone | ||
{axis:"Battery Life",value:0.22}, | ||
{axis:"Brand",value:0.28}, | ||
{axis:"Contract Cost",value:0.29}, | ||
{axis:"Design And Quality",value:0.17}, | ||
{axis:"Have Internet Connectivity",value:0.22}, | ||
{axis:"Large Screen",value:0.02}, | ||
{axis:"Price Of Device",value:0.21}, | ||
{axis:"To Be A Smartphone",value:0.50} | ||
],[//Samsung | ||
{axis:"Battery Life",value:0.27}, | ||
{axis:"Brand",value:0.16}, | ||
{axis:"Contract Cost",value:0.35}, | ||
{axis:"Design And Quality",value:0.13}, | ||
{axis:"Have Internet Connectivity",value:0.20}, | ||
{axis:"Large Screen",value:0.13}, | ||
{axis:"Price Of Device",value:0.35}, | ||
{axis:"To Be A Smartphone",value:0.38} | ||
],[//Nokia Smartphone | ||
{axis:"Battery Life",value:0.26}, | ||
{axis:"Brand",value:0.10}, | ||
{axis:"Contract Cost",value:0.30}, | ||
{axis:"Design And Quality",value:0.14}, | ||
{axis:"Have Internet Connectivity",value:0.22}, | ||
{axis:"Large Screen",value:0.04}, | ||
{axis:"Price Of Device",value:0.41}, | ||
{axis:"To Be A Smartphone",value:0.30} | ||
] | ||
{axis:'Apdex', value:0.80}, | ||
{axis:'Alerts', value:0.66}, | ||
{axis:'Request Volume', value:0.35}, | ||
{axis:'Memory', value:0.54}, | ||
{axis:'CPU', value:0.38}, | ||
{axis:'Disk', value:0.23}, | ||
], | ||
[//Samsung | ||
{axis:'Apdex', value:0.80}, | ||
{axis:'Alerts', value:0.66}, | ||
{axis:'Request Volume', value:0.35}, | ||
{axis:'Memory', value:0.23}, | ||
{axis:'CPU', value:0.36}, | ||
{axis:'Disk', value:0.13}, | ||
], | ||
[//Nokia Smartphone | ||
{axis:'Apdex', value:0.26}, | ||
{axis:'Alerts', value:0.10}, | ||
{axis:'Request Volume', value:0.30}, | ||
{axis:'Memory', value:0.14}, | ||
{axis:'CPU', value:0.22}, | ||
{axis:'Disk', value:0.04}, | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.