mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-05 10:34:54 +00:00
d178092c2a
Verto Communicator is a web interface built on top of Verto and AngularJS. Brought to you by Evolux Sistemas and FreeSWITCH team. :) FS-7795 - implements fullscreen menu and doubleclick function. FS-7795 - added chat icon on fullscreen video FS-7796 - fix missing tooltips in call icons FS-7796 - fix tooltip position FS-7798 - implements change login information in modal view FS-7828 - fix esc key bug when leave fullscren mode. Using css instead of javascript in fullscreen for elements manipulation. FS-7826 - fix chat sender id with name instead of extension FS-7831 - remove demo from title FS-7841 - fix compatibility verification FS-7842 - 'settings' data persistent FS-7859 - moved popup down FS-7827 - added screen share functionality FS-7857 - default name for source media FS-7879 - prompt before logout [incall] FS-7873 - querystring for autocall FS-7875 - persist login and password password FS-7877 - phone feature: hold, transfer, incoming, answer, decline, call direction in history FS-7878 - small devices FS-7881 - added modal dialog for contributors
93 lines
2.1 KiB
JavaScript
93 lines
2.1 KiB
JavaScript
'use strict';
|
|
|
|
/* App Module */
|
|
|
|
var vertoApp = angular.module('vertoApp', [
|
|
'timer',
|
|
'ngRoute',
|
|
'vertoControllers',
|
|
'vertoDirectives',
|
|
'vertoFilters',
|
|
'ngStorage',
|
|
'ngAnimate',
|
|
'toastr',
|
|
'FBAngular',
|
|
'cgPrompt',
|
|
'720kb.tooltips',
|
|
'ui.gravatar',
|
|
]);
|
|
|
|
vertoApp.config(['$routeProvider',
|
|
function($routeProvider) {
|
|
$routeProvider.
|
|
when('/login', {
|
|
title: 'Login',
|
|
templateUrl: 'partials/login.html',
|
|
controller: 'LoginController'
|
|
}).
|
|
when('/dialpad', {
|
|
title: 'Dialpad',
|
|
templateUrl: 'partials/dialpad.html',
|
|
controller: 'DialPadController'
|
|
}).
|
|
when('/incall', {
|
|
title: 'In a Call',
|
|
templateUrl: 'partials/incall.html',
|
|
controller: 'InCallController'
|
|
}).
|
|
/*when('/contributors', {
|
|
title: 'Contributors',
|
|
templateUrl: 'partials/contributors.html',
|
|
controller: 'ContributorsController',
|
|
}).*/
|
|
when('/browser-upgrade', {
|
|
title: '',
|
|
templateUrl: 'partials/browser_upgrade.html',
|
|
controller: 'BrowserUpgradeController'
|
|
}).
|
|
otherwise({
|
|
redirectTo: '/login'
|
|
});
|
|
}]);
|
|
|
|
vertoApp.run(['$rootScope', '$location', 'toastr', 'prompt',
|
|
function($rootScope, $location, toastr, prompt) {
|
|
$rootScope.$on('$routeChangeSuccess', function (event, current, previous) {
|
|
$rootScope.title = current.$$route.title;
|
|
});
|
|
|
|
$rootScope.safeProtocol = false;
|
|
|
|
if(window.location.protocol == 'https:') {
|
|
$rootScope.safeProtocol = true;
|
|
}
|
|
|
|
$rootScope.checkBrowser = function() {
|
|
navigator.getUserMedia = navigator.getUserMedia ||
|
|
navigator.webkitGetUserMedia ||
|
|
navigator.mozGetUserMedia;
|
|
|
|
if (!navigator.getUserMedia) {
|
|
$location.path('/browser-upgrade');
|
|
}
|
|
|
|
};
|
|
|
|
$rootScope.promptInput = function(title, message, label, callback) {
|
|
var ret = prompt({
|
|
title: title,
|
|
message: message,
|
|
input: true,
|
|
label: label
|
|
}).then(function (ret) {
|
|
if (angular.isFunction(callback)) {
|
|
callback(ret);
|
|
}
|
|
}, function() {
|
|
|
|
});
|
|
|
|
};
|
|
|
|
}]);
|