Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
Breeze
Commits
2f5fdd71
Commit
2f5fdd71
authored
Apr 10, 2017
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update components to reflect latest API spec
parent
91ce31b8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
8 deletions
+16
-8
create.component.ts
Breeze.UI/src/app/setup/create/create.component.ts
+1
-0
recover.component.html
Breeze.UI/src/app/setup/recover/recover.component.html
+7
-3
recover.component.ts
Breeze.UI/src/app/setup/recover/recover.component.ts
+3
-2
api.service.ts
Breeze.UI/src/app/shared/api/api.service.ts
+3
-2
wallet-recovery.ts
Breeze.UI/src/app/shared/wallet-recovery.ts
+2
-1
No files found.
Breeze.UI/src/app/setup/create/create.component.ts
View file @
2f5fdd71
...
...
@@ -18,6 +18,7 @@ export class CreateComponent {
private
responseMessage
:
string
;
private
createWallet
(
password
:
string
,
network
:
string
,
folderPath
:
string
,
name
:
string
,
)
{
this
.
newWallet
=
new
WalletCreation
();
this
.
newWallet
.
password
=
password
;
this
.
newWallet
.
network
=
network
;
this
.
newWallet
.
folderPath
=
folderPath
;
...
...
Breeze.UI/src/app/setup/recover/recover.component.html
View file @
2f5fdd71
...
...
@@ -11,8 +11,12 @@
<input
class=
"form-control"
type=
"password"
#
walletPassword
required
>
</div>
<div
class=
"form-group"
>
<label
for=
"name"
>
Date of creation (yyyy-MM-dd):
</label>
<input
class=
"form-control"
type=
"password"
#
walletDate
required
>
<label
for=
"name"
>
Wallet Path:
</label>
<input
class=
"form-control"
type=
"text"
#
walletPath
required
>
</div>
<div
class=
"form-group"
>
<label
for=
"name"
>
Wallet Name:
</label>
<input
class=
"form-control"
type=
"text"
#
walletName
required
>
</div>
<div
class=
"form-group"
>
<label
for=
"networklabel"
>
Network:
</label>
...
...
@@ -21,4 +25,4 @@
<option
value=
"test"
>
Testnet
</option>
</select>
</div>
<button
type=
"submit"
(
click
)="
recoverWallet
(
walletMnemonic
.
value
,
walletPassword
.
value
,
walletDate
.
value
,
walletNetwork
.
value
)"
>
Recover
</button>
\ No newline at end of file
<button
type=
"submit"
(
click
)="
recoverWallet
(
walletMnemonic
.
value
,
walletPassword
.
value
,
walletPath
.
value
,
walletName
.
value
,
walletNetwork
.
value
)"
>
Recover
</button>
\ No newline at end of file
Breeze.UI/src/app/setup/recover/recover.component.ts
View file @
2f5fdd71
...
...
@@ -16,10 +16,11 @@ export class RecoverComponent implements OnInit {
ngOnInit
()
{
}
private
recoverWallet
(
mnemonic
:
string
,
password
:
string
,
creationDat
e
:
string
,
network
:
string
)
{
private
recoverWallet
(
mnemonic
:
string
,
password
:
string
,
folderPath
:
string
,
nam
e
:
string
,
network
:
string
)
{
this
.
walletRecovery
.
mnemonic
=
mnemonic
;
this
.
walletRecovery
.
password
=
password
;
this
.
walletRecovery
.
date
=
creationDate
;
this
.
walletRecovery
.
folderPath
=
folderPath
;
this
.
walletRecovery
.
name
=
name
;
this
.
walletRecovery
.
network
=
network
;
this
.
apiService
...
...
Breeze.UI/src/app/shared/api/api.service.ts
View file @
2f5fdd71
...
...
@@ -16,7 +16,8 @@ import { Mnemonic } from '../mnemonic';
export
class
ApiService
{
constructor
(
private
http
:
Http
)
{};
private
webApiUrl
=
'http://localhost:3000/api/v1'
;
private
mockApiUrl
=
'http://localhost:3000/api/v1'
;
private
webApiUrl
=
'http://localhost:5000/api/v1'
;
private
headers
=
new
Headers
({
'Content-Type'
:
'application/json'
});
/**
...
...
@@ -52,7 +53,7 @@ export class ApiService {
*/
getWalletStatus
():
Observable
<
any
>
{
return
this
.
http
.
get
(
this
.
web
ApiUrl
+
'/wallet/status'
)
.
get
(
this
.
mock
ApiUrl
+
'/wallet/status'
)
.
map
((
response
:
Response
)
=>
response
.
json
())
.
catch
(
this
.
handleError
);
}
...
...
Breeze.UI/src/app/shared/wallet-recovery.ts
View file @
2f5fdd71
export
class
WalletRecovery
{
mnemonic
:
string
;
password
:
string
;
date
:
string
;
folderPath
:
string
;
name
:
string
;
network
:
string
;
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment