Skip to content
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

Node manager #903

Merged
merged 96 commits into from
Nov 9, 2023
Merged

Node manager #903

merged 96 commits into from
Nov 9, 2023

Conversation

maxence-charriere
Copy link
Owner

Refactoring of the engine and how ui elements are handled

@maxence-charriere maxence-charriere merged commit 9340c1f into v10 Nov 9, 2023
3 checks passed
@maxence-charriere maxence-charriere deleted the node-manager branch November 9, 2023 21:34
maxence-charriere added a commit that referenced this pull request May 20, 2024
* Condition Rework (#887)

* rework condition to take functions instead of ui elements

* update ci go version

* improve condition test coverage

* test only pkg

* only test app pkg

* Update build.yml

* Update build.yml

* Update build.yml

* Broader use of formatted string arg and generated documentation overhaul (#888)

* replace remaining strings argument by format

* use format with Style

* Improve generated documentation.

* improve generated doc C

* Improve generated doc D - E

* Update html.go

* Update html.go

* Update html.go

* Update html.go

* Update html.go

* Update html.go

* update event handlers doc

* Update html.go

* Update html.go

* Update html.go

* modify fixed method doc

* Update html.go

* Update html.go

* Update html.go

* Update html.go

* Update html.go

* Update html.go

* Update html.go

* Update html.go

* Update html.go

* Update html.go

* Update html.go

* Update html.go

* update generated doc

* update generated wording

* Routes refactoring (#889)

* make routes call only take factory functions

* add NewComponentFunc

* rename NewComponentFunc to NewZeroComponentFunc

* rename NewZeroComponentFunc to NewZeroComponentFactory

* Improve filter UI elems (#891)

* update former FilterUIElems and its doc

* improve FilterUIElems unit tests

* cleanup test

* remove isServerSide from engine and dispatcher (#892)

* remove node kind (#893)

* remove internal node context (#894)

* Node manager (#903)

* node manager declaration

* mount text

* remove node manager dismountText

* node manager can update

* node manager update text

* updade node manager doc

* mount html element

* node manager resolve url

* Update node_test.go

* node manager mount html attributes

* node manager mount html event handler

* test mount event handler

* node manager make context

* Update html.go

* node manager dismount html element

* html element setters to return the element

* node manager updateHTMLAttributes

* node manager update html event handlers

* node manage update html children

* Update node_test.go

* unexport Depth()

* node manager mount component partial implementation

* node manager component mount

* improve node manager mount test coverage

* Update node_test.go

* Update node.go

* node manager dismount component

* node manager update component

* can update value tests

* node manager mount raw html

* node manager dismount raw html

* node manager update raw html

* node manager notify component update on html events

* node manager NotifyComponentEvent

* refactor node manager to use context

* use function to get page in node context

* enginex navigate and load

* enginex url tests

* update manager

* enginex start implementation

* fix enginex context

* implement more node context methods

* browser app updatble

* Update browser.go

* comple browser init

* Update enginex.go

* refactor actions

* enginex start testing

* update context documentation

* add notifications to node context

* state manage implementation part1

* state manager broadcast

* state manager observer and get unit tests

* state manager test  set partial tests

* state manager remaining tests

* fix doc site

* cleanup

* node manage encode text

* node manage encode raw

* node manager encode component

* node manager encode html

* update node manager doc

* Update node.go

* node manage encode test

* enginex to load component intro body first child only

* change loading

* enginex root

* refactor node manager encode

* engine x encode

* fix set state

* context to be a single structure

* update context

* state manager delete

* Update context.go

* fix on anchor click

* fix fragment navigation

* fix js loading

* fix node manager foreach updatable component

* fix action post

* Update node.go

* update default rate

* Update app.go

* Update app.go

* revert oninit and prerender deprecation

* Update context.go

* remove emit back

* cleanup

* add back benchmarks

* add generated unit test

* add unit test to gen html

* fix context defer and add unit tests

* refactor testing

* refactor testing

* refactor HTMLString

* cleanup

* cleanup persisted states (#904)

* fix broadcast state

* fix engine request page

* js args adjustment (#907)

* Update js_wasm.go

* cleanup

* Url resolver (#911)

* resource resolver for local and remote dir

* fix macro run

* refactor http to use resource resolver

* cleanup

* cleanup

* Update go.sum

* Update http.go

* add domain to http handler

* Update http.go

* resolve of url

* resolve twitter image

* trim prefixed version path

* updat http

* wasm content length set

* WasmContentLength as a string

* Update http.go

* Update http.go

* resolve manifest urls

* set keywords only when they are set

* html to no display empty title property

* Http resource (#913)

* http resource

* use parse http resource

* Update http.go

* Update http.go

* Fix prevent update (#916)

* http resource

* use parse http resource

* Update http.go

* Update http.go

* replace update struct by counter

* Update update.go

* Create js_wasm_test.go

* add context.Update

* Update http.go

* trigger on update whenever a component is updated (#917)

* Trigger on update whenever a component is updated (#918)

* trigger on update whenever a component is updated

* update doc

* Revert "Trigger on update whenever a component is updated (#918)"

This reverts commit 424c7c1.

* Revert "trigger on update whenever a component is updated (#917)"

This reverts commit 200b16d.

* call clean args into Invoke

* fixe cleanArgs with []any

* refactor js wrapping (#920)

* change installing worker state to trigger app update notification (#922)

* update ResizeContent doc

* Fix prevent update 2 (#928)

* add update take a counter

* handle done update withing the updated

* update deps

* revert update done removal

* Update engine_test.go

* Update context_test.go

* Update if documentation  (#930)

* Update declarative-syntax.md

* Update home.md

* Update install.md

* Update lifecycle.md

* Update notifications.md

* move global variables in a single location (#931)

* Refactor storage api (#932)

* remove Key() from BrowserStorage

* browser storage foreach

* use browser storage ForEach in CleanupExpiredPersistedStates

* add Contains to browser storage

* update handler godoc

* Replace v9 path by v10 (#933)

* replace path in pkg

* replace path in docs/src

* Update getting-started.md

* Update go.mod

* Update makefile

* update doc

* update github doc

* Update README.md

* remove auto update interval (#936)

* cleanup app.js

* Maskable icon (#938)

* save

* Replace icon apple touch my makable

* add maskable image to mainfest

* update script

* event handler options integration (#942)

* move ctx.TryUpdateApp to global app.TryUpdate

* Specify whether an observer listen to broadcast (#943)

* add loading attribute to img

* set a fixed size to the wasm loader icon

* Update condition.go (#947)

* fix condition 2

* Update when wasm not loaded (#949)

* handle update when update occur before wasm is loaded

* fix goappOnUpdate condition

---------

Co-authored-by: Maxence Charriere <maxence@Maxences-Macbook-Pro-IV.local>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant