Commit Graph
9 Commits
Author SHA1 Message Date
JaredTherriault f0338b0c5f Batch selection, batch deletion, classifying some scripts, module manager
-Added new batch selection and batch deletion features. All imageElements now have a checkbox and each selected element is tracked within a context or folder. When you've selected all you want to delete, click the recycle button on the toolbar, then again to confirm. All checked items will be recylced/deleted. You can also click on the selection widget next to the batch delete button to toggle select/deselect all.
-Renamed ImageDrawer.js to ImageDrawerMain.js
-Separated ImageListAndSearch out into separate scripts and classes named ImageDrawerList and ImageDrawerSearch
-Changed order of some initialized functions and variables in imageElements to better accommodate batch selection
-
-Moved some scripts over to a classy architecture. More scripts will be moved over time. This will eventually allow for multiple image drawer instances in the same window.
-Added a new module script that manages all class instances. See ImageDrawerModule.js for an explanation of the new architecture. Basically, it makes cyclical dependencies impossible.
-Updated imports
-Updated various scripts to use class instances where applicable
-Updated some outdated comments
-Added option to prepend or append labels to Labeled widgets
-Parameter optimizations
-
2024-05-07 20:39:40 -07:00
JaredTherriault 3ed7fbee1b Fix sorting for image elements 2024-05-04 23:48:38 -07:00
JaredTherriault df8c6da431 Add DiisplayData structure to imageElement and drag and drop payload for imageElements 2024-05-01 16:28:50 -07:00
JaredTherriault 219d3a8a67 Implement image aspect ratio sort type 2024-04-30 22:05:52 -07:00
JaredTherriault 811111102b Implement new sorting types: SortTypeFileSize, SortTypeImageWidth, SortTypeImageHeight, SortTypeFileType 2024-04-30 21:44:47 -07:00
JaredTherriault f0e9347640 Major video update, ConfigSettings improvements, js async cancellation, load optimizations
-Roll UiSettings into SettingsManager
-Account for ConfigSettings that are objects by loading default values then loading config value son top
-Set ConfigSetting values using JSON.stringify
-Separate flyout generation into generic function
-Add video settings flyout in subfolderexplorer contexts
-Add option to control slider range value label fractional digits
-Update default slider range values to reflect 1-100 values rather than 0-1
-Rename ImageDrawerContext description to tooltip
-Update 'flex' alignment to 'normal' in context toolbars
-Automatically cancel async js operations when switching contexts
-blur or unfocus toolbar buttons on click to avoid accidental clearing or refreshing
-Get setting_ModelCardAspectRatio value as number
-Implement method to avoid lazy loading of images
-Lay some groundwork for unimplemented cancellation requests for python tasks
-Separated image list and search variables and functions to a separate script, ImageListAndSearch
-Update extra networks toolbar buttons to have a bespoke class and use specific cursor styles
-Update ImageElements 'complete' to 'bComplete' to differentiate from the img property
-Add lastSeekTime property initialization to img element
-Don't run onload if image element is already bComplete
-Sort and execute search after image is loaded (if requested). This allows search and sort to work with all of the meta data in the image.
-Click videos to pause/play
-Double click videos to toggle fullscreen
-Mute videos based on video options
-Set video volume from video options flyout
-Use scrollwheel on video to seek forward or back (seek direction depends on video options)
-Update imports
2024-04-17 14:58:59 -07:00
JaredTherriault 7ee5672414 Capitalize ImageDrawer script 2024-03-29 21:10:33 -07:00
JaredTherriault 5a6623c7b3 Basic video support in image list, backend organizational improvements, image loading optimizations, drag and drop lora into graph
-Change some names for clarity and capitalization linter
-Add SettingsManager to handle Config Settings
-Move some Utilities to SettingsManager
-Added images and videos are observed when they are added to the image list and unobserved when removed
-Add video support in feed and other image lists
-Optimized local image/video loading (for input and output folders and the like)
-Restore last subfolder selection on refresh of folder explorer context if possible
-Add batching code path for image loading (unused for now, needs tuning)
-Add option to drag and drop loras into graph to create lora node automatically
-Images now load in on demand (lazy loading) rather than all at once
-Try/Catch reading of image metadata
-Disable drag/drop for image href, fix issue where dragging image makes redundant toolbar button
-Add UiSettings script to handle adding UI Settings
2024-03-29 20:01:21 -07:00
JaredTherriault bfe6e2c8f8 Add Sorting, user overrides and civit.ai link for extra networks, new contexts
-Subclassed ModelContext (for extra networks types), ContextRefreshable (for contexts that need a refresh button to reload data) and ContextSubFolderExplorer (for contexts that just show you images in a folder, no subfolder support yet) base types
-Implemented sorting on the backend and frontend
 * "Show Newest First" checkbox removed
 * Sorting dropdown added
 * FriendlyName, Filename, Date sort types implemented, ascending and descending
 * Support for default sort type per context
 * Sort on change context, on refresh and on image added
-Added more utils (sleep, isEmptyObject, checkIfAllImagesAreComplete)
-Added Embeddings context support (images in subfolders don't work yet)
-Tooltips are only created for images that actually have metadata to show
-Added support for user-customized info for extra networks (friendlyName, userTags, userTrainedWords, lastViewedImageIndex) that override applicable data from civit.ai. In the future there will be a way to add these in the UI. For now, you can set these by creating a json file with the same name as the model file (so 227.safetensors -> 227.info). .info, .txt, and .json types are supported.
-Added civit.ai link for extra networks
-Now the selected context controls the toolbar widgets next to the search bar
-Added drawer location option to Drawer Options flyout
-Merged metadata - > tooltip code into setMetadataAndUpdateTooltipAndSearchTerms
2024-01-29 12:22:39 -08:00