feat: introduce CI linting & fix various issues (#5)
* introduce CI checks * fixx * add caching * fixes * wip * server bridge linting * No lint errors * fix paths on lint:prettier * make files pretty again * fix stylelint * fix lock --------- Co-authored-by: Kristaps Fabians Geikins <fabis94@live.com>
This commit is contained in:
+2
-3
@@ -15,7 +15,6 @@ import { onError, type ErrorResponse } from '@apollo/client/link/error'
|
||||
import { getMainDefinition } from '@apollo/client/utilities'
|
||||
import { setContext } from '@apollo/client/link/context'
|
||||
import { useHostAppStore } from '~/store/hostApp'
|
||||
import type { ToastNotification } from '@speckle/ui-components'
|
||||
import { ToastNotificationType } from '@speckle/ui-components'
|
||||
|
||||
export type DUIAccount = {
|
||||
@@ -86,7 +85,7 @@ export const useAccountStore = defineStore('accountStore', () => {
|
||||
try {
|
||||
await acc.client.query({ query: accountTestQuery })
|
||||
acc.isValid = true
|
||||
} catch (error) {
|
||||
} catch {
|
||||
// TODO: properly dispose and kill this client. It's unclear how to do it.
|
||||
acc.isValid = false
|
||||
// NOTE: we do not want to delete the client, as we might want to "refresh" in
|
||||
@@ -116,7 +115,7 @@ export const useAccountStore = defineStore('accountStore', () => {
|
||||
if (res.graphQLErrors) {
|
||||
if (
|
||||
res.graphQLErrors?.some(
|
||||
(err) => err.extensions.code === 'SSO_SESSION_MISSING_OR_EXPIRED_ERROR'
|
||||
(err) => err.extensions?.code === 'SSO_SESSION_MISSING_OR_EXPIRED_ERROR'
|
||||
)
|
||||
) {
|
||||
hostAppStore.setNotification({
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import type { ConnectorConfig } from 'lib/bindings/definitions/IConfigBinding'
|
||||
import type { ConnectorConfig } from '~/lib/bindings/definitions/IConfigBinding'
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
export const useConfigStore = defineStore('configStore', () => {
|
||||
|
||||
+7
-4
@@ -2,7 +2,7 @@ import type {
|
||||
DocumentInfo,
|
||||
DocumentModelStore
|
||||
} from '~/lib/bindings/definitions/IBasicConnectorBinding'
|
||||
import type { IModelCard, ModelCardProgress } from 'lib/models/card'
|
||||
import type { IModelCard, ModelCardProgress } from '~/lib/models/card'
|
||||
import { useMixpanel } from '~/lib/core/composables/mixpanel'
|
||||
import type { IReceiverModelCard } from '~/lib/models/card/receiver'
|
||||
import type {
|
||||
@@ -12,11 +12,11 @@ import type {
|
||||
ISenderModelCard,
|
||||
RevitViewsSendFilter,
|
||||
SendFilterSelect
|
||||
} from 'lib/models/card/send'
|
||||
} from '~/lib/models/card/send'
|
||||
import type { ToastNotification } from '@speckle/ui-components'
|
||||
import type { Nullable } from '@speckle/shared'
|
||||
import type { HostAppError } from '~/lib/bridge/errorHandler'
|
||||
import type { ConversionResult } from 'lib/conversions/conversionResult'
|
||||
import type { ConversionResult } from '~/lib/conversions/conversionResult'
|
||||
import { defineStore } from 'pinia'
|
||||
import type { CardSetting } from '~/lib/models/card/setting'
|
||||
import type { DUIAccount } from '~/store/accounts'
|
||||
@@ -489,7 +489,10 @@ export const useHostAppStore = defineStore('hostAppStore', () => {
|
||||
if (typeof args.error === 'string') {
|
||||
model.error = { errorMessage: args.error as string, dismissible: true }
|
||||
} else {
|
||||
model.error = args.error as { errorMessage: string; dismissible: boolean }
|
||||
model.error = args.error as {
|
||||
errorMessage: string
|
||||
dismissible: boolean
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user