Audit + refactor: guard image decode/surface, clamp scrim & font size, Lazy typeface, dedupe backdrop lookup, drop unwired special-views scaffold

This commit is contained in:
flan
2026-07-19 19:58:23 +00:00
parent 4260b8cb7e
commit 7e17023260
10 changed files with 249 additions and 103 deletions
+17
View File
@@ -0,0 +1,17 @@
import sys, json, urllib.request
GITEA="https://git.onetick.ninja/api/v1"
token=sys.stdin.readline().strip()
def g(path):
r=urllib.request.Request(GITEA+path, headers={"Authorization":f"token {token}"})
with urllib.request.urlopen(r,timeout=20) as x: return json.loads(x.read())
repos=[r["name"] for r in g("/users/flan/repos?limit=50") if not r["private"]]
for name in repos:
try: pm=g(f"/repos/flan/{name}/push_mirrors")
except Exception: pm=[]
try: topics=g(f"/repos/flan/{name}/topics").get("topics",[])
except Exception: topics=[]
if pm:
for m in pm:
print(f"[MIRROR] {name:26s} -> {m.get('remote_address')} sync_on_commit={m.get('sync_on_commit')} topics={topics}")
else:
print(f" {name:26s} topics={topics}")