MarcusNyne
fa9d1f8567
Merge 3f9efd532968f9083c129de193fedc5dfd9fd216 into 374bb6cc384d2a19422c0b07d69de0a41d1f3f4d
2025-03-06 23:16:52 +08:00
gutris1
e7edad6fe9
Small fix ( #16872 )
...
* small fix, prevent annoying error log when registering keydown esc from user custom js
* Update script.js
Co-authored-by: missionfloyd <missionfloyd@users.noreply.github.com>
---------
Co-authored-by: missionfloyd <missionfloyd@users.noreply.github.com>
2025-03-04 11:10:18 -05:00
MarcusNyne
53712c623f
Renamed pnginfo quick links
...
All to Copy
Positive to Prompt
2024-08-25 11:01:31 -04:00
MarcusNyne
786809d5ca
fixed a bug where copy animation remained
2024-08-24 20:21:05 -04:00
MarcusNyne
d08d730163
javascript linting
2024-08-24 17:56:41 -04:00
MarcusNyne
6056a34a5a
javascript lint
2024-08-24 17:34:27 -04:00
MarcusNyne
eef1f1e0c6
Improvements for pnginfo
...
- Handled no negative prompt scenario
- Include new lines in positive/negative prompts
- Added links to the top to copy png info sections (all/positive/negative/settings)
2024-08-24 17:27:32 -04:00
MarcusNyne
67309750da
Fixed javascript linting
2024-08-21 09:30:38 -04:00
MarcusNyne
56a3643511
Copy string should replace ALL newlines
2024-08-19 20:50:06 -04:00
MarcusNyne
54fc0980d5
Fixed lint problems
...
Lint run against python and javascript
2024-08-19 18:36:49 -04:00
MarcusNyne
efa87a6abe
Display features for PNG Info tab
...
Text on PNG Info tab is parsed and colorized in a way that makes it easier to read. Parameter values can be copied by clicking on them.
- High performance regex used for parsing
- Normal values are displayed in blue, but string content is displayed in orange to improve readability (i.e. adetailer prompts)
- Clicking to copy uses a pointer cursor and a green color animation to show something is happening
- Color choices configured differently for dark mode in order to optimize readability
- Copying strings with \n automatically converts to newlines during copy operation
- Settings that don't follow normal conventions are not parsed, but displayed in the old style (i.e. dynamic prompt templates)
- If there are parsing issues (or exceptions), defaults to the old display mode
2024-08-19 17:26:56 -04:00
AUTOMATIC1111
d2097dbdd9
added onOptionsAvailable callback for javascript for
2024-06-09 21:33:32 +03:00
AUTOMATIC1111
4573195894
prevent escape button causing an interrupt when no generation has been made yet
2024-02-17 11:40:53 +03:00
catboxanon
46988af636
Fix Esc
interrupt when button not visible
2024-02-15 13:05:39 -05:00
kaalibro
6513470f0d
Remove unnecessary 'else', add 'lightboxModal' check
2023-12-11 18:06:08 +06:00
kaalibro
cee1a40651
Fix linter issues
2023-12-10 17:06:12 +06:00
kaalibro
1d42babd32
Replace Ctrl+Alt+Enter with Esc
2023-12-10 16:28:56 +06:00
kaalibro
9c201550dd
Add keyboard shortcuts for generation
...
(Removed Alt+Enter) Ctrl+Enter to start/restart generation
(New) Alt/Option+Enter to skip generation
(New) Ctrl+Alt/Option+Enter to interrupt generation
2023-12-09 21:04:45 +06:00
kaalibro
94e9669566
Fixes generation restart not working for some users when 'Ctrl+Enter' is pressed
2023-11-13 14:51:06 +06:00
Khachatur Avanesian
d33cb2b812
Add files via upload
...
LF
2023-10-15 11:01:45 +03:00
Khachatur Avanesian
3e223523ce
Update script.js
2023-10-15 10:48:50 +03:00
Khachatur Avanesian
d295e97a0d
Update script.js
...
LF instead CRLF
2023-10-15 10:37:48 +03:00
Khachatur Avanesian
77bd953da2
Update script.js
...
Exclude lambda
2023-10-15 10:25:36 +03:00
Khachatur Avanesian
f00eaa4d00
Start / Restart generation by Ctrl (Alt) + Enter
...
Add ability to interrupt current generation and start generation again by Ctrl (Alt) + Enter
2023-10-15 02:34:03 +03:00
Aarni Koskela
f81931c591
Frontend: only look at top-level tabs, not nested tabs
...
Refs https://github.com/adieyal/sd-dynamic-prompts/issues/459#issuecomment-1568543926
2023-05-30 17:54:29 +03:00
Aarni Koskela
bc53ecf298
Add onAfterUiUpdate callback
2023-05-25 09:09:01 +03:00
Aarni Koskela
54696dce05
Document on* handlers (for extension authors' sake)
2023-05-25 09:03:14 +03:00
Aarni Koskela
9574ebe212
Merge executeCallbacks and runCallback, simplify + optimize
2023-05-25 09:02:41 +03:00
Aarni Koskela
f661fb0fd3
Just use console.error, it's in all browsers
2023-05-25 09:00:45 +03:00
Thottyottyotty
7b61acbd35
split visibility method and sort instead
...
split out the visibility method for pasting and use a sort inside the paste handler to prioritize on-screen fields rather than targeting ONLY on screen fields
2023-05-18 23:43:01 -07:00
Thottyottyotty
e373fd0c00
rewrite uiElementIsVisible
...
rewrite visibility checking to be more generic/cleaner as well as add functionality to check if the element is scrolled on screen for more intuitive paste-target selection
2023-05-18 16:09:09 -07:00
AUTOMATIC
57b75f4a03
eslint related file edits
2023-05-18 09:59:10 +03:00
Aarni Koskela
9c54b78d9d
Run eslint --fix
(and normalize tabs to spaces)
2023-05-17 16:09:06 +03:00
GeorgLegato
d9fdb52149
Update script.js
...
updated how tabs are presented in DOM with Gradio 3.23.
2023-04-03 04:53:29 +02:00
Remixer Dec
22bfcf135f
fix overriding getElementById on document
2023-03-25 18:23:34 +04:00
AUTOMATIC
9f0da9f6ed
initial gradio 3.22 support
2023-03-25 09:00:36 +03:00
AUTOMATIC
40ff6db532
extra networks UI
...
rework of hypernets: rather than via settings, hypernets are added directly to prompt as <hypernet:name:weight>
2023-01-21 08:36:07 +03:00
AUTOMATIC
08c6f009a5
load hashes from cache for checkpoints that have them
...
add checkpoint hash to footer
2023-01-14 15:55:40 +03:00
AUTOMATIC
6ffefdcc9f
fix js errors when restarting UI
2023-01-12 19:47:44 +03:00
Gerschel
4fc8154207
better targetting, class tabs was autoassigned
...
I moved a preset manager into quicksettings, this function
was targeting my component instead of the tabs. This is
because class tabs is autoassigned, while element id #tabs
is not, this allows a tabbed component to live in the quicksettings.
2023-01-03 23:25:34 -08:00
apolinario
37139d8aac
No code repeat
2022-12-10 12:51:40 +01:00
apolinario
8eb638cdd3
style change
2022-12-06 15:14:22 +01:00
apolinario
1075819b16
Use shadowRoot if inside of an iframe and don't use it if outside
...
This makes sure it will work everywhere
2022-12-06 15:13:41 +01:00
apolinario
2eb5f103ab
Fix WebUI not working inside of iframes
2022-12-05 16:30:15 +01:00
AUTOMATIC
cf47d13c1e
localization support
2022-10-17 21:15:32 +03:00
aoirusann
db27b987a9
Add hint for ctrl/alt enter
...
And duplicate implementations are removed
2022-10-15 09:59:40 +03:00
Jairo Correa
8b7d3f1bef
Make the ctrl+enter shortcut use the generate button on the current tab
2022-10-11 09:32:03 +03:00
Melan
6c36fe5719
Add ctrl+enter as a shortcut to quickly start a generation.
2022-10-10 19:32:30 +03:00
Connum
c0b1177a32
refactored image paste handling to fill unset images successively, then replace last existing image ( fixes #981 )
2022-09-27 08:59:40 +03:00
Connum
910a3d9427
make callback queue handling reusable and implement onUiTabChange()
2022-09-24 07:44:05 +03:00