forked from Fijxu/anubis-patches
change default background color
This commit is contained in:
parent
72f667ca05
commit
acc84d8d39
2 changed files with 54 additions and 54 deletions
|
@ -1,54 +0,0 @@
|
|||
From 358d023e544dd83cc1f1161b80e1087f7dc4d74e Mon Sep 17 00:00:00 2001
|
||||
From: Fijxu <fijxu@nadeko.net>
|
||||
Date: Sun, 30 Mar 2025 00:21:19 -0300
|
||||
Subject: [PATCH] web/js: add project license
|
||||
|
||||
---
|
||||
web/build.sh | 30 +++++++++++++++++++++++++++++-
|
||||
1 file changed, 29 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/web/build.sh b/web/build.sh
|
||||
index 70492d7..c898baa 100755
|
||||
--- a/web/build.sh
|
||||
+++ b/web/build.sh
|
||||
@@ -4,7 +4,35 @@ set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
-esbuild js/main.mjs --sourcemap --bundle --minify --outfile=static/js/main.mjs
|
||||
+LICENSE='/*
|
||||
+@licstart The following is the entire license notice for the
|
||||
+JavaScript code in this page.
|
||||
+
|
||||
+Copyright (c) 2025 Xe Iaso <me@xeiaso.net>
|
||||
+
|
||||
+Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
+of this software and associated documentation files (the "Software"), to deal
|
||||
+in the Software without restriction, including without limitation the rights
|
||||
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
+copies of the Software, and to permit persons to whom the Software is
|
||||
+furnished to do so, subject to the following conditions:
|
||||
+
|
||||
+The above copyright notice and this permission notice shall be included in
|
||||
+all copies or substantial portions of the Software.
|
||||
+
|
||||
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
+THE SOFTWARE.
|
||||
+
|
||||
+@licend The above is the entire license notice
|
||||
+for the JavaScript code in this page.
|
||||
+*/'
|
||||
+
|
||||
+esbuild js/main.mjs --sourcemap --bundle --minify --outfile=static/js/main.mjs "--banner:js=${LICENSE}"
|
||||
gzip -f -k static/js/main.mjs
|
||||
zstd -f -k --ultra -22 static/js/main.mjs
|
||||
brotli -fZk static/js/main.mjs
|
||||
\ No newline at end of file
|
||||
--
|
||||
2.49.0
|
||||
|
54
patches/0001-xess-change-default-background-color.patch
Normal file
54
patches/0001-xess-change-default-background-color.patch
Normal file
|
@ -0,0 +1,54 @@
|
|||
From 41e56a7922608b27ec50c35591223ea71afedad8 Mon Sep 17 00:00:00 2001
|
||||
From: Fijxu <fijxu@nadeko.net>
|
||||
Date: Sun, 30 Mar 2025 01:06:20 -0300
|
||||
Subject: [PATCH] xess: change default background color
|
||||
|
||||
---
|
||||
web/index_templ.go | 4 ++--
|
||||
xess/xess.css | 4 ++--
|
||||
2 files changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/web/index_templ.go b/web/index_templ.go
|
||||
index 2e3ac49..eb99b3a 100644
|
||||
--- a/web/index_templ.go
|
||||
+++ b/web/index_templ.go
|
||||
@@ -251,7 +251,7 @@ func bench() templ.Component {
|
||||
templ_7745c5c3_Var13, templ_7745c5c3_Err = templ.JoinStringErrs("/.within.website/x/cmd/anubis/static/img/pensive.webp?cacheBuster=" +
|
||||
anubis.Version)
|
||||
if templ_7745c5c3_Err != nil {
|
||||
- return templ.Error{Err: templ_7745c5c3_Err, FileName: `index.templ`, Line: 247, Col: 19}
|
||||
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `index.templ`, Line: 148, Col: 19}
|
||||
}
|
||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var13))
|
||||
if templ_7745c5c3_Err != nil {
|
||||
@@ -264,7 +264,7 @@ func bench() templ.Component {
|
||||
var templ_7745c5c3_Var14 string
|
||||
templ_7745c5c3_Var14, templ_7745c5c3_Err = templ.JoinStringErrs("/.within.website/x/cmd/anubis/static/js/bench.mjs?cacheBuster=" + anubis.Version)
|
||||
if templ_7745c5c3_Err != nil {
|
||||
- return templ.Error{Err: templ_7745c5c3_Err, FileName: `index.templ`, Line: 250, Col: 118}
|
||||
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `index.templ`, Line: 151, Col: 118}
|
||||
}
|
||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var14))
|
||||
if templ_7745c5c3_Err != nil {
|
||||
diff --git a/xess/xess.css b/xess/xess.css
|
||||
index 86cbd42..94c7deb 100644
|
||||
--- a/xess/xess.css
|
||||
+++ b/xess/xess.css
|
||||
@@ -33,12 +33,12 @@ main {
|
||||
}
|
||||
|
||||
body {
|
||||
- background: #1d2021;
|
||||
+ background: #181818;
|
||||
color: #f9f5d7;
|
||||
}
|
||||
|
||||
pre {
|
||||
- background-color: #3c3836;
|
||||
+ background-color: #181818;
|
||||
padding: 1em;
|
||||
border: 0;
|
||||
font-family: Iosevka Curly Iaso, monospace;
|
||||
--
|
||||
2.49.0
|
||||
|
Loading…
Add table
Reference in a new issue