Skip to content

Commit

Permalink
update help urls
Browse files Browse the repository at this point in the history
  • Loading branch information
poliha committed Apr 21, 2020
1 parent eefd8fc commit dd5b443
Show file tree
Hide file tree
Showing 29 changed files with 63 additions and 54 deletions.
17 changes: 9 additions & 8 deletions config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<name>Saza</name>
<description>A wallet that supports Stellar Lumens(XLM) and assets issued on the Stellar network.</description>
<author email="[email protected]" href="https://saza.io/">Peter Oliha</author>
<content src="index.html" />
<content original-src="index.html" src="http://localhost:8100" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
Expand All @@ -13,7 +13,7 @@
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<preference name="ScrollEnabled" value="false" />
<preference name="android-minSdkVersion" value="28" />
<preference name="android-minSdkVersion" value="26" />
<preference name="BackupWebStorage" value="none" />
<preference name="SplashMaintainAspectRatio" value="true" />
<preference name="FadeSplashScreenDuration" value="300" />
Expand Down Expand Up @@ -95,12 +95,6 @@
<splash height="2436" src="resources/ios/splash/Default-2436h.png" width="1125" />
<splash height="1125" src="resources/ios/splash/Default-Landscape-2436h.png" width="2436" />
</platform>
<plugin name="cordova-plugin-whitelist" spec="1.3.3" />
<plugin name="cordova-plugin-statusbar" spec="2.4.2" />
<plugin name="cordova-plugin-device" spec="2.0.2" />
<plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
<plugin name="cordova-plugin-ionic-webview" spec="^4.0.0" />
<plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
<platform name="windows">
<icon src="resources/windows/icon/Square44x44Logo.png" target="Square44x44Logo" />
<icon src="resources/windows/icon/SmallTile.png" target="Square71x71Logo" />
Expand All @@ -110,4 +104,11 @@
<icon src="resources/windows/icon/StoreLogo.png" target="StoreLogo" />
<splash src="resources/windows/splash/Splash.png" target="SplashScreen" />
</platform>
<plugin name="cordova-plugin-whitelist" spec="1.3.3" />
<plugin name="cordova-plugin-statusbar" spec="2.4.2" />
<plugin name="cordova-plugin-device" spec="2.0.2" />
<plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
<plugin name="cordova-plugin-ionic-webview" spec="^4.0.0" />
<plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
<allow-navigation href="http://localhost:8100" sessionid="433d1cd8" />
</widget>
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Saza

