Modify module & moduleResolution to nodenext to force local import to end with .js

This commit is contained in:
Emmanuel 2025-03-26 01:37:50 +01:00
parent bed44b3001
commit 6a3378dd31
123 changed files with 467 additions and 448 deletions

View file

@ -1,17 +1,16 @@
import type { DossierLegislatif } from "$lib/legal/dole.js"
import type {
Article,
DossierLegislatif,
Idcc,
Jo,
JorfArticle,
LegiArticle,
SectionTa,
Textekali,
Textelr,
TexteVersion,
Versions,
} from "$lib/legal"
import type { ArticleLienDb, TexteVersionLienDb } from "./legal/shared"
} from "$lib/legal/index.js"
import type { Jo, JorfArticle } from "$lib/legal/jorf.js"
import type { LegiArticle } from "$lib/legal/legi.js"
import type { ArticleLienDb, TexteVersionLienDb } from "$lib/legal/shared.js"
export interface Aggregate {
article?: { [id: string]: Article | JorfArticle | LegiArticle }

View file

@ -15,7 +15,7 @@ import {
type Audit,
} from "@auditors/core"
import { allDossierLegislatifTypes } from "$lib/legal/dole"
import { allDossierLegislatifTypes } from "$lib/legal/dole.js"
function auditArborescence(
audit: Audit,

View file

@ -14,13 +14,13 @@ import {
} from "@auditors/core"
import {
allArticleTypes,
allJorfArticleEtats,
allJorfArticleLienArticleOrigines,
allJorfArticleNatures,
allJorfArticleOrigines,
allJorfArticleTexteNatures,
} from "$lib/legal"
} from "$lib/legal/jorf.js"
import { allArticleTypes } from "$lib/legal/shared.js"
export const jorfArticleStats: {
// countByEtat: { [etat: string]: number }

View file

@ -1,5 +0,0 @@
export { auditJo, joStats } from "./jo"
export { auditJorfArticle, jorfArticleStats } from "./articles"
export { auditJorfSectionTa, jorfSectionTaStats } from "./section_ta"
export { auditJorfTextelr, jorfTextelrStats } from "./textelr"
export { auditJorfTexteVersion, jorfTexteVersionStats } from "./texte_version"

View file

@ -15,7 +15,7 @@ import {
type Audit,
} from "@auditors/core"
import { allJoNatures, allJoOrigines } from "$lib/legal"
import { allJoNatures, allJoOrigines } from "$lib/legal/jorf.js"
export const joStats: {
countByNature: { [nature: string]: number }

View file

@ -18,7 +18,7 @@ import {
allJorfSectionTaLienArtOrigines,
// allJorfSectionTaLienSectionTaEtats,
allJorfSectionTaTexteNatures,
} from "$lib/legal"
} from "$lib/legal/jorf.js"
export const jorfSectionTaStats: {
countByLienArtEtat: { [etat: string]: number }

View file

@ -18,10 +18,10 @@ import {
allJorfTexteVersionLienTypes,
allJorfTexteNatures,
allJorfTexteOrigines,
allSens,
} from "$lib/legal"
} from "$lib/legal/jorf.js"
import { allSens } from "$lib/legal/shared.js"
import { auditMetaTexteChronicle } from "./texte"
import { auditMetaTexteChronicle } from "./texte.js"
export const jorfTexteVersionStats: {
countByLienNature: { [nature: string]: number }

View file

@ -22,9 +22,9 @@ import {
allJorfTextelrLienArtOrigines,
allJorfTexteNatures,
allJorfTexteOrigines,
} from "$lib/legal"
} from "$lib/legal/jorf.js"
import { auditMetaTexteChronicle } from "./texte"
import { auditMetaTexteChronicle } from "./texte.js"
export const jorfTextelrStats: {
countByEtat: { [etat: string]: number }

View file

@ -12,15 +12,14 @@ import {
} from "@auditors/core"
import {
allArticleTypes,
allLegiArticleEtats,
allLegiArticleLienNatures,
allLegiArticleLienTypes,
allLegiArticleNatures,
allLegiArticleOrigines,
allLegiArticleTexteNatures,
allSens,
} from "$lib/legal"
} from "$lib/legal/legi.js"
import { allArticleTypes, allSens } from "$lib/legal/shared.js"
export const legiArticleStats: {
countByEtat: { [etat: string]: number }

View file

@ -1,4 +0,0 @@
export { auditLegiArticle, legiArticleStats } from "./articles"
export { auditLegiSectionTa, legiSectionTaStats } from "./section_ta"
export { auditLegiTextelr, legiTextelrStats } from "./textelr"
export { auditLegiTexteVersion, legiTexteVersionStats } from "./texte_version"

View file

@ -19,7 +19,7 @@ import {
allLegiSectionTaLienArtOrigines,
allLegiSectionTaLienSectionTaEtats,
allLegiSectionTaTexteNatures,
} from "$lib/legal"
} from "$lib/legal/legi.js"
export const legiSectionTaStats: {
countByLienArtEtat: { [etat: string]: number }

View file

@ -19,9 +19,9 @@ import {
allLegiTexteVersionLienTypes,
allLegiTexteNatures,
allLegiTexteOrigines,
allSens,
} from "$lib/legal"
import { auditMetaTexteChronicle } from "./texte"
} from "$lib/legal/legi.js"
import { allSens } from "$lib/legal/shared.js"
import { auditMetaTexteChronicle } from "./texte.js"
export const legiTexteVersionStats: {
countByEtat: { [etat: string]: number }

View file

@ -21,9 +21,9 @@ import {
allLegiTextelrLienSectionTaEtats,
allLegiTexteNatures,
allLegiTexteOrigines,
} from "$lib/legal"
} from "$lib/legal/legi.js"
import { auditMetaTexteChronicle } from "./texte"
import { auditMetaTexteChronicle } from "./texte.js"
export const legiTextelrStats: {
countByEtat: { [etat: string]: number }

View file

@ -17,7 +17,7 @@ import {
type Auditor,
} from "@auditors/core"
import { allFollows } from "$lib/aggregates"
import { allFollows } from "$lib/aggregates.js"
export function auditFollowQuery(
audit: Audit,

View file

@ -2,10 +2,10 @@
import { iterArrayOrSingleton } from "@tricoteuses/explorer-tools"
import { SummaryView } from "augmented-data-viewer"
import type { Aggregate } from "$lib/aggregates"
import type { Aggregate } from "$lib/aggregates.js"
import LienView from "$lib/components/LienView.svelte"
import type { Article } from "$lib/legal"
import { summarizeLegalObject } from "$lib/summaries"
import type { Article } from "$lib/legal/index.js"
import { summarizeLegalObject } from "$lib/summaries.js"
export let article: Article
export let data: Aggregate

View file

@ -1,7 +1,7 @@
<script lang="ts">
import { page } from "$app/stores"
import * as Tabs from "$lib/components/ui/tabs"
import { menuItemsFromLegalId } from "$lib/legal"
import * as Tabs from "$lib/components/ui/tabs/index.js"
import { menuItemsFromLegalId } from "$lib/legal/index.js"
export let id: string | undefined | null

View file

@ -1,7 +1,7 @@
<script lang="ts">
import { Minus, Triangle } from "lucide-svelte"
import type { Aggregate } from "$lib/aggregates"
import type { Aggregate } from "$lib/aggregates.js"
import ArticleView from "$lib/components/ArticleView.svelte"
import SectionTaView from "$lib/components/SectionTaView.svelte"
import TexteVersionView from "$lib/components/TexteVersionView.svelte"
@ -11,7 +11,7 @@
type Lien,
pathnameFromLegalId,
rootTypeFromLegalId,
} from "$lib/legal"
} from "$lib/legal/index.js"
export let data: Aggregate
export let level = 1

View file

@ -2,9 +2,9 @@
import { cleanAudit } from "@auditors/core"
import { page } from "$app/stores"
import { auditPaginationQuery } from "$lib/auditors/queries"
import type { PaginationQuery } from "$lib/queries"
import { urlFromUrlAndQuery } from "$lib/urls"
import { auditPaginationQuery } from "$lib/auditors/queries.js"
import type { PaginationQuery } from "$lib/queries.js"
import { urlFromUrlAndQuery } from "$lib/urls.js"
export let count: number | undefined | null = undefined // Count is not always known.
export let currentPageCount: number

View file

@ -1,10 +1,10 @@
<script lang="ts">
import { iterArrayOrSingleton } from "@tricoteuses/explorer-tools"
import type { Aggregate } from "$lib/aggregates"
import type { Aggregate } from "$lib/aggregates.js"
import ArticleView from "$lib/components/ArticleView.svelte"
import { pathnameFromLegalId, type SectionTa } from "$lib/legal"
import { summarizeLegalObject } from "$lib/summaries"
import { pathnameFromLegalId, type SectionTa } from "$lib/legal/index.js"
import { summarizeLegalObject } from "$lib/summaries.js"
export let data: Aggregate
export let level = 1

View file

@ -1,10 +1,10 @@
<script lang="ts">
import { SummaryView } from "augmented-data-viewer"
import type { Aggregate } from "$lib/aggregates"
import type { Aggregate } from "$lib/aggregates.js"
import TextelrView from "$lib/components/TextelrView.svelte"
import type { TexteVersion } from "$lib/legal"
import { summarizeLegalObject } from "$lib/summaries"
import type { TexteVersion } from "$lib/legal/index.js"
import { summarizeLegalObject } from "$lib/summaries.js"
export let data: Aggregate
export let level = 1

View file

@ -1,10 +1,10 @@
<script lang="ts">
import { iterArrayOrSingleton } from "@tricoteuses/explorer-tools"
import type { Aggregate } from "$lib/aggregates"
import type { Aggregate } from "$lib/aggregates.js"
import ArticleView from "$lib/components/ArticleView.svelte"
import SectionTaView from "$lib/components/SectionTaView.svelte"
import { pathnameFromLegalId, type Textelr } from "$lib/legal"
import { pathnameFromLegalId, type Textelr } from "$lib/legal/index.js"
export let data: Aggregate
export let level = 1

View file

@ -1,7 +1,7 @@
<script lang="ts">
import { CircleX } from "lucide-svelte"
import { realErrorFromError } from "./errors"
import { realErrorFromError } from "./errors.js"
import ErrorValue from "./ErrorValue.svelte"
export let error: unknown

View file

@ -1,7 +1,7 @@
<script lang="ts">
import type { AuditSwitchError } from "@auditors/core"
import { realErrorFromError } from "./errors"
import { realErrorFromError } from "./errors.js"
export let error: unknown
export let frame = true

View file

@ -6,7 +6,7 @@ export {
type GetRechercheResult,
type GetTexteResult,
type ListTextesResult,
} from "./aggregates"
} from "./aggregates.js"
export {
type Article,
@ -37,7 +37,7 @@ export {
type Tm,
type TmLienTxt,
type Versions,
} from "./legal"
} from "./legal/index.js"
export {
allDossierLegislatifTypes,
@ -45,7 +45,7 @@ export {
type DossierLegislatifType,
type Echeancier,
type EcheancierLigne,
} from "./legal/dole"
} from "./legal/dole.js"
export {
extractOrigineFromId,
@ -56,7 +56,7 @@ export {
idsTypes,
type IdOrigine,
type IdType,
} from "./legal/ids"
} from "./legal/ids.js"
export {
allJoNatures,
@ -115,7 +115,7 @@ export {
type JorfTexteVersionLien,
type JorfTexteVersionLienNature,
type JorfTexteVersionLienType,
} from "./legal/jorf"
} from "./legal/jorf.js"
export {
allLegiArticleEtats,
@ -172,9 +172,9 @@ export {
type LegiTexteVersionLien,
type LegiTexteVersionLienNature,
type LegiTexteVersionLienType,
} from "./legal/legi"
} from "./legal/legi.js"
export type { LegalObjectReferences } from "./legal/references"
export type { LegalObjectReferences } from "./legal/references.js"
export {
allArticleTypes,
@ -186,6 +186,7 @@ export {
type Sens,
type TexteVersionGitDb,
type TexteVersionLienDb,
} from "./legal/shared"
} from "./legal/shared.js"
export { parseDossierLegislatif } from "./parsers"
export { parseDossierLegislatif } from "./parsers/dole.js"
export { xmlParser } from "./parsers/shared.js"

View file

@ -1,8 +1,8 @@
import type { MenuItem } from "@tricoteuses/explorer-tools"
import type { DossierLegislatif } from "./dole"
import { type Jo, type JorfArticleTm, type JorfSectionTaTm } from "./jorf"
import type { LegiArticleTm, LegiSectionTaTm } from "./legi"
import type { DossierLegislatif } from "./dole.js"
import { type Jo, type JorfArticleTm, type JorfSectionTaTm } from "./jorf.js"
import type { LegiArticleTm, LegiSectionTaTm } from "./legi.js"
export interface Article {
META: {

View file

@ -1,4 +1,4 @@
import type { ArticleType, Sens } from "./shared"
import type { ArticleType, Sens } from "./shared.js"
export interface Jo {
META: {

View file

@ -1,4 +1,4 @@
import type { ArticleType, Sens } from "./shared"
import type { ArticleType, Sens } from "./shared.js"
export interface LegiArticle {
BLOC_TEXTUEL?: {

View file

@ -1,24 +1,24 @@
import dedent from "dedent-js"
import { bestItemForDate, walkContexteTexteTm } from "$lib/legal"
import { gitPathFromId } from "$lib/legal/ids"
import { bestItemForDate, walkContexteTexteTm } from "$lib/legal/index.js"
import { gitPathFromId } from "$lib/legal/ids.js"
import type {
Jo,
JorfArticle,
JorfSectionTa,
JorfTexteVersion,
} from "$lib/legal/jorf"
} from "$lib/legal/jorf.js"
import type {
LegiArticle,
LegiSectionTa,
LegiTexteNature,
LegiTexteVersion,
} from "$lib/legal/legi"
import { slugify } from "$lib/strings"
} from "$lib/legal/legi.js"
import { slugify } from "$lib/strings.js"
import {
organizationNameByTexteNature,
repositoryNameFromTitle,
} from "$lib/urls"
} from "$lib/urls.js"
const today = new Date().toISOString().split("T")[0]

View file

@ -1,8 +1,9 @@
import { auditChain, auditRequire, strictAudit } from "@auditors/core"
import { auditDossierLegislatif } from "$lib/auditors/dole"
import type { DossierLegislatif, XmlHeader } from "$lib/legal"
import { xmlParser } from "$lib/parsers/shared"
import { auditDossierLegislatif } from "$lib/auditors/dole.js"
import type { DossierLegislatif } from "$lib/legal/dole.js"
import type { XmlHeader } from "$lib/legal/index.js"
import { xmlParser } from "$lib/parsers/shared.js"
export function parseDossierLegislatif(
filePath: string,

View file

@ -1,2 +0,0 @@
export { parseDossierLegislatif } from "./dole"
export { xmlParser } from "./shared"

View file

@ -1,20 +1,20 @@
import { iterArrayOrSingleton } from "@tricoteuses/explorer-tools"
import objectHash from "object-hash"
import type { Aggregate, Follow } from "$lib/aggregates"
import type { Aggregate, Follow } from "$lib/aggregates.js"
import type { JorfArticle } from "$lib/legal/jorf.js"
import {
rootTypeFromLegalId,
type Article,
type JorfArticle,
type LegalObjectType,
type LegiArticle,
type SectionTa,
type Textekali,
type Textelr,
type TexteVersion,
} from "$lib/legal"
import type { ArticleLienDb, TexteVersionLienDb } from "$lib/legal/shared"
import { db } from "$lib/server/databases"
} from "$lib/legal/index.js"
import type { LegiArticle } from "$lib/legal/legi.js"
import type { ArticleLienDb, TexteVersionLienDb } from "$lib/legal/shared.js"
import { db } from "$lib/server/databases/index.js"
export class Aggregator {
article: { [id: string]: Article | JorfArticle | LegiArticle } = {}

View file

@ -1,6 +1,6 @@
import "dotenv/config"
import { validateConfig } from "$lib/server/auditors/config"
import { validateConfig } from "$lib/server/auditors/config.js"
export interface Config {
assembleeDb: {

View file

@ -1,7 +1,7 @@
import assert from "assert"
import type { TexteVersion } from "$lib/legal"
import { db, type Version, versionNumber } from "$lib/server/databases"
import type { TexteVersion } from "$lib/legal/index.js"
import { db, type Version, versionNumber } from "$lib/server/databases/index.js"
export async function configureDatabase() {
// Table: version

View file

@ -1,7 +1,7 @@
import assert from "assert"
import postgres from "postgres"
import config from "$lib/server/config"
import config from "$lib/server/config.js"
export interface Version {
number: number

View file

@ -8,7 +8,7 @@ import type {
JorfSectionTaStructure,
JorfTextelr,
JorfTexteVersion,
} from "$lib/legal/jorf"
} from "$lib/legal/jorf.js"
import type {
LegiArticle,
LegiSectionTa,
@ -17,9 +17,9 @@ import type {
LegiSectionTaStructure,
LegiTextelr,
LegiTexteVersion,
} from "$lib/legal/legi"
import type { ArticleLienDb, TexteVersionLienDb } from "$lib/legal/shared"
import { db } from "$lib/server/databases"
} from "$lib/legal/legi.js"
import type { ArticleLienDb, TexteVersionLienDb } from "$lib/legal/shared.js"
import { db } from "$lib/server/databases/index.js"
export type Action = (typeof actions)[number]

View file

@ -5,9 +5,9 @@ import objectHash from "object-hash"
import git, { type TreeEntry, type TreeObject } from "isomorphic-git"
import path from "path"
import { sortArticlesNumbers } from "$lib/articles"
import { bestItemForDate } from "$lib/legal"
import { gitPathFromId } from "$lib/legal/ids"
import { sortArticlesNumbers } from "$lib/articles.js"
import { bestItemForDate } from "$lib/legal/index.js"
import { gitPathFromId } from "$lib/legal/ids.js"
import type {
JorfArticle,
JorfSectionTaLienArt,
@ -15,7 +15,7 @@ import type {
JorfTextelr,
JorfTexteVersion,
JorfTexteVersionLien,
} from "$lib/legal/jorf"
} from "$lib/legal/jorf.js"
import type {
LegiArticle,
LegiArticleLien,
@ -28,22 +28,22 @@ import type {
LegiTextelrLienArt,
LegiTexteVersion,
LegiTexteVersionLien,
} from "$lib/legal/legi"
} from "$lib/legal/legi.js"
import type {
ArticleGitDb,
ArticleLienDb,
SectionTaGitDb,
TexteVersionGitDb,
TexteVersionLienDb,
} from "$lib/legal/shared"
} from "$lib/legal/shared.js"
import {
markdownVariantsBlockFromArticle,
markdownVariantsBlockFromSectionTa,
markdownVariantsBlockFromTexteVersion,
} from "$lib/markdown/blocks"
import config from "$lib/server/config"
import { db } from "$lib/server/databases"
import { cleanHtmlFragment, escapeHtml, slugify } from "$lib/strings"
} from "$lib/markdown/blocks.js"
import config from "$lib/server/config.js"
import { db } from "$lib/server/databases/index.js"
import { cleanHtmlFragment, escapeHtml, slugify } from "$lib/strings.js"
import {
actions,
@ -56,18 +56,18 @@ import {
type Action,
type Context,
type TexteManquant,
} from "./contexts"
} from "./contexts.js"
import {
registerLegiArticleModifiersAndReferences,
registerLegiSectionTaModifiersAndReferences,
registerLegiTextModifiersAndReferences,
} from "./references"
import { licence, writeTextFileBlob } from "./repositories"
} from "./references.js"
import { licence, writeTextFileBlob } from "./repositories.js"
import {
addArticleToTree,
type SectionTaNode,
type TextelrNode,
} from "./texts_trees"
} from "./texts_trees.js"
const minDateObject = new Date("1971-01-01")
const minDateTimestamp = Math.floor(minDateObject.getTime() / 1000)

View file

@ -4,16 +4,16 @@ import type {
JorfTextelr,
JorfSectionTa,
JorfSectionTaLienSectionTa,
} from "$lib/legal/jorf"
} from "$lib/legal/jorf.js"
import type {
LegiArticle,
LegiSectionTa,
LegiSectionTaLienSectionTa,
LegiTextelr,
LegiTexteVersion,
} from "$lib/legal/legi"
import type { ArticleLienDb, TexteVersionLienDb } from "$lib/legal/shared"
import { db } from "$lib/server/databases"
} from "$lib/legal/legi.js"
import type { ArticleLienDb, TexteVersionLienDb } from "$lib/legal/shared.js"
import { db } from "$lib/server/databases/index.js"
import {
getOrLoadArticle,
@ -21,7 +21,7 @@ import {
getOrLoadTexteVersion,
type Action,
type Context,
} from "./contexts"
} from "./contexts.js"
async function addModifyingArticleId(
context: Context,

View file

@ -1,8 +1,8 @@
import type { JorfArticle, JorfArticleTm } from "$lib/legal/jorf"
import type { LegiArticle, LegiArticleTm } from "$lib/legal/legi"
import { slugify } from "$lib/strings"
import type { JorfArticle, JorfArticleTm } from "$lib/legal/jorf.js"
import type { LegiArticle, LegiArticleTm } from "$lib/legal/legi.js"
import { slugify } from "$lib/strings.js"
import type { Context } from "./contexts"
import type { Context } from "./contexts.js"
export interface NodeBase {
articles?: Array<JorfArticle | LegiArticle>

View file

@ -1,7 +1,7 @@
import assert from "assert"
import nodegit from "nodegit"
import { idRegExp } from "$lib/legal/ids"
import { idRegExp } from "$lib/legal/ids.js"
export type OidBySplitPathTree = {
childByKey?: Map<string, OidBySplitPathTree>

View file

@ -1,6 +1,6 @@
import type { PendingQuery, Row } from "postgres"
import { db } from "$lib/server/databases"
import { db } from "$lib/server/databases/index.js"
export function joinSqlClauses(
joiner: PendingQuery<Row[]>,

View file

@ -1,12 +1,12 @@
import type { Access, Summarizer, Summary } from "augmented-data-viewer"
import { MoveRight } from "lucide-svelte"
import type { DossierLegislatif } from "$lib/legal/dole.js"
import {
type Article,
type ArticleVersion,
assertNeverLegalObjectType,
bestItemForDate,
type DossierLegislatif,
type Idcc,
type IdWrapper,
type Jo,
@ -28,8 +28,8 @@ import {
type Tm,
type TmLienTxt,
type VersionsWrapper,
} from "$lib/legal"
import type { ArticleLienDb, TexteVersionLienDb } from "$lib/legal/shared"
} from "$lib/legal/index.js"
import type { ArticleLienDb, TexteVersionLienDb } from "$lib/legal/shared.js"
export const summarizeAggregateProperties: Summarizer = (access, value) => {
for (const summarizer of [

View file

@ -1,5 +1,5 @@
import type { LegiTexteNature } from "$lib/legal/legi"
import { slugify } from "$lib/strings"
import type { LegiTexteNature } from "$lib/legal/legi.js"
import { slugify } from "$lib/strings.js"
export const organizationNameByTexteNature: Partial<
Record<LegiTexteNature, string>

View file

@ -1,6 +1,6 @@
import config from "$lib/server/config"
import config from "$lib/server/config.js"
import type { LayoutServerLoad } from "./$types"
import type { LayoutServerLoad } from "./$types.js"
export const load: LayoutServerLoad = () => {
return { appTitle: config.title }

View file

@ -5,7 +5,7 @@
// import NavBar from "@tricoteuses/explorer-tools/components/NavBar.svelte"
import { page } from "$app/stores"
import { appMenu } from "$lib/legal"
import { appMenu } from "$lib/legal/index.js"
</script>
<svelte:head>

View file

@ -2,7 +2,7 @@
import { Hero } from "@tricoteuses/explorer-tools"
import { page } from "$app/stores"
import { appMenu } from "$lib/legal"
import { appMenu } from "$lib/legal/index.js"
</script>
<main>

View file

@ -8,14 +8,15 @@ import {
} from "@auditors/core"
import { error } from "@sveltejs/kit"
import type { Follow } from "$lib/aggregates"
import { auditFollowQuery } from "$lib/auditors/queries"
import type { JorfArticle, LegiArticle } from "$lib/legal"
import { Aggregator } from "$lib/server/aggregates"
import { db } from "$lib/server/databases"
import type { Follow } from "$lib/aggregates.js"
import { auditFollowQuery } from "$lib/auditors/queries.js"
import type { JorfArticle } from "$lib/legal/jorf.js"
import type { LegiArticle } from "$lib/legal/legi.js"
import { Aggregator } from "$lib/server/aggregates.js"
import { db } from "$lib/server/databases/index.js"
import type { RequestHandler } from "./$types"
import type { ArticleLienDb, TexteVersionLienDb } from "$lib/legal/shared"
import type { RequestHandler } from "./$types.js"
import type { ArticleLienDb, TexteVersionLienDb } from "$lib/legal/shared.js"
function auditQuery(audit: Audit, query: URLSearchParams): [unknown, unknown] {
if (query == null) {

View file

@ -8,13 +8,17 @@ import {
} from "@auditors/core"
import { error } from "@sveltejs/kit"
import type { Follow } from "$lib/aggregates"
import { auditFollowQuery, auditQQueryParameter } from "$lib/auditors/queries"
import type { JorfArticle, LegiArticle } from "$lib/legal"
import { Aggregator } from "$lib/server/aggregates"
import { db } from "$lib/server/databases"
import type { Follow } from "$lib/aggregates.js"
import {
auditFollowQuery,
auditQQueryParameter,
} from "$lib/auditors/queries.js"
import type { JorfArticle } from "$lib/legal/jorf.js"
import type { LegiArticle } from "$lib/legal/legi.js"
import { Aggregator } from "$lib/server/aggregates.js"
import { db } from "$lib/server/databases/index.js"
import type { RequestHandler } from "./$types"
import type { RequestHandler } from "./$types.js"
function auditQuery(audit: Audit, query: URLSearchParams): [unknown, unknown] {
if (query == null) {

View file

@ -8,19 +8,19 @@ import {
import { error } from "@sveltejs/kit"
import type { PendingQuery, Row } from "postgres"
import type { Follow } from "$lib/aggregates"
import type { Follow } from "$lib/aggregates.js"
import {
auditFollowQuery,
auditLimitQueryParameter,
auditOffsetQueryParameter,
auditQQueryParameter,
} from "$lib/auditors/queries"
import type { TexteVersion } from "$lib/legal"
import { Aggregator } from "$lib/server/aggregates"
import { db } from "$lib/server/databases"
import { joinSqlClauses } from "$lib/server/sql"
} from "$lib/auditors/queries.js"
import type { TexteVersion } from "$lib/legal/index.js"
import { Aggregator } from "$lib/server/aggregates.js"
import { db } from "$lib/server/databases/index.js"
import { joinSqlClauses } from "$lib/server/sql.js"
import type { RequestHandler } from "./$types"
import type { RequestHandler } from "./$types.js"
function auditQuery(audit: Audit, query: URLSearchParams): [unknown, unknown] {
if (query == null) {

View file

@ -8,15 +8,15 @@ import {
} from "@auditors/core"
import { error } from "@sveltejs/kit"
import { auditFollowQuery } from "$lib/auditors/queries"
import { auditFollowQuery } from "$lib/auditors/queries.js"
import type { Follow } from "$lib/aggregates"
import type { TexteVersion } from "$lib/legal"
import type { ArticleLienDb, TexteVersionLienDb } from "$lib/legal/shared"
import { Aggregator } from "$lib/server/aggregates"
import { db } from "$lib/server/databases"
import type { Follow } from "$lib/aggregates.js"
import type { TexteVersion } from "$lib/legal/index.js"
import type { ArticleLienDb, TexteVersionLienDb } from "$lib/legal/shared.js"
import { Aggregator } from "$lib/server/aggregates.js"
import { db } from "$lib/server/databases/index.js"
import type { RequestHandler } from "./$types"
import type { RequestHandler } from "./$types.js"
function auditQuery(audit: Audit, query: URLSearchParams): [unknown, unknown] {
if (query == null) {

View file

@ -1,6 +1,6 @@
import { db } from "$lib/server/databases"
import { db } from "$lib/server/databases/index.js"
import type { RequestHandler } from "./$types"
import type { RequestHandler } from "./$types.js"
export const GET: RequestHandler = async () => {
const natures = (

View file

@ -1,11 +1,11 @@
import { type Audit, auditSetNullish, cleanAudit } from "@auditors/core"
import { error } from "@sveltejs/kit"
import { auditSearchQueryContent } from "$lib/auditors/queries"
import type { Article } from "$lib/legal"
import { db } from "$lib/server/databases"
import { auditSearchQueryContent } from "$lib/auditors/queries.js"
import type { Article } from "$lib/legal/index.js"
import { db } from "$lib/server/databases/index.js"
import type { PageServerLoad } from "./$types"
import type { PageServerLoad } from "./$types.js"
function auditQuery(audit: Audit, query: URLSearchParams): [unknown, unknown] {
if (query == null) {

View file

@ -3,9 +3,9 @@
// import { page } from "$app/stores"
import Pagination from "$lib/components/Pagination.svelte"
import { summarizeArticleProperties } from "$lib/summaries"
import { summarizeArticleProperties } from "$lib/summaries.js"
import type { PageData } from "./$types"
import type { PageData } from "./$types.js"
export let data: PageData

View file

@ -1,10 +1,10 @@
import { error } from "@sveltejs/kit"
import type { Article } from "$lib/legal"
import type { ArticleLienDb, TexteVersionLienDb } from "$lib/legal/shared"
import { db } from "$lib/server/databases"
import type { Article } from "$lib/legal/index.js"
import type { ArticleLienDb, TexteVersionLienDb } from "$lib/legal/shared.js"
import { db } from "$lib/server/databases/index.js"
import type { PageServerLoad } from "./$types"
import type { PageServerLoad } from "./$types.js"
export const load: PageServerLoad = async ({ params }) => {
const article = (

View file

@ -7,9 +7,9 @@
summarizeArticleProperties,
summarizeLegalObject,
summarizeTexteVersionLienDbProperties,
} from "$lib/summaries"
} from "$lib/summaries.js"
import type { PageData } from "./$types"
import type { PageData } from "./$types.js"
export let data: PageData

View file

@ -3,13 +3,13 @@
import ArticleView from "$lib/components/ArticleView.svelte"
import IdPagesSwitcher from "$lib/components/IdPagesSwitcher.svelte"
import type { Article } from "$lib/legal"
import type { Article } from "$lib/legal/index.js"
import {
summarizeAggregateProperties,
summarizeLegalObject,
} from "$lib/summaries"
} from "$lib/summaries.js"
import type { PageData } from "./$types"
import type { PageData } from "./$types.js"
export let data: PageData

View file

@ -1,11 +1,11 @@
import { error } from "@sveltejs/kit"
import { type Audit, auditSetNullish, cleanAudit } from "@auditors/core"
import type { Follow, GetArticleResult } from "$lib/aggregates"
import { auditFollowWithFalseQuery } from "$lib/auditors/queries"
import { urlFromUrlAndQuery } from "$lib/urls"
import type { Follow, GetArticleResult } from "$lib/aggregates.js"
import { auditFollowWithFalseQuery } from "$lib/auditors/queries.js"
import { urlFromUrlAndQuery } from "$lib/urls.js"
import type { PageLoad } from "./$types"
import type { PageLoad } from "./$types.js"
function auditQuery(audit: Audit, query: URLSearchParams): [unknown, unknown] {
if (query == null) {

View file

@ -1,11 +1,11 @@
import { type Audit, auditSetNullish, cleanAudit } from "@auditors/core"
import { error } from "@sveltejs/kit"
import { auditSearchQueryContent } from "$lib/auditors/queries"
import type { DossierLegislatif } from "$lib/legal"
import { db } from "$lib/server/databases"
import { auditSearchQueryContent } from "$lib/auditors/queries.js"
import type { DossierLegislatif } from "$lib/legal/dole.js"
import { db } from "$lib/server/databases/index.js"
import type { PageServerLoad } from "./$types"
import type { PageServerLoad } from "./$types.js"
function auditQuery(audit: Audit, query: URLSearchParams): [unknown, unknown] {
if (query == null) {

View file

@ -3,9 +3,9 @@
// import { page } from "$app/stores"
import Pagination from "$lib/components/Pagination.svelte"
import { summarizeDossierLegislatifProperties } from "$lib/summaries"
import { summarizeDossierLegislatifProperties } from "$lib/summaries.js"
import type { PageData } from "./$types"
import type { PageData } from "./$types.js"
export let data: PageData

View file

@ -1,9 +1,9 @@
import { error } from "@sveltejs/kit"
import type { DossierLegislatif } from "$lib/legal"
import { db } from "$lib/server/databases"
import type { DossierLegislatif } from "$lib/legal/dole.js"
import { db } from "$lib/server/databases/index.js"
import type { PageServerLoad } from "./$types"
import type { PageServerLoad } from "./$types.js"
export const load: PageServerLoad = async ({ params }) => {
const dossierLegislatif = (

View file

@ -4,9 +4,9 @@
import {
summarizeDossierLegislatifProperties,
summarizeLegalObject,
} from "$lib/summaries"
} from "$lib/summaries.js"
import type { PageData } from "./$types"
import type { PageData } from "./$types.js"
export let data: PageData

View file

@ -1,11 +1,11 @@
import { type Audit, auditSetNullish, cleanAudit } from "@auditors/core"
import { error } from "@sveltejs/kit"
import { auditSearchQueryContent } from "$lib/auditors/queries"
import type { IdWrapper } from "$lib/legal"
import { db } from "$lib/server/databases"
import { auditSearchQueryContent } from "$lib/auditors/queries.js"
import type { IdWrapper } from "$lib/legal/index.js"
import { db } from "$lib/server/databases/index.js"
import type { PageServerLoad } from "./$types"
import type { PageServerLoad } from "./$types.js"
function auditQuery(audit: Audit, query: URLSearchParams): [unknown, unknown] {
if (query == null) {

View file

@ -3,9 +3,9 @@
// import { page } from "$app/stores"
import Pagination from "$lib/components/Pagination.svelte"
import { summarizeIdWrapperProperties } from "$lib/summaries"
import { summarizeIdWrapperProperties } from "$lib/summaries.js"
import type { PageData } from "./$types"
import type { PageData } from "./$types.js"
export let data: PageData

View file

@ -1,9 +1,9 @@
import { error } from "@sveltejs/kit"
import type { IdWrapper } from "$lib/legal"
import { db } from "$lib/server/databases"
import type { IdWrapper } from "$lib/legal/index.js"
import { db } from "$lib/server/databases/index.js"
import type { PageServerLoad } from "./$types"
import type { PageServerLoad } from "./$types.js"
export const load: PageServerLoad = async ({ params }) => {
const idWrapper = (

View file

@ -4,9 +4,9 @@
import {
summarizeIdWrapperProperties,
summarizeLegalObject,
} from "$lib/summaries"
} from "$lib/summaries.js"
import type { PageData } from "./$types"
import type { PageData } from "./$types.js"
export let data: PageData

View file

@ -1,11 +1,11 @@
import { type Audit, auditSetNullish, cleanAudit } from "@auditors/core"
import { error } from "@sveltejs/kit"
import { auditSearchQueryContent } from "$lib/auditors/queries"
import type { Idcc } from "$lib/legal"
import { db } from "$lib/server/databases"
import { auditSearchQueryContent } from "$lib/auditors/queries.js"
import type { Idcc } from "$lib/legal/index.js"
import { db } from "$lib/server/databases/index.js"
import type { PageServerLoad } from "./$types"
import type { PageServerLoad } from "./$types.js"
function auditQuery(audit: Audit, query: URLSearchParams): [unknown, unknown] {
if (query == null) {

View file

@ -3,9 +3,9 @@
// import { page } from "$app/stores"
import Pagination from "$lib/components/Pagination.svelte"
import { summarizeIdccProperties } from "$lib/summaries"
import { summarizeIdccProperties } from "$lib/summaries.js"
import type { PageData } from "./$types"
import type { PageData } from "./$types.js"
export let data: PageData

View file

@ -1,9 +1,9 @@
import { error } from "@sveltejs/kit"
import type { Idcc } from "$lib/legal"
import { db } from "$lib/server/databases"
import type { Idcc } from "$lib/legal/index.js"
import { db } from "$lib/server/databases/index.js"
import type { PageServerLoad } from "./$types"
import type { PageServerLoad } from "./$types.js"
export const load: PageServerLoad = async ({ params }) => {
const idcc = (

View file

@ -1,9 +1,12 @@
<script lang="ts">
import { TreeView, SummaryView } from "augmented-data-viewer"
import { summarizeIdccProperties, summarizeLegalObject } from "$lib/summaries"
import {
summarizeIdccProperties,
summarizeLegalObject,
} from "$lib/summaries.js"
import type { PageData } from "./$types"
import type { PageData } from "./$types.js"
export let data: PageData

View file

@ -1,11 +1,11 @@
import { type Audit, auditSetNullish, cleanAudit } from "@auditors/core"
import { error } from "@sveltejs/kit"
import { auditSearchQueryContent } from "$lib/auditors/queries"
import type { Jo } from "$lib/legal"
import { db } from "$lib/server/databases"
import { auditSearchQueryContent } from "$lib/auditors/queries.js"
import type { Jo } from "$lib/legal/jorf.js"
import { db } from "$lib/server/databases/index.js"
import type { PageServerLoad } from "./$types"
import type { PageServerLoad } from "./$types.js"
function auditQuery(audit: Audit, query: URLSearchParams): [unknown, unknown] {
if (query == null) {

View file

@ -3,9 +3,9 @@
// import { page } from "$app/stores"
import Pagination from "$lib/components/Pagination.svelte"
import { summarizeJoProperties } from "$lib/summaries"
import { summarizeJoProperties } from "$lib/summaries.js"
import type { PageData } from "./$types"
import type { PageData } from "./$types.js"
export let data: PageData

View file

@ -1,9 +1,9 @@
import { error } from "@sveltejs/kit"
import type { Jo } from "$lib/legal"
import { db } from "$lib/server/databases"
import type { Jo } from "$lib/legal/jorf.js"
import { db } from "$lib/server/databases/index.js"
import type { PageServerLoad } from "./$types"
import type { PageServerLoad } from "./$types.js"
export const load: PageServerLoad = async ({ params }) => {
const jo = (

View file

@ -1,9 +1,12 @@
<script lang="ts">
import { TreeView, SummaryView } from "augmented-data-viewer"
import { summarizeJoProperties, summarizeLegalObject } from "$lib/summaries"
import {
summarizeJoProperties,
summarizeLegalObject,
} from "$lib/summaries.js"
import type { PageData } from "./$types"
import type { PageData } from "./$types.js"
export let data: PageData

View file

@ -4,9 +4,9 @@
import { page } from "$app/stores"
// import Pagination from "$lib/components/Pagination.svelte"
import { summarizeArticleProperties } from "$lib/summaries"
import { summarizeArticleProperties } from "$lib/summaries.js"
import type { PageData } from "./$types"
import type { PageData } from "./$types.js"
export let data: PageData

View file

@ -1,8 +1,8 @@
import { error } from "@sveltejs/kit"
import type { GetRechercheResult } from "$lib/aggregates"
import type { GetRechercheResult } from "$lib/aggregates.js"
import type { PageLoad } from "./$types"
import type { PageLoad } from "./$types.js"
export const load: PageLoad = async ({ fetch, url }) => {
const apiUrl = `/api${url.pathname}`

View file

@ -7,18 +7,18 @@ import {
} from "@auditors/core"
import { error, redirect } from "@sveltejs/kit"
import { assertNever } from "$lib/asserts"
import { auditQueryOptionsArray } from "$lib/auditors/queries"
import type { JorfTexteNature, JorfTexteVersion } from "$lib/legal/jorf"
import { assertNever } from "$lib/asserts.js"
import { auditQueryOptionsArray } from "$lib/auditors/queries.js"
import type { JorfTexteNature, JorfTexteVersion } from "$lib/legal/jorf.js"
import {
organizationNameByTexteNature,
repositoryNameFromTitle,
} from "$lib/urls"
import type { LegiTexteNature, LegiTexteVersion } from "$lib/legal/legi"
import config from "$lib/server/config"
import { db } from "$lib/server/databases"
} from "$lib/urls.js"
import type { LegiTexteNature, LegiTexteVersion } from "$lib/legal/legi.js"
import config from "$lib/server/config.js"
import { db } from "$lib/server/databases/index.js"
import type { PageLoad } from "./$types"
import type { PageLoad } from "./$types.js"
type TargetType = (typeof targetsTypes)[number]

View file

@ -1,11 +1,11 @@
import { type Audit, auditSetNullish, cleanAudit } from "@auditors/core"
import { error } from "@sveltejs/kit"
import { auditSearchQueryContent } from "$lib/auditors/queries"
import type { SectionTa } from "$lib/legal"
import { db } from "$lib/server/databases"
import { auditSearchQueryContent } from "$lib/auditors/queries.js"
import type { SectionTa } from "$lib/legal/index.js"
import { db } from "$lib/server/databases/index.js"
import type { PageServerLoad } from "./$types"
import type { PageServerLoad } from "./$types.js"
function auditQuery(audit: Audit, query: URLSearchParams): [unknown, unknown] {
if (query == null) {

View file

@ -3,9 +3,9 @@
// import { page } from "$app/stores"
import Pagination from "$lib/components/Pagination.svelte"
import { summarizeSectionTaProperties } from "$lib/summaries"
import { summarizeSectionTaProperties } from "$lib/summaries.js"
import type { PageData } from "./$types"
import type { PageData } from "./$types.js"
export let data: PageData

View file

@ -1,10 +1,10 @@
import { error } from "@sveltejs/kit"
import type { SectionTa } from "$lib/legal"
import type { ArticleLienDb, TexteVersionLienDb } from "$lib/legal/shared"
import { db } from "$lib/server/databases"
import type { SectionTa } from "$lib/legal/index.js"
import type { ArticleLienDb, TexteVersionLienDb } from "$lib/legal/shared.js"
import { db } from "$lib/server/databases/index.js"
import type { PageServerLoad } from "./$types"
import type { PageServerLoad } from "./$types.js"
export const load: PageServerLoad = async ({ params }) => {
const sectionTa = (

View file

@ -6,9 +6,9 @@
summarizeLegalObject,
summarizeSectionTaProperties,
summarizeTexteVersionLienDbProperties,
} from "$lib/summaries"
} from "$lib/summaries.js"
import type { PageData } from "./$types"
import type { PageData } from "./$types.js"
export let data: PageData

View file

@ -1,11 +1,11 @@
import { type Audit, auditSetNullish, cleanAudit } from "@auditors/core"
import { error } from "@sveltejs/kit"
import { auditSearchQueryContent } from "$lib/auditors/queries"
import type { TexteVersion } from "$lib/legal"
import { db } from "$lib/server/databases"
import { auditSearchQueryContent } from "$lib/auditors/queries.js"
import type { TexteVersion } from "$lib/legal/index.js"
import { db } from "$lib/server/databases/index.js"
import type { PageServerLoad } from "./$types"
import type { PageServerLoad } from "./$types.js"
function auditQuery(audit: Audit, query: URLSearchParams): [unknown, unknown] {
if (query == null) {

View file

@ -3,9 +3,9 @@
// import { page } from "$app/stores"
import Pagination from "$lib/components/Pagination.svelte"
import { summarizeTexteVersionProperties } from "$lib/summaries"
import { summarizeTexteVersionProperties } from "$lib/summaries.js"
import type { PageData } from "./$types"
import type { PageData } from "./$types.js"
export let data: PageData

View file

@ -1,10 +1,10 @@
import { error } from "@sveltejs/kit"
import type { TexteVersion } from "$lib/legal"
import type { ArticleLienDb, TexteVersionLienDb } from "$lib/legal/shared"
import { db } from "$lib/server/databases"
import type { TexteVersion } from "$lib/legal/index.js"
import type { ArticleLienDb, TexteVersionLienDb } from "$lib/legal/shared.js"
import { db } from "$lib/server/databases/index.js"
import type { PageServerLoad } from "./$types"
import type { PageServerLoad } from "./$types.js"
export const load: PageServerLoad = async ({ params }) => {
const texteVersion = (

View file

@ -7,9 +7,9 @@
summarizeLegalObject,
summarizeTexteVersionLienDbProperties,
summarizeTexteVersionProperties,
} from "$lib/summaries"
} from "$lib/summaries.js"
import type { PageData } from "./$types"
import type { PageData } from "./$types.js"
export let data: PageData

View file

@ -1,11 +1,11 @@
import { type Audit, auditSetNullish, cleanAudit } from "@auditors/core"
import { error } from "@sveltejs/kit"
import { auditSearchQueryContent } from "$lib/auditors/queries"
import type { Textekali } from "$lib/legal"
import { db } from "$lib/server/databases"
import { auditSearchQueryContent } from "$lib/auditors/queries.js"
import type { Textekali } from "$lib/legal/index.js"
import { db } from "$lib/server/databases/index.js"
import type { PageServerLoad } from "./$types"
import type { PageServerLoad } from "./$types.js"
function auditQuery(audit: Audit, query: URLSearchParams): [unknown, unknown] {
if (query == null) {

View file

@ -3,9 +3,9 @@
// import { page } from "$app/stores"
import Pagination from "$lib/components/Pagination.svelte"
import { summarizeTextekaliProperties } from "$lib/summaries"
import { summarizeTextekaliProperties } from "$lib/summaries.js"
import type { PageData } from "./$types"
import type { PageData } from "./$types.js"
export let data: PageData

View file

@ -1,9 +1,9 @@
import { error } from "@sveltejs/kit"
import type { Textekali } from "$lib/legal"
import { db } from "$lib/server/databases"
import type { Textekali } from "$lib/legal/index.js"
import { db } from "$lib/server/databases/index.js"
import type { PageServerLoad } from "./$types"
import type { PageServerLoad } from "./$types.js"
export const load: PageServerLoad = async ({ params }) => {
const textekali = (

View file

@ -5,9 +5,9 @@
import {
summarizeTextekaliProperties,
summarizeLegalObject,
} from "$lib/summaries"
} from "$lib/summaries.js"
import type { PageData } from "./$types"
import type { PageData } from "./$types.js"
export let data: PageData

View file

@ -1,11 +1,11 @@
import { type Audit, auditSetNullish, cleanAudit } from "@auditors/core"
import { error } from "@sveltejs/kit"
import { auditSearchQueryContent } from "$lib/auditors/queries"
import type { Textelr } from "$lib/legal"
import { db } from "$lib/server/databases"
import { auditSearchQueryContent } from "$lib/auditors/queries.js"
import type { Textelr } from "$lib/legal/index.js"
import { db } from "$lib/server/databases/index.js"
import type { PageServerLoad } from "./$types"
import type { PageServerLoad } from "./$types.js"
function auditQuery(audit: Audit, query: URLSearchParams): [unknown, unknown] {
if (query == null) {

View file

@ -3,9 +3,9 @@
// import { page } from "$app/stores"
import Pagination from "$lib/components/Pagination.svelte"
import { summarizeTextelrProperties } from "$lib/summaries"
import { summarizeTextelrProperties } from "$lib/summaries.js"
import type { PageData } from "./$types"
import type { PageData } from "./$types.js"
export let data: PageData

View file

@ -1,9 +1,9 @@
import { error } from "@sveltejs/kit"
import type { Textelr } from "$lib/legal"
import { db } from "$lib/server/databases"
import type { Textelr } from "$lib/legal/index.js"
import { db } from "$lib/server/databases/index.js"
import type { PageServerLoad } from "./$types"
import type { PageServerLoad } from "./$types.js"
export const load: PageServerLoad = async ({ params }) => {
const textelr = (

View file

@ -5,9 +5,9 @@
import {
summarizeTextelrProperties,
summarizeLegalObject,
} from "$lib/summaries"
} from "$lib/summaries.js"
import type { PageData } from "./$types"
import type { PageData } from "./$types.js"
export let data: PageData

View file

@ -3,10 +3,10 @@
import { page } from "$app/stores"
import Pagination from "$lib/components/Pagination.svelte"
import type { TexteVersion } from "$lib/legal"
import { summarizeTexteVersionProperties } from "$lib/summaries"
import type { TexteVersion } from "$lib/legal/index.js"
import { summarizeTexteVersionProperties } from "$lib/summaries.js"
import type { PageData } from "./$types"
import type { PageData } from "./$types.js"
export let data: PageData

View file

@ -1,8 +1,8 @@
import { error } from "@sveltejs/kit"
import type { ListTextesResult } from "$lib/aggregates"
import type { ListTextesResult } from "$lib/aggregates.js"
import type { PageLoad } from "./$types"
import type { PageLoad } from "./$types.js"
export const load: PageLoad = async ({ fetch, url }) => {
const apiUrl = `/api${url.pathname}${url.search}`

View file

@ -3,13 +3,13 @@
import { goto } from "$app/navigation"
import { page } from "$app/stores"
import type { Follow } from "$lib/aggregates"
import type { Follow } from "$lib/aggregates.js"
import IdPagesSwitcher from "$lib/components/IdPagesSwitcher.svelte"
import TexteVersionView from "$lib/components/TexteVersionView.svelte"
import type { TexteVersion } from "$lib/legal"
import { summarizeLegalObject } from "$lib/summaries"
import type { TexteVersion } from "$lib/legal/index.js"
import { summarizeLegalObject } from "$lib/summaries.js"
import type { PageData } from "./$types"
import type { PageData } from "./$types.js"
export let data: PageData

View file

@ -1,11 +1,11 @@
import { error } from "@sveltejs/kit"
import { type Audit, auditSetNullish, cleanAudit } from "@auditors/core"
import type { Follow, GetTexteResult } from "$lib/aggregates"
import { auditFollowWithFalseQuery } from "$lib/auditors/queries"
import { urlFromUrlAndQuery } from "$lib/urls"
import type { Follow, GetTexteResult } from "$lib/aggregates.js"
import { auditFollowWithFalseQuery } from "$lib/auditors/queries.js"
import { urlFromUrlAndQuery } from "$lib/urls.js"
import type { PageLoad } from "./$types"
import type { PageLoad } from "./$types.js"
function auditQuery(audit: Audit, query: URLSearchParams): [unknown, unknown] {
if (query == null) {

View file

@ -1,11 +1,11 @@
import { type Audit, auditSetNullish, cleanAudit } from "@auditors/core"
import { error } from "@sveltejs/kit"
import { auditSearchQueryContent } from "$lib/auditors/queries"
import type { VersionsWrapper } from "$lib/legal"
import { db } from "$lib/server/databases"
import { auditSearchQueryContent } from "$lib/auditors/queries.js"
import type { VersionsWrapper } from "$lib/legal/index.js"
import { db } from "$lib/server/databases/index.js"
import type { PageServerLoad } from "./$types"
import type { PageServerLoad } from "./$types.js"
function auditQuery(audit: Audit, query: URLSearchParams): [unknown, unknown] {
if (query == null) {

View file

@ -3,9 +3,9 @@
// import { page } from "$app/stores"
import Pagination from "$lib/components/Pagination.svelte"
import { summarizeVersionsWrapperProperties } from "$lib/summaries"
import { summarizeVersionsWrapperProperties } from "$lib/summaries.js"
import type { PageData } from "./$types"
import type { PageData } from "./$types.js"
export let data: PageData

View file

@ -1,9 +1,9 @@
import { error } from "@sveltejs/kit"
import type { VersionsWrapper } from "$lib/legal"
import { db } from "$lib/server/databases"
import type { VersionsWrapper } from "$lib/legal/index.js"
import { db } from "$lib/server/databases/index.js"
import type { PageServerLoad } from "./$types"
import type { PageServerLoad } from "./$types.js"
export const load: PageServerLoad = async ({ params }) => {
const versionsWrapper = (

View file

@ -4,9 +4,9 @@
import {
summarizeVersionsWrapperProperties,
summarizeLegalObject,
} from "$lib/summaries"
} from "$lib/summaries.js"
import type { PageData } from "./$types"
import type { PageData } from "./$types.js"
export let data: PageData

View file

@ -1,10 +1,10 @@
import assert from "assert"
import sade from "sade"
import type { JorfArticle } from "$lib/legal/jorf"
import type { LegiArticle, LegiArticleLienType } from "$lib/legal/legi"
import type { ArticleType, Sens } from "$lib/legal/shared"
import { db } from "$lib/server/databases"
import type { JorfArticle } from "$lib/legal/jorf.js"
import type { LegiArticle, LegiArticleLienType } from "$lib/legal/legi.js"
import type { ArticleType, Sens } from "$lib/legal/shared.js"
import { db } from "$lib/server/databases/index.js"
const percentFormatter = new Intl.NumberFormat("fr-FR", {
style: "percent",

Some files were not shown because too many files have changed in this diff Show more