feat(embed): add widget, visitor chat, and management UI (#1657)

Add embed.html entrypoint, floating widget SDK, secure-mode snippets,
management panel with preview, visitor chat composables, citation rendering,
and integration docs for subdomain and server-side token exchange.
This commit is contained in:
wizardchen
2026-06-12 22:40:18 +08:00
committed by lyingbug
parent ed9802ff2b
commit 08852ab19d
41 changed files with 10186 additions and 745 deletions
+16
View File
@@ -0,0 +1,16 @@
/**
* Embed i18n entry point.
*
* - Visitor UI strings: `frontend/src/i18n/embed.ts` (loaded by embed-main.ts)
* - Admin `embedPublish` strings: `frontend/src/i18n/locales/*.ts`
*
* Re-export locale helpers so feature code can import from one path.
*/
export {
applyEmbedLocale,
EMBED_LOCALE_STORAGE_KEY,
normalizeEmbedLocale,
readEmbedLocaleFromUrl,
syncEmbedLocaleFromUrl,
type EmbedLocale,
} from '@/i18n/embed'