Add patch to include css-overrides #6
@@ -24,6 +24,7 @@ License: LGPL-2.1-or-later
|
||||
Source: %{name}-%{version}.tar.xz
|
||||
Source10: package-lock.json
|
||||
Source11: node_modules.spec.inc
|
||||
Patch10: load-css-overrides.patch
|
||||
%include %_sourcedir/node_modules.spec.inc
|
||||
BuildArch: noarch
|
||||
%if ! 0%{?suse_version}
|
||||
@@ -54,6 +55,7 @@ A cockpit module for (un)installing packages
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
%patch -P 10 -p1
|
||||
rm -rf node_modules
|
||||
rm -f package-lock.json
|
||||
local-npm-registry %{_sourcedir} install --include=dev --ignore-scripts
|
||||
|
||||
24
load-css-overrides.patch
Normal file
24
load-css-overrides.patch
Normal file
@@ -0,0 +1,24 @@
|
||||
From 77918aef950c352f0d35c8198e8109e398a74396 Mon Sep 17 00:00:00 2001
|
||||
From: Alice Brooks <alice.brooks@suse.com>
|
||||
Date: Thu, 22 May 2025 11:22:23 +0100
|
||||
Subject: [PATCH] Load css overrides
|
||||
|
||||
---
|
||||
src/index.html | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/index.html b/src/index.html
|
||||
index ddf637a..4d49ab3 100644
|
||||
--- a/src/index.html
|
||||
+++ b/src/index.html
|
||||
@@ -23,6 +23,7 @@ along with this package; If not, see <http://www.gnu.org/licenses/>.
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="stylesheet" href="index.css">
|
||||
+ <link href="../../static/css-overrides.css" type="text/css" rel="stylesheet">
|
||||
|
||||
<script type="text/javascript" src="index.js"></script>
|
||||
<script type="text/javascript" src="po.js"></script>
|
||||
--
|
||||
2.49.0
|
||||
|
||||
Reference in New Issue
Block a user