refactor: rename package from scroll_over_textarea to comfyui_scroll_over_textarea and update related files

This commit is contained in:
Josh Whaley
2025-03-09 14:19:47 -04:00
parent 75542e08fb
commit c143313e4f
11 changed files with 23 additions and 23 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
* scroll_over_textarea version:
* Python version:
* Operating System:
- comfyui_scroll_over_textarea version:
- Python version:
- Operating System:
### Description
+5 -5
View File
@@ -1,5 +1,5 @@
# GitHub CI build pipeline
name: scroll_over_textarea CI build
name: comfyui_scroll_over_textarea CI build
on:
pull_request:
@@ -8,20 +8,20 @@ on:
- main
jobs:
build:
runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
PYTHONIOENCODING: "utf8"
PYTHONIOENCODING: 'utf8'
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.12"]
python-version: ['3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
+1 -1
View File
@@ -6,4 +6,4 @@ recursive-exclude * *.py[co]
recursive-include docs *.rst conf.py Makefile make.bat *.jpg *.png *.gif
graft src/scroll_over_textarea/web
graft src/comfyui_scroll_over_textarea/web
+2 -2
View File
@@ -21,7 +21,7 @@ A ComfyUI extension to allow textarea elements to be scrolled over. Useful when
To install the dev dependencies and pre-commit (will run the ruff hook), do:
```bash
cd scroll_over_textarea
cd comfyui_scroll_over_textarea
pip install -e .[dev]
pre-commit install
```
@@ -43,7 +43,7 @@ git push
## Writing custom nodes
An example custom node is located in [node.py](src/scroll_over_textarea/nodes.py). To learn more, read the [docs](https://docs.comfy.org/essentials/custom_node_overview).
An example custom node is located in [node.py](src/comfyui_scroll_over_textarea/nodes.py). To learn more, read the [docs](https://docs.comfy.org/essentials/custom_node_overview).
## Tests
+3 -3
View File
@@ -1,4 +1,4 @@
"""Top-level package for scroll_over_textarea."""
"""Top-level package for comfyui_scroll_over_textarea."""
__all__ = [
"NODE_CLASS_MAPPINGS",
@@ -10,7 +10,7 @@ __author__ = """Josh Whaley"""
__email__ = "josh@whaleymail.net"
__version__ = "0.0.1"
from .src.scroll_over_textarea.nodes import NODE_CLASS_MAPPINGS
from .src.scroll_over_textarea.nodes import NODE_DISPLAY_NAME_MAPPINGS
from .src.comfyui_scroll_over_textarea.nodes import NODE_CLASS_MAPPINGS
from .src.comfyui_scroll_over_textarea.nodes import NODE_DISPLAY_NAME_MAPPINGS
WEB_DIRECTORY = "./web"
+3 -3
View File
@@ -3,7 +3,7 @@ requires = ["setuptools>=70.0"]
build-backend = "setuptools.build_meta"
[project]
name = "scroll_over_textarea"
name = "comfyui_scroll_over_textarea"
version = "0.1.0"
description = "A custom node to prevent scrolling within textarea elements"
authors = [
@@ -27,8 +27,8 @@ dev = [
]
[project.urls]
bugs = "https://github.com/joreyaesh/scroll_over_textarea/issues"
homepage = "https://github.com/joreyaesh/scroll_over_textarea"
bugs = "https://github.com/joreyaesh/comfyui_scroll_over_textarea/issues"
homepage = "https://github.com/joreyaesh/comfyui_scroll_over_textarea"
[tool.comfy]
+1 -1
View File
@@ -1 +1 @@
"""Unit test package for scroll_over_textarea."""
"""Unit test package for comfyui_scroll_over_textarea."""
+2 -2
View File
@@ -1,9 +1,9 @@
#!/usr/bin/env python
"""Tests for `scroll_over_textarea` package."""
"""Tests for `comfyui_scroll_over_textarea` package."""
import pytest
from src.scroll_over_textarea.nodes import Example
from src.comfyui_scroll_over_textarea.nodes import Example
@pytest.fixture
@@ -4,7 +4,7 @@ app.registerExtension({
name: 'Scroll Over Textarea',
settings: [
{
id: 'scroll_over_textarea.enable',
id: 'comfyui_scroll_over_textarea.enable',
name: 'Prevent Scrolling Within Textareas',
type: 'boolean',
defaultValue: true,
@@ -24,7 +24,7 @@ app.registerExtension({
},
async nodeCreated(node) {
const enabled = app.extensionManager.setting.get(
'scroll_over_textarea.enable'
'comfyui_scroll_over_textarea.enable'
);
setTimeout(() => {
updateTextareaScrollListener(enabled);
@@ -34,7 +34,7 @@ app.registerExtension({
function updateTextareaScrollListener(
ignoreTextareaScroll = app.extensionManager.setting.get(
'scroll_over_textarea.enable'
'comfyui_scroll_over_textarea.enable'
)
) {
const textareas = document.querySelectorAll('textarea.comfy-multiline-input');