Add sample page
This commit is contained in:
parent
618bcc0382
commit
3ce9846d69
5 changed files with 97 additions and 2 deletions
15
org.cockpit-project.subscription-manager.metainfo.xml
Normal file
15
org.cockpit-project.subscription-manager.metainfo.xml
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
<component type="addon">
|
||||||
|
<id>org.cockpit-project.subscription-manager</id>
|
||||||
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
|
<name>Subscription Manager</name>
|
||||||
|
<summary>
|
||||||
|
Subscription Manager in Cockpit
|
||||||
|
</summary>
|
||||||
|
<description>
|
||||||
|
<p>
|
||||||
|
Manage subscriptions to a Candlepin backend, such as for Red Hat products.
|
||||||
|
</p>
|
||||||
|
</description>
|
||||||
|
<extends>cockpit.desktop</extends>
|
||||||
|
<launchable type="cockpit-package">subscription-manager-cockpit</launchable>
|
||||||
|
</component>
|
||||||
38
src/index.html
Normal file
38
src/index.html
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<!--
|
||||||
|
This file is part of subscription-manager.
|
||||||
|
|
||||||
|
Copyright (C) 2017 Red Hat, Inc.
|
||||||
|
|
||||||
|
Cockpit is free software; you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU Lesser General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2.1 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
Cockpit is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
|
along with subscription-manager; If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
-->
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<title translatable="yes">Subscriptions</title>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="description" content="">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="../base1/patternfly.css">
|
||||||
|
<link href="subscriptions.css" rel="stylesheet">
|
||||||
|
|
||||||
|
<script type="text/javascript" src="../base1/cockpit.js"></script>
|
||||||
|
<script type="text/javascript" src="../*/po.js"></script>
|
||||||
|
<script type="text/javascript" src="index.js"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="app"></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
24
src/index.js
24
src/index.js
|
|
@ -0,0 +1,24 @@
|
||||||
|
/*
|
||||||
|
* This file is part of Cockpit.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2017 Red Hat, Inc.
|
||||||
|
*
|
||||||
|
* Cockpit is free software; you can redistribute it and/or modify it
|
||||||
|
* under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Cockpit is distributed in the hope that it will be useful, but
|
||||||
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with subscription-manager; If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
var cockpit = require("cockpit");
|
||||||
|
|
||||||
|
document.addEventListener("DOMContentLoaded", function() {
|
||||||
|
console.log("subscription-manager loaded");
|
||||||
|
});
|
||||||
12
src/manifest.json
Normal file
12
src/manifest.json
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"version": "0.1",
|
||||||
|
"requires": {
|
||||||
|
"cockpit": "138"
|
||||||
|
},
|
||||||
|
|
||||||
|
"tools": {
|
||||||
|
"index": {
|
||||||
|
"label": "subscription-manager"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -2,6 +2,10 @@ const path = require("path");
|
||||||
const copy = require("copy-webpack-plugin");
|
const copy = require("copy-webpack-plugin");
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
|
|
||||||
|
var externals = {
|
||||||
|
"cockpit": "cockpit",
|
||||||
|
};
|
||||||
|
|
||||||
/* These can be overridden, typically from the Makefile.am */
|
/* These can be overridden, typically from the Makefile.am */
|
||||||
const srcdir = (process.env.SRCDIR || __dirname) + path.sep + "src";
|
const srcdir = (process.env.SRCDIR || __dirname) + path.sep + "src";
|
||||||
const builddir = (process.env.SRCDIR || __dirname);
|
const builddir = (process.env.SRCDIR || __dirname);
|
||||||
|
|
@ -15,8 +19,9 @@ var info = {
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
files: [
|
files: [
|
||||||
"index.html"
|
"index.html",
|
||||||
]
|
"manifest.json",
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
var output = {
|
var output = {
|
||||||
|
|
@ -71,6 +76,7 @@ var plugins = [
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
entry: info.entries,
|
entry: info.entries,
|
||||||
|
externals: externals,
|
||||||
output: output,
|
output: output,
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue