public inbox for pmg-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pmg-devel] [PATCH http-server/yew-widget-toolkit 0/2] prepare change to mobile quarantine ui
@ 2025-07-10 10:28 Dominik Csapak
  2025-07-10 10:28 ` [pmg-devel] [PATCH http-server 1/1] api server: add 'wasm' as valid extension Dominik Csapak
  2025-07-10 10:28 ` [pmg-devel] [PATCH yew-widget-toolkit 1/1] touch: material app: add option for the theme dir prefix Dominik Csapak
  0 siblings, 2 replies; 4+ messages in thread
From: Dominik Csapak @ 2025-07-10 10:28 UTC (permalink / raw)
  To: pmg-devel, yew-devel

yew-widget-toolkit patch is necessary for the ui to properly load the
css/font files.

http-server is so we are able to serve wasm files from perl api daemons

pve-http-server:

Dominik Csapak (1):
  api server: add 'wasm' as valid extension

 src/PVE/APIServer/AnyEvent.pm | 1 +
 1 file changed, 1 insertion(+)


proxmox-yew-widget-toolkit:

Dominik Csapak (1):
  touch: material app: add option for the theme dir prefix

 src/touch/material_app.rs | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)


Summary over all repositories:
  2 files changed, 10 insertions(+), 1 deletions(-)

-- 
Generated by git-murpp 0.8.1


_______________________________________________
pmg-devel mailing list
pmg-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [pmg-devel] [PATCH http-server 1/1] api server: add 'wasm' as valid extension
  2025-07-10 10:28 [pmg-devel] [PATCH http-server/yew-widget-toolkit 0/2] prepare change to mobile quarantine ui Dominik Csapak
@ 2025-07-10 10:28 ` Dominik Csapak
  2025-07-15 19:29   ` [pmg-devel] applied: [yew-devel] " Thomas Lamprecht
  2025-07-10 10:28 ` [pmg-devel] [PATCH yew-widget-toolkit 1/1] touch: material app: add option for the theme dir prefix Dominik Csapak
  1 sibling, 1 reply; 4+ messages in thread
From: Dominik Csapak @ 2025-07-10 10:28 UTC (permalink / raw)
  To: pmg-devel, yew-devel

otherwise the server won't serve wasm files to the client.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 src/PVE/APIServer/AnyEvent.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/PVE/APIServer/AnyEvent.pm b/src/PVE/APIServer/AnyEvent.pm
index 8f2c3ff..b00e074 100644
--- a/src/PVE/APIServer/AnyEvent.pm
+++ b/src/PVE/APIServer/AnyEvent.pm
@@ -431,6 +431,7 @@ my $file_extension_info = {
     mp3 => { ct => 'audio/mpeg', nocomp => 1 },
     oga => { ct => 'audio/ogg', nocomp => 1 },
     tgz => { ct => 'application/x-compressed-tar', nocomp => 1 },
+    wasm => { ct => 'application/wasm' },
 };
 
 sub send_file_start {
-- 
2.39.5



_______________________________________________
pmg-devel mailing list
pmg-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [pmg-devel] [PATCH yew-widget-toolkit 1/1] touch: material app: add option for the theme dir prefix
  2025-07-10 10:28 [pmg-devel] [PATCH http-server/yew-widget-toolkit 0/2] prepare change to mobile quarantine ui Dominik Csapak
  2025-07-10 10:28 ` [pmg-devel] [PATCH http-server 1/1] api server: add 'wasm' as valid extension Dominik Csapak
@ 2025-07-10 10:28 ` Dominik Csapak
  1 sibling, 0 replies; 4+ messages in thread
From: Dominik Csapak @ 2025-07-10 10:28 UTC (permalink / raw)
  To: pmg-devel, yew-devel

otherwise we can't use different paths for the css/font files when using
a material app.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 src/touch/material_app.rs | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/touch/material_app.rs b/src/touch/material_app.rs
index 2c72e00..079dd5c 100644
--- a/src/touch/material_app.rs
+++ b/src/touch/material_app.rs
@@ -212,6 +212,11 @@ pub struct MaterialApp {
     #[builder(IntoPropValue, into_prop_value)]
     #[prop_or(Some(PageAnimationStyle::FadeFromRight))]
     pub page_animation: Option<PageAnimationStyle>,
+
+    #[builder]
+    #[prop_or_default]
+    /// The directory prefix for the css files. (E.g. "/css/")
+    pub theme_dir_prefix: AttrValue,
 }
 
 impl MaterialApp {
@@ -385,11 +390,14 @@ impl Component for PwtMaterialApp {
             )
             .with_optional_child(self.dialog.as_ref().map(|(_, dialog)| dialog.clone()));
 
+        let theme_loader = ThemeLoader::new(NavigationContainer::new().with_child(app))
+            .dir_prefix(props.theme_dir_prefix.clone());
+
         html! {
             <Router history={self.history.clone()} basename={props.basename.clone()}>
                 <ContextProvider<SnackBarController> context={self.snackbar_controller.clone()}>
                     <ContextProvider<PageController> context={self.page_controller.clone()}>
-                    { ThemeLoader::new(NavigationContainer::new().with_child(app))}
+                    { theme_loader }
                     </ContextProvider<PageController>>
                 </ContextProvider<SnackBarController>>
             </Router>
-- 
2.39.5



_______________________________________________
pmg-devel mailing list
pmg-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [pmg-devel] applied: [yew-devel] [PATCH http-server 1/1] api server: add 'wasm' as valid extension
  2025-07-10 10:28 ` [pmg-devel] [PATCH http-server 1/1] api server: add 'wasm' as valid extension Dominik Csapak
@ 2025-07-15 19:29   ` Thomas Lamprecht
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Lamprecht @ 2025-07-15 19:29 UTC (permalink / raw)
  To: pve-devel, pmg-devel, yew-devel, Dominik Csapak

On Thu, 10 Jul 2025 12:28:11 +0200, Dominik Csapak wrote:
> otherwise the server won't serve wasm files to the client.
> 
> 

Applied, thanks!

[1/1] api server: add 'wasm' as valid extension
      commit: 0ed9932b12e8a5d423657a1dfe0fb27b2774c0d8


_______________________________________________
pmg-devel mailing list
pmg-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-07-15 19:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-10 10:28 [pmg-devel] [PATCH http-server/yew-widget-toolkit 0/2] prepare change to mobile quarantine ui Dominik Csapak
2025-07-10 10:28 ` [pmg-devel] [PATCH http-server 1/1] api server: add 'wasm' as valid extension Dominik Csapak
2025-07-15 19:29   ` [pmg-devel] applied: [yew-devel] " Thomas Lamprecht
2025-07-10 10:28 ` [pmg-devel] [PATCH yew-widget-toolkit 1/1] touch: material app: add option for the theme dir prefix Dominik Csapak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal