-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
Introduce API to build Single Page Applications (SPAs) #2811
base: main
Are you sure you want to change the base?
Commits on Apr 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d3b35ae - Browse repository at this point
Copy the full SHA d3b35aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for ef97d2e - Browse repository at this point
Copy the full SHA ef97d2eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 91887a1 - Browse repository at this point
Copy the full SHA 91887a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3307281 - Browse repository at this point
Copy the full SHA 3307281View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c7f680 - Browse repository at this point
Copy the full SHA 2c7f680View commit details -
Functional single page app login screen.
Integrated single page app into Client.open so navigation to SPA pages is redirected. Fixed bug with forward and backwards navigation between SPA pages. Collecting data from original pages to able to apply the original page title.
Configuration menu - View commit details
-
Copy full SHA for 7ff4728 - Browse repository at this point
Copy the full SHA 7ff4728View commit details -
Functional single page app login screen.
Integrated single page app into Client.open so navigation to SPA pages is redirected. Fixed bug with forward and backwards navigation between SPA pages. Collecting data from original pages to able to apply the original page title.
Configuration menu - View commit details
-
Copy full SHA for 969a2d2 - Browse repository at this point
Copy the full SHA 969a2d2View commit details -
Added additional pages to the session_storage demo
Fixed a bug which could occur when open was called before the UI was set up
Configuration menu - View commit details
-
Copy full SHA for b9005ee - Browse repository at this point
Copy the full SHA b9005eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for b3d73f1 - Browse repository at this point
Copy the full SHA b3d73f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 241215a - Browse repository at this point
Copy the full SHA 241215aView commit details -
Removed method decoration and replaced it with additional page_config…
…s registry in Client. General clean-up Added titles to sample app Added docu to SPA
Configuration menu - View commit details
-
Copy full SHA for 13f29ac - Browse repository at this point
Copy the full SHA 13f29acView commit details -
* Refactored the SinglePageRouter to give the user more control over …
…the structure of the root page, the possibility to override the class and implement custom routing and to react to the creation of sessions. * Added samples for the single page router * Refactored the Login sample with the new possibilities and making use of Pydantic as an example for a cleaner code base
Configuration menu - View commit details
-
Copy full SHA for 21005e1 - Browse repository at this point
Copy the full SHA 21005e1View commit details
Commits on Apr 4, 2024
-
Implemented app.storage.session which enables the user to store data …
…in the current Client instance - which in practice means "per browser tab".
Configuration menu - View commit details
-
Copy full SHA for db6b065 - Browse repository at this point
Copy the full SHA db6b065View commit details -
Configuration menu - View commit details
-
Copy full SHA for d9403b4 - Browse repository at this point
Copy the full SHA d9403b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for eabe01a - Browse repository at this point
Copy the full SHA eabe01aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ed5620 - Browse repository at this point
Copy the full SHA 1ed5620View commit details -
Configuration menu - View commit details
-
Copy full SHA for e2e2006 - Browse repository at this point
Copy the full SHA e2e2006View commit details
Commits on Apr 5, 2024
-
Replaced Client.state by ObservableDict
Moved context import to top of the file
Configuration menu - View commit details
-
Copy full SHA for 3fedd36 - Browse repository at this point
Copy the full SHA 3fedd36View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8fc9208 - Browse repository at this point
Copy the full SHA 8fc9208View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ecb6f5 - Browse repository at this point
Copy the full SHA 8ecb6f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for a39e54c - Browse repository at this point
Copy the full SHA a39e54cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 89a39d4 - Browse repository at this point
Copy the full SHA 89a39d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 664a25d - Browse repository at this point
Copy the full SHA 664a25dView commit details -
Allowed the Single Page App content root as parent for top level elements such as header, footer etc.
Configuration menu - View commit details
-
Copy full SHA for ab67606 - Browse repository at this point
Copy the full SHA ab67606View commit details -
Added page not found handling, still needs a bit more love though to …
…show the real 404 page.
Configuration menu - View commit details
-
Copy full SHA for fac0356 - Browse repository at this point
Copy the full SHA fac0356View commit details -
Added more fine granular definition of which pages are included in th…
…e SPA with inclusion and exclusion masks. Added the possibility to disable the browser history completely for the SPA if desired. Added a sample to the advanced spa demo which excludes onw page from the SPA but shares the same layout.
Configuration menu - View commit details
-
Copy full SHA for 0c72d16 - Browse repository at this point
Copy the full SHA 0c72d16View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4fe9cc - Browse repository at this point
Copy the full SHA a4fe9ccView commit details
Commits on Apr 6, 2024
-
Renamed app.storage.session to app.storage.client.
Adjusted documentation of app.storage.client.
Configuration menu - View commit details
-
Copy full SHA for ea8dad5 - Browse repository at this point
Copy the full SHA ea8dad5View commit details -
Merge remote-tracking branch 'origin/feature/per_session_data' into f…
…eature/per_session_data
Configuration menu - View commit details
-
Copy full SHA for e627934 - Browse repository at this point
Copy the full SHA e627934View commit details -
Configuration menu - View commit details
-
Copy full SHA for cf21786 - Browse repository at this point
Copy the full SHA cf21786View commit details -
Added support for fragments / hashes. Further refinements
* Added support for "jump marks" / fragments / hashes in single page application. You can now follow references within a single page and also open a SPA page directly at a passed hash. * Refactored the URL parsing to make it more flexible for real URL and callable targets * Added a dedicated single_page_content property to the Client class * Fixed a bug which was triggered when moving from a non SPA page to an SPA page
Configuration menu - View commit details
-
Copy full SHA for 84bc6ce - Browse repository at this point
Copy the full SHA 84bc6ceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 36f3b80 - Browse repository at this point
Copy the full SHA 36f3b80View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6699041 - Browse repository at this point
Copy the full SHA 6699041View commit details -
Configuration menu - View commit details
-
Copy full SHA for 30a87e3 - Browse repository at this point
Copy the full SHA 30a87e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for a923f34 - Browse repository at this point
Copy the full SHA a923f34View commit details -
Configuration menu - View commit details
-
Copy full SHA for efcee63 - Browse repository at this point
Copy the full SHA efcee63View commit details -
Configuration menu - View commit details
-
Copy full SHA for f50f469 - Browse repository at this point
Copy the full SHA f50f469View commit details -
Cleaned client and storage class
Refactored naming and doc in single_page.py
Configuration menu - View commit details
-
Copy full SHA for 87e83b5 - Browse repository at this point
Copy the full SHA 87e83b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2cf5058 - Browse repository at this point
Copy the full SHA 2cf5058View commit details
Commits on Apr 13, 2024
-
Merge remote-tracking branch 'nicegui/main' into feature/client_data
# Conflicts: # nicegui/client.py
Configuration menu - View commit details
-
Copy full SHA for f4698f9 - Browse repository at this point
Copy the full SHA f4698f9View commit details
Commits on Apr 14, 2024
-
Splitting reload functionality into separate RouterFrame class respon…
…sible for async building Added outlet and outlet view class
Configuration menu - View commit details
-
Copy full SHA for 215e493 - Browse repository at this point
Copy the full SHA 215e493View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3167521 - Browse repository at this point
Copy the full SHA 3167521View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75a5e53 - Browse repository at this point
Copy the full SHA 75a5e53View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b989d9 - Browse repository at this point
Copy the full SHA 4b989d9View commit details
Commits on May 1, 2024
-
Nested outlets are working in general now.
Parent SPRs and parent RouteFrames know now about active children and can respect their sub routes accordingly. Open bug: Both the main and the sub routers react to / routes, only one of both should though.
Configuration menu - View commit details
-
Copy full SHA for 9f685fa - Browse repository at this point
Copy the full SHA 9f685faView commit details
Commits on May 3, 2024
-
router_Frame.js event handlers are now removed upon unmount - this fi…
…xed the bug that the state was pushed to the history twice. TODO: If two outlets share the same root path, e.g. / and /spa2, the rf / will still intercept navigation to /spa2.
Configuration menu - View commit details
-
Copy full SHA for d5a9009 - Browse repository at this point
Copy the full SHA d5a9009View commit details -
Configuration menu - View commit details
-
Copy full SHA for ef5ab9d - Browse repository at this point
Copy the full SHA ef5ab9dView commit details -
Fixed SinglePageApp and advanced demo to also allow the upgrade of cl…
…assical, page based apps to SPAs Added OutletViews as possible targets of the link class RoutingFrame can now also explicitly ignore certain paths Bugfix: Title is now changed again on SPA navigation WIP: Recursive URL target resolving upon first load
Configuration menu - View commit details
-
Copy full SHA for 07d9a3a - Browse repository at this point
Copy the full SHA 07d9a3aView commit details -
Fixed support for fragment targets
Made it possible to directly jump into nested pages Added the possibility to pass the FastAPI request data into the builder function
Configuration menu - View commit details
-
Copy full SHA for ab5dad5 - Browse repository at this point
Copy the full SHA ab5dad5View commit details
Commits on May 4, 2024
-
Added Page Not Found fallback if an invalid SPA route is taken
The initial page build is now synchronous with the integration of the RouterFrame to prevent ugly progressive page updates on the initial site visit.
Configuration menu - View commit details
-
Copy full SHA for 4f54ce1 - Browse repository at this point
Copy the full SHA 4f54ce1View commit details
Commits on May 10, 2024
-
* Created enhanced outlet demo * Made it possible to yield variables from outlets and to pass them to nested views and outlets * Fixed bug which caused complex hyperlinks affecting a whole div not being catched by the SPA link handler * It is now possible to make use of path variables in outlets and views * Type correctness for variables passed via path is now only enforced if the user defined a type at all
Configuration menu - View commit details
-
Copy full SHA for b4dd186 - Browse repository at this point
Copy the full SHA b4dd186View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb28497 - Browse repository at this point
Copy the full SHA cb28497View commit details -
Added the possibility to access the current RouterFrame from every view and nested outlet builder method Passed url_path to outlet builder methods
Configuration menu - View commit details
-
Copy full SHA for 33193fe - Browse repository at this point
Copy the full SHA 33193feView commit details -
Configuration menu - View commit details
-
Copy full SHA for e2bccee - Browse repository at this point
Copy the full SHA e2bcceeView commit details -
Configuration menu - View commit details
-
Copy full SHA for aa81849 - Browse repository at this point
Copy the full SHA aa81849View commit details -
Configuration menu - View commit details
-
Copy full SHA for 04be96a - Browse repository at this point
Copy the full SHA 04be96aView commit details -
Configuration menu - View commit details
-
Copy full SHA for a112465 - Browse repository at this point
Copy the full SHA a112465View commit details
Commits on May 11, 2024
-
Renamed the SinglePageRouter to SinglePageRouterConfig to emphasize i…
…t is a singleton, static object created and configured once.
Configuration menu - View commit details
-
Copy full SHA for 3e5f2c2 - Browse repository at this point
Copy the full SHA 3e5f2c2View commit details -
* Split the functionality of the RouterFrame into RouterFrame (just element related UI update logic) and SinglePageRouter (a per page/per user instance managing the actual routing) * Renamed the old SinglePageRouter to SinglePageRouterConfig * Removed router specific elements from the SinglePageTarget to also make it usable purely with a target builder function and a title (and later favicon etc)
Configuration menu - View commit details
-
Copy full SHA for 36875ac - Browse repository at this point
Copy the full SHA 36875acView commit details -
Added on_resolve to outlet.view which is called when ever a view is s…
…elected. The on_resolve method allows overriding the selected target parge and changing it's title.
Configuration menu - View commit details
-
Copy full SHA for b49d0c0 - Browse repository at this point
Copy the full SHA b49d0c0View commit details -
* Added completely served side handled browser history
* Preparation for more detailed event handling on resolving and navigating to SPA pages
Configuration menu - View commit details
-
Copy full SHA for 1fe8a96 - Browse repository at this point
Copy the full SHA 1fe8a96View commit details
Commits on May 12, 2024
-
* Added post- and pre-update callback in SinglePageTarget to execute …
…specific commands when an SPA content as exchanged * Added on_resolve, on_navigate and on_open events to the Outlet class to enable it to intercept and/or redirect or update certain pages change * Add on_resolve, on_navigate and on_open to SinglePageRouter, allowing the user to define these events just for specific instances * Bugfix: Title updated twice on an SPA page change sometimes. It is ensured now that the title is only update by views changes. * BugFix: For Outlets with path variables always the whole hierarchy was rebuilt on ever page change. This is fixed now.
Configuration menu - View commit details
-
Copy full SHA for 1823110 - Browse repository at this point
Copy the full SHA 1823110View commit details -
Configuration menu - View commit details
-
Copy full SHA for cfd6478 - Browse repository at this point
Copy the full SHA cfd6478View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c8eb01 - Browse repository at this point
Copy the full SHA 4c8eb01View commit details -
Configuration menu - View commit details
-
Copy full SHA for 70660e5 - Browse repository at this point
Copy the full SHA 70660e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for c3a3edb - Browse repository at this point
Copy the full SHA c3a3edbView commit details
Commits on Jun 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e44edaa - Browse repository at this point
Copy the full SHA e44edaaView commit details -
Removed SinglePageApp class and associated examples
Renamed Cloud demo to single_page_app_complex
Configuration menu - View commit details
-
Copy full SHA for 94eed81 - Browse repository at this point
Copy the full SHA 94eed81View commit details -
* Removed on_resolve and on_open events from outlet and SinglePageRou…
…terConfig * Extended on_navigate so it can also return SinglePageTargets
Configuration menu - View commit details
-
Copy full SHA for 8f61006 - Browse repository at this point
Copy the full SHA 8f61006View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb786f0 - Browse repository at this point
Copy the full SHA bb786f0View commit details
Commits on Jun 13, 2024
-
Enhanced SinglePageRouter by the possibility to define dynamic views …
…as object methods to enable to user to develop object oriented NiceGUI apps.
Configuration menu - View commit details
-
Copy full SHA for 4a49846 - Browse repository at this point
Copy the full SHA 4a49846View commit details -
Configuration menu - View commit details
-
Copy full SHA for 76cf840 - Browse repository at this point
Copy the full SHA 76cf840View commit details
Commits on Jun 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8a6c805 - Browse repository at this point
Copy the full SHA 8a6c805View commit details -
Configuration menu - View commit details
-
Copy full SHA for 80cdb09 - Browse repository at this point
Copy the full SHA 80cdb09View commit details
Commits on Jun 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b679a58 - Browse repository at this point
Copy the full SHA b679a58View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e71e65 - Browse repository at this point
Copy the full SHA 1e71e65View commit details -
Configuration menu - View commit details
-
Copy full SHA for 36a8a8f - Browse repository at this point
Copy the full SHA 36a8a8fView commit details -
Configuration menu - View commit details
-
Copy full SHA for a83e14f - Browse repository at this point
Copy the full SHA a83e14fView commit details -
Configuration menu - View commit details
-
Copy full SHA for ce92506 - Browse repository at this point
Copy the full SHA ce92506View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3344bf0 - Browse repository at this point
Copy the full SHA 3344bf0View commit details -
Configuration menu - View commit details
-
Copy full SHA for baea9e1 - Browse repository at this point
Copy the full SHA baea9e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3471c1c - Browse repository at this point
Copy the full SHA 3471c1cView commit details -
Configuration menu - View commit details
-
Copy full SHA for c1d700d - Browse repository at this point
Copy the full SHA c1d700dView commit details
Commits on Jun 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 64d948b - Browse repository at this point
Copy the full SHA 64d948bView commit details -
Configuration menu - View commit details
-
Copy full SHA for aa0226a - Browse repository at this point
Copy the full SHA aa0226aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bfd3c8 - Browse repository at this point
Copy the full SHA 3bfd3c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c4526f - Browse repository at this point
Copy the full SHA 9c4526fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d40c984 - Browse repository at this point
Copy the full SHA d40c984View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9678c89 - Browse repository at this point
Copy the full SHA 9678c89View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae71e4b - Browse repository at this point
Copy the full SHA ae71e4bView commit details -
Configuration menu - View commit details
-
Copy full SHA for d9ee01f - Browse repository at this point
Copy the full SHA d9ee01fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d3c901f - Browse repository at this point
Copy the full SHA d3c901fView commit details -
Configuration menu - View commit details
-
Copy full SHA for e710c50 - Browse repository at this point
Copy the full SHA e710c50View commit details -
Configuration menu - View commit details
-
Copy full SHA for b16d992 - Browse repository at this point
Copy the full SHA b16d992View commit details -
Configuration menu - View commit details
-
Copy full SHA for 340bfd1 - Browse repository at this point
Copy the full SHA 340bfd1View commit details -
Configuration menu - View commit details
-
Copy full SHA for d1b955c - Browse repository at this point
Copy the full SHA d1b955cView commit details