Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dashboard
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
red-giant
dashboard
Commits
abdce615
Verified
Commit
abdce615
authored
3 years ago
by
Defendi Alberto
Browse files
Options
Downloads
Patches
Plain Diff
Move api in lower folder for better structure.
parent
0b17562d
No related branches found
No related tags found
2 merge requests
!56
Refined auth flow and new website pages.
,
!42
Feature/registration
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/App.tsx
+5
-5
5 additions, 5 deletions
src/App.tsx
src/api/PrivateRoute/PrivateRoute.tsx
+1
-1
1 addition, 1 deletion
src/api/PrivateRoute/PrivateRoute.tsx
src/api/routes.ts
+0
-0
0 additions, 0 deletions
src/api/routes.ts
src/api/userRoles.ts
+0
-0
0 additions, 0 deletions
src/api/userRoles.ts
with
6 additions
and
6 deletions
src/App.tsx
+
5
−
5
View file @
abdce615
...
@@ -3,11 +3,11 @@ import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
...
@@ -3,11 +3,11 @@ import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
import
{
HomePage
}
from
'
components/AuthUser/HomePage/HomePage
'
;
import
{
HomePage
}
from
'
components/AuthUser/HomePage/HomePage
'
;
import
{
AuthUser
}
from
'
components/AuthUser/AuthUser
'
;
import
{
AuthUser
}
from
'
components/AuthUser/AuthUser
'
;
import
{
LandingPage
}
from
'
components/NonAuthUser/LandingPage/LandingPage
'
;
import
{
LandingPage
}
from
'
components/NonAuthUser/LandingPage/LandingPage
'
;
import
{
PrivateRoute
}
from
'
components/
api/PrivateRoute/PrivateRoute
'
;
import
{
PrivateRoute
}
from
'
api/PrivateRoute/PrivateRoute
'
;
import
{
AuthRoutes
,
NonAuthRoutes
}
from
'
components/
api/routes
'
;
import
{
AuthRoutes
,
NonAuthRoutes
}
from
'
api/routes
'
;
import
{
NotFound
}
from
'
components/NonAuthUser/NotFound/NotFound
'
;
import
{
NotFound
}
from
'
components/NonAuthUser/NotFound/NotFound
'
;
import
{
ProfilePage
}
from
'
components/ProfilePage/ProfilePage
'
;
import
{
ProfilePage
}
from
'
components/
AuthUser/
ProfilePage/ProfilePage
'
;
import
{
Roles
}
from
'
components/
api/userRoles
'
;
import
{
Roles
}
from
'
api/userRoles
'
;
import
{
Unauthorized
}
from
'
components/NonAuthUser/Unauthorized/Unauthorized
'
;
import
{
Unauthorized
}
from
'
components/NonAuthUser/Unauthorized/Unauthorized
'
;
import
axios
from
'
axios
'
;
import
axios
from
'
axios
'
;
...
@@ -30,7 +30,7 @@ export const App: FC = () => {
...
@@ -30,7 +30,7 @@ export const App: FC = () => {
return
null
;
return
null
;
};
};
if
(
!
isCookieFetched
)
fetchCookie
();
if
(
!
isCookieFetched
)
fetchCookie
();
},
[]);
},
[
isCookieFetched
]);
return
(
return
(
<
Router
>
<
Router
>
...
...
This diff is collapsed.
Click to expand it.
src/
components/
api/PrivateRoute/PrivateRoute.tsx
→
src/api/PrivateRoute/PrivateRoute.tsx
+
1
−
1
View file @
abdce615
import
React
,
{
useState
,
useEffect
}
from
'
react
'
;
import
React
,
{
useState
,
useEffect
}
from
'
react
'
;
import
axios
from
'
axios
'
;
import
axios
from
'
axios
'
;
import
{
Route
,
Redirect
,
RouteProps
}
from
'
react-router-dom
'
;
import
{
Route
,
Redirect
,
RouteProps
}
from
'
react-router-dom
'
;
import
{
NonAuthRoutes
}
from
'
components/
api/routes
'
;
import
{
NonAuthRoutes
}
from
'
api/routes
'
;
/**
/**
* A wrapper for <Route> that redirects to the login screen if you're not yet authenticated.
* A wrapper for <Route> that redirects to the login screen if you're not yet authenticated.
...
...
This diff is collapsed.
Click to expand it.
src/
components/
api/routes.ts
→
src/api/routes.ts
+
0
−
0
View file @
abdce615
File moved
This diff is collapsed.
Click to expand it.
src/
components/
api/userRoles.ts
→
src/api/userRoles.ts
+
0
−
0
View file @
abdce615
File moved
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