{formatDate(article.date)}
-{article.title}
-{article.author.name}
-{article.author.role}
+ {:else} +{formatDate(article.date)}
+{article.title}
+{article.author.name}
+{article.author.role}
+Error loading content
+ {/if}diff --git a/new-web/bun.lockb b/new-web/bun.lockb
index ba3cab1..7be06bd 100755
Binary files a/new-web/bun.lockb and b/new-web/bun.lockb differ
diff --git a/new-web/package.json b/new-web/package.json
index 06900bc..060c3ff 100644
--- a/new-web/package.json
+++ b/new-web/package.json
@@ -12,47 +12,47 @@
"format": "prettier --write ."
},
"devDependencies": {
- "@iconify-json/heroicons": "^1.2.1",
- "@iconify-json/heroicons-outline": "^1.2.0",
- "@iconify-json/mage": "^1.2.1",
- "@iconify-json/mdi": "^1.2.1",
- "@iconify-json/simple-icons": "^1.2.12",
- "@iconify-json/teenyicons": "^1.2.1",
- "@shikijs/rehype": "^1.24.2",
+ "@iconify-json/heroicons": "^1.2.2",
+ "@iconify-json/heroicons-outline": "^1.2.1",
+ "@iconify-json/mage": "^1.2.2",
+ "@iconify-json/mdi": "^1.2.3",
+ "@iconify-json/simple-icons": "^1.2.21",
+ "@iconify-json/teenyicons": "^1.2.2",
+ "@shikijs/rehype": "^1.29.1",
"@sveltejs/adapter-auto": "^3.3.1",
- "@sveltejs/kit": "^2.7.4",
+ "@sveltejs/kit": "^2.16.1",
"@sveltejs/vite-plugin-svelte": "^3.1.2",
"autoprefixer": "^10.4.20",
"clsx": "^2.1.1",
"cmdk-sv": "^0.0.18",
"lucide-svelte": "^0.453.0",
"mode-watcher": "^0.4.1",
- "postcss": "^8.4.47",
- "prettier": "^3.3.3",
- "prettier-plugin-svelte": "^3.2.7",
+ "postcss": "^8.5.1",
+ "prettier": "^3.4.2",
+ "prettier-plugin-svelte": "^3.3.3",
"svelte": "^4.2.19",
- "svelte-check": "^4.0.5",
+ "svelte-check": "^4.1.4",
"svelte-sonner": "^0.3.28",
- "tailwind-merge": "^2.5.4",
+ "tailwind-merge": "^2.6.0",
"tailwind-variants": "^0.2.1",
- "tailwindcss": "^3.4.14",
- "typescript": "^5.6.3",
+ "tailwindcss": "^3.4.17",
+ "typescript": "^5.7.3",
"vaul-svelte": "^0.3.2",
- "vite": "^5.4.10"
+ "vite": "^5.4.14"
},
"type": "module",
"dependencies": {
- "@iconify/svelte": "^4.0.2",
- "@iconify/tailwind": "^1.1.3",
+ "@iconify/svelte": "^4.2.0",
+ "@iconify/tailwind": "^1.2.0",
"bits-ui": "^0.21.16",
"copy-to-clipboard": "^3.3.3",
- "es-toolkit": "^1.27.0",
- "hast-util-to-html": "^9.0.3",
+ "es-toolkit": "^1.31.0",
+ "hast-util-to-html": "^9.0.4",
"mdsvex": "^0.12.3",
"medium-zoom": "^1.1.0",
"ofetch": "^1.4.1",
"rehype-external-links": "^3.0.0",
- "shiki": "^1.23.1",
+ "shiki": "^1.29.1",
"shiki-transformer-copy-button": "^0.0.3",
"svelte-bricks": "^0.2.1",
"svelte-lazy": "1.2.9",
diff --git a/new-web/src/lib/elements/ArticlePage.svelte b/new-web/src/lib/elements/ArticlePage.svelte
index 521b2ed..6e17420 100644
--- a/new-web/src/lib/elements/ArticlePage.svelte
+++ b/new-web/src/lib/elements/ArticlePage.svelte
@@ -6,6 +6,7 @@
import Skeleton from '$lib/components/ui/skeleton/skeleton.svelte';
import Footer from '$lib/elements/Footer.svelte';
import './ArticlePage.css';
+ import Button from '$lib/components/ui/button/button.svelte';
export let data;
@@ -37,76 +38,66 @@
- {getErrorMessage(error)} -
- {#if error.details && process.env.NODE_ENV === 'development'} -++ + {#if error} ++- {:else if showSkeleton} -+ {error.status === 404 ? 'Article Not Found' : 'Error Loading Article'} +
++ {getErrorMessage(error)} +
+ {#if error.details && process.env.NODE_ENV === 'development'} +{error.details}- {/if} -- - Return Home - - + {/if} +-+ + Return Home + + +-- - -- - -- -- {:else} -- + {:else if showSkeleton} + +-+ + +-+ + ++ ++ + ---- + +- - + +-++ + + -- {#if article.postImage} - - {/if} - - {formatDate(article.date)}
-{article.title}
--diff --git a/new-web/src/lib/elements/BlogCard.svelte b/new-web/src/lib/elements/BlogCard.svelte index 3f3f5d7..1bc696f 100644 --- a/new-web/src/lib/elements/BlogCard.svelte +++ b/new-web/src/lib/elements/BlogCard.svelte @@ -64,6 +64,7 @@-
--{article.author.name}
-{article.author.role}
+ {:else} ++-+ + {#if article.postImage} + ++ {/if} + + + +{formatDate(article.date)}
+{article.title}
++++
++{article.author.name}
+{article.author.role}
++- ++ {#if content} + {@html content} + {:else} +Error loading content
+ {/if}-- {/if} + {/if} +- {#if content} - {@html content} +- - -+ + ++- --->Freedium βeta -
+{/if} -+- diff --git a/new-web/src/lib/elements/HomeBanner.svelte b/new-web/src/lib/elements/HomeBanner.svelte index bf383b8..e702909 100644 --- a/new-web/src/lib/elements/HomeBanner.svelte +++ b/new-web/src/lib/elements/HomeBanner.svelte @@ -6,7 +6,7 @@ diff --git a/new-web/src/lib/elements/ReportProblem.svelte b/new-web/src/lib/elements/ReportProblem.svelte index 58c3555..47a5e0a 100644 --- a/new-web/src/lib/elements/ReportProblem.svelte +++ b/new-web/src/lib/elements/ReportProblem.svelte @@ -24,8 +24,8 @@ {#if $isDesktop}- Freedium: Your paywall breakthrough for Medium! + Freedium: Breaking Down the Walls of Knowledge
- - ++ Report a problemdiff --git a/new-web/src/lib/elements/ThemeToggle.svelte b/new-web/src/lib/elements/ThemeToggle.svelte index 8ac67f8..3e9eb4b 100644 --- a/new-web/src/lib/elements/ThemeToggle.svelte +++ b/new-web/src/lib/elements/ThemeToggle.svelte @@ -1,35 +1,52 @@ -- - + + {#if !$checked} ++ {:else} + + {/if} + + + diff --git a/new-web/src/lib/elements/UrlBox.svelte b/new-web/src/lib/elements/UrlBox.svelte index dbd1856..4a9d905 100644 --- a/new-web/src/lib/elements/UrlBox.svelte +++ b/new-web/src/lib/elements/UrlBox.svelte @@ -30,7 +30,7 @@