God Mode: Sync All Admin Pages & Components. Fix Navigation. Fix Schemas.
This commit is contained in:
20
src/pages/admin/seo/articles/[id].astro
Normal file
20
src/pages/admin/seo/articles/[id].astro
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
import Layout from '@/layouts/AdminLayout.astro';
|
||||
import ArticleEditor from '@/components/admin/seo/ArticleEditor';
|
||||
|
||||
const { id } = Astro.params;
|
||||
---
|
||||
|
||||
<Layout title="Review Generated Article">
|
||||
<div class="p-6">
|
||||
<div class="mb-6">
|
||||
<a href="/admin/seo/articles" class="text-slate-400 hover:text-white flex items-center gap-2 mb-2">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 19l-7-7m0 0l7-7m-7 7h18" /></svg>
|
||||
Back to Articles
|
||||
</a>
|
||||
<h1 class="text-3xl font-bold text-slate-100">Review Article</h1>
|
||||
</div>
|
||||
|
||||
<ArticleEditor id={id} client:only="react" />
|
||||
</div>
|
||||
</Layout>
|
||||
22
src/pages/admin/seo/articles/index.astro
Normal file
22
src/pages/admin/seo/articles/index.astro
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
import Layout from '@/layouts/AdminLayout.astro';
|
||||
import ArticleList from '@/components/admin/seo/ArticleList';
|
||||
import { getDirectusClient, readItems } from '@/lib/directus/client';
|
||||
|
||||
const directus = getDirectusClient();
|
||||
const articles = await directus.request(readItems('generated_articles', {
|
||||
fields: ['*'],
|
||||
limit: 50,
|
||||
sort: ['-date_created']
|
||||
})).catch(() => []);
|
||||
---
|
||||
|
||||
<Layout title="Generated Articles">
|
||||
<div class="p-8">
|
||||
<div class="mb-6">
|
||||
<h1 class="text-3xl font-bold text-white mb-2">Generated Articles</h1>
|
||||
<p class="text-gray-400">Review and manage AI-generated SEO content.</p>
|
||||
</div>
|
||||
<ArticleList client:load initialArticles={articles} />
|
||||
</div>
|
||||
</Layout>
|
||||
8
src/pages/admin/seo/campaigns.astro
Normal file
8
src/pages/admin/seo/campaigns.astro
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
import AdminLayout from '@/layouts/AdminLayout.astro';
|
||||
import CampaignManager from '../../../components/admin/CampaignManager';
|
||||
---
|
||||
|
||||
<AdminLayout title="SEO Campaigns">
|
||||
<CampaignManager client:load />
|
||||
</AdminLayout>
|
||||
14
src/pages/admin/seo/fragments.astro
Normal file
14
src/pages/admin/seo/fragments.astro
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
import Layout from '@/layouts/AdminLayout.astro';
|
||||
---
|
||||
|
||||
<Layout title="Content Fragments">
|
||||
<div class="p-6">
|
||||
<h1 class="text-3xl font-bold text-slate-100 mb-6">Content Fragments</h1>
|
||||
|
||||
<div class="bg-slate-800 rounded-lg border border-slate-700 p-8 text-center">
|
||||
<h2 class="text-xl font-bold text-white mb-2">Reusable Content Blocks</h2>
|
||||
<p class="text-slate-400">Manage global text snippets, CTAs, and bios here.</p>
|
||||
</div>
|
||||
</div>
|
||||
</Layout>
|
||||
14
src/pages/admin/seo/headlines.astro
Normal file
14
src/pages/admin/seo/headlines.astro
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
import Layout from '@/layouts/AdminLayout.astro';
|
||||
---
|
||||
|
||||
<Layout title="Headlines">
|
||||
<div class="p-6">
|
||||
<h1 class="text-3xl font-bold text-slate-100 mb-6">Headlines & Hooks</h1>
|
||||
|
||||
<div class="bg-slate-800 rounded-lg border border-slate-700 p-8 text-center">
|
||||
<h2 class="text-xl font-bold text-white mb-2">Pattern Library</h2>
|
||||
<p class="text-slate-400">Manage your Cartesian Headline generation patterns here.</p>
|
||||
</div>
|
||||
</div>
|
||||
</Layout>
|
||||
Reference in New Issue
Block a user