From 4873786e38139bb876968c6f6c0f1066b69a6885 Mon Sep 17 00:00:00 2001 From: Lewis Date: Tue, 30 Jun 2026 20:42:11 +0300 Subject: [PATCH] appview/pages: better spot for profile fx files Lewis: May this revision serve well! --- .gitignore | 1 - appview/pages/{static => }/profile-fx/orrery.js | 2 ++ appview/pages/templates/layouts/profilebase.html | 2 +- nix/pkgs/appview-static-files.nix | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) rename appview/pages/{static => }/profile-fx/orrery.js (98%) diff --git a/.gitignore b/.gitignore index 3bc4f6b5..3b80065c 100644 --- a/.gitignore +++ b/.gitignore @@ -9,7 +9,6 @@ spindle/spindle-microvm-run result !.gitkeep !appview/pages/static/topbar-search.js -!appview/pages/static/profile-fx/ out/ node_modules/ patches diff --git a/appview/pages/static/profile-fx/orrery.js b/appview/pages/profile-fx/orrery.js similarity index 98% rename from appview/pages/static/profile-fx/orrery.js rename to appview/pages/profile-fx/orrery.js index 41837549..76ff7b1d 100644 --- a/appview/pages/static/profile-fx/orrery.js +++ b/appview/pages/profile-fx/orrery.js @@ -37,6 +37,7 @@ const W = [-2, -1, 0, 1, 2].flatMap((ox) => [-2, -1, 0, 1, 2].map((oy) => [ox, o const cn = 28; const cw = 14; +const bc = "aspect-square rounded-full max-w-full max-h-full size-[4px] bg-gray-200 dark:bg-gray-700"; const wq = "(min-width: 768px)"; const dq = "(prefers-color-scheme: dark)"; const rq = "(prefers-reduced-motion: reduce)"; @@ -122,6 +123,7 @@ const w = (arr) => (arr.length <= B ? arr : arr.slice(arr.length - B)); const o = (N, j) => { const f = Array.from(N.children, (c) => c.firstElementChild).filter(Boolean); f.forEach((el) => { + el.className = bc; el.style.transition = "none"; el.style.transformOrigin = "center"; el.style.willChange = "background-color, transform"; diff --git a/appview/pages/templates/layouts/profilebase.html b/appview/pages/templates/layouts/profilebase.html index 0ee3c31b..7a838c12 100644 --- a/appview/pages/templates/layouts/profilebase.html +++ b/appview/pages/templates/layouts/profilebase.html @@ -55,7 +55,7 @@ {{ if .Card.Punchcard }} {{ block "punchcard" .Card.Punchcard }} {{ end }} {{ with .Card.ProfileScript }} - + {{ end }} {{ end }} diff --git a/nix/pkgs/appview-static-files.nix b/nix/pkgs/appview-static-files.nix index 6913e659..d3274e0a 100644 --- a/nix/pkgs/appview-static-files.nix +++ b/nix/pkgs/appview-static-files.nix @@ -31,6 +31,7 @@ runCommandLocal "appview-static-files" { cp -f ${inter-fonts-src}/InterVariable*.ttf fonts/ cp -f ${ibm-plex-mono-src}/fonts/complete/woff2/IBMPlexMono*.woff2 fonts/ cp -f ${actor-typeahead-src}/actor-typeahead.js . + cp -rf ${src}/appview/pages/profile-fx . ${dolly}/bin/dolly -output logos/dolly.png -size 180 ${dolly}/bin/dolly -output logos/dolly.ico -size 48 -- 2.51.2