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 68d5fa20
authored
Mar 31, 2018
by
Emil Holsti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eventList init
1 parent
1fa9a0fe
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
49 additions
and
7 deletions
code/moya-management-portal/package-lock.json
code/moya-management-portal/package.json
code/moya-management-portal/src/app/app.component.html
code/moya-management-portal/src/app/organization/event-list/event-list.component.html
code/moya-management-portal/src/app/organization/event-list/event-list.component.scss
code/moya-management-portal/src/app/organization/event-list/event-list.component.ts
code/moya-management-portal/src/app/organization/organization.module.ts
code/moya-management-portal/package-lock.json
View file @
68d5fa2
...
@@ -68,6 +68,14 @@
...
@@ -68,6 +68,14 @@
"tslib"
:
"1.9.0"
"tslib"
:
"1.9.0"
}
}
},
},
"@angular/cdk"
:
{
"version"
:
"5.2.4"
,
"resolved"
:
"https://registry.npmjs.org/@angular/cdk/-/cdk-5.2.4.tgz"
,
"integrity"
:
"sha1-wKQpqHENj+2xV/VG4hy0nUM19/c="
,
"requires"
:
{
"tslib"
:
"1.9.0"
}
},
"@angular/cli"
:
{
"@angular/cli"
:
{
"version"
:
"1.7.3"
,
"version"
:
"1.7.3"
,
"resolved"
:
"https://registry.npmjs.org/@angular/cli/-/cli-1.7.3.tgz"
,
"resolved"
:
"https://registry.npmjs.org/@angular/cli/-/cli-1.7.3.tgz"
,
...
@@ -201,6 +209,14 @@
...
@@ -201,6 +209,14 @@
"integrity"
:
"sha512-aaLnGpW9NBDkG0JYqUeGc+al1Jd1CY9yrs3mew53x5nByetQbIdZwpYm1hnSTw7LBEZBxfHTMw5EZD2YYTDmJw=="
,
"integrity"
:
"sha512-aaLnGpW9NBDkG0JYqUeGc+al1Jd1CY9yrs3mew53x5nByetQbIdZwpYm1hnSTw7LBEZBxfHTMw5EZD2YYTDmJw=="
,
"dev"
:
true
"dev"
:
true
},
},
"@angular/material"
:
{
"version"
:
"5.2.4"
,
"resolved"
:
"https://registry.npmjs.org/@angular/material/-/material-5.2.4.tgz"
,
"integrity"
:
"sha1-noI3mDJCg9I+qDkVb6xby3NEPVU="
,
"requires"
:
{
"tslib"
:
"1.9.0"
}
},
"@angular/platform-browser"
:
{
"@angular/platform-browser"
:
{
"version"
:
"5.2.9"
,
"version"
:
"5.2.9"
,
"resolved"
:
"https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-5.2.9.tgz"
,
"resolved"
:
"https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-5.2.9.tgz"
,
...
...
code/moya-management-portal/package.json
View file @
68d5fa2
...
@@ -13,12 +13,14 @@
...
@@ -13,12 +13,14 @@
},
},
"private"
:
true
,
"private"
:
true
,
"dependencies"
:
{
"dependencies"
:
{
"@angular/animations"
:
"^5.2.0"
,
"@angular/animations"
:
"^5.2.9"
,
"@angular/cdk"
:
"^5.2.4"
,
"@angular/common"
:
"^5.2.0"
,
"@angular/common"
:
"^5.2.0"
,
"@angular/compiler"
:
"^5.2.0"
,
"@angular/compiler"
:
"^5.2.0"
,
"@angular/core"
:
"^5.2.0"
,
"@angular/core"
:
"^5.2.0"
,
"@angular/forms"
:
"^5.2.0"
,
"@angular/forms"
:
"^5.2.0"
,
"@angular/http"
:
"^5.2.0"
,
"@angular/http"
:
"^5.2.0"
,
"@angular/material"
:
"^5.2.4"
,
"@angular/platform-browser"
:
"^5.2.0"
,
"@angular/platform-browser"
:
"^5.2.0"
,
"@angular/platform-browser-dynamic"
:
"^5.2.0"
,
"@angular/platform-browser-dynamic"
:
"^5.2.0"
,
"@angular/router"
:
"^5.2.0"
,
"@angular/router"
:
"^5.2.0"
,
...
...
code/moya-management-portal/src/app/app.component.html
View file @
68d5fa2
...
@@ -5,4 +5,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em0xNyA4My4zaC0zNGwxNy00MC45IDE3IDQwLjl6IiAvPgogIDwvc3ZnPg=="
>
</div>
</div>
<moya-organization-list></moya-organization-list>
<moya-event-list></moya-event-list>
\ No newline at end of file
\ No newline at end of file
code/moya-management-portal/src/app/organization/event-list/event-list.component.html
View file @
68d5fa2
<p>
<mat-card
*
ngFor=
"let event of events"
style=
"width:40%;margin:1em;"
>
event-list works!
<mat-card-title>
{{event.title}}
</mat-card-title>
</p>
<mat-card-subtitle>
{{event.date}}
</mat-card-subtitle>
<mat-card-actions>
<button
mat-raised-button
color=
"primary"
(
click
)="
onClick
()"
style=
"float:right;margin-top:-5em;margin-right:1em;"
>
Edit
</button>
</mat-card-actions>
</mat-card>
\ No newline at end of file
code/moya-management-portal/src/app/organization/event-list/event-list.component.scss
View file @
68d5fa2
@import
"~@angular/material/prebuilt-themes/indigo-pink.css"
;
\ No newline at end of file
code/moya-management-portal/src/app/organization/event-list/event-list.component.ts
View file @
68d5fa2
...
@@ -7,8 +7,19 @@ import { Component, OnInit } from '@angular/core';
...
@@ -7,8 +7,19 @@ import { Component, OnInit } from '@angular/core';
})
})
export
class
EventListComponent
implements
OnInit
{
export
class
EventListComponent
implements
OnInit
{
public
events
=
[
{
title
:
'Assembly Winter 18'
,
date
:
'1.2.2018 - 3.2.2018'
},
{
title
:
'Assembly Summer 18'
,
date
:
'1.2.2018 - 3.2.2018'
},
{
title
:
'Assembly Winter 19'
,
date
:
'1.2.2018 - 3.2.2018'
},
{
title
:
'Assembly Summer 19'
,
date
:
'1.2.2018 - 3.2.2018'
}
];
constructor
()
{
}
constructor
()
{
}
onClick
()
{
console
.
log
(
'Nappitoimii'
);
}
ngOnInit
()
{
ngOnInit
()
{
}
}
...
...
code/moya-management-portal/src/app/organization/organization.module.ts
View file @
68d5fa2
...
@@ -3,10 +3,16 @@ import { CommonModule } from '@angular/common';
...
@@ -3,10 +3,16 @@ import { CommonModule } from '@angular/common';
import
{
NewOrganizationComponent
}
from
'./new-organization/new-organization.component'
;
import
{
NewOrganizationComponent
}
from
'./new-organization/new-organization.component'
;
import
{
OrganizationListComponent
}
from
'./organization-list/organization-list.component'
;
import
{
OrganizationListComponent
}
from
'./organization-list/organization-list.component'
;
import
{
EventListComponent
}
from
'./event-list/event-list.component'
;
import
{
EventListComponent
}
from
'./event-list/event-list.component'
;
import
{
BrowserAnimationsModule
}
from
'@angular/platform-browser/animations'
;
import
{
MatCardModule
}
from
'@angular/material/card'
;
import
{
MatButtonModule
}
from
'@angular/material'
;
@
NgModule
({
@
NgModule
({
imports
:
[
imports
:
[
CommonModule
CommonModule
,
BrowserAnimationsModule
,
MatCardModule
,
MatButtonModule
],
],
declarations
:
[
NewOrganizationComponent
,
OrganizationListComponent
,
EventListComponent
],
declarations
:
[
NewOrganizationComponent
,
OrganizationListComponent
,
EventListComponent
],
exports
:
[
NewOrganizationComponent
,
OrganizationListComponent
,
EventListComponent
],
exports
:
[
NewOrganizationComponent
,
OrganizationListComponent
,
EventListComponent
],
...
...
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