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
e75c606e
Commit
e75c606e
authored
Apr 27, 2017
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use lazy loading, adjust import and export statements
parent
9de01989
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
25 additions
and
31 deletions
+25
-31
app-routing.module.ts
Breeze.UI/src/app/app-routing.module.ts
+3
-1
app.module.ts
Breeze.UI/src/app/app.module.ts
+4
-4
setup-routing.module.ts
Breeze.UI/src/app/setup/setup-routing.module.ts
+1
-0
setup.module.ts
Breeze.UI/src/app/setup/setup.module.ts
+3
-6
api.service.ts
Breeze.UI/src/app/shared/services/api.service.ts
+2
-2
shared.module.ts
Breeze.UI/src/app/shared/shared.module.ts
+3
-5
wallet-routing.module.ts
Breeze.UI/src/app/wallet/wallet-routing.module.ts
+3
-2
wallet.module.ts
Breeze.UI/src/app/wallet/wallet.module.ts
+6
-11
No files found.
Breeze.UI/src/app/app-routing.module.ts
View file @
e75c606e
...
...
@@ -4,7 +4,9 @@ import { RouterModule, Routes } from '@angular/router';
import
{
LoginComponent
}
from
'./login/login.component'
;
const
routes
:
Routes
=
[
{
path
:
'login'
,
component
:
LoginComponent
}
{
path
:
'login'
,
component
:
LoginComponent
},
{
path
:
'setup'
,
loadChildren
:
'app/setup/setup.module#SetupModule'
},
{
path
:
'wallet'
,
loadChildren
:
'app/wallet/wallet.module#WalletModule'
}
];
@
NgModule
({
...
...
Breeze.UI/src/app/app.module.ts
View file @
e75c606e
import
{
NgModule
}
from
'@angular/core'
;
import
{
BrowserModule
}
from
'@angular/platform-browser'
;
import
{
FormsModule
,
ReactiveFormsModule
}
from
"@angular/forms"
;
import
{
HttpModule
}
from
'@angular/http'
;
import
{
SetupModule
}
from
'./setup/setup.module'
;
...
...
@@ -17,12 +18,11 @@ import { GlobalService } from './shared/services/global.service';
@
NgModule
({
imports
:
[
AppRoutingModule
,
BrowserModule
,
ReactiveFormsModule
,
FormsModule
,
HttpModule
,
SetupModule
,
WalletModule
,
SharedModule
.
forRoot
()
],
declarations
:
[
...
...
@@ -33,4 +33,4 @@ import { GlobalService } from './shared/services/global.service';
bootstrap
:
[
AppComponent
]
})
export
class
AppModule
{
}
\ No newline at end of file
export
class
AppModule
{
}
Breeze.UI/src/app/setup/setup-routing.module.ts
View file @
e75c606e
...
...
@@ -6,6 +6,7 @@ import { CreateComponent } from './create/create.component';
import
{
RecoverComponent
}
from
'./recover/recover.component'
;
const
routes
:
Routes
=
[
{
path
:
''
,
redirectTo
:
'setup'
,
pathMatch
:
'full'
},
{
path
:
'setup'
,
component
:
SetupComponent
},
{
path
:
'setup/create'
,
component
:
CreateComponent
},
{
path
:
'setup/recover'
,
component
:
RecoverComponent
}
...
...
Breeze.UI/src/app/setup/setup.module.ts
View file @
e75c606e
import
{
BrowserModule
}
from
'@angular/platform-browser
'
;
import
{
CommonModule
}
from
'@angular/common
'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
FormsModule
}
from
'@angular/forms'
;
import
{
RouterModule
}
from
'@angular/router'
;
import
{
SetupComponent
}
from
'./setup.component'
;
import
{
CreateComponent
}
from
'./create/create.component'
;
...
...
@@ -13,8 +11,7 @@ import { RecoverComponent } from './recover/recover.component';
@
NgModule
({
imports
:
[
BrowserModule
,
FormsModule
,
CommonModule
,
SetupRoutingModule
,
SharedModule
],
...
...
@@ -23,7 +20,7 @@ import { RecoverComponent } from './recover/recover.component';
SetupComponent
,
RecoverComponent
],
exports
:
[
SetupComponent
],
exports
:
[],
providers
:
[]
})
...
...
Breeze.UI/src/app/shared/services/api.service.ts
View file @
e75c606e
...
...
@@ -26,7 +26,7 @@ export class ApiService {
*/
getWalletFiles
():
Observable
<
any
>
{
return
this
.
http
.
get
(
this
.
mock
ApiUrl
+
'/wallet/files'
)
.
get
(
this
.
web
ApiUrl
+
'/wallet/files'
)
.
map
((
response
:
Response
)
=>
response
);
}
...
...
@@ -67,7 +67,7 @@ export class ApiService {
}
/**
* Get wallet balance info from the API.
* Get wallet balance info from the API.
*/
getWalletBalance
():
Observable
<
any
>
{
return
this
.
http
...
...
Breeze.UI/src/app/shared/shared.module.ts
View file @
e75c606e
import
{
NgModule
,
ModuleWithProviders
}
from
'@angular/core'
;
import
{
CommonModule
}
from
'@angular/common'
;
import
{
FormsModule
}
from
'@angular/forms'
;
import
{
RouterModule
}
from
'@angular/router'
;
@
NgModule
({
imports
:
[
CommonModule
,
RouterModule
],
imports
:
[
CommonModule
],
declarations
:
[],
exports
:
[
CommonModule
,
FormsModule
,
RouterModule
]
exports
:
[]
})
export
class
SharedModule
{
...
...
@@ -16,4 +14,4 @@ export class SharedModule {
providers
:
[
]
};
}
}
\ No newline at end of file
}
Breeze.UI/src/app/wallet/wallet-routing.module.ts
View file @
e75c606e
...
...
@@ -7,9 +7,10 @@ import { ReceiveComponent } from './receive/receive.component';
import
{
HistoryComponent
}
from
'./history/history.component'
;
const
routes
:
Routes
=
[
{
path
:
'wallet'
,
component
:
WalletComponent
,
{
path
:
''
,
redirectTo
:
'wallet'
,
pathMatch
:
'full'
},
{
path
:
'wallet'
,
component
:
WalletComponent
,
children
:
[
{
path
:
''
,
redirectTo
:
'
send
'
,
pathMatch
:
'full'
},
{
path
:
''
,
redirectTo
:
'
history
'
,
pathMatch
:
'full'
},
{
path
:
'send'
,
component
:
SendComponent
},
{
path
:
'receive'
,
component
:
ReceiveComponent
},
{
path
:
'history'
,
component
:
HistoryComponent
}
...
...
Breeze.UI/src/app/wallet/wallet.module.ts
View file @
e75c606e
import
{
BrowserModule
}
from
'@angular/platform-browser
'
;
import
{
CommonModule
}
from
'@angular/common
'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
FormsModule
}
from
'@angular/forms'
;
import
{
RouterModule
}
from
'@angular/router'
;
import
{
FormsModule
,
ReactiveFormsModule
}
from
'@angular/forms'
;
import
{
WalletComponent
}
from
'./wallet.component'
;
import
{
MenuComponent
}
from
'./menu/menu.component'
;
...
...
@@ -10,16 +9,14 @@ import { SendComponent } from './send/send.component';
import
{
ReceiveComponent
}
from
'./receive/receive.component'
;
import
{
HistoryComponent
}
from
'./history/history.component'
;
import
{
SharedModule
}
from
'../shared/shared.module'
;
import
{
WalletRoutingModule
}
from
'./wallet-routing.module'
;
@
NgModule
({
imports
:
[
Browser
Module
,
Common
Module
,
FormsModule
,
WalletRouting
Module
,
Shared
Module
ReactiveForms
Module
,
WalletRouting
Module
],
declarations
:
[
WalletComponent
,
...
...
@@ -29,9 +26,7 @@ import { WalletRoutingModule } from './wallet-routing.module';
SendComponent
,
HistoryComponent
],
exports
:
[
WalletComponent
]
exports
:
[]
})
export
class
WalletModule
{
}
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