Fix scope
This commit is contained in:
@@ -9,9 +9,9 @@ import {
|
||||
cloudflareCache,
|
||||
cloudflareImages,
|
||||
cloudflareStream,
|
||||
} from "@emdashcms/cloudflare";
|
||||
import { formsPlugin } from "@emdashcms/plugin-forms";
|
||||
import { webhookNotifierPlugin } from "@emdashcms/plugin-webhook-notifier";
|
||||
} from "@emdash-cms/cloudflare";
|
||||
import { formsPlugin } from "@emdash-cms/plugin-forms";
|
||||
import { webhookNotifierPlugin } from "@emdash-cms/plugin-webhook-notifier";
|
||||
import { defineConfig } from "astro/config";
|
||||
import emdash from "emdash/astro";
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@emdashcms/demo-cloudflare",
|
||||
"name": "@emdash-cms/demo-cloudflare",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "astro dev",
|
||||
"build": "astro build",
|
||||
"build:all": "pnpm run --filter @emdashcms/demo-cloudflare... build",
|
||||
"build:all": "pnpm run --filter @emdash-cms/demo-cloudflare... build",
|
||||
"preview": "astro preview",
|
||||
"deploy": "pnpm build:all && wrangler deploy",
|
||||
"db:create": "wrangler d1 create emdash-demo",
|
||||
@@ -16,9 +16,9 @@
|
||||
"dependencies": {
|
||||
"@astrojs/cloudflare": "catalog:",
|
||||
"@astrojs/react": "catalog:",
|
||||
"@emdashcms/cloudflare": "workspace:*",
|
||||
"@emdashcms/plugin-forms": "workspace:*",
|
||||
"@emdashcms/plugin-webhook-notifier": "workspace:*",
|
||||
"@emdash-cms/cloudflare": "workspace:*",
|
||||
"@emdash-cms/plugin-forms": "workspace:*",
|
||||
"@emdash-cms/plugin-webhook-notifier": "workspace:*",
|
||||
"@tanstack/react-query": "catalog:",
|
||||
"@tanstack/react-router": "catalog:",
|
||||
"astro": "catalog:",
|
||||
|
||||
@@ -10,7 +10,7 @@ import handler from "@astrojs/cloudflare/entrypoints/server";
|
||||
|
||||
// Re-export PluginBridge from the cloudflare sandbox runtime
|
||||
// This makes it available via ctx.exports.PluginBridge
|
||||
export { PluginBridge } from "@emdashcms/cloudflare/sandbox";
|
||||
export { PluginBridge } from "@emdash-cms/cloudflare/sandbox";
|
||||
|
||||
/**
|
||||
* Default export - just re-export the Astro handler
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import cloudflare from "@astrojs/cloudflare";
|
||||
import react from "@astrojs/react";
|
||||
import { playgroundDatabase } from "@emdashcms/cloudflare";
|
||||
import { playgroundDatabase } from "@emdash-cms/cloudflare";
|
||||
import { defineConfig } from "astro/config";
|
||||
import emdash from "emdash/astro";
|
||||
|
||||
@@ -20,7 +20,7 @@ export default defineConfig({
|
||||
// Playground mode: injects playground middleware before runtime init,
|
||||
// skips setup/auth (handled by playground middleware)
|
||||
playground: {
|
||||
middlewareEntrypoint: "@emdashcms/cloudflare/db/playground-middleware",
|
||||
middlewareEntrypoint: "@emdash-cms/cloudflare/db/playground-middleware",
|
||||
},
|
||||
}),
|
||||
],
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@emdashcms/playground",
|
||||
"name": "@emdash-cms/playground",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
@@ -13,7 +13,7 @@
|
||||
"dependencies": {
|
||||
"@astrojs/cloudflare": "catalog:",
|
||||
"@astrojs/react": "catalog:",
|
||||
"@emdashcms/cloudflare": "workspace:*",
|
||||
"@emdash-cms/cloudflare": "workspace:*",
|
||||
"astro": "catalog:",
|
||||
"emdash": "workspace:*",
|
||||
"react": "catalog:",
|
||||
|
||||
@@ -9,6 +9,6 @@
|
||||
import handler from "@astrojs/cloudflare/entrypoints/server";
|
||||
|
||||
// Export the DO class so Cloudflare can instantiate it
|
||||
export { EmDashPreviewDB } from "@emdashcms/cloudflare/db/playground";
|
||||
export { EmDashPreviewDB } from "@emdash-cms/cloudflare/db/playground";
|
||||
|
||||
export default handler;
|
||||
|
||||
@@ -4,7 +4,7 @@ This demo showcases EmDash's plugin system with plugins that demonstrate the hoo
|
||||
|
||||
## Plugins Included
|
||||
|
||||
### 1. Audit Log Plugin (`@emdashcms/plugin-audit-log`)
|
||||
### 1. Audit Log Plugin (`@emdash-cms/plugin-audit-log`)
|
||||
|
||||
Tracks all content changes for compliance.
|
||||
|
||||
@@ -18,7 +18,7 @@ Tracks all content changes for compliance.
|
||||
- Before/after state comparison
|
||||
- Admin history page
|
||||
|
||||
### 2. Webhook Notifier Plugin (`@emdashcms/plugin-webhook-notifier`)
|
||||
### 2. Webhook Notifier Plugin (`@emdash-cms/plugin-webhook-notifier`)
|
||||
|
||||
Posts JSON payloads to external webhook URLs on content/media events.
|
||||
|
||||
@@ -29,7 +29,7 @@ Posts JSON payloads to external webhook URLs on content/media events.
|
||||
- SSRF protection
|
||||
- Delivery tracking
|
||||
|
||||
### 3. Embeds Plugin (`@emdashcms/plugin-embeds`)
|
||||
### 3. Embeds Plugin (`@emdash-cms/plugin-embeds`)
|
||||
|
||||
Provides Portable Text block types for embedding external content.
|
||||
|
||||
@@ -38,7 +38,7 @@ Provides Portable Text block types for embedding external content.
|
||||
- Link previews (Open Graph)
|
||||
- GitHub Gist embeds
|
||||
|
||||
### 4. API Test Plugin (`@emdashcms/plugin-api-test`)
|
||||
### 4. API Test Plugin (`@emdash-cms/plugin-api-test`)
|
||||
|
||||
Exercises all v2 plugin APIs for testing.
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import node from "@astrojs/node";
|
||||
import react from "@astrojs/react";
|
||||
import { apiTestPlugin } from "@emdashcms/plugin-api-test";
|
||||
import { auditLogPlugin } from "@emdashcms/plugin-audit-log";
|
||||
import { embedsPlugin } from "@emdashcms/plugin-embeds";
|
||||
import { webhookNotifierPlugin } from "@emdashcms/plugin-webhook-notifier";
|
||||
import { apiTestPlugin } from "@emdash-cms/plugin-api-test";
|
||||
import { auditLogPlugin } from "@emdash-cms/plugin-audit-log";
|
||||
import { embedsPlugin } from "@emdash-cms/plugin-embeds";
|
||||
import { webhookNotifierPlugin } from "@emdash-cms/plugin-webhook-notifier";
|
||||
import { defineConfig } from "astro/config";
|
||||
import emdash from "emdash/astro";
|
||||
import { sqlite } from "emdash/db";
|
||||
|
||||
@@ -14,10 +14,10 @@
|
||||
"dependencies": {
|
||||
"@astrojs/node": "catalog:",
|
||||
"@astrojs/react": "catalog:",
|
||||
"@emdashcms/plugin-audit-log": "workspace:*",
|
||||
"@emdashcms/plugin-api-test": "workspace:*",
|
||||
"@emdashcms/plugin-webhook-notifier": "workspace:*",
|
||||
"@emdashcms/plugin-embeds": "workspace:*",
|
||||
"@emdash-cms/plugin-audit-log": "workspace:*",
|
||||
"@emdash-cms/plugin-api-test": "workspace:*",
|
||||
"@emdash-cms/plugin-webhook-notifier": "workspace:*",
|
||||
"@emdash-cms/plugin-embeds": "workspace:*",
|
||||
"@tanstack/react-query": "catalog:",
|
||||
"@tanstack/react-router": "catalog:",
|
||||
"astro": "catalog:",
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
import { getEmDashEntry } from "emdash";
|
||||
import { PortableText } from "emdash/ui";
|
||||
import { embedComponents } from "@emdashcms/plugin-embeds/astro";
|
||||
import { embedComponents } from "@emdash-cms/plugin-embeds/astro";
|
||||
|
||||
const { slug } = Astro.params;
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* This page renders hardcoded Portable Text with embed blocks.
|
||||
*/
|
||||
import { PortableText } from "emdash/ui";
|
||||
import { embedComponents } from "@emdashcms/plugin-embeds/astro";
|
||||
import { embedComponents } from "@emdash-cms/plugin-embeds/astro";
|
||||
|
||||
// Sample Portable Text content with various embed types
|
||||
const testContent = [
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@emdashcms/demo-postgres",
|
||||
"name": "@emdash-cms/demo-postgres",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import cloudflare from "@astrojs/cloudflare";
|
||||
import react from "@astrojs/react";
|
||||
import { previewDatabase } from "@emdashcms/cloudflare";
|
||||
import { previewDatabase } from "@emdash-cms/cloudflare";
|
||||
import { defineConfig } from "astro/config";
|
||||
import emdash from "emdash/astro";
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@emdashcms/demo-preview",
|
||||
"name": "@emdash-cms/demo-preview",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "astro dev",
|
||||
"build": "astro build",
|
||||
"build:all": "pnpm run --filter @emdashcms/demo-preview... build",
|
||||
"build:all": "pnpm run --filter @emdash-cms/demo-preview... build",
|
||||
"preview": "astro preview",
|
||||
"deploy": "pnpm build:all && wrangler deploy",
|
||||
"typecheck": "astro check"
|
||||
@@ -14,7 +14,7 @@
|
||||
"dependencies": {
|
||||
"@astrojs/cloudflare": "catalog:",
|
||||
"@astrojs/react": "catalog:",
|
||||
"@emdashcms/cloudflare": "workspace:*",
|
||||
"@emdash-cms/cloudflare": "workspace:*",
|
||||
"@tanstack/react-query": "catalog:",
|
||||
"@tanstack/react-router": "catalog:",
|
||||
"astro": "catalog:",
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* populates snapshots, and overrides the request-context DB.
|
||||
*/
|
||||
|
||||
import { createPreviewMiddleware } from "@emdashcms/cloudflare/db/do";
|
||||
import { createPreviewMiddleware } from "@emdash-cms/cloudflare/db/do";
|
||||
import { sequence } from "astro:middleware";
|
||||
|
||||
const preview = createPreviewMiddleware({
|
||||
|
||||
@@ -9,6 +9,6 @@
|
||||
import handler from "@astrojs/cloudflare/entrypoints/server";
|
||||
|
||||
// Export the DO class so Cloudflare can instantiate it
|
||||
export { EmDashPreviewDB } from "@emdashcms/cloudflare/db/do";
|
||||
export { EmDashPreviewDB } from "@emdash-cms/cloudflare/db/do";
|
||||
|
||||
export default handler;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import node from "@astrojs/node";
|
||||
import react from "@astrojs/react";
|
||||
import { auditLogPlugin } from "@emdashcms/plugin-audit-log";
|
||||
import { auditLogPlugin } from "@emdash-cms/plugin-audit-log";
|
||||
import { defineConfig } from "astro/config";
|
||||
import emdash, { local } from "emdash/astro";
|
||||
import { sqlite } from "emdash/db";
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
"dependencies": {
|
||||
"@astrojs/node": "catalog:",
|
||||
"@astrojs/react": "catalog:",
|
||||
"@emdashcms/plugin-audit-log": "workspace:*",
|
||||
"@emdashcms/plugin-color": "workspace:*",
|
||||
"@emdash-cms/plugin-audit-log": "workspace:*",
|
||||
"@emdash-cms/plugin-color": "workspace:*",
|
||||
"astro": "catalog:",
|
||||
"better-sqlite3": "catalog:",
|
||||
"emdash": "workspace:*",
|
||||
|
||||
Reference in New Issue
Block a user