Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
backoffice_client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
Factory
LLLE_Project
backoffice_client
Commits
ff475dc9
Commit
ff475dc9
authored
3 years ago
by
Guilhem CARRON
Browse files
Options
Downloads
Patches
Plain Diff
Remove Logs + fix padding
parent
1d17ece2
No related branches found
Branches containing commit
No related tags found
2 merge requests
!7
feat: add front office
,
!5
Https test
Pipeline
#15449
passed
3 years ago
Stage: build
Stage: quality
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/components/Layout/layout.module.scss
+2
-2
2 additions, 2 deletions
src/components/Layout/layout.module.scss
src/components/Login/login.scss
+1
-0
1 addition, 0 deletions
src/components/Login/login.scss
src/hooks/useAuth.ts
+1
-4
1 addition, 4 deletions
src/hooks/useAuth.ts
with
4 additions
and
6 deletions
src/components/Layout/layout.module.scss
+
2
−
2
View file @
ff475dc9
...
...
@@ -14,7 +14,7 @@
height
:
100vh
;
z-index
:
1501
;
@media
screen
and
(
max-width
:
$width-
phone
)
{
@media
screen
and
(
max-width
:
$width-
tablet
)
{
width
:
0
;
display
:
none
;
}
...
...
@@ -35,7 +35,7 @@
box-shadow
:
0px
5px
5px
rgb
(
0
0
0
/
20%
)
,
0px
3px
14px
rgb
(
0
0
0
/
12%
)
,
0px
8px
10px
rgb
(
0
0
0
/
14%
);
background
:
$dark-light
;
@media
screen
and
(
max-width
:
$width-
phone
)
{
@media
screen
and
(
max-width
:
$width-
tablet
)
{
margin-left
:
0
;
padding-bottom
:
$navbar-height
;
}
...
...
This diff is collapsed.
Click to expand it.
src/components/Login/login.scss
+
1
−
0
View file @
ff475dc9
...
...
@@ -5,5 +5,6 @@
min-height
:
95vh
;
.container
{
margin
:
auto
;
padding
:
2rem
;
}
}
This diff is collapsed.
Click to expand it.
src/hooks/useAuth.ts
+
1
−
4
View file @
ff475dc9
...
...
@@ -18,9 +18,7 @@ export const useAuth = (): Auth => {
//login user
const
loginUser
=
async
():
Promise
<
void
>
=>
{
try
{
const
tmp
=
await
axios
.
get
(
`
${
_apiUrl
}
OAuth2Login`
,
{
withCredentials
:
true
})
console
.
log
(
'
lAAAAAA
'
)
console
.
log
(
tmp
)
await
axios
.
get
(
`
${
_apiUrl
}
OAuth2Login`
,
{
withCredentials
:
true
})
await
setUserContext
()
}
catch
(
e
)
{
setError
(
e
)
...
...
@@ -44,7 +42,6 @@ export const useAuth = (): Auth => {
})
if
(
data
&&
setUser
)
{
setUser
(
data
)
console
.
log
(
'
usertoContext
'
,
data
)
history
.
push
(
'
/editing
'
)
}
}
catch
(
e
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment