From a332165502fdf88963bf47b789ffccdf294e729f Mon Sep 17 00:00:00 2001 From: qingqing-ux Date: Fri, 22 May 2026 14:19:24 +0800 Subject: [PATCH 01/13] Fix prototype sprite item title width --- ui/prototype/scripts/check-prototype.mjs | 38 ------------------- .../components/editor/UIBlockItemTitle.vue | 4 +- .../components/editor/UIEditorSpriteItem.vue | 3 +- 3 files changed, 4 insertions(+), 41 deletions(-) diff --git a/ui/prototype/scripts/check-prototype.mjs b/ui/prototype/scripts/check-prototype.mjs index c6c9616a4..8c61b7ea5 100644 --- a/ui/prototype/scripts/check-prototype.mjs +++ b/ui/prototype/scripts/check-prototype.mjs @@ -4,10 +4,6 @@ import { join, relative } from 'node:path' const root = new URL('..', import.meta.url).pathname const srcRoot = join(root, 'src') -function read(path) { - return readFileSync(join(root, path), 'utf8') -} - function walk(dir) { return readdirSync(dir, { withFileTypes: true }).flatMap((entry) => { const path = join(dir, entry.name) @@ -19,40 +15,6 @@ function walk(dir) { const failures = [] const sourceFiles = walk(srcRoot).filter((path) => /\.(ts|vue|css)$/.test(path)) -const prototypeBlockItem = read('src/components/editor/UIBlockItem.vue') -const prototypeBlockItemTitle = read('src/components/editor/UIBlockItemTitle.vue') -const prototypeEditorSpriteItem = read('src/components/editor/UIEditorSpriteItem.vue') -const prototypeSpriteItem = read('src/components/editor/SpriteItem.vue') - -if ( - prototypeBlockItem.includes('