Commit Graph

76 Commits

Author SHA1 Message Date
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
AUTOMATIC f3d83fd68a add read access to settings for jsavascript
add an option to disable lightbox modal
2022-09-18 22:25:18 +03:00
AUTOMATIC 5e80c286ee script.js split work - ui.js 2022-09-18 09:00:06 +03:00
Andrey ce799a63e9 Split history script.js to javascript/ui.js 2022-09-18 08:51:47 +03:00
Andrey 1f851193b9 Split history script.js to javascript/ui.js 2022-09-18 08:51:47 +03:00
AUTOMATIC ae63d82741 script.js split work - progress.js 2022-09-18 08:51:11 +03:00
Andrey 3b9ad0b235 Split history script.js to javascript/progressbar.js 2022-09-18 08:48:47 +03:00
Andrey bab13135ac Split history script.js to javascript/progressbar.js 2022-09-18 08:48:47 +03:00
AUTOMATIC 26b52fd1ec script.js split work - hints.js 2022-09-18 08:48:13 +03:00
Andrey 3641a91bc2 Split history script.js to javascript/hints.js 2022-09-18 08:41:23 +03:00
Andrey bd219076db Split history script.js to javascript/hints.js 2022-09-18 08:41:23 +03:00
AUTOMATIC 74c538e84f script.js split work - dragdrop.js 2022-09-18 08:41:08 +03:00
Andrey 27b9b233f2 Split history script.js to javascript/dragdrop.js 2022-09-18 08:37:57 +03:00
Andrey 759dda9a7e Split history script.js to javascript/dragdrop.js 2022-09-18 08:37:57 +03:00
AUTOMATIC a86c279419 script.js split work 2022-09-18 08:37:03 +03:00
Andrey 3f91de3c91 Split history script.js to javascript/dragdrop.js 2022-09-18 07:55:08 +03:00
Andrey ca8451ece0 Split history script.js to javascript/dragdrop.js 2022-09-18 07:55:08 +03:00
Connum 88e315a8d5 Replace existing images when pasting from clipboard or dropping a new one (fixes #573) 2022-09-17 21:09:47 +02:00
DepFA f9cae046cb
typo 2022-09-17 18:03:52 +01:00
DepFA 0e5527b4df
Add previous and next to modal with key shortcuts 2022-09-17 17:58:33 +01:00
DepFA f96d8a601c
Block event propagation when lightbox is triggered 2022-09-17 15:29:06 +01:00
DepFA 1ef79f926e generalise to work on all non-masked images on all tabs 2022-09-17 14:56:11 +03:00
DepFA 1a51337077 Add modal creation and functions 2022-09-17 14:56:11 +03:00
AUTOMATIC 304222ef94 X/Y plot support for switching checkpoints. 2022-09-17 13:49:36 +03:00
AUTOMATIC c441ba065c add a comment and some checks for the functionality of the last PR 2022-09-17 08:03:47 +03:00