shell: Add cockpit.confirm function

Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Use cockpit.confirm when deleting containers and images

Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Use cockpit.confirm when erasing storage things

Also, put a warning into the format dialogs.

Fixes #73
Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Include user name in confirmation dialog when deleting an account

Closes #795
Reviewed-by: Stef Walter <stefw@redhat.com>
Fix commands and formatting slightly
test: Fix regression in ownership of /var/lib/cockpit dir

This should be group writable by wheel so wheel users
can add/remove machines.

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Fixes #853
Closes #882
ws: Prevented the unnecessary warning.

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Fixes #858
Closes #883
ws: Don't complain when an HTTP keep alive times out

Just disconnect quietly. Fixes spurious log lines like this
30 seconds after each cockpit login.

cockpit-ws[6184]: request timed out, closing

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Closes #881
shell: Move cockpit_format_bytes into cockpit namespace

And make the function easier to use correctly

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
shell: Put cockpit-storage code in own private scope

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
shell: Move the cockpit_format_bytes_long into storage code

This is where it's used from and it's storage specific.

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
shell: Move cockpit.format_bytes_per_sec into cockpit scope

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
shell: Move cockpit.format_delay into cockpit scope

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
shell: Remove unused cockpit_add_thousands_separater function

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
shell: Move cockpit_format_temperature into storage code

It's currently disk specific, and so scope it appropriately.

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
shell: bits rather than bytes to describe network throughput

Refactor how we build up the suffixes.

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Fixes #855
Closes #877
shell: Restricts bond input to 4 digits

When adding a bond, the user is now restricted from typing in more than 4 digits in various input boxes. These input boxes include the Monotoring Interval, Link up, and Link down.

Reviewed-by: Patrick Uiterwijk
Closes: #878
Fixes: #843
Release version 0.16
shell: Disable the "Previous" button appropriately

Fixes #425
Closes #891
Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Disable the "Next" button appropriately

Disable the "Next" button when the address or host name is empty.
When the address or host name is incorrect, the button is disabled,
but still freezed, this will be fixed together with the returned
error issue.

When the button is freezed, it will change back to the enabled
state whenever the address is altered.

The address text input will get the focus when the "address" tab
shows up.

Fixes #861
Closes #892
Reviewed-by: Stef Walter <stefw@redhat.com>