Author SHA1 Message Date
argoyle 9645fe0673 chore: add node >=24 constraint to renovate config 2026-03-15 11:27:49 +01:00
9 changed files with 5132 additions and 7206 deletions

No files matched your search

+2 -2
View File
@@ -13,7 +13,7 @@ jobs:
BUILDTOOLS_CONTENT: ${{ secrets.BUILDTOOLS_CONTENT }} BUILDTOOLS_CONTENT: ${{ secrets.BUILDTOOLS_CONTENT }}
GITEA_REPOSITORY: ${{ gitea.repository }} GITEA_REPOSITORY: ${{ gitea.repository }}
steps: steps:
- uses: actions/checkout@v7 - uses: actions/checkout@v6
- uses: buildtool/setup-buildtools-action@v1 - uses: buildtool/setup-buildtools-action@v1
- name: Build and push - name: Build and push
run: unset GITEA_TOKEN && build && push run: unset GITEA_TOKEN && build && push
@@ -27,7 +27,7 @@ jobs:
GITEA_REPOSITORY: ${{ gitea.repository }} GITEA_REPOSITORY: ${{ gitea.repository }}
environment: prod environment: prod
steps: steps:
- uses: actions/checkout@v7 - uses: actions/checkout@v6
- uses: buildtool/setup-buildtools-action@v1 - uses: buildtool/setup-buildtools-action@v1
- name: Deploy to production - name: Deploy to production
run: deploy prod run: deploy prod
+3 -3
View File
@@ -11,7 +11,7 @@ repos:
- --allow-multiple-documents - --allow-multiple-documents
- id: check-added-large-files - id: check-added-large-files
- repo: https://github.com/markdownlint/markdownlint - repo: https://github.com/markdownlint/markdownlint
rev: v0.18.1 rev: v0.15.0
hooks: hooks:
- id: markdownlint - id: markdownlint
- repo: https://gitlab.com/devopshq/gitlab-ci-linter - repo: https://gitlab.com/devopshq/gitlab-ci-linter
@@ -22,13 +22,13 @@ repos:
- --project - --project
- unboundsoftware/schemas-app - unboundsoftware/schemas-app
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook - repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.27.0 rev: v9.24.0
hooks: hooks:
- id: commitlint - id: commitlint
stages: [ commit-msg ] stages: [ commit-msg ]
additional_dependencies: [ '@commitlint/config-conventional' ] additional_dependencies: [ '@commitlint/config-conventional' ]
- repo: https://github.com/pre-commit/mirrors-eslint - repo: https://github.com/pre-commit/mirrors-eslint
rev: v10.12.0 rev: v10.0.3
hooks: hooks:
- id: eslint - id: eslint
types: [ file ] types: [ file ]
+2 -2
View File
@@ -1,4 +1,4 @@
FROM cypress/base:26.0.0@sha256:446be8fcb63e3cad2f9a4e14720e3d8e35993e12f36da541e09f5740a4c2477c as builder FROM cypress/base:25.0.0@sha256:43bc659f825c1a9e4aa540fcdf35065de3e20e0b463589bfccd1ecb717cfc0fb as builder
WORKDIR /build WORKDIR /build
RUN npm install --global node-gyp && \ RUN npm install --global node-gyp && \
@@ -12,7 +12,7 @@ RUN npm run postinstall && npm run generate && npm run lint && npm run test:cove
FROM scratch as export FROM scratch as export
COPY --from=builder /build/coverage / COPY --from=builder /build/coverage /
FROM amd64/nginx:1.31.6@sha256:9a54e7e76ae7fb26e733c7d43ca1c8586f1894b876ec8b8ca0124daae38d509b FROM amd64/nginx:1.29.6@sha256:5791d1ada3441acfb642e2519ab8becfb37e07e8663116aa1fa8bfea73703f17
MAINTAINER Joakim Olsson <joakim@unbound.se> MAINTAINER Joakim Olsson <joakim@unbound.se>
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
@@ -14,23 +14,20 @@ const mockOrganizations = [
// For now, the component is indirectly tested through useOrganizationSelector tests // For now, the component is indirectly tested through useOrganizationSelector tests
// and manual testing shows it works correctly // 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', () => { describe('OrganizationSwitcher - Single Organization', () => {
beforeEach(() => { beforeEach(() => {
vi.resetModules() vi.resetModules()
mockSelectOrganization.mockClear() 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 () => { it('should show a chip for single organization', async () => {
+1 -1
View File
@@ -37,7 +37,7 @@ spec:
topologyKey: kubernetes.io/hostname topologyKey: kubernetes.io/hostname
containers: containers:
- name: schemas-app - name: schemas-app
image: ${IMAGE} image: oci.unbound.se/unboundsoftware/schemas-app:${COMMIT}
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
ports: ports:
- containerPort: 80 - containerPort: 80
+5082 -7145
View File
File diff suppressed because it is too large. Load diff
+28 -31
View File
@@ -19,12 +19,12 @@
}, },
"dependencies": { "dependencies": {
"@apollo/client": "3.14.1", "@apollo/client": "3.14.1",
"@auth0/auth0-vue": "2.11.0", "@auth0/auth0-vue": "2.5.0",
"@vue/apollo-composable": "4.2.2", "@vue/apollo-composable": "4.2.2",
"graphql": "16.14.2", "graphql": "16.13.1",
"graphql-ws": "6.3.0", "graphql-ws": "6.0.7",
"nuxt": "4.5.2", "nuxt": "4.3.1",
"vue": "3.5.43", "vue": "3.5.30",
"vuetify-nuxt-module": "0.19.5" "vuetify-nuxt-module": "0.19.5"
}, },
"version": "1.0.0", "version": "1.0.0",
@@ -34,34 +34,31 @@
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"@commitlint/cli": "21.2.3", "@commitlint/cli": "20.4.4",
"@commitlint/config-conventional": "21.2.3", "@commitlint/config-conventional": "20.4.4",
"@graphql-codegen/cli": "7.4.3", "@graphql-codegen/cli": "6.2.1",
"@graphql-codegen/typed-document-node": "7.1.1", "@graphql-codegen/typed-document-node": "6.1.7",
"@graphql-codegen/typescript": "6.1.0", "@graphql-codegen/typescript": "5.0.9",
"@graphql-codegen/typescript-operations": "6.1.9", "@graphql-codegen/typescript-operations": "5.0.9",
"@graphql-codegen/typescript-vue-apollo": "5.0.1", "@graphql-codegen/typescript-vue-apollo": "5.0.0",
"@nuxt/devtools": "3.4.2", "@nuxt/devtools": "3.2.3",
"@nuxt/eslint": "1.17.0", "@nuxt/eslint": "1.15.2",
"@nuxtjs/stylelint-module": "5.2.1", "@nuxtjs/stylelint-module": "5.2.1",
"@stylistic/eslint-plugin": "5.10.0", "@stylistic/eslint-plugin": "5.10.0",
"@vitejs/plugin-vue": "6.0.9", "@vitejs/plugin-vue": "6.0.5",
"@vitest/coverage-v8": "5.0.3", "@vitest/coverage-v8": "4.1.0",
"@vue/test-utils": "2.5.1", "@vue/test-utils": "2.4.6",
"eslint": "10.12.0", "eslint": "10.0.3",
"eslint-plugin-simple-import-sort": "14.0.0", "eslint-plugin-simple-import-sort": "12.1.1",
"eslint-plugin-vue": "10.11.1", "eslint-plugin-vue": "10.8.0",
"jsdom": "30.1.2", "jsdom": "29.0.0",
"postcss-html": "2.0.0", "postcss-html": "1.8.1",
"stylelint": "17.16.0", "stylelint": "17.4.0",
"stylelint-config-recommended-vue": "2.0.0", "stylelint-config-recommended-vue": "1.6.1",
"stylelint-config-standard": "40.0.0", "stylelint-config-standard": "40.0.0",
"typescript": "6.0.3", "typescript": "5.9.3",
"typescript-eslint": "8.71.0", "typescript-eslint": "8.57.0",
"vitest": "5.0.3", "vitest": "4.1.0",
"vue-eslint-parser": "10.4.1" "vue-eslint-parser": "10.4.0"
},
"overrides": {
"@vue/server-renderer": "$vue"
} }
} }
+3
View File
@@ -3,6 +3,9 @@
"extends": [ "extends": [
"config:recommended" "config:recommended"
], ],
"constraints": {
"node": ">=24"
},
"packageRules": [ "packageRules": [
{ {
"matchManagers": [ "matchManagers": [
+1 -9
View File
@@ -31,15 +31,7 @@ class LocalStorageMock {
} }
} }
// jsdom defines localStorage as a getter-only accessor on the window object, so a global.localStorage = new LocalStorageMock() as unknown as Storage
// 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,
})
// Make Vue composables globally available // Make Vue composables globally available
global.ref = Vue.ref global.ref = Vue.ref