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
1de125ca
Commit
1de125ca
authored
Dec 29, 2020
by
Dennis Willers
🏀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change Router Logik
Prepare Tabu.csv for MariaDB
parent
c6123ac8
Pipeline
#286
passed with stages
in 5 minutes and 27 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
7 deletions
+20
-7
Tabu.csv
Tabu.csv
+3
-2
app-routing.module.ts
src/app/app-routing.module.ts
+14
-2
overview.component.ts
src/app/overview/overview.component.ts
+1
-1
select-game.component.ts
src/app/select-game/select-game.component.ts
+2
-2
No files found.
Tabu.csv
View file @
1de125ca
1;Elefant;Rüssel;Dickhäuter;Tier;Afrika;grau
RoundID;Solution;Tabu1;Tabu2;Tabu3;Tabu4;Tabu5
1;Elefant;Rüssel;Dickhäuter;Tier;Afrika;grau
2;Küche;Koch;Essen;Kühlschrank;Herd;Arbeitsplatte
2;Küche;Koch;Essen;Kühlschrank;Herd;Arbeitsplatte
3;Taschengeld;Ausgeben;Sparen;Jacke;Euro;Eltern
3;Taschengeld;Ausgeben;Sparen;Jacke;Euro;Eltern
4;Schwimmen;Sport;Verein;Wasser;Baden;Kraul
4;Schwimmen;Sport;Verein;Wasser;Baden;Kraul
...
@@ -72,4 +73,4 @@
...
@@ -72,4 +73,4 @@
72;Google;Suchmaschine;Internet;nachgucken;suchen;Bing
72;Google;Suchmaschine;Internet;nachgucken;suchen;Bing
73;Klavier;Musik;Instrument;Spielen;Tasten;Noten
73;Klavier;Musik;Instrument;Spielen;Tasten;Noten
74;Medizin;Mittel;Tablette;Saft;Arzt;studieren
74;Medizin;Mittel;Tablette;Saft;Arzt;studieren
75;vier;Zahl;drei;zwei;fünf;Nummer
75;vier;Zahl;drei;zwei;fünf;Nummer
\ No newline at end of file
src/app/app-routing.module.ts
View file @
1de125ca
...
@@ -7,11 +7,23 @@ import {GameComponent} from './game/game.component';
...
@@ -7,11 +7,23 @@ import {GameComponent} from './game/game.component';
const
routes
:
Routes
=
[
const
routes
:
Routes
=
[
{
{
path
:
'
game/:sessionName/overview
'
,
path
:
'
:sessionName
'
,
component
:
OverviewComponent
,
component
:
OverviewComponent
,
},
},
{
{
path
:
'
game
'
,
path
:
'
:sessionName/:team
'
,
component
:
OverviewComponent
,
},
{
path
:
'
:sessionName/:team/watchdog
'
,
component
:
GameComponent
,
},
{
path
:
'
:sessionName/:team/explainer
'
,
component
:
GameComponent
,
},
{
path
:
'
:sessionName/:team/guesser
'
,
component
:
GameComponent
,
component
:
GameComponent
,
},
},
{
{
...
...
src/app/overview/overview.component.ts
View file @
1de125ca
...
@@ -13,6 +13,6 @@ export class OverviewComponent implements OnInit {
...
@@ -13,6 +13,6 @@ export class OverviewComponent implements OnInit {
ngOnInit
():
void
{
ngOnInit
():
void
{
}
}
startGame
():
void
{
startGame
():
void
{
this
.
router
.
navigate
([
'
/game
'
]);
this
.
router
.
navigate
([
this
.
router
.
url
+
'
/red/watchdog
'
]);
}
}
}
}
src/app/select-game/select-game.component.ts
View file @
1de125ca
...
@@ -28,7 +28,7 @@ export class SelectGameComponent implements OnInit {
...
@@ -28,7 +28,7 @@ export class SelectGameComponent implements OnInit {
console
.
log
(
value
);
console
.
log
(
value
);
const
status
=
JSON
.
parse
(
value
.
status
);
const
status
=
JSON
.
parse
(
value
.
status
);
if
(
status
)
{
if
(
status
)
{
this
.
router
.
navigate
([
'
/game/
'
+
spielname
+
'
/overview
'
]);
this
.
router
.
navigate
([
spielname
]);
}
}
}).
catch
(
reason
=>
{
}).
catch
(
reason
=>
{
console
.
log
(
reason
);
console
.
log
(
reason
);
...
@@ -37,7 +37,7 @@ export class SelectGameComponent implements OnInit {
...
@@ -37,7 +37,7 @@ export class SelectGameComponent implements OnInit {
}
}
joinGame
(
spielname
:
string
):
void
{
joinGame
(
spielname
:
string
):
void
{
this
.
router
.
navigate
([
'
/game/
'
+
spielname
+
'
/overview
'
]);
this
.
router
.
navigate
([
spielname
]);
}
}
keyPressAlphaNumeric
(
event
:
KeyboardEvent
):
boolean
{
keyPressAlphaNumeric
(
event
:
KeyboardEvent
):
boolean
{
...
...
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