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:
Ensure your development environment meets the following requirements:
-
Git LFS
This project uses the Git Large File Storage (LFS) extension.
Make sure it is installed and initialized in your Git environment. -
Node.js
Version: 14.x - 16.x
Download Node.js -
Python
Version: 3.9 - 3.11
Download Python
cp .env.example .env.local
npm install
npm run serve
npm run build
npm run test:unit
npm run test:e2e
npm run lint
WebTrit Dialer docker image is NGINX Web server with built WebTrit Dialer code.
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 nameVUE_APP_WEBTRIT_APP_SUBNAME
- branding app sub-nameVUE_APP_WEBTRIT_COMPANY_NAME
- branding company nameVUE_APP_WEBTRIT_COMPANY_URL
- branding company URLVUE_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 URLVUE_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
(where0
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
- 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 oftenant_id
to choose another Adaptee to dialer communicate, ex.:dailer.webtrit.com?tenant=special_adapter
;
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
WebTrit Dialer docker image built automatically by GitHub Actions with next tags:
main
- last pushedmain
branchlatest
- last pushed tagx.y.z
- corresponding pushed tagx.y
- automatically stripped pushed tag to collect last patch of respective tags