Scaffolding

main
Gerard Braad 2023-06-17 07:06:33 +00:00
parent cf561561e3
commit 791e032536
10 changed files with 30 additions and 84 deletions

View File

@ -16,7 +16,7 @@ test_task:
fix_kvm_script: sudo chmod 666 /dev/kvm
# test PO template generation
pot_build_script: make po/starter-kit.pot
pot_build_script: make po/tailscale.pot
# chromium has too little /dev/shm, and we can't make that bigger
check_script: TEST_BROWSER=firefox TEST_JOBS=$(nproc) TEST_OS=$TEST_OS make check

View File

@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="addon">
<id>org.cockpit_project.starter_kit</id>
<metadata_license>CC0-1.0</metadata_license>
<name>Starter Kit</name>
<summary>Scaffolding for a cockpit module</summary>
<description>
<p>
Scaffolding for a cockpit module.
</p>
</description>
<extends>org.cockpit_project.cockpit</extends>
<launchable type="cockpit-manifest">starter-kit</launchable>
<url type="homepage">https://github.com/cockpit-project/starter-kit</url>
<url type="bugtracker">https://github.com/cockpit-project/starter-kit/issues</url>
<update_contact>cockpit-devel_AT_lists.fedorahosted.org</update_contact>
</component>

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="addon">
<id>org.cockpit_project.tailscale</id>
<metadata_license>CC0-1.0</metadata_license>
<name>Tailscale</name>
<summary>Tailscale application</summary>
<description>
<p>
Tailscale application for Cockpit
</p>
</description>
<extends>org.cockpit_project.tailscale</extends>
<launchable type="cockpit-manifest">tailscale</launchable>
<url type="homepage">https://github.com/spotsnel/tailscale-cockpit</url>
<url type="bugtracker">https://github.com/spotsnel/tailscale-cockpit/issues</url>
<update_contact>me@gbraad.nl</update_contact>
</component>

View File

@ -1,9 +1,9 @@
{
"name": "starter-kit",
"description": "Scaffolding for a cockpit module",
"name": "tailscale",
"description": "Tailscale application for Cockpit",
"type": "module",
"main": "index.js",
"repository": "git@github.com:cockpit/starter-kit.git",
"repository": "git@github.com:spotsnel/tailscale-cockpit.git",
"author": "",
"license": "LGPL-2.1",
"scripts": {

View File

@ -1,11 +1,11 @@
Name: cockpit-starter-kit
Name: cockpit-tailscale
Version: %{VERSION}
Release: 1%{?dist}
Summary: Cockpit Starter Kit Example Module
Summary: Cockpit tailscale
License: LGPLv2+
Source0: https://github.com/cockpit-project/starter-kit/releases/download/%{version}/%{name}-%{version}.tar.xz
Source1: https://github.com/cockpit-project/starter-kit/releases/download/%{version}/%{name}-node-%{version}.tar.xz
Source0: https://github.com/spotsnel/tailscale-cockpit/releases/download/%{version}/%{name}-%{version}.tar.xz
Source1: https://github.com/spotsnel/tailscale-cockpit/releases/download/%{version}/%{name}-node-%{version}.tar.xz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs

View File

@ -2,7 +2,7 @@
# To use this, enable Packit-as-a-service in GitHub: https://packit.dev/docs/packit-as-a-service/
# See https://packit.dev/docs/configuration/ for the format of this file
specfile_path: cockpit-starter-kit.spec
specfile_path: cockpit-tailscale.spec
# use the nicely formatted release description from our upstream release, instead of git shortlog
copy_upstream_release_description: true
@ -12,7 +12,7 @@ srpm_build_deps:
actions:
post-upstream-clone:
- make cockpit-starter-kit.spec
- make cockpit-tailscale.spec
# replace Source1 manually, as create-archive: can't handle multiple tarballs
- make node-cache
- sh -c 'sed -i "/^Source1:/ s/https:.*/$(ls *-node*.tar.xz)/" cockpit-*.spec'

View File

@ -1,22 +1,3 @@
/*
* 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 Cockpit; If not, see <http://www.gnu.org/licenses/>.
*/
import cockpit from 'cockpit';
import React from 'react';
import { Alert } from "@patternfly/react-core/dist/esm/components/Alert/index.js";
@ -37,7 +18,7 @@ export class Application extends React.Component {
render() {
return (
<Card>
<CardTitle>Starter Kit</CardTitle>
<CardTitle>Tailscale</CardTitle>
<CardBody>
<Alert
variant="info"

View File

@ -1,23 +1,7 @@
<!DOCTYPE html>
<!--
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 this package; If not, see <http://www.gnu.org/licenses/>.
-->
<html lang="en">
<head>
<title translate>Cockpit Starter Kit</title>
<title translate>Tailscale</title>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">

View File

@ -1,22 +1,3 @@
/*
* 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 Cockpit; If not, see <http://www.gnu.org/licenses/>.
*/
import "cockpit-dark-theme";
import "patternfly/patternfly-5-cockpit.scss";

View File

@ -5,7 +5,7 @@
"tools": {
"index": {
"label": "Starter Kit"
"label": "Tailscale"
}
}
}