Skip to content

Commit

Permalink
chore: nx run-many --target lint --fix --parallel 10 --projects=appli…
Browse files Browse the repository at this point in the history
…cation-templates-social-insurance-administration-additional-support-for-the-elderly,application-templates-transport-authority-order-vehicle-registration-certificate,application-templates-social-insurance-administration-household-supplement,application-templates-transport-authority-digital-tachograph-workshop-card,application-templates-transport-authority-digital-tachograph-company-card,application-templates-transport-authority-digital-tachograph-drivers-card,application-templates-social-insurance-administration-pension-supplement,application-templates-transport-authority-anonymity-in-vehicle-registry,application-templates-transport-authority-transfer-of-vehicle-ownership,application-templates-parliamentary-list-creation,application-templates-parliamentary-list-signing,application-templates-presidential-list-creation,application-templates-social-insurance-administration-old-age-pension,application-templates-transport-authority-order-vehicle-license-plate,application-templates-presidential-list-signing,application-templates-social-insurance-administration-death-benefits,application-templates-transport-authority-change-co-owner-of-vehicle,application-templates-transport-authority-change-operator-of-vehicle,fiancial-statement-individual-election,application-templates-children-residence-change-v2,application-templates-social-insurance-administration-income-plan,clients-university-application-agricultural-university-of-iceland,application-templates-transport-authority-license-plate-renewal,application-templates-inao-financial-statement-political-party,clients-university-application-iceland-university-of-the-arts,api-domains-administration-of-occupational-safety-and-health,application-templates-directorate-of-immigration-citizenship,application-templates-driving-license-book-update-instructor,clients-transport-authority-digital-tachograph-drivers-card,application-templates-social-insurance-administration-core,application-templates-aosh-transfer-of-machine-ownership,clients-administration-of-occupational-safety-and-health,financial-statement-cemetery,api-domains-icelandic-government-institution-vacancies,application-templates-complaints-to-althingi-ombudsman,application-templates-driving-instructor-registrations,application-templates-aosh-work-accident-notification,clients-university-application-university-of-akureyri,application-templates-aosh-change-machine-supervisor,application-templates-european-health-insurance-card,application-templates-healthcare-license-certificate,clients-university-application-university-of-iceland,api-domains-financial-statement-individual-election,api-domains-official-journal-of-iceland-application,clients-health-insurance,clients-university-application-reykjavik-university,application-templates-document-provider-onboarding,application-templates-health-insurance-declaration,clients-icelandic-government-institution-vacancies,clients-transport-authority-vehicle-plate-ordering,application-templates-aosh-request-for-inspection,application-templates-driving-assessment-approval,application-templates-driving-school-confirmation,application-templates-funding-government-projects,application-templates-official-journal-of-iceland,clients-transport-authority-vehicle-plate-renewal,clients-university-application-bifrost-university,clients-rights-portal,clients-transport-authority-vehicle-owner-change,application-templates-aosh-register-new-machine,application-templates-data-protection-complaint,application-templates-driving-license-duplicate,application-templates-financial-statements-inao,application-templates-institution-collaboration,clients-official-journal-of-iceland-application,clients-university-application-holar-university,application-templates-aosh-street-registration,application-templates-grindavik-housing-buyout,application-templates-public-debt-payment-plan,clients-transport-authority-vehicle-codetables,application-templates-aosh-deregister-machine,application-templates-driving-learners-permit,application-templates-general-fishing-license,clients-transport-authority-vehicle-infolocks,clients-transport-authority-vehicle-operators,portals-my-pages-education-student-assessment,portals-my-pages-social-insurance-maintenance,application-templates-alcohol-tax-redemption,application-templates-healthcare-work-permit,clients-transport-authority-vehicle-printing,services-auth-personal-representative-public,application-templates-accident-notification,application-templates-announcement-of-death,application-templates-mortgage-certificate,clients-official-journal-of-iceland,application-templates-family-matters-core,application-templates-marriage-conditions,application-templates-no-debt-certificate,api-domains-financial-statement-cemetery,api-domains-municipalities-financial-aid,application-templates-inheritance-report,application-templates-new-primary-school,application-templates-passport-annulment,application-templates-reference-template,api-domains-official-journal-of-iceland,application-templates-operating-license,clients-district-commissioners-licenses,clients-social-insurance-administration,api-domains-housing-benefit-calculator,application-templates-general-petition,application-templates-health-insurance,application-templates-secondary-school,portals-admin-icelandic-names-registry,portals-my-pages-occupational-licenses,api-domains-financial-statements-inao,application-templates-criminal-record,application-templates-driving-license,application-templates-example-payment,clients-ums-cost-of-living-calculator,portals-my-pages-signature-collection,services-auth-personal-representative,api-domains-icelandic-names-registry,api-domains-national-registry-x-road,api-domains-occupational-licenses-v2,application-templates-parental-leave,clients-municipalities-financial-aid,api-domains-intellectual-properties,application-templates-car-recycling,application-templates-financial-aid,application-templates-login-service,judicial-system-digital-mailbox-api,application-templates-energy-funds,application-templates-home-support,clients-directorate-of-immigration,clients-housing-benefit-calculator,portals-admin-signature-collection,portals-my-pages-education-license,portals-shared-modules-delegations,regulations-admin-backend,api-domains-directorate-of-labour,api-domains-occupational-licenses,api-domains-watson-assistant-chat,clients-data-protection-complaint,clients-financial-statements-inao,contentful-role-permissions,portals-admin-air-discount-scheme,portals-my-pages-education-career,portals-my-pages-education-degree,api-domains-driving-license-book,api-domains-mortgage-certificate,api-domains-signature-collection,api-domains-umbodsmadur-skuldara,application-template-api-modules,application-templates-university,icelandic-names-registry-backend,portals-admin-application-system,services-contentful-entry-tagger,api-consultation-portal,api-domains-air-discount-scheme,api-domains-transport-authority,clients-adr-and-machine-license,clients-intellectual-properties,clients-judicial-administration,clients-rsk-personal-tax-return,island-ui-vanilla-extract-utils,judicial-system-message-handler,portals-admin-document-provider,portals-admin-regulations-admin,api-domains-disability-license,api-domains-endorsement-system,api-domains-health-directorate,api-domains-university-careers,api-domains-university-gateway,application-templates-passport,clients-university-gateway-api,clients-vehicle-service-fjs-v1,delegation-admin,icelandic-names-registry-types,portals-my-pages-law-and-order,api-domains-aircraft-registry,api-domains-document-provider,api-domains-national-registry,api-domains-regulations-admin,application-templates-id-card,clients-ultraviolet-radiation,my-pages-air-discount,portals-my-pages-applications,portals-my-pages-restrictions,api-domains-company-registry,api-domains-health-insurance,api-domains-housing-benefits,api-domains-payment-schedule,api-domains-secondary-school,api-domains-social-insurance,application-templates-estate,application-templates-p-sign,clients-driving-license-book,clients-hms-housing-benefits,clients-national-registry-v2,clients-national-registry-v3,clients-rsk-company-registry,clients-signature-collection,content-search-index-manager,content-search-indexer-types,judicial-system-court-client,portals-my-pages-information,services-auth-delegation-api,air-discount-scheme-backend,api-domains-criminal-record,api-domains-driving-license,api-domains-fishing-license,api-domains-license-service,application-template-loader,clients-air-discount-scheme,clients-auth-delegation-api,clients-consultation-portal,judicial-system-audit-trail,services-university-gateway,air-discount-scheme-consts,api-domains-communications,api-domains-content-search,clients-althingi-ombudsman,clients-disability-license,clients-health-directorate,clients-judicial-system-sp,clients-smart-solutions-v2,clients-university-careers,judicial-system-formatters,portals-admin-service-desk,portals-my-pages-constants,portals-my-pages-documents,portals-my-pages-education,portals-my-pages-petitions,services-user-notification,air-discount-scheme-types,aircraft-registry,api-domains-api-catalogue,api-domains-law-and-order,api-domains-notifications,api-domains-rights-portal,api-domains-ship-registry,api-domains-work-machines,application-ui-components,clients-document-provider,clients-regulations-admin,clients-rsk-relationships,clients-user-notification,clients-work-accident-ver,financial-aid-web-osk-e2e,judicial-system-scheduler,portals-admin-form-system,portals-my-pages-licenses,portals-my-pages-sessions,services-endorsements-api,api-domains-email-signup,api-domains-energy-funds,api-domains-user-profile,clients-payment-schedule,clients-secondary-school,clients-vehicles-mileage,clients-workpoint-arborg,external-contracts-tests,portals-my-pages-consent,portals-my-pages-finance,portals-my-pages-graphql,services-auth-public-api,services-xroad-collector,air-discount-scheme-api,air-discount-scheme-web,api-domains-application,api-domains-file-upload,api-domains-regulations,api/domains/form-system,application-api-history,application-api-payment,application-system-form,clients-auth-public-api,clients-criminal-record,clients-driving-license,clients-firearm-license,clients-fishing-license,clients-hunting-license,financial-aid-web-veita,judicial-system-backend,judicial-system-lawyers,judicial-system-message,judicial-system-xrd-api,portals-admin-ids-admin,portals-my-pages-assets,portals-my-pages-health,services-auth-admin-api,services-search-indexer,api-catalogue-services,api-domains-auth-admin,api-domains-fiskistofa,api-domains-statistics,application-system-api,clients-auth-admin-api,clients-ehic-client-v1,clients-license-client,clients-smartsolutions,content-search-indexer,content-search-metrics,content-search-toolkit,financial-aid-open-api,judicial-system-consts,portals-admin-petition,api-catalogue-elastic,api-domains-documents,api-domains-education,api-domains-hms-loans,api-domains-syslumenn,application-api-files,application-ui-fields,clients-car-recycling,clients-charge-fjs-v2,clients-work-machines,financial-aid-backend,financial-aid-web-osk,judicial-system-types,portals-my-pages-core,services-auth-ids-api,services-auth-testing,services-user-profile,ship-registry,api-catalogue-consts,api-domains-identity,api-domains-passport,api-domains-sessions,api-domains-vehicles,application-api-core,application-ui-forms,application-ui-shell,clients-auth-ids-api,clients-documents-v2,clients-energy-funds,clients-user-profile,financial-aid-shared,github-actions-cache,infra-express-server,island-ui-contentful,judicial-system-auth,license-api,services-form-system,api-catalogue-types,api-domains-finance,api-domains-payment,application-graphql,application-testing,clients-middlewares,clients-mms,clients-regulations,consultation-portal,form-system-client,island-ui-storybook,judicial-system-api,judicial-system-web,react-feature-flags,shared-translations,skilavottord-consts,api-domains-assets,clients-finance-v2,clients-fiskistofa,clients-statistics,nest-feature-flags,portals-admin-core,reference-next-app,services-documents,shared-form-fields,skilavottord-types,testing-containers,university-gateway,application-types,application-utils,clients-documents,clients-hms-loans,clients-mms-frigg,clients-mms-grade,clients-passports,clients-syslumenn,financial-aid-api,infra-nest-server,infra-next-server,reference-backend,residence-history,services-sessions,shared-components,api-domains-auth,application-core,clients-identity,clients-islykill,clients-sessions,clients-vehicles,cms-translations,download-service,license,react-components,react-spa-shared,service-portal,shared-connected,shared-constants,skilavottord-web,testing-fixtures,auth-nest-tools,clients-finance,clients-zendesk,contentful-apps,dokobit-signing,island-ui-theme,island-ui-utils,nest-dataloader,nest-pagination,skilavottord-ws,user-monitoring,auth-admin-web,clients-assets,clients-p-card,island-ui-core,nest-sequelize,shared-mocking,shared-problem,email-service,feature-flags,infra-metrics,infra-tracing,message-queue,next-ids-auth,portals-admin,react-spa-bff,auth-api-lib,clients-inna,clients-vmst,file-storage,localization,nest-graphql,nest-problem,nest-swagger,portals-core,services-bff,shared-babel,shared-types,shared-utils,testing-nest,auth-scopes,auth-shared,clients-cms,nest-config,regulations,testing-e2e,api-schema,native-app,nest-audit,shared-pii,system-e2e,api-mocks,nest-core,plausible,nest-aws,nova-sms,logging,cache,api,cms,web update dirty files
  • Loading branch information
