feat(tags): refactor preset tags to constants for better maintainability

This commit is contained in:
Will Miao
2025-09-05 09:27:45 +08:00
parent 29a05f6533
commit fb2b69b787
3 changed files with 113 additions and 27 deletions

View File

@@ -4,14 +4,7 @@
*/
import { showToast } from '../../utils/uiHelpers.js';
import { getModelApiClient } from '../../api/modelApiFactory.js';
import { translate } from '../../utils/i18nHelpers.js';
// Preset tag suggestions
const PRESET_TAGS = [
'character', 'style', 'concept', 'clothing',
'poses', 'background', 'vehicle', 'buildings',
'objects', 'animal'
];
import { PRESET_TAGS } from '../../utils/constants.js';
// Create a named function so we can remove it later
let saveTagsHandler = null;