Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
VideoCameraOutlined
} from "@ant-design/icons";
import { useQuery } from "@tanstack/react-query";
import { Button, Layout, Menu, Typography } from "antd";
import { Button, Layout, Menu } from "antd";
import type { MenuProps } from "antd";
import type { ReactNode } from "react";
import { Link, Navigate, Outlet, Route, Routes, useLocation, useNavigate } from "react-router";
Expand Down Expand Up @@ -86,18 +86,14 @@ function AdminLayout() {
<span className="admin-brand-mark">F</span>
<span>
<strong>Flint 관리자</strong>
<small>운영 관리</small>
</span>
</Link>
<Menu mode="inline" selectedKeys={[selectedKey]} items={navigationItems} />
</Sider>
<Layout>
<Header className="admin-header">
<Typography.Text type="secondary">Flint 운영 관리</Typography.Text>
<div className="admin-header-actions">
<Typography.Text type="secondary">
가입 회원 {userStatisticsQuery.data?.activeUserCount ?? "-"}명
</Typography.Text>
<span className="member-count">가입 회원 {userStatisticsQuery.data?.activeUserCount ?? "-"}명</span>
<Link to="/admin/account">
<Button icon={<UserOutlined />}>계정 설정</Button>
</Link>
Expand Down
14 changes: 2 additions & 12 deletions src/app/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,11 @@ textarea {
font-weight: 800;
}

.admin-brand strong,
.admin-brand small {
.admin-brand strong {
display: block;
line-height: 1.2;
}

.admin-brand small {
margin-top: 3px;
color: #6b7280;
}

.admin-header {
display: flex;
align-items: center;
Expand All @@ -84,6 +78,7 @@ textarea {
display: flex;
gap: 12px;
align-items: center;
margin-left: auto;
}

.admin-header-actions a {
Expand Down Expand Up @@ -124,11 +119,6 @@ textarea {
margin: 0;
}

.page-header p {
margin: 6px 0 0;
color: #6b7280;
}

.metric-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
Expand Down
1 change: 0 additions & 1 deletion src/pages/AccountPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export function AccountPage() {
<header className="page-header">
<div>
<Typography.Title level={1}>계정 설정</Typography.Title>
<Typography.Paragraph>관리자 로그인 아이디와 비밀번호를 변경합니다.</Typography.Paragraph>
</div>
</header>

Expand Down
1 change: 0 additions & 1 deletion src/pages/AnalyticsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export function AnalyticsPage() {
<header className="page-header">
<div>
<Typography.Title level={1}>운영 지표</Typography.Title>
<Typography.Paragraph>운영 지표와 처리 이력 화면은 준비 중입니다.</Typography.Paragraph>
</div>
</header>

Expand Down
3 changes: 0 additions & 3 deletions src/pages/LoginPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ export function LoginPage() {
<main className="login-page">
<Card className="login-card">
<Typography.Title level={1}>관리자 로그인</Typography.Title>
<Typography.Paragraph type="secondary">
Flint 운영자 콘솔에 접근하려면 관리자 계정으로 로그인해주세요.
</Typography.Paragraph>
<Form<LoginFormValues> layout="vertical" requiredMark={false} onFinish={handleFinish}>
<Form.Item label="아이디" name="username" rules={[{ required: true, message: "아이디를 입력해주세요." }]}>
<Input autoComplete="username" />
Expand Down
1 change: 0 additions & 1 deletion src/pages/ModerationPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ export function ModerationPage() {
<header className="page-header">
<div>
<Typography.Title level={1}>신고 관리</Typography.Title>
<Typography.Paragraph>접수된 컬렉션 신고를 확인하고 필요한 조치를 기록합니다.</Typography.Paragraph>
</div>
</header>

Expand Down
1 change: 0 additions & 1 deletion src/pages/OverviewPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export function OverviewPage() {
<header className="page-header">
<div>
<Typography.Title level={1}>대시보드</Typography.Title>
<Typography.Paragraph>방문자, 신규 가입, 회원 수 흐름을 한눈에 확인합니다.</Typography.Paragraph>
</div>
</header>

Expand Down
1 change: 0 additions & 1 deletion src/pages/TermsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ export function TermsPage() {
<header className="page-header">
<div>
<Typography.Title level={1}>약관 관리</Typography.Title>
<Typography.Paragraph>등록된 약관을 확인하고 새 약관 버전을 추가합니다.</Typography.Paragraph>
</div>
</header>

Expand Down
1 change: 0 additions & 1 deletion src/pages/UsersPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ export function UsersPage() {
<header className="page-header">
<div>
<Typography.Title level={1}>회원 관리</Typography.Title>
<Typography.Paragraph>회원 정보를 확인하고 필요한 조치를 기록합니다.</Typography.Paragraph>
</div>
</header>

Expand Down
5 changes: 2 additions & 3 deletions src/shared/api/adminLabels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ export const userStatusLabels: Record<UserStatus, string> = {
};

export const userRoleLabels: Record<UserRole, string> = {
ADMIN: "관리자",
FLINER: "일반 회원",
FLING: "게스트"
FLINER: "플리너",
FLING: "일반회원"
};

export const termsTypeLabels: Record<TermsType, string> = {
Expand Down
2 changes: 1 addition & 1 deletion src/shared/api/adminTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export type TermsSortBy = "VERSION" | "TYPE";
export type SortDirection = "ASC" | "DESC";
export type AdminDailyUserMetricsRange = "DAYS_7" | "DAYS_30" | "ALL";
export type UserStatus = "ACTIVE" | "WITHDRAWN";
export type UserRole = "ADMIN" | "FLINER" | "FLING";
export type UserRole = "FLINER" | "FLING";

export interface PaginationResponse<T> {
data: T[];
Expand Down
Loading