diff --git a/__init__.py b/__init__.py index a9263ab..e2e5f5b 100644 --- a/__init__.py +++ b/__init__.py @@ -81,7 +81,7 @@ async def get_words(request): if base_user_dir: try: os.makedirs(base_user_dir, exist_ok=True) - user_data_dir = os.path.join(base_user_dir, "comfyui-prompt-snippets") + user_data_dir = os.path.join(base_user_dir, "ComfyUI-Prompt-Snippets") is_new_dir = not os.path.exists(user_data_dir) diff --git a/js/main.js b/js/main.js index 2c94214..247c3dd 100644 --- a/js/main.js +++ b/js/main.js @@ -10,7 +10,7 @@ app.registerExtension({ const link = document.createElement('link'); link.rel = 'stylesheet'; link.type = 'text/css'; - link.href = 'extensions/comfyui-prompt-snippets/autocomplete.css'; + link.href = 'extensions/ComfyUI-Prompt-Snippets/autocomplete.css'; document.head.appendChild(link); const words = await getWords(); diff --git a/js/settings.js b/js/settings.js index 18b40e1..dc6a727 100644 --- a/js/settings.js +++ b/js/settings.js @@ -12,7 +12,7 @@ app.registerExtension({ } const setting_debug = app.ui.settings.addSetting({ - id: "cpe.debugOutput", + id: "promptsnippets.debugOutput", name: "CPS: Enable debug logging to console", defaultValue: false, type: "boolean", @@ -22,7 +22,7 @@ app.registerExtension({ }); const setting_trigger = app.ui.settings.addSetting({ - id: "cpe.triggerCharacter", + id: "promptsnippets.triggerCharacter", name: "CPS: Trigger character for autocomplete", defaultValue: "@", type: "text", @@ -32,7 +32,7 @@ app.registerExtension({ }); const disabledCategoriesSetting = app.ui.settings.addSetting({ - id: "cpe.disabledCategories", + id: "promptsnippets.disabledCategories", name: "CPS: Disabled Categories", defaultValue: [], type: "hidden", @@ -45,7 +45,7 @@ app.registerExtension({ for (const category of categories) { app.ui.settings.addSetting({ - id: `cpe.category.${category}`, + id: `promptsnippets.category.${category}`, name: `Category Toggle: ${category}`, defaultValue: !settings.disabledCategories.includes(category), type: "boolean", diff --git a/pyproject.toml b/pyproject.toml index 710b15a..dda7ecb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "ComfyUI-Prompt-Snippets" description = "ComfyUI Prompt Snippets provides autocompletion, randomization and snippet insertion to help you write prompts faster and more efficiently. No custom node needed!" -version = "1.0.0" +version = "1.0.1" license = {file = "LICENSE"} classifiers = [ # For OS-independent nodes (works on all operating systems)