this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Tidy repo

- move ./layout/base.astro to ./Base.astro
- update imports
- remove store which is unused
- fix tsconfig.json
- remove random script tag from Base

+4 -53
-2
src/layouts/base.astro src/Base.astro
··· 95 95 } 96 96 } 97 97 </style> 98 - 99 - <script></script> 100 98 </head> 101 99 <body {...fixDSObj(dataset)} {...body}> 102 100 <slot />
+1 -1
src/pages/404.astro
··· 1 1 --- 2 - import Base from "@/layouts/base.astro"; 2 + import Base from "@/Base.astro"; 3 3 --- 4 4 5 5 <Base title="Page Not Found">
+1 -1
src/pages/blog/[id].astro
··· 1 1 --- 2 - import Base from "@/layouts/base.astro"; 2 + import Base from "@/Base.astro"; 3 3 import { getEntry } from "astro:content"; 4 4 const { id } = Astro.params; 5 5 const r404 = Astro.redirect("/404");
+1 -1
src/pages/blog/index.astro
··· 1 1 --- 2 - import Base from "@/layouts/base.astro"; 2 + import Base from "@/Base.astro"; 3 3 import Rss from "@/assets/rss.svg"; 4 4 import { getCollection } from "astro:content"; 5 5 import Post from "@/components/blog/post.astro";
+1 -1
src/pages/index.astro
··· 1 1 --- 2 2 // import Map from "@/components/map.astro" 3 - import Base from "@/layouts/base.astro"; 3 + import Base from "@/Base.astro"; 4 4 import Map from "@/components/index/map.astro"; 5 5 --- 6 6 <Base title="home">
-46
src/stores/blog.ts
··· 1 - import type { init } from "astro/virtual-modules/prefetch.js"; 2 - import { atom } from "nanostores"; 3 - 4 - export const postPositions = atom<undefined | DOMRect[]>(undefined); 5 - 6 - // utility for helping use this store 7 - export const isOverlapping = (rect1: DOMRect, rect2: DOMRect) => { 8 - return ( 9 - rect1.right > rect2.left && 10 - rect1.left < rect2.right && 11 - rect1.bottom > rect2.top && 12 - rect1.top < rect2.bottom 13 - ); 14 - }; 15 - 16 - export const config = atom<null | { 17 - general: { 18 - maxReccurs: number; 19 - }; 20 - post: { 21 - drift: number; 22 - gap: { 23 - initial: number; 24 - min: number; 25 - max: number; 26 - }; 27 - }; 28 - cable: { 29 - padding: number; 30 - range: number; 31 - width: number; 32 - angle: { 33 - initial: number; 34 - drift: number; 35 - }; 36 - length: { 37 - min: number; 38 - max: number; 39 - }; 40 - }; 41 - balloon: { 42 - width: number; 43 - height: number; 44 - rotation: number; 45 - }; 46 - }>(null);
-1
tsconfig.json
··· 8 8 "paths": { 9 9 "@/*": ["./src/*"] 10 10 }, 11 - "types": ["@cloudflare/workers-types/2023-07-01"] 12 11 } 13 12 }