From c8206239b4a343da8073267da33d0a5256747961 Mon Sep 17 00:00:00 2001 From: Carl-OW <142233642+Carl-OW@users.noreply.github.com> Date: Tue, 26 Nov 2024 10:32:58 +0100 Subject: [PATCH] lib --- .../lib/ssb/parts/webcruiterAdvertisementList.ts | 2 +- src/main/resources/react4xp/_entries/Alerts.tsx | 2 +- .../resources/react4xp/_entries/ArticleArchive.tsx | 6 +++--- .../react4xp/_entries/BkibolCalculator.tsx | 2 +- .../resources/react4xp/_entries/CategoryLinks.tsx | 2 +- .../react4xp/_entries/EndedStatistics.tsx | 2 +- .../resources/react4xp/_entries/EntryLinks.tsx | 4 ++-- src/main/resources/react4xp/_entries/FactBox.tsx | 2 +- src/main/resources/react4xp/_entries/Footer.tsx | 2 +- .../react4xp/_entries/FrontpageKeyfigures.tsx | 2 +- src/main/resources/react4xp/_entries/Header.tsx | 4 ++-- src/main/resources/react4xp/_entries/KeyFigure.tsx | 2 +- .../resources/react4xp/_entries/KpiCalculator.tsx | 4 ++-- src/main/resources/react4xp/_entries/MenuBox.tsx | 2 +- .../resources/react4xp/_entries/ModifiedDate.tsx | 2 +- .../react4xp/_entries/PictureCardLinks.tsx | 2 +- .../resources/react4xp/_entries/PifCalculator.tsx | 2 +- .../react4xp/_entries/RelatedArticles.tsx | 2 +- .../react4xp/_entries/ReleasedStatistics.tsx | 4 ++-- .../resources/react4xp/_entries/StatbankBox.tsx | 2 +- .../react4xp/_entries/StatbankLinkList.tsx | 2 +- .../resources/react4xp/accordion/Accordion.tsx | 4 ++-- .../AttachmentTablesFigures.tsx | 4 ++-- src/main/resources/react4xp/table/Table.tsx | 4 ++-- .../resources/react4xp/variables/VariableCard.tsx | 2 +- .../react4xp/variables/VariableCardsList.tsx | 2 +- .../resources/react4xp/variables/Variables.tsx | 2 +- src/main/resources/site/error/error.ts | 2 +- src/main/resources/site/parts/article/article.tsx | 4 ++-- src/main/resources/site/parts/banner/banner.tsx | 2 +- .../site/parts/contactForm/contactForm.tsx | 2 +- .../resources/site/parts/employee/employee.tsx | 4 ++-- .../site/parts/employeeList/employeeList.tsx | 4 ++-- .../parts/husleieCalculator/husleieCalculator.tsx | 4 ++-- .../site/parts/infoGraphics/infoGraphics.tsx | 2 +- src/main/resources/site/parts/links/links.tsx | 2 +- .../site/parts/localSearch/localSearch.tsx | 2 +- .../site/parts/mailChimpForm/mailChimpForm.tsx | 2 +- .../site/parts/menuDropdown/menuDropdown.tsx | 2 +- .../resources/site/parts/nameSearch/nameSearch.jsx | 2 +- .../site/parts/omStatistikken/omStatistikken.tsx | 2 +- .../site/parts/profiledBox/profiledBox.tsx | 2 +- src/main/resources/site/parts/project/project.tsx | 4 ++-- .../publicationArchive/publicationArchive.tsx | 4 ++-- .../site/parts/relatedFactPage/relatedFactPage.tsx | 2 +- .../site/parts/relatedKostra/relatedKostra.tsx | 4 ++-- .../site/parts/searchResult/searchResultView.tsx | 8 ++++---- .../site/parts/simpleStatbank/simpleStatbank.tsx | 4 ++-- .../site/parts/statbankFrame/statbankFrame.tsx | 2 +- .../statbankSubjectTree/statbankSubjectTree.tsx | 2 +- .../staticVisualization/staticVisualization.tsx | 4 ++-- .../subjectArticleList/subjectArticleList.tsx | 4 ++-- .../parts/upcomingReleases/upcomingReleases.tsx | 6 +++--- .../WebcruiterAdvertisementList.tsx | 2 +- .../webcruiterAdvertisementList.ts | 14 +++++++------- 55 files changed, 85 insertions(+), 85 deletions(-) diff --git a/src/main/resources/lib/ssb/parts/webcruiterAdvertisementList.ts b/src/main/resources/lib/ssb/parts/webcruiterAdvertisementList.ts index 6aaec9680..19651fcab 100644 --- a/src/main/resources/lib/ssb/parts/webcruiterAdvertisementList.ts +++ b/src/main/resources/lib/ssb/parts/webcruiterAdvertisementList.ts @@ -1,5 +1,5 @@ import { request } from '/lib/http-client' -import { type XmlParser } from '../../../lib/types/xmlParser' +import { type XmlParser } from '/lib/types/xmlParser' const xmlParser: XmlParser = __.newBean('no.ssb.xp.xmlparser.XmlParser') diff --git a/src/main/resources/react4xp/_entries/Alerts.tsx b/src/main/resources/react4xp/_entries/Alerts.tsx index 85c3c9980..115e778a8 100644 --- a/src/main/resources/react4xp/_entries/Alerts.tsx +++ b/src/main/resources/react4xp/_entries/Alerts.tsx @@ -1,7 +1,7 @@ import React from 'react' import { Dialog } from '@statisticsnorway/ssb-component-library' import { Container } from 'react-bootstrap' -import { sanitize } from '../../lib/ssb/utils/htmlUtils' +import { sanitize } from '/lib/ssb/utils/htmlUtils' interface AlertsProps { alerts: { diff --git a/src/main/resources/react4xp/_entries/ArticleArchive.tsx b/src/main/resources/react4xp/_entries/ArticleArchive.tsx index dd260a2b1..ae4887510 100644 --- a/src/main/resources/react4xp/_entries/ArticleArchive.tsx +++ b/src/main/resources/react4xp/_entries/ArticleArchive.tsx @@ -4,9 +4,9 @@ import { Container, Row, Col } from 'react-bootstrap' import { ChevronDown } from 'react-feather' import { default as groupBy } from 'ramda/es/groupBy' import axios from 'axios' -import { sanitize } from '../../lib/ssb/utils/htmlUtils' -import { type ArticleArchiveProps, type ParsedArticleData } from '../../lib/types/partTypes/articleArchive' -import { generateImageUrls } from '../../lib/ssb/utils/generateImageUrlUtils' +import { sanitize } from '/lib/ssb/utils/htmlUtils' +import { type ArticleArchiveProps, type ParsedArticleData } from '/lib/types/partTypes/articleArchive' +import { generateImageUrls } from '/lib/ssb/utils/generateImageUrlUtils' function ArticleArchive(props: ArticleArchiveProps) { const { diff --git a/src/main/resources/react4xp/_entries/BkibolCalculator.tsx b/src/main/resources/react4xp/_entries/BkibolCalculator.tsx index 0d3ab7666..d3f856ae9 100644 --- a/src/main/resources/react4xp/_entries/BkibolCalculator.tsx +++ b/src/main/resources/react4xp/_entries/BkibolCalculator.tsx @@ -13,7 +13,7 @@ import { import axios from 'axios' import { NumericFormat } from 'react-number-format' import { X } from 'react-feather' -import { BkibolCalculatorProps } from '../../lib/types/partTypes/bkibolCalculator' +import { BkibolCalculatorProps } from '/lib/types/partTypes/bkibolCalculator' function BkibolCalculator(props: BkibolCalculatorProps) { const validMaxYear = props.lastUpdated.year diff --git a/src/main/resources/react4xp/_entries/CategoryLinks.tsx b/src/main/resources/react4xp/_entries/CategoryLinks.tsx index fc30d5774..e934481ed 100644 --- a/src/main/resources/react4xp/_entries/CategoryLinks.tsx +++ b/src/main/resources/react4xp/_entries/CategoryLinks.tsx @@ -1,6 +1,6 @@ import React from 'react' import { CategoryLink } from '@statisticsnorway/ssb-component-library' -import { type CategoryLinksProps } from '../../lib/types/partTypes/categoryLinks' +import { type CategoryLinksProps } from '/lib/types/partTypes/categoryLinks' const CategoryLinks = (props: CategoryLinksProps) => { const { links, methodsAndDocumentationUrl, methodsAndDocumentationLabel } = props diff --git a/src/main/resources/react4xp/_entries/EndedStatistics.tsx b/src/main/resources/react4xp/_entries/EndedStatistics.tsx index cdb7ce458..825249786 100644 --- a/src/main/resources/react4xp/_entries/EndedStatistics.tsx +++ b/src/main/resources/react4xp/_entries/EndedStatistics.tsx @@ -1,7 +1,7 @@ import React from 'react' import { Card, Text, ButtonTertiary } from '@statisticsnorway/ssb-component-library' import { Col, Container, Row } from 'react-bootstrap' -import { EndedStatistic } from '../../lib/types/partTypes/endedStatistics' +import { EndedStatistic } from '/lib/types/partTypes/endedStatistics' interface EndedStatisticsProps { endedStatistics: EndedStatistic[] diff --git a/src/main/resources/react4xp/_entries/EntryLinks.tsx b/src/main/resources/react4xp/_entries/EntryLinks.tsx index 34c95b922..8dc9508e0 100644 --- a/src/main/resources/react4xp/_entries/EntryLinks.tsx +++ b/src/main/resources/react4xp/_entries/EntryLinks.tsx @@ -1,7 +1,7 @@ import React from 'react' import { Link, Title } from '@statisticsnorway/ssb-component-library' -import { sanitize } from '../../lib/ssb/utils/htmlUtils' -import { EntryLink } from '../../lib/types/partTypes/entryLinks' +import { sanitize } from '/lib/ssb/utils/htmlUtils' +import { EntryLink } from '/lib/types/partTypes/entryLinks' interface EntryLinksProps { headerTitle?: string diff --git a/src/main/resources/react4xp/_entries/FactBox.tsx b/src/main/resources/react4xp/_entries/FactBox.tsx index 4becd8d65..d09b5166a 100644 --- a/src/main/resources/react4xp/_entries/FactBox.tsx +++ b/src/main/resources/react4xp/_entries/FactBox.tsx @@ -1,6 +1,6 @@ import React from 'react' import { ExpansionBox as FactBoxComponent } from '@statisticsnorway/ssb-component-library' -import { sanitize } from '../../lib/ssb/utils/htmlUtils' +import { sanitize } from '/lib/ssb/utils/htmlUtils' interface FactBoxProps { header?: string diff --git a/src/main/resources/react4xp/_entries/Footer.tsx b/src/main/resources/react4xp/_entries/Footer.tsx index 00b683d51..839ef0317 100644 --- a/src/main/resources/react4xp/_entries/Footer.tsx +++ b/src/main/resources/react4xp/_entries/Footer.tsx @@ -1,7 +1,7 @@ import React from 'react' import { Accordion, Button, Link } from '@statisticsnorway/ssb-component-library' import { ArrowRight, ArrowUp, Facebook, Rss, Linkedin, Instagram } from 'react-feather' -import { FooterContent } from '../../lib/types/footer' +import { FooterContent } from '/lib/types/footer' const Footer = (props: FooterContent) => { const { diff --git a/src/main/resources/react4xp/_entries/FrontpageKeyfigures.tsx b/src/main/resources/react4xp/_entries/FrontpageKeyfigures.tsx index ae436f251..b2d273c03 100644 --- a/src/main/resources/react4xp/_entries/FrontpageKeyfigures.tsx +++ b/src/main/resources/react4xp/_entries/FrontpageKeyfigures.tsx @@ -1,6 +1,6 @@ import React from 'react' import { ArrowRight } from 'react-feather' -import { FrontPageKeyFigureData } from '../../lib/types/partTypes/frontpageKeyfigures' +import { FrontPageKeyFigureData } from '/lib/types/partTypes/frontpageKeyfigures' interface FrontpageKeyfiguresProps { keyFigures: FrontPageKeyFigureData[] diff --git a/src/main/resources/react4xp/_entries/Header.tsx b/src/main/resources/react4xp/_entries/Header.tsx index 68612c47d..4642894bd 100644 --- a/src/main/resources/react4xp/_entries/Header.tsx +++ b/src/main/resources/react4xp/_entries/Header.tsx @@ -1,8 +1,8 @@ import React, { useState, useCallback, useEffect } from 'react' import { Divider, Input, Link } from '@statisticsnorway/ssb-component-library' import { ChevronDown, ChevronRight, Menu, X } from 'react-feather' -import { sanitize } from '../../lib/ssb/utils/htmlUtils' -import { HeaderContent } from '../../lib/types/header' +import { sanitize } from '/lib/ssb/utils/htmlUtils' +import { HeaderContent } from '/lib/types/header' function Header(props: HeaderContent) { const [showSubMenu, setShowSubMenu] = useState(false) diff --git a/src/main/resources/react4xp/_entries/KeyFigure.tsx b/src/main/resources/react4xp/_entries/KeyFigure.tsx index 68c7c26ae..b7a8b390b 100644 --- a/src/main/resources/react4xp/_entries/KeyFigure.tsx +++ b/src/main/resources/react4xp/_entries/KeyFigure.tsx @@ -7,7 +7,7 @@ import { Divider, } from '@statisticsnorway/ssb-component-library' import { Alert, Row, Col } from 'react-bootstrap' -import { type KeyFigureData, type KeyFigureProps } from '../../lib/types/partTypes/keyFigure' +import { type KeyFigureData, type KeyFigureProps } from '/lib/types/partTypes/keyFigure' const KeyFigures = (props: KeyFigureProps) => { const { diff --git a/src/main/resources/react4xp/_entries/KpiCalculator.tsx b/src/main/resources/react4xp/_entries/KpiCalculator.tsx index 3c2471ec2..fe566efe4 100644 --- a/src/main/resources/react4xp/_entries/KpiCalculator.tsx +++ b/src/main/resources/react4xp/_entries/KpiCalculator.tsx @@ -4,8 +4,8 @@ import { Input, Button, Dropdown, Divider, FormError, Link, Title } from '@stati import axios from 'axios' import { NumericFormat } from 'react-number-format' import { X } from 'react-feather' -import { sanitize } from '../../lib/ssb/utils/htmlUtils' -import { KpiCalculatorProps } from '../../lib/types/partTypes/kpiCalculator' +import { sanitize } from '/lib/ssb/utils/htmlUtils' +import { KpiCalculatorProps } from '/lib/types/partTypes/kpiCalculator' function KpiCalculator(props: KpiCalculatorProps) { const validMaxYear = props.lastUpdated.year diff --git a/src/main/resources/react4xp/_entries/MenuBox.tsx b/src/main/resources/react4xp/_entries/MenuBox.tsx index e504c86de..22d896aa1 100644 --- a/src/main/resources/react4xp/_entries/MenuBox.tsx +++ b/src/main/resources/react4xp/_entries/MenuBox.tsx @@ -1,6 +1,6 @@ import React from 'react' import { Card, Text } from '@statisticsnorway/ssb-component-library' -import { MenuBoxProps } from '../../lib/types/partTypes/menuBox' +import { MenuBoxProps } from '/lib/types/partTypes/menuBox' const MenuBox = ({ boxes, height }: MenuBoxProps) => { return ( diff --git a/src/main/resources/react4xp/_entries/ModifiedDate.tsx b/src/main/resources/react4xp/_entries/ModifiedDate.tsx index a78e079aa..e19a7cda8 100644 --- a/src/main/resources/react4xp/_entries/ModifiedDate.tsx +++ b/src/main/resources/react4xp/_entries/ModifiedDate.tsx @@ -1,6 +1,6 @@ import React from 'react' import { Glossary } from '@statisticsnorway/ssb-component-library' -import { sanitize } from '../../lib/ssb/utils/htmlUtils' +import { sanitize } from '/lib/ssb/utils/htmlUtils' interface ModifiedDateProps { children: string diff --git a/src/main/resources/react4xp/_entries/PictureCardLinks.tsx b/src/main/resources/react4xp/_entries/PictureCardLinks.tsx index 5be311b0c..775d3d19a 100644 --- a/src/main/resources/react4xp/_entries/PictureCardLinks.tsx +++ b/src/main/resources/react4xp/_entries/PictureCardLinks.tsx @@ -1,6 +1,6 @@ import React from 'react' import { ArrowRight, ArrowRightCircle } from 'react-feather' -import { type ImageUrls, type PictureCardLinksContent } from '../../lib/types/partTypes/pictureCardLinks' +import { type ImageUrls, type PictureCardLinksContent } from '/lib/types/partTypes/pictureCardLinks' interface PictureLinkProps { title?: string diff --git a/src/main/resources/react4xp/_entries/PifCalculator.tsx b/src/main/resources/react4xp/_entries/PifCalculator.tsx index 2d6b331a1..357f04eaa 100644 --- a/src/main/resources/react4xp/_entries/PifCalculator.tsx +++ b/src/main/resources/react4xp/_entries/PifCalculator.tsx @@ -4,7 +4,7 @@ import { Input, Button, Dropdown, Divider, FormError, Link, RadioGroup } from '@ import axios from 'axios' import { NumericFormat } from 'react-number-format' import { X } from 'react-feather' -import { PifCalculatorProps } from '../../lib/types/partTypes/pifCalculaor' +import { PifCalculatorProps } from '/lib/types/partTypes/pifCalculaor' function PifCalculator(props: PifCalculatorProps) { const validMaxYear = props.lastUpdated.year diff --git a/src/main/resources/react4xp/_entries/RelatedArticles.tsx b/src/main/resources/react4xp/_entries/RelatedArticles.tsx index 559ad1ec8..500d68be0 100644 --- a/src/main/resources/react4xp/_entries/RelatedArticles.tsx +++ b/src/main/resources/react4xp/_entries/RelatedArticles.tsx @@ -1,7 +1,7 @@ import React, { useState, useRef, useEffect } from 'react' import { Card, Text, Button } from '@statisticsnorway/ssb-component-library' import { useMediaQuery } from 'react-responsive' -import { type RelatedArticlesContent } from '../../lib/types/partTypes/relatedArticles' +import { type RelatedArticlesContent } from '/lib/types/partTypes/relatedArticles' interface RelatedArticlesProps { relatedArticles: RelatedArticlesContent[] diff --git a/src/main/resources/react4xp/_entries/ReleasedStatistics.tsx b/src/main/resources/react4xp/_entries/ReleasedStatistics.tsx index 6c1931004..e6cb2e213 100644 --- a/src/main/resources/react4xp/_entries/ReleasedStatistics.tsx +++ b/src/main/resources/react4xp/_entries/ReleasedStatistics.tsx @@ -1,12 +1,12 @@ import React from 'react' import { Link } from '@statisticsnorway/ssb-component-library' -import { type ReleasedStatisticsProps } from '../../lib/types/partTypes/releasedStatistics' +import { type ReleasedStatisticsProps } from '/lib/types/partTypes/releasedStatistics' import { type MonthReleases, type DayReleases, type YearReleases, type PreparedStatistics, -} from '../../lib/types/variants' +} from '/lib/types/variants' const ReleasedStatistics = (props: ReleasedStatisticsProps) => { const { language, title, releases } = props diff --git a/src/main/resources/react4xp/_entries/StatbankBox.tsx b/src/main/resources/react4xp/_entries/StatbankBox.tsx index 61069db0c..6aa43f84b 100644 --- a/src/main/resources/react4xp/_entries/StatbankBox.tsx +++ b/src/main/resources/react4xp/_entries/StatbankBox.tsx @@ -1,6 +1,6 @@ import React from 'react' import { ArrowRight } from 'react-feather' -import { type StatbankBoxProps } from '../../lib/types/partTypes/statbankBox' +import { type StatbankBoxProps } from '/lib/types/partTypes/statbankBox' const StatbankBox = (props: StatbankBoxProps) => { const { title, href, icon, fullWidth } = props diff --git a/src/main/resources/react4xp/_entries/StatbankLinkList.tsx b/src/main/resources/react4xp/_entries/StatbankLinkList.tsx index 659aa2b45..ae90fab7d 100644 --- a/src/main/resources/react4xp/_entries/StatbankLinkList.tsx +++ b/src/main/resources/react4xp/_entries/StatbankLinkList.tsx @@ -1,7 +1,7 @@ import React from 'react' import { Link } from '@statisticsnorway/ssb-component-library' import { ArrowRight } from 'react-feather' -import { sanitize } from '../../lib/ssb/utils/htmlUtils' +import { sanitize } from '/lib/ssb/utils/htmlUtils' interface StatbankLinkListProps { children: string diff --git a/src/main/resources/react4xp/accordion/Accordion.tsx b/src/main/resources/react4xp/accordion/Accordion.tsx index 4475c9fbc..da7fdd11a 100644 --- a/src/main/resources/react4xp/accordion/Accordion.tsx +++ b/src/main/resources/react4xp/accordion/Accordion.tsx @@ -1,8 +1,8 @@ import React from 'react' import { Accordion as AccordionComponent, NestedAccordion } from '@statisticsnorway/ssb-component-library' -import { type AccordionData, type AccordionItems, type AccordionProps } from '../../lib/types/partTypes/accordion' -import { sanitize } from '../../lib/ssb/utils/htmlUtils' +import { type AccordionData, type AccordionItems, type AccordionProps } from '/lib/types/partTypes/accordion' +import { sanitize } from '/lib/ssb/utils/htmlUtils' const Accordion = (props: AccordionProps) => { const { accordions } = props diff --git a/src/main/resources/react4xp/attachmentTablesFigures/AttachmentTablesFigures.tsx b/src/main/resources/react4xp/attachmentTablesFigures/AttachmentTablesFigures.tsx index 2baea9ab1..a1851088a 100644 --- a/src/main/resources/react4xp/attachmentTablesFigures/AttachmentTablesFigures.tsx +++ b/src/main/resources/react4xp/attachmentTablesFigures/AttachmentTablesFigures.tsx @@ -6,8 +6,8 @@ import { sanitize } from '/lib/ssb/utils/htmlUtils' import { type AttachmentTablesFiguresProps, type AttachmentTablesFiguresData, -} from '../../lib/types/partTypes/attachmentTablesFigures' -import { type TableProps } from '../../lib/types/partTypes/table' +} from '/lib/types/partTypes/attachmentTablesFigures' +import { type TableProps } from '/lib/types/partTypes/table' import Table from '../table/Table' diff --git a/src/main/resources/react4xp/table/Table.tsx b/src/main/resources/react4xp/table/Table.tsx index 6bd68e464..a7f9c1218 100644 --- a/src/main/resources/react4xp/table/Table.tsx +++ b/src/main/resources/react4xp/table/Table.tsx @@ -13,8 +13,8 @@ import { import { default as isEmpty } from 'ramda/es/isEmpty' import { NumericFormat } from 'react-number-format' import { Alert } from 'react-bootstrap' -import { type TableProps } from '../../lib/types/partTypes/table' -import { PreliminaryData, type TableCellUniform } from '../../lib/types/xmlParser' +import { type TableProps } from '/lib/types/partTypes/table' +import { PreliminaryData, type TableCellUniform } from '/lib/types/xmlParser' declare global { interface Window { diff --git a/src/main/resources/react4xp/variables/VariableCard.tsx b/src/main/resources/react4xp/variables/VariableCard.tsx index 820ce7f5e..f835a9f42 100644 --- a/src/main/resources/react4xp/variables/VariableCard.tsx +++ b/src/main/resources/react4xp/variables/VariableCard.tsx @@ -1,6 +1,6 @@ import React from 'react' import { Card, Text } from '@statisticsnorway/ssb-component-library' -import { VariablesProps } from '../../lib/types/partTypes/variables' +import { VariablesProps } from '/lib/types/partTypes/variables' interface VariableCardProps { variable: VariablesProps['variables'][0] diff --git a/src/main/resources/react4xp/variables/VariableCardsList.tsx b/src/main/resources/react4xp/variables/VariableCardsList.tsx index f0d6b334d..71b0dca21 100644 --- a/src/main/resources/react4xp/variables/VariableCardsList.tsx +++ b/src/main/resources/react4xp/variables/VariableCardsList.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { type VariablesProps } from '../../lib/types/partTypes/variables' +import { type VariablesProps } from '/lib/types/partTypes/variables' import VariableCard from './VariableCard' interface VariableCardsListProps { diff --git a/src/main/resources/react4xp/variables/Variables.tsx b/src/main/resources/react4xp/variables/Variables.tsx index 2d24699e4..59642a253 100644 --- a/src/main/resources/react4xp/variables/Variables.tsx +++ b/src/main/resources/react4xp/variables/Variables.tsx @@ -1,6 +1,6 @@ import React from 'react' import { Text } from '@statisticsnorway/ssb-component-library' -import { type VariablesProps } from '../../lib/types/partTypes/variables' +import { type VariablesProps } from '/lib/types/partTypes/variables' import VariableCardsList from './VariableCardsList' export const DISPLAY_TYPE_CARDS = 'CARDS' diff --git a/src/main/resources/site/error/error.ts b/src/main/resources/site/error/error.ts index 907429ce3..cc6d97589 100644 --- a/src/main/resources/site/error/error.ts +++ b/src/main/resources/site/error/error.ts @@ -4,7 +4,7 @@ import { render } from '/lib/thymeleaf' import { render as r4xpRender } from '/lib/enonic/react4xp' import { getLanguage } from '/lib/ssb/utils/language' import { type Language } from '/lib/types/language' -import { randomUnsafeString } from '../../lib/ssb/utils/utils' +import { randomUnsafeString } from '/lib/ssb/utils/utils' const fourOFourView = resolve('./404.html') const mainErrorView = resolve('./error.html') diff --git a/src/main/resources/site/parts/article/article.tsx b/src/main/resources/site/parts/article/article.tsx index a81a55dac..e39d47e6a 100644 --- a/src/main/resources/site/parts/article/article.tsx +++ b/src/main/resources/site/parts/article/article.tsx @@ -1,7 +1,7 @@ import React from 'react' import { Title, Link, Divider } from '@statisticsnorway/ssb-component-library' -import { sanitize } from '../../../lib/ssb/utils/htmlUtils' -import { type ArticleProps } from '../../../lib/types/partTypes/article' +import { sanitize } from '/lib/ssb/utils/htmlUtils' +import { type ArticleProps } from '/lib/types/partTypes/article' function Article(props: ArticleProps) { const phrases = props.phrases diff --git a/src/main/resources/site/parts/banner/banner.tsx b/src/main/resources/site/parts/banner/banner.tsx index 70daa9e4d..dcc9d192f 100644 --- a/src/main/resources/site/parts/banner/banner.tsx +++ b/src/main/resources/site/parts/banner/banner.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { BannerProps } from '../../../lib/types/partTypes/banner' +import { BannerProps } from '/lib/types/partTypes/banner' function Banner(props: BannerProps) { const { diff --git a/src/main/resources/site/parts/contactForm/contactForm.tsx b/src/main/resources/site/parts/contactForm/contactForm.tsx index 5a3df441f..be8ccafa6 100644 --- a/src/main/resources/site/parts/contactForm/contactForm.tsx +++ b/src/main/resources/site/parts/contactForm/contactForm.tsx @@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react' import { Form, Container, Row, Col } from 'react-bootstrap' import { Input, Button, Dropdown, TextArea, Divider, Title, FormError } from '@statisticsnorway/ssb-component-library' import axios from 'axios' -import { type Phrases } from '../../../lib/types/language' +import { type Phrases } from '/lib/types/language' interface ContactFormProps { recaptchaSiteKey?: string diff --git a/src/main/resources/site/parts/employee/employee.tsx b/src/main/resources/site/parts/employee/employee.tsx index 568b4c8a3..c3264adb3 100644 --- a/src/main/resources/site/parts/employee/employee.tsx +++ b/src/main/resources/site/parts/employee/employee.tsx @@ -1,8 +1,8 @@ import React from 'react' import { Button, Title, Link, Paragraph, Accordion } from '@statisticsnorway/ssb-component-library' import { Share2, Send, Smartphone, Eye, Home, Download, Image } from 'react-feather' -import { sanitize } from '../../../lib/ssb/utils/htmlUtils' -import { EmployeeProps } from '../../../lib/types/partTypes/employee' +import { sanitize } from '/lib/ssb/utils/htmlUtils' +import { EmployeeProps } from '/lib/types/partTypes/employee' const Employee = (props: EmployeeProps) => { const { diff --git a/src/main/resources/site/parts/employeeList/employeeList.tsx b/src/main/resources/site/parts/employeeList/employeeList.tsx index 346fe9a7b..580296625 100644 --- a/src/main/resources/site/parts/employeeList/employeeList.tsx +++ b/src/main/resources/site/parts/employeeList/employeeList.tsx @@ -1,12 +1,12 @@ import React from 'react' import { Link, Divider, Text } from '@statisticsnorway/ssb-component-library' -import { sanitize } from '../../../lib/ssb/utils/htmlUtils' +import { sanitize } from '/lib/ssb/utils/htmlUtils' import { type Area, type EmployeeListProps, type IEmployeeMap, type IPreparedEmployee, -} from '../../../lib/types/partTypes/employeeList' +} from '/lib/types/partTypes/employeeList' function EmployeeList(props: EmployeeListProps) { const { employees, total, pageTitle, pageDescription } = props diff --git a/src/main/resources/site/parts/husleieCalculator/husleieCalculator.tsx b/src/main/resources/site/parts/husleieCalculator/husleieCalculator.tsx index 8cf166870..f96a7facd 100644 --- a/src/main/resources/site/parts/husleieCalculator/husleieCalculator.tsx +++ b/src/main/resources/site/parts/husleieCalculator/husleieCalculator.tsx @@ -12,8 +12,8 @@ import { } from '@statisticsnorway/ssb-component-library' import axios from 'axios' import { NumericFormat } from 'react-number-format' -import { KpiCalculatorProps } from '../../../lib/types/partTypes/kpiCalculator' -import { DropdownItem } from '../../../lib/types/partTypes/publicationArchive' +import { KpiCalculatorProps } from '/lib/types/partTypes/kpiCalculator' +import { DropdownItem } from '/lib/types/partTypes/publicationArchive' function HusleieCalculator(props: KpiCalculatorProps) { const validMaxYear = props.lastUpdated.year diff --git a/src/main/resources/site/parts/infoGraphics/infoGraphics.tsx b/src/main/resources/site/parts/infoGraphics/infoGraphics.tsx index c0621755d..05307bde3 100644 --- a/src/main/resources/site/parts/infoGraphics/infoGraphics.tsx +++ b/src/main/resources/site/parts/infoGraphics/infoGraphics.tsx @@ -1,7 +1,7 @@ import React from 'react' import { Title, Link } from '@statisticsnorway/ssb-component-library' import { Row, Col } from 'react-bootstrap' -import { InfoGraphicsProps } from '../../../lib/types/partTypes/infoGraphics' +import { InfoGraphicsProps } from '/lib/types/partTypes/infoGraphics' function InfoGraphics(props: InfoGraphicsProps) { return ( diff --git a/src/main/resources/site/parts/links/links.tsx b/src/main/resources/site/parts/links/links.tsx index 1d93d6930..fcf80aa21 100644 --- a/src/main/resources/site/parts/links/links.tsx +++ b/src/main/resources/site/parts/links/links.tsx @@ -1,7 +1,7 @@ import React from 'react' import { Link, TableLink } from '@statisticsnorway/ssb-component-library' import { ArrowRight } from 'react-feather' -import { LinksProps } from '../../../lib/types/partTypes/links' +import { LinksProps } from '/lib/types/partTypes/links' const Links = (props: LinksProps) => { const { children, href, withIcon, linkType, text, description } = props diff --git a/src/main/resources/site/parts/localSearch/localSearch.tsx b/src/main/resources/site/parts/localSearch/localSearch.tsx index 5a1481bf1..89ef3929d 100644 --- a/src/main/resources/site/parts/localSearch/localSearch.tsx +++ b/src/main/resources/site/parts/localSearch/localSearch.tsx @@ -1,6 +1,6 @@ import React from 'react' import { Title, Dropdown } from '@statisticsnorway/ssb-component-library' -import { type SearchItem } from '../../../lib/types/partTypes/localSearch' +import { type SearchItem } from '/lib/types/partTypes/localSearch' interface LocalSearchProps { title?: string diff --git a/src/main/resources/site/parts/mailChimpForm/mailChimpForm.tsx b/src/main/resources/site/parts/mailChimpForm/mailChimpForm.tsx index cc72a0cf6..46f7a01f9 100644 --- a/src/main/resources/site/parts/mailChimpForm/mailChimpForm.tsx +++ b/src/main/resources/site/parts/mailChimpForm/mailChimpForm.tsx @@ -1,6 +1,6 @@ import React, { useState } from 'react' import { Button, Input, Paragraph } from '@statisticsnorway/ssb-component-library' -import { MailChimpFormProps } from '../../../lib/types/partTypes/mailChimpForm' +import { MailChimpFormProps } from '/lib/types/partTypes/mailChimpForm' function MailchimpForm(props: MailChimpFormProps) { const [email, setEmail] = useState({ diff --git a/src/main/resources/site/parts/menuDropdown/menuDropdown.tsx b/src/main/resources/site/parts/menuDropdown/menuDropdown.tsx index 14ab7a398..908dd1017 100644 --- a/src/main/resources/site/parts/menuDropdown/menuDropdown.tsx +++ b/src/main/resources/site/parts/menuDropdown/menuDropdown.tsx @@ -1,7 +1,7 @@ import React, { useEffect, useRef, useState } from 'react' import { Dropdown } from '@statisticsnorway/ssb-component-library' import { ChevronDown, ChevronUp } from 'react-feather' -import { type MenuDropdownProps, type Municipality } from '../../../lib/types/partTypes/menuDropdown' +import { type MenuDropdownProps, type Municipality } from '/lib/types/partTypes/menuDropdown' function MenuDropdown(props: MenuDropdownProps) { const { diff --git a/src/main/resources/site/parts/nameSearch/nameSearch.jsx b/src/main/resources/site/parts/nameSearch/nameSearch.jsx index 53e3826cd..a21d7309d 100644 --- a/src/main/resources/site/parts/nameSearch/nameSearch.jsx +++ b/src/main/resources/site/parts/nameSearch/nameSearch.jsx @@ -11,7 +11,7 @@ import highchartsExportingOffline from 'highcharts/modules/offline-exporting' import highchartsExportData from 'highcharts/modules/export-data' import highchartsAccessibility from 'highcharts/modules/accessibility' import { useMediaQuery } from 'react-responsive' -import { sanitize } from '../../../lib/ssb/utils/htmlUtils' +import { sanitize } from '/lib/ssb/utils/htmlUtils' import accessibilityLang from './../../../assets/js/highchart-lang.json' if (typeof window !== 'undefined' && typeof Highcharts === 'object') { diff --git a/src/main/resources/site/parts/omStatistikken/omStatistikken.tsx b/src/main/resources/site/parts/omStatistikken/omStatistikken.tsx index 03088a508..9a944f87f 100644 --- a/src/main/resources/site/parts/omStatistikken/omStatistikken.tsx +++ b/src/main/resources/site/parts/omStatistikken/omStatistikken.tsx @@ -1,6 +1,6 @@ import React from 'react' import Accordion from '/react4xp/accordion/Accordion' -import { type AboutTheStatisticsProps } from '../../../lib/types/partTypes/omStatistikken' +import { type AboutTheStatisticsProps } from '/lib/types/partTypes/omStatistikken' const OmStatistikken = (props: AboutTheStatisticsProps) => { const { ingress, label, lastUpdatedPhrase, lastUpdated, accordions } = props diff --git a/src/main/resources/site/parts/profiledBox/profiledBox.tsx b/src/main/resources/site/parts/profiledBox/profiledBox.tsx index 594214a90..c3d7b9fc4 100644 --- a/src/main/resources/site/parts/profiledBox/profiledBox.tsx +++ b/src/main/resources/site/parts/profiledBox/profiledBox.tsx @@ -1,6 +1,6 @@ import React from 'react' import { Card, Paragraph } from '@statisticsnorway/ssb-component-library' -import { ProfiledBoxProps } from '../../../lib/types/partTypes/profiledBox' +import { ProfiledBoxProps } from '/lib/types/partTypes/profiledBox' const ProfiledBox = (props: ProfiledBoxProps) => { const { imgUrl, imageAltText, imagePlacement, href, subTitle, title, titleSize, preambleText, ariaLabel } = props diff --git a/src/main/resources/site/parts/project/project.tsx b/src/main/resources/site/parts/project/project.tsx index c2c44c1da..896ad442d 100644 --- a/src/main/resources/site/parts/project/project.tsx +++ b/src/main/resources/site/parts/project/project.tsx @@ -1,8 +1,8 @@ import React from 'react' import { Title, Accordion, Link } from '@statisticsnorway/ssb-component-library' import { User, Calendar, Settings } from 'react-feather' -import { sanitize } from '../../../lib/ssb/utils/htmlUtils' -import { ProjectProps } from '../../../lib/types/partTypes/project' +import { sanitize } from '/lib/ssb/utils/htmlUtils' +import { ProjectProps } from '/lib/types/partTypes/project' const Project = (props: ProjectProps) => { const { diff --git a/src/main/resources/site/parts/publicationArchive/publicationArchive.tsx b/src/main/resources/site/parts/publicationArchive/publicationArchive.tsx index c6f9dbfb4..ec369b07d 100644 --- a/src/main/resources/site/parts/publicationArchive/publicationArchive.tsx +++ b/src/main/resources/site/parts/publicationArchive/publicationArchive.tsx @@ -3,12 +3,12 @@ import { Button, Divider, Link, Title, Text, Dropdown } from '@statisticsnorway/ import { NumericFormat } from 'react-number-format' import { ChevronDown } from 'react-feather' import axios from 'axios' -import { sanitize } from '../../../lib/ssb/utils/htmlUtils' +import { sanitize } from '/lib/ssb/utils/htmlUtils' import { type DropdownItem, type PublicationArchiveProps, type PublicationItem, -} from '../../../lib/types/partTypes/publicationArchive' +} from '/lib/types/partTypes/publicationArchive' function PublicationArchive(props: PublicationArchiveProps) { const { diff --git a/src/main/resources/site/parts/relatedFactPage/relatedFactPage.tsx b/src/main/resources/site/parts/relatedFactPage/relatedFactPage.tsx index 2a83b6be1..c3dddc48f 100644 --- a/src/main/resources/site/parts/relatedFactPage/relatedFactPage.tsx +++ b/src/main/resources/site/parts/relatedFactPage/relatedFactPage.tsx @@ -1,7 +1,7 @@ import React, { useState, useRef, useEffect } from 'react' import { PictureCard, Button } from '@statisticsnorway/ssb-component-library' import axios from 'axios' -import { RelatedFactPageProps } from '../../../lib/types/partTypes/relatedFactPage' +import { RelatedFactPageProps } from '/lib/types/partTypes/relatedFactPage' function RelatedBoxes(props: RelatedFactPageProps) { const { diff --git a/src/main/resources/site/parts/relatedKostra/relatedKostra.tsx b/src/main/resources/site/parts/relatedKostra/relatedKostra.tsx index bbdd66d44..526f7a969 100644 --- a/src/main/resources/site/parts/relatedKostra/relatedKostra.tsx +++ b/src/main/resources/site/parts/relatedKostra/relatedKostra.tsx @@ -1,8 +1,8 @@ import React from 'react' import { Link } from '@statisticsnorway/ssb-component-library' import { ArrowRight } from 'react-feather' -import { sanitize } from '../../../lib/ssb/utils/htmlUtils' -import { RelatedKostraProps } from '../../../lib/types/partTypes/relatedKostra' +import { sanitize } from '/lib/ssb/utils/htmlUtils' +import { RelatedKostraProps } from '/lib/types/partTypes/relatedKostra' const RelatedKostra = (props: RelatedKostraProps) => { const { title, description, href, children, linkType } = props diff --git a/src/main/resources/site/parts/searchResult/searchResultView.tsx b/src/main/resources/site/parts/searchResult/searchResultView.tsx index 295635569..b8b96a279 100644 --- a/src/main/resources/site/parts/searchResult/searchResultView.tsx +++ b/src/main/resources/site/parts/searchResult/searchResultView.tsx @@ -15,10 +15,10 @@ import { ChevronDown, User, X } from 'react-feather' import axios from 'axios' import { NumericFormat } from 'react-number-format' import { Col, Row } from 'react-bootstrap' -import { sanitize } from '../../../lib/ssb/utils/htmlUtils' -import { NameSearchData, type SearchResultProps } from '../../../lib/types/partTypes/searchResult' -import { type DropdownItem } from '../../../lib/types/partTypes/publicationArchive' -import { type PreparedSearchResult } from '../../../lib/types/solr' +import { sanitize } from '/lib/ssb/utils/htmlUtils' +import { NameSearchData, type SearchResultProps } from '/lib/types/partTypes/searchResult' +import { type DropdownItem } from '/lib/types/partTypes/publicationArchive' +import { type PreparedSearchResult } from '/lib/types/solr' const ADDITIONAL_HITS_LENGTH = 15 diff --git a/src/main/resources/site/parts/simpleStatbank/simpleStatbank.tsx b/src/main/resources/site/parts/simpleStatbank/simpleStatbank.tsx index 17c57bd1c..0a7b8549b 100644 --- a/src/main/resources/site/parts/simpleStatbank/simpleStatbank.tsx +++ b/src/main/resources/site/parts/simpleStatbank/simpleStatbank.tsx @@ -2,8 +2,8 @@ import React, { useState, useEffect, useRef } from 'react' import { Row, Col, Container } from 'react-bootstrap' import { Dropdown, Title, Button } from '@statisticsnorway/ssb-component-library' import { X } from 'react-feather' -import { sanitize } from '../../../lib/ssb/utils/htmlUtils' -import { type DimensionData, type SimpleStatbankProps } from '../../../lib/types/partTypes/simpleStatbank' +import { sanitize } from '/lib/ssb/utils/htmlUtils' +import { type DimensionData, type SimpleStatbankProps } from '/lib/types/partTypes/simpleStatbank' type DropdownItem = { id: string diff --git a/src/main/resources/site/parts/statbankFrame/statbankFrame.tsx b/src/main/resources/site/parts/statbankFrame/statbankFrame.tsx index c485b98e2..9f65264f0 100644 --- a/src/main/resources/site/parts/statbankFrame/statbankFrame.tsx +++ b/src/main/resources/site/parts/statbankFrame/statbankFrame.tsx @@ -1,7 +1,7 @@ import React from 'react' import { Breadcrumb, Link } from '@statisticsnorway/ssb-component-library' import { Col, Container, Row } from 'react-bootstrap' -import { StatbankFrameProps } from '../../../lib/types/partTypes/statbankFrame' +import { StatbankFrameProps } from '/lib/types/partTypes/statbankFrame' function StatbankFrame(props: StatbankFrameProps) { function breadcrumb(bread: object) { diff --git a/src/main/resources/site/parts/statbankSubjectTree/statbankSubjectTree.tsx b/src/main/resources/site/parts/statbankSubjectTree/statbankSubjectTree.tsx index ea0b778f8..b2ce5bde1 100644 --- a/src/main/resources/site/parts/statbankSubjectTree/statbankSubjectTree.tsx +++ b/src/main/resources/site/parts/statbankSubjectTree/statbankSubjectTree.tsx @@ -4,7 +4,7 @@ import { type MainSubjectWithSubs, type PreparedSubs, type StatbankSubjectTreeProps, -} from '../../../lib/types/partTypes/statbankSubjectTree' +} from '/lib/types/partTypes/statbankSubjectTree' function StatbankSubjectTree(props: StatbankSubjectTreeProps) { function renderStatisticLink(statistic: PreparedSubs['statistics'][0]) { diff --git a/src/main/resources/site/parts/staticVisualization/staticVisualization.tsx b/src/main/resources/site/parts/staticVisualization/staticVisualization.tsx index 3f1379da3..f7a34338e 100644 --- a/src/main/resources/site/parts/staticVisualization/staticVisualization.tsx +++ b/src/main/resources/site/parts/staticVisualization/staticVisualization.tsx @@ -12,8 +12,8 @@ import { } from '@statisticsnorway/ssb-component-library' import { Row, Col } from 'react-bootstrap' import { NumericFormat } from 'react-number-format' -import { type StaticVisualizationProps } from '../../../lib/types/partTypes/staticVisualization' -import { HtmlTable, type BodyCell } from '../../../lib/types/partTypes/table' +import { type StaticVisualizationProps } from '/lib/types/partTypes/staticVisualization' +import { HtmlTable, type BodyCell } from '/lib/types/partTypes/table' function StaticVisualization(props: StaticVisualizationProps) { const [activeTab, changeTab] = useState('figure') diff --git a/src/main/resources/site/parts/subjectArticleList/subjectArticleList.tsx b/src/main/resources/site/parts/subjectArticleList/subjectArticleList.tsx index 4a37f2184..a96841087 100644 --- a/src/main/resources/site/parts/subjectArticleList/subjectArticleList.tsx +++ b/src/main/resources/site/parts/subjectArticleList/subjectArticleList.tsx @@ -2,8 +2,8 @@ import React, { useEffect, useState } from 'react' import { Title, Link, Button, Divider, Dropdown } from '@statisticsnorway/ssb-component-library' import { ChevronDown } from 'react-feather' import axios from 'axios' -import { type SubjectArticleListProps } from '../../../lib/types/partTypes/subjectArticleList' -import { type DropdownItem } from '../../../lib/types/partTypes/publicationArchive' +import { type SubjectArticleListProps } from '/lib/types/partTypes/subjectArticleList' +import { type DropdownItem } from '/lib/types/partTypes/publicationArchive' /* TODO: - Fikse sortering (?) diff --git a/src/main/resources/site/parts/upcomingReleases/upcomingReleases.tsx b/src/main/resources/site/parts/upcomingReleases/upcomingReleases.tsx index e2bdd253f..466606dce 100644 --- a/src/main/resources/site/parts/upcomingReleases/upcomingReleases.tsx +++ b/src/main/resources/site/parts/upcomingReleases/upcomingReleases.tsx @@ -3,19 +3,19 @@ import { Button, Link } from '@statisticsnorway/ssb-component-library' import axios from 'axios' import { ChevronDown } from 'react-feather' import { parseISO } from 'date-fns/parseISO' -import { sanitize } from '../../../lib/ssb/utils/htmlUtils' +import { sanitize } from '/lib/ssb/utils/htmlUtils' import { type FlattenedUpcomingReleasesDate, type FlattenedUpcomingReleases, type UpcomingReleasesProps, -} from '../../../lib/types/partTypes/upcomingReleases' +} from '/lib/types/partTypes/upcomingReleases' import { type PreparedContentRelease, type PreparedUpcomingRelease, type PreparedVariant, type PreparedStatistics, type YearReleases, -} from '../../../lib/types/variants' +} from '/lib/types/variants' // TODO: Need the flattened and transformed data to be typed diff --git a/src/main/resources/site/parts/webcruiterAdvertisementList/WebcruiterAdvertisementList.tsx b/src/main/resources/site/parts/webcruiterAdvertisementList/WebcruiterAdvertisementList.tsx index 1a9844fdd..17ff2c619 100644 --- a/src/main/resources/site/parts/webcruiterAdvertisementList/WebcruiterAdvertisementList.tsx +++ b/src/main/resources/site/parts/webcruiterAdvertisementList/WebcruiterAdvertisementList.tsx @@ -7,7 +7,7 @@ import { type WebcruiterAdvertisementListProps, type AdvertisementList, type WebcruiterAdvertisementListRssFeedResponseErrorMessage, -} from '../../../lib/types/partTypes/webcruiterAdvertisementList' +} from '/lib/types/partTypes/webcruiterAdvertisementList' const WebcruiterAdvertistmentList = (props: WebcruiterAdvertisementListProps) => { const { diff --git a/src/main/resources/site/parts/webcruiterAdvertisementList/webcruiterAdvertisementList.ts b/src/main/resources/site/parts/webcruiterAdvertisementList/webcruiterAdvertisementList.ts index a2b290da7..12ce75169 100644 --- a/src/main/resources/site/parts/webcruiterAdvertisementList/webcruiterAdvertisementList.ts +++ b/src/main/resources/site/parts/webcruiterAdvertisementList/webcruiterAdvertisementList.ts @@ -1,18 +1,18 @@ import { getComponent, getContent } from '/lib/xp/portal' import { render } from '/lib/enonic/react4xp' -import { fromPartCache } from '../../../lib/ssb/cache/partCache' -import { formatDate } from '../../../lib/ssb/utils/dateUtils' -import { ensureArray } from '../../../lib/ssb/utils/arrayUtils' -import { renderError } from '../../../lib/ssb/error/error' +import { fromPartCache } from '/lib/ssb/cache/partCache' +import { formatDate } from '/lib/ssb/utils/dateUtils' +import { ensureArray } from '/lib/ssb/utils/arrayUtils' +import { renderError } from '/lib/ssb/error/error' import { type WebcruiterAdvertisementListRssFeedResponse, type WebcruiterAdvertisementListProps, type NestedItemValue, -} from '../../../lib/types/partTypes/webcruiterAdvertisementList' -import { getPhrases } from '../../../lib/ssb/utils/language' +} from '/lib/types/partTypes/webcruiterAdvertisementList' +import { getPhrases } from '/lib/ssb/utils/language' -import { fetchWebcruiterAdvertisementListRSSFeed } from '../../../lib/ssb/parts/webcruiterAdvertisementList' +import { fetchWebcruiterAdvertisementListRSSFeed } from '/lib/ssb/parts/webcruiterAdvertisementList' export function get(req: XP.Request): XP.Response { try {