1
0
mirror of https://github.com/bitwarden/web synced 2025-12-15 15:53:18 +00:00

Compare commits

..

13 Commits

Author SHA1 Message Date
Kyle Spearrin
8bb4132458 version bump 2018-03-30 10:56:24 -04:00
Kyle Spearrin
443822fd52 step down from host root LUID 2018-03-27 22:56:50 -04:00
Kyle Spearrin
68427fd2de bash 2018-03-27 21:15:16 -04:00
Kyle Spearrin
c3d3369601 proper and syntax for entrypoint conditions 2018-03-27 17:11:48 -04:00
Kyle Spearrin
3c5022d628 upsert bitwarden user 2018-03-27 16:37:50 -04:00
Kyle Spearrin
832ddddc58 gosu 2018-03-27 15:44:25 -04:00
Kyle Spearrin
0fc1415a06 chown deep directories 2018-03-26 14:30:37 -04:00
Kyle Spearrin
1ab408c591 non-root docker 2018-03-26 11:24:09 -04:00
Kyle Spearrin
3160d3f275 disable uglify for now 2018-03-24 20:55:00 -04:00
Kyle Spearrin
d083f1ddc3 version bump and lint fix 2018-03-24 20:49:20 -04:00
Kyle Spearrin
5fbc09b135 cannot create item in collection.
set collection after share.
2018-03-24 20:44:51 -04:00
Kyle Spearrin
6282fabf98 use bitwarden user for docker 2018-03-23 21:21:01 -04:00
Kyle Spearrin
2b528bad97 version json file on dist 2018-03-23 13:04:59 -04:00
11 changed files with 221 additions and 21 deletions

View File

