diff --git a/package-lock.json b/package-lock.json index 3d59b6b..551c1c9 100755 --- a/package-lock.json +++ b/package-lock.json @@ -30,7 +30,6 @@ "remark-preset-lint-consistent": "^6.0.0", "remark-preset-lint-recommended": "^7.0.0", "style-loader": "^3.3.3", - "uuid": "^10.0.0", "vue": "^2.7.14", "vue-apexcharts": "^1.6.2", "vue-codemirror6": "^1.3.4", @@ -21213,18 +21212,6 @@ "node": ">= 0.4.0" } }, - "node_modules/uuid": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz", - "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==", - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "bin": { - "uuid": "dist/bin/uuid" - } - }, "node_modules/v8-to-istanbul": { "version": "9.3.0", "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", @@ -37943,11 +37930,6 @@ "dev": true, "peer": true }, - "uuid": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz", - "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==" - }, "v8-to-istanbul": { "version": "9.3.0", "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", diff --git a/package.json b/package.json index 5fae2c2..d199420 100755 --- a/package.json +++ b/package.json @@ -41,7 +41,6 @@ "remark-preset-lint-consistent": "^6.0.0", "remark-preset-lint-recommended": "^7.0.0", "style-loader": "^3.3.3", - "uuid": "^10.0.0", "vue": "^2.7.14", "vue-apexcharts": "^1.6.2", "vue-codemirror6": "^1.3.4", diff --git a/src/entities/schema/schema.ts b/src/entities/schema/schema.ts index 4239d09..4dcd6d9 100644 --- a/src/entities/schema/schema.ts +++ b/src/entities/schema/schema.ts @@ -31,7 +31,7 @@ export class Schema implements TSchema { const schema = z.object({ id: z.string().min(1), title: z.string().min(1), - version: z.string(), + version: z.string().regex(/^(?:\d+\.){2}\d+$/g, 'Invalid version format'), description: z.string(), summary: z.string(), required: z.array(z.string()), diff --git a/src/modals/Modals.vue b/src/modals/Modals.vue index d942037..fc22305 100755 --- a/src/modals/Modals.vue +++ b/src/modals/Modals.vue @@ -8,10 +8,10 @@ import { navigationStore } from '../store/store.js' - + - + diff --git a/src/modals/schema/EditSchema.vue b/src/modals/schema/EditSchema.vue index f248292..d6e4e16 100644 --- a/src/modals/schema/EditSchema.vue +++ b/src/modals/schema/EditSchema.vue @@ -3,8 +3,7 @@ import { schemaStore, navigationStore } from '../../store/store.js'