feat: add SharePanel component for social sharing with QR code support
- Implemented SharePanel component in `SharePanel.astro` for sharing content on social media platforms. - Integrated QR code generation for WeChat sharing using the `qrcode` library. - Added localization support for English and Chinese languages. - Created utility functions in `seo.ts` for building article summaries and FAQs. - Introduced API routes for serving IndexNow key and generating full LLM catalog and summaries. - Enhanced SEO capabilities with structured data for articles and pages.
This commit is contained in:
@@ -315,6 +315,10 @@ test('后台可完成媒体库上传/元数据/替换/删除,并执行设置
|
||||
await page.getByRole('link', { name: '设置' }).click()
|
||||
await page.getByTestId('site-settings-site-name').fill('InitCool Deep Regression')
|
||||
await page.getByTestId('site-settings-popup-title').fill('订阅深回归')
|
||||
await page
|
||||
.locator('label', { hasText: '开启文章页微信扫码分享' })
|
||||
.locator('input[type="checkbox"]')
|
||||
.check()
|
||||
await page.getByTestId('site-settings-save').click()
|
||||
await page.getByTestId('site-settings-reindex').click()
|
||||
await page.getByTestId('site-settings-test-provider').click()
|
||||
@@ -324,6 +328,7 @@ test('后台可完成媒体库上传/元数据/替换/删除,并执行设置
|
||||
state = await getDebugState(request)
|
||||
expect(state.site_settings.site_name).toBe('InitCool Deep Regression')
|
||||
expect(state.site_settings.subscription_popup_title).toBe('订阅深回归')
|
||||
expect(state.site_settings.seo_wechat_share_qr_enabled).toBe(true)
|
||||
expect(state.site_settings.ai_chunks_count).toBeGreaterThan(128)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user