sd-webui-infinite-image-bro.../vue
zanllp e5413e41f1 feat: optimize random images, improve ComfyUI detection and prompt display
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
2025-11-30 20:50:13 +08:00
..
.vscode 使用fastapi和vue替代gradio,实现每2秒更新一次上传状态 2023-03-09 02:23:36 +08:00
dist feat: optimize random images, improve ComfyUI detection and prompt display 2025-11-30 20:50:13 +08:00
public Improve development experience by optimizing performance and enhancing usability 2023-06-03 01:32:37 +08:00
src feat: optimize random images, improve ComfyUI detection and prompt display 2025-11-30 20:50:13 +08:00
src-tauri release 2025-06-07 05:43:43 +08:00
.eslintrc.cjs style: fix by eslint 2024-03-29 22:44:13 +08:00
.gitignore fix 2023-06-03 17:45:40 +08:00
.prettierrc.json 使用fastapi和vue替代gradio,实现每2秒更新一次上传状态 2023-03-09 02:23:36 +08:00
README.md feat: add support for opening folder via URL query params 2023-06-24 22:10:54 +08:00
build.ts feat: add support for opening folder via URL query params 2023-06-24 22:10:54 +08:00
components.d.ts feat: Add media type filter support for search functionality 2025-07-13 20:09:36 +08:00
env.d.ts Fix handling of sendto events when embedded in Gradio 2023-08-27 15:47:09 +08:00
index.html Improve development experience by optimizing performance and enhancing usability 2023-06-03 01:32:37 +08:00
index.tpl.js Support disabling maximize and enable fuzzy search with path-only option 2024-12-26 01:53:06 +08:00
package.json fix 2024-11-07 23:58:23 +08:00
tsconfig.json Improve development experience by optimizing performance and enhancing usability 2023-06-03 01:32:37 +08:00
tsconfig.node.json Improve development experience by optimizing performance and enhancing usability 2023-06-03 01:32:37 +08:00
usage.md Add more isolation mechanisms and export functions for easier use as a library 2024-03-12 21:33:27 +08:00
vite-env-override.d.ts Add binary build using Tauri framework 2023-07-05 13:59:39 +08:00
vite.config.ts feat: add a new feature try-my-luck 2025-02-23 04:09:01 +08:00
yarn.lock fix 2024-11-07 23:58:23 +08:00

README.md

vue

This template should help get you started developing with Vue 3 in Vite.

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:

  1. Disable the built-in TypeScript Extension
    1. Run Extensions: Show Built-in Extensions from VSCode's command palette
    2. Find TypeScript and JavaScript Language Features, right click and select Disable (Workspace)
  2. Reload the VSCode window by running Developer: Reload Window from 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