diff options
Diffstat (limited to 'content/cockpit')
-rw-r--r-- | content/cockpit/cockpit-plugin-tutorial.md | 5 | ||||
-rw-r--r-- | content/cockpit/dbus-basics.md | 2 | ||||
-rw-r--r-- | content/cockpit/rest-api-plugin.md | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/content/cockpit/cockpit-plugin-tutorial.md b/content/cockpit/cockpit-plugin-tutorial.md index 5c10d80..a311825 100644 --- a/content/cockpit/cockpit-plugin-tutorial.md +++ b/content/cockpit/cockpit-plugin-tutorial.md @@ -4,7 +4,7 @@ Category: Cockpit, Linux Tags: cockpit, linux Slug: creating-plugins-for-the-cockpit-user-interface -*Note: This post has been updated for changes in Cockpit 0.41 and later.* +*Note: This post has been updated for changes in Cockpit 0.90 and later.* [Cockpit is a user interface for servers](http://cockpit-project.org). And you can add stuff to that user interface. Cockpit is internally built of various components. Each component is HTML, with Javascript logic that makes it work, and CSS to make it pretty. @@ -30,7 +30,8 @@ Components, and more specifically their HTML and Javascript files, live in packa "label": "Pinger", "path": "ping.html" } - } + }, + "content-security-policy": "default-src 'self' 'unsafe-inline' 'unsafe-eval'" } The manifest above has a `"tools"` subsection. Each tool is listed in the *Tools* menu by Cockpit. The `"path"` is the name of the HTML file that implements the tool, and the `"label"` is the text to show in the *Tools* menu. diff --git a/content/cockpit/dbus-basics.md b/content/cockpit/dbus-basics.md index 9aa7479..e5599a7 100644 --- a/content/cockpit/dbus-basics.md +++ b/content/cockpit/dbus-basics.md @@ -4,7 +4,7 @@ Category: Cockpit, Linux Tags: cockpit, linux Slug: using-dbus-from-javascript-in-cockpit -*Note: This post has been updated for changes in Cockpit 0.41 and later.* +*Note: This post has been updated for changes in Cockpit 0.90 and later.* [Cockpit is a user interface for servers](http://cockpit-project.org). As we covered in the [last tutorial](http://stef.thewalter.net/creating-plugins-for-the-cockpit-user-interface.html) you can add user interface component to Cockpit, and build your own parts of the Server UI. diff --git a/content/cockpit/rest-api-plugin.md b/content/cockpit/rest-api-plugin.md index 63256fc..07827df 100644 --- a/content/cockpit/rest-api-plugin.md +++ b/content/cockpit/rest-api-plugin.md @@ -4,6 +4,8 @@ Category: Cockpit, Linux Tags: cockpit, linux Slug: making-rest-calls-from-javascript-in-cockpit +*Note: This post has been updated for changes in Cockpit 0.90 and later.* + [Cockpit is a user interface for servers](http://cockpit-project.org). In [earlier](http://stef.thewalter.net/creating-plugins-for-the-cockpit-user-interface.html) [tutorials](http://stef.thewalter.net/using-dbus-from-javascript-in-cockpit.html) there's a guide on how to add components to Cockpit. Not all of the [system APIs use DBus](http://stef.thewalter.net/d-bus-is-powerful-ipc.html). So sometimes we find ourselves in a situation where we have to use REST (which is often just treated as another word for HTTP) to talk to certain parts of the system. For example [Docker has a REST API](https://docs.docker.com/reference/api/docker_remote_api/). |