feat: chat layer tracer: bootstrap, channel list, messages, composer
- createChatClient: bearer auth, one refresh-and-retry on 401, 422 field errors
- useChat over useState: host bootstrap, open a channel, send
- ChatPage, ChatChannelList, ChatMessageList, ChatComposer
- runtime config chat.apiBase, public.chat.{apiBase,channelsApiBase,botsApiBase,hostApiBase}
This commit is contained in:
5
.playground/app/app.vue
Normal file
5
.playground/app/app.vue
Normal file
@@ -0,0 +1,5 @@
|
||||
<template>
|
||||
<ClientOnly>
|
||||
<ChatPage />
|
||||
</ClientOnly>
|
||||
</template>
|
||||
17
.playground/nuxt.config.ts
Normal file
17
.playground/nuxt.config.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
// Local playground: an app that only extends the layer and renders the chat
|
||||
// (app.vue), with en as the default locale and pl prefixed. Run a SummerCMS
|
||||
// application with the chat plugins and a host bootstrap on 127.0.0.1:8096,
|
||||
// proxy its paths here (or serve both from one origin) and set
|
||||
// NUXT_PUBLIC_CHAT_HOST_API_BASE.
|
||||
export default defineNuxtConfig({
|
||||
extends: ['..'],
|
||||
compatibilityDate: '2025-07-15',
|
||||
i18n: {
|
||||
strategy: 'prefix_except_default',
|
||||
defaultLocale: 'en',
|
||||
locales: [
|
||||
{ code: 'en', language: 'en-US' },
|
||||
{ code: 'pl', language: 'pl-PL' },
|
||||
],
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user