Compare commits

..

7 commits

Author SHA1 Message Date
ari
5fbb29f7fb
Distance tweaks for hidden loads 2025-04-21 23:32:59 -04:00
ari
dc3039ef8b
Updated config documentation 2025-04-21 23:11:17 -04:00
ari
9a2ea50420
Fix typescript and svelte warnings 2025-04-21 22:56:12 -04:00
ari
bba230920b
Change post load amount 2025-04-21 21:21:50 -04:00
ari
eeea306303
remove legacy stuff 2025-04-21 21:15:44 -04:00
ari
f00e063861
Frontend works 2025-04-21 20:41:01 -04:00
ari
6ca0a971f6
At a glance, the fetch mechanism works 2025-04-21 19:43:43 -04:00
4 changed files with 8 additions and 15 deletions

View file

@ -44,9 +44,7 @@ we use our own CI/CD workflow at [`.forgejo/workflows/deploy.yaml`](.forgejo/wor
## theming ## theming
the colors are designated in [`src/app.css`](src/app.css) as variables, go crazy with them currently the only way to theme the app is to edit css in the components directly, glhf
the rest is done by editing the css files and style tags directly, good luck
relevant files: relevant files:

View file

@ -24,10 +24,11 @@ export class Config {
static readonly MAX_POSTS: number = 20; static readonly MAX_POSTS: number = 20;
/** /**
* Footer text for the dashboard, you probably want to change this * Footer text for the dashboard
* @default "Astrally projected from witchcraft.systems"
*/ */
static readonly FOOTER_TEXT: string = static readonly FOOTER_TEXT: string =
"Astrally projected from <a href='https://witchcraft.systems' target='_blank'>witchcraft.systems</a><br><br><a href='https://git.witchcraft.systems/scientific-witchery/pds-dash' target='_blank'>Source</a> (<a href='https://github.com/witchcraft-systems/pds-dash/' target='_blank'>github mirror</a>)"; "Astrally projected from <a href='https://witchcraft.systems' target='_blank'>witchcraft.systems</a>";
/** /**
* Whether to show the posts that are in the future * Whether to show the posts that are in the future

View file

@ -16,11 +16,7 @@
}); });
}); });
// Infinite loading function // Infinite loading function
const onInfinite = ({ const onInfinite = ({ detail: { loaded, complete } } : { detail : { loaded : () => void, complete : () => void}}) => {
detail: { loaded, complete },
}: {
detail: { loaded: () => void; complete: () => void };
}) => {
getNextPosts().then((newPosts) => { getNextPosts().then((newPosts) => {
console.log("Loading next posts..."); console.log("Loading next posts...");
if (newPosts.length > 0) { if (newPosts.length > 0) {
@ -57,7 +53,9 @@
{#each posts as postObject} {#each posts as postObject}
<PostComponent post={postObject as Post} /> <PostComponent post={postObject as Post} />
{/each} {/each}
<InfiniteLoading on:infinite={onInfinite} distance={3000} /> <InfiniteLoading on:infinite={onInfinite}
distance={3000}
/>
<div id="spacer"></div> <div id="spacer"></div>
</div> </div>
</div> </div>

View file

@ -213,10 +213,6 @@
#postText { #postText {
margin: 0; margin: 0;
padding: 0; padding: 0;
overflow-wrap: break-word;
word-wrap: normal;
word-break: break-word;
hyphens: none;
} }
#headerText { #headerText {
margin-left: 10px; margin-left: 10px;