From ddf951b2cd7c4c924b5da807b17d118abc0affd3 Mon Sep 17 00:00:00 2001 From: Edward Delaporte Date: Mon, 3 May 2021 07:38:21 -0500 Subject: [PATCH] dashboard prototype --- psmodules/dash.psm1 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 psmodules/dash.psm1 diff --git a/psmodules/dash.psm1 b/psmodules/dash.psm1 new file mode 100644 index 0000000..caccf72 --- /dev/null +++ b/psmodules/dash.psm1 @@ -0,0 +1,20 @@ + +function Get-MyDashboard() { + $MyDashboard = New-UDDashboard -Title "Hello, World" -Content { + New-UDCard -Title "Hello, Universal Dashboard" -Content { + New-UDParagraph -Text 'I am a very simple card. I am good at containing small bits of information. I am convenient because I require little markup to use effectively.' + } -Links @( + New-UDLink -Text 'This is a link' -Url '#!' + New-UDLink -Text 'This is a link' -Url '#!' + ) -Size 'small' + } + } + return $MyDashboard +} + +function Inovke-MyDashboard() { + Start-UDDashboard -Port 1000 -Dashboard Get-MyDashboard + Write-Host "http://localhost:1000" +} + +Export-ModuleMember -Function Invoke-MyDashboard \ No newline at end of file -- 2.47.3