From 10431bd8f5ff71690ae4e5444e8d7894fd401ae5 Mon Sep 17 00:00:00 2001 From: eltrac Date: Tue, 7 Apr 2026 14:53:17 +0800 Subject: chore: move templates out of site repo --- static/_headers | 10 --- static/apple-touch-icon.png | Bin 2980 -> 0 bytes static/atom.xsl.xml | 37 --------- static/favicon.ico | Bin 200116 -> 0 bytes static/favicon.png | Bin 2980 -> 0 bytes static/graph.html | 80 -------------------- static/icons/codeberg.svg | 164 ---------------------------------------- static/icons/enwiktionary.svg | 1 - static/icons/etymonline.jpg | Bin 1589 -> 0 bytes static/icons/external.svg | 7 -- static/icons/forgejo.svg | 1 - static/icons/gatus.svg | 1 - static/icons/github.svg | 19 ----- static/icons/music/apple.png | Bin 2819 -> 0 bytes static/icons/music/bandcamp.png | Bin 1021 -> 0 bytes static/icons/music/netease.png | Bin 1188 -> 0 bytes static/icons/music/spotify.png | Bin 2599 -> 0 bytes static/icons/music/tidal.png | Bin 587 -> 0 bytes static/icons/rss.svg | 11 --- static/icons/wikipedia.svg | 2 - static/img/bat.svg | 6 -- static/img/clockwork.svg | 6 -- static/img/coffee.svg | 2 - static/img/comments.svg | 16 ---- static/img/crow.svg | 6 -- static/img/fediverse.png | Bin 98385 -> 0 bytes static/img/ghost-window.svg | 59 --------------- static/img/github.svg | 2 - static/img/heart-organ.svg | 2 - static/img/mention.svg | 37 --------- static/img/potted-skeleton.svg | 61 --------------- static/img/rss.svg | 13 ---- static/img/thumbs-down.png | Bin 1600 -> 0 bytes static/js/libra.min.js | 2 - 34 files changed, 545 deletions(-) delete mode 100644 static/_headers delete mode 100644 static/apple-touch-icon.png delete mode 100644 static/atom.xsl.xml delete mode 100644 static/favicon.ico delete mode 100644 static/favicon.png delete mode 100644 static/graph.html delete mode 100644 static/icons/codeberg.svg delete mode 100644 static/icons/enwiktionary.svg delete mode 100644 static/icons/etymonline.jpg delete mode 100644 static/icons/external.svg delete mode 100644 static/icons/forgejo.svg delete mode 100644 static/icons/gatus.svg delete mode 100644 static/icons/github.svg delete mode 100644 static/icons/music/apple.png delete mode 100644 static/icons/music/bandcamp.png delete mode 100644 static/icons/music/netease.png delete mode 100644 static/icons/music/spotify.png delete mode 100644 static/icons/music/tidal.png delete mode 100644 static/icons/rss.svg delete mode 100644 static/icons/wikipedia.svg delete mode 100644 static/img/bat.svg delete mode 100644 static/img/clockwork.svg delete mode 100644 static/img/coffee.svg delete mode 100644 static/img/comments.svg delete mode 100644 static/img/crow.svg delete mode 100644 static/img/fediverse.png delete mode 100644 static/img/ghost-window.svg delete mode 100644 static/img/github.svg delete mode 100644 static/img/heart-organ.svg delete mode 100644 static/img/mention.svg delete mode 100644 static/img/potted-skeleton.svg delete mode 100644 static/img/rss.svg delete mode 100644 static/img/thumbs-down.png delete mode 100644 static/js/libra.min.js (limited to 'static') diff --git a/static/_headers b/static/_headers deleted file mode 100644 index 96b3e133..00000000 --- a/static/_headers +++ /dev/null @@ -1,10 +0,0 @@ -/cal-heatmap.json - Access-Control-Allow-Origin: * - Access-Control-Allow-Methods: GET, POST, OPTIONS - Access-Control-Allow-Headers: * - Cross-Origin-Resource-Policy: cross-origin -/favicon.png - Access-Control-Allow-Origin: * - Access-Control-Allow-Methods: GET, POST, OPTIONS - Access-Control-Allow-Headers: * - Cross-Origin-Resource-Policy: cross-origin diff --git a/static/apple-touch-icon.png b/static/apple-touch-icon.png deleted file mode 100644 index 04dd1341..00000000 Binary files a/static/apple-touch-icon.png and /dev/null differ diff --git a/static/atom.xsl.xml b/static/atom.xsl.xml deleted file mode 100644 index 40604bdc..00000000 --- a/static/atom.xsl.xml +++ /dev/null @@ -1,37 +0,0 @@ -<xsl:value-of select="$title"/>

- This RSS feed for the - - website. -



\ No newline at end of file diff --git a/static/favicon.ico b/static/favicon.ico deleted file mode 100644 index 1b116908..00000000 Binary files a/static/favicon.ico and /dev/null differ diff --git a/static/favicon.png b/static/favicon.png deleted file mode 100644 index 04dd1341..00000000 Binary files a/static/favicon.png and /dev/null differ diff --git a/static/graph.html b/static/graph.html deleted file mode 100644 index 9cc77cbc..00000000 --- a/static/graph.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - Page Link Graph - - - - -
- - - diff --git a/static/icons/codeberg.svg b/static/icons/codeberg.svg deleted file mode 100644 index 028b729f..00000000 --- a/static/icons/codeberg.svg +++ /dev/null @@ -1,164 +0,0 @@ - - - Codeberg logo - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - Codeberg logo - - - - Robert Martinez - - - - - Codeberg and the Codeberg Logo are trademarks of Codeberg e.V. - - - 2020-04-09 - - - Codeberg e.V. - - - codeberg.org - - - - - - - - - - - - - diff --git a/static/icons/enwiktionary.svg b/static/icons/enwiktionary.svg deleted file mode 100644 index d239d73d..00000000 --- a/static/icons/enwiktionary.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static/icons/etymonline.jpg b/static/icons/etymonline.jpg deleted file mode 100644 index 27dd47a7..00000000 Binary files a/static/icons/etymonline.jpg and /dev/null differ diff --git a/static/icons/external.svg b/static/icons/external.svg deleted file mode 100644 index e7290003..00000000 --- a/static/icons/external.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/static/icons/forgejo.svg b/static/icons/forgejo.svg deleted file mode 100644 index 804b05e2..00000000 --- a/static/icons/forgejo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static/icons/gatus.svg b/static/icons/gatus.svg deleted file mode 100644 index 52cc2b84..00000000 --- a/static/icons/gatus.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/static/icons/github.svg b/static/icons/github.svg deleted file mode 100644 index 2dfec51e..00000000 --- a/static/icons/github.svg +++ /dev/null @@ -1,19 +0,0 @@ - - - - - github [#142] - Created with Sketch. - - - - - - - - - - - - - \ No newline at end of file diff --git a/static/icons/music/apple.png b/static/icons/music/apple.png deleted file mode 100644 index 834dc364..00000000 Binary files a/static/icons/music/apple.png and /dev/null differ diff --git a/static/icons/music/bandcamp.png b/static/icons/music/bandcamp.png deleted file mode 100644 index 652fdd8d..00000000 Binary files a/static/icons/music/bandcamp.png and /dev/null differ diff --git a/static/icons/music/netease.png b/static/icons/music/netease.png deleted file mode 100644 index 6f26d9bd..00000000 Binary files a/static/icons/music/netease.png and /dev/null differ diff --git a/static/icons/music/spotify.png b/static/icons/music/spotify.png deleted file mode 100644 index abc5f12f..00000000 Binary files a/static/icons/music/spotify.png and /dev/null differ diff --git a/static/icons/music/tidal.png b/static/icons/music/tidal.png deleted file mode 100644 index 41cf7d61..00000000 Binary files a/static/icons/music/tidal.png and /dev/null differ diff --git a/static/icons/rss.svg b/static/icons/rss.svg deleted file mode 100644 index d5698927..00000000 --- a/static/icons/rss.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/static/icons/wikipedia.svg b/static/icons/wikipedia.svg deleted file mode 100644 index e694aada..00000000 --- a/static/icons/wikipedia.svg +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/static/img/bat.svg b/static/img/bat.svg deleted file mode 100644 index 0ca422e1..00000000 --- a/static/img/bat.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - -batwings - - \ No newline at end of file diff --git a/static/img/clockwork.svg b/static/img/clockwork.svg deleted file mode 100644 index 5c3db302..00000000 --- a/static/img/clockwork.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - -clockwork - - \ No newline at end of file diff --git a/static/img/coffee.svg b/static/img/coffee.svg deleted file mode 100644 index e3633def..00000000 --- a/static/img/coffee.svg +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/static/img/comments.svg b/static/img/comments.svg deleted file mode 100644 index 8860c78e..00000000 --- a/static/img/comments.svg +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/static/img/crow.svg b/static/img/crow.svg deleted file mode 100644 index dca15f56..00000000 --- a/static/img/crow.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - -raven - - \ No newline at end of file diff --git a/static/img/fediverse.png b/static/img/fediverse.png deleted file mode 100644 index 2d1f62e8..00000000 Binary files a/static/img/fediverse.png and /dev/null differ diff --git a/static/img/ghost-window.svg b/static/img/ghost-window.svg deleted file mode 100644 index 3a4c0a94..00000000 --- a/static/img/ghost-window.svg +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/static/img/github.svg b/static/img/github.svg deleted file mode 100644 index a285af8b..00000000 --- a/static/img/github.svg +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/static/img/heart-organ.svg b/static/img/heart-organ.svg deleted file mode 100644 index 0b218639..00000000 --- a/static/img/heart-organ.svg +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/static/img/mention.svg b/static/img/mention.svg deleted file mode 100644 index de633fc2..00000000 --- a/static/img/mention.svg +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/static/img/potted-skeleton.svg b/static/img/potted-skeleton.svg deleted file mode 100644 index deb65179..00000000 --- a/static/img/potted-skeleton.svg +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/static/img/rss.svg b/static/img/rss.svg deleted file mode 100644 index ffa0ed3f..00000000 --- a/static/img/rss.svg +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/static/img/thumbs-down.png b/static/img/thumbs-down.png deleted file mode 100644 index 37fdbafe..00000000 Binary files a/static/img/thumbs-down.png and /dev/null differ diff --git a/static/js/libra.min.js b/static/js/libra.min.js deleted file mode 100644 index 720dfcd1..00000000 --- a/static/js/libra.min.js +++ /dev/null @@ -1,2 +0,0 @@ -let t={selector:"[data-libra]",margin:50,zeroMarginBreakpoint:768,offset:{x:0,y:0},transitionDuration:200,imageCursor:"zoom-in"};class e{constructor(){let e=document.createElement("div");return e.id="libra-overlay",e.classList.add("libra-overlay","libra-hidden"),e.style.transitionDuration=t.transitionDuration+"ms",this.element=e,document.body.appendChild(e),this}show(){this.element.classList.remove("libra-hidden"),this.element.classList.add("libra-visible")}hide(){this.element.classList.remove("libra-visible"),this.element.classList.add("libra-hidden")}}class i{static calculateFinalState(e){let i={},s=t.margin;window.innerWidth<=t.zeroMarginBreakpoint&&(s=0);let n=e.naturalWidth,o=e.naturalHeight,l=n/o,r=window.innerWidth-2*s,a=window.innerHeight-2*s;return i.width=n>r?r:n,i.height=n>r?r/l:o,i.height>a&&(i.height=a,i.width=a*l),i.top=(a-i.height)/2+window.scrollY+s+t.offset.y,i.left=(r-i.width)/2+window.scrollX+s+t.offset.x,i}static transformMatrix(t,e,i){let s=i.width/e.width,n=i.height/e.height,o=e.left+e.width/2,l=e.top+e.height/2,r=i.left+i.width/2,a=i.top+i.height/2;t.style.transform=`matrix(${s}, 0, 0, ${n}, ${r-o}, ${a-l})`}static resetTransformMatrix(t){t.style.transform="matrix(1, 0, 0, 1, 0, 0)"}}class s{isOpen=!1;constructor(t){return this.original=t,this.fetchOriginalPosition(),this.create(t),this}create(e){let i=document.createElement("img");i.src=e.src,i.id=`libra-shadow-${e.id}`,i.classList.add("libra-shadow"),i.style.transitionDuration=t.transitionDuration+"ms",this.element=i,this.positionShadow(),this.placeItself()}fetchOriginalPosition(){let e=this.original.getBoundingClientRect();this.originalPosition={top:e.top+window.scrollY+t.offset.y,left:e.left+window.scrollX+t.offset.x,width:e.width,height:e.height}}positionShadow(){this.element.style.top=this.originalPosition.top+"px",this.element.style.left=this.originalPosition.left+"px",this.element.style.width=this.originalPosition.width+"px",this.element.style.height=this.originalPosition.height+"px"}open(){this.isOpen=!0,this.element.classList.add("open"),this.fetchOriginalPosition(),this.positionShadow(),this.original.style.visibility="hidden",document.body.contains(this.element)||this.placeItself();let t=()=>i.transformMatrix(this.element,this.originalPosition,i.calculateFinalState(this.element));0===this.element.naturalWidth||0===this.element.naturalHeight?this.element.addEventListener("load",t,{once:!0}):t()}close(){this.isOpen=!1,this.element.classList.remove("open"),i.resetTransformMatrix(this.element),setTimeout(()=>{this.original.style.visibility="visible",this.destroyItself()},t.transitionDuration)}placeItself(){document.body.appendChild(this.element)}destroyItself(){document.body.contains(this.element)&&document.body.removeChild(this.element)}}class n{currentImage=null;shadows={};constructor(e){!function t(e,i){for(let s in i)"object"!=typeof i[s]||null===i[s]||Array.isArray(i[s])?e[s]=i[s]:(e[s]||(e[s]={}),t(e[s],i[s]));return e}(t,e),this.initOverlay(),this.initImages(),this.initControls()}initOverlay(){this.overlay=new e,this.overlay.element.addEventListener("click",()=>{this.closeCurrent()})}initImages(){this.images=document.querySelectorAll(t.selector),this.images.forEach(e=>{"IMG"===e.tagName&&(e.id=crypto.randomUUID(),e.style.cursor=t.imageCursor,e.addEventListener("click",()=>this.open(e)))})}initControls(){document.addEventListener("keydown",t=>{("Escape"===t.key||" "===t.key)&&this.closeCurrent()}),document.body.addEventListener("wheel",t=>this.closeCurrent()),document.body.addEventListener("touchmove",t=>this.closeCurrent())}open(t){this.currentImage=t;let e=this.shadows[t.id]||new s(t);this.shadows[t.id]||(this.shadows[t.id]=e),e.open(),this.overlay.show()}close(t){this.currentImage=null,this.shadows[t.id]&&(this.shadows[t.id].close(),this.overlay.hide())}closeCurrent(){this.currentImage&&this.close(this.currentImage)}}export{n as default}; -//# sourceMappingURL=libra.min.js.map -- cgit v1.2.3