mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-16 10:35:31 +01:00
appsettings version applied to about page. removed ols settings. setup dist gulp task
This commit is contained in:
parent
2432f5bab2
commit
dc28f6be2a
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ node_modules
|
||||
npm-debug.log
|
||||
lib/
|
||||
css/
|
||||
dist/
|
26
gulpfile.js
26
gulpfile.js
@ -123,3 +123,29 @@ gulp.task('less', function () {
|
||||
gulp.task('watch', function () {
|
||||
gulp.watch(paths.lessDir + '*.less', ['less']);
|
||||
});
|
||||
|
||||
gulp.task('dist:clean', function (cb) {
|
||||
return rimraf(paths.dist, cb);
|
||||
});
|
||||
|
||||
gulp.task('dist:move', function () {
|
||||
var moves = [
|
||||
{
|
||||
src: ['src/**/*', '!src/popup/less{,/**/*}'],
|
||||
dest: paths.dist
|
||||
}
|
||||
];
|
||||
|
||||
var tasks = moves.map(function (move) {
|
||||
return gulp.src(move.src).pipe(gulp.dest(move.dest));
|
||||
});
|
||||
|
||||
return merge(tasks);
|
||||
});
|
||||
|
||||
gulp.task('dist', ['build'], function (cb) {
|
||||
return runSequence(
|
||||
'dist:clean',
|
||||
'dist:move',
|
||||
cb);
|
||||
});
|
||||
|
@ -1,2 +1,2 @@
|
||||
angular.module("bit")
|
||||
.constant("appSettings", { "rememberdEmailCookieName": "bit.rememberedEmail", "version": "0.0.1", "environment": "Development", "apiUri": "https://api.bitwarden.com" });
|
||||
angular.module('bit')
|
||||
.constant('appSettings', { 'version': '0.0.1' });
|
||||
|
@ -1,6 +1,7 @@
|
||||
angular
|
||||
.module('bit.settings')
|
||||
|
||||
.controller('settingsAboutController', function ($scope) {
|
||||
.controller('settingsAboutController', function ($scope, appSettings) {
|
||||
$scope.year = (new Date()).getFullYear();
|
||||
$scope.version = appSettings.version;
|
||||
});
|
||||
|
@ -7,7 +7,7 @@
|
||||
<div class="content">
|
||||
<div class="about-page">
|
||||
<img src="../../../../images/logo@3x.png" alt="bitwarden" />
|
||||
Version 0.0.1<br />
|
||||
Version {{version}}<br />
|
||||
© 8bit Solutions LLC 2015-{{year}}
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user