diff --git a/packages/frontend/package.json b/packages/frontend/package.json index e541295223..fbd66f592a 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -94,6 +94,7 @@ "@testing-library/vue": "^6.6.1", "@types/escape-regexp": "0.0.1", "@types/estree": "^1.0.0", + "@types/glob": "^8.1.0", "@types/gulp": "4.0.10", "@types/gulp-rename": "2.0.1", "@types/matter-js": "0.18.2", @@ -119,6 +120,7 @@ "eslint": "8.37.0", "eslint-plugin-import": "2.27.5", "eslint-plugin-vue": "9.10.0", + "glob": "^9.3.2", "happy-dom": "8.9.0", "msw": "^1.1.0", "msw-storybook-addon": "^1.8.0", diff --git a/packages/frontend/src/components/MkAnalogClock.stories.impl.ts b/packages/frontend/src/components/MkAnalogClock.stories.impl.ts index 74a70f7edb..05190aa268 100644 --- a/packages/frontend/src/components/MkAnalogClock.stories.impl.ts +++ b/packages/frontend/src/components/MkAnalogClock.stories.impl.ts @@ -1,15 +1,28 @@ +/* eslint-disable @typescript-eslint/explicit-function-return-type */ +import { StoryObj } from '@storybook/vue3'; import MkAnalogClock from './MkAnalogClock.vue'; export const Default = { - render(args, { argTypes }) { + render(args) { return { components: { MkAnalogClock, }, - props: Object.keys(argTypes), - template: '', + setup() { + return { + args, + }; + }, + computed: { + props() { + return { + ...this.args, + }; + }, + }, + template: '', }; }, parameters: { layout: 'fullscreen', }, -}; +} satisfies StoryObj; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ff4619994f..55c4a865f6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -826,6 +826,9 @@ importers: '@types/estree': specifier: ^1.0.0 version: 1.0.0 + '@types/glob': + specifier: ^8.1.0 + version: 8.1.0 '@types/gulp': specifier: 4.0.10 version: 4.0.10 @@ -901,6 +904,9 @@ importers: eslint-plugin-vue: specifier: 9.10.0 version: 9.10.0(eslint@8.37.0) + glob: + specifier: ^9.3.2 + version: 9.3.2 happy-dom: specifier: 8.9.0 version: 8.9.0 @@ -6515,7 +6521,7 @@ packages: /@types/glob-stream@6.1.1: resolution: {integrity: sha512-AGOUTsTdbPkRS0qDeyeS+6KypmfVpbT5j23SN8UPG63qjKXNKjXn6V9wZUr8Fin0m9l8oGYaPK8b2WUMF8xI1A==} dependencies: - '@types/glob': 8.0.1 + '@types/glob': 8.1.0 '@types/node': 18.15.11 dev: true @@ -6526,8 +6532,8 @@ packages: '@types/node': 18.15.11 dev: true - /@types/glob@8.0.1: - resolution: {integrity: sha512-8bVUjXZvJacUFkJXHdyZ9iH1Eaj5V7I8c4NdH5sQJsdXkqT4CA5Dhb4yb4VE/3asyx4L9ayZr1NIhTsWHczmMw==} + /@types/glob@8.1.0: + resolution: {integrity: sha512-IO+MJPVhoqz+28h1qLAcBEH2+xHMK6MTyHJc7MTnnYb6wsoLR29POVGJ7LycmVXIqyy/4/2ShP5sUwTXuOwb/w==} dependencies: '@types/minimatch': 5.1.2 '@types/node': 18.15.11 @@ -11930,7 +11936,7 @@ packages: peerDependencies: glob: ^8.0.3 dependencies: - '@types/glob': 8.0.1 + '@types/glob': 8.1.0 glob: 8.1.0 dev: true @@ -11989,6 +11995,16 @@ packages: minimatch: 5.1.2 once: 1.4.0 + /glob@9.3.2: + resolution: {integrity: sha512-BTv/JhKXFEHsErMte/AnfiSv8yYOLLiyH2lTg8vn02O21zWFgHPTfxtgn1QRe7NRgggUhC8hacR2Re94svHqeA==} + engines: {node: '>=16 || 14 >=14.17'} + dependencies: + fs.realpath: 1.0.0 + minimatch: 7.4.3 + minipass: 4.2.5 + path-scurry: 1.6.3 + dev: true + /global-dirs@3.0.1: resolution: {integrity: sha512-NBcGGFbBA9s1VzD41QXDG+3++t9Mn5t1FpLdhESY6oKY4gYTFpX4wO3sqGUa0Srjtbfj3szX0RnemmrVRUdULA==} engines: {node: '>=10'} @@ -14516,7 +14532,6 @@ packages: /lru-cache@7.14.1: resolution: {integrity: sha512-ysxwsnTKdAx96aTRdhDOCQfDgbHnt8SK0KY8SEjO0wHinhWOFTESbjVCMPbU1uGXg/ch4lifqx0wfjOawU2+WA==} engines: {node: '>=12'} - dev: false /lru-cache@8.0.4: resolution: {integrity: sha512-E9FF6+Oc/uFLqZCuZwRKUzgFt5Raih6LfxknOSAVTjNkrCZkBf7DQCwJxZQgd9l4eHjIJDGR+E+1QKD1RhThPw==} @@ -14843,6 +14858,13 @@ packages: brace-expansion: 2.0.1 dev: true + /minimatch@7.4.3: + resolution: {integrity: sha512-5UB4yYusDtkRPbRiy1cqZ1IpGNcJCGlEMG17RKzPddpyiPKoCdwohbED8g4QXT0ewCt8LTkQXuljsUfQ3FKM4A==} + engines: {node: '>=10'} + dependencies: + brace-expansion: 2.0.1 + dev: true + /minimist-options@4.1.0: resolution: {integrity: sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==} engines: {node: '>= 6'} @@ -14908,11 +14930,9 @@ packages: dependencies: yallist: 4.0.0 - /minipass@4.0.0: - resolution: {integrity: sha512-g2Uuh2jEKoht+zvO6vJqXmYpflPqzRBT+Th2h01DKh5z7wbY/AZ2gCQ78cP70YoHPyFdY30YBV5WxgLOEwOykw==} + /minipass@4.2.5: + resolution: {integrity: sha512-+yQl7SX3bIT83Lhb4BVorMAHVuqsskxRdlmO9kTpyukp8vsm2Sn/fUOV9xlnG8/a5JsypJzap21lz/y3FBMJ8Q==} engines: {node: '>=8'} - dependencies: - yallist: 4.0.0 /minizlib@1.3.3: resolution: {integrity: sha512-6ZYMOEnmVsdCeTJVE0W9ZD+pVnE8h9Hma/iOwwRDsdQoePpoX56/8B6z3P9VNwppJuBKNRuFDRNRqRWexT9G9Q==} @@ -15945,6 +15965,14 @@ packages: path-root-regex: 0.1.2 dev: false + /path-scurry@1.6.3: + resolution: {integrity: sha512-RAmB+n30SlN+HnNx6EbcpoDy9nwdpcGPnEKrJnu6GZoDWBdIjo1UQMVtW2ybtC7LC2oKLcMq8y5g8WnKLiod9g==} + engines: {node: '>=16 || 14 >=14.17'} + dependencies: + lru-cache: 7.14.1 + minipass: 4.2.5 + dev: true + /path-to-regexp@0.1.7: resolution: {integrity: sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==} dev: true @@ -18717,7 +18745,7 @@ packages: dependencies: chownr: 2.0.0 fs-minipass: 2.1.0 - minipass: 4.0.0 + minipass: 4.2.5 minizlib: 2.1.2 mkdirp: 1.0.4 yallist: 4.0.0