- Drag and Drop to drop files in the chatbox
- Carousel Card for displaying multiple bot messages
The enviroment variables for local development are kept in the .env
file. The webpack script uses dotenv
to load the variables. In production, the variables can be put into the enviroment directly without any file.
WEBSOCKET_URL
: The URL of the websocket server.TENANT_ID
: The tenant ID of the bot.INPUT_ID
: The ID of the HTML Input element where messages are entered.SEND_BUTTON_ID
: The ID of the HTML Button element that sends messages.MIC_ICON_ID
: The ID of the HTML Button element that starts and stops recording.MESSAGES_CONTAINER
: The ID of the HTML element which should contain all the messagesBOT_IMAGE
: The ID of the HTML image element that displays the bot logoBOT_HEADING
: The ID of the element which displays the bot headingBOT_SUBHEADING
: The ID of the element which displays the bot subheadingWIDGETS_LIST_UL
: The ID of the element that is shown as a tray that contains various input buttonsDROPDOWN_BUTTON
: The ID of the element that is clicked to show theWIDGETS_LIST_UL
tray.
dev-build
: Produces development build indist/
.prod-build
: Produces production build indist/
.document
: Produces documentation in a folder namedout
that is not tracked bygit
dev-server
: Starts a development server.
src
: The source code.audioVideo
: Code for accessing microphone and camera.dom
: Code for manipulating the DOM and programatically creating and attaching user and both messagesfingerprint
: Code for computing the fingerprint of the user from FingerprintJSindex
: Entry point for the applicationsocketMessages
: Utility for formatting and parsing messages send over the websocketutils
: Utility functionsws
: Websocket clientstyle.css
: Custom styles that are not achievable using TailwindCSS defaults
vendors
: Third party JS and CSS which don't have an NPM package.eslintrc.json
: ESLint configuration.gitignore
: Git ignore filebabel.config.json
: Babel configurationindex.ejs
: The template for the index.html filejest-puppeteer.config.js
: Puppeteer configuration for Jestjest.config.js
: Jest configurationjsdoc.json
: JSDoc configurationpackage.json
: NPM package configurationpostcss.config.js
: PostCSS configurationprettier.config.js
: Prettier configurationREADME.md
: The READMEtailwind.config.js
: The config file for TailwindCSS. Recommended by TailwindCSS documentationwebpack.config.js
: Webpack configuration