Rename /data to /legal.
This commit is contained in:
parent
87df843b82
commit
d45fc414a9
47 changed files with 46 additions and 46 deletions
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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") {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 }) => {
|
||||
|
|
|
@ -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[]
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 }) => {
|
||||
|
|
|
@ -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[]
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 }) => {
|
||||
|
|
|
@ -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[]
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 }) => {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 }) => {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 }) => {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 }) => {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 }) => {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 }) => {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 }) => {
|
||||
|
|
|
@ -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[]
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue