Naruon
+Naruon
메일, 첨부, 일정, 작업을 맥락으로 묶어 판단과 실행으로 연결하는 AI 이메일 워크스페이스입니다.
diff --git a/i18n.js b/i18n.js index 00b81d3..6a77c58 100644 --- a/i18n.js +++ b/i18n.js @@ -18,6 +18,7 @@ const messages = { "nav.references": "참고문헌", "nav.work": "작업", "nav.skipToContent": "본문으로 건너뛰기", + "externalLink": "새 창에서 열기", "hero.title": "맥락지혜 연구실", "hero.labName": "Contextual Wisdom Lab", "hero.thesis": "구슬이 서 말이어도 꿰어야 보배이듯, 문서, 메일, 로그, 회의록을 맥락 안에서 엮어 사람이 무엇을 결정하고 무엇을 실행할지 보이게 하는 AI 의사결정 지원 시스템을 연구하고 만듭니다.", @@ -165,6 +166,7 @@ const messages = { "nav.references": "References", "nav.work": "Work", "nav.skipToContent": "Skip to main content", + "externalLink": "Opens in a new window", "hero.title": "Contextual Wisdom Lab", "hero.labName": "Research Lab", "hero.thesis": "A research lab building AI decision support systems. Even a heap of beads becomes treasure only when threaded; we compose context across documents, mail, logs, and meeting notes so people can see what to decide and what to do next.", @@ -365,14 +367,22 @@ function setLanguage(lang) { if (!isInitialDefault) { if (!i18nNodes) { - i18nNodes = document.querySelectorAll("[data-i18n]"); + i18nNodes = document.querySelectorAll("[data-i18n], [data-i18n-title]"); } // Only update textContent if it actually changed to avoid layout recalculations i18nNodes.forEach((node) => { - const newText = dict[node.dataset.i18n]; - if (newText && node.textContent !== newText) { - node.textContent = newText; + if (node.hasAttribute("data-i18n")) { + const newText = dict[node.dataset.i18n]; + if (newText && node.textContent !== newText) { + node.textContent = newText; + } + } + if (node.hasAttribute("data-i18n-title")) { + const newTitle = dict[node.dataset.i18nTitle]; + if (newTitle && node.getAttribute("title") !== newTitle) { + node.setAttribute("title", newTitle); + } } }); } diff --git a/index.html b/index.html index a2dbbd7..b83a560 100644 --- a/index.html +++ b/index.html @@ -42,7 +42,7 @@ 프로젝트 Fork 작업 - GitHub + GitHub
메일, 첨부, 일정, 작업을 맥락으로 묶어 판단과 실행으로 연결하는 AI 이메일 워크스페이스입니다.
PostgreSQL 스키마를 리버스 엔지니어링하고 ERD와 DDL 공유 흐름으로 관리하는 클라우드 MVP입니다.
곡을 섹션, 역할, 템포, 연습 우선순위로 분석하는 로컬 우선 리허설 앱입니다.
긴 녹음을 메타데이터를 보존한 FLAC/Opus 조각으로 변환하는 Python CLI입니다.
스캔된 일본어 신문 PDF를 기사, 제목, 본문, 이미지 구조의 DOM형 JSON으로 파싱하는 API입니다.
트리 편집, 진행률 계산, CSV/JSON, 주간 Gantt를 지원하는 정적 HTML/CSS/JS WBS 플래너입니다.
바이브코딩 앱을 위한 보안 가드레일입니다. AI 개발 도구 규칙, 정적 점검, 리뷰와 수정 프롬프트를 다룹니다.
MLSIRM/MLS2PLM 모형의 시뮬레이션, 적합, 복원 진단을 빠르게 수행하는 Python/Rust 패키지입니다.
DNSBL 게시 기능을 갖춘 Rust 우선 WAF/IDS/AI SOC 게이트웨이입니다.
Founded by - Seongho Bae. + Seongho Bae. Context into judgment. Judgment into action.
diff --git a/tests/test_a11y_ux.py b/tests/test_a11y_ux.py new file mode 100644 index 0000000..fca5212 --- /dev/null +++ b/tests/test_a11y_ux.py @@ -0,0 +1,18 @@ +"""Test UX/A11y requirements.""" +from pathlib import Path + +def test_external_links_have_title() -> None: + """Test that all external links have a dynamic title attribute for a11y.""" + html = Path("index.html").read_text(encoding="utf-8") + js = Path("i18n.js").read_text(encoding="utf-8") + + # Verify dynamic logic + assert "data-i18n-title" in js + assert '"externalLink": "새 창에서 열기"' in js + + # Check target="_blank" has associated attributes using independent tokens + for line in html.splitlines(): + if 'target="_blank"' in line: + assert "data-i18n-title" in line + assert "externalLink" in line + assert "title" in line