Commit Graph

99 Commits

Author SHA1 Message Date
Christian Bastian
ffd003bda4 Dropdown enter is for searching, arrows and mouse are for navigating. 2024-03-31 04:41:02 -04:00
Christian Bastian
683012a2e2 Improved Directory Dropdowns.
- Each `DirectoryDropdown` now remembers the longest/most-recent path (navigating with keys).
- Separated mouse and keyboard directory dropdown selection.
- Clicking, scrolling and tapping no longer dismiss directory dropdowns.
- Added a small border on the left on the keyboard-highlighted dropdown selection.
- Fixed bug with dropdown scrolling with Model Info View.
- Encapsulated model directories formally in new `ModelDirectories` data structure.
- Moved download button in the Download Tab.
2024-03-31 03:02:01 -04:00
Christian Bastian
bfcfb509ce File directory default value in Model Info "Move" input. 2024-03-30 12:55:23 -04:00
Christian Bastian
2eba51c668 Remove model type selection in Download Tab.
- Refactored Directory Dropdown update.
2024-03-30 01:58:02 -04:00
Christian Bastian
581d8f4a26 Set default Move value to separator. 2024-03-28 23:53:59 -04:00
Christian Bastian
df6895eb46 Update comment. 2024-03-28 23:51:23 -04:00
Christian Bastian
9a1694ad0b TODO comment. 2024-03-28 23:46:24 -04:00
Christian Bastian
bb9d2037f1 Empty directories no longer show search separator to make navigation easier. 2024-03-28 23:34:54 -04:00
Christian Bastian
57348a3c62 Refactored Model Tab
- Created ModelData class.
2024-03-28 22:18:34 -04:00
Christian Bastian
957af3bd7e "Model" button toggles Model Manager; for sidebar mode. 2024-03-28 19:10:31 -04:00
Christian Bastian
2578ca181b Human-readable bytes in model info.
- Also fixed typos in JavaScript comments.
2024-03-27 22:33:34 -04:00
Christian Bastian
f424c2d2ae Download Tab 'model save file name' text input value set for convenient modification. 2024-03-27 01:04:14 -04:00
Christian Bastian
764321868c Move sampling type in Model Info. 2024-03-25 19:00:12 -04:00
Christian Bastian
a7a0a6b343 Update model info slightly.
- Hide Clip Skip "1" from Model Info.
- Show Dimension/Rank and Alpha. (Nice to reference when evaluating a model's output.)
2024-03-25 18:56:30 -04:00
Christian Bastian
129a686e89 Fixed minor UI bug displaying 0 or 1 models in Download Tab. 2024-03-25 15:36:24 -04:00
Christian Bastian
df8fb76f26 Increase supported image extensions
- Supports lower priority `<name>.preview.<extension>` preview names.
  - Note that this means that model names should not be of the format `<name>.preview`, else behavior may be unexpected.
- Removed use of splitext.
- Added checks for valid file type extensions.

- More conformal path accessing for `extension_uri` and `comfyui_model_uri`.
2024-03-24 20:36:16 -04:00
Hayden
191d98565e Merge pull request #4 from cdb-boop/main
Major Rework
2024-03-06 09:43:49 +08:00
Christian Bastian
dcafca07f0 Show more model metadata in Model Info view.
- In model tab, optionally view embedded thumbnails in safetensors (slow if there are many safetensors without previews).
2024-02-28 19:35:59 -05:00
Christian Bastian
bf0ffd0bdb Fix file input overflowing on moblie. 2024-02-28 14:39:26 -05:00
Christian Bastian
a0ebb4e149 Old model name in rename window prompt. 2024-02-27 18:18:11 -05:00
Christian Bastian
802ec85191 Disable named input built-in auto-complete. 2024-02-27 18:02:03 -05:00
Christian Bastian
cb809549d8 Fix README dropdown again. 2024-02-27 04:31:42 -05:00
Christian Bastian
eaecf1ac81 Fix dropdown in README. 2024-02-27 04:30:43 -05:00
Christian Bastian
fe67e6981a Add names to html elements.
- Updated README.
2024-02-27 04:27:10 -05:00
Christian Bastian
76aac01afd Refactor CSS. 2024-02-27 03:53:07 -05:00
Christian Bastian
b5ee9e3c47 JavaScript refactoring. 2024-02-27 03:28:17 -05:00
Christian Bastian
aa837bc6dc BUG FIX: typo split instead of splitext 2024-02-25 23:20:44 -05:00
Christian Bastian
9a6c7033d8 BUG FIX: Duplicate extension on move. 2024-02-25 23:17:07 -05:00
Christian Bastian
a4dd2f570b Rename model in Model View added.
- Generalized model/move to also support renaming.
2024-02-25 23:02:02 -05:00
Christian Bastian
839b93c9be BUG FIX: Civitai API key token added to a url with existing query string.
- Also updated README.
2024-02-23 02:36:40 -05:00
Christian Bastian
f5b1b8f70d Update README. 2024-02-22 16:00:24 -05:00
Christian Bastian
b7747a163a Layout and button changes
- In Model View, moved "Set as Preview" button below radio buttons and disabled when Default selected.
- General CSS layout improvements.
2024-02-22 15:53:58 -05:00
Christian Bastian
d951a508ed Model Previews can now be set in Model View.
- Abstracted out Radio Buttons for Preview selection (mostly clean).
- Added REST API for preview/set and preview/delete.
- Added dateModified to query string so the browser can detect out of date preview images.
- Added image path and dateModified to Model Info payload.
2024-02-22 05:11:38 -05:00
Christian Bastian
c4b6ddd5ca BUG FIX: Save notes with "utf-8" format.
- Bug could cause notes to be erased on save.
2024-02-21 14:37:53 -05:00
Christian Bastian
a72fe681b5 Edit and save notes with model file in model info view.
- If notes are all whitespace, the .txt file is deleted.
2024-02-20 00:56:58 -05:00
Christian Bastian
b3f00dd60f Option to overwrite downloads.
- Added overwrite to GUI.
- Factored out wrapper for creation $checkbox.
2024-02-19 23:38:34 -05:00
Christian Bastian
48d5757d2b Removed redundant information.
- Search path is deconstructed on the server to extract model type. Front and back end changed.
- Show directory even if empty. (Prevented moving a file to an empty directory.)
2024-02-19 20:28:55 -05:00
Christian Bastian
7b98d810ba Move model in Model Info view.
- Added server REST API endpoint for moving a model and associated resources.
2024-02-19 19:15:16 -05:00
Christian Bastian
f1c802164f Updated README. 2024-02-17 14:22:53 -05:00
Christian Bastian
9f4d21ac5b Update README. 2024-02-17 13:31:42 -05:00
Christian Bastian
acc15298bc Added "View Model Info" and "Delete Model" functionality.
NOTE: Some small (but important) changes under the hood that may have broken things. "Quality control" tests were done, but may be have missed things.

- View model info in Model Tab.
- Delete model in Model Info view. (Uses Co
- Reduced model path (search path) in models request and added system separator request.
- Reworked "system path" "search path", "system separator" and "search separator" (a bit messy, maybe needs another rework).
- Updated REST uri structure to be more consistent.
2024-02-17 13:30:58 -05:00
Christian Bastian
8fbbff2175 Remove debug print(). 2024-02-13 15:40:11 -05:00
Christian Bastian
f810f68bbe Add API key to query string. 2024-02-13 15:38:49 -05:00
Christian Bastian
efea14d731 Update README. 2024-02-13 14:51:53 -05:00
Christian Bastian
ef64ff1644 Remove index.json and related code from server. 2024-02-13 12:09:44 -05:00
Christian Bastian
35ebbbc8d6 Backport Index.json download url support. 2024-02-13 12:06:40 -05:00
Christian Bastian
04622b460d HuggingFace download image support.
- Images now appear with HuggingFace links.
- Download inputs fill full width.
- Disabled (annoying) directory auto-suggest dropdown auto-selecting on arrow right or left.
2024-02-13 11:30:39 -05:00
Christian Bastian
d4de1da26e Revert width and update README. 2024-02-13 01:22:49 -05:00
Christian Bastian
241e06e17d Remove download debug. 2024-02-13 01:11:50 -05:00
Christian Bastian
1fcda7bc17 Removed SourceList for old Install tab and fix for narrow screens. 2024-02-13 01:06:17 -05:00