Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
addcpm-json
Project
Project
Details
Activity
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Александр Чаплыгин
addcpm-json
Commits
232ebb9f
Commit
232ebb9f
authored
May 14, 2018
by
DevOps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Добавил редирект на 404-ю стр.
parent
41a89680
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
index.js
src/public/js/react/site/index.js
+11
-0
No files found.
src/public/js/react/site/index.js
View file @
232ebb9f
...
@@ -86,6 +86,14 @@ const Home = () => (
...
@@ -86,6 +86,14 @@ const Home = () => (
)
)
const
My404Component
=
()
=>
(
<
div
>
<
h1
>
Welcome
to
404
!<
/h1>
<
h1
>
Page
not
found
<
/h1>
<
/div>
)
const
SiteForm
=
()
=>
(
const
SiteForm
=
()
=>
(
<
div
className
=
"site"
>
<
div
className
=
"site"
>
<
h2
>
Технические
данные
<
/h2>
<
h2
>
Технические
данные
<
/h2>
...
@@ -191,6 +199,9 @@ const Main = () => (
...
@@ -191,6 +199,9 @@ const Main = () => (
<
PrivateRoute
path
=
'/sites'
component
=
{
Sites
}
/>
<
PrivateRoute
path
=
'/sites'
component
=
{
Sites
}
/>
<
PrivateRoute
path
=
'/site-form'
component
=
{
SiteForm
}
/>
<
PrivateRoute
path
=
'/site-form'
component
=
{
SiteForm
}
/>
<
Route
path
=
"/login"
component
=
{
Login
}
/>
<
Route
path
=
"/login"
component
=
{
Login
}
/>
<
Route
path
=
'/404'
component
=
{
My404Component
}
/>
<
Redirect
from
=
'*'
to
=
'/404'
/>
<
/Switch>
<
/Switch>
<
/div>
<
/div>
<
/section>
<
/section>
...
...
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