]> apps.delaporte.us Git - dotfiles.git/blob - psmodules/dash.psm1
Merge.
[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 return $MyDashboard
12 }
13
14 function Inovke-MyDashboard() {
15 Start-UDDashboard -Port 1000 -Dashboard Get-MyDashboard
16 Write-Host "http://localhost:1000"
17 }
18
19 Export-ModuleMember -Function Invoke-MyDashboard