Compare commits
1 Commits
main
..
e6d9dd5525
| Author | SHA1 | Date | |
|---|---|---|---|
| e6d9dd5525 |
+1
-1
@@ -12,7 +12,7 @@ COPY . /build
|
||||
RUN npm run postinstall && npm run generate && npm run lint
|
||||
#RUN yarn start:ci & yarn wait && yarn test:cypress
|
||||
|
||||
FROM amd64/nginx:1.30.0@sha256:67c70b6b05c46c8b52c9b8a7575edb95bf8f920de4cb3b5be5aff66cdea4efa8
|
||||
FROM amd64/nginx:1.29.5@sha256:e5e99d386e625a3ae9492f8496903a42bac0abc0b9103852f180679aef9bf8a2
|
||||
MAINTAINER Joakim Olsson <joakim@unbound.se>
|
||||
|
||||
COPY --from=builder /build/.output/public/ /usr/share/nginx/html/
|
||||
|
||||
+1
-13
@@ -18,22 +18,10 @@ const cache = new InMemoryCache({
|
||||
},
|
||||
})
|
||||
|
||||
const STALE_AUTH_ERRORS = new Set([
|
||||
'login_required',
|
||||
'consent_required',
|
||||
'interaction_required',
|
||||
'invalid_grant',
|
||||
'missing_refresh_token',
|
||||
])
|
||||
|
||||
const getToken = async (options: GetTokenSilentlyOptions) => {
|
||||
const nuxtApp = useNuxtApp()
|
||||
const auth0: Auth0VueClient = nuxtApp.$auth0 as Auth0VueClient
|
||||
return await auth0.getAccessTokenSilently(options).catch((err) => {
|
||||
const code = err && typeof err === 'object' && 'error' in err ? (err as { error?: string }).error : undefined
|
||||
if (code && STALE_AUTH_ERRORS.has(code)) {
|
||||
auth0.logout({ openUrl: false }).catch(() => {})
|
||||
}
|
||||
return await auth0.getAccessTokenSilently(options).catch(() => {
|
||||
return undefined
|
||||
})
|
||||
}
|
||||
|
||||
@@ -66,22 +66,6 @@ export default defineNuxtConfig({
|
||||
},
|
||||
},
|
||||
},
|
||||
optimizeDeps: {
|
||||
include: [
|
||||
'@vue/devtools-core',
|
||||
'@vue/devtools-kit',
|
||||
'@auth0/auth0-vue',
|
||||
'@apollo/client/core',
|
||||
'@apollo/client/link/context',
|
||||
'@apollo/client/link/ws',
|
||||
'@apollo/client/utilities',
|
||||
'@opentelemetry/api',
|
||||
'@vue/apollo-composable',
|
||||
'@grafana/faro-web-sdk',
|
||||
'@grafana/faro-web-tracing',
|
||||
'@opentelemetry/instrumentation-fetch',
|
||||
],
|
||||
},
|
||||
resolve: {
|
||||
dedupe: ['pinia'],
|
||||
},
|
||||
|
||||
Generated
+7090
-6249
File diff suppressed because it is too large
Load Diff
+30
-28
@@ -16,46 +16,48 @@
|
||||
"codegen": "graphql-codegen && eslint graphql/generated/operations.ts --fix"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "20.5.3",
|
||||
"@commitlint/config-conventional": "20.5.3",
|
||||
"@graphql-codegen/cli": "7.0.0",
|
||||
"@graphql-codegen/fragment-matcher": "7.0.0",
|
||||
"@graphql-codegen/typescript": "6.0.0",
|
||||
"@graphql-codegen/typescript-operations": "6.0.0",
|
||||
"@graphql-codegen/typescript-vue-apollo": "5.0.1",
|
||||
"@nuxt/devtools": "3.2.4",
|
||||
"@commitlint/cli": "20.4.3",
|
||||
"@commitlint/config-conventional": "20.4.3",
|
||||
"@graphql-codegen/cli": "6.1.2",
|
||||
"@graphql-codegen/fragment-matcher": "6.0.0",
|
||||
"@graphql-codegen/typescript": "5.0.8",
|
||||
"@graphql-codegen/typescript-operations": "5.0.8",
|
||||
"@graphql-codegen/typescript-vue-apollo": "4.1.2",
|
||||
"@nuxt/devtools": "3.2.2",
|
||||
"@nuxt/eslint": "1.15.2",
|
||||
"@nuxtjs/i18n": "10.3.0",
|
||||
"@stylistic/eslint-plugin": "5.10.0",
|
||||
"@vue/test-utils": "2.4.10",
|
||||
"esbuild": "0.28.0",
|
||||
"eslint": "10.3.0",
|
||||
"eslint-plugin-simple-import-sort": "13.0.0",
|
||||
"eslint-plugin-vue": "10.9.0",
|
||||
"nuxt": "4.4.4",
|
||||
"@nuxtjs/eslint-module": "4.1.0",
|
||||
"@nuxtjs/i18n": "10.2.3",
|
||||
"@stylistic/eslint-plugin": "5.9.0",
|
||||
"@vue/test-utils": "2.4.6",
|
||||
"esbuild": "0.27.3",
|
||||
"eslint": "9.39.3",
|
||||
"eslint-plugin-nuxt": "4.0.0",
|
||||
"eslint-plugin-simple-import-sort": "12.1.1",
|
||||
"eslint-plugin-vue": "10.8.0",
|
||||
"nuxt": "4.3.1",
|
||||
"postcss-html": "1.8.1",
|
||||
"sass": "1.99.0",
|
||||
"stylelint": "17.10.0",
|
||||
"sass": "1.97.3",
|
||||
"stylelint": "17.4.0",
|
||||
"stylelint-config-recommended-vue": "1.6.1",
|
||||
"stylelint-config-standard": "40.0.0",
|
||||
"typescript": "6.0.3",
|
||||
"typescript-eslint": "8.59.1",
|
||||
"typescript": "5.9.3",
|
||||
"typescript-eslint": "8.56.1",
|
||||
"vite-plugin-vuetify": "2.1.3",
|
||||
"vue": "3.5.33",
|
||||
"vue": "3.5.29",
|
||||
"vue-eslint-parser": "10.4.0",
|
||||
"vue-router": "5.0.6",
|
||||
"vuetify": "4.0.6"
|
||||
"vue-router": "5.0.3",
|
||||
"vuetify": "3.12.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@apollo/client": "3.14.1",
|
||||
"@auth0/auth0-vue": "2.6.0",
|
||||
"@grafana/faro-web-sdk": "2.4.0",
|
||||
"@grafana/faro-web-tracing": "2.4.0",
|
||||
"@apollo/client": "3.14.0",
|
||||
"@auth0/auth0-vue": "2.5.0",
|
||||
"@grafana/faro-web-sdk": "2.2.4",
|
||||
"@grafana/faro-web-tracing": "2.2.4",
|
||||
"@mdi/font": "7.4.47",
|
||||
"@pinia/nuxt": "0.11.3",
|
||||
"@vue/apollo-composable": "4.2.2",
|
||||
"date-fns": "4.1.0",
|
||||
"graphql": "16.13.2",
|
||||
"graphql": "16.13.0",
|
||||
"graphql-tag": "2.12.6",
|
||||
"pinia": "3.0.4",
|
||||
"pinia-plugin-persistedstate": "4.7.1",
|
||||
|
||||
+1
-4
@@ -17,8 +17,5 @@
|
||||
"stylelint-config-standard"
|
||||
]
|
||||
}
|
||||
],
|
||||
"constraints": {
|
||||
"node": ">=24"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user