andes-it committed Jan 22, 2025
1 parent 0df1c86 commit 78c5c3e
Show file tree
Hide file tree
Showing 43 changed files with 96 additions and 107 deletions.
2 changes: 1 addition & 1 deletion apps/auth-admin-web/components/Admin/nav/AdminTabNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface Props {
}

const AdminTabNav: React.FC<React.PropsWithChildren<Props>> = ({
handleTabChange: handleTabChange,
handleTabChange,
activeTab: activetab,
children,
}) => {
Expand Down
2 changes: 1 addition & 1 deletion apps/auth-admin-web/components/Client/nav/ClientTabNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface Props {
}

const ClientTabNav: React.FC<React.PropsWithChildren<Props>> = ({
handleTabChange: handleTabChange,
handleTabChange,
activeTab: activetab,
children,
}) => {
Expand Down
3 changes: 2 additions & 1 deletion apps/contentful-apps/components/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { FC, useEffect, useState } from 'react'
import { SDKProvider } from '@contentful/react-apps-toolkit'
import { GlobalStyles } from '@contentful/f36-components'
import { SDKProvider } from '@contentful/react-apps-toolkit'

import LocalhostWarning from './LocalhostWarning'

export const Layout: FC<React.PropsWithChildren<unknown>> = ({ children }) => {
Expand Down
2 changes: 1 addition & 1 deletion apps/contentful-apps/components/LocalhostWarning.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { Paragraph, TextLink, Note, Flex } from '@contentful/f36-components'
import { Flex,Note, Paragraph, TextLink } from '@contentful/f36-components'

const LocalhostWarning = () => {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Widget operations
import { DEFAULT_LOCALE } from '../../../constants'
import markdownEditor from './widgets/markdownEditor'
import multipleLine from './widgets/multipleLine'
import richTextEditor from './widgets/richTextEditor'
import singleLine from './widgets/singleLine'
import multipleLine from './widgets/multipleLine'
import markdownEditor from './widgets/markdownEditor'
import { DEFAULT_LOCALE } from '../../../constants'

interface WidgetActions {
extractText: (value: string) => string[]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useEffect, useState } from 'react'
import { FieldExtensionSDK } from '@contentful/app-sdk'
import { useSDK } from '@contentful/react-apps-toolkit'
import { Checkbox } from '@contentful/f36-components'
import { useSDK } from '@contentful/react-apps-toolkit'

const localeMap = {
en: 'English',
Expand Down
4 changes: 2 additions & 2 deletions apps/contentful-apps/pages/fields/admin-only-json-field.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FieldExtensionSDK } from '@contentful/app-sdk'
import { useSDK } from '@contentful/react-apps-toolkit'
import { JsonEditor } from '@contentful/field-editor-json'
import { Paragraph } from '@contentful/f36-components'
import { JsonEditor } from '@contentful/field-editor-json'
import { useSDK } from '@contentful/react-apps-toolkit'

const AdminOnlyJsonField = () => {
const sdk = useSDK<FieldExtensionSDK>()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState } from 'react'
import { Box, Checkbox, Paragraph } from '@contentful/f36-components'
import { FieldExtensionSDK } from '@contentful/app-sdk'
import { Box, Checkbox, Paragraph } from '@contentful/f36-components'
import { useSDK } from '@contentful/react-apps-toolkit'

const AdminOnlyShortTextCheckBoxListField = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState } from 'react'
import { Paragraph, Select } from '@contentful/f36-components'
import { FieldExtensionSDK } from '@contentful/app-sdk'
import { Paragraph, Select } from '@contentful/f36-components'
import { useSDK } from '@contentful/react-apps-toolkit'

const AdminOnlyShortTextDropdown = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FieldExtensionSDK } from '@contentful/app-sdk'
import { useSDK } from '@contentful/react-apps-toolkit'
import { SingleLineEditor } from '@contentful/field-editor-single-line'
import { Box, Paragraph } from '@contentful/f36-components'
import { SingleLineEditor } from '@contentful/field-editor-single-line'
import { useSDK } from '@contentful/react-apps-toolkit'

const AdminOnlyShortTextField = () => {
const sdk = useSDK<FieldExtensionSDK>()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Paragraph } from '@contentful/f36-components'
import { useEffect } from 'react'
import { FieldExtensionSDK } from '@contentful/app-sdk'
import { useSDK } from '@contentful/react-apps-toolkit'
import { Paragraph } from '@contentful/f36-components'
import { SingleEntryReferenceEditor } from '@contentful/field-editor-reference'
import { useEffect } from 'react'
import { useSDK } from '@contentful/react-apps-toolkit'

const AdminOnlySingleReferenceField = () => {
const sdk = useSDK<FieldExtensionSDK>()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { useEffect, useState } from 'react'
import { EntryProps } from 'contentful-management'
import { DialogExtensionSDK, locations } from '@contentful/app-sdk'
import { FieldExtensionSDK } from '@contentful/app-sdk'
import {
Box,
Button,
Expand All @@ -8,16 +11,13 @@ import {
Spinner,
TextInput,
} from '@contentful/f36-components'
import { DialogExtensionSDK, locations } from '@contentful/app-sdk'
import { useCMA, useSDK } from '@contentful/react-apps-toolkit'
import { EntryProps } from 'contentful-management'
import { SearchIcon, CloseIcon } from '@contentful/f36-icons'
import { Pagination } from '@contentful/f36-components'
import { FieldExtensionSDK } from '@contentful/app-sdk'
import { CloseIcon,SearchIcon } from '@contentful/f36-icons'
import {
CombinedLinkActions,
MultipleEntryReferenceEditor,
} from '@contentful/field-editor-reference'
import { useCMA, useSDK } from '@contentful/react-apps-toolkit'

const DEBOUNCE_TIME = 500

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { useEffect } from 'react'
import { FieldExtensionSDK } from '@contentful/app-sdk'
import { useCMA, useSDK } from '@contentful/react-apps-toolkit'
import {
CombinedLinkActions,
MultipleEntryReferenceEditor,
} from '@contentful/field-editor-reference'
import { useCMA, useSDK } from '@contentful/react-apps-toolkit'

import { DEFAULT_LOCALE } from '../../constants'

const ArticleSubArticlesField = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { useEffect, useState } from 'react'
import { Note, Paragraph } from '@contentful/f36-components'
import { FieldExtensionSDK } from '@contentful/app-sdk'
import { Note, Paragraph } from '@contentful/f36-components'
import { useCMA, useSDK } from '@contentful/react-apps-toolkit'

import {
CONTENTFUL_ENVIRONMENT,
CONTENTFUL_SPACE,
Expand Down
2 changes: 1 addition & 1 deletion apps/contentful-apps/pages/fields/embed-link-field.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useState } from 'react'
import isUrl from 'is-url'
import { TextInput, Box, Text } from '@contentful/f36-components'
import { FieldExtensionSDK } from '@contentful/app-sdk'
import { Box, Text,TextInput } from '@contentful/f36-components'
import { useSDK } from '@contentful/react-apps-toolkit'

const ALLOWED_EMBED_URLS = ['https://e.infogram.com', 'https://app.powerbi.com']
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { useEffect, useState } from 'react'
import { FieldExtensionSDK } from '@contentful/app-sdk'
import {
TextInput,
Box,
Checkbox,
FormLabel,
FormControl,
Flex,
FormControl,
FormLabel,
TextInput,
} from '@contentful/f36-components'
import { FieldExtensionSDK } from '@contentful/app-sdk'
import { useSDK } from '@contentful/react-apps-toolkit'

interface ValueType {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { useEffect, useState } from 'react'
import { FieldExtensionSDK } from '@contentful/app-sdk'
import {
TextInput,
Box,
FormControl,
Radio,
Stack,
Box,
TextInput,
} from '@contentful/f36-components'
import { FieldExtensionSDK } from '@contentful/app-sdk'
import { useSDK } from '@contentful/react-apps-toolkit'

const INPUT_BOX_WIDTH = '200px'
Expand Down
2 changes: 1 addition & 1 deletion apps/contentful-apps/pages/fields/publish-date-field.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useEffect, useState } from 'react'
import { FieldExtensionSDK } from '@contentful/app-sdk'
import { useSDK } from '@contentful/react-apps-toolkit'
import { Box } from '@contentful/f36-components'
import { useSDK } from '@contentful/react-apps-toolkit'

const PublishDateField = () => {
const sdk = useSDK<FieldExtensionSDK>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { useEffect, useState } from 'react'
import { useDebounce } from 'react-use'
import { FieldExtensionSDK } from '@contentful/app-sdk'
import {
Paragraph,
FormControl,
Paragraph,
Radio,
Stack,
TextInput,
Expand Down
2 changes: 1 addition & 1 deletion apps/contentful-apps/pages/fields/time-duration-field.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useEffect, useState } from 'react'
import { TextInput, FormControl } from '@contentful/f36-components'
import { FieldExtensionSDK } from '@contentful/app-sdk'
import { FormControl,TextInput } from '@contentful/f36-components'
import { useSDK } from '@contentful/react-apps-toolkit'

interface TimeDuration {
Expand Down
6 changes: 3 additions & 3 deletions apps/contentful-apps/pages/fields/vacancy-contacts-field.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { useEffect, useState } from 'react'
import { Button, Box, TextInput, Text } from '@contentful/f36-components'
import { PlusIcon, DeleteIcon } from '@contentful/f36-icons'
import { useDebounce } from 'react-use'
import { FieldExtensionSDK } from '@contentful/app-sdk'
import { Box, Button, Text,TextInput } from '@contentful/f36-components'
import { DeleteIcon,PlusIcon } from '@contentful/f36-icons'
import { useSDK } from '@contentful/react-apps-toolkit'
import { useDebounce } from 'react-use'

const DEBOUNCE_TIME = 300

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Op } from 'sequelize'
import { StaffRole } from '@island.is/financial-aid/shared/lib'

interface Then {
result: Number
result: number
error: Error
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,9 @@ export const ActionCard: FC<React.PropsWithChildren<ActionCardProps>> = ({
const isTablet = width < theme.breakpoints.lg

const toolTipText = (
<>
<Text variant="small">
<Text variant="small">
{t.tooltip.text} <a href={t.tooltip.link}>{t.tooltip.link}</a>
</Text>
</>
)

const modelYear = formatYear(firstRegDate, dateFormat.is)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class SamgongustofaService {
// Parse xml to Json all Soap and added all vehicles and their information to vehicleInformationList
const vehicleInformationList: VehicleInformation[] = await parser
.parseStringPromise(allCarsResponse.data.replace(/(\t\n|\t|\n)/gm, ''))
.then(function (allCarsResult) {
.then((allCarsResult) => {
// check if SOAP returns 200 status code but with Fault message
if (
Object.prototype.hasOwnProperty.call(
Expand All @@ -99,7 +99,7 @@ export class SamgongustofaService {
'ns1:allVehiclesForPersidnoResponse'
][0]['allVehiclesForPersidnoReturn'][0]['_'],
)
.then(function (allCars) {
.then((allCars) => {
if (allCars['persidnolookup']['vehicleList'][0] == '') {
return []
}
Expand Down Expand Up @@ -144,7 +144,7 @@ export class SamgongustofaService {
)
return vehicleArr
})
.catch(function (err) {
.catch((err) => {
logger.error(
`Failed while parsing xml to json on getUserVehiclesInformation request with error: ${err}`,
)
Expand All @@ -153,7 +153,7 @@ export class SamgongustofaService {
)
})
})
.catch(function (err) {
.catch((err) => {
logger.error(
`Failed while parsing xml to json on allVehiclesForPersidno request with error: ${err}`,
)
Expand Down Expand Up @@ -203,7 +203,7 @@ export class SamgongustofaService {
.parseStringPromise(
basicInforesponse.data.replace(/(\t\n|\t|\n)/gm, ''),
)
.then(function (basicResult) {
.then((basicResult) => {
// check if SOAP returns 200 status code but with Fault message
if (
Object.prototype.hasOwnProperty.call(
Expand All @@ -224,7 +224,7 @@ export class SamgongustofaService {
'ns1:basicVehicleInformationResponse'
][0]['basicVehicleInformationReturn'][0]['_'],
)
.then(function (basicInfo) {
.then((basicInfo) => {
// If there is any information in updatelocks, stolens, ownerregistrationerrors then we may not deregister it
if (
typeof basicInfo.vehicle.ownerregistrationerrors[0]
Expand Down Expand Up @@ -266,7 +266,7 @@ export class SamgongustofaService {
}
return newVehicleArr[i]
})
.catch(function (err) {
.catch((err) => {
logger.error(
`Failed while parsing xml to json on basicVehicleInformation with error: ${err}`,
)
Expand All @@ -275,7 +275,7 @@ export class SamgongustofaService {
)
})
})
.catch(function (err) {
.catch((err) => {
logger.error(
`Failed while parsing xml to json on basicVehicleInformation with error: ${err}`,
)
Expand Down
16 changes: 9 additions & 7 deletions apps/tools/contentful-role-permissions/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
import {
contentfulManagementAccessToken,
spaceId,
environmentId,
} from '../constants'
import {
CollectionProp,
ContentTypeProps,
Expand All @@ -12,11 +7,18 @@ import {
RoleProps,
TagProps,
} from 'contentful-management'
import slugify from '@sindresorhus/slugify'
import type { ActionType } from 'contentful-management/dist/typings/entities/role'
import type { CheckboxState } from '../types'
import slugify from '@sindresorhus/slugify'

import { sortAlpha } from '@island.is/shared/utils'

import {
contentfulManagementAccessToken,
environmentId,
spaceId,
} from '../constants'
import type { CheckboxState } from '../types'

let client: PlainClientAPI | null = null

export const getContentfulManagementApiClient = (): PlainClientAPI => {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/screens/PetitionView/PetitionView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
Text,
} from '@island.is/island-ui/core'
import { Box, Button, Pagination, Table as T } from '@island.is/island-ui/core'
import { Markdown } from '@island.is/shared/components'
import { InstitutionPanel } from '@island.is/web/components'
import {
GetNamespaceQuery,
Expand All @@ -27,7 +28,6 @@ import { Screen } from '../../types'
import PetitionSkeleton from './PetitionSkeleton'
import { useGetPetitionList, useGetPetitionListEndorsements } from './queries'
import { formatDate, getBaseUrl, pageSize } from './utils'
import { Markdown } from '@island.is/shared/components'

interface PetitionViewProps {
namespace?: Record<string, string>
Expand Down
Loading

0 comments on commit 78c5c3e

Please sign in to comment.