feat: SEO SPA editor integration
This commit is contained in:
1 parent
eb9876fde3
commit
470584400f
62 files changed
+7471
-58
No files matched your search
@@ -7,7 +7,7 @@ import { useSessionStore } from '@/stores/session'
|
||||
import type { Article } from '@/composables/useArticles'
|
||||
import ArticleEditor from '@/components/ArticleEditor.vue'
|
||||
import RootComponent from '@/App.vue'
|
||||
import { articleMeta, oneSite } from './editorMetaKit'
|
||||
import { articleMeta, oneSite, readyCheck } from './editorMetaKit'
|
||||
|
||||
const FIXED_NOW = '2026-09-26T11:02:00Z'
|
||||
|
||||
@@ -116,6 +116,7 @@ function routeFor(url: string, init?: RequestInit) {
|
||||
function fetchRouter(handlers: Record<string, () => Response | Promise<Response>>) {
|
||||
const routes = {
|
||||
'GET /v1/site/': () => mockResponse(200, oneSite),
|
||||
'POST /v1/article/12/seo/check': () => mockResponse(200, readyCheck),
|
||||
...handlers,
|
||||
}
|
||||
return vi.fn((url: string, init?: RequestInit) => {
|
||||
|
||||
Reference in new issue
Block a user