Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
projet-cdaw
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thibaut Felten
projet-cdaw
Commits
59c8a093
Commit
59c8a093
authored
Dec 01, 2020
by
thibaut-felten
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exportChoixpartie
parent
b8ee91b9
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
10 deletions
+48
-10
LoginNavbar.vue
frontend/src/components/LoginNavbar.vue
+5
-3
AdminPrivate.vue
frontend/src/views/AdminPrivate.vue
+13
-1
ChoixPartie.vue
frontend/src/views/ChoixPartie.vue
+13
-1
Inscription.vue
frontend/src/views/Inscription.vue
+6
-0
Login.vue
frontend/src/views/Login.vue
+11
-5
No files found.
frontend/src/components/LoginNavbar.vue
View file @
59c8a093
<
template
>
<nav
class=
"row btn-bar"
>
<button
class=
"btn-login"
>
<router-link
to=
"/inscription"
>
Sign Up
</router-link>
<router-link
to=
"/"
>
Accueil
</router-link>
</button>
<button
class=
"btn-login"
>
<router-link
to=
"/inscription"
>
Sign Up
</router-link>
</button>
<button
class=
"btn-login"
>
<router-link
to=
"/login"
>
Log In
</router-link>
...
...
@@ -27,7 +29,7 @@ export default {
<
style
scoped
>
.btn-bar
{
justify-content
:
flex-end
;
padding
:
0.5
%
;
padding
:
1
%
;
}
a
{
...
...
frontend/src/views/AdminPrivate.vue
View file @
59c8a093
<
template
>
<div
class=
"inscription"
>
<LoginNavbar></LoginNavbar>
<div
class=
"row _centered"
>
<div
class=
"column _600"
>
<form
method=
"post"
class=
"startGame"
>
...
...
@@ -27,3 +28,14 @@
height
:
90%
;
}
</
style
>
<
script
>
export
default
{
name
:
'AdminPartie'
,
components
:
{
LoginNavbar
}
}
import
LoginNavbar
from
'../components/LoginNavbar.vue'
</
script
>
\ No newline at end of file
frontend/src/views/ChoixPartie.vue
View file @
59c8a093
<
template
>
<div
class=
"page"
>
<LoginNavbar></LoginNavbar>
<tr
class=
"espaceHaut"
></tr>
<div
class =
"titre"
>
Veuillez choisir votre type de partie
</div>
<tr
class=
"espaceBas"
></tr>
...
...
@@ -74,3 +75,14 @@
}
</
style
>
<
script
>
export
default
{
name
:
'ChoixPartie'
,
components
:
{
LoginNavbar
}
}
import
LoginNavbar
from
'../components/LoginNavbar.vue'
</
script
>
\ No newline at end of file
frontend/src/views/Inscription.vue
View file @
59c8a093
<
template
>
<div
class=
"inscription"
>
<LoginNavbar></LoginNavbar>
<div
class=
"row _centered"
>
<div
class=
"column _600"
>
<h1>
Inscription
</h1>
...
...
@@ -91,6 +92,9 @@
<
script
>
export
default
{
name
:
'Inscription'
,
components
:
{
LoginNavbar
},
methods
:
{
check
:
function
(){
let
firstname
=
this
.
firstname
...
...
@@ -137,6 +141,8 @@ export default {
}
},
}
import
LoginNavbar
from
'../components/LoginNavbar.vue'
</
script
>
frontend/src/views/Login.vue
View file @
59c8a093
<
template
>
<div
class=
"login"
>
<LoginNavbar></LoginNavbar>
<div
class=
"row _centered"
>
<div
class=
"column _600"
>
<h1>
Login
</h1>
...
...
@@ -64,7 +65,7 @@
justify-content
:
center
;
}
.
inscriptio
n
{
.
logi
n
{
height
:
100%
;
margin
:
0
auto
;
max-width
:
1200px
;
...
...
@@ -93,8 +94,6 @@ export default {
pwd
:
password
}
console
.
log
(
JSON
.
stringify
(
data
))
var
params
=
{
method
:
'POST'
,
...
...
@@ -102,12 +101,19 @@ export default {
fetch
(
url
,
params
)
.
then
(
response
=>
response
.
json
())
.
then
(
data
=>
console
.
log
(
data
))
.
then
(
response
=>
{
sessionStorage
.
setItem
(
"JWT_TOKEN"
,
response
.
data
.
jwt_token
)
console
.
log
(
sessionStorage
.
getItem
(
"JWT_TOKEN"
))
})
}
},
components
:
{
LoginNavbar
},
}
import
LoginNavbar
from
'../components/LoginNavbar.vue'
</
script
>
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