Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
invControl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
JetBrains YouTrack
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KSZK
DevTeam
invControl
Commits
301d559b
Commit
301d559b
authored
Dec 1, 2020
by
Rafael László
Browse files
Options
Downloads
Patches
Plain Diff
initial admin site
parent
109a1947
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
client/src/components/Content.tsx
+3
-2
3 additions, 2 deletions
client/src/components/Content.tsx
client/src/components/admin/GroupAdmin.tsx
+129
-0
129 additions, 0 deletions
client/src/components/admin/GroupAdmin.tsx
with
132 additions
and
2 deletions
client/src/components/Content.tsx
+
3
−
2
View file @
301d559b
import
{
Box
,
Container
}
from
'
@material-ui/core
'
;
import
{
Box
,
Container
}
from
'
@material-ui/core
'
;
import
{
Redirect
,
Route
,
Switch
}
from
'
react-router-dom
'
;
import
{
Redirect
,
Route
,
Switch
}
from
'
react-router-dom
'
;
import
{
GroupAdmin
}
from
'
./admin/GroupAdmin
'
;
import
{
GroupInfo
}
from
'
./group/GroupInfo
'
;
import
{
GroupInfo
}
from
'
./group/GroupInfo
'
;
import
{
LoggedInHome
}
from
'
./home/LoggedInHome
'
;
import
{
LoggedInHome
}
from
'
./home/LoggedInHome
'
;
import
{
LoggedOutHome
}
from
'
./home/LoggedOutHome
'
;
import
{
LoggedOutHome
}
from
'
./home/LoggedOutHome
'
;
...
@@ -16,13 +17,13 @@ export const Content: React.FC = () => {
...
@@ -16,13 +17,13 @@ export const Content: React.FC = () => {
<
Switch
>
<
Switch
>
<
Route
path
=
"/groups"
>
groups
</
Route
>
<
Route
path
=
"/groups"
>
groups
</
Route
>
<
Route
path
=
"/gyik"
>
gyik
</
Route
>
<
Route
path
=
"/gyik"
>
gyik
</
Route
>
<
Route
path
=
"/admin"
>
a
dmin
</
Route
>
<
Route
path
=
"/admin"
>
A
dmin
</
Route
>
<
Route
path
=
"/qr"
>
qr
</
Route
>
<
Route
path
=
"/qr"
>
qr
</
Route
>
<
Route
path
=
"/profile/me"
>
<
Route
path
=
"/profile/me"
>
<
SwitchComponentByAuth
isLoggedIn
=
{
<
OwnProfile
/>
}
notLoggedIn
=
{
<
NotAuthorized
/>
}
/>
<
SwitchComponentByAuth
isLoggedIn
=
{
<
OwnProfile
/>
}
notLoggedIn
=
{
<
NotAuthorized
/>
}
/>
</
Route
>
</
Route
>
<
Route
path
=
"/group/:id/info"
component
=
{
GroupInfo
}
/>
<
Route
path
=
"/group/:id/info"
component
=
{
GroupInfo
}
/>
<
Route
path
=
"/group/:id/admin"
component
=
{
Group
Info
}
/>
<
Route
path
=
"/group/:id/admin"
component
=
{
Group
Admin
}
/>
<
Route
exact
path
=
"/"
>
<
Route
exact
path
=
"/"
>
<
SwitchComponentByAuth
isLoggedIn
=
{
<
LoggedInHome
/>
}
notLoggedIn
=
{
<
LoggedOutHome
/>
}
/>
<
SwitchComponentByAuth
isLoggedIn
=
{
<
LoggedInHome
/>
}
notLoggedIn
=
{
<
LoggedOutHome
/>
}
/>
</
Route
>
</
Route
>
...
...
This diff is collapsed.
Click to expand it.
client/src/components/admin/GroupAdmin.tsx
0 → 100644
+
129
−
0
View file @
301d559b
import
{
Card
,
CardContent
,
Grid
,
Typography
,
useTheme
}
from
'
@material-ui/core
'
;
import
React
from
'
react
'
;
import
{
StyledLink
}
from
'
../utils/StyledLink
'
;
export
const
GroupAdmin
:
React
.
FC
=
()
=>
{
const
theme
=
useTheme
();
return
(
<
Grid
container
spacing
=
{
1
}
justify
=
"center"
>
<
Grid
item
xs
=
{
12
}
md
=
{
4
}
>
<
Card
>
<
CardContent
>
<
Typography
variant
=
"subtitle1"
>
Csoport adatai
</
Typography
>
<
Typography
variant
=
"subtitle1"
>
Neve: Some Csoport
</
Typography
>
<
Typography
variant
=
"subtitle1"
>
Leírása: Lorem ipsum dolor sit amet consectetur adipisicing elit. Officiis molestias eveniet voluptatum
repellendus, temporibus quod nisi beatae consequatur, voluptate optio illum aperiam quae possimus dolorum
sed inventore aut? Consequuntur, tempora.
</
Typography
>
</
CardContent
>
</
Card
>
</
Grid
>
<
Grid
item
xs
=
{
12
}
md
=
{
5
}
>
<
Grid
container
spacing
=
{
1
}
>
<
Grid
item
xs
=
{
12
}
>
<
Card
>
<
CardContent
>
<
Typography
align
=
"center"
variant
=
"subtitle1"
>
13 Új jelentkező
</
Typography
>
<
Typography
align
=
"center"
variant
=
"subtitle1"
>
{
/* TODO link to actual group */
}
<
StyledLink
to
=
{
`/group/1/admin/members/unaccepted`
}
style
=
{
{
color
:
theme
.
palette
.
primary
.
dark
}
}
>
Bírálás
</
StyledLink
>
</
Typography
>
</
CardContent
>
</
Card
>
</
Grid
>
<
Grid
item
xs
=
{
12
}
>
<
Card
>
<
CardContent
>
<
Typography
align
=
"center"
variant
=
"subtitle1"
>
7 Kölcsönzés
</
Typography
>
<
Typography
align
=
"center"
variant
=
"subtitle1"
>
{
/* TODO link to actual group */
}
<
StyledLink
to
=
{
`/group/1/admin/rentals/active`
}
style
=
{
{
color
:
theme
.
palette
.
primary
.
dark
}
}
>
Kezelés
</
StyledLink
>
</
Typography
>
</
CardContent
>
</
Card
>
</
Grid
>
<
Grid
item
xs
=
{
12
}
>
<
Card
>
<
CardContent
>
<
Typography
align
=
"center"
variant
=
"subtitle1"
>
12 Hamarosan lejáró garancia
</
Typography
>
<
Typography
align
=
"center"
variant
=
"subtitle1"
>
{
/* TODO link to actual group */
}
<
StyledLink
to
=
{
`/group/1/admin/documents?order_by=expire`
}
style
=
{
{
color
:
theme
.
palette
.
primary
.
dark
}
}
>
Megtekintés
</
StyledLink
>
</
Typography
>
</
CardContent
>
</
Card
>
</
Grid
>
</
Grid
>
</
Grid
>
<
Grid
item
xs
=
{
12
}
md
=
{
3
}
>
<
Grid
container
spacing
=
{
1
}
>
<
Grid
item
xs
=
{
12
}
>
{
/* TODO link to actual group */
}
<
StyledLink
to
=
"/group/1/admin/members"
>
<
Card
>
<
CardContent
>
<
Typography
align
=
"center"
variant
=
"subtitle1"
>
Tagok
</
Typography
>
</
CardContent
>
</
Card
>
</
StyledLink
>
</
Grid
>
<
Grid
item
xs
=
{
12
}
>
{
/* TODO link to actual group */
}
<
StyledLink
to
=
"/group/1/admin/items"
>
<
Card
>
<
CardContent
>
<
Typography
align
=
"center"
variant
=
"subtitle1"
>
Tárgyak
</
Typography
>
</
CardContent
>
</
Card
>
</
StyledLink
>
</
Grid
>
<
Grid
item
xs
=
{
12
}
>
{
/* TODO link to actual group */
}
<
StyledLink
to
=
"/group/1/admin/storages"
>
<
Card
>
<
CardContent
>
<
Typography
align
=
"center"
variant
=
"subtitle1"
>
Leltárak
</
Typography
>
</
CardContent
>
</
Card
>
</
StyledLink
>
</
Grid
>
<
Grid
item
xs
=
{
12
}
>
{
/* TODO link to actual group */
}
<
StyledLink
to
=
"/group/1/admin/documents"
>
<
Card
>
<
CardContent
>
<
Typography
align
=
"center"
variant
=
"subtitle1"
>
Dokumentumok
</
Typography
>
</
CardContent
>
</
Card
>
</
StyledLink
>
</
Grid
>
</
Grid
>
</
Grid
>
</
Grid
>
);
};
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