EENE Dashboard upload to Gitea

This commit is contained in:
EENE Dashboard
2026-06-18 15:06:37 +09:00
parent d3548cf7ff
commit c31eca4b58
82 changed files with 126 additions and 48 deletions

View File

@@ -42,7 +42,7 @@ const HUB_CONFIG = {
],
routineLabels: ['채용 운영', '학습 지원', '직원 소통', '자산·시설', '문서·행정'],
routineLabels: ['채용 운영', '학습 지원', '운영 지원', '자산·시설', '문서·행정'],
};

View File

@@ -13,11 +13,22 @@ export const DEFAULT_HUB_CONFIG = {
{ id: '2', date: '2026-05-15', text: '조직문화 진단·리더십 교육' },
{ id: '3', date: '2026-06-20', text: '분기 성과 점검·평가' },
],
routineLabels: ['채용 운영', '학습 지원', '직원 소통', '자산·시설', '문서·행정'],
routineLabels: ['채용 운영', '학습 지원', '운영 지원', '자산·시설', '문서·행정'],
};
function migrateRoutineLabels(labels: string[]): string[] {
return labels.map((label) => {
if (label === '교육 운영') return '학습 지원';
if (label === '직원 소통') return '운영 지원';
return label;
});
}
function normalizeConfig(raw: Record<string, unknown>) {
const sloganTitle = (raw.sloganTitle as string) ?? DEFAULT_HUB_CONFIG.sloganTitle;
const routineLabels = Array.isArray(raw.routineLabels)
? migrateRoutineLabels(raw.routineLabels as string[])
: DEFAULT_HUB_CONFIG.routineLabels;
return {
sloganTitle: sloganTitle === '분기 슬로건' ? '분기 중점 과제' : sloganTitle,
sloganLines: Array.isArray(raw.sloganLines)
@@ -27,9 +38,7 @@ function normalizeConfig(raw: Record<string, unknown>) {
scheduleItems: Array.isArray(raw.scheduleItems)
? (raw.scheduleItems as typeof DEFAULT_HUB_CONFIG.scheduleItems)
: DEFAULT_HUB_CONFIG.scheduleItems,
routineLabels: Array.isArray(raw.routineLabels)
? (raw.routineLabels as string[])
: DEFAULT_HUB_CONFIG.routineLabels,
routineLabels,
};
}