Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Tabu
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dennis Willers
Tabu
Commits
7c9f731f
Commit
7c9f731f
authored
Dec 28, 2020
by
Isabell Heider
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update
parent
19cb3fd9
Pipeline
#270
failed with stages
in 5 minutes and 41 seconds
Changes
16
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
171 additions
and
9 deletions
+171
-9
app-routing.module.ts
src/app/app-routing.module.ts
+22
-2
app.component.html
src/app/app.component.html
+2
-2
app.module.ts
src/app/app.module.ts
+7
-1
error.component.html
src/app/error/error.component.html
+10
-0
error.component.scss
src/app/error/error.component.scss
+0
-0
error.component.spec.ts
src/app/error/error.component.spec.ts
+25
-0
error.component.ts
src/app/error/error.component.ts
+14
-0
header.component.html
src/app/header/header.component.html
+4
-0
overview.component.html
src/app/overview/overview.component.html
+32
-0
overview.component.scss
src/app/overview/overview.component.scss
+3
-0
overview.component.spec.ts
src/app/overview/overview.component.spec.ts
+25
-0
overview.component.ts
src/app/overview/overview.component.ts
+15
-0
select-game.component.html
src/app/select-game/select-game.component.html
+3
-3
select-game.component.ts
src/app/select-game/select-game.component.ts
+9
-1
Icon.png
src/assets/Icon.png
+0
-0
background.jpg
src/assets/background.jpg
+0
-0
No files found.
src/app/app-routing.module.ts
View file @
7c9f731f
import
{
NgModule
}
from
'
@angular/core
'
;
import
{
Routes
,
RouterModule
}
from
'
@angular/router
'
;
import
{
OverviewComponent
}
from
'
./overview/overview.component
'
;
import
{
SelectGameComponent
}
from
'
./select-game/select-game.component
'
;
import
{
ErrorComponent
}
from
'
./error/error.component
'
;
const
routes
:
Routes
=
[];
const
routes
:
Routes
=
[
{
path
:
'
overview
'
,
component
:
OverviewComponent
,
},
{
path
:
''
,
component
:
SelectGameComponent
,
},
{
path
:
'
**
'
,
component
:
ErrorComponent
,
}
];
@
NgModule
({
imports
:
[
RouterModule
.
forRoot
(
routes
)],
imports
:
[
RouterModule
.
forRoot
(
routes
,
{
useHash
:
true
,
enableTracing
:
false
,
relativeLinkResolution
:
'
legacy
'
})],
exports
:
[
RouterModule
]
})
export
class
AppRoutingModule
{
}
src/app/app.component.html
View file @
7c9f731f
<div
fxLayout=
"column"
fxFlexFill
style=
"background-
color: #e7e7e7
"
>
<div
fxLayout=
"column"
fxFlexFill
style=
"background-
image: url(/assets/background.jpg)
"
>
<app-header>
</app-header>
<div
fxFlex
>
<
app-select-game></app-select-game
>
<
router-outlet></router-outlet
>
</div>
<app-footer>
<mat-toolbar
color=
"primary"
>
...
...
src/app/app.module.ts
View file @
7c9f731f
...
...
@@ -13,6 +13,9 @@ import {MatButtonModule} from '@angular/material/button';
import
{
MatFormFieldModule
}
from
'
@angular/material/form-field
'
;
import
{
MatInputModule
}
from
'
@angular/material/input
'
;
import
{
MatCardModule
}
from
'
@angular/material/card
'
;
import
{
OverviewComponent
}
from
'
./overview/overview.component
'
;
import
{
ErrorComponent
}
from
'
./error/error.component
'
;
import
{
MatProgressSpinnerModule
}
from
'
@angular/material/progress-spinner
'
;
@
NgModule
({
declarations
:
[
...
...
@@ -20,6 +23,8 @@ import {MatCardModule} from '@angular/material/card';
HeaderComponent
,
FooterComponent
,
SelectGameComponent
,
OverviewComponent
,
ErrorComponent
,
],
imports
:
[
BrowserModule
,
...
...
@@ -30,7 +35,8 @@ import {MatCardModule} from '@angular/material/card';
MatButtonModule
,
MatFormFieldModule
,
MatInputModule
,
MatCardModule
MatCardModule
,
MatProgressSpinnerModule
,
],
providers
:
[],
bootstrap
:
[
AppComponent
]
...
...
src/app/error/error.component.html
0 → 100644
View file @
7c9f731f
<div
style=
"text-align: center; margin-left: 15em; margin-right: 15em; margin-top: 5em;"
>
<h3>
Leider konnte die Seite nicht erreicht werden, bitte überprüfen Sie den Link oder kehren Sie auf die
<a
href=
"router.navigate(['/overview'])"
>
Startseite
</a>
zurück
</h3>
<br>
<mat-progress-spinner
color=
"primary"
mode=
"mode"
value=
"value"
>
</mat-progress-spinner>
</div>
src/app/error/error.component.scss
0 → 100644
View file @
7c9f731f
src/app/error/error.component.spec.ts
0 → 100644
View file @
7c9f731f
import
{
ComponentFixture
,
TestBed
}
from
'
@angular/core/testing
'
;
import
{
ErrorComponent
}
from
'
./error.component
'
;
describe
(
'
ErrorComponent
'
,
()
=>
{
let
component
:
ErrorComponent
;
let
fixture
:
ComponentFixture
<
ErrorComponent
>
;
beforeEach
(
async
()
=>
{
await
TestBed
.
configureTestingModule
({
declarations
:
[
ErrorComponent
]
})
.
compileComponents
();
});
beforeEach
(()
=>
{
fixture
=
TestBed
.
createComponent
(
ErrorComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'
should create
'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
src/app/error/error.component.ts
0 → 100644
View file @
7c9f731f
import
{
Component
,
OnInit
}
from
'
@angular/core
'
;
@
Component
({
selector
:
'
app-error
'
,
templateUrl
:
'
./error.component.html
'
,
styleUrls
:
[
'
./error.component.scss
'
]
})
export
class
ErrorComponent
implements
OnInit
{
constructor
()
{
}
ngOnInit
():
void
{
}
}
src/app/header/header.component.html
View file @
7c9f731f
<mat-toolbar
color=
"primary"
>
<span>
Tabu
</span>
<a
href=
"router.navigate(['/overview'])"
>
<img
style=
"display: inline;"
src=
"./assets/Icon.png"
alt=
"logo"
height=
"30px"
width=
"30"
/>
</a>
</mat-toolbar>
src/app/overview/overview.component.html
0 → 100644
View file @
7c9f731f
<div
style=
"text-align: center; margin-left: 15em; margin-right: 15em; margin-top: 5em;"
>
<h2>
Du spielst in Team rot!
</h2>
<br>
<br>
<br>
<mat-card>
<mat-card-title>
Spielstand
</mat-card-title>
<mat-card-content>
<br>
<center>
<table>
<tr>
<th>
Team rot
</th>
<th>
Team blau
</th>
</tr>
<tr>
<th>
0
</th>
<th>
0
</th>
</tr>
</table>
</center>
</mat-card-content>
<mat-card-actions>
<br>
<br>
<mat-card-title>
Rot ist am Zug:
</mat-card-title>
<br>
<button
mat-raised-button
color=
"primary"
>
Nächste Runde
</button>
<button
mat-raised-button
color=
"primary"
>
Neues Spiel starten
</button>
</mat-card-actions>
</mat-card>
</div>
src/app/overview/overview.component.scss
0 → 100644
View file @
7c9f731f
table
{
width
:
50%
;
}
src/app/overview/overview.component.spec.ts
0 → 100644
View file @
7c9f731f
import
{
ComponentFixture
,
TestBed
}
from
'
@angular/core/testing
'
;
import
{
OverviewComponent
}
from
'
./overview.component
'
;
describe
(
'
OverviewComponent
'
,
()
=>
{
let
component
:
OverviewComponent
;
let
fixture
:
ComponentFixture
<
OverviewComponent
>
;
beforeEach
(
async
()
=>
{
await
TestBed
.
configureTestingModule
({
declarations
:
[
OverviewComponent
]
})
.
compileComponents
();
});
beforeEach
(()
=>
{
fixture
=
TestBed
.
createComponent
(
OverviewComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'
should create
'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
src/app/overview/overview.component.ts
0 → 100644
View file @
7c9f731f
import
{
Component
,
OnInit
}
from
'
@angular/core
'
;
@
Component
({
selector
:
'
app-overview
'
,
templateUrl
:
'
./overview.component.html
'
,
styleUrls
:
[
'
./overview.component.scss
'
]
})
export
class
OverviewComponent
implements
OnInit
{
constructor
()
{
}
ngOnInit
():
void
{
}
}
src/app/select-game/select-game.component.html
View file @
7c9f731f
...
...
@@ -6,18 +6,18 @@
<br>
<mat-card>
<mat-card-title>
Spielsuche
</mat-card-title>
<mat-card-subtitle>
Finde
oder erstelle ein Spiel über den Spielnamen
</mat-card-subtitle>
<mat-card-subtitle>
Finde
ein Spiel über den Spielnamen oder erstelle ein neues
</mat-card-subtitle>
<mat-card-content>
<form>
<mat-form-field>
<mat-label>
Spielname
</mat-label>
<input
type=
"text"
matInput
>
<input
type=
"text"
pattern=
"[0-9A-Za-z]*"
matInput
>
</mat-form-field>
</form>
</mat-card-content>
<mat-card-actions>
<button
mat-raised-button
color=
"primary"
>
Spiel erstellen
</button>
<button
mat-raised-button
color=
"primary"
>
Spiel beitreten
</button>
<button
mat-raised-button
color=
"primary"
(click)=
"joinGame($event)"
>
Spiel beitreten
</button>
</mat-card-actions>
</mat-card>
</div>
src/app/select-game/select-game.component.ts
View file @
7c9f731f
import
{
Component
,
OnInit
}
from
'
@angular/core
'
;
import
{
Router
}
from
'
@angular/router
'
;
@
Component
({
selector
:
'
app-select-game
'
,
...
...
@@ -7,9 +8,16 @@ import { Component, OnInit } from '@angular/core';
})
export
class
SelectGameComponent
implements
OnInit
{
constructor
()
{
}
constructor
(
private
router
:
Router
)
{
}
ngOnInit
():
void
{
}
getSpielname
(
event
:
any
):
void
{
event
.
target
.
value
;
}
joinGame
(
event
:
any
):
void
{
this
.
router
.
navigate
([
'
/overview
'
]);
}
}
src/assets/Icon.png
View replaced file @
19cb3fd9
View file @
7c9f731f
119 KB
|
W:
|
H:
297 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/background.jpg
0 → 100644
View file @
7c9f731f
54.2 KB
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