feat: add edits back! and more webview support!

This commit adds a new type - the DomEdit - for serializing the changes made by the diffing machine. The architecture of how DomEdits fit into the cooperative scheduling is still TBD but it will allow us to build change lists without applying them immediately. This is more performant  and allows us to only render parts of the page at a time.

This commit also adds more infrastructure around webview. Dioxus can now run on the web, generate static pages, run in the desktop, and run on mobile, with a large part of thanks to webview.
This commit is contained in:
Jonathan Kelley committed 2021-07-05 18:37:15 -04:00
1 parent e8f29a8f8a
commit 904b26f711
22 files changed
+1155 -735

No files matched your search

+14 -6
View File
@@ -28,7 +28,8 @@ button:active {
}
#wrapper {
height: 100vh;
/* height: 100vh; */
height: max-content;
display: flex;
align-items: center;
@@ -58,7 +59,14 @@ button:active {
color: white;
background: #1c191c;
line-height: 130px;
font-size: 6em;
/* font-size: 6em; */
font-size: 16px;
font-size: 4vw;
max-height: 160px;
padding: 0 30px;
/* height: 80px; */
flex: 1;
}
@@ -68,10 +76,10 @@ button:active {
}
.calculator-display .auto-scaling-text {
padding: 0 30px;
position: absolute;
right: 0;
transform-origin: right;
/* padding: 0 30px; */
/* position: absolute; */
/* right: 0; */
/* transform-origin: right; */
}
.calculator-keypad {