-
-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor engine #752
Merged
Merged
Refactor engine #752
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Owner
maxence-charriere
commented
Aug 11, 2022
- engine refactoring
- context can now prevent update
This reverts commit 185f470.
maxence-charriere
added a commit
that referenced
this pull request
Aug 22, 2022
* Go 1.18 and custom elements (#739) * rename html generated files * bump required go version to 1.18 * update dependencies * rename attributes() to getAttributes() * rename Mounted() to IsMounted() * bump go version in ci * rename dispatcher() to getDispatcher() * rename children() to getChildren * rename context() to getContext * rename parent() to getParent() * Create html.go * createElement now also takes namespace * html element mount * move html attribute logic * change replace logi * add js value delete and equal * html element update * attributes unit tests * html element implementation complete * event handler unit tests * fix wasm test * fix unit tests * fix test 2 * Update state_test.go * benchmark element * generate html * Revert "generate html" This reverts commit bcb4414. * rename element.selfClosing * rename element.parentElem * rename elem.disp * rename elem.jsvalue * use attributes in element * elem uses eventHandlers * change getAttributes and getEventHandlers return values * refactor elem mount/dismount * refactor element update * refactor element remove child at * cleanup element * move element.go to html.go * add on method to html elements * fix gen typo * replace interface{} by any * update deps * customizable element contructor and test * bump go version doc to 1.18 * cleanup * cleanup * optimize html convert * rename customizable by elem * Revert "rename customizable by elem" This reverts commit 613e0b8. * Revert "Revert "rename customizable by elem"" This reverts commit da43f0d. * Revert "optimize html convert" This reverts commit 77cb2b3. * Revert "Revert "optimize html convert"" This reverts commit ec0bfc4. * better html write optimization * rename SelfClosingElem to ElemSelfClosing * generate docs * Update attribute.go * Update app.wasm * revert Mounted name change * generate doc * fix format typo * Update attribute.go * optimize filter ui (#736) * cleanup * cleanup code * Update html.go * Update component.go * Fix for attr names "accept-charset" and "http-equiv" (#748) * Fixing invalid double set charset meta headers (#750) * Refactor component events (#751) * add onLifecyleEvent to UI interface * refactor app update * refactor app install change * refactor resize * refactor nav * rename onLifecycleEvent to onComponentEvent * Refactor engine (#752) * enginex dispatcher implementation * fix tests * engineX client/server dispatcher * enginex cleanup * frame backoff * init and start once * use engine x * rename enginex to engine + unit tests * try preventComponentUpdate * Update component.go * add remove component update * Revert "add remove component update" This reverts commit 185f470. * context prevent update * allow prevent update override * limit frame backoff * Wasm download progress (#754) * display download progress * inititalize progress * Update shell.go * Revert "Update shell.go" This reverts commit 99625f5. * Update component.go * fix unit test * Update component.go * V9.6 fixes (#755) * call on component update after root update * no emit when handling js event * test ordering updates * reverse update order * avoid updating multiple time a component * no panic when mounting mounted element * remove ordering * simplify * restore mount guard * Update component.go * Update engine.go * Update engine.go * Update component.go * Update component.go * try fix * Update engine.go * try update optimization * optimize update * use emit back in js event * cleanlup * Improve loader (#756) * Customize loading label * Allow to custom http header to guess wasm size * Update http.go * fix loading header * update loading * Customizable service worker (#757) * export appworkerjs template * allow http handler to change app worker template * fix wasm tests * Update static-resources.md Co-authored-by: Hans Raaf <hara@oderwat.de>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.