diff --git a/svelte-app/src/components/bullet-point.svelte b/svelte-app/src/components/bullet-point.svelte index dcb8a1c36..c89212cf7 100644 --- a/svelte-app/src/components/bullet-point.svelte +++ b/svelte-app/src/components/bullet-point.svelte @@ -1,12 +1,12 @@ -
+ diff --git a/svelte-app/src/components/context-menu/menu.ts b/svelte-app/src/components/context-menu/menu.ts deleted file mode 100644 index 108b2fd1a..000000000 --- a/svelte-app/src/components/context-menu/menu.ts +++ /dev/null @@ -1,3 +0,0 @@ -const key = {}; - -export { key }; diff --git a/svelte-app/src/components/context-menu/option.svelte b/svelte-app/src/components/context-menu/option.svelte deleted file mode 100644 index 030571df2..000000000 --- a/svelte-app/src/components/context-menu/option.svelte +++ /dev/null @@ -1,56 +0,0 @@ - - - -
{ - if (e.code === 'Enter' || e.code === 'Space') { - handleClick(); - } - }} - > - {#if text !== ''} -
- -
-

- {text} -

- {:else} - - {/if} -
-
diff --git a/svelte-app/src/components/document/content/content.svelte b/svelte-app/src/components/document/content/content.svelte index 7480a30fe..96f84948e 100644 --- a/svelte-app/src/components/document/content/content.svelte +++ b/svelte-app/src/components/document/content/content.svelte @@ -1,14 +1,14 @@ diff --git a/svelte-app/src/components/document/content/common/footer.svelte b/svelte-app/src/components/document/content/footer.svelte similarity index 90% rename from svelte-app/src/components/document/content/common/footer.svelte rename to svelte-app/src/components/document/content/footer.svelte index 5a029dd26..313e2553a 100644 --- a/svelte-app/src/components/document/content/common/footer.svelte +++ b/svelte-app/src/components/document/content/footer.svelte @@ -17,9 +17,9 @@

{$t('Links')}

- + - {'github/' + data.github.split('github.com/')?.[1]} + {'github.com/' + data.github.split('github.com/')?.[1]}
diff --git a/svelte-app/src/components/document/content/common/header.svelte b/svelte-app/src/components/document/content/header.svelte similarity index 82% rename from svelte-app/src/components/document/content/common/header.svelte rename to svelte-app/src/components/document/content/header.svelte index 1aaa7ef7d..e2745941d 100644 --- a/svelte-app/src/components/document/content/common/header.svelte +++ b/svelte-app/src/components/document/content/header.svelte @@ -15,7 +15,7 @@ import type { PostDocument, ProjectDocument, ProjectImage, PTBlock } from '$types'; export let data: PostDocument | ProjectDocument, - images: ProjectImage[] | undefined, + images: ProjectImage[] | undefined = undefined, model = data._type; const readingTime = getReadingTime(getTotalWords((data?.body ?? []) as PTBlock[])); @@ -39,8 +39,14 @@

- {$t('{views} views', { views: $parseViews(data.views) })} + {$t('{views} views', { views: $parseViews((data.views ?? 0) + 1) })}

+ {#if data._type === 'project' && data.githubStars !== undefined && data.githubStars > 0} + +

+ {$t('{stars} stars', { stars: $parseViews(data.githubStars) })} +

+ {/if}