Skip to content

Commit 507e94d

Browse files
committed
feat: add blog
1 parent a1a40f3 commit 507e94d

File tree

26 files changed

+1774
-1409
lines changed

26 files changed

+1774
-1409
lines changed

.zed/settings.json

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
11
{
22
"format_on_save": "on",
3-
"tab_size": 2,
4-
"lsp": {
5-
"tailwindcss-language-server": {
6-
"settings": {
7-
"includeLanguages": {
8-
"vue": "html",
9-
"*.vue": "html"
10-
},
11-
"experimental": {
12-
"classRegex": [
13-
["@apply\\s+([^;]*);", "([a-zA-Z0-9\\s\\-:]+)"],
14-
"class=\"([^\"]*)",
15-
"class={\"([^\"}]*)",
16-
"class=format!({\"([^\"}]*)"
17-
]
18-
}
19-
}
20-
}
21-
}
3+
"tab_size": 2
224
}

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/backend/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "web"
3-
version = "3.1.2"
3+
version = "3.1.3"
44
edition = "2024"
55

66
[dependencies]

apps/frontend/.zed/settings.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"format_on_save": "on",
3+
"tab_size": 2,
4+
"lsp": {
5+
"tailwindcss-language-server": {
6+
"settings": {
7+
"includeLanguages": {
8+
"vue": "html",
9+
"*.vue": "html"
10+
},
11+
"experimental": {
12+
"classRegex": [
13+
["@apply\\s+([^;]*);", "([a-zA-Z0-9\\s\\-:]+)"],
14+
"class=\"([^\"]*)",
15+
"class={\"([^\"}]*)",
16+
"class=format!({\"([^\"}]*)"
17+
]
18+
}
19+
}
20+
}
21+
},
22+
"languages": {
23+
"Vue.js": {
24+
"language_servers": ["!typescript-language-server", "..."]
25+
}
26+
}
27+
}

apps/frontend/content.config.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,20 @@ export default defineContentConfig({
5252
num: z.number(),
5353
}),
5454
}),
55+
56+
// Blog posts
57+
blog: defineCollection({
58+
type: 'page',
59+
source: 'blog/*.md',
60+
schema: z.object({
61+
title: z.string(),
62+
description: z.string().optional(),
63+
author: z.string().default('Blueprint'),
64+
thumbnail: z.string().optional(),
65+
date: z.string(),
66+
num: z.number(),
67+
unlisted: z.boolean().optional().default(false),
68+
}),
69+
}),
5570
},
5671
})
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: Migrate from twin.macro's theme()
3+
description: A step in the right direction for Blueprint themes
4+
author: Emma
5+
thumbnail: theme-migrate.jpg
6+
date: 12/7/2025 20:06 (CEDST)
7+
num: 1
8+
---
9+
10+
> Before you ask; Blueprint themes are not going anywhere. This is purely a change to how extensions fetch theme color values through React components.
11+
12+
---
13+
14+
We're making the difficult decision to stop supporting twin.macro's `theme()` utility. Starting beta-2025-12, calling this function will return values that may differ from the Pterodactyl theme used on the panel.
15+
16+
In the [beta-2025-11 release](/releases/beta-2025-11), we brought new theming capabilities to Blueprint. The implementation was quite rocky however, and only worked properly on a small amount of installations. After weeks of trying, we think the only way forward is deprecating and introducing an alternative to twin.macro's theme colors utility.
17+
18+
### Migrating to Blueprint's theme() function
19+
20+
If you are currently making use of twin.macro's `theme()` utility in your extension, you should move over to Blueprint's.
21+
22+
You only need to adjust the import. The utility itself will function (largely) the same.
23+
24+
```diff
25+
- import { theme } from 'twin.macro'
26+
+ import { theme } from '@blueprint'
27+
```
28+
29+
### What if I don't migrate?
30+
31+
**Your extension will not stop working**. Instead, theme values fetched through this function may no longer accurately reflect Pterodactyl's theme. For theme colors, it may return `#000000` instead of the correct HEX value.

apps/frontend/content/guides/admin/updateblueprint.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Latest commit is for development purposes only. No support will be provided and
3333
# blueprintframework/framework repository by default
3434
blueprint -upgrade remote
3535

36-
# Optionally, manually define the blueprintframework/framework
36+
# Optional: manually define the blueprintframework/framework
3737
# repository and update that way
3838
blueprint -upgrade remote blueprintframework/framework
3939
```

apps/frontend/package.json

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,40 +12,42 @@
1212
},
1313
"dependencies": {
1414
"@igorkowalczyk/is-browser": "^5.1.0",
15-
"@nuxt/content": "^3.8.0",
15+
"@nuxt/content": "^3.9.0",
1616
"@nuxt/fonts": "^0.11.4",
1717
"@nuxt/icon": "^2.1.0",
1818
"@nuxt/image": "^1.11.0",
1919
"@nuxt/scripts": "^0.12.2",
20-
"@nuxtjs/mdc": "^0.18.0",
20+
"@nuxtjs/mdc": "^0.18.4",
2121
"@nuxtjs/plausible": "^2.0.1",
22-
"@nuxtjs/sitemap": "^7.4.7",
22+
"@nuxtjs/sitemap": "^7.4.9",
2323
"@nuxtjs/turnstile": "^1.1.1",
24-
"@tailwindcss/vite": "^4.1.16",
24+
"@tailwindcss/vite": "^4.1.17",
2525
"@types/file-saver": "^2.0.7",
2626
"@types/qrcode": "^1.5.6",
2727
"@unhead/vue": "^2.0.19",
2828
"@vueuse/core": "^13.9.0",
29-
"@vueuse/nuxt": "^14.0.0",
30-
"better-sqlite3": "^12.4.1",
29+
"@vueuse/nuxt": "^14.1.0",
30+
"better-sqlite3": "^12.5.0",
3131
"debug": "^4.4.3",
3232
"file-saver": "^2.0.5",
33-
"nuxt": "^4.1.3",
33+
"nuxt": "^4.2.1",
3434
"nuxt-og-image": "^5.1.12",
3535
"nuxt-site-config": "^3.2.11",
3636
"qrcode": "^1.5.4",
37-
"tailwindcss": "^4.1.16",
37+
"tailwindcss": "^4.1.17",
3838
"ufo": "^1.6.1",
39-
"unstorage": "^1.17.2",
40-
"vue": "^3.5.22",
39+
"unstorage": "^1.17.3",
40+
"vue": "^3.5.25",
4141
"vue-router": "^4.6.3"
4242
},
4343
"devDependencies": {
44-
"@iconify-json/lucide": "^1.2.72",
44+
"@iconify-json/lucide": "^1.2.79",
4545
"@iconify-json/memory": "^1.2.2",
4646
"@iconify-json/pixelarticons": "^1.2.2",
47-
"prettier": "^3.6.2",
48-
"prettier-plugin-tailwindcss": "^0.6.14"
47+
"prettier": "^3.7.4",
48+
"prettier-plugin-tailwindcss": "^0.6.14",
49+
"typescript": "^5.9.3",
50+
"vue-tsc": "^3.1.6"
4951
},
5052
"packageManager": "pnpm@10.18.3+sha512.bbd16e6d7286fd7e01f6b3c0b3c932cda2965c06a908328f74663f10a9aea51f1129eea615134bf992831b009eabe167ecb7008b597f40ff9bc75946aadfb08d"
5153
}

0 commit comments

Comments
 (0)