settings.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <ion-header>
  2. <ion-navbar>
  3. <button ion-button menuToggle>
  4. <ion-icon name="menu"></ion-icon>
  5. </button>
  6. <ion-title>Settings</ion-title>
  7. </ion-navbar>
  8. </ion-header>
  9. <ion-content padding>
  10. <ion-card>
  11. <ion-card-header>Keywords for Private Mode</ion-card-header>
  12. <ion-card-content>
  13. <p>The following hashtags will automatically activate the private mode when liking or writing a tweet.</p>
  14. <ion-label color="primary" stacked>Keywords:</ion-label>
  15. <ion-textarea [(ngModel)]="keywords"></ion-textarea>
  16. </ion-card-content>
  17. </ion-card>
  18. <ion-card>
  19. <ion-card-header>Encryption</ion-card-header>
  20. <ion-card-content>
  21. <p>To protect your privacy, all data send to the P2P network will be encrypted. Therefore you need to enter or
  22. generate
  23. a pair of keys. If you run the app on multiple devices, please enter everywhere the same pair of keys.</p>
  24. <ion-label color="primary" stacked>Enter your email address:</ion-label>
  25. <ion-input [(ngModel)]="email" type="email" required></ion-input>
  26. <button ion-button block (click)="generateKeys()">Generate keys</button>
  27. <ion-label color="primary" stacked>Private Key:</ion-label>
  28. <ion-textarea [(ngModel)]="privateKey"></ion-textarea>
  29. <ion-label color="primary" stacked>Public Key:</ion-label>
  30. <ion-textarea [(ngModel)]="publicKey"></ion-textarea>
  31. <p>Under no circumstances share your private key with any other person!</p>
  32. <button ion-button block (click)="publishPublicKey()">Publish public key</button>
  33. <button ion-button block (click)="exportPrivateKey()">Export private key</button>
  34. </ion-card-content>
  35. </ion-card>
  36. <button ion-button block (click)="save()">Save settings</button>
  37. </ion-content>