Giter Site home page Giter Site logo

serdun / webtrit_dialer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from webtrit/webtrit_dialer

0.0 0.0 0.0 1.9 MB

WebTrit Dialer web application.

License: MIT License

Shell 0.15% JavaScript 61.14% CSS 0.01% HTML 0.26% Vue 38.32% Dockerfile 0.12%

webtrit_dialer's Introduction

WebTrit Dialer

WebTrit Dialer is a reference implementation of the client Web app of the WebTrit system. It implements basic call functionality with contacts and history viewing functionality.

WebTrit Dialer is implemented based on the WebTrit Signaling TypeScript client and Vue.js with Vuetify.

Project setup for developing

The project uses Git LFS extension, which is why to operate with the repository Git LFS extension must be installed in a developer environment.

Creat local dotenv config with desired env variables' values
cp .env.example .env.local
Install dependencies
npm install
cd ./local_modules/peer-connection
npm install
npm run build
npm link
cd ../../
npm link peer-connection
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

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_DEMO_BEHAVIOUR - select log-in variation
    • unset variable or false or disable - only by phone number of existing account
    • true or enable - only by user email mapped to a demo account
    • mix or both - allow both previous variants
  • 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

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

Runtime

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;

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

webtrit_dialer's People

Contributors

ycherniavskyi avatar dmitriychernyavskiy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.