Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
Today KU
Commits
753429a6
Commit
753429a6
authored
Oct 04, 2021
by
Choi Ga Young
Browse files
Merge remote-tracking branch 'origin/kimpen' into rkyoung7
parents
fabdb9ce
ec8a3d0b
Changes
14
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
753429a6
...
...
@@ -6,7 +6,7 @@
## 개발일지
-
추후 공개
-
https://rkyoung7.notion.site/KU-948e5a638dc842bb91ad8376f51322e2
2021 스마트 APP 개발 공모전
...
...
client/public/calender-icon.png
0 → 100644
View file @
753429a6
68.1 KB
client/public/favicon.ico
deleted
100644 → 0
View file @
fabdb9ce
3.78 KB
client/public/index.html
View file @
753429a6
...
...
@@ -2,14 +2,14 @@
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
/>
<link
rel=
"icon"
href=
"%PUBLIC_URL%/
fav
icon.
ico
"
/>
<link
rel=
"icon"
href=
"%PUBLIC_URL%/
calender-
icon.
png
"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
<meta
name=
"theme-color"
content=
"#000000"
/>
<meta
name=
"description"
content=
"Web site created using create-react-app"
/>
<link
rel=
"apple-touch-icon"
href=
"%PUBLIC_URL%/
logo192
.png"
/>
<link
rel=
"apple-touch-icon"
href=
"%PUBLIC_URL%/
calender-icon
.png"
/>
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
...
...
@@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>
React App
</title>
<title>
오늘의 KU
</title>
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
...
...
client/public/ku-tiger.png
0 → 100644
View file @
753429a6
33.9 KB
client/src/App.js
View file @
753429a6
import
{
BrowserRouter
as
Router
,
Route
,
Switch
}
from
"
react-router-dom
"
;
import
HomePage
from
"
./pages/HomePage
"
;
import
SchedulePage
from
"
./pages/SchedulePage
"
;
import
ScheduleEditPage
from
"
./pages/ScheduleEditPage
"
;
import
AdminPage
from
"
./pages/AdminPage
"
;
import
PrivateRoute
from
"
./components/PrivateRoute
"
;
import
Err
from
"
./pages/ErrorPage
"
;
function
App
()
{
return
(
<>
<
/
>
<
Router
basename
=
{
process
.
env
.
PUBLIC_URL
}
>
<
Switch
>
<
Route
path
=
"
/
"
component
=
{
Err
}
/
>
<
Route
path
=
"
/home
"
component
=
{
HomePage
}
/
>
<
Route
path
=
"
/schedule/edit
"
component
=
{
ScheduleEditPage
}
/
>
<
Route
path
=
"
/schedule
"
component
=
{
SchedulePage
}
/
>
<
PrivateRoute
path
=
"
/admin
"
component
=
{
AdminPage
}
role
=
"
admin
"
/>
<
/Switch
>
<
/Router
>
);
}
export
default
App
;
export
default
App
;
\ No newline at end of file
client/src/components/Menu/Menu.js
0 → 100644
View file @
753429a6
const
Menu
=
()
=>
{
return
(
<><
/
>
)
}
export
default
Menu
\ No newline at end of file
client/src/components/PrivateRoute.js
0 → 100644
View file @
753429a6
import
{
Redirect
,
Route
}
from
"
react-router-dom
"
;
// import { useAuth } from "../context/auth_context";
import
ErrorPage
from
"
../pages/ErrorPage
"
;
const
PrivateRoute
=
({
component
,
...
rest
})
=>
{
// const { user } = useAuth();
// return (
// <Route
// {...rest}
// render={(props) => {
// if (user) {
// if (rest.role) {
// if (rest.role === user.role) {
// return <Component {...props} />;
// } else {
// return <ErrorPage />
// }
// } else {
// return <Component {...props} />
// }
// } else {
// return <Redirect to="/login" />;
// }
// }}
// />
// );
};
export
default
PrivateRoute
;
\ No newline at end of file
client/src/components/ScheduleForm.js
0 → 100644
View file @
753429a6
const
ScheduleForm
=
()
=>
{
return
(
<><
/
>
)
}
export
default
ScheduleForm
\ No newline at end of file
client/src/pages/AdminPage.js
0 → 100644
View file @
753429a6
const
AdminPage
=
()
=>
{
return
(
<><
/
>
)
}
export
default
AdminPage
\ No newline at end of file
client/src/pages/ErrorPage.js
0 → 100644
View file @
753429a6
const
ErrorPage
=
()
=>
{
return
(
<
div
className
=
"
bg-white
"
id
=
"
notfound
"
>
<
div
className
=
"
notfound
"
style
=
{{
backgroundImage
:
`url(/ku-tiger.png)`
,
backgroundSize
:
"
cover
"
}}
>
<
div
className
=
"
notfound-404
"
><
/div
>
<
h1
>
404
<
/h1
>
<
h2
>
Oops
!
Page
Not
Be
Found
<
/h2
>
<
p
>
Sorry
but
the
page
you
are
looking
for
does
not
exist
,
have
been
removed
.
name
changed
or
is
temporarily
unavailable
<
/p
>
<
a
href
=
"
/
"
>
Back
to
homepage
<
/a
>
<
/div
>
<
/div
>
)
}
export
default
ErrorPage
\ No newline at end of file
client/src/pages/HomePage.js
0 → 100644
View file @
753429a6
const
HomePage
=
()
=>
{
return
(
<><
/
>
)
}
export
default
HomePage
\ No newline at end of file
client/src/pages/ScheduleEditPage.js
0 → 100644
View file @
753429a6
const
ScheduleEditPage
=
()
=>
{
return
(
<><
/
>
)
}
export
default
ScheduleEditPage
\ No newline at end of file
client/src/pages/SchedulePage.js
0 → 100644
View file @
753429a6
const
SchedulePage
=
()
=>
{
return
(
<><
/
>
)
}
export
default
SchedulePage
\ No newline at end of file
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