diff --git a/frontend/src/lib/components/Sidebar.svelte b/frontend/src/lib/components/Sidebar.svelte index e1c05b4..dcedf02 100644 --- a/frontend/src/lib/components/Sidebar.svelte +++ b/frontend/src/lib/components/Sidebar.svelte @@ -2,7 +2,7 @@ import { page } from '$app/stores'; import { goto } from '$app/navigation'; import { api } from '$lib/api'; - import { ChevronRight, ChevronDown, FolderOpen, FolderTree, Inbox, Clock, Mail, Scale, StickyNote, GraduationCap, CalendarCheck, MessageCircle, Hash } from 'lucide-svelte'; + import { ChevronRight, ChevronDown, FolderOpen, FolderTree, Inbox, Clock, Mail, Scale, StickyNote, GraduationCap, CalendarCheck, MessageCircle, Hash, HardHat } from 'lucide-svelte'; let tree = $state([]); let loading = $state(true); @@ -195,6 +195,13 @@ > 자료실 + + 안전 자료실 + +
+

안전 자료실

+

재해사례·법령·지침·표준 — 자료유형(material_type) 축 기반

+
+ +
+ + + diff --git a/frontend/src/routes/safety/+page.svelte b/frontend/src/routes/safety/+page.svelte new file mode 100644 index 0000000..1a497ed --- /dev/null +++ b/frontend/src/routes/safety/+page.svelte @@ -0,0 +1,9 @@ + diff --git a/frontend/src/routes/safety/SafetyDocList.svelte b/frontend/src/routes/safety/SafetyDocList.svelte new file mode 100644 index 0000000..5f4db29 --- /dev/null +++ b/frontend/src/routes/safety/SafetyDocList.svelte @@ -0,0 +1,75 @@ + + +
+ {#if !loading || docs.length > 0} +

총 {total.toLocaleString()}건

+ {/if} + + {#if docs.length > 0} +
+ {#each docs as doc (doc.id)} + + {/each} +
+ {:else if !loading} +
+ 해당 조건의 자료가 없습니다. +
+ {/if} + + {#if loading} +
불러오는 중…
+ {:else if hasMore} + + {/if} +
diff --git a/frontend/src/routes/safety/incidents/+page.svelte b/frontend/src/routes/safety/incidents/+page.svelte new file mode 100644 index 0000000..b270fe6 --- /dev/null +++ b/frontend/src/routes/safety/incidents/+page.svelte @@ -0,0 +1,29 @@ + + +
+
+ {#each JURISDICTIONS as j} + + {/each} +
+ + +
diff --git a/frontend/src/routes/safety/laws/+page.svelte b/frontend/src/routes/safety/laws/+page.svelte new file mode 100644 index 0000000..4fd7c14 --- /dev/null +++ b/frontend/src/routes/safety/laws/+page.svelte @@ -0,0 +1,48 @@ + + +
+
+
+ {#each KINDS as k} + + {/each} +
+
+ {#each JURISDICTIONS as j} + + {/each} +
+
+ + +
diff --git a/frontend/src/routes/safety/materials/+page.svelte b/frontend/src/routes/safety/materials/+page.svelte new file mode 100644 index 0000000..b895959 --- /dev/null +++ b/frontend/src/routes/safety/materials/+page.svelte @@ -0,0 +1,29 @@ + + +
+
+ {#each KINDS as k} + + {/each} +
+ + +