From d45fc414a9d704482541acb57a838366f8ea3b59 Mon Sep 17 00:00:00 2001 From: Emmanuel Raviart Date: Sun, 14 Aug 2022 14:23:42 +0200 Subject: [PATCH] Rename /data to /legal. --- src/lib/{data.ts => legal.ts} | 0 src/lib/scripts/import_dole.ts | 2 +- src/lib/scripts/import_jorf.ts | 2 +- src/lib/scripts/import_kali.ts | 2 +- src/lib/scripts/import_legi.ts | 2 +- src/lib/summaries.ts | 2 +- src/routes/article/[id].svelte | 2 +- src/routes/article/[id].ts | 2 +- src/routes/article/index.svelte | 2 +- src/routes/article/index.ts | 2 +- src/routes/dossier_legislatif/[id].svelte | 2 +- src/routes/dossier_legislatif/[id].ts | 2 +- src/routes/dossier_legislatif/index.svelte | 2 +- src/routes/dossier_legislatif/index.ts | 2 +- src/routes/id/[...eli].svelte | 2 +- src/routes/id/[...eli].ts | 2 +- src/routes/id/index.svelte | 2 +- src/routes/id/index.ts | 2 +- src/routes/idcc/[id].svelte | 2 +- src/routes/idcc/[id].ts | 2 +- src/routes/idcc/index.svelte | 2 +- src/routes/idcc/index.ts | 2 +- src/routes/jo/[id].svelte | 2 +- src/routes/jo/[id].ts | 2 +- src/routes/jo/index.svelte | 2 +- src/routes/jo/index.ts | 2 +- src/routes/recherche/index.ts | 2 +- src/routes/section_ta/[id].svelte | 2 +- src/routes/section_ta/[id].ts | 2 +- src/routes/section_ta/index.svelte | 2 +- src/routes/section_ta/index.ts | 2 +- src/routes/texte_version/[id].svelte | 2 +- src/routes/texte_version/[id].ts | 2 +- src/routes/texte_version/index.svelte | 2 +- src/routes/texte_version/index.ts | 2 +- src/routes/textekali/[id].svelte | 2 +- src/routes/textekali/[id].ts | 2 +- src/routes/textekali/index.svelte | 2 +- src/routes/textekali/index.ts | 2 +- src/routes/textelr/[id].svelte | 2 +- src/routes/textelr/[id].ts | 2 +- src/routes/textelr/index.svelte | 2 +- src/routes/textelr/index.ts | 2 +- src/routes/versions/[...eli].svelte | 2 +- src/routes/versions/[...eli].ts | 2 +- src/routes/versions/index.svelte | 2 +- src/routes/versions/index.ts | 2 +- 47 files changed, 46 insertions(+), 46 deletions(-) rename src/lib/{data.ts => legal.ts} (100%) diff --git a/src/lib/data.ts b/src/lib/legal.ts similarity index 100% rename from src/lib/data.ts rename to src/lib/legal.ts diff --git a/src/lib/scripts/import_dole.ts b/src/lib/scripts/import_dole.ts index 7ca44e9..79ebb85 100644 --- a/src/lib/scripts/import_dole.ts +++ b/src/lib/scripts/import_dole.ts @@ -7,7 +7,7 @@ import path from "path" import type { JSONValue } from "postgres" import sade from "sade" -import type { DossierLegislatif, XmlHeader } from "$lib/data" +import type { DossierLegislatif, XmlHeader } from "$lib/legal" import { db } from "$lib/server/database" import { walkDir } from "$lib/server/file_systems" diff --git a/src/lib/scripts/import_jorf.ts b/src/lib/scripts/import_jorf.ts index 602ad82..59f0979 100644 --- a/src/lib/scripts/import_jorf.ts +++ b/src/lib/scripts/import_jorf.ts @@ -16,7 +16,7 @@ import type { TexteVersion, Versions, XmlHeader, -} from "$lib/data" +} from "$lib/legal" import { db } from "$lib/server/database" import { walkDir } from "$lib/server/file_systems" diff --git a/src/lib/scripts/import_kali.ts b/src/lib/scripts/import_kali.ts index 88b3a20..ed42e2a 100644 --- a/src/lib/scripts/import_kali.ts +++ b/src/lib/scripts/import_kali.ts @@ -15,7 +15,7 @@ import type { Textelr, TexteVersion, XmlHeader, -} from "$lib/data" +} from "$lib/legal" import { db } from "$lib/server/database" import { walkDir } from "$lib/server/file_systems" diff --git a/src/lib/scripts/import_legi.ts b/src/lib/scripts/import_legi.ts index 1c2107f..4b57f8d 100644 --- a/src/lib/scripts/import_legi.ts +++ b/src/lib/scripts/import_legi.ts @@ -15,7 +15,7 @@ import type { TexteVersion, Versions, XmlHeader, -} from "$lib/data" +} from "$lib/legal" import { db } from "$lib/server/database" import { walkDir } from "$lib/server/file_systems" diff --git a/src/lib/summaries.ts b/src/lib/summaries.ts index 90ca082..9271799 100644 --- a/src/lib/summaries.ts +++ b/src/lib/summaries.ts @@ -19,7 +19,7 @@ import { type LienArt, type VersionsWrapper, type DossierLegislatif, -} from "$lib/data" +} from "$lib/legal" export const summarizeArticleProperties: Summarizer = (access, value) => { if (access?.key === "article" && typeof value !== "number") { diff --git a/src/routes/article/[id].svelte b/src/routes/article/[id].svelte index 878ef3e..686bbfc 100644 --- a/src/routes/article/[id].svelte +++ b/src/routes/article/[id].svelte @@ -2,7 +2,7 @@ import { TreeView, SummaryView } from "augmented-data-viewer" import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte" - import type { Article } from "$lib/data" + import type { Article } from "$lib/legal" import { summarizeArticleProperties, summarizeLegalObject, diff --git a/src/routes/article/[id].ts b/src/routes/article/[id].ts index 50c4fc5..9d7069a 100644 --- a/src/routes/article/[id].ts +++ b/src/routes/article/[id].ts @@ -1,7 +1,7 @@ import type { RequestHandler } from "@sveltejs/kit" import type { JSONObject } from "@sveltejs/kit/types/private" -import type { Article } from "$lib/data" +import type { Article } from "$lib/legal" import { db } from "$lib/server/database" export const GET: RequestHandler = async ({ params }) => { diff --git a/src/routes/article/index.svelte b/src/routes/article/index.svelte index 048ecd4..2b357a0 100644 --- a/src/routes/article/index.svelte +++ b/src/routes/article/index.svelte @@ -6,7 +6,7 @@ // import { page } from "$app/stores" import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte" import Pagination from "$lib/components/Pagination.svelte" - import type { Article } from "$lib/data" + import type { Article } from "$lib/legal" import { summarizeArticleProperties } from "$lib/summaries" let articles: Article[] diff --git a/src/routes/article/index.ts b/src/routes/article/index.ts index 5e5a390..6edae89 100644 --- a/src/routes/article/index.ts +++ b/src/routes/article/index.ts @@ -3,7 +3,7 @@ import type { RequestHandler } from "@sveltejs/kit" import type { JSONObject } from "@sveltejs/kit/types/private" import { auditSearchQueryContent } from "$lib/auditors/queries" -import type { Article } from "$lib/data" +import type { Article } from "$lib/legal" import { db } from "$lib/server/database" export function auditQuery( diff --git a/src/routes/dossier_legislatif/[id].svelte b/src/routes/dossier_legislatif/[id].svelte index 6c64c85..b657003 100644 --- a/src/routes/dossier_legislatif/[id].svelte +++ b/src/routes/dossier_legislatif/[id].svelte @@ -2,7 +2,7 @@ import { TreeView, SummaryView } from "augmented-data-viewer" import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte" - import type { DossierLegislatif } from "$lib/data" + import type { DossierLegislatif } from "$lib/legal" import { summarizeDossierLegislatifProperties, summarizeLegalObject, diff --git a/src/routes/dossier_legislatif/[id].ts b/src/routes/dossier_legislatif/[id].ts index d75a1e0..0972005 100644 --- a/src/routes/dossier_legislatif/[id].ts +++ b/src/routes/dossier_legislatif/[id].ts @@ -1,7 +1,7 @@ import type { RequestHandler } from "@sveltejs/kit" import type { JSONObject } from "@sveltejs/kit/types/private" -import type { DossierLegislatif } from "$lib/data" +import type { DossierLegislatif } from "$lib/legal" import { db } from "$lib/server/database" export const GET: RequestHandler = async ({ params }) => { diff --git a/src/routes/dossier_legislatif/index.svelte b/src/routes/dossier_legislatif/index.svelte index 8e2c078..831ab85 100644 --- a/src/routes/dossier_legislatif/index.svelte +++ b/src/routes/dossier_legislatif/index.svelte @@ -6,7 +6,7 @@ // import { page } from "$app/stores" import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte" import Pagination from "$lib/components/Pagination.svelte" - import type { DossierLegislatif } from "$lib/data" + import type { DossierLegislatif } from "$lib/legal" import { summarizeDossierLegislatifProperties } from "$lib/summaries" let dossiersLegislatifs: DossierLegislatif[] diff --git a/src/routes/dossier_legislatif/index.ts b/src/routes/dossier_legislatif/index.ts index d84cdb7..6a6d2a1 100644 --- a/src/routes/dossier_legislatif/index.ts +++ b/src/routes/dossier_legislatif/index.ts @@ -3,7 +3,7 @@ import type { RequestHandler } from "@sveltejs/kit" import type { JSONObject } from "@sveltejs/kit/types/private" import { auditSearchQueryContent } from "$lib/auditors/queries" -import type { DossierLegislatif } from "$lib/data" +import type { DossierLegislatif } from "$lib/legal" import { db } from "$lib/server/database" export function auditQuery( diff --git a/src/routes/id/[...eli].svelte b/src/routes/id/[...eli].svelte index d4d760f..d3df1ad 100644 --- a/src/routes/id/[...eli].svelte +++ b/src/routes/id/[...eli].svelte @@ -2,7 +2,7 @@ import { TreeView, SummaryView } from "augmented-data-viewer" import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte" - import type { IdWrapper } from "$lib/data" + import type { IdWrapper } from "$lib/legal" import { summarizeIdWrapperProperties, summarizeLegalObject, diff --git a/src/routes/id/[...eli].ts b/src/routes/id/[...eli].ts index bd7be10..f9581f4 100644 --- a/src/routes/id/[...eli].ts +++ b/src/routes/id/[...eli].ts @@ -1,7 +1,7 @@ import type { RequestHandler } from "@sveltejs/kit" import type { JSONObject } from "@sveltejs/kit/types/private" -import type { IdWrapper } from "$lib/data" +import type { IdWrapper } from "$lib/legal" import { db } from "$lib/server/database" export const GET: RequestHandler = async ({ params }) => { diff --git a/src/routes/id/index.svelte b/src/routes/id/index.svelte index cb9f5b6..dd8db03 100644 --- a/src/routes/id/index.svelte +++ b/src/routes/id/index.svelte @@ -6,7 +6,7 @@ // import { page } from "$app/stores" import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte" import Pagination from "$lib/components/Pagination.svelte" - import type { IdWrapper } from "$lib/data" + import type { IdWrapper } from "$lib/legal" import { summarizeIdWrapperProperties } from "$lib/summaries" let idsWrapper: IdWrapper[] diff --git a/src/routes/id/index.ts b/src/routes/id/index.ts index eef25fa..64a22b9 100644 --- a/src/routes/id/index.ts +++ b/src/routes/id/index.ts @@ -3,7 +3,7 @@ import type { RequestHandler } from "@sveltejs/kit" import type { JSONObject } from "@sveltejs/kit/types/private" import { auditSearchQueryContent } from "$lib/auditors/queries" -import type { IdWrapper } from "$lib/data" +import type { IdWrapper } from "$lib/legal" import { db } from "$lib/server/database" export function auditQuery( diff --git a/src/routes/idcc/[id].svelte b/src/routes/idcc/[id].svelte index 6a58524..f746f60 100644 --- a/src/routes/idcc/[id].svelte +++ b/src/routes/idcc/[id].svelte @@ -2,7 +2,7 @@ import { TreeView, SummaryView } from "augmented-data-viewer" import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte" - import type { Idcc } from "$lib/data" + import type { Idcc } from "$lib/legal" import { summarizeIdccProperties, summarizeLegalObject } from "$lib/summaries" export let error: unknown diff --git a/src/routes/idcc/[id].ts b/src/routes/idcc/[id].ts index 94a1c49..fe4ca05 100644 --- a/src/routes/idcc/[id].ts +++ b/src/routes/idcc/[id].ts @@ -1,7 +1,7 @@ import type { RequestHandler } from "@sveltejs/kit" import type { JSONObject } from "@sveltejs/kit/types/private" -import type { Idcc } from "$lib/data" +import type { Idcc } from "$lib/legal" import { db } from "$lib/server/database" export const GET: RequestHandler = async ({ params }) => { diff --git a/src/routes/idcc/index.svelte b/src/routes/idcc/index.svelte index 8a11403..3147f5a 100644 --- a/src/routes/idcc/index.svelte +++ b/src/routes/idcc/index.svelte @@ -6,7 +6,7 @@ // import { page } from "$app/stores" import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte" import Pagination from "$lib/components/Pagination.svelte" - import type { Idcc } from "$lib/data" + import type { Idcc } from "$lib/legal" import { summarizeIdccProperties } from "$lib/summaries" export let error: unknown diff --git a/src/routes/idcc/index.ts b/src/routes/idcc/index.ts index 1ef6c8a..723545c 100644 --- a/src/routes/idcc/index.ts +++ b/src/routes/idcc/index.ts @@ -3,7 +3,7 @@ import type { RequestHandler } from "@sveltejs/kit" import type { JSONObject } from "@sveltejs/kit/types/private" import { auditSearchQueryContent } from "$lib/auditors/queries" -import type { Idcc } from "$lib/data" +import type { Idcc } from "$lib/legal" import { db } from "$lib/server/database" export function auditQuery( diff --git a/src/routes/jo/[id].svelte b/src/routes/jo/[id].svelte index bd154f6..7f426af 100644 --- a/src/routes/jo/[id].svelte +++ b/src/routes/jo/[id].svelte @@ -2,7 +2,7 @@ import { TreeView, SummaryView } from "augmented-data-viewer" import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte" - import type { Jo } from "$lib/data" + import type { Jo } from "$lib/legal" import { summarizeJoProperties, summarizeLegalObject } from "$lib/summaries" export let error: unknown diff --git a/src/routes/jo/[id].ts b/src/routes/jo/[id].ts index e6b237e..dd700b5 100644 --- a/src/routes/jo/[id].ts +++ b/src/routes/jo/[id].ts @@ -1,7 +1,7 @@ import type { RequestHandler } from "@sveltejs/kit" import type { JSONObject } from "@sveltejs/kit/types/private" -import type { Jo } from "$lib/data" +import type { Jo } from "$lib/legal" import { db } from "$lib/server/database" export const GET: RequestHandler = async ({ params }) => { diff --git a/src/routes/jo/index.svelte b/src/routes/jo/index.svelte index 612f25b..f7dcae4 100644 --- a/src/routes/jo/index.svelte +++ b/src/routes/jo/index.svelte @@ -6,7 +6,7 @@ // import { page } from "$app/stores" import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte" import Pagination from "$lib/components/Pagination.svelte" - import type { Jo } from "$lib/data" + import type { Jo } from "$lib/legal" import { summarizeJoProperties } from "$lib/summaries" export let error: unknown diff --git a/src/routes/jo/index.ts b/src/routes/jo/index.ts index 24255e0..f5cc29e 100644 --- a/src/routes/jo/index.ts +++ b/src/routes/jo/index.ts @@ -3,7 +3,7 @@ import type { RequestHandler } from "@sveltejs/kit" import type { JSONObject } from "@sveltejs/kit/types/private" import { auditSearchQueryContent } from "$lib/auditors/queries" -import type { Jo } from "$lib/data" +import type { Jo } from "$lib/legal" import { db } from "$lib/server/database" export function auditQuery( diff --git a/src/routes/recherche/index.ts b/src/routes/recherche/index.ts index 675694c..a1ff55e 100644 --- a/src/routes/recherche/index.ts +++ b/src/routes/recherche/index.ts @@ -3,7 +3,7 @@ import type { RequestHandler } from "@sveltejs/kit" import type { JSONObject } from "@sveltejs/kit/types/private" import { auditSearchQueryContent } from "$lib/auditors/queries" -import type { Article } from "$lib/data" +import type { Article } from "$lib/legal" import { db } from "$lib/server/database" export function auditQuery( diff --git a/src/routes/section_ta/[id].svelte b/src/routes/section_ta/[id].svelte index 91a2648..6a02471 100644 --- a/src/routes/section_ta/[id].svelte +++ b/src/routes/section_ta/[id].svelte @@ -2,7 +2,7 @@ import { TreeView, SummaryView } from "augmented-data-viewer" import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte" - import type { SectionTa } from "$lib/data" + import type { SectionTa } from "$lib/legal" import { summarizeSectionTaProperties, summarizeLegalObject, diff --git a/src/routes/section_ta/[id].ts b/src/routes/section_ta/[id].ts index 83c190e..4690abd 100644 --- a/src/routes/section_ta/[id].ts +++ b/src/routes/section_ta/[id].ts @@ -1,7 +1,7 @@ import type { RequestHandler } from "@sveltejs/kit" import type { JSONObject } from "@sveltejs/kit/types/private" -import type { SectionTa } from "$lib/data" +import type { SectionTa } from "$lib/legal" import { db } from "$lib/server/database" export const GET: RequestHandler = async ({ params }) => { diff --git a/src/routes/section_ta/index.svelte b/src/routes/section_ta/index.svelte index c76bfdf..31870c1 100644 --- a/src/routes/section_ta/index.svelte +++ b/src/routes/section_ta/index.svelte @@ -6,7 +6,7 @@ // import { page } from "$app/stores" import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte" import Pagination from "$lib/components/Pagination.svelte" - import type { SectionTa } from "$lib/data" + import type { SectionTa } from "$lib/legal" import { summarizeSectionTaProperties } from "$lib/summaries" export let error: unknown diff --git a/src/routes/section_ta/index.ts b/src/routes/section_ta/index.ts index 839ddf3..4ecfea0 100644 --- a/src/routes/section_ta/index.ts +++ b/src/routes/section_ta/index.ts @@ -3,7 +3,7 @@ import type { RequestHandler } from "@sveltejs/kit" import type { JSONObject } from "@sveltejs/kit/types/private" import { auditSearchQueryContent } from "$lib/auditors/queries" -import type { SectionTa } from "$lib/data" +import type { SectionTa } from "$lib/legal" import { db } from "$lib/server/database" export function auditQuery( diff --git a/src/routes/texte_version/[id].svelte b/src/routes/texte_version/[id].svelte index 79f923b..0095b7d 100644 --- a/src/routes/texte_version/[id].svelte +++ b/src/routes/texte_version/[id].svelte @@ -2,7 +2,7 @@ import { TreeView, SummaryView } from "augmented-data-viewer" import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte" - import type { TexteVersion } from "$lib/data" + import type { TexteVersion } from "$lib/legal" import { summarizeTexteVersionProperties, summarizeLegalObject, diff --git a/src/routes/texte_version/[id].ts b/src/routes/texte_version/[id].ts index a220461..dfe9b35 100644 --- a/src/routes/texte_version/[id].ts +++ b/src/routes/texte_version/[id].ts @@ -1,7 +1,7 @@ import type { RequestHandler } from "@sveltejs/kit" import type { JSONObject } from "@sveltejs/kit/types/private" -import type { TexteVersion } from "$lib/data" +import type { TexteVersion } from "$lib/legal" import { db } from "$lib/server/database" export const GET: RequestHandler = async ({ params }) => { diff --git a/src/routes/texte_version/index.svelte b/src/routes/texte_version/index.svelte index fc7f231..4abce6b 100644 --- a/src/routes/texte_version/index.svelte +++ b/src/routes/texte_version/index.svelte @@ -6,7 +6,7 @@ // import { page } from "$app/stores" import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte" import Pagination from "$lib/components/Pagination.svelte" - import type { TexteVersion } from "$lib/data" + import type { TexteVersion } from "$lib/legal" import { summarizeTexteVersionProperties } from "$lib/summaries" export let error: unknown diff --git a/src/routes/texte_version/index.ts b/src/routes/texte_version/index.ts index b62685d..4ba96ff 100644 --- a/src/routes/texte_version/index.ts +++ b/src/routes/texte_version/index.ts @@ -3,7 +3,7 @@ import type { RequestHandler } from "@sveltejs/kit" import type { JSONObject } from "@sveltejs/kit/types/private" import { auditSearchQueryContent } from "$lib/auditors/queries" -import type { TexteVersion } from "$lib/data" +import type { TexteVersion } from "$lib/legal" import { db } from "$lib/server/database" export function auditQuery( diff --git a/src/routes/textekali/[id].svelte b/src/routes/textekali/[id].svelte index dcf2313..467bda3 100644 --- a/src/routes/textekali/[id].svelte +++ b/src/routes/textekali/[id].svelte @@ -2,7 +2,7 @@ import { TreeView, SummaryView } from "augmented-data-viewer" import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte" - import type { Textekali } from "$lib/data" + import type { Textekali } from "$lib/legal" import { summarizeTextekaliProperties, summarizeLegalObject, diff --git a/src/routes/textekali/[id].ts b/src/routes/textekali/[id].ts index 557b479..835c1fb 100644 --- a/src/routes/textekali/[id].ts +++ b/src/routes/textekali/[id].ts @@ -1,7 +1,7 @@ import type { RequestHandler } from "@sveltejs/kit" import type { JSONObject } from "@sveltejs/kit/types/private" -import type { Textekali } from "$lib/data" +import type { Textekali } from "$lib/legal" import { db } from "$lib/server/database" export const GET: RequestHandler = async ({ params }) => { diff --git a/src/routes/textekali/index.svelte b/src/routes/textekali/index.svelte index e353b0c..44053cf 100644 --- a/src/routes/textekali/index.svelte +++ b/src/routes/textekali/index.svelte @@ -6,7 +6,7 @@ // import { page } from "$app/stores" import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte" import Pagination from "$lib/components/Pagination.svelte" - import type { Textekali } from "$lib/data" + import type { Textekali } from "$lib/legal" import { summarizeTextekaliProperties } from "$lib/summaries" export let error: unknown diff --git a/src/routes/textekali/index.ts b/src/routes/textekali/index.ts index 1e2cb9d..5f06d97 100644 --- a/src/routes/textekali/index.ts +++ b/src/routes/textekali/index.ts @@ -3,7 +3,7 @@ import type { RequestHandler } from "@sveltejs/kit" import type { JSONObject } from "@sveltejs/kit/types/private" import { auditSearchQueryContent } from "$lib/auditors/queries" -import type { Textekali } from "$lib/data" +import type { Textekali } from "$lib/legal" import { db } from "$lib/server/database" export function auditQuery( diff --git a/src/routes/textelr/[id].svelte b/src/routes/textelr/[id].svelte index bd3afc3..94bb743 100644 --- a/src/routes/textelr/[id].svelte +++ b/src/routes/textelr/[id].svelte @@ -2,7 +2,7 @@ import { TreeView, SummaryView } from "augmented-data-viewer" import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte" - import type { Textelr } from "$lib/data" + import type { Textelr } from "$lib/legal" import { summarizeTextelrProperties, summarizeLegalObject, diff --git a/src/routes/textelr/[id].ts b/src/routes/textelr/[id].ts index 7e2fe99..ed63ce6 100644 --- a/src/routes/textelr/[id].ts +++ b/src/routes/textelr/[id].ts @@ -1,7 +1,7 @@ import type { RequestHandler } from "@sveltejs/kit" import type { JSONObject } from "@sveltejs/kit/types/private" -import type { Textelr } from "$lib/data" +import type { Textelr } from "$lib/legal" import { db } from "$lib/server/database" export const GET: RequestHandler = async ({ params }) => { diff --git a/src/routes/textelr/index.svelte b/src/routes/textelr/index.svelte index cc043bb..a62bc53 100644 --- a/src/routes/textelr/index.svelte +++ b/src/routes/textelr/index.svelte @@ -6,7 +6,7 @@ // import { page } from "$app/stores" import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte" import Pagination from "$lib/components/Pagination.svelte" - import type { Textelr } from "$lib/data" + import type { Textelr } from "$lib/legal" import { summarizeTextelrProperties } from "$lib/summaries" export let error: unknown diff --git a/src/routes/textelr/index.ts b/src/routes/textelr/index.ts index e8a2b6c..7c12e57 100644 --- a/src/routes/textelr/index.ts +++ b/src/routes/textelr/index.ts @@ -3,7 +3,7 @@ import type { RequestHandler } from "@sveltejs/kit" import type { JSONObject } from "@sveltejs/kit/types/private" import { auditSearchQueryContent } from "$lib/auditors/queries" -import type { Textelr } from "$lib/data" +import type { Textelr } from "$lib/legal" import { db } from "$lib/server/database" export function auditQuery( diff --git a/src/routes/versions/[...eli].svelte b/src/routes/versions/[...eli].svelte index c519f58..61b4475 100644 --- a/src/routes/versions/[...eli].svelte +++ b/src/routes/versions/[...eli].svelte @@ -2,7 +2,7 @@ import { TreeView, SummaryView } from "augmented-data-viewer" import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte" - import type { VersionsWrapper } from "$lib/data" + import type { VersionsWrapper } from "$lib/legal" import { summarizeVersionsWrapperProperties, summarizeLegalObject, diff --git a/src/routes/versions/[...eli].ts b/src/routes/versions/[...eli].ts index e01cbfc..d08db5c 100644 --- a/src/routes/versions/[...eli].ts +++ b/src/routes/versions/[...eli].ts @@ -1,7 +1,7 @@ import type { RequestHandler } from "@sveltejs/kit" import type { JSONObject } from "@sveltejs/kit/types/private" -import type { VersionsWrapper } from "$lib/data" +import type { VersionsWrapper } from "$lib/legal" import { db } from "$lib/server/database" export const GET: RequestHandler = async ({ params }) => { diff --git a/src/routes/versions/index.svelte b/src/routes/versions/index.svelte index 4773e66..4333786 100644 --- a/src/routes/versions/index.svelte +++ b/src/routes/versions/index.svelte @@ -6,7 +6,7 @@ // import { page } from "$app/stores" import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte" import Pagination from "$lib/components/Pagination.svelte" - import type { VersionsWrapper } from "$lib/data" + import type { VersionsWrapper } from "$lib/legal" import { summarizeVersionsWrapperProperties } from "$lib/summaries" let versionsWrapper: VersionsWrapper[] diff --git a/src/routes/versions/index.ts b/src/routes/versions/index.ts index 213fede..bd5cfb4 100644 --- a/src/routes/versions/index.ts +++ b/src/routes/versions/index.ts @@ -3,7 +3,7 @@ import type { RequestHandler } from "@sveltejs/kit" import type { JSONObject } from "@sveltejs/kit/types/private" import { auditSearchQueryContent } from "$lib/auditors/queries" -import type { VersionsWrapper } from "$lib/data" +import type { VersionsWrapper } from "$lib/legal" import { db } from "$lib/server/database" export function auditQuery(