@commonpub/layer 0.3.24 → 0.3.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -47,13 +47,13 @@ Create `server/utils/config.ts` to load the config on the server side. See `apps
|
|
|
47
47
|
|
|
48
48
|
## What's Included
|
|
49
49
|
|
|
50
|
-
### Pages (
|
|
50
|
+
### Pages (70+ routes)
|
|
51
51
|
|
|
52
52
|
Content CRUD, hub feeds, learning paths, docs sites, admin panel, federation management, user profiles, messaging, notifications, search, and more.
|
|
53
53
|
|
|
54
|
-
### Components (
|
|
54
|
+
### Components (100+)
|
|
55
55
|
|
|
56
|
-
Content editor (`CpubEditor`), content cards, author rows, comment sections, engagement bars, federation UI, notification items, message threads, and more.
|
|
56
|
+
Content editor (`CpubEditor`), content cards, author rows, comment sections, engagement bars, federation UI, notification items, message threads, block renderers, and more.
|
|
57
57
|
|
|
58
58
|
### Composables (19)
|
|
59
59
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commonpub/layer",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.26",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./nuxt.config.ts",
|
|
6
6
|
"files": [
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
"vue-router": "^4.3.0",
|
|
46
46
|
"zod": "^4.3.6",
|
|
47
47
|
"@commonpub/auth": "0.5.0",
|
|
48
|
-
"@commonpub/
|
|
48
|
+
"@commonpub/config": "0.7.1",
|
|
49
49
|
"@commonpub/protocol": "0.9.5",
|
|
50
|
+
"@commonpub/docs": "0.5.2",
|
|
51
|
+
"@commonpub/learning": "0.5.0",
|
|
50
52
|
"@commonpub/editor": "0.5.0",
|
|
51
|
-
"@commonpub/schema": "0.8.12",
|
|
52
53
|
"@commonpub/server": "2.15.0",
|
|
53
|
-
"@commonpub/config": "0.7.1",
|
|
54
54
|
"@commonpub/ui": "0.7.1",
|
|
55
|
-
"@commonpub/
|
|
55
|
+
"@commonpub/schema": "0.8.12"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {}
|
|
58
58
|
}
|
|
@@ -36,8 +36,8 @@ export default defineEventHandler(async (event) => {
|
|
|
36
36
|
// CORS — WebFinger must be accessible from browser-based AP clients
|
|
37
37
|
setResponseHeader(event, 'access-control-allow-origin', '*');
|
|
38
38
|
|
|
39
|
-
// Instance actor lookup: acct:domain@domain → /actor Service
|
|
40
|
-
if (parsed.username === instanceDomain || parsed.username === config.instance.domain) {
|
|
39
|
+
// Instance actor lookup: acct:domain@domain or acct:instance@domain → /actor Service
|
|
40
|
+
if (parsed.username === instanceDomain || parsed.username === config.instance.domain || parsed.username === 'instance') {
|
|
41
41
|
const actorUri = `https://${instanceDomain}/actor`;
|
|
42
42
|
setResponseHeader(event, 'content-type', 'application/jrd+json');
|
|
43
43
|
return buildWebFingerResponse({
|
package/server/utils/email.ts
CHANGED
|
@@ -44,6 +44,9 @@ export function useEmailAdapter(): EmailAdapter {
|
|
|
44
44
|
return cachedAdapter;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
if (process.env.NODE_ENV === 'production') {
|
|
48
|
+
console.warn('[email] ⚠ Using console email adapter in production — emails will be logged, not sent. Set NUXT_EMAIL_ADAPTER to "smtp" or "resend".');
|
|
49
|
+
}
|
|
47
50
|
cachedAdapter = new ConsoleEmailAdapter();
|
|
48
51
|
return cachedAdapter;
|
|
49
52
|
}
|