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 9afce9d7
authored
Apr 01, 2018
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
still coding
1 parent
f442b1cf
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
21 additions
and
20 deletions
code/moya-angular/README.md
code/moya-angular/src/app/app.module.ts
code/moya-angular/src/app/modules/viplist/info/viplist.component.html → code/moya-angular/src/app/modules/viplist/info/info-viplist-page.component.html
code/moya-angular/src/app/modules/viplist/info/viplist.component.scss → code/moya-angular/src/app/modules/viplist/info/info-viplist-page.component.scss
code/moya-angular/src/app/modules/viplist/info/viplist.component.spec.ts → code/moya-angular/src/app/modules/viplist/info/info-viplist-page.component.spec.ts
code/moya-angular/src/app/modules/viplist/info/viplist.component.ts → code/moya-angular/src/app/modules/viplist/info/info-viplist-page.component.ts
code/moya-angular/src/app/pages/info/info-routing.module.ts
code/moya-angular/src/app/pages/info/info.module.ts
code/moya-angular/src/app/pages/login/login.module.ts
code/moya-angular/README.md
View file @
9afce9d
...
@@ -72,7 +72,7 @@ Jos tulee muita järkeviä kokonaisuuksia, joita voi käyttää muualla, jaa oma
...
@@ -72,7 +72,7 @@ Jos tulee muita järkeviä kokonaisuuksia, joita voi käyttää muualla, jaa oma
*
info
`tapahtumanaikana "infolaisen" toimesta tehtävät jutut, sisäänotto, käyttäjänhallinta jne. Oma moduulinsa joka lazyloadataan`
*
info
`tapahtumanaikana "infolaisen" toimesta tehtävät jutut, sisäänotto, käyttäjänhallinta jne. Oma moduulinsa joka lazyloadataan`
*
info.module.ts
*
info.module.ts
*
viplist
*
viplist
*
viplist
.component.ts,html,jne
*
info-viplist-page
.component.ts,html,jne
*
viplist.service.ts
*
viplist.service.ts
*
pizzatilaus
*
pizzatilaus
*
list.component.ts
`listaa kaikki, ja lisää uusi pizzailaus`
*
list.component.ts
`listaa kaikki, ja lisää uusi pizzailaus`
...
...
code/moya-angular/src/app/app.module.ts
View file @
9afce9d
...
@@ -14,19 +14,22 @@ import { TopMenuComponent } from './menu/top-menu/top-menu.component';
...
@@ -14,19 +14,22 @@ import { TopMenuComponent } from './menu/top-menu/top-menu.component';
import
{
AppComponent
}
from
'./app.component'
;
import
{
AppComponent
}
from
'./app.component'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
MatTableModule
}
from
"@angular/material"
;
import
{
MatTableModule
}
from
"@angular/material"
;
import
{
ViplistModule
}
from
"./modules/viplist/viplist.module"
;
import
{
LoginModule
}
from
"./pages/login/login.module"
;
@
NgModule
({
@
NgModule
({
declarations
:
[
declarations
:
[
AppComponent
,
AppComponent
,
TopMenuComponent
,
TopMenuComponent
,
MoyaLocaleComponent
MoyaLocaleComponent
,
],
],
imports
:
[
imports
:
[
BrowserModule
,
BrowserModule
,
AppRoutingModule
,
AppRoutingModule
,
FormsModule
,
FormsModule
,
HttpClientModule
,
HttpClientModule
,
MatTableModule
,
ViplistModule
,
LoginModule
,
AlertModule
.
forRoot
(),
AlertModule
.
forRoot
(),
TranslateModule
.
forRoot
({
TranslateModule
.
forRoot
({
...
...
code/moya-angular/src/app/modules/viplist/info/
viplist
.component.html
→
code/moya-angular/src/app/modules/viplist/info/
info-viplist-page
.component.html
View file @
9afce9d
<mat-table
[
dataSource
]="
vips
|
async
"
>
<mat-table
#
table
[
dataSource
]="
vips
|
async
"
>
<ng-container
matColumnDef=
"host"
>
<ng-container
matColumnDef=
"host"
>
<mat-header-cell
*
matHeaderCellDef
translate
>
vip.host
</mat-header-cell>
<mat-header-cell
*
matHeaderCellDef
translate
>
vip.host
</mat-header-cell>
<mat-cell
*
matCellDef=
"let v"
>
{{v.host.firstname v.host.lastname}}
</mat-cell>
<mat-cell
*
matCellDef=
"let v"
>
{{v.host.firstname
}} {{
v.host.lastname}}
</mat-cell>
</ng-container>
</ng-container>
<ng-container
matColumnDef=
"host"
>
<ng-container
matColumnDef=
"host"
>
...
...
code/moya-angular/src/app/modules/viplist/info/
viplist
.component.scss
→
code/moya-angular/src/app/modules/viplist/info/
info-viplist-page
.component.scss
View file @
9afce9d
File moved
code/moya-angular/src/app/modules/viplist/info/
viplist
.component.spec.ts
→
code/moya-angular/src/app/modules/viplist/info/
info-viplist-page
.component.spec.ts
View file @
9afce9d
...
@@ -3,21 +3,21 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';
...
@@ -3,21 +3,21 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import
{
By
}
from
'@angular/platform-browser'
;
import
{
By
}
from
'@angular/platform-browser'
;
import
{
DebugElement
}
from
'@angular/core'
;
import
{
DebugElement
}
from
'@angular/core'
;
import
{
ViplistComponent
}
from
'./viplist
.component'
;
import
{
InfoViplistPageComponent
}
from
'./info-viplist-page
.component'
;
describe
(
'
Viplist
Component'
,
()
=>
{
describe
(
'
InfoViplistPage
Component'
,
()
=>
{
let
component
:
Viplist
Component
;
let
component
:
InfoViplistPage
Component
;
let
fixture
:
ComponentFixture
<
Viplist
Component
>
;
let
fixture
:
ComponentFixture
<
InfoViplistPage
Component
>
;
beforeEach
(
async
(()
=>
{
beforeEach
(
async
(()
=>
{
TestBed
.
configureTestingModule
({
TestBed
.
configureTestingModule
({
declarations
:
[
Viplist
Component
]
declarations
:
[
InfoViplistPage
Component
]
})
})
.
compileComponents
();
.
compileComponents
();
}));
}));
beforeEach
(()
=>
{
beforeEach
(()
=>
{
fixture
=
TestBed
.
createComponent
(
Viplist
Component
);
fixture
=
TestBed
.
createComponent
(
InfoViplistPage
Component
);
component
=
fixture
.
componentInstance
;
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
fixture
.
detectChanges
();
});
});
...
...
code/moya-angular/src/app/modules/viplist/info/
viplist
.component.ts
→
code/moya-angular/src/app/modules/viplist/info/
info-viplist-page
.component.ts
View file @
9afce9d
...
@@ -5,11 +5,11 @@ import {ViplistService} from '../viplist.service';
...
@@ -5,11 +5,11 @@ import {ViplistService} from '../viplist.service';
@
Component
({
@
Component
({
selector
:
'moya-viplist'
,
selector
:
'moya-viplist'
,
templateUrl
:
'./
viplist
.component.html'
,
templateUrl
:
'./
info-viplist-page
.component.html'
,
styleUrls
:
[
'./
viplist
.component.scss'
],
styleUrls
:
[
'./
info-viplist-page
.component.scss'
],
providers
:
[
ViplistService
]
providers
:
[
ViplistService
]
})
})
export
class
Viplist
Component
implements
OnInit
{
export
class
InfoViplistPage
Component
implements
OnInit
{
vips
:
Observable
<
Array
<
Vip
>>
;
vips
:
Observable
<
Array
<
Vip
>>
;
...
...
code/moya-angular/src/app/pages/info/info-routing.module.ts
View file @
9afce9d
import
{
ViplistComponent
}
from
'../../modules/viplist/info/viplist
.component'
;
import
{
InfoViplistPageComponent
}
from
'../../modules/viplist/info/info-viplist-page
.component'
;
import
{
OldMoyaComponent
}
from
'./../old-moya/old-moya.component'
;
import
{
OldMoyaComponent
}
from
'./../old-moya/old-moya.component'
;
import
{
InfoMenuComponent
}
from
'./../../menu/info-menu/info-menu.component'
;
import
{
InfoMenuComponent
}
from
'./../../menu/info-menu/info-menu.component'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
NgModule
}
from
'@angular/core'
;
...
@@ -9,7 +9,7 @@ const routes: Routes = [
...
@@ -9,7 +9,7 @@ const routes: Routes = [
{
path
:
''
,
component
:
InfoMenuComponent
,
outlet
:
'left-menu'
},
{
path
:
''
,
component
:
InfoMenuComponent
,
outlet
:
'left-menu'
},
{
path
:
''
,
pathMatch
:
'full'
,
component
:
OldMoyaComponent
},
{
path
:
''
,
pathMatch
:
'full'
,
component
:
OldMoyaComponent
},
{
path
:
'old'
,
component
:
OldMoyaComponent
},
{
path
:
'old'
,
component
:
OldMoyaComponent
},
{
path
:
'viplist'
,
component
:
Viplist
Component
}
{
path
:
'viplist'
,
component
:
InfoViplistPage
Component
}
];
];
@
NgModule
({
@
NgModule
({
...
...
code/moya-angular/src/app/pages/info/info.module.ts
View file @
9afce9d
import
{
ViplistComponent
}
from
'../../modules/viplist/info/viplist.component'
;
import
{
OldMoyaModule
}
from
'./../old-moya/old-moya.module'
;
import
{
OldMoyaModule
}
from
'./../old-moya/old-moya.module'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
CommonModule
}
from
'@angular/common'
;
import
{
CommonModule
}
from
'@angular/common'
;
...
@@ -14,7 +13,7 @@ import { LeftMenuModule } from '../../menu/left-menu/left-menu.module';
...
@@ -14,7 +13,7 @@ import { LeftMenuModule } from '../../menu/left-menu/left-menu.module';
LeftMenuModule
,
LeftMenuModule
,
OldMoyaModule
OldMoyaModule
],
],
declarations
:
[
InfoComponent
,
InfoMenuComponent
,
ViplistComponent
]
declarations
:
[
InfoComponent
,
InfoMenuComponent
]
})
})
export
class
InfoModule
{
}
export
class
InfoModule
{
}
code/moya-angular/src/app/pages/login/login.module.ts
View file @
9afce9d
...
@@ -2,13 +2,12 @@ import { LoginRoutingModule } from './login-routing.module';
...
@@ -2,13 +2,12 @@ import { LoginRoutingModule } from './login-routing.module';
import
{
NgModule
}
from
'@angular/core'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
CommonModule
}
from
'@angular/common'
;
import
{
CommonModule
}
from
'@angular/common'
;
import
{
LoginComponent
}
from
'./login.component'
;
import
{
LoginComponent
}
from
'./login.component'
;
import
{
TopMenuComponent
}
from
'../../menu/top-menu/top-menu.component'
;
@
NgModule
({
@
NgModule
({
imports
:
[
imports
:
[
CommonModule
,
CommonModule
,
LoginRoutingModule
LoginRoutingModule
],
],
declarations
:
[
LoginComponent
,
TopMenuComponent
]
declarations
:
[
LoginComponent
]
})
})
export
class
LoginModule
{
}
export
class
LoginModule
{
}
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