Skip to content

WebTrit/webtrit_dialer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebTrit Dialer

WebTrit Dialer is a reference implementation of a client web application for the WebTrit system.
It provides basic call functionality along with contacts and call history viewing.

The application is built using:

Project Setup for Development

Ensure your development environment meets the following requirements:


Create local dotenv config with desired env variables' values
cp .env.example .env.local
Install dependencies
npm install
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build
Run your unit tests
npm run test:unit
Run your end-to-end tests
npm run test:e2e
Lints and fixes files
npm run lint

Docker container

WebTrit Dialer docker image is NGINX Web server with built WebTrit Dialer code.

Configuration via environment variables

Env variables descriptions:

  • VUE_APP_PUBLIC_PATH - optional application bundle base URL (without / at the end) (examples: /sub-path)
  • VUE_APP_GTM - optional Google Tag Manager container IDs (examples: GTM-xxxxxx, GTM-xxxxxx, GTM-yyyyyy)
  • VUE_APP_WEBTRIT_APP_NAME - branding app name
  • VUE_APP_WEBTRIT_APP_SUBNAME - branding app sub-name
  • VUE_APP_WEBTRIT_COMPANY_NAME - branding company name
  • VUE_APP_WEBTRIT_COMPANY_URL - branding company URL
  • VUE_APP_WEBTRIT_COMPANY_LOGO_IMG_SRC - branding company image source path related to the directory with overwritten and added files (optional)
  • VUE_APP_WEBTRIT_CORE_URL - WebTrit Core URL
  • VUE_APP_WEBTRIT_NAVIGATION_DRAWER_MINIMIZING - can the main navigation menu be minimized, default: true
  • VUE_APP_WEBTRIT_RECORDING_PLAY_BUTTON_DISABLE - don't show play button for records, default: false
  • VUE_APP_UPDATE_INFO_INTERVAL - optional interval for retrieving user information in milliseconds, default: 60000
  • VUE_APP_UPDATE_CONTACTS_INTERVAL - optional interval for retrieving contacts in milliseconds, default: 0 (where 0 is a special value that disables periodic updates)

Env variable of the set color palette. Specified through HEX color. Some colors have a default value.

  • VUE_APP_COLOR_PRIMARY - default: #F5841F
  • VUE_APP_COLOR_SECONDARY - default: #F5841F
  • VUE_APP_COLOR_ACCENT - default: #F5841F
  • VUE_APP_COLOR_SURFACE - default: #4C86B7
  • VUE_APP_COLOR_ERROR
  • VUE_APP_COLOR_INFO
  • VUE_APP_COLOR_SUCCESS
  • VUE_APP_COLOR_WARNING
  • VUE_APP_COLOR_ANCHOR

Configuration via query parameters

  • Add to query parameter mode to activate additional functionality. Currently, it supports the following values:
    • mst - activate configuration related to Microsoft Teams (such as prevent navigation drawer minimization), ex.: dailer.webtrit.com?mode=mst;
  • Add to query parameter tenant with value of tenant_id to choose another Adaptee to dialer communicate, ex.: dailer.webtrit.com?tenant=special_adapter;

Run

docker build --tag webtrit-dialer .

docker run --detach --restart always \
--name webtrit-dialer \
--env VUE_APP_WEBTRIT_COMPANY_NAME="WebTrit" \
--env VUE_APP_WEBTRIT_CORE_URL="https://core.webtrit.com" \
-p 127.0.0.1:4001:80 \
--mount type=bind,source=<directory with overwrited and added files>,target=/usr/share/nginx/html_overwrite \
webtrit-dialer

Image

WebTrit Dialer docker image built automatically by GitHub Actions with next tags:

  • main - last pushed main branch
  • latest - last pushed tag
  • x.y.z - corresponding pushed tag
  • x.y - automatically stripped pushed tag to collect last patch of respective tags

About

WebTrit Dialer web application.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages