Comparing version 0.6.5 to 0.6.6
@@ -25,3 +25,3 @@ { | ||
"metrics-graphics": "2.x.x", | ||
"angular-material": "0.7.x", | ||
"angular-material": "0.8.x", | ||
"material-design-icons": "1.0.x", | ||
@@ -31,8 +31,9 @@ "angular-pretty-bytes": "1.0.x", | ||
"angular-moment": "0.9.x", | ||
"angular-translate": "2.5.x", | ||
"angular-translate-storage-local": "2.5.x", | ||
"angular-translate-loader-static-files": "2.5.x", | ||
"angular-translate-storage-cookie": "2.5.x", | ||
"angular-cookies": "1.4.x" | ||
"angular-translate": "2.6.x", | ||
"angular-translate-storage-local": "2.6.x", | ||
"angular-translate-loader-static-files": "2.6.x", | ||
"angular-translate-storage-cookie": "2.6.x", | ||
"angular-cookies": "1.4.x", | ||
"sockjs-client": "1.x.x" | ||
} | ||
} |
'use strict'; | ||
var browserSync = require('browser-sync'); | ||
// Save a reference to the `reload` method | ||
var reload = browserSync.reload; | ||
var del = require('del'); | ||
@@ -61,3 +63,5 @@ var glob = require('glob'); | ||
.pipe(assets) | ||
.pipe(gif('*.js', uglify({ preserveComments: 'some' }), rev())) | ||
.pipe(gif('*.js', uglify({ | ||
preserveComments: 'some' | ||
}), rev())) | ||
.pipe(gif('*.css', csso(), rev())) | ||
@@ -91,3 +95,3 @@ .pipe(assets.restore()) | ||
gulp.task('nw-files', function () { | ||
gulp.task('nw-files', function() { | ||
return gulp.src(['src/package.json', 'src/koa.js']) | ||
@@ -126,7 +130,8 @@ .pipe(gulp.dest('dist/')); | ||
proxyOptions.route = '/api'; | ||
var webSocketOptions = url.parse('http://localhost:8001/ws'); | ||
webSocketOptions.route = '/ws'; | ||
gulp.task('browser-sync', function() { | ||
browserSync({ | ||
server: { | ||
notify: false, | ||
logPrefix: 'BW', | ||
notify: true, | ||
baseDir: './dist', | ||
@@ -136,3 +141,6 @@ routes: { | ||
}, | ||
middleware: [proxyMiddleware(proxyOptions)] | ||
middleware: [ | ||
proxyMiddleware(proxyOptions), | ||
proxyMiddleware(webSocketOptions) | ||
] | ||
} | ||
@@ -142,2 +150,16 @@ }); | ||
gulp.task('watch:gulpfile', function(a) { | ||
return gulp.src('gulpfile.js') | ||
.pipe(watch('gulpfile.js', { | ||
emit: 'all', | ||
verbose: true | ||
})) | ||
.pipe(debug()) | ||
.pipe(plumber()) | ||
.pipe(reload({ | ||
stream: true | ||
})); | ||
}); | ||
/*** Scss Tasks ***/ | ||
@@ -151,3 +173,3 @@ | ||
return buildScss(true) | ||
.pipe(browserSync.reload({ | ||
.pipe(reload({ | ||
stream: true | ||
@@ -169,3 +191,3 @@ })); | ||
} | ||
)) | ||
)) | ||
.pipe(jshint.reporter('fail')); | ||
@@ -185,3 +207,3 @@ }); | ||
return buildJS(true) | ||
.pipe(browserSync.reload({ | ||
.pipe(reload({ | ||
stream: true | ||
@@ -198,3 +220,3 @@ })); | ||
return buildJade(true) | ||
.pipe(browserSync.reload({ | ||
.pipe(reload({ | ||
stream: true | ||
@@ -213,3 +235,5 @@ })); | ||
task = task | ||
.pipe(watch(dir)) | ||
.pipe(watch(dir, { | ||
verbose: true | ||
})) | ||
.pipe(debug()) | ||
@@ -234,3 +258,5 @@ .pipe(plumber()); | ||
task = task | ||
.pipe(watch(dir)) | ||
.pipe(watch(dir, { | ||
verbose: true | ||
})) | ||
.pipe(debug()) | ||
@@ -259,3 +285,6 @@ } | ||
task = task | ||
.pipe(watch(dir, { emit: 'all' })) | ||
.pipe(watch(dir, { | ||
emit: 'all', | ||
verbose: true | ||
})) | ||
.pipe(debug()) | ||
@@ -278,2 +307,2 @@ .pipe(plumber()); | ||
return task.pipe(gulp.dest('dist/')); | ||
} | ||
} |
{ | ||
"name": "bluewhale", | ||
"version": "0.6.5", | ||
"version": "0.6.6", | ||
"description": "Dockerboard Web Client", | ||
@@ -19,37 +19,38 @@ "main": "dist/index.html", | ||
], | ||
"author": "fundon <cfddream@gmail.com>", | ||
"author": "Fangdun Cai <cfddream@gmail.com>", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"bower": "*", | ||
"browser-sync": "^1.9.1", | ||
"del": "^1.1.1", | ||
"glob": "^4.3.2", | ||
"gulp": "^3.8.10", | ||
"gulp-autoprefixer": "^2.0.0", | ||
"gulp-csso": "^0.2.9", | ||
"gulp-debug": "^2.0.0", | ||
"gulp-filter": "^2.0.0", | ||
"gulp-if": "^1.2.5", | ||
"gulp-imagemin": "^2.1.0", | ||
"gulp-jade": "^0.10.0", | ||
"gulp-jscs": "^1.4.0", | ||
"gulp-jshint": "^1.9.0", | ||
"gulp-load-plugins": "^0.8.0", | ||
"gulp-ng-annotate": "^0.5.0", | ||
"gulp-ng-html2js": "^0.1.8", | ||
"gulp-plumber": "^0.6.6", | ||
"gulp-rev": "^3.0.0", | ||
"gulp-rev-replace": "^0.3.2", | ||
"gulp-sass": "ajoslin/gulp-sass#master", | ||
"gulp-uglify": "^1.0.2", | ||
"gulp-useref": "^1.1.1", | ||
"gulp-watch": "^3.0.0", | ||
"browser-sync": "^2.x.x", | ||
"del": "^1.x.x", | ||
"glob": "^4.x", | ||
"gulp": "^3.x", | ||
"gulp-autoprefixer": "^2.x.x", | ||
"gulp-csso": "^1.x.x", | ||
"gulp-debug": "^2.x.x", | ||
"gulp-filter": "^2.x.x", | ||
"gulp-if": "^1.x.x", | ||
"gulp-imagemin": "^2.x.x", | ||
"gulp-jade": "^1.x.x", | ||
"gulp-jscs": "^1.x.x", | ||
"gulp-jshint": "^1.x.x", | ||
"gulp-load-plugins": "^0.8.x", | ||
"gulp-ng-annotate": "^0.5.2", | ||
"gulp-ng-html2js": "^0.2.x", | ||
"gulp-plumber": "^1.x.x", | ||
"gulp-rev": "^3.x.x", | ||
"gulp-rev-replace": "^0.4.x", | ||
"gulp-sass": "^1.x.x", | ||
"gulp-uglify": "^1.x.x", | ||
"gulp-useref": "^1.x.x", | ||
"gulp-util": "^3.x.x", | ||
"gulp-watch": "^4.x.x", | ||
"jshint-summary": "^0.4.0", | ||
"karma": "^0.12.31", | ||
"karma-chrome-launcher": "^0.1.7", | ||
"node-webkit-builder": "^1.0.4", | ||
"proxy-middleware": "^0.9.0", | ||
"run-sequence": "^1.0.2", | ||
"vinyl-paths": "^1.0.0" | ||
"karma": "^0.12.x", | ||
"karma-chrome-launcher": "^0.1.x", | ||
"node-webkit-builder": "^1.x.x", | ||
"proxy-middleware": "^0.11.x", | ||
"run-sequence": "^1.x.x", | ||
"vinyl-paths": "^1.x.x" | ||
} | ||
} | ||
} |
@@ -9,3 +9,4 @@ (function (angular) { | ||
'$translateProvider', | ||
function($locationProvider, $urlRouterProvider, $translateProvider) { | ||
'$mdThemingProvider', | ||
function($locationProvider, $urlRouterProvider, $translateProvider, $mdThemingProvider) { | ||
@@ -25,4 +26,7 @@ // Redirect to home view when route not found | ||
$translateProvider.useLocalStorage(); | ||
$mdThemingProvider.theme('default') | ||
.primaryPalette('blue'); | ||
} | ||
]); | ||
})(angular); | ||
})(angular); |
@@ -14,3 +14,4 @@ (function (angular, app) { | ||
'ngCookies', | ||
'pascalprecht.translate' | ||
'pascalprecht.translate', | ||
'bd.sockjs' | ||
]; | ||
@@ -17,0 +18,0 @@ app.registerModule = registerModule; |
@@ -87,4 +87,4 @@ (function () { | ||
ContainerController.$inject = ['$scope', '$stateParams', '$location', '$mdDialog', 'limitToFilter', 'amTimeAgoFilter', 'Containers', 'Hosts']; | ||
function ContainerController($scope, $stateParams, $location, $mdDialog, limitToFilter, amTimeAgoFilter, Containers, Hosts) { | ||
ContainerController.$inject = ['$scope', '$stateParams', '$location', '$mdDialog', 'limitToFilter', 'amTimeAgoFilter', 'Containers', 'Hosts', 'ContainerActions']; | ||
function ContainerController($scope, $stateParams, $location, $mdDialog, limitToFilter, amTimeAgoFilter, Containers, Hosts, ContainerActions) { | ||
Containers.get({Id: $stateParams.Id, host: Hosts.getCurrentHostUrl()}, function (data) { | ||
@@ -91,0 +91,0 @@ formatBasicAttributes(data); |
@@ -9,4 +9,4 @@ (function () { | ||
SidenavController.$inject = ['$scope', '$location', '$mdSidenav', '$timeout', '$rootScope', 'Menu', 'Hosts']; | ||
function SidenavController($scope, $location, $mdSidenav, $timeout, $rootScope, Menu, Hosts) { | ||
SidenavController.$inject = ['$scope', '$location', '$mdSidenav', '$timeout', '$rootScope', 'Menu', 'Hosts', 'iSockPromise']; | ||
function SidenavController($scope, $location, $mdSidenav, $timeout, $rootScope, Menu, Hosts, iSockPromise) { | ||
$scope.menu = Menu; | ||
@@ -46,3 +46,8 @@ | ||
} | ||
iSockPromise.then(function(sock) { | ||
console.dir(sock); | ||
sock.send("hello"); | ||
}); | ||
} | ||
})(); |
@@ -7,2 +7,2 @@ 'use strict'; | ||
})(); | ||
})(); |
@@ -9,2 +9,2 @@ (function () { | ||
}]); | ||
})(); | ||
})(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
6499354
113
4478
32
4
7