]> us-delaporte.pagekite.me Git - dotfiles.git/blob - psmodules/dash.psm1
dashboard prototype
[dotfiles.git] / psmodules / dash.psm1
1
2 function Get-MyDashboard() {
3 $MyDashboard = New-UDDashboard -Title "Hello, World" -Content {
4 New-UDCard -Title "Hello, Universal Dashboard" -Content {
5 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.'
6 } -Links @(
7 New-UDLink -Text 'This is a link' -Url '#!'
8 New-UDLink -Text 'This is a link' -Url '#!'
9 ) -Size 'small'
10 }
11 }
12 return $MyDashboard
13 }
14
15 function Inovke-MyDashboard() {
16 Start-UDDashboard -Port 1000 -Dashboard Get-MyDashboard
17 Write-Host "http://localhost:1000"
18 }
19
20 Export-ModuleMember -Function Invoke-MyDashboard