mirror of
https://github.com/bitwarden/browser
synced 2025-01-23 17:53:31 +01:00
lint fixes for import service. made passwird not required for sites
This commit is contained in:
parent
004ddb1e75
commit
1d2b82a302
@ -56,7 +56,10 @@
|
||||
/// <reference path="lib/angular-md5/angular-md5.js" />
|
||||
/// <reference path="lib/angular-messages/angular-messages.js" />
|
||||
/// <reference path="lib/angular-resource/angular-resource.js" />
|
||||
/// <reference path="lib/angulartics/angulartics.js" />
|
||||
/// <reference path="lib/angulartics/angulartics-ga.js" />
|
||||
/// <reference path="lib/angular-toastr/angular-toastr.js" />
|
||||
/// <reference path="lib/angular-toastr/angular-toastr.min.js" />
|
||||
/// <reference path="lib/angular-toastr/angular-toastr.tpls.js" />
|
||||
/// <reference path="lib/angular-ui-router/angular-ui-router.js" />
|
||||
/// <reference path="lib/bootstrap/js/bootstrap.min.js" />
|
||||
|
@ -88,10 +88,11 @@
|
||||
reader.onload = function (evt) {
|
||||
var doc = $(evt.target.result);
|
||||
var pre = doc.find('pre');
|
||||
var csv, results;
|
||||
|
||||
if (pre.length === 1) {
|
||||
var csv = pre.text().trim();
|
||||
var results = Papa.parse(csv, { header: true });
|
||||
csv = pre.text().trim();
|
||||
results = Papa.parse(csv, { header: true });
|
||||
parseData(results.data);
|
||||
}
|
||||
else {
|
||||
@ -99,8 +100,8 @@
|
||||
for (var i = 0; i < doc.length; i++) {
|
||||
if (doc[i].tagName === 'PRE') {
|
||||
foundPre = true;
|
||||
var csv = doc[i].outerText.trim();
|
||||
var results = Papa.parse(csv, { header: true });
|
||||
csv = doc[i].outerText.trim();
|
||||
results = Papa.parse(csv, { header: true });
|
||||
parseData(results.data);
|
||||
break;
|
||||
}
|
||||
|
@ -64,7 +64,7 @@
|
||||
<label for="password">Password</label>
|
||||
<div class="input-group">
|
||||
<input tabindex="-1" type="text" id="password-text" value="{{site.password}}" style="margin-left: -9999px;" />
|
||||
<input type="password" id="password" name="Password" ng-model="site.password" class="form-control" required api-field />
|
||||
<input type="password" id="password" name="Password" ng-model="site.password" class="form-control" api-field />
|
||||
<span class="input-group-btn" uib-tooltip="Copy Password" tooltip-placement="left">
|
||||
<button tabindex="-1" class="btn btn-default btn-flat" type="button" ngclipboard
|
||||
ngclipboard-success="clipboardSuccess(e)"
|
||||
|
@ -67,7 +67,7 @@
|
||||
<label for="password">Password</label>
|
||||
<div class="input-group">
|
||||
<input type="text" id="password-text" value="{{site.password}}" style="margin-left: -9999px;" />
|
||||
<input type="password" id="password" name="Password" ng-model="site.password" class="form-control" required api-field />
|
||||
<input type="password" id="password" name="Password" ng-model="site.password" class="form-control" api-field />
|
||||
<span class="input-group-btn" uib-tooltip="Copy Password" tooltip-placement="left">
|
||||
<button tabindex="-1" class="btn btn-default btn-flat" type="button" ngclipboard
|
||||
ngclipboard-success="clipboardSuccess(e)"
|
||||
|
Loading…
Reference in New Issue
Block a user