대시보드, 기기에러, 계정관리 수정

This commit is contained in:
comicgum
2026-09-15 21:52:40 +09:00
parent 4a6c9d2afe
commit d1e230eb6a
32 changed files with 1984 additions and 73 deletions
@@ -0,0 +1,13 @@
// Labels for device_error.error_type.
// The telegram itself (device_error.error_code) is parsed on the server:
// see component/DeviceErrorCode.java and /api/get-device-error-detail.do
export const DEVICE_ERROR_TYPE_FAULT = 1; // 단말기 이상
export const DEVICE_ERROR_TYPE_SOLD_OUT = 2; // 품절
export const deviceErrorTypeLabel = (error_type: number | string | null | undefined) => {
const value = Number(error_type);
if (value === DEVICE_ERROR_TYPE_FAULT) return "단말기 이상";
if (value === DEVICE_ERROR_TYPE_SOLD_OUT) return "품절";
return "";
};