Skip to content

Commit 0f8abb0

Browse files
authored
Merge pull request #330 from SkyCryptWebsite/dev
feat: add newsroom
2 parents f7910df + 45a806c commit 0f8abb0

85 files changed

Lines changed: 13030 additions & 2032 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/bright-posts-wink.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"skycrypt-frontend": minor
3+
---
4+
5+
Add local newsroom notifications for new CMS posts.

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://unpkg.com/@changesets/config@3.1.2/schema.json",
3-
"changelog": ["@svitejs/changesets-changelog-github-compact", { "repo": "SkyCryptWebsite/SkyCrypt-Frontend" }],
3+
"changelog": ["changesets-changelog-clean", { "repo": "SkyCryptWebsite/SkyCrypt-Frontend" }],
44
"commit": false,
55
"fixed": [],
66
"linked": [],

.changeset/crisp-tires-hang.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"skycrypt-frontend": minor
3+
---
4+
5+
Add initial work for SkyCrypt accounts
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"skycrypt-frontend": minor
3+
---
4+
5+
Add the CMS-backed newsroom with post listing, article pages, previews, and sitemap entries.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"skycrypt-frontend": patch
3+
---
4+
5+
Render newsroom posts and the listing page as `summary_large_image` social embeds with the post's hero image (or a branded graphic on the listing), and stop the homepage SEO defaults from leaking into them.

.changeset/modern-queries-wait.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"skycrypt-frontend": patch
3+
---
4+
5+
Migrate remote query search calls to the current SvelteKit API.

.changeset/pre.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"mode": "pre",
3+
"tag": "beta",
4+
"initialVersions": {
5+
"skycrypt-frontend": "3.6.2"
6+
},
7+
"changesets": [
8+
"bright-posts-wink",
9+
"crisp-tires-hang",
10+
"fuzzy-newsrooms-smile",
11+
"large-newsroom-embeds",
12+
"modern-queries-wait",
13+
"quiet-deriveds-resolve",
14+
"rich-newsrooms-render"
15+
]
16+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"skycrypt-frontend": patch
3+
---
4+
5+
Eliminate `derived_inert` runtime warnings by hoisting `new IsInViewport(...)` out of a `$derived` in `Chip.svelte` and splitting `getThemeIcons(...).current` in the header. Align remaining stats-view remote queries with the post-2.61 docs idiom (`await` for template/context-feed sites; `.current`/`.loading`/`.error` kept only for the loading-button-spinner case). Drop the redundant `getCombined()` in `Sections.svelte`. Make the navbar's tab scroll-on-mount race-resistant and its `IntersectionObserver` `rootMargin` NaN-safe.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"skycrypt-frontend": patch
3+
---
4+
5+
Render newsroom rich text with Payload's Lexical HTML converter while preserving SkyCrypt-specific links, uploads, checklists, and relationship nodes.

.env.example

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,31 @@ PUBLIC_SENTRY_PROJECT_ID=""
1717
# GO API
1818
PUBLIC_API_URL="http://localhost:8080/api/"
1919
PUBLIC_SERVER_API_URL="http://localhost:8080/api/" # If you're using docker, set this to the name of the backend container, e.g. http://skycrypt-backend-1:8080/api/
20-
SERVER_API_TOKEN="" # Must match the token in the backend config
20+
SERVER_API_TOKEN="" # Must match the token in the backend config
21+
22+
# Drizzle
23+
DATABASE_URL="postgres://root:mysecretpassword@localhost:5432/skycrypt_frontend"
24+
25+
# Better Auth
26+
# For production use 32 characters and generated with high entropy
27+
# https://www.better-auth.com/docs/installation
28+
BETTER_AUTH_SECRET=""
29+
# Discord OAuth
30+
# https://www.better-auth.com/docs/authentication/discord
31+
DISCORD_CLIENT_ID=""
32+
DISCORD_CLIENT_SECRET=""
33+
# MC-ID OAuth
34+
# https://www.better-auth.com/docs/authentication/other-social-providers
35+
# https://mc-id.com
36+
MC_ID_CLIENT_ID=""
37+
MC_ID_CLIENT_SECRET=""
38+
# Patreon API
39+
# https://www.patreon.com/portal/registration/register-clients
40+
PATREON_CLIENT_ID=""
41+
PATREON_CLIENT_SECRET=""
42+
43+
# Payload CMS
44+
PUBLIC_CMS_URL="https://cms.shiiyu.moe"
45+
SERVER_CMS_API_URL="https://cms.shiiyu.moe" # If you're using docker, set this to the name of the CMS container
46+
CMS_API_TOKEN="" # Users API Key generated in CMS admin (Users → API Key tab)
47+
CMS_PREVIEW_TOKEN="" # Must match CMS_PREVIEW_TOKEN in SkyCrypt-CMS .env

0 commit comments

Comments
 (0)