Merge pull request #38 from franze6/DID-9
Исправила url, настроила дефолтный шрифт
This commit is contained in:
@@ -22,7 +22,6 @@ class Store {
|
|||||||
this.fetchNodeInfo()
|
this.fetchNodeInfo()
|
||||||
|
|
||||||
reaction(() => this.tokenKey, () => this.getData())
|
reaction(() => this.tokenKey, () => this.getData())
|
||||||
reaction(() => this.tokenKey, () => this.fetchNewAccountData())
|
|
||||||
reaction(() => this.tokenKey, () => this.fetchTransactionsInfo())
|
reaction(() => this.tokenKey, () => this.fetchTransactionsInfo())
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -32,14 +31,14 @@ class Store {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fetchNewAccountData() {
|
fetchNewAccountData() {
|
||||||
fetchWrapper.getAuth('http://3.125.47.101/api/data/private', {
|
fetchWrapper.getAuth('data/private', {
|
||||||
networkIdentifier: this.nodeInfo.networkIdentifier,
|
networkIdentifier: this.nodeInfo.networkIdentifier,
|
||||||
lastBlockID: this.nodeInfo.lastBlockID
|
lastBlockID: this.nodeInfo.lastBlockID
|
||||||
}).then((res) => this.userDataFetchChange(res))
|
}).then((res) => this.userDataFetchChange(res))
|
||||||
}
|
}
|
||||||
|
|
||||||
pushAccountData(data=this.accountData) {
|
pushAccountData(data=this.accountData) {
|
||||||
fetchWrapper.postAuth('http://3.125.47.101/api/data/private', {
|
fetchWrapper.postAuth('data/private', {
|
||||||
networkIdentifier: this.nodeInfo.networkIdentifier,
|
networkIdentifier: this.nodeInfo.networkIdentifier,
|
||||||
lastBlockID: this.nodeInfo.lastBlockID
|
lastBlockID: this.nodeInfo.lastBlockID
|
||||||
}, [...this.encryptAccountData(data)])
|
}, [...this.encryptAccountData(data)])
|
||||||
@@ -47,20 +46,17 @@ class Store {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fetchKeysArray() {
|
fetchKeysArray() {
|
||||||
fetchWrapper.getAuth(
|
fetchWrapper.getAuth('data/shared/', {
|
||||||
'https://ccab53ea-d042-47b3-b9b4-79b913f47b3d.mock.pstmn.io/data/shared',
|
networkIdentifier: this.nodeInfo.networkIdentifier,
|
||||||
{
|
lastBlockID: this.nodeInfo.lastBlockID
|
||||||
networkIdentifier: this.nodeInfo.networkIdentifier,
|
}).then((res) => this.keysArrayFetchChange(res))
|
||||||
lastBlockID: this.nodeInfo.lastBlockID
|
|
||||||
}).then((res) => this.keysArrayFetchChange(res))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fetchTransactionsInfo() {
|
fetchTransactionsInfo() {
|
||||||
fetchWrapper.getAuth(`http://3.125.47.101/api/account/transactions/${this.accountMadeTransaction}?moduleID=1001&assetID=11`, {
|
fetchWrapper.getAuth(`http://3.125.47.101/api/account/transactions/${this.accountMadeTransaction}?moduleID=1001&assetID=11`, {
|
||||||
networkIdentifier: this.nodeInfo.networkIdentifier,
|
networkIdentifier: this.nodeInfo.networkIdentifier,
|
||||||
lastBlockID: this.nodeInfo.lastBlockID
|
lastBlockID: this.nodeInfo.lastBlockID
|
||||||
})
|
}).then((res)=>this.saveInfoTransactions(res))
|
||||||
.then((res)=>this.saveInfoTransactions(res))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get accountMadeTransaction() {
|
get accountMadeTransaction() {
|
||||||
@@ -119,7 +115,7 @@ class Store {
|
|||||||
|
|
||||||
get accountData() {
|
get accountData() {
|
||||||
return this._accountData
|
return this._accountData
|
||||||
}
|
};
|
||||||
|
|
||||||
encryptAccountData(data) {
|
encryptAccountData(data) {
|
||||||
return data.map((item) => {
|
return data.map((item) => {
|
||||||
@@ -155,7 +151,6 @@ class Store {
|
|||||||
const sign = cryptography.signDataWithPassphrase(Buffer.from(stringToSign, 'hex'), this.passPhrase).toString('hex')
|
const sign = cryptography.signDataWithPassphrase(Buffer.from(stringToSign, 'hex'), this.passPhrase).toString('hex')
|
||||||
return this.pubKey + ':' +sign
|
return this.pubKey + ':' +sign
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export const registrationStore = new Store();
|
export const registrationStore = new Store();
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ module.exports = {
|
|||||||
blue: '2px solid rgba(0, 112, 244, 0.5)',
|
blue: '2px solid rgba(0, 112, 244, 0.5)',
|
||||||
},
|
},
|
||||||
fontFamily: {
|
fontFamily: {
|
||||||
inter: ['Inter', 'sans-serif'],
|
sans: ['Inter', 'sans-serif'],
|
||||||
},
|
},
|
||||||
fontSize: {
|
fontSize: {
|
||||||
descriptionSize: ['0.75rem', { lineHeight: '1.25' }],
|
descriptionSize: ['0.75rem', { lineHeight: '1.25' }],
|
||||||
|
|||||||
Reference in New Issue
Block a user