A wallet that supports Stellar Lumens(XLM) and assets issued on the [Stellar](https://www.stellar.org/) network.
Available on android and Desktop.
Available on Android and Linux desktop.

## Features

Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/build-tx/build-tx.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class BuildTxPage implements OnInit {
pendingOperations = [];
activeAccount: string;
pageTitle = 'Build Transaction';
helpUrl = '#';
helpUrl = 'https://docs.saza.io/wallet-actions/build-transaction';
savedMemo = {
memo: '',
memo_type: '',
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/change-password/change-password.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { SazaError } from 'src/app/providers/errors';
})
export class ChangePasswordPage implements OnInit {
pageTitle = 'Change Password';
helpUrl = '#';
helpUrl = 'https://docs.saza.io/wallet-actions/settings/change-password';
changePasswordForm: FormGroup;
oldPasswordHash: string;
oldUserAccounts: SazaAccount[];
Expand Down
6 changes: 3 additions & 3 deletions src/app/pages/export-account/export-account.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ export class ExportAccountPage implements OnInit {
encryptionKey: String;
dataToExport: String;
pageTitle = 'Export Accounts';
helpUrl = '#';
helpUrl = 'https://docs.saza.io/wallet-actions/settings/export-account';
constructor(private userService: UserService, private utility: Utility) {}

ngOnInit() {
this.userService.userAccounts.subscribe(data => {
this.userService.userAccounts.subscribe((data) => {
this.userAccounts = data;
console.log('user account', this.userAccounts);
});
Expand Down Expand Up @@ -55,7 +55,7 @@ export class ExportAccountPage implements OnInit {
this.encryptionKey = this.utility.generatePassword();

this.dataToExport = this.userAccounts
.map(account => {
.map((account) => {
const privatekey = this.utility.decrypt(account.private, userPassword);
const encryptedKey = this.utility.encrypt(
privatekey,
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/forgot-password/forgot-password.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class ForgotPasswordPage implements OnInit {
};
pageTitle = 'Forgot Password';
subTitle = '';
helpUrl = '#';
helpUrl = 'https://docs.saza.io/getting-started/forgot-password';

@ViewChild('stepper', { static: false }) stepper: MatStepper;

Expand Down
9 changes: 7 additions & 2 deletions src/app/pages/import-account/import-account.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ export class ImportAccountPage implements OnInit {
importAccountForm: FormGroup;
dataToImport: String;
pageTitle = 'Import Accounts';
helpUrl = '#';
helpUrl = 'https://docs.saza.io/wallet-actions/settings/import-account';
constructor(
private userService: UserService,
private utility: Utility,
public notification: NotificationService,
) {}

ngOnInit() {
this.userService.userAccounts.subscribe(data => {
this.userService.userAccounts.subscribe((data) => {
this.userAccounts = data;
console.log('user account', this.userAccounts);
});
Expand Down Expand Up @@ -79,6 +79,11 @@ export class ImportAccountPage implements OnInit {
});

console.log('dataToImport: ', dataToImport);

if (!dataToImport || !Array.isArray(dataToImport)) {
throw new SazaError('Invalid backup data provided.');
}

for (const account of dataToImport) {
const privatekey = this.utility.decrypt(account, backupKey);
const encryptedKey = this.utility.encrypt(privatekey, userPassword);
Expand Down
6 changes: 4 additions & 2 deletions src/app/pages/link-account/link-account.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class LinkAccountPage implements OnInit {
pairObj: { public: string; private: string } = { public: '', private: '' };
keypairGenerated = false;
pageTitle = 'Link Account';
helpUrl = '#';
helpUrl = 'https://docs.saza.io/wallet-actions/link-account';
constructor(
private formBuilder: FormBuilder,
private utility: Utility,
Expand All @@ -31,7 +31,9 @@ export class LinkAccountPage implements OnInit {
) {}

ngOnInit() {
this.userService.userAccounts.subscribe(data => (this.userAccounts = data));
this.userService.userAccounts.subscribe(
(data) => (this.userAccounts = data),
);
this.makeForm();
}

Expand Down
3 changes: 1 addition & 2 deletions src/app/pages/login/login.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ import { SazaError } from 'src/app/providers/errors';
export class LoginPage implements OnInit {
loginForm: FormGroup;
pageTitle = 'Login';
subTitle = '';
helpUrl = '#';
helpUrl = 'https://docs.saza.io/getting-started/login';
constructor(
public formBuilder: FormBuilder,
public utility: Utility,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class ManageAccountsDetailPage implements OnInit {
accountDetail: SazaAccount;
userAccounts: SazaAccount[];
pageTitle = 'Manage Account';
helpUrl = '#';
helpUrl = 'https://docs.saza.io/wallet-actions/settings/manage-accounts';
showSubmitButton = false;
showPrivateKeyIcon = 'eye';
userPassword;
Expand All @@ -43,9 +43,9 @@ export class ManageAccountsDetailPage implements OnInit {

ionViewWillEnter() {
this.accountID = this.route.snapshot.paramMap.get('id');
this.userService.getPassword().then(pwd => (this.passwordHash = pwd));
this.userService.getPassword().then((pwd) => (this.passwordHash = pwd));
this.getPassword();
this.userService.getAccounts().then(data => {
this.userService.getAccounts().then((data) => {
if (!data) {
return;
}
Expand Down Expand Up @@ -138,7 +138,7 @@ export class ManageAccountsDetailPage implements OnInit {
},
{
text: 'Continue',
handler: inputData => {
handler: (inputData) => {
console.log('inputDate: ', inputData);
const trimmedPassword = String(inputData.password).trim();
if (
Expand Down
4 changes: 2 additions & 2 deletions src/app/pages/manage-accounts/manage-accounts.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ import { Router } from '@angular/router';
})
export class ManageAccountsPage implements OnInit {
pageTitle = 'Manage Accounts';
helpUrl = '';
helpUrl = 'https://docs.saza.io/wallet-actions/settings/manage-accounts';
userAccounts: SazaAccount[] = [];
constructor(public userService: UserService, public router: Router) {}

ngOnInit() {}

ionViewWillEnter() {
this.userService.getAccounts().then(data => {
this.userService.getAccounts().then((data) => {
if (!Array.isArray(data) || !data.length) {
return this.router.navigate(['/dashboard']);
}
Expand Down
6 changes: 4 additions & 2 deletions src/app/pages/new-account/new-account.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class NewAccountPage implements OnInit {
pairObj: { public: string; private: string } = { public: '', private: '' };
keypairGenerated = false;
pageTitle = 'Add Account';
helpUrl = '#';
helpUrl = 'https://docs.saza.io/wallet-actions/new-account';
constructor(
private formBuilder: FormBuilder,
private utility: Utility,
Expand All @@ -29,7 +29,9 @@ export class NewAccountPage implements OnInit {
) {}

ngOnInit() {
this.userService.userAccounts.subscribe(data => (this.userAccounts = data));
this.userService.userAccounts.subscribe(
(data) => (this.userAccounts = data),
);
this.makeForm();
}

Expand Down
10 changes: 6 additions & 4 deletions src/app/pages/operations-queue/operations-queue.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,18 @@ import { TxService, StellarService } from 'src/app/providers/providers';
export class OperationsQueuePage implements OnInit {
operations = [];
pageTitle = 'Pending Operations';
helpUrl = '';
constructor(private txService: TxService, private stellarService: StellarService) { }
helpUrl = 'https://docs.saza.io/wallet-actions/operations-queue';
constructor(
private txService: TxService,
private stellarService: StellarService,
) {}

ngOnInit() {
this.txService.operations.subscribe(data => {
this.txService.operations.subscribe((data) => {
console.log('pending ops: ', data);
this.operations = this.stellarService.getOperationObject(data);
this.pageTitle = `Pending Operations (${this.operations.length})`;
console.log('pending ops: ', this.operations);
});
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class AccountMergePage extends OperationBuilderComponent
ngOnInit() {
super.ngOnInit();
this.pageTitle = 'Account Merge';
this.helpUrl = '';
this.helpUrl = 'https://docs.saza.io/stellar-operations/account-merge';
this.operationType = this.stellarService.operationType.ACCOUNT_MERGE;
this.makeForm();
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/operations/allow-trust/allow-trust.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class AllowTrustPage extends OperationBuilderComponent
ngOnInit() {
super.ngOnInit();
this.pageTitle = 'Allow Trust';
this.helpUrl = '';
this.helpUrl = 'https://docs.saza.io/stellar-operations/allow-trust';
this.operationType = this.stellarService.operationType.ALLOW_TRUST;
this.makeForm();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class BumpSequencePage extends OperationBuilderComponent
ngOnInit() {
super.ngOnInit();
this.pageTitle = 'Bump Sequence';
this.helpUrl = '';
this.helpUrl = 'https://docs.saza.io/stellar-operations/bump-sequence';
this.operationType = this.stellarService.operationType.BUMP_SEQUENCE;
this.makeForm();
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/operations/buy-offer/buy-offer.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class BuyOfferPage extends OperationBuilderComponent implements OnInit {
ngOnInit() {
super.ngOnInit();
this.pageTitle = 'Buy Offer';
this.helpUrl = '';
this.helpUrl = 'https://docs.saza.io/stellar-operations/buy-offer';
this.operationType = this.stellarService.operationType.MANAGE_BUY_OFFER;
this.makeForm();
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/operations/change-trust/change-trust.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class ChangeTrustPage extends OperationBuilderComponent
ngOnInit() {
super.ngOnInit();
this.pageTitle = 'Change Trust';
this.helpUrl = '';
this.helpUrl = 'https://docs.saza.io/stellar-operations/change-trust';
this.makeForm();
this.operationType = this.stellarService.operationType.CHANGE_TRUST;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class CreateAccountPage extends OperationBuilderComponent
ngOnInit() {
super.ngOnInit();
this.pageTitle = 'Create Account';
this.helpUrl = '';
this.helpUrl = 'https://docs.saza.io/stellar-operations/create-account';
this.operationType = this.stellarService.operationType.CREATE_ACCOUNT;
this.makeForm();
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/operations/manage-data/manage-data.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class ManageDataPage extends OperationBuilderComponent
ngOnInit() {
super.ngOnInit();
this.pageTitle = 'Manage Data';
this.helpUrl = '';
this.helpUrl = 'https://docs.saza.io/stellar-operations/manage-data';
this.operationType = this.stellarService.operationType.MANAGE_DATA;
this.makeForm();
}
Expand Down
3 changes: 2 additions & 1 deletion src/app/pages/operations/passive-offer/passive-offer.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export class PassiveOfferPage extends OperationBuilderComponent
ngOnInit() {
super.ngOnInit();
this.pageTitle = 'Passive Offer';
this.helpUrl = '';
this.helpUrl =
'https://docs.saza.io/stellar-operations/create-passive-sell-offer';
this.operationType = this.stellarService.operationType.CREATE_PASSIVE_SELL_OFFER;
this.makeForm();
}
Expand Down
3 changes: 2 additions & 1 deletion src/app/pages/operations/path-receive/path-receive.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ export class PathReceivePage extends OperationBuilderComponent
ngOnInit() {
super.ngOnInit();
this.pageTitle = 'Path Payment Strict Receive';
this.helpUrl = '';
this.helpUrl =
'https://docs.saza.io/stellar-operations/path-payment-receive';
this.operationType = this.stellarService.operationType.PATH_PAYMENT_STRICT_RECEIVE;
this.makeForm();
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/operations/path-send/path-send.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class PathSendPage extends OperationBuilderComponent implements OnInit {
ngOnInit() {
super.ngOnInit();
this.pageTitle = 'Path Payment Strict Send';
this.helpUrl = '';
this.helpUrl = 'https://docs.saza.io/stellar-operations/path-payment-send';
this.operationType = this.stellarService.operationType.PATH_PAYMENT_STRICT_SEND;
this.makeForm();
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/operations/payment/payment.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class PaymentPage extends OperationBuilderComponent implements OnInit {
ngOnInit() {
super.ngOnInit();
this.pageTitle = 'Payment';
this.helpUrl = '';
this.helpUrl = 'https://docs.saza.io/wallet-actions/send-payment';
this.operationType = this.stellarService.operationType.PAYMENT;
this.makeForm();
}
Expand Down
5 changes: 1 addition & 4 deletions src/app/pages/operations/sell-offer/sell-offer.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,14 @@ import { FormGroup } from '@angular/forms';
styleUrls: ['./sell-offer.page.scss'],
})
export class SellOfferPage extends OperationBuilderComponent implements OnInit {
pageTitle = 'Sell Offer';
subTitle = 'Operation';
helpUrl = '';
constructor(private utility: Utility) {
super();
}

ngOnInit() {
super.ngOnInit();
this.pageTitle = 'Sell Offer';
this.helpUrl = '';
this.helpUrl = 'https://docs.saza.io/stellar-operations/sell-offer';
this.operationType = this.stellarService.operationType.MANAGE_SELL_OFFER;
this.makeForm();
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/operations/set-options/set-options.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class SetOptionsPage extends OperationBuilderComponent
ngOnInit() {
super.ngOnInit();
this.pageTitle = 'Set Options';
this.helpUrl = '';
this.helpUrl = 'https://docs.saza.io/stellar-operations/set-options';
this.operationType = this.stellarService.operationType.SET_OPTIONS;
this.makeForm();
}
Expand Down
5 changes: 2 additions & 3 deletions src/app/pages/saza-setup/saza-setup.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ import { SazaError } from 'src/app/providers/errors';
export class SazaSetupPage implements OnInit {
passwordForm: FormGroup;
pageTitle = 'Setup Wallet';
subTitle = '';
helpUrl = '#';
helpUrl = 'https://docs.saza.io/getting-started/setup-wallet';
constructor(
private formBuilder: FormBuilder,
private utility: Utility,
Expand All @@ -37,7 +36,7 @@ export class SazaSetupPage implements OnInit {
}

ionViewWillEnter() {
this.userService.getPassword().then(password => {
this.userService.getPassword().then((password) => {
if (!password) {
this.menu.enable(false);
} else {
Expand Down
Loading

0 comments on commit dd5b443

Please sign in to comment.