Skip to content

Commit

Permalink
Merge pull request #77 from HGU-WALAB/#72/fix-detail-for-demo
Browse files Browse the repository at this point in the history
feat: change data name
  • Loading branch information
healim01 authored Nov 27, 2023
2 parents 9ef99d0 + 935fed4 commit 477296b
Show file tree
Hide file tree
Showing 6 changed files with 141 additions and 139 deletions.
4 changes: 2 additions & 2 deletions src/pages/dashboard/dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export default function Page() {
<title> HANSPACE: 대시보드 </title>
</Helmet>

{/* <AdminDashboardView /> */}
<UserDashboardView />
<AdminDashboardView />
{/* <UserDashboardView /> */}
</>
);
}
4 changes: 2 additions & 2 deletions src/sections/auth/jwt/jwt-login-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function JwtLoginView() {

const defaultValues = {
name: '최혜림',
email: '22000770@handong.ac.kr',
email: 'HyelimChoi@handong.ac.kr',
// password: 'demo1234',
};

Expand Down Expand Up @@ -131,7 +131,7 @@ export default function JwtLoginView() {
{renderHead}

<Alert severity="info" sx={{ mb: 3 }}>
Use name :<strong> 최혜림 </strong> / email : <strong> 22000770@handong.ac.kr </strong>
Use name :<strong> 최혜림 </strong> / email : <strong> HyelimChoi@handong.ac.kr </strong>
</Alert>

{renderForm}
Expand Down
2 changes: 2 additions & 0 deletions src/sections/dashboard/admin-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { Link } from 'react-router-dom';
import { paths } from 'src/routes/paths';
import styled from 'styled-components';
import AnalyticsWidgetSummary from './analytics-widget-summary';
import { UserCalendarView } from './calendar/view';
// import AdminCalendarView from './calendar/view/admin-calendar-view';

// ----------------------------------------------------------------------
Expand Down Expand Up @@ -101,6 +102,7 @@ export default function AdminDashboardView() {

{/* 2번째 */}
<Grid xs={12} md={12} lg={12}>
<UserCalendarView />
{/* <AdminCalendarView /> */}
</Grid>
</Grid>
Expand Down
4 changes: 2 additions & 2 deletions src/sections/home/dept-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ export default function DeptCard({ deptInfo, onAccess, onPending }: Props) {
>
<Stack flexGrow={1} sx={{ position: 'relative' }}>
<Image
alt={deptInfo.image}
src={deptInfo.image}
alt={deptInfo.deptImage}
src={deptInfo.deptImage}
sx={{ borderRadius: 1, height: 164, width: 1 }}
/>
</Stack>
Expand Down
264 changes: 132 additions & 132 deletions src/sections/home/dept-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,138 +8,138 @@ import DeptCard from './dept-card';
import AccessedDialog from './success-modal-accessed';
import PendingDialog from './success-modal-pending';

const deptlist: IDeptInfo[] = [
{
deptId: 1,
deptName: '전산전자공학부',
memberCount: 123,
spaceCount: 15,
userAccept: true,
image: 'https://www.snunews.com/news/photo/201809/18599_11268_2922.jpg',
deptMemberResponse: [],
},
{
deptId: 2,
deptName: '상담심리사회복지',
memberCount: 75,
spaceCount: 8,
userAccept: true,
image: 'https://map.snu.ac.kr/api/upload/spot/84a71dc3-9891-4e67-8f8a-b1b0cf9bfe9c.jpg',
deptMemberResponse: [
{
deptMemberId: 9,
deptRole: 'User',
approve: '승인',
},
],
},
{
deptId: 3,
deptName: '생명과학부',
memberCount: 60,
spaceCount: 10,
userAccept: false,
image:
'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRyelkwHA6AFR2bCzp06Ceauo4YQ7nfA1XP30gGZkEffQ8ZP3-WcxygRO2PccgIfET6rXU&usqp=CAU',
deptMemberResponse: [],
},
{
deptId: 4,
deptName: 'ICT창업학부',
memberCount: 100,
image:
'https://wimg.mk.co.kr/news/cms/202212/14/news-p.v1.20221213.88bc4288ad01428c9f29203f20cba568_P1.jpg',
spaceCount: 12,
userAccept: true,
deptMemberResponse: [
{
deptMemberId: 9,
deptRole: 'Admin',
approve: '승인',
},
],
},
{
deptId: 5,
deptName: '공간환경시스템디자인학부',
memberCount: 45,
image:
'https://search.pstatic.net/common/?src=http%3A%2F%2Fblogfiles.naver.net%2FMjAxOTAzMjlfNjYg%2FMDAxNTUzODM4MTg1MDEy.h7Vx5F3Fj8OsCpWnhZv9jI_54LFCFr-5k5jmuvfQkmgg.-2_GcmAI44-hRnKN_pawJH9ocytF4-ecMiqgLuK8dYcg.JPEG.su_mini214%2Foutput_2725856160.jpg&type=sc960_832',
spaceCount: 5,
userAccept: false,
deptMemberResponse: [],
},
{
deptId: 6,
deptName: '경영경제학부',
memberCount: 50,
image: 'https://cdn.crowdpic.net/detail-thumb/thumb_d_8B8E1C3B87961CEAC3D6AA8BA5AD7D4C.jpg',
spaceCount: 7,
userAccept: true,
deptMemberResponse: [
{
deptMemberId: 9,
deptRole: 'Admin',
approve: '승인',
},
],
},
{
deptId: 7,
deptName: '기계제어공학부',
memberCount: 40,
image:
'https://search.pstatic.net/common/?src=http%3A%2F%2Fblogfiles.naver.net%2F20160725_172%2Fhyun_a_99_1469449498743J8Gp0_JPEG%2F20160528_165238_%25281%2529.jpg&type=sc960_832',
spaceCount: 6,
userAccept: true,
deptMemberResponse: [
{
deptMemberId: 9,
deptRole: 'User',
approve: '승인대기',
},
],
},
{
deptId: 8,
deptName: '법학부',
memberCount: 85,
image: 'https://www.osan.ac.kr/usr/images/buildings/8_1.png',
spaceCount: 9,
userAccept: true,
deptMemberResponse: [
{
deptMemberId: 9,
deptRole: 'User',
approve: '승인대기',
},
],
},
{
deptId: 9,
deptName: '심리학 프로이드 강당',
memberCount: 110,
image: 'https://source.unsplash.com/random',
spaceCount: 11,
userAccept: true,
deptMemberResponse: [
{
deptMemberId: 9,
deptRole: 'Admin',
approve: '승인',
},
],
},
{
deptId: 10,
deptName: '경제 아담스미스 스튜디오',
memberCount: 95,
image: 'https://source.unsplash.com/random',
spaceCount: 14,
deptMemberResponse: [],
userAccept: true,
},
];
// const deptlist: IDeptInfo[] = [
// {
// deptId: 1,
// deptName: '전산전자공학부',
// memberCount: 123,
// spaceCount: 15,
// userAccept: true,
// image: 'https://www.snunews.com/news/photo/201809/18599_11268_2922.jpg',
// deptMemberResponse: [],
// },
// {
// deptId: 2,
// deptName: '상담심리사회복지',
// memberCount: 75,
// spaceCount: 8,
// userAccept: true,
// image: 'https://map.snu.ac.kr/api/upload/spot/84a71dc3-9891-4e67-8f8a-b1b0cf9bfe9c.jpg',
// deptMemberResponse: [
// {
// deptMemberId: 9,
// deptRole: 'User',
// approve: '승인',
// },
// ],
// },
// {
// deptId: 3,
// deptName: '생명과학부',
// memberCount: 60,
// spaceCount: 10,
// userAccept: false,
// image:
// 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRyelkwHA6AFR2bCzp06Ceauo4YQ7nfA1XP30gGZkEffQ8ZP3-WcxygRO2PccgIfET6rXU&usqp=CAU',
// deptMemberResponse: [],
// },
// {
// deptId: 4,
// deptName: 'ICT창업학부',
// memberCount: 100,
// image:
// 'https://wimg.mk.co.kr/news/cms/202212/14/news-p.v1.20221213.88bc4288ad01428c9f29203f20cba568_P1.jpg',
// spaceCount: 12,
// userAccept: true,
// deptMemberResponse: [
// {
// deptMemberId: 9,
// deptRole: 'Admin',
// approve: '승인',
// },
// ],
// },
// {
// deptId: 5,
// deptName: '공간환경시스템디자인학부',
// memberCount: 45,
// image:
// 'https://search.pstatic.net/common/?src=http%3A%2F%2Fblogfiles.naver.net%2FMjAxOTAzMjlfNjYg%2FMDAxNTUzODM4MTg1MDEy.h7Vx5F3Fj8OsCpWnhZv9jI_54LFCFr-5k5jmuvfQkmgg.-2_GcmAI44-hRnKN_pawJH9ocytF4-ecMiqgLuK8dYcg.JPEG.su_mini214%2Foutput_2725856160.jpg&type=sc960_832',
// spaceCount: 5,
// userAccept: false,
// deptMemberResponse: [],
// },
// {
// deptId: 6,
// deptName: '경영경제학부',
// memberCount: 50,
// image: 'https://cdn.crowdpic.net/detail-thumb/thumb_d_8B8E1C3B87961CEAC3D6AA8BA5AD7D4C.jpg',
// spaceCount: 7,
// userAccept: true,
// deptMemberResponse: [
// {
// deptMemberId: 9,
// deptRole: 'Admin',
// approve: '승인',
// },
// ],
// },
// {
// deptId: 7,
// deptName: '기계제어공학부',
// memberCount: 40,
// image:
// 'https://search.pstatic.net/common/?src=http%3A%2F%2Fblogfiles.naver.net%2F20160725_172%2Fhyun_a_99_1469449498743J8Gp0_JPEG%2F20160528_165238_%25281%2529.jpg&type=sc960_832',
// spaceCount: 6,
// userAccept: true,
// deptMemberResponse: [
// {
// deptMemberId: 9,
// deptRole: 'User',
// approve: '승인대기',
// },
// ],
// },
// {
// deptId: 8,
// deptName: '법학부',
// memberCount: 85,
// image: 'https://www.osan.ac.kr/usr/images/buildings/8_1.png',
// spaceCount: 9,
// userAccept: true,
// deptMemberResponse: [
// {
// deptMemberId: 9,
// deptRole: 'User',
// approve: '승인대기',
// },
// ],
// },
// {
// deptId: 9,
// deptName: '심리학 프로이드 강당',
// memberCount: 110,
// image: 'https://source.unsplash.com/random',
// spaceCount: 11,
// userAccept: true,
// deptMemberResponse: [
// {
// deptMemberId: 9,
// deptRole: 'Admin',
// approve: '승인',
// },
// ],
// },
// {
// deptId: 10,
// deptName: '경제 아담스미스 스튜디오',
// memberCount: 95,
// image: 'https://source.unsplash.com/random',
// spaceCount: 14,
// deptMemberResponse: [],
// userAccept: true,
// },
// ];

export default function DeptList({ deptList }: { deptList: IDeptInfo[] | null }) {
const [currentDept, setCurrentDept] = useState<IDeptInfo | null>(null);
Expand Down
2 changes: 1 addition & 1 deletion src/types/dept.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export type IDeptInfo = {
// siteName: string;
deptName: string | null;
// logo: string | null;
image: string;
deptImage: string;
userAccept: boolean;
// maxRserveCount: number | null;
// link: string | null;
Expand Down

0 comments on commit 477296b

Please sign in to comment.