feat: undo-redo & edit snapshots (#2436)

* feat: undo-redo & edit snapshots

* fix merge

* add simple history back

* fix some undo

* change app latest version

* fix

* chatconfig

* fix snapshot

* fix

* fix

* fix

* fix compare

* fix initial

* fix merge:

* fix useEffect

* fix snapshot initial and saved state

* chore

* fix

* compare snapshot

* nodes edges useEffct

* fix chatconfig

* fix

* delete unused method

* fix

* fix

* fix

* default version name
This commit is contained in:
heheer
2024-08-23 15:58:43 +08:00
committed by GitHub
parent de573e4303
commit 6288dc9492
49 changed files with 1559 additions and 349 deletions

View File

@@ -0,0 +1,3 @@
<svg viewBox="0 0 14 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path id="Polygon 8 (Stroke)" fill-rule="evenodd" clip-rule="evenodd" d="M4.24277 12.4952L10.0403 9.23726C10.9183 8.74387 11.4621 8.43615 11.8323 8.18154C11.9539 8.09794 12.0294 8.03772 12.0732 7.99999C12.0294 7.96226 11.9539 7.90203 11.8323 7.81844C11.4621 7.56383 10.9183 7.25611 10.0403 6.76272L4.24277 3.50479C3.36511 3.01159 2.81898 2.70681 2.40643 2.52163C2.23511 2.44473 2.1322 2.41044 2.08127 2.3957C2.05236 2.40455 2.02714 2.41733 2.00603 2.43216C1.9951 2.48511 1.98005 2.5748 1.96697 2.71367C1.92612 3.14704 1.9241 3.7532 1.9241 4.74206L1.9241 11.2579C1.9241 12.2468 1.92612 12.8529 1.96697 13.2863C1.98006 13.4252 1.99511 13.5149 2.00603 13.5678C2.02714 13.5826 2.05235 13.5954 2.08127 13.6043C2.1322 13.5895 2.23511 13.5553 2.40643 13.4784C2.81898 13.2932 3.36511 12.9884 4.24277 12.4952ZM13.7929 7.14993C13.5091 6.52957 12.6635 6.05439 10.9724 5.10405L5.17486 1.84612C3.48371 0.895784 2.63813 0.420614 1.94427 0.491596C1.33906 0.55351 0.789265 0.862468 0.431571 1.34166C0.0214848 1.89104 0.0214847 2.84138 0.0214847 4.74206L0.0214844 11.2579C0.0214843 13.1586 0.0214843 14.1089 0.43157 14.6583C0.789264 15.1375 1.33906 15.4465 1.94427 15.5084C2.63813 15.5794 3.48371 15.1042 5.17486 14.1539L10.9724 10.8959C12.6635 9.94558 13.5091 9.47042 13.7929 8.85005C14.0404 8.30895 14.0404 7.69103 13.7929 7.14993Z" fill="#3370FF"/>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB