Backend optimizations: - Refactor get_random_images() using SQLite ORDER BY RANDOM() - Simplify from 60+ lines to ~20 lines with better performance - Remove complex multi-cycle index calculations - Maintain file existence check and auto-cleanup ComfyUI support: - Add fallback to 'parameters' field in PNG metadata - Improve detection for ComfyUI-generated images Frontend improvements: - Smart prompt display: auto-detect tag vs natural language format - Add getTextLength() with Chinese character weight (1 char = 3 letters) - Refactor isTagStylePrompt() with clear rules: * Any tag length > 50 natural language format * Average tag length > 30 natural language format - Natural language prompts shown as paragraphs - Tag-style prompts shown as badges - Better support for Chinese/English mixed content Build: - Update frontend asset references |
||
|---|---|---|
| .. | ||
| .vscode | ||
| dist | ||
| public | ||
| src | ||
| src-tauri | ||
| .eslintrc.cjs | ||
| .gitignore | ||
| .prettierrc.json | ||
| README.md | ||
| build.ts | ||
| components.d.ts | ||
| env.d.ts | ||
| index.html | ||
| index.tpl.js | ||
| package.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| usage.md | ||
| vite-env-override.d.ts | ||
| vite.config.ts | ||
| yarn.lock | ||
README.md
vue
This template should help get you started developing with Vue 3 in Vite.
Recommended IDE Setup
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
Type Support for .vue Imports in TS
TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue types.
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:
- Disable the built-in TypeScript Extension
- Run
Extensions: Show Built-in Extensionsfrom VSCode's command palette - Find
TypeScript and JavaScript Language Features, right click and selectDisable (Workspace)
- Run
- Reload the VSCode window by running
Developer: Reload Windowfrom the command palette.
Customize configuration
See Vite Configuration Reference.
Project Setup
yarn
Compile and Hot-Reload for Development
yarn dev
Compile and Minify for Production, Deliver to Production Mode Resources
yarn build
Lint with ESLint
yarn lint