fix(388-3 보안): 세션 넘침 안내 — 화면 모듈을 안에서만 가져옴
- b_page_state 맨 위 로케일 가져오기가 이 파일을 Node 로 돌리는 시험(346-4 등)을 깨던 것 - 넘침 안내 때만 토스트 · 로케일을 함께 동적으로 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VmC34fsxxbweEG3RUjs3Mn
This commit is contained in:
@@ -21,8 +21,6 @@
|
||||
* 않는다** — ②·④는 두 화면이 같은 키를 쓴다.
|
||||
* ========================================================================== */
|
||||
|
||||
import { t } from "@ui/ui_template_locale";
|
||||
|
||||
/** 값이 속한 통. `pref`·`draft`·`result` 셋만 저장소를 쓴다(즉시 반영은 표에 없다). */
|
||||
export type StateBucket = "pref" | "draft" | "result";
|
||||
|
||||
@@ -457,8 +455,9 @@ function setOrMakeRoom(store: Storage, key: string, value: string): void {
|
||||
try {
|
||||
store.setItem(key, value);
|
||||
} catch (error) {
|
||||
void import("@ui/ui_template_elements").then(({ showToast }) =>
|
||||
showToast(t("Session_Storage_Full"), "warning", 8000),
|
||||
// 화면 모듈은 안에서만 — 이 파일을 Node 로 돌리는 시험 · 묶음이 안 끌게
|
||||
void Promise.all([import("@ui/ui_template_elements"), import("@ui/ui_template_locale")]).then(
|
||||
([{ showToast }, { t }]) => showToast(t("Session_Storage_Full"), "warning", 8000),
|
||||
);
|
||||
throw error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user