~dricottone/huttese-apk

d1e4e603e350a16d86d177d9f34377a3f649b2b8 — Drew DeVault 3 years ago 60cc12d
gamja: add branding patch
2 files changed, 68 insertions(+), 1 deletions(-)

A sr.ht/gamja/0001-Add-sourcehut-branding-to-chat.sr.ht.patch
M sr.ht/gamja/APKBUILD
A sr.ht/gamja/0001-Add-sourcehut-branding-to-chat.sr.ht.patch => sr.ht/gamja/0001-Add-sourcehut-branding-to-chat.sr.ht.patch +65 -0
@@ 0,0 1,65 @@
From 9ee590d59f68d5ab4f9c8c8a928aea21d8eaffa5 Mon Sep 17 00:00:00 2001
From: Tmpod <tmpod@pm.me>
Date: Mon, 29 Nov 2021 21:27:29 +0000
Subject: [PATCH gamja] Add sourcehut branding to chat.sr.ht

Add "chat.sr.ht" title, to be improved with a gamja patch (for smarter
titles).
Add SVG favicon of sourcehut's white logo.
---
 favicon.svg   |  1 +
 index.html    |  3 ++-
 manifest.json | 12 ++++++++++--
 3 files changed, 13 insertions(+), 3 deletions(-)
 create mode 100644 favicon.svg

diff --git a/favicon.svg b/favicon.svg
new file mode 100644
index 0000000..e94113c
--- /dev/null
+++ b/favicon.svg
@@ -0,0 +1 @@
+<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" d="M256 26C128.944 26 26 128.944 26 256s102.944 230 230 230 230-102.944 230-230S383.056 26 256 26Zm0 415.484C153.52 441.484 70.516 358.48 70.516 256S153.52 70.516 256 70.516 441.484 153.52 441.484 256 358.48 441.484 256 441.484z"/></svg>
diff --git a/index.html b/index.html
index 455a6f2..e957e78 100644
--- a/index.html
+++ b/index.html
@@ -3,11 +3,12 @@
 	<head>
 		<meta charset="utf-8">
 		<meta http-equiv="Content-Security-Policy" content="default-src 'self'; frame-src 'none'; object-src 'none'; connect-src *;">
-		<title>gamja IRC client</title>
+		<title>chat.sr.ht</title>
 		<link rel="stylesheet" href="./style.css">
 		<script type="module" src="./main.js"></script>
 		<meta name="viewport" content="width=device-width, initial-scale=1">
 		<link rel="manifest" href="manifest.json">
+		<link rel="icon" type="image/svg+xml" href="favicon.svg">
 	</head>
 	<body>
 		<noscript>
diff --git a/manifest.json b/manifest.json
index 37ea9bc..abda399 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,7 +1,15 @@
 {
-	"name": "gamja IRC client",
+	"name": "chat.sr.ht",
 	"short_name": "gamja",
 	"start_url": ".",
 	"display": "standalone",
-	"scope": "."
+	"scope": ".",
+	"icons": [
+		{
+			"src": "favicon.svg",
+			"sizes": "512x512",
+			"type": "image/svg+xml",
+			"purpose": "any"
+		}
+	]
 }
-- 
2.34.1


M sr.ht/gamja/APKBUILD => sr.ht/gamja/APKBUILD +3 -1
@@ 2,7 2,7 @@
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=gamja
pkgver=1.0.0_beta1-r13
pkgrel=0
pkgrel=1
pkgdesc="Simple IRC web client"
url="https://sr.ht/~emersion/gamja/"
license="AGPL-3.0"


@@ 13,6 13,7 @@ githash=b1d5f1436ef8a44d48df8b56f5a530827d5ad83f
source="
	$pkgname-$pkgver.tar.gz::https://git.sr.ht/~emersion/gamja/archive/$githash.tar.gz
	0001-Add-custom-chat.sr.ht-noscript-page.patch
	0001-Add-sourcehut-branding-to-chat.sr.ht.patch
"
builddir="$srcdir/$pkgname-$githash"
options="!check" # no test suite


@@ 38,4 39,5 @@ package() {
sha512sums="
ab6b1b979336e464e3b116e7dc609e688807a017076dce046a40951744c84955f683555b5ebb61d148bcf1309d7b7eb4e4f2073685dfc037d6fb72fe33d9855f  gamja-1.0.0_beta1-r13.tar.gz
7ebb5050f197881169ded60f16af23e9adc454b8f607192948ca8a4d36452daaec55aa85b938c61b58bc70fcbbe9f10a99c0f8d436374562edd448df9c63c34a  0001-Add-custom-chat.sr.ht-noscript-page.patch
d76b6f974e5c454621c5b161580ecfa87d366c816d490c2e455ba075823b7002fbea283614ade92c9ac12810945292b1abf0d5daa9fec6ac508ee35d94326d53  0001-Add-sourcehut-branding-to-chat.sr.ht.patch
"