1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-06 09:20:43 +01:00

gnome json importer

This commit is contained in:
Kyle Spearrin 2018-07-23 12:04:38 -04:00
parent 473f5bfb62
commit 97dfb6fdec
3 changed files with 12 additions and 1 deletions

2
jslib

@ -1 +1 @@
Subproject commit e5d060c80b6c6ca4f863534ec73ed410bb30a21e Subproject commit 3a34d3b174a1cad8eac9fe950c814336902b4cab

View File

@ -140,6 +140,14 @@
Using the PassKeep mobile app, navigate to "Backup/Restore". Locate the "CSV Backup/Restore" section and click "Backup to Using the PassKeep mobile app, navigate to "Backup/Restore". Locate the "CSV Backup/Restore" section and click "Backup to
CSV" to save the CSV file. CSV" to save the CSV file.
</ng-container> </ng-container>
<ng-container *ngIf="format === 'gnomejson'">
Make sure you have python-keyring and python-gnomekeyring installed. Save the
<a target="_blank" rel="noopener" href="https://bit.ly/2sMldAI">GNOME Keyring Import/Export</a> python script to your desktop as
<code>pw_helper.py</code>. Open terminal and run
<code>chmod +rx Desktop/pw_helper.py</code> and then
<code>python Desktop/pw_helper.py export Desktop/my_passwords.json</code>. Then upload the resulting
<code>my_passwords.json</code> file here to Bitwarden.
</ng-container>
</app-callout> </app-callout>
<div class="row"> <div class="row">
<div class="col-6"> <div class="col-6">

View File

@ -30,6 +30,7 @@ import { ClipperzHtmlImporter } from 'jslib/importers/clipperzHtmlImporter';
import { DashlaneCsvImporter } from 'jslib/importers/dashlaneCsvImporter'; import { DashlaneCsvImporter } from 'jslib/importers/dashlaneCsvImporter';
import { EnpassCsvImporter } from 'jslib/importers/enpassCsvImporter'; import { EnpassCsvImporter } from 'jslib/importers/enpassCsvImporter';
import { FirefoxCsvImporter } from 'jslib/importers/firefoxCsvImporter'; import { FirefoxCsvImporter } from 'jslib/importers/firefoxCsvImporter';
import { GnomeJsonImporter } from 'jslib/importers/gnomeJsonImporter';
import { Importer } from 'jslib/importers/importer'; import { Importer } from 'jslib/importers/importer';
import { KeePass2XmlImporter } from 'jslib/importers/keepass2XmlImporter'; import { KeePass2XmlImporter } from 'jslib/importers/keepass2XmlImporter';
import { KeePassXCsvImporter } from 'jslib/importers/keepassxCsvImporter'; import { KeePassXCsvImporter } from 'jslib/importers/keepassxCsvImporter';
@ -295,6 +296,8 @@ export class ImportComponent implements OnInit {
return new SplashIdCsvImporter(); return new SplashIdCsvImporter();
case 'passkeepcsv': case 'passkeepcsv':
return new PassKeepCsvImporter(); return new PassKeepCsvImporter();
case 'gnomejson':
return new GnomeJsonImporter();
default: default:
return null; return null;
} }