Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c271aac6
authored
Sep 24, 2018
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stuffendalen, siirto koneelta toiselle
1 parent
73bb04a9
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
113 additions
and
0 deletions
code/moya-angular/localhost-moyaproxy.conf.json
code/moya-angular/src/app/modules/login/login-dialog/login-dialog.component.css
code/moya-angular/src/app/modules/login/login-dialog/login-dialog.component.html
code/moya-angular/src/app/modules/login/login-dialog/login-dialog.component.spec.ts
code/moya-angular/src/app/modules/login/login-dialog/login-dialog.component.ts
code/moya-angular/src/app/modules/login/login-page/login-page.component.css
code/moya-angular/src/app/modules/login/login-page/login-page.component.html
code/moya-angular/src/app/modules/login/login-page/login-page.component.spec.ts
code/moya-angular/src/app/modules/login/login-page/login-page.component.ts
code/moya-angular/test-moyaproxy.conf.json
code/moya-angular/localhost-moyaproxy.conf.json
0 → 100644
View file @
c271aac
{
"/MoyaWeb"
:
{
"target"
:
"http://localhost:8080"
,
"secure"
:
false
}
}
code/moya-angular/src/app/modules/login/login-dialog/login-dialog.component.css
0 → 100644
View file @
c271aac
File mode changed
code/moya-angular/src/app/modules/login/login-dialog/login-dialog.component.html
0 → 100644
View file @
c271aac
<p>
login-dialog works!
</p>
code/moya-angular/src/app/modules/login/login-dialog/login-dialog.component.spec.ts
0 → 100644
View file @
c271aac
import
{
async
,
ComponentFixture
,
TestBed
}
from
'@angular/core/testing'
;
import
{
LoginDialogComponent
}
from
'./login-dialog.component'
;
describe
(
'LoginDialogComponent'
,
()
=>
{
let
component
:
LoginDialogComponent
;
let
fixture
:
ComponentFixture
<
LoginDialogComponent
>
;
beforeEach
(
async
(()
=>
{
TestBed
.
configureTestingModule
({
declarations
:
[
LoginDialogComponent
]
})
.
compileComponents
();
}));
beforeEach
(()
=>
{
fixture
=
TestBed
.
createComponent
(
LoginDialogComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'should create'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
code/moya-angular/src/app/modules/login/login-dialog/login-dialog.component.ts
0 → 100644
View file @
c271aac
import
{
Component
,
OnInit
}
from
'@angular/core'
;
@
Component
({
selector
:
'moya-login-dialog'
,
templateUrl
:
'./login-dialog.component.html'
,
styleUrls
:
[
'./login-dialog.component.css'
]
})
export
class
LoginDialogComponent
implements
OnInit
{
constructor
()
{
}
ngOnInit
()
{
}
}
code/moya-angular/src/app/modules/login/login-page/login-page.component.css
0 → 100644
View file @
c271aac
File mode changed
code/moya-angular/src/app/modules/login/login-page/login-page.component.html
0 → 100644
View file @
c271aac
<mat-card>
<mat-card-title>
<mat-toolbar
color=
"primary"
>
<h1>
{{ 'login.title' | translate }}
</h1>
</mat-toolbar>
</mat-card-title>
<mat-card-content>
<moya-login
(
loginEvent
)="
onLoginEvent
($
event
)"
></moya-login>
</mat-card-content>
</mat-card>
code/moya-angular/src/app/modules/login/login-page/login-page.component.spec.ts
0 → 100644
View file @
c271aac
import
{
async
,
ComponentFixture
,
TestBed
}
from
'@angular/core/testing'
;
import
{
LoginPageComponent
}
from
'./login-page.component'
;
describe
(
'LoginPageComponent'
,
()
=>
{
let
component
:
LoginPageComponent
;
let
fixture
:
ComponentFixture
<
LoginPageComponent
>
;
beforeEach
(
async
(()
=>
{
TestBed
.
configureTestingModule
({
declarations
:
[
LoginPageComponent
]
})
.
compileComponents
();
}));
beforeEach
(()
=>
{
fixture
=
TestBed
.
createComponent
(
LoginPageComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'should create'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
code/moya-angular/src/app/modules/login/login-page/login-page.component.ts
0 → 100644
View file @
c271aac
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
Router
}
from
"@angular/router"
;
@
Component
({
selector
:
'moya-login-page'
,
templateUrl
:
'./login-page.component.html'
,
styleUrls
:
[
'./login-page.component.css'
]
})
export
class
LoginPageComponent
implements
OnInit
{
constructor
(
private
router
:
Router
)
{
}
ngOnInit
()
{
}
onLoginEvent
(
success
:
boolean
):
void
{
if
(
success
)
{
this
.
router
.
navigateByUrl
(
"/"
);
}
}
}
code/moya-angular/test-moyaproxy.conf.json
0 → 100644
View file @
c271aac
{
"/MoyaWeb"
:
{
"target"
:
"https://ng.test.moya.fi"
,
"secure"
:
true
,
"headers"
:
{
"host"
:
"ng.test.moya.fi"
}
}
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment