showcase
- v0.2.4
- 37 commits
- 1 branch
- 6 tags
- updated
- CI 2/2
fix: unbroken file tree rules, vendored attrs for language stats
Showing 24 changed files with 121 additions and 77 deletions.
.gitattributesadded
+6 −0
@@ -0,0 +1,6 @@1# Language stats (Gitea reads linguist attributes for the language bar).2# The Gitea themes are copied in, the goldens are test output and the icon3# table is generated, so none of them say what the project is written in.4gitea/** linguist-vendored5testdata/** linguist-vendored6internal/render/icons_gen.go linguist-generated
deploy/compose.yaml
+30 −13
@@ -1,15 +1,32 @@1# code.danieldaum.net: your reverse proxy terminates TLS and forwards to2# 127.0.0.1:8080. Run from this folder, next to config.json.1# showcase at code.danieldaum.net. The reverse proxy terminates TLS and2# forwards to 127.0.0.1:8080. config.json sits next to this file.3# Image: showcase 0.1.0 (linux/amd64 + linux/arm64), pinned by digest.34services:4 showcase:5 image: git.danieldaum.net/daniel/showcase:0.1.06 read_only: true7 cap_drop: [ALL]8 security_opt: ["no-new-privileges:true"]9 volumes:10 - showcase-data:/data11 - ./config.json:/config.json:ro12 ports: ["127.0.0.1:8080:8080"]13 restart: unless-stopped5 showcase:6 image: git.danieldaum.net/daniel/showcase@sha256:e5d3d45006795cbf34f6e43780803f76731a3d1d2b31a8ea7bb333c719399e167 container_name: showcase8 restart: unless-stopped9 ports:10 - "127.0.0.1:8080:8080"1112 volumes:13 - showcase-data:/data14 - ./config.json:/config.json:ro1516 # only /data is writable; no capabilities needed17 read_only: true18 cap_drop:19 - ALL20 security_opt:21 - no-new-privileges:true2223 networks:24 - holonet251426volumes:15 showcase-data:27 showcase-data:28 name: showcase-data2930networks:31 holonet:32 external: true
docs/decisions.md
+19 −0
@@ -786,3 +786,22 @@ allowlist of it.786786 security headers pass through; saturn's `_headers` don't apply to787787 Function responses. Tested with Node in front of a `base_path` build:788788 all 66 pages and their links work through it.789790## Language bar, tree rules and `.env` pages791792- **Language bar:** the bar shows Gitea's numbers as they are. Gitea reads793 linguist attributes, so wrong stats get fixed in the repo being shown,794 not in showcase. This repo's `.gitattributes` marks `gitea/` (copied795 Gitea themes) and `testdata/` (goldens) as vendored and `icons_gen.go`796 as generated. Before that, the themes made showcase read as mostly CSS.797 Gitea recounts on the next push.798- **File tree rules:** the commit message fade (`mask-image`) sits on the799 link inside `.f-msg`, not on the cell. A mask on the cell faded its800 top border too, so each row's rule broke off under the message column.801- **`.env` pages:** `/<repo>/blob/.env` renders and is served like any802 other file. In production, the reverse proxy in front of the container803 answers every path ending in `/.env` with an empty 403 (no showcase804 headers, missing files too), and browsers show that as a blank page. It805 looks like a WAF rule against `.env` leaks (for example CrowdSec's806 `vpatch-env-access`). Fix it there with an exception for this host,807 not by renaming routes in showcase.
testdata/golden/index.html
+3 −3
@@ -21,9 +21,9 @@2121<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">2222<link rel="manifest" href="/static/favicon/site.webmanifest">2323<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">24<link rel="stylesheet" href="/static/style.css?v=3ce5aefbd8">25<script src="/static/theme.js?v=3ce5aefbd8"></script>26<script src="/static/copy.js?v=3ce5aefbd8" defer></script>24<link rel="stylesheet" href="/static/style.css?v=96861d29af">25<script src="/static/theme.js?v=96861d29af"></script>26<script src="/static/copy.js?v=96861d29af" defer></script>2727</head>2828<body>2929<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/blob/README.md.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=3ce5aefbd8">14<script src="/static/theme.js?v=3ce5aefbd8"></script>15<script src="/static/copy.js?v=3ce5aefbd8" defer></script>13<link rel="stylesheet" href="/static/style.css?v=96861d29af">14<script src="/static/theme.js?v=96861d29af"></script>15<script src="/static/copy.js?v=96861d29af" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/blob/big.txt.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=3ce5aefbd8">14<script src="/static/theme.js?v=3ce5aefbd8"></script>15<script src="/static/copy.js?v=3ce5aefbd8" defer></script>13<link rel="stylesheet" href="/static/style.css?v=96861d29af">14<script src="/static/theme.js?v=96861d29af"></script>15<script src="/static/copy.js?v=96861d29af" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/blob/cmd/hello/main.go.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=3ce5aefbd8">14<script src="/static/theme.js?v=3ce5aefbd8"></script>15<script src="/static/copy.js?v=3ce5aefbd8" defer></script>13<link rel="stylesheet" href="/static/style.css?v=96861d29af">14<script src="/static/theme.js?v=96861d29af"></script>15<script src="/static/copy.js?v=96861d29af" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/blob/data.bin.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=3ce5aefbd8">14<script src="/static/theme.js?v=3ce5aefbd8"></script>15<script src="/static/copy.js?v=3ce5aefbd8" defer></script>13<link rel="stylesheet" href="/static/style.css?v=96861d29af">14<script src="/static/theme.js?v=96861d29af"></script>15<script src="/static/copy.js?v=96861d29af" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/blob/docs/logo.png.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=3ce5aefbd8">14<script src="/static/theme.js?v=3ce5aefbd8"></script>15<script src="/static/copy.js?v=3ce5aefbd8" defer></script>13<link rel="stylesheet" href="/static/style.css?v=96861d29af">14<script src="/static/theme.js?v=96861d29af"></script>15<script src="/static/copy.js?v=96861d29af" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/branches/index.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=3ce5aefbd8">14<script src="/static/theme.js?v=3ce5aefbd8"></script>15<script src="/static/copy.js?v=3ce5aefbd8" defer></script>13<link rel="stylesheet" href="/static/style.css?v=96861d29af">14<script src="/static/theme.js?v=96861d29af"></script>15<script src="/static/copy.js?v=96861d29af" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/commit-latest.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=3ce5aefbd8">14<script src="/static/theme.js?v=3ce5aefbd8"></script>15<script src="/static/copy.js?v=3ce5aefbd8" defer></script>13<link rel="stylesheet" href="/static/style.css?v=96861d29af">14<script src="/static/theme.js?v=96861d29af"></script>15<script src="/static/copy.js?v=96861d29af" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/index.html
+3 −3
@@ -11,9 +11,9 @@1111<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1212<link rel="manifest" href="/static/favicon/site.webmanifest">1313<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">14<link rel="stylesheet" href="/static/style.css?v=3ce5aefbd8">15<script src="/static/theme.js?v=3ce5aefbd8"></script>16<script src="/static/copy.js?v=3ce5aefbd8" defer></script>14<link rel="stylesheet" href="/static/style.css?v=96861d29af">15<script src="/static/theme.js?v=96861d29af"></script>16<script src="/static/copy.js?v=96861d29af" defer></script>1717</head>1818<body>1919<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/log/index.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=3ce5aefbd8">14<script src="/static/theme.js?v=3ce5aefbd8"></script>15<script src="/static/copy.js?v=3ce5aefbd8" defer></script>13<link rel="stylesheet" href="/static/style.css?v=96861d29af">14<script src="/static/theme.js?v=96861d29af"></script>15<script src="/static/copy.js?v=96861d29af" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/packages/index.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=3ce5aefbd8">14<script src="/static/theme.js?v=3ce5aefbd8"></script>15<script src="/static/copy.js?v=3ce5aefbd8" defer></script>13<link rel="stylesheet" href="/static/style.css?v=96861d29af">14<script src="/static/theme.js?v=96861d29af"></script>15<script src="/static/copy.js?v=96861d29af" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/pulls/index.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=3ce5aefbd8">14<script src="/static/theme.js?v=3ce5aefbd8"></script>15<script src="/static/copy.js?v=3ce5aefbd8" defer></script>13<link rel="stylesheet" href="/static/style.css?v=96861d29af">14<script src="/static/theme.js?v=96861d29af"></script>15<script src="/static/copy.js?v=96861d29af" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/releases/index.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=3ce5aefbd8">14<script src="/static/theme.js?v=3ce5aefbd8"></script>15<script src="/static/copy.js?v=3ce5aefbd8" defer></script>13<link rel="stylesheet" href="/static/style.css?v=96861d29af">14<script src="/static/theme.js?v=96861d29af"></script>15<script src="/static/copy.js?v=96861d29af" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/tags/index.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=3ce5aefbd8">14<script src="/static/theme.js?v=3ce5aefbd8"></script>15<script src="/static/copy.js?v=3ce5aefbd8" defer></script>13<link rel="stylesheet" href="/static/style.css?v=96861d29af">14<script src="/static/theme.js?v=96861d29af"></script>15<script src="/static/copy.js?v=96861d29af" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/tree/cmd/hello/index.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=3ce5aefbd8">14<script src="/static/theme.js?v=3ce5aefbd8"></script>15<script src="/static/copy.js?v=3ce5aefbd8" defer></script>13<link rel="stylesheet" href="/static/style.css?v=96861d29af">14<script src="/static/theme.js?v=96861d29af"></script>15<script src="/static/copy.js?v=96861d29af" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-a/tree/docs/index.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=3ce5aefbd8">14<script src="/static/theme.js?v=3ce5aefbd8"></script>15<script src="/static/copy.js?v=3ce5aefbd8" defer></script>13<link rel="stylesheet" href="/static/style.css?v=96861d29af">14<script src="/static/theme.js?v=96861d29af"></script>15<script src="/static/copy.js?v=96861d29af" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-b/index.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=3ce5aefbd8">14<script src="/static/theme.js?v=3ce5aefbd8"></script>15<script src="/static/copy.js?v=3ce5aefbd8" defer></script>13<link rel="stylesheet" href="/static/style.css?v=96861d29af">14<script src="/static/theme.js?v=96861d29af"></script>15<script src="/static/copy.js?v=96861d29af" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-b/log/index.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=3ce5aefbd8">14<script src="/static/theme.js?v=3ce5aefbd8"></script>15<script src="/static/copy.js?v=3ce5aefbd8" defer></script>13<link rel="stylesheet" href="/static/style.css?v=96861d29af">14<script src="/static/theme.js?v=96861d29af"></script>15<script src="/static/copy.js?v=96861d29af" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repo-b/releases/index.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=3ce5aefbd8">14<script src="/static/theme.js?v=3ce5aefbd8"></script>15<script src="/static/copy.js?v=3ce5aefbd8" defer></script>13<link rel="stylesheet" href="/static/style.css?v=96861d29af">14<script src="/static/theme.js?v=96861d29af"></script>15<script src="/static/copy.js?v=96861d29af" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
testdata/golden/repos/index.html
+3 −3
@@ -10,9 +10,9 @@1010<link rel="apple-touch-icon" sizes="180x180" href="/static/favicon/apple-touch-icon.png">1111<link rel="manifest" href="/static/favicon/site.webmanifest">1212<link rel="alternate" type="application/atom+xml" title="daniel daum" href="https://danieldaum.net/feed.xml">13<link rel="stylesheet" href="/static/style.css?v=3ce5aefbd8">14<script src="/static/theme.js?v=3ce5aefbd8"></script>15<script src="/static/copy.js?v=3ce5aefbd8" defer></script>13<link rel="stylesheet" href="/static/style.css?v=96861d29af">14<script src="/static/theme.js?v=96861d29af"></script>15<script src="/static/copy.js?v=96861d29af" defer></script>1616</head>1717<body>1818<a class="skip-link" href="#site-main">skip to content</a>
web/static/style.css
+6 −4
@@ -2800,17 +2800,19 @@ a.ci:hover {28002800 color: var(--accent-bright);28012801}280228022803/* commit messages fade out instead of ending in an ellipsis */2803/* commit messages fade out instead of ending in an ellipsis. The mask sits2804 on the text, not the cell, so the row's top border stays unbroken. */28042805.f-msg {28052806 max-width: 0;2806 overflow: hidden;2807 white-space: nowrap;2808 mask-image: linear-gradient(to right, black calc(100% - 4rem), transparent);28092807}2810280828112809.f-msg a,28122810.f-msg span {2811 display: block;2812 overflow: hidden;28132813 color: var(--body-text);2814 white-space: nowrap;2815 mask-image: linear-gradient(to right, black calc(100% - 4rem), transparent);28142816}2815281728162818.f-msg a:hover {