add keepass importer

This commit is contained in:
Kyle Spearrin 2018-07-10 17:58:08 -04:00
parent dc778ea578
commit f0bc2d9c9b
3 changed files with 7 additions and 1 deletions

2
jslib

@ -1 +1 @@
Subproject commit 4004449aa833a2a445fcdb2a9c80f4a014de0b89 Subproject commit 678b191a32b053e38cc46e7c1b10aaa171d13201

View File

@ -42,6 +42,9 @@
Using the Padlock desktop application, click the hamburger icon in the top left corner and navigate to "Settings" → Using the Padlock desktop application, click the hamburger icon in the top left corner and navigate to "Settings" →
"Export" button and save the file "As CSV". "Export" button and save the file "As CSV".
</ng-container> </ng-container>
<ng-container *ngIf="format === 'keepass2xml'">
Using the KeePass 2 desktop application, navigate to "File" &rarr; "Export" and select the "KeePass XML (2.x)" option.
</ng-container>
</app-callout> </app-callout>
<div class="row"> <div class="row">
<div class="col-6"> <div class="col-6">

View File

@ -25,6 +25,7 @@ import { AviraCsvImporter } from 'jslib/importers/aviraCsvImporter';
import { BitwardenCsvImporter } from 'jslib/importers/bitwardenCsvImporter'; import { BitwardenCsvImporter } from 'jslib/importers/bitwardenCsvImporter';
import { BlurCsvImporter } from 'jslib/importers/blurCsvImporter'; import { BlurCsvImporter } from 'jslib/importers/blurCsvImporter';
import { Importer } from 'jslib/importers/importer'; import { Importer } from 'jslib/importers/importer';
import { KeePass2XmlImporter } from 'jslib/importers/keepass2XmlImporter';
import { KeePassXCsvImporter } from 'jslib/importers/keepassxCsvImporter'; import { KeePassXCsvImporter } from 'jslib/importers/keepassxCsvImporter';
import { LastPassCsvImporter } from 'jslib/importers/lastpassCsvImporter'; import { LastPassCsvImporter } from 'jslib/importers/lastpassCsvImporter';
import { PadlockCsvImporter } from 'jslib/importers/padlockCsvImporter'; import { PadlockCsvImporter } from 'jslib/importers/padlockCsvImporter';
@ -222,6 +223,8 @@ export class ImportComponent implements OnInit {
return new SafeInCloudXmlImporter(); return new SafeInCloudXmlImporter();
case 'padlockcsv': case 'padlockcsv':
return new PadlockCsvImporter(); return new PadlockCsvImporter();
case 'keepass2xml':
return new KeePass2XmlImporter();
default: default:
return null; return null;
} }