Universal Dashboard Design Terminal

I’ve been helping a lot of people out with debugging dashboards and one thing that I think would be helpful would be a way to mess with the features of UD without having to actually edit your PS1 file over and over again.

That’s why I created UD Terminal. You can enter UD commands to mess with the dashboard you are currently working with. The changes aren’t saved anywhere (yet…) but you’ll be able to futz really easily.

Demo here: https://twitter.com/adamdriscoll/status/1061128207615713280

In the above example, I ran these two lines.

1..10 | % { Add-UDElement -ParentId parent -Content { New-UDImage -Url 'https://media.giphy.com/media/26ufdipQqU2lhNA4g/giphy.gif' } }

Show-UDToast -Message 'Amazing...'

The base dashboard looks like this.

$dashboard = New-UDDashboard -Title "Test" -Content {
      New-UDElement -Tag 'div' -Id 'parent'
}

Start-UDDashboard -Port 10001 -Dashboard $dashboard -Design

You can open the UDTerminal by turning on design mode using the -Design switch of Start-UDDashboard. I’ve always wanted a UD designer and I think this is a step in that direction.

Please feel free to play and let me know what you think.

A couple things are in the pipe:

  • Output :wink:
  • IntelliSense
  • Lock down of the UDTerminal endpoint so not any old joe can run PS commands

Build is available here: https://ci.appveyor.com/project/adamdriscoll/universal-dashboard/builds/20192221

Branch is here: https://github.com/ironmansoftware/universal-dashboard/tree/terminal

2 Likes

Haha i was waiting for somthing like that

1 Like

Got some output working.

2 Likes