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 type { JSONValue } from "postgres"
|
||||||
import sade from "sade"
|
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 { db } from "$lib/server/database"
|
||||||
import { walkDir } from "$lib/server/file_systems"
|
import { walkDir } from "$lib/server/file_systems"
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ import type {
|
||||||
TexteVersion,
|
TexteVersion,
|
||||||
Versions,
|
Versions,
|
||||||
XmlHeader,
|
XmlHeader,
|
||||||
} from "$lib/data"
|
} from "$lib/legal"
|
||||||
import { db } from "$lib/server/database"
|
import { db } from "$lib/server/database"
|
||||||
import { walkDir } from "$lib/server/file_systems"
|
import { walkDir } from "$lib/server/file_systems"
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ import type {
|
||||||
Textelr,
|
Textelr,
|
||||||
TexteVersion,
|
TexteVersion,
|
||||||
XmlHeader,
|
XmlHeader,
|
||||||
} from "$lib/data"
|
} from "$lib/legal"
|
||||||
import { db } from "$lib/server/database"
|
import { db } from "$lib/server/database"
|
||||||
import { walkDir } from "$lib/server/file_systems"
|
import { walkDir } from "$lib/server/file_systems"
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ import type {
|
||||||
TexteVersion,
|
TexteVersion,
|
||||||
Versions,
|
Versions,
|
||||||
XmlHeader,
|
XmlHeader,
|
||||||
} from "$lib/data"
|
} from "$lib/legal"
|
||||||
import { db } from "$lib/server/database"
|
import { db } from "$lib/server/database"
|
||||||
import { walkDir } from "$lib/server/file_systems"
|
import { walkDir } from "$lib/server/file_systems"
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ import {
|
||||||
type LienArt,
|
type LienArt,
|
||||||
type VersionsWrapper,
|
type VersionsWrapper,
|
||||||
type DossierLegislatif,
|
type DossierLegislatif,
|
||||||
} from "$lib/data"
|
} from "$lib/legal"
|
||||||
|
|
||||||
export const summarizeArticleProperties: Summarizer = (access, value) => {
|
export const summarizeArticleProperties: Summarizer = (access, value) => {
|
||||||
if (access?.key === "article" && typeof value !== "number") {
|
if (access?.key === "article" && typeof value !== "number") {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import { TreeView, SummaryView } from "augmented-data-viewer"
|
import { TreeView, SummaryView } from "augmented-data-viewer"
|
||||||
|
|
||||||
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
||||||
import type { Article } from "$lib/data"
|
import type { Article } from "$lib/legal"
|
||||||
import {
|
import {
|
||||||
summarizeArticleProperties,
|
summarizeArticleProperties,
|
||||||
summarizeLegalObject,
|
summarizeLegalObject,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import type { RequestHandler } from "@sveltejs/kit"
|
import type { RequestHandler } from "@sveltejs/kit"
|
||||||
import type { JSONObject } from "@sveltejs/kit/types/private"
|
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"
|
import { db } from "$lib/server/database"
|
||||||
|
|
||||||
export const GET: RequestHandler = async ({ params }) => {
|
export const GET: RequestHandler = async ({ params }) => {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
// import { page } from "$app/stores"
|
// import { page } from "$app/stores"
|
||||||
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
||||||
import Pagination from "$lib/components/Pagination.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"
|
import { summarizeArticleProperties } from "$lib/summaries"
|
||||||
|
|
||||||
let articles: Article[]
|
let articles: Article[]
|
||||||
|
|
|
@ -3,7 +3,7 @@ import type { RequestHandler } from "@sveltejs/kit"
|
||||||
import type { JSONObject } from "@sveltejs/kit/types/private"
|
import type { JSONObject } from "@sveltejs/kit/types/private"
|
||||||
|
|
||||||
import { auditSearchQueryContent } from "$lib/auditors/queries"
|
import { auditSearchQueryContent } from "$lib/auditors/queries"
|
||||||
import type { Article } from "$lib/data"
|
import type { Article } from "$lib/legal"
|
||||||
import { db } from "$lib/server/database"
|
import { db } from "$lib/server/database"
|
||||||
|
|
||||||
export function auditQuery(
|
export function auditQuery(
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import { TreeView, SummaryView } from "augmented-data-viewer"
|
import { TreeView, SummaryView } from "augmented-data-viewer"
|
||||||
|
|
||||||
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
||||||
import type { DossierLegislatif } from "$lib/data"
|
import type { DossierLegislatif } from "$lib/legal"
|
||||||
import {
|
import {
|
||||||
summarizeDossierLegislatifProperties,
|
summarizeDossierLegislatifProperties,
|
||||||
summarizeLegalObject,
|
summarizeLegalObject,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import type { RequestHandler } from "@sveltejs/kit"
|
import type { RequestHandler } from "@sveltejs/kit"
|
||||||
import type { JSONObject } from "@sveltejs/kit/types/private"
|
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"
|
import { db } from "$lib/server/database"
|
||||||
|
|
||||||
export const GET: RequestHandler = async ({ params }) => {
|
export const GET: RequestHandler = async ({ params }) => {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
// import { page } from "$app/stores"
|
// import { page } from "$app/stores"
|
||||||
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
||||||
import Pagination from "$lib/components/Pagination.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"
|
import { summarizeDossierLegislatifProperties } from "$lib/summaries"
|
||||||
|
|
||||||
let dossiersLegislatifs: DossierLegislatif[]
|
let dossiersLegislatifs: DossierLegislatif[]
|
||||||
|
|
|
@ -3,7 +3,7 @@ import type { RequestHandler } from "@sveltejs/kit"
|
||||||
import type { JSONObject } from "@sveltejs/kit/types/private"
|
import type { JSONObject } from "@sveltejs/kit/types/private"
|
||||||
|
|
||||||
import { auditSearchQueryContent } from "$lib/auditors/queries"
|
import { auditSearchQueryContent } from "$lib/auditors/queries"
|
||||||
import type { DossierLegislatif } from "$lib/data"
|
import type { DossierLegislatif } from "$lib/legal"
|
||||||
import { db } from "$lib/server/database"
|
import { db } from "$lib/server/database"
|
||||||
|
|
||||||
export function auditQuery(
|
export function auditQuery(
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import { TreeView, SummaryView } from "augmented-data-viewer"
|
import { TreeView, SummaryView } from "augmented-data-viewer"
|
||||||
|
|
||||||
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
||||||
import type { IdWrapper } from "$lib/data"
|
import type { IdWrapper } from "$lib/legal"
|
||||||
import {
|
import {
|
||||||
summarizeIdWrapperProperties,
|
summarizeIdWrapperProperties,
|
||||||
summarizeLegalObject,
|
summarizeLegalObject,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import type { RequestHandler } from "@sveltejs/kit"
|
import type { RequestHandler } from "@sveltejs/kit"
|
||||||
import type { JSONObject } from "@sveltejs/kit/types/private"
|
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"
|
import { db } from "$lib/server/database"
|
||||||
|
|
||||||
export const GET: RequestHandler = async ({ params }) => {
|
export const GET: RequestHandler = async ({ params }) => {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
// import { page } from "$app/stores"
|
// import { page } from "$app/stores"
|
||||||
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
||||||
import Pagination from "$lib/components/Pagination.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"
|
import { summarizeIdWrapperProperties } from "$lib/summaries"
|
||||||
|
|
||||||
let idsWrapper: IdWrapper[]
|
let idsWrapper: IdWrapper[]
|
||||||
|
|
|
@ -3,7 +3,7 @@ import type { RequestHandler } from "@sveltejs/kit"
|
||||||
import type { JSONObject } from "@sveltejs/kit/types/private"
|
import type { JSONObject } from "@sveltejs/kit/types/private"
|
||||||
|
|
||||||
import { auditSearchQueryContent } from "$lib/auditors/queries"
|
import { auditSearchQueryContent } from "$lib/auditors/queries"
|
||||||
import type { IdWrapper } from "$lib/data"
|
import type { IdWrapper } from "$lib/legal"
|
||||||
import { db } from "$lib/server/database"
|
import { db } from "$lib/server/database"
|
||||||
|
|
||||||
export function auditQuery(
|
export function auditQuery(
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import { TreeView, SummaryView } from "augmented-data-viewer"
|
import { TreeView, SummaryView } from "augmented-data-viewer"
|
||||||
|
|
||||||
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
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"
|
import { summarizeIdccProperties, summarizeLegalObject } from "$lib/summaries"
|
||||||
|
|
||||||
export let error: unknown
|
export let error: unknown
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import type { RequestHandler } from "@sveltejs/kit"
|
import type { RequestHandler } from "@sveltejs/kit"
|
||||||
import type { JSONObject } from "@sveltejs/kit/types/private"
|
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"
|
import { db } from "$lib/server/database"
|
||||||
|
|
||||||
export const GET: RequestHandler = async ({ params }) => {
|
export const GET: RequestHandler = async ({ params }) => {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
// import { page } from "$app/stores"
|
// import { page } from "$app/stores"
|
||||||
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
||||||
import Pagination from "$lib/components/Pagination.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"
|
import { summarizeIdccProperties } from "$lib/summaries"
|
||||||
|
|
||||||
export let error: unknown
|
export let error: unknown
|
||||||
|
|
|
@ -3,7 +3,7 @@ import type { RequestHandler } from "@sveltejs/kit"
|
||||||
import type { JSONObject } from "@sveltejs/kit/types/private"
|
import type { JSONObject } from "@sveltejs/kit/types/private"
|
||||||
|
|
||||||
import { auditSearchQueryContent } from "$lib/auditors/queries"
|
import { auditSearchQueryContent } from "$lib/auditors/queries"
|
||||||
import type { Idcc } from "$lib/data"
|
import type { Idcc } from "$lib/legal"
|
||||||
import { db } from "$lib/server/database"
|
import { db } from "$lib/server/database"
|
||||||
|
|
||||||
export function auditQuery(
|
export function auditQuery(
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import { TreeView, SummaryView } from "augmented-data-viewer"
|
import { TreeView, SummaryView } from "augmented-data-viewer"
|
||||||
|
|
||||||
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
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"
|
import { summarizeJoProperties, summarizeLegalObject } from "$lib/summaries"
|
||||||
|
|
||||||
export let error: unknown
|
export let error: unknown
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import type { RequestHandler } from "@sveltejs/kit"
|
import type { RequestHandler } from "@sveltejs/kit"
|
||||||
import type { JSONObject } from "@sveltejs/kit/types/private"
|
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"
|
import { db } from "$lib/server/database"
|
||||||
|
|
||||||
export const GET: RequestHandler = async ({ params }) => {
|
export const GET: RequestHandler = async ({ params }) => {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
// import { page } from "$app/stores"
|
// import { page } from "$app/stores"
|
||||||
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
||||||
import Pagination from "$lib/components/Pagination.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"
|
import { summarizeJoProperties } from "$lib/summaries"
|
||||||
|
|
||||||
export let error: unknown
|
export let error: unknown
|
||||||
|
|
|
@ -3,7 +3,7 @@ import type { RequestHandler } from "@sveltejs/kit"
|
||||||
import type { JSONObject } from "@sveltejs/kit/types/private"
|
import type { JSONObject } from "@sveltejs/kit/types/private"
|
||||||
|
|
||||||
import { auditSearchQueryContent } from "$lib/auditors/queries"
|
import { auditSearchQueryContent } from "$lib/auditors/queries"
|
||||||
import type { Jo } from "$lib/data"
|
import type { Jo } from "$lib/legal"
|
||||||
import { db } from "$lib/server/database"
|
import { db } from "$lib/server/database"
|
||||||
|
|
||||||
export function auditQuery(
|
export function auditQuery(
|
||||||
|
|
|
@ -3,7 +3,7 @@ import type { RequestHandler } from "@sveltejs/kit"
|
||||||
import type { JSONObject } from "@sveltejs/kit/types/private"
|
import type { JSONObject } from "@sveltejs/kit/types/private"
|
||||||
|
|
||||||
import { auditSearchQueryContent } from "$lib/auditors/queries"
|
import { auditSearchQueryContent } from "$lib/auditors/queries"
|
||||||
import type { Article } from "$lib/data"
|
import type { Article } from "$lib/legal"
|
||||||
import { db } from "$lib/server/database"
|
import { db } from "$lib/server/database"
|
||||||
|
|
||||||
export function auditQuery(
|
export function auditQuery(
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import { TreeView, SummaryView } from "augmented-data-viewer"
|
import { TreeView, SummaryView } from "augmented-data-viewer"
|
||||||
|
|
||||||
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
||||||
import type { SectionTa } from "$lib/data"
|
import type { SectionTa } from "$lib/legal"
|
||||||
import {
|
import {
|
||||||
summarizeSectionTaProperties,
|
summarizeSectionTaProperties,
|
||||||
summarizeLegalObject,
|
summarizeLegalObject,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import type { RequestHandler } from "@sveltejs/kit"
|
import type { RequestHandler } from "@sveltejs/kit"
|
||||||
import type { JSONObject } from "@sveltejs/kit/types/private"
|
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"
|
import { db } from "$lib/server/database"
|
||||||
|
|
||||||
export const GET: RequestHandler = async ({ params }) => {
|
export const GET: RequestHandler = async ({ params }) => {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
// import { page } from "$app/stores"
|
// import { page } from "$app/stores"
|
||||||
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
||||||
import Pagination from "$lib/components/Pagination.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"
|
import { summarizeSectionTaProperties } from "$lib/summaries"
|
||||||
|
|
||||||
export let error: unknown
|
export let error: unknown
|
||||||
|
|
|
@ -3,7 +3,7 @@ import type { RequestHandler } from "@sveltejs/kit"
|
||||||
import type { JSONObject } from "@sveltejs/kit/types/private"
|
import type { JSONObject } from "@sveltejs/kit/types/private"
|
||||||
|
|
||||||
import { auditSearchQueryContent } from "$lib/auditors/queries"
|
import { auditSearchQueryContent } from "$lib/auditors/queries"
|
||||||
import type { SectionTa } from "$lib/data"
|
import type { SectionTa } from "$lib/legal"
|
||||||
import { db } from "$lib/server/database"
|
import { db } from "$lib/server/database"
|
||||||
|
|
||||||
export function auditQuery(
|
export function auditQuery(
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import { TreeView, SummaryView } from "augmented-data-viewer"
|
import { TreeView, SummaryView } from "augmented-data-viewer"
|
||||||
|
|
||||||
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
||||||
import type { TexteVersion } from "$lib/data"
|
import type { TexteVersion } from "$lib/legal"
|
||||||
import {
|
import {
|
||||||
summarizeTexteVersionProperties,
|
summarizeTexteVersionProperties,
|
||||||
summarizeLegalObject,
|
summarizeLegalObject,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import type { RequestHandler } from "@sveltejs/kit"
|
import type { RequestHandler } from "@sveltejs/kit"
|
||||||
import type { JSONObject } from "@sveltejs/kit/types/private"
|
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"
|
import { db } from "$lib/server/database"
|
||||||
|
|
||||||
export const GET: RequestHandler = async ({ params }) => {
|
export const GET: RequestHandler = async ({ params }) => {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
// import { page } from "$app/stores"
|
// import { page } from "$app/stores"
|
||||||
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
||||||
import Pagination from "$lib/components/Pagination.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"
|
import { summarizeTexteVersionProperties } from "$lib/summaries"
|
||||||
|
|
||||||
export let error: unknown
|
export let error: unknown
|
||||||
|
|
|
@ -3,7 +3,7 @@ import type { RequestHandler } from "@sveltejs/kit"
|
||||||
import type { JSONObject } from "@sveltejs/kit/types/private"
|
import type { JSONObject } from "@sveltejs/kit/types/private"
|
||||||
|
|
||||||
import { auditSearchQueryContent } from "$lib/auditors/queries"
|
import { auditSearchQueryContent } from "$lib/auditors/queries"
|
||||||
import type { TexteVersion } from "$lib/data"
|
import type { TexteVersion } from "$lib/legal"
|
||||||
import { db } from "$lib/server/database"
|
import { db } from "$lib/server/database"
|
||||||
|
|
||||||
export function auditQuery(
|
export function auditQuery(
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import { TreeView, SummaryView } from "augmented-data-viewer"
|
import { TreeView, SummaryView } from "augmented-data-viewer"
|
||||||
|
|
||||||
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
||||||
import type { Textekali } from "$lib/data"
|
import type { Textekali } from "$lib/legal"
|
||||||
import {
|
import {
|
||||||
summarizeTextekaliProperties,
|
summarizeTextekaliProperties,
|
||||||
summarizeLegalObject,
|
summarizeLegalObject,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import type { RequestHandler } from "@sveltejs/kit"
|
import type { RequestHandler } from "@sveltejs/kit"
|
||||||
import type { JSONObject } from "@sveltejs/kit/types/private"
|
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"
|
import { db } from "$lib/server/database"
|
||||||
|
|
||||||
export const GET: RequestHandler = async ({ params }) => {
|
export const GET: RequestHandler = async ({ params }) => {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
// import { page } from "$app/stores"
|
// import { page } from "$app/stores"
|
||||||
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
||||||
import Pagination from "$lib/components/Pagination.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"
|
import { summarizeTextekaliProperties } from "$lib/summaries"
|
||||||
|
|
||||||
export let error: unknown
|
export let error: unknown
|
||||||
|
|
|
@ -3,7 +3,7 @@ import type { RequestHandler } from "@sveltejs/kit"
|
||||||
import type { JSONObject } from "@sveltejs/kit/types/private"
|
import type { JSONObject } from "@sveltejs/kit/types/private"
|
||||||
|
|
||||||
import { auditSearchQueryContent } from "$lib/auditors/queries"
|
import { auditSearchQueryContent } from "$lib/auditors/queries"
|
||||||
import type { Textekali } from "$lib/data"
|
import type { Textekali } from "$lib/legal"
|
||||||
import { db } from "$lib/server/database"
|
import { db } from "$lib/server/database"
|
||||||
|
|
||||||
export function auditQuery(
|
export function auditQuery(
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import { TreeView, SummaryView } from "augmented-data-viewer"
|
import { TreeView, SummaryView } from "augmented-data-viewer"
|
||||||
|
|
||||||
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
||||||
import type { Textelr } from "$lib/data"
|
import type { Textelr } from "$lib/legal"
|
||||||
import {
|
import {
|
||||||
summarizeTextelrProperties,
|
summarizeTextelrProperties,
|
||||||
summarizeLegalObject,
|
summarizeLegalObject,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import type { RequestHandler } from "@sveltejs/kit"
|
import type { RequestHandler } from "@sveltejs/kit"
|
||||||
import type { JSONObject } from "@sveltejs/kit/types/private"
|
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"
|
import { db } from "$lib/server/database"
|
||||||
|
|
||||||
export const GET: RequestHandler = async ({ params }) => {
|
export const GET: RequestHandler = async ({ params }) => {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
// import { page } from "$app/stores"
|
// import { page } from "$app/stores"
|
||||||
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
||||||
import Pagination from "$lib/components/Pagination.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"
|
import { summarizeTextelrProperties } from "$lib/summaries"
|
||||||
|
|
||||||
export let error: unknown
|
export let error: unknown
|
||||||
|
|
|
@ -3,7 +3,7 @@ import type { RequestHandler } from "@sveltejs/kit"
|
||||||
import type { JSONObject } from "@sveltejs/kit/types/private"
|
import type { JSONObject } from "@sveltejs/kit/types/private"
|
||||||
|
|
||||||
import { auditSearchQueryContent } from "$lib/auditors/queries"
|
import { auditSearchQueryContent } from "$lib/auditors/queries"
|
||||||
import type { Textelr } from "$lib/data"
|
import type { Textelr } from "$lib/legal"
|
||||||
import { db } from "$lib/server/database"
|
import { db } from "$lib/server/database"
|
||||||
|
|
||||||
export function auditQuery(
|
export function auditQuery(
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import { TreeView, SummaryView } from "augmented-data-viewer"
|
import { TreeView, SummaryView } from "augmented-data-viewer"
|
||||||
|
|
||||||
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
||||||
import type { VersionsWrapper } from "$lib/data"
|
import type { VersionsWrapper } from "$lib/legal"
|
||||||
import {
|
import {
|
||||||
summarizeVersionsWrapperProperties,
|
summarizeVersionsWrapperProperties,
|
||||||
summarizeLegalObject,
|
summarizeLegalObject,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import type { RequestHandler } from "@sveltejs/kit"
|
import type { RequestHandler } from "@sveltejs/kit"
|
||||||
import type { JSONObject } from "@sveltejs/kit/types/private"
|
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"
|
import { db } from "$lib/server/database"
|
||||||
|
|
||||||
export const GET: RequestHandler = async ({ params }) => {
|
export const GET: RequestHandler = async ({ params }) => {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
// import { page } from "$app/stores"
|
// import { page } from "$app/stores"
|
||||||
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
import ErrorAlert from "$lib/components/errors/ErrorAlert.svelte"
|
||||||
import Pagination from "$lib/components/Pagination.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"
|
import { summarizeVersionsWrapperProperties } from "$lib/summaries"
|
||||||
|
|
||||||
let versionsWrapper: VersionsWrapper[]
|
let versionsWrapper: VersionsWrapper[]
|
||||||
|
|
|
@ -3,7 +3,7 @@ import type { RequestHandler } from "@sveltejs/kit"
|
||||||
import type { JSONObject } from "@sveltejs/kit/types/private"
|
import type { JSONObject } from "@sveltejs/kit/types/private"
|
||||||
|
|
||||||
import { auditSearchQueryContent } from "$lib/auditors/queries"
|
import { auditSearchQueryContent } from "$lib/auditors/queries"
|
||||||
import type { VersionsWrapper } from "$lib/data"
|
import type { VersionsWrapper } from "$lib/legal"
|
||||||
import { db } from "$lib/server/database"
|
import { db } from "$lib/server/database"
|
||||||
|
|
||||||
export function auditQuery(
|
export function auditQuery(
|
||||||
|
|
Loading…
Reference in a new issue