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
81d57854
Commit
81d57854
authored
Apr 09, 2017
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add setup component
parent
b623b067
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
5 deletions
+26
-5
setup-routing.module.ts
Breeze.UI/src/app/setup/setup-routing.module.ts
+5
-1
setup.component.html
Breeze.UI/src/app/setup/setup.component.html
+9
-2
setup.component.ts
Breeze.UI/src/app/setup/setup.component.ts
+9
-1
setup.module.ts
Breeze.UI/src/app/setup/setup.module.ts
+3
-1
No files found.
Breeze.UI/src/app/setup/setup-routing.module.ts
View file @
81d57854
...
...
@@ -2,9 +2,13 @@ import { NgModule } from '@angular/core';
import
{
RouterModule
,
Routes
}
from
'@angular/router'
;
import
{
SetupComponent
}
from
'./setup.component'
;
import
{
CreateComponent
}
from
'./create/create.component'
;
import
{
RecoverComponent
}
from
'./recover/recover.component'
;
const
routes
:
Routes
=
[
{
path
:
'setup'
,
component
:
SetupComponent
}
{
path
:
'setup'
,
component
:
SetupComponent
},
{
path
:
'setup/create'
,
component
:
CreateComponent
},
{
path
:
'setup/recover'
,
component
:
RecoverComponent
}
];
@
NgModule
({
...
...
Breeze.UI/src/app/setup/setup.component.html
View file @
81d57854
<h1>
Welcome to setup
</h1>
<create-component></create-component>
\ No newline at end of file
<h1>
Welcome to Breeze. Looks like you're new here.
</h1>
<p>
If you haven't used Breeze before, please create a new wallet.
</p>
<p>
Users who have previously used Breeze, can choose to recover their wallet.
</p>
<button
(
click
)="
createWallet
()"
>
Create
</button>
<button
(
click
)="
recoverWallet
()"
>
Recover
</button>
\ No newline at end of file
Breeze.UI/src/app/setup/setup.component.ts
View file @
81d57854
import
{
Component
}
from
'@angular/core'
;
import
{
Router
}
from
'@angular/router'
;
@
Component
({
selector
:
'setup-component'
,
...
...
@@ -6,5 +7,12 @@ import { Component } from '@angular/core';
styleUrls
:
[
'./setup.component.css'
],
})
export
class
SetupComponent
{
constructor
(
private
router
:
Router
)
{}
private
createWallet
()
{
this
.
router
.
navigate
([
'/setup/create'
])
}
private
recoverWallet
()
{
this
.
router
.
navigate
([
'/setup/recover'
])
}
}
Breeze.UI/src/app/setup/setup.module.ts
View file @
81d57854
...
...
@@ -9,6 +9,7 @@ import { CreateComponent } from './create/create.component';
import
{
SharedModule
}
from
'../shared/shared.module'
;
import
{
SetupRoutingModule
}
from
'./setup-routing.module'
;
import
{
RecoverComponent
}
from
'./recover/recover.component'
;
@
NgModule
({
imports
:
[
...
...
@@ -19,7 +20,8 @@ import { SetupRoutingModule } from './setup-routing.module';
],
declarations
:
[
CreateComponent
,
SetupComponent
SetupComponent
,
RecoverComponent
],
exports
:
[
SetupComponent
],
providers
:
[]
...
...
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