@@ -1,10 +1,17 @@
FROM bitwarden/server FROM bitwarden/server
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
gosu \
&& rm -rf /var/lib/apt/lists/*
ENV ASPNETCORE_URLS http://+:5000
WORKDIR /app WORKDIR /app
EXPOSE 5000
COPY ./dist . COPY ./dist .
EXPOSE 80
COPY entrypoint.sh / COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
RUN groupadd -g 999 bitwarden \
&& chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"] ENTRYPOINT ["/entrypoint.sh"]

View File

@@ -1,5 +1,28 @@
#!/bin/sh #!/bin/bash
USERNAME="bitwarden"
NOUSER=`id -u $USERNAME > /dev/null 2>&1; echo $?`
LUID=${LOCAL_UID:-999}
# Step down from host root
if [ $LUID == 0 ]
then
LUID=999
fi
if [ $NOUSER == 0 ] && [ `id -u $USERNAME` != $LUID ]
then
usermod -u $LUID $USERNAME
elif [ $NOUSER == 1 ]
then
useradd -r -u $LUID -g $USERNAME $USERNAME
fi
chown -R $USERNAME:$USERNAME /etc/bitwarden
cp /etc/bitwarden/web/settings.js /app/js/settings.js cp /etc/bitwarden/web/settings.js /app/js/settings.js
cp /etc/bitwarden/web/app-id.json /app/app-id.json cp /etc/bitwarden/web/app-id.json /app/app-id.json
dotnet /bitwarden_server/Server.dll /contentRoot=/app /webRoot=. /serveUnknown=false chown -R $USERNAME:$USERNAME /app
chown -R $USERNAME:$USERNAME /bitwarden_server
gosu $USERNAME:$USERNAME dotnet /bitwarden_server/Server.dll \
/contentRoot=/app /webRoot=. /serveUnknown=false

View File

@@ -12,6 +12,7 @@ var gulp = require('gulp'),
ngAnnotate = require('gulp-ng-annotate'), ngAnnotate = require('gulp-ng-annotate'),
preprocess = require('gulp-preprocess'), preprocess = require('gulp-preprocess'),
runSequence = require('run-sequence'), runSequence = require('run-sequence'),
jeditor = require("gulp-json-editor"),
merge = require('merge-stream'), merge = require('merge-stream'),
ngConfig = require('gulp-ng-config'), ngConfig = require('gulp-ng-config'),
settings = require('./settings.json'), settings = require('./settings.json'),
@@ -77,7 +78,7 @@ gulp.task('min:js', ['clean:js'], function () {
], { base: '.' }) ], { base: '.' })
.pipe(preprocess({ context: { cacheTag: randomString, selfHosted: selfHosted } })) .pipe(preprocess({ context: { cacheTag: randomString, selfHosted: selfHosted } }))
.pipe(concat(paths.concatJsDest)) .pipe(concat(paths.concatJsDest))
.pipe(uglify()) //.pipe(uglify())
.pipe(gulp.dest('.')); .pipe(gulp.dest('.'));
}); });
@@ -395,7 +396,7 @@ gulp.task('dist:js:app', function () {
.pipe(preprocess({ context: { cacheTag: randomString, selfHosted: selfHosted } })) .pipe(preprocess({ context: { cacheTag: randomString, selfHosted: selfHosted } }))
.pipe(concat(paths.dist + '/js/app.min.js')) .pipe(concat(paths.dist + '/js/app.min.js'))
.pipe(ngAnnotate()) .pipe(ngAnnotate())
.pipe(uglify()) //.pipe(uglify())
.pipe(gulp.dest('.')); .pipe(gulp.dest('.'));
}); });
@@ -407,7 +408,7 @@ gulp.task('dist:js:fallback', function () {
merge(mainStream) merge(mainStream)
.pipe(preprocess({ context: { cacheTag: randomString, selfHosted: selfHosted } })) .pipe(preprocess({ context: { cacheTag: randomString, selfHosted: selfHosted } }))
.pipe(uglify()) //.pipe(uglify())
.pipe(rename({ suffix: '.min' })) .pipe(rename({ suffix: '.min' }))
.pipe(gulp.dest(paths.dist + 'js')); .pipe(gulp.dest(paths.dist + 'js'));
}); });
@@ -420,7 +421,7 @@ gulp.task('dist:js:u2f', function () {
merge(mainStream) merge(mainStream)
.pipe(concat(paths.dist + '/js/u2f.min.js')) .pipe(concat(paths.dist + '/js/u2f.min.js'))
.pipe(uglify()) //.pipe(uglify())
.pipe(gulp.dest('.')); .pipe(gulp.dest('.'));
}); });
@@ -435,7 +436,7 @@ gulp.task('dist:js:lib', function () {
'!' + paths.libDir + 'jquery/**/*' '!' + paths.libDir + 'jquery/**/*'
]) ])
.pipe(concat(paths.dist + '/js/lib.min.js')) .pipe(concat(paths.dist + '/js/lib.min.js'))
.pipe(uglify()) //.pipe(uglify())
.pipe(gulp.dest('.')); .pipe(gulp.dest('.'));
}); });
@@ -448,10 +449,16 @@ gulp.task('dist:preprocess', function () {
.pipe(gulp.dest('.')); .pipe(gulp.dest('.'));
}); });
gulp.task('dist:version', function () {
gulp.src(paths.webroot + 'version.json').pipe(jeditor({
'version': project.version
})).pipe(gulp.dest(paths.dist));
});
gulp.task('dist', ['build'], function (cb) { gulp.task('dist', ['build'], function (cb) {
return runSequence( return runSequence(
'dist:clean', 'dist:clean',
['dist:move', 'dist:css', 'dist:js:app', 'dist:js:lib', 'dist:js:fallback', 'dist:js:u2f'], ['dist:move', 'dist:css', 'dist:js:app', 'dist:js:lib', 'dist:js:fallback', 'dist:js:u2f', 'dist:version'],
'dist:preprocess', 'dist:preprocess',
cb); cb);
}); });

154
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{ {
"name": "bitwarden", "name": "bitwarden",
"version": "1.24.0", "version": "1.25.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
@@ -13,6 +13,12 @@
"through": "https://registry.npmjs.org/through/-/through-2.3.8.tgz" "through": "https://registry.npmjs.org/through/-/through-2.3.8.tgz"
} }
}, },
"abbrev": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
"integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",
"dev": true
},
"accepts": { "accepts": {
"version": "https://registry.npmjs.org/accepts/-/accepts-1.2.13.tgz", "version": "https://registry.npmjs.org/accepts/-/accepts-1.2.13.tgz",
"integrity": "sha1-5fHzkoxtlf2WVYw27D2dDeSm7Oo=", "integrity": "sha1-5fHzkoxtlf2WVYw27D2dDeSm7Oo=",
@@ -333,6 +339,15 @@
"integrity": "sha1-rzLbDQqnBNBYNqzqcvBp8JEbelE=", "integrity": "sha1-rzLbDQqnBNBYNqzqcvBp8JEbelE=",
"dev": true "dev": true
}, },
"ansi-colors": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-1.1.0.tgz",
"integrity": "sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==",
"dev": true,
"requires": {
"ansi-wrap": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz"
}
},
"ansi-gray": { "ansi-gray": {
"version": "https://registry.npmjs.org/ansi-gray/-/ansi-gray-0.1.1.tgz", "version": "https://registry.npmjs.org/ansi-gray/-/ansi-gray-0.1.1.tgz",
"integrity": "sha1-KWLPVOyXksSFEKPetSRDaGHvclE=", "integrity": "sha1-KWLPVOyXksSFEKPetSRDaGHvclE=",
@@ -713,6 +728,12 @@
"integrity": "sha1-RqoXUftqL5PuXmibsQh9SxTGwgU=", "integrity": "sha1-RqoXUftqL5PuXmibsQh9SxTGwgU=",
"dev": true "dev": true
}, },
"bluebird": {
"version": "3.5.1",
"resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz",
"integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA==",
"dev": true
},
"bn.js": { "bn.js": {
"version": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", "version": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz",
"integrity": "sha1-LN4J617jQfSEdGuwMJsyU7GxRC8=", "integrity": "sha1-LN4J617jQfSEdGuwMJsyU7GxRC8=",
@@ -1462,6 +1483,16 @@
"source-map": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz" "source-map": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz"
} }
}, },
"config-chain": {
"version": "1.1.11",
"resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.11.tgz",
"integrity": "sha1-q6CXR9++TD5w52am5BWG4YWfxvI=",
"dev": true,
"requires": {
"ini": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz",
"proto-list": "1.2.4"
}
},
"connect": { "connect": {
"version": "https://registry.npmjs.org/connect/-/connect-3.6.5.tgz", "version": "https://registry.npmjs.org/connect/-/connect-3.6.5.tgz",
"integrity": "sha1-+43ee6B2OHfQ7J352sC0tA5yx9o=", "integrity": "sha1-+43ee6B2OHfQ7J352sC0tA5yx9o=",
@@ -1761,6 +1792,12 @@
"integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=",
"dev": true "dev": true
}, },
"deepmerge": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-2.1.0.tgz",
"integrity": "sha512-Q89Z26KAfA3lpPGhbF6XMfYAm3jIV3avViy6KOJ2JLzFbeWHOvPQUu5aSJIWXap3gDZC2y1eF5HXEPI2wGqgvw==",
"dev": true
},
"defaults": { "defaults": {
"version": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz", "version": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz",
"integrity": "sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=", "integrity": "sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=",
@@ -1844,6 +1881,12 @@
"integrity": "sha1-8NZtA2cqglyxtzvbP+YjEMjlUrc=", "integrity": "sha1-8NZtA2cqglyxtzvbP+YjEMjlUrc=",
"dev": true "dev": true
}, },
"detect-indent": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-5.0.0.tgz",
"integrity": "sha1-OHHMCmoALow+Wzz38zYmRnXwa50=",
"dev": true
},
"detective": { "detective": {
"version": "https://registry.npmjs.org/detective/-/detective-4.7.1.tgz", "version": "https://registry.npmjs.org/detective/-/detective-4.7.1.tgz",
"integrity": "sha1-DspzFDOEQv67bWXaVMELscgrJG4=", "integrity": "sha1-DspzFDOEQv67bWXaVMELscgrJG4=",
@@ -2002,6 +2045,42 @@
"jsbn": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz" "jsbn": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz"
} }
}, },
"editorconfig": {
"version": "0.13.3",
"resolved": "https://registry.npmjs.org/editorconfig/-/editorconfig-0.13.3.tgz",
"integrity": "sha512-WkjsUNVCu+ITKDj73QDvi0trvpdDWdkDyHybDGSXPfekLCqwmpD7CP7iPbvBgosNuLcI96XTDwNa75JyFl7tEQ==",
"dev": true,
"requires": {
"bluebird": "3.5.1",
"commander": "2.15.1",
"lru-cache": "3.2.0",
"semver": "5.5.0",
"sigmund": "https://registry.npmjs.org/sigmund/-/sigmund-1.0.1.tgz"
},
"dependencies": {
"commander": {
"version": "2.15.1",
"resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz",
"integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==",
"dev": true
},
"lru-cache": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-3.2.0.tgz",
"integrity": "sha1-cXibO39Tmb7IVl3aOKow0qCX7+4=",
"dev": true,
"requires": {
"pseudomap": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz"
}
},
"semver": {
"version": "5.5.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz",
"integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==",
"dev": true
}
}
},
"ee-first": { "ee-first": {
"version": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", "version": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
"integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=", "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=",
@@ -4524,6 +4603,19 @@
"through2": "https://registry.npmjs.org/through2/-/through2-2.0.3.tgz" "through2": "https://registry.npmjs.org/through2/-/through2-2.0.3.tgz"
} }
}, },
"gulp-json-editor": {
"version": "2.2.2",
"resolved": "https://registry.npmjs.org/gulp-json-editor/-/gulp-json-editor-2.2.2.tgz",
"integrity": "sha512-4Om5cpjmmB6Nj2OlpRvh8TbMgIWz/OivYpvGR+iki8iQs45iuNUrvFi/ao+niQIe7sIJLWuoMkJmc3rCVvuS3Q==",
"dev": true,
"requires": {
"deepmerge": "2.1.0",
"detect-indent": "5.0.0",
"js-beautify": "1.7.5",
"plugin-error": "1.0.1",
"through2": "https://registry.npmjs.org/through2/-/through2-2.0.3.tgz"
}
},
"gulp-less": { "gulp-less": {
"version": "https://registry.npmjs.org/gulp-less/-/gulp-less-3.3.2.tgz", "version": "https://registry.npmjs.org/gulp-less/-/gulp-less-3.3.2.tgz",
"integrity": "sha1-9mNq3MZhUKiQJxn6WZY/x/hipJo=", "integrity": "sha1-9mNq3MZhUKiQJxn6WZY/x/hipJo=",
@@ -5298,6 +5390,18 @@
"integrity": "sha1-XE2d5lKvbNCncBVKYxu6ErAVx4c=", "integrity": "sha1-XE2d5lKvbNCncBVKYxu6ErAVx4c=",
"dev": true "dev": true
}, },
"js-beautify": {
"version": "1.7.5",
"resolved": "https://registry.npmjs.org/js-beautify/-/js-beautify-1.7.5.tgz",
"integrity": "sha512-9OhfAqGOrD7hoQBLJMTA+BKuKmoEtTJXzZ7WDF/9gvjtey1koVLuZqIY6c51aPDjbNdNtIXAkiWKVhziawE9Og==",
"dev": true,
"requires": {
"config-chain": "1.1.11",
"editorconfig": "0.13.3",
"mkdirp": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
"nopt": "3.0.6"
}
},
"js-yaml": { "js-yaml": {
"version": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.10.0.tgz", "version": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.10.0.tgz",
"integrity": "sha1-LnhEFka9RoLpY/IrbpKCPDCcYtw=", "integrity": "sha1-LnhEFka9RoLpY/IrbpKCPDCcYtw=",
@@ -6438,6 +6542,15 @@
} }
} }
}, },
"nopt": {
"version": "3.0.6",
"resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz",
"integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=",
"dev": true,
"requires": {
"abbrev": "1.1.1"
}
},
"normalize-package-data": { "normalize-package-data": {
"version": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz", "version": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz",
"integrity": "sha1-EvlaMH1YNSB1oEkHuErIvpisAS8=", "integrity": "sha1-EvlaMH1YNSB1oEkHuErIvpisAS8=",
@@ -6947,6 +7060,39 @@
"pinkie": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz" "pinkie": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz"
} }
}, },
"plugin-error": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/plugin-error/-/plugin-error-1.0.1.tgz",
"integrity": "sha512-L1zP0dk7vGweZME2i+EeakvUNqSrdiI3F91TwEoYiGrAfUXmVv6fJIq4g82PAXxNsWOp0J7ZqQy/3Szz0ajTxA==",
"dev": true,
"requires": {
"ansi-colors": "1.1.0",
"arr-diff": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz",
"arr-union": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz",
"extend-shallow": "3.0.2"
},
"dependencies": {
"extend-shallow": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz",
"integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=",
"dev": true,
"requires": {
"assign-symbols": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz",
"is-extendable": "1.0.1"
}
},
"is-extendable": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz",
"integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==",
"dev": true,
"requires": {
"is-plain-object": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz"
}
}
}
},
"posix-character-classes": { "posix-character-classes": {
"version": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", "version": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz",
"integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=",
@@ -6998,6 +7144,12 @@
"asap": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz" "asap": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz"
} }
}, },
"proto-list": {
"version": "1.2.4",
"resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz",
"integrity": "sha1-IS1b/hMYMGpCD2QCuOJv85ZHqEk=",
"dev": true
},
"prr": { "prr": {
"version": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", "version": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz",
"integrity": "sha1-0/wRS6BplaRexok/SEzrHXj19HY=", "integrity": "sha1-0/wRS6BplaRexok/SEzrHXj19HY=",

View File

@@ -1,6 +1,6 @@
{ {
"name": "bitwarden", "name": "bitwarden",
"version": "1.24.0", "version": "1.25.0",
"env": "Production", "env": "Production",
"devDependencies": { "devDependencies": {
"connect": "3.6.5", "connect": "3.6.5",
@@ -16,6 +16,7 @@
"gulp-ng-annotate": "2.0.0", "gulp-ng-annotate": "2.0.0",
"gulp-ng-config": "1.5.0", "gulp-ng-config": "1.5.0",
"gulp-connect": "5.0.0", "gulp-connect": "5.0.0",
"gulp-json-editor": "2.2.2",
"jshint": "2.9.5", "jshint": "2.9.5",
"gulp-jshint": "2.0.4", "gulp-jshint": "2.0.4",
"rimraf": "2.6.2", "rimraf": "2.6.2",

View File

@@ -1,2 +1,2 @@
angular.module("bit") angular.module("bit")
.constant("appSettings", {"apiUri":"/api","identityUri":"/identity","iconsUri":"https://icons.bitwarden.com","stripeKey":"pk_live_bpN0P37nMxrMQkcaHXtAybJk","braintreeKey":"production_qfbsv8kc_njj2zjtyngtjmbjd","selfHosted":false,"version":"1.24.0","environment":"Production"}); .constant("appSettings", {"apiUri":"/api","identityUri":"/identity","iconsUri":"https://icons.bitwarden.com","stripeKey":"pk_live_bpN0P37nMxrMQkcaHXtAybJk","braintreeKey":"production_qfbsv8kc_njj2zjtyngtjmbjd","selfHosted":false,"version":"1.25.0","environment":"Production"});

View File

@@ -77,7 +77,7 @@
groupingPromise.then(function () { groupingPromise.then(function () {
loadCipherData(decCiphers); loadCipherData(decCiphers);
}); });
}).$promise; });
} }
function loadCipherData(decCiphers) { function loadCipherData(decCiphers) {
@@ -309,8 +309,9 @@
} }
}); });
modal.result.then(function (orgId) { modal.result.then(function (returned) {
cipher.organizationId = orgId; cipher.organizationId = returned.orgId;
cipher.collectionIds = returned.collectionIds || [];
}); });
}; };

