@imean/example-chat
TypeScript icon, indicating that this package has built-in type declarations

0.2.8 • Public • Published

example-chat

一个开源的imean对话ui示例项目

Getting Started

Setup

  1. Clone the repository

    git clone https://git.starblazer.cn/dhc/example-chat.git
  2. Install dependencies

    yarn install
  3. Start the development server

    yarn build && yarn preview
  4. Open http://localhost:4173/exampleChat/index.js with your browser to see the result.

Project Integration Guide(NPM Package)

  1. Installation

    yarn add @imean/example-chat
  2. Usage

     import iMeanExampleChat from '@imean/example-chat'
    
     try {
         iMeanExampleChat.init({
             // imean服务地址
             baseUrl: "xxx",
             // imean项目ID
             projectId: "xxx",
         });
     } catch (error) {}

Project Integration Guide(CDN)

  1. Usage

     <!DOCTYPE html>
     <html lang="zh-CN">
         <head>
             <!-- 请勿设置异步加载,不然有可能导致js文件还未下载完成时调用init方法 -->
             <script src="https://xxx/exampleChat/index.js"></script>
         </head>
         <script>
             try {
                 window.iMeanExampleChat.init({
                     // imean服务地址
                     baseUrl: "xxx",
                     // imean项目ID
                     projectId: "xxx",
                 });
             } catch (error) {}
         </script>
         <body></body>
     </html>

Readme

Keywords

none

Package Sidebar

Install

npm i @imean/example-chat

Weekly Downloads

9

Version

0.2.8

License

ISC

Unpacked Size

2.76 MB

Total Files

5

Last publish

Collaborators

  • cuizeyu
  • losgif
  • chen404
  • xiaoxin123222