settings.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. <button ion-button block (click)="generateKeys()">Generate keys</button>
  25. <ion-label color="primary" stacked>Private Key:</ion-label>
  26. <ion-textarea [(ngModel)]="privateKey"></ion-textarea>
  27. <ion-label color="primary" stacked>Public Key:</ion-label>
  28. <ion-textarea [(ngModel)]="publicKey"></ion-textarea>
  29. <p>Under no circumstances share your private key with any other person!</p>
  30. <button ion-button block (click)="publishPublicKey()">Publish public key</button>
  31. <button ion-button block (click)="exportPrivateKey()">Export private key</button>
  32. </ion-card-content>
  33. </ion-card>
  34. <button ion-button block (click)="save()">Save settings</button>
  35. </ion-content>