View File

@@ -141,6 +141,7 @@
} }
} }
var returnedCollectionIds = null;
$scope.submitPromise = $q.all(attachmentSharePromises).then(function () { $scope.submitPromise = $q.all(attachmentSharePromises).then(function () {
if (errorOnUpload) { if (errorOnUpload) {
return; return;
@@ -159,11 +160,15 @@
} }
} }
returnedCollectionIds = request.collectionIds;
return apiService.ciphers.putShare({ id: cipherId }, request).$promise; return apiService.ciphers.putShare({ id: cipherId }, request).$promise;
}).then(function (response) { }).then(function (response) {
$analytics.eventTrack('Shared Cipher'); $analytics.eventTrack('Shared Cipher');
toastr.success('Item has been shared.'); toastr.success('Item has been shared.');
$uibModalInstance.close(model.organizationId); $uibModalInstance.close({
orgId: model.organizationId,
collectionIds: returnedCollectionIds
});
}); });
}; };

View File

@@ -73,7 +73,8 @@
<div class="box-body" ng-class="{'no-padding': filteredCiphers.length}"> <div class="box-body" ng-class="{'no-padding': filteredCiphers.length}">
<div ng-show="!filteredCiphers.length"> <div ng-show="!filteredCiphers.length">
<p>No items to list.</p> <p>No items to list.</p>
<button type="button" ng-click="addCipher()" class="btn btn-default btn-flat"> <button type="button" ng-click="addCipher()" class="btn btn-default btn-flat"
ng-if="!selectedCollection">
Add an Item Add an Item
</button> </button>
</div> </div>

View File

@@ -1,5 +1,5 @@
{ {
"name": "bitwarden vault", "name": "Bitwarden Vault",
"icons": [ "icons": [
{ {
"src": "images/icons/android-chrome-192x192.png", "src": "images/icons/android-chrome-192x192.png",

3
src/version.json Normal file
View File

@@ -0,0 +1,3 @@
{
"version": "0.0.0"
}