1
0
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:
Kyle Spearrin 2016-09-22 00:12:49 -04:00
parent 2432f5bab2
commit dc28f6be2a
5 changed files with 32 additions and 4 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@ node_modules
npm-debug.log
lib/
css/
dist/

View File

@ -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);
});

View File

@ -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' });

View File

@ -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;
});

View File

@ -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 />
&copy; 8bit Solutions LLC 2015-{{year}}
</div>
</div>