Skip to content

Commit

Permalink
Merge pull request #7 from SenshiSentou/V2.0-beta
Browse files Browse the repository at this point in the history
V2.0
  • Loading branch information
SenshiSentou authored Mar 20, 2024
2 parents 25100eb + ab63d69 commit a5843f4
Show file tree
Hide file tree
Showing 17 changed files with 3,814 additions and 1,035 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
.DS_Store
.DS_Store
.vscode
__pycache__
history.txt
v1_data.json
25 changes: 20 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<img src="https://github.com/SenshiSentou/sd-webui-state-manager/blob/V2.0-beta/toma-chan.png" width="300">

<img src="https://github.com/SenshiSentou/sd-webui-state-manager/blob/main/preview-docked.png" width="400" />
<img src="https://github.com/SenshiSentou/sd-webui-state-manager/blob/main/preview-modal.png" width="400" />

Expand Down Expand Up @@ -29,10 +31,23 @@ By default auto-save is on, and every time you generate an image in either txt2i

If you'd rather save your entries manually, just turn off the toggle in the state browser panel, and use the second button on the top (⌛💾) to add them that way.

# Known shortcomings

Unfortunately there is no clean way to access gradio data on the client side, so all settings are saved and mapped by their UI label. If these labels ever change – whether by update or a different translation/ i18n language – old settings will no longer apply. This does unfortunately make this extension a bit fragile.

# Installation

Open your A1111 Web UI and go to `Extensions > Install from URL`. Paste in the link to this repo (`https://github.com/SenshiSentou/sd-webui-state-manager.git`), click `Install` and restart the web ui. Badabing badaboom, baby!
Open your A1111 Web UI and go to `Extensions > Install from URL`. Paste in the link to this repo (`https://github.com/SenshiSentou/sd-webui-state-manager.git`), click `Install` and restart the web ui. Badabing badaboom, baby!

# Changelog

<details>
<summary>Click to expand</summary>

## 2.0
- Completely overhauled the way settings are saved and loaded (much more robust now) **V2.0 is NOT backwards compatible with V1**
- Added settings panel (`Settings > State Manager`) that contains:
- Option to save entries in either a browser's Indexed DB, or a shared .txt file
- Tools to migrate data between the different save locations
- Added API. Mostly meant for internal use, but also contains a `/version` endpoint and some other programmatic access. See `[a1111 ip]:[port]/docs`
- Made data store more efficiently
- Improved (error) logging
- Fixed "delete entry" button not working
- Ported the code to typescript
</details>
2,128 changes: 1,118 additions & 1,010 deletions javascript/statemanager.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions resources/icon-contrast.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions resources/icon-date.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions resources/icon-round-check.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions resources/icon-view-off.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions resources/icon-view-on copy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions resources/icon-view-on.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions resources/icon-view-on2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/visibility-off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/visibility-on.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a5843f4

Please sign in to comment.