From 67e47c5774a6a19465e774c71b64f27a88bb43f3 Mon Sep 17 00:00:00 2001 From: Garrick Aden-Buie Date: Tue, 30 Jul 2024 15:26:48 -0400 Subject: [PATCH] fix: remove uses of `panel_main()` and `panel_sidebar()` (#194) --- components/display-messages/chat/index.qmd | 2 +- layouts/arrange/app-fillable-core.py | 6 ++---- layouts/arrange/app-page-fixed-core.py | 6 ++---- layouts/arrange/app-page-fluid-core.py | 6 ++---- 4 files changed, 7 insertions(+), 13 deletions(-) diff --git a/components/display-messages/chat/index.qmd b/components/display-messages/chat/index.qmd index e712e17a..92d594bb 100644 --- a/components/display-messages/chat/index.qmd +++ b/components/display-messages/chat/index.qmd @@ -17,7 +17,7 @@ listing: shinylive: https://shinylive.io/py/editor/#code=NobwRAdghgtgpmAXAAjFADugdOgnmAGlQGMB7CAFzkqVQDMAnUmZAZwAsBLCXLOAD3QM4rVsk4x0pBhWQBXTgB0IyhTigBzOAH1S6CqwAUy5KeQVOFADZwAvIrAAJOFaulkAZS49kAYXZQFA4EJmZ0nK5QAEY2tgAqDHJwIRBmyOGRMTowpFERdglJKQCUysoAxH7CgXDIUMjEAbLcrBRQEMS17QAmyN2crOhWULjiQR1NyLbynFj+gYac3fZgjYEOxaaVADzbymsUWAqGm8g7eyqXlQAicOEQXQ1QrlFQxADW5u6JqQDu7NRzAD5Kw4Aw2HIojBLGJ6vBRJo4MoAAIHLDkbRyUEMbSsSHQ2RnZC7ZRQVi4Dp9O7IbQnFBEkmpMyVDwSIajOCNdwUYFYsEAcjE3HQclkrw+XyBcBgoVMUF+UEsDSaWAw6Go3W08NYiMMdAcAE1SHI2IruigQGi+TjhaKTgBfDZbYkXQioCi4dW0MBUfgUMD2gC6QA - title: Core file: app-core.py - shinylive: https://shinylive.io/py/editor/#code=NobwRAdghgtgpmAXGKAHVA6VBPMAaMAYwHsIAXOcpMAMwCdiYACAZwAsBLCbJjmVYnTJMAgujxMArhwA6EOWlQB9aUwC8UjligBzOEpocANkagAjI3AAUcpnc3aIcI0rIcylm2AASzo8SYAZU5uJgBhNigyGTAASjxbe2kMQkiyFQ4vVKiY+LsAYiYAHiLEu0MTc0slGGIzYzg1ABU6STgEiFi5bogAEzgaVjg6ADdhqy5USTJYxDKmQrC6OCi4JigmbOEuFjIoCEI1-d6mXo4WVFMed3mt9QcIqInetRit3ILi0vkIewWmAAiAy4R02UBMZighAA1kwyAFWr8AO5sShw1FSFjDViSMwwdwsdZMeAsFi6ODzAACWwwpBUWLoShYuPxwn+JXmUBY2AOpwGTCUVlmnw5vz+9kKgT4lx4cFSATIGMkDIA5ITJtMmJCYXCFaiYPM-lAkVB3Js0hhFJRejU4KTyVYaDEAJrESSsU29RBMEA05XDJQashCgC+H3Z3x6inuYlQVkUGQkDLGdC6EDAIYAukA + shinylive: https://shinylive.io/py/editor/#code=NobwRAdghgtgpmAXAAjFADugdOgnmAGlQGMB7CAFzkqVQDMAnUmZAZwAsBLCXZTmdKQYVkAQUxEArpwA6EORnQB9acgC8yaTigBzOErqcANkagAjI3AAUc5Hc2dtEOEaUVOFSzbAAJF0dJkAGUuHmQAYXYoChkwAEoCW3stYiiKFU5vVOjYhLsAYmQAHiKku0MTc0slGFIzYzg1ABUGSThEiDi5bogAEzg6NjgGADdhq250SQo4xDLkQvCGOGi4ZChkbJFuVgooCGI1-d7kXs5WdFNeD3mt9QcsSOiJ3rVYrdyC4tL5CHsF5AAEQG3COmygJjMUGIAGtkBRAq0-gB3djUeFozSsYZsSRmGAeVjrZDwVisXRweYAAS2WHIKmxDCUrDxBJEAJK8ygrFwB1OA2QSissy+nL+-3shSC-EuvDgqUCFExkkZAHIiZNpsgobD4Yq0TB5v8oMioB5NmksIpqL0anAyRSrHRYgBNUiSNhm3ooEC0lXDJSaijCgC+nw5Px6inu4nQVkUGSIjLGDC6EEIqAouHQCBQYCoAA8KGAQwBdIA - id: relevant-functions template: ../../_partials/components-detail-relevant-functions.ejs template-params: diff --git a/layouts/arrange/app-fillable-core.py b/layouts/arrange/app-fillable-core.py index 5f4df2c1..83d23219 100644 --- a/layouts/arrange/app-fillable-core.py +++ b/layouts/arrange/app-fillable-core.py @@ -4,12 +4,10 @@ app_ui = ui.page_fillable( # << ui.layout_sidebar( - ui.panel_sidebar( + ui.sidebar( ui.input_slider("n", "N", 0, 100, 20), ), - ui.panel_main( - ui.output_plot("histogram", height="100%"), # << - ), + ui.output_plot("histogram", height="100%"), # << ), ) # << diff --git a/layouts/arrange/app-page-fixed-core.py b/layouts/arrange/app-page-fixed-core.py index a17597ee..6c268e59 100644 --- a/layouts/arrange/app-page-fixed-core.py +++ b/layouts/arrange/app-page-fixed-core.py @@ -4,12 +4,10 @@ app_ui = ui.page_fixed( # << ui.layout_sidebar( - ui.panel_sidebar( + ui.sidebar( ui.input_slider("n", "N", 0, 100, 20), ), - ui.panel_main( - ui.output_plot("histogram"), - ), + ui.output_plot("histogram"), ), ) # << diff --git a/layouts/arrange/app-page-fluid-core.py b/layouts/arrange/app-page-fluid-core.py index 95d04701..1bcfef49 100644 --- a/layouts/arrange/app-page-fluid-core.py +++ b/layouts/arrange/app-page-fluid-core.py @@ -4,12 +4,10 @@ app_ui = ui.page_fluid( # << ui.layout_sidebar( - ui.panel_sidebar( + ui.sidebar( ui.input_slider("n", "N", 0, 100, 20), ), - ui.panel_main( - ui.output_plot("histogram"), - ), + ui.output_plot("histogram"), ), ) # <<