fix(svg): remove utf-8 bom and add xml declaration for gitea typesniffer [skip ci]
This commit is contained in:
parent
42504c2ff9
commit
6f898088f2
@ -1,4 +1,4 @@
|
|||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
# 🦊 Hey, ich bin Nicki!
|
# 🦊 Hey, ich bin Nicki!
|
||||||
|
|
||||||
|
|||||||
11
heatmap.svg
11
heatmap.svg
@ -1,4 +1,5 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 740 265" width="100%" height="100%">
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 740 265" width="100%" height="100%">
|
||||||
<defs>
|
<defs>
|
||||||
<linearGradient id="foxGrad" x1="0%" y1="0%" x2="100%" y2="100%">
|
<linearGradient id="foxGrad" x1="0%" y1="0%" x2="100%" y2="100%">
|
||||||
<stop offset="0%" stop-color="#d980fa" />
|
<stop offset="0%" stop-color="#d980fa" />
|
||||||
@ -73,7 +74,7 @@
|
|||||||
<text class="title" x="0" y="14">🦊 NickiCloud <tspan font-weight="400" fill="var(--accent)">•</tspan> <tspan font-weight="500" font-size="12" fill="var(--text-sub)">Gitea Activity</tspan></text>
|
<text class="title" x="0" y="14">🦊 NickiCloud <tspan font-weight="400" fill="var(--accent)">•</tspan> <tspan font-weight="500" font-size="12" fill="var(--text-sub)">Gitea Activity</tspan></text>
|
||||||
<rect x="510" y="0" width="190" height="22" rx="11" fill="var(--metric-bg)" stroke="var(--metric-border)" stroke-width="1" />
|
<rect x="510" y="0" width="190" height="22" rx="11" fill="var(--metric-bg)" stroke="var(--metric-border)" stroke-width="1" />
|
||||||
<circle cx="522" cy="11" r="4" fill="var(--accent)" />
|
<circle cx="522" cy="11" r="4" fill="var(--accent)" />
|
||||||
<text class="subtitle" x="532" y="15" font-weight="600">22 Commits im letzten Jahr</text>
|
<text class="subtitle" x="532" y="15" font-weight="600">23 Commits im letzten Jahr</text>
|
||||||
</g>
|
</g>
|
||||||
<!-- Month Labels -->
|
<!-- Month Labels -->
|
||||||
<text class="lbl-month" x="34" y="54">Sep</text>
|
<text class="lbl-month" x="34" y="54">Sep</text>
|
||||||
@ -1171,8 +1172,8 @@
|
|||||||
<rect class="cell lvl-3" x="697" y="77" width="10" height="10" rx="2" style="animation-delay: 612ms;">
|
<rect class="cell lvl-3" x="697" y="77" width="10" height="10" rx="2" style="animation-delay: 612ms;">
|
||||||
<title>01.09.2026: 9 Commits</title>
|
<title>01.09.2026: 9 Commits</title>
|
||||||
</rect>
|
</rect>
|
||||||
<rect class="cell lvl-2" x="697" y="90" width="10" height="10" rx="2" style="animation-delay: 612ms;">
|
<rect class="cell lvl-3" x="697" y="90" width="10" height="10" rx="2" style="animation-delay: 612ms;">
|
||||||
<title>02.09.2026: 6 Commits</title>
|
<title>02.09.2026: 7 Commits</title>
|
||||||
</rect>
|
</rect>
|
||||||
<rect class="cell lvl-0" x="697" y="103" width="10" height="10" rx="2" style="animation-delay: 612ms;">
|
<rect class="cell lvl-0" x="697" y="103" width="10" height="10" rx="2" style="animation-delay: 612ms;">
|
||||||
<title>03.09.2026: 0 Commits</title>
|
<title>03.09.2026: 0 Commits</title>
|
||||||
@ -1191,7 +1192,7 @@
|
|||||||
<g transform="translate(34, 166)">
|
<g transform="translate(34, 166)">
|
||||||
<rect width="216" height="36" rx="8" fill="var(--metric-bg)" stroke="var(--metric-border)" stroke-width="1" />
|
<rect width="216" height="36" rx="8" fill="var(--metric-bg)" stroke="var(--metric-border)" stroke-width="1" />
|
||||||
<text x="12" y="23" font-size="16">📦</text>
|
<text x="12" y="23" font-size="16">📦</text>
|
||||||
<text class="stat-val" x="38" y="17">22</text>
|
<text class="stat-val" x="38" y="17">23</text>
|
||||||
<text class="stat-lbl" x="38" y="29">Jahres-Beiträge</text>
|
<text class="stat-lbl" x="38" y="29">Jahres-Beiträge</text>
|
||||||
</g>
|
</g>
|
||||||
<g transform="translate(264, 166)">
|
<g transform="translate(264, 166)">
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 63 KiB |
@ -71,7 +71,8 @@ internal static class Program
|
|||||||
{
|
{
|
||||||
Directory.CreateDirectory(svgDir);
|
Directory.CreateDirectory(svgDir);
|
||||||
}
|
}
|
||||||
await File.WriteAllTextAsync(svgPath, svgContent, Encoding.UTF8);
|
var utf8WithoutBom = new UTF8Encoding(false);
|
||||||
|
await File.WriteAllTextAsync(svgPath, svgContent, utf8WithoutBom);
|
||||||
Console.WriteLine($"[SVG] Saved successfully to: {svgPath}");
|
Console.WriteLine($"[SVG] Saved successfully to: {svgPath}");
|
||||||
|
|
||||||
// Step 4: Inject latest repos into README.md
|
// Step 4: Inject latest repos into README.md
|
||||||
|
|||||||
@ -63,7 +63,8 @@ public static class ReadmeInjector
|
|||||||
|
|
||||||
var newContent = content.Substring(0, startIndex) + replacement + content.Substring(endIndex + EndMarker.Length);
|
var newContent = content.Substring(0, startIndex) + replacement + content.Substring(endIndex + EndMarker.Length);
|
||||||
|
|
||||||
File.WriteAllText(readmePath, newContent, Encoding.UTF8);
|
var utf8WithoutBom = new UTF8Encoding(false);
|
||||||
|
File.WriteAllText(readmePath, newContent, utf8WithoutBom);
|
||||||
Console.WriteLine($"[README] Successfully injected {repos.Count} repositories into {readmePath}");
|
Console.WriteLine($"[README] Successfully injected {repos.Count} repositories into {readmePath}");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,6 +23,7 @@ public static class SvgGenerator
|
|||||||
const int cellGap = 3;
|
const int cellGap = 3;
|
||||||
const int colStep = cellSize + cellGap; // 13px
|
const int colStep = cellSize + cellGap; // 13px
|
||||||
|
|
||||||
|
sb.AppendLine("""<?xml version="1.0" encoding="utf-8"?>""");
|
||||||
sb.AppendLine($"""<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 {svgWidth} {svgHeight}" width="100%" height="100%">""");
|
sb.AppendLine($"""<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 {svgWidth} {svgHeight}" width="100%" height="100%">""");
|
||||||
sb.AppendLine(" <defs>");
|
sb.AppendLine(" <defs>");
|
||||||
sb.AppendLine(" <linearGradient id=\"foxGrad\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">");
|
sb.AppendLine(" <linearGradient id=\"foxGrad\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user