1 Commits
Author SHA1 Message Date
renovate 1e2cdc6d06 fix(deps): update dependency @apollo/client to v4
renovate/artifacts Artifact file update failure
renovate/stability-days Updates have met minimum release age requirement
schemas-app / build (pull_request) Failing after 31s
schemas-app / deploy-prod (pull_request) Has been skipped
2026-07-04 22:12:12 +00:00
7 changed files with 3986 additions and 4042 deletions

No files matched your search

+3 -3
View File
@@ -11,7 +11,7 @@ repos:
- --allow-multiple-documents
- id: check-added-large-files
- repo: https://github.com/markdownlint/markdownlint
rev: v0.18.1
rev: v0.17.0
hooks:
- id: markdownlint
- repo: https://gitlab.com/devopshq/gitlab-ci-linter
@@ -22,13 +22,13 @@ repos:
- --project
- unboundsoftware/schemas-app
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.27.0
rev: v9.26.0
hooks:
- id: commitlint
stages: [ commit-msg ]
additional_dependencies: [ '@commitlint/config-conventional' ]
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v10.12.0
rev: v10.6.0
hooks:
- id: eslint
types: [ file ]
+1 -1
View File
@@ -12,7 +12,7 @@ RUN npm run postinstall && npm run generate && npm run lint && npm run test:cove
FROM scratch as export
COPY --from=builder /build/coverage /
FROM amd64/nginx:1.31.6@sha256:9a54e7e76ae7fb26e733c7d43ca1c8586f1894b876ec8b8ca0124daae38d509b
FROM amd64/nginx:1.31.2@sha256:1aa526045addc7cb378cc388a81592a96f749f2eb122a718fab23ef68cd7033d
MAINTAINER Joakim Olsson <joakim@unbound.se>
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
@@ -14,23 +14,20 @@ const mockOrganizations = [
// For now, the component is indirectly tested through useOrganizationSelector tests
// and manual testing shows it works correctly
// vi.mock is hoisted above the imports and the factory runs once, on the first
// import of the mocked module -- it was never re-applied per test despite sitting
// in beforeEach. vitest 5 rejects the nested call outright rather than silently
// hoisting it, so declare it where it actually executes.
vi.mock('~/composables/useOrganizationSelector', () => ({
useOrganizationSelector: () => ({
organizations: ref([mockOrganizations[0]]),
selectedOrganization: ref(mockOrganizations[0]),
selectedOrgId: ref('1'),
selectOrganization: mockSelectOrganization,
}),
}))
describe('OrganizationSwitcher - Single Organization', () => {
beforeEach(() => {
vi.resetModules()
mockSelectOrganization.mockClear()
// Mock with single organization
vi.mock('~/composables/useOrganizationSelector', () => ({
useOrganizationSelector: () => ({
organizations: ref([mockOrganizations[0]]),
selectedOrganization: ref(mockOrganizations[0]),
selectedOrgId: ref('1'),
selectOrganization: mockSelectOrganization,
}),
}))
})
it('should show a chip for single organization', async () => {
+1 -1
View File
@@ -37,7 +37,7 @@ spec:
topologyKey: kubernetes.io/hostname
containers:
- name: schemas-app
image: ${IMAGE}
image: oci.unbound.se/unboundsoftware/schemas-app:${COMMIT}
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
+3945 -3990
View File
File diff suppressed because it is too large. Load diff
+25 -25
View File
@@ -18,13 +18,13 @@
"lintfix": "eslint --fix . && npm run lint:style --fix"
},
"dependencies": {
"@apollo/client": "3.14.1",
"@auth0/auth0-vue": "2.11.0",
"@apollo/client": "4.2.5",
"@auth0/auth0-vue": "2.7.0",
"@vue/apollo-composable": "4.2.2",
"graphql": "16.14.2",
"graphql-ws": "6.3.0",
"nuxt": "4.5.2",
"vue": "3.5.43",
"graphql-ws": "6.0.8",
"nuxt": "4.4.8",
"vue": "3.5.39",
"vuetify-nuxt-module": "0.19.5"
},
"version": "1.0.0",
@@ -34,31 +34,31 @@
"author": "",
"license": "ISC",
"devDependencies": {
"@commitlint/cli": "21.2.3",
"@commitlint/config-conventional": "21.2.3",
"@graphql-codegen/cli": "7.4.3",
"@graphql-codegen/typed-document-node": "7.1.1",
"@graphql-codegen/typescript": "6.1.0",
"@graphql-codegen/typescript-operations": "6.1.9",
"@commitlint/cli": "21.2.0",
"@commitlint/config-conventional": "21.2.0",
"@graphql-codegen/cli": "7.1.3",
"@graphql-codegen/typed-document-node": "7.0.3",
"@graphql-codegen/typescript": "6.0.2",
"@graphql-codegen/typescript-operations": "6.0.5",
"@graphql-codegen/typescript-vue-apollo": "5.0.1",
"@nuxt/devtools": "3.4.2",
"@nuxt/eslint": "1.17.0",
"@nuxt/devtools": "3.2.4",
"@nuxt/eslint": "1.16.0",
"@nuxtjs/stylelint-module": "5.2.1",
"@stylistic/eslint-plugin": "5.10.0",
"@vitejs/plugin-vue": "6.0.9",
"@vitest/coverage-v8": "5.0.3",
"@vue/test-utils": "2.5.1",
"eslint": "10.12.0",
"eslint-plugin-simple-import-sort": "14.0.0",
"eslint-plugin-vue": "10.11.1",
"jsdom": "30.1.2",
"postcss-html": "2.0.0",
"stylelint": "17.16.0",
"stylelint-config-recommended-vue": "2.0.0",
"@vitejs/plugin-vue": "6.0.7",
"@vitest/coverage-v8": "4.1.9",
"@vue/test-utils": "2.4.11",
"eslint": "10.6.0",
"eslint-plugin-simple-import-sort": "13.0.0",
"eslint-plugin-vue": "10.9.2",
"jsdom": "29.1.1",
"postcss-html": "1.8.1",
"stylelint": "17.14.0",
"stylelint-config-recommended-vue": "1.6.1",
"stylelint-config-standard": "40.0.0",
"typescript": "6.0.3",
"typescript-eslint": "8.71.0",
"vitest": "5.0.3",
"typescript-eslint": "8.62.1",
"vitest": "4.1.9",
"vue-eslint-parser": "10.4.1"
},
"overrides": {
+1 -9
View File
@@ -31,15 +31,7 @@ class LocalStorageMock {
}
}
// jsdom defines localStorage as a getter-only accessor on the window object, so a
// plain assignment throws ("Cannot set property localStorage ... which has only a
// getter") under vitest 5, which no longer shadows it with a writable global.
// defineProperty replaces the accessor outright and works on both.
Object.defineProperty(globalThis, 'localStorage', {
value: new LocalStorageMock() as unknown as Storage,
writable: true,
configurable: true,
})
global.localStorage = new LocalStorageMock() as unknown as Storage
// Make Vue composables globally available
global.ref = Vue.ref