bridge: Workaround temporary issue with UTF8 validation

We're not properly indicating that the resource1 channels are
binary channels ... that work is on another branch.

So work around this for now by lying to cockpit_channel_send()

Closes #1430
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
shell: Handle modern DBusClient in hostname_for_display

Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Simplify HTML

Mostly, move the top navbar out of #content.

Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Host switcher

Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Hide navigation when showing the dashboard

Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Ensure that the plots resize when the host switcher toggles

Closes #1409
Reviewed-by: Stef Walter <stefw@redhat.com>
tools: Use same cockpit.spec as Fedora for our testing

This makes our work easier trying to keep track of what's going
on and where. Use rpm condititionals to build optional parts
of the cockpit.spec file.

Simplify the make-rpms and make-srpms

Reviewed-by: Stephen Gallagher <sgallagh@redhat.com>
tools: If JSL is not available allow build to proceed without it

Closes #1432
Reviewed-by: Stephen Gallagher <sgallagh@redhat.com>
Bump cockpit version
test: Upload multiple files to test vms at once

This is faster.

Closes #1433
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
daemon: Make dependency on storaged resolved at runtime

Soon we'll be calling storaged and udisks directly from javascript
code. The module that the javascript code lives in should be built
in a package that depends on storaged and udisks so it's appropriately
installed.

We won't be using the interface xml directly anymore anyway. So
this is an interim step, in the right direction, even though it looks
like a hack.

Closes #1436
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
tools: Bring in some spec file fixes from Fedora build

Closes #1437
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
configure.ac: Fix for older autoconf versions

The syntax for empty conditions doesn't work with older autoconf
versions (like the one on RHEL6). It doesn't expand correctly.

Closes #1439
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
common, bridge: Support older JSON versions like 0.14.2

This is compatible on RHEL6 and other OS's. We just needed
a few minor changes to make this work.

We expect json-glib 0.14.0 or later, but I accidentally used
functions only available in later versions.

Closes #1440
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
common, ws: Add missing headers

Porting to RHEL6 highlighted these missing headers.

Closes #1441
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
src: Remove build dependency on libgsystem

Neither Debian or RHEL have libgsystem ... and we were only using a few
defines from one header.

Closes #1435
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
shell: Limit the displayed width of hostnames.

To maintain steady width and avoid jumping ui.

Closes #1434
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
base: Be more relaxed about D-Bus subscriptions

Don't try to send messages over closed channels.

Closes #1142
Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Don't extend cockpit.xxx as the shell global

Use shell.xxxx instead, once we start mixing components using
AMD this gets very confusing.

Closes #1445
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
 * Fixed missed references to cockpit.spawn, shell.variant,
   and shell.register_component.
shell: Track navigation in external pages

And add some toy navigation to the playground.

Closes #1406
Reviewed-by: Stef Walter <stefw@redhat.com>