Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Automatically-Generated-Cyber-Security-Compliance-Engine
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
jda1g15
Automatically-Generated-Cyber-Security-Compliance-Engine
Commits
52fa4db1
Commit
52fa4db1
authored
5 years ago
by
James D'Alton
Browse files
Options
Downloads
Patches
Plain Diff
Removed home page
parent
01c060a1
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
compforge/src/App.js
+23
-5
23 additions, 5 deletions
compforge/src/App.js
compforge/src/Components/AppHeader.react.jsx
+4
-4
4 additions, 4 deletions
compforge/src/Components/AppHeader.react.jsx
compforge/src/Components/Login.react.jsx
+1
-1
1 addition, 1 deletion
compforge/src/Components/Login.react.jsx
with
28 additions
and
10 deletions
compforge/src/App.js
+
23
−
5
View file @
52fa4db1
...
@@ -7,7 +7,7 @@ import ProtectedRoute from "./Components/ProtectedRoute.react";
...
@@ -7,7 +7,7 @@ import ProtectedRoute from "./Components/ProtectedRoute.react";
// Presentational Components
// Presentational Components
import
AppHeader
from
"
./Components/AppHeader.react
"
;
import
AppHeader
from
"
./Components/AppHeader.react
"
;
import
HomePage
from
"
./Components/HomePage.react
"
;
//
import HomePage from "./Components/HomePage.react";
import
Login
from
"
./Components/Login.react
"
;
import
Login
from
"
./Components/Login.react
"
;
import
UserDashboard
from
"
./Components/UserDashboard.react
"
;
import
UserDashboard
from
"
./Components/UserDashboard.react
"
;
import
Signup
from
"
./Components/Signup.react
"
;
import
Signup
from
"
./Components/Signup.react
"
;
...
@@ -21,12 +21,30 @@ function App(props) {
...
@@ -21,12 +21,30 @@ function App(props) {
<
div
className
=
"
rootApp
"
style
=
{{
maxWidth
:
1200
,
margin
:
'
16px auto auto
'
}}
>
<
div
className
=
"
rootApp
"
style
=
{{
maxWidth
:
1200
,
margin
:
'
16px auto auto
'
}}
>
<
AppHeader
isAuthenticated
=
{
isAuthenticated
}
isVerifying
=
{
isVerifying
}
/
>
<
AppHeader
isAuthenticated
=
{
isAuthenticated
}
isVerifying
=
{
isVerifying
}
/
>
<
Switch
>
<
Switch
>
<
ProtectedRoute
exact
path
=
'
/userhome
'
component
=
{()
=>
{
return
(
<
UserDashboard
user
=
{
user
?
user
:
false
}
/>
)
}} isAuthenticated={isAuthenticated} isVerifying={isVerifying} ></
ProtectedRoute
>
<
ProtectedRoute
<
ProtectedRoute
exact
path
=
'
/mysubmissions
'
component
=
{()
=>
{
return
(
<
SubsScreen
mySubs
=
{
true
}
user
=
{
user
?
user
:
false
}
/>
)
}} isAuthenticated={isAuthenticated} isVerifying={isVerifying} ></
ProtectedRoute
>
exact
path
=
'
/
'
<
ProtectedRoute
exact
path
=
'
/partnerssubmissions
'
component
=
{()
=>
{
return
(
<
SubsScreen
mySubs
=
{
false
}
user
=
{
user
?
user
:
false
}
/>
)
}} isAuthenticated={isAuthenticated} isVerifying={isVerifying} ></
ProtectedRoute
>
component
=
{()
=>
{
return
(
<
UserDashboard
user
=
{
user
?
user
:
false
}
/>
)
}
}
isAuthenticated
=
{
isAuthenticated
}
isVerifying
=
{
isVerifying
}
>
<
/ProtectedRoute
>
<
ProtectedRoute
exact
path
=
'
/mysubmissions
'
component
=
{()
=>
{
return
(
<
SubsScreen
mySubs
=
{
true
}
user
=
{
user
?
user
:
false
}
/>
)
}
}
isAuthenticated
=
{
isAuthenticated
}
isVerifying
=
{
isVerifying
}
>
<
/ProtectedRoute
>
<
ProtectedRoute
exact
path
=
'
/partnerssubmissions
'
component
=
{()
=>
{
return
(
<
SubsScreen
mySubs
=
{
false
}
user
=
{
user
?
user
:
false
}
/>
)
}
}
isAuthenticated
=
{
isAuthenticated
}
isVerifying
=
{
isVerifying
}
>
<
/ProtectedRoute
>
<
Route
path
=
"
/login
"
component
=
{
Login
}
/
>
<
Route
path
=
"
/login
"
component
=
{
Login
}
/
>
<
Route
path
=
"
/signup
"
component
=
{
Signup
}
/
>
<
Route
path
=
"
/signup
"
component
=
{
Signup
}
/
>
<
Route
path
=
"
/
"
component
=
{()
=><
HomePage
isAuthenticated
=
{
isAuthenticated
}
/>} /
>
<
/Switch
>
<
/Switch
>
<
/div
>
<
/div
>
);
);
...
...
This diff is collapsed.
Click to expand it.
compforge/src/Components/AppHeader.react.jsx
+
4
−
4
View file @
52fa4db1
...
@@ -91,7 +91,7 @@ const AppHeader = (props) => {
...
@@ -91,7 +91,7 @@ const AppHeader = (props) => {
let
{
user
}
=
props
;
let
{
user
}
=
props
;
let
{
isAdmin
}
=
props
;
let
{
isAdmin
}
=
props
;
const
[
open
,
setOpen
]
=
React
.
useState
(
tru
e
);
const
[
open
,
setOpen
]
=
React
.
useState
(
fals
e
);
const
[
openModal
,
setOpenModal
]
=
React
.
useState
(
false
);
const
[
openModal
,
setOpenModal
]
=
React
.
useState
(
false
);
const
toggleModalState
=
()
=>
{
const
toggleModalState
=
()
=>
{
...
@@ -114,7 +114,7 @@ const AppHeader = (props) => {
...
@@ -114,7 +114,7 @@ const AppHeader = (props) => {
<
MenuIcon
/>
<
span
style
=
{
{
marginLeft
:
8
,
fontSize
:
16
}
}
>
Menu
</
span
>
<
MenuIcon
/>
<
span
style
=
{
{
marginLeft
:
8
,
fontSize
:
16
}
}
>
Menu
</
span
>
</
IconButton
>
</
IconButton
>
<
div
style
=
{
{
margin
:
"
auto
"
,
position
:
'
relative
'
,
left
:
isAuthenticated
?
10
:
56
}
}
>
<
div
style
=
{
{
margin
:
"
auto
"
,
position
:
'
relative
'
,
left
:
isAuthenticated
?
10
:
56
}
}
>
<
Link
to
=
{
isAuthenticated
?
'
/
userhome
'
:
'
/
'
}
style
=
{
{
textDecoration
:
'
none
'
,
color
:
'
white
'
,
cursor
:
'
pointer
'
}
}
>
<
Link
to
=
{
isAuthenticated
?
'
/
'
:
'
/
'
}
style
=
{
{
textDecoration
:
'
none
'
,
color
:
'
white
'
,
cursor
:
'
pointer
'
}
}
>
<
Typography
variant
=
"h6"
className
=
{
classes
.
title
}
>
<
Typography
variant
=
"h6"
className
=
{
classes
.
title
}
>
CompForge
CompForge
</
Typography
>
</
Typography
>
...
@@ -129,8 +129,8 @@ const AppHeader = (props) => {
...
@@ -129,8 +129,8 @@ const AppHeader = (props) => {
</
Link
>
}
</
Link
>
}
</
Toolbar
>
</
Toolbar
>
</
AppBar
>
</
AppBar
>
<
AppMenu
<
AppMenu
toggleModalState
=
{
toggleModalState
}
toggleModalState
=
{
toggleModalState
}
logout
=
{
logout
}
logout
=
{
logout
}
isAdmin
=
{
isAuthenticated
&&
isAdmin
}
isAdmin
=
{
isAuthenticated
&&
isAdmin
}
isAuthenticated
=
{
isAuthenticated
}
isAuthenticated
=
{
isAuthenticated
}
...
...
This diff is collapsed.
Click to expand it.
compforge/src/Components/Login.react.jsx
+
1
−
1
View file @
52fa4db1
...
@@ -88,7 +88,7 @@ const Login = (props) => {
...
@@ -88,7 +88,7 @@ const Login = (props) => {
}
}
if
(
isAuthenticated
)
{
if
(
isAuthenticated
)
{
return
<
Redirect
to
=
"/
userhome
"
/>;
return
<
Redirect
to
=
"/"
/>;
}
}
return
(<
Container
component
=
"main"
style
=
{
{
marginBottom
:
100
,
paddingLeft
:
0
,
paddingRight
:
0
}
}
maxWidth
=
"xs"
>
return
(<
Container
component
=
"main"
style
=
{
{
marginBottom
:
100
,
paddingLeft
:
0
,
paddingRight
:
0
}
}
maxWidth
=
"xs"
>
...
...
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