From 552d5af114f33f805b5468199adc6233640d5837 Mon Sep 17 00:00:00 2001 From: volodalexey Date: Fri, 2 Oct 2015 22:52:47 +0300 Subject: [PATCH] Production --- README.md | 12 +- production/all.min.js | 351 ++++++++++++++++++++++-------------------- production/index.html | 4 +- 3 files changed, 188 insertions(+), 179 deletions(-) diff --git a/README.md b/README.md index 550eec9..f233f3c 100644 --- a/README.md +++ b/README.md @@ -6,13 +6,9 @@ SPACHAT - web application for communication between browsers with the help of We https://s-p-a-chat.herokuapp.com/ > Only Chrome is tested now -> After login you will see "shield" in Chrome - -> To use chat you need to enable "load unsafe script" by clicking on "shield" in address bar - ##### To connect to each other make following (just a test connection peer-to-peer users): -- A: create user & login & enable unsafe script -- B: create user & login & enable unsafe script +- A: create user & login +- B: create user & login - A: goes to right panel and copies user id - A: sends this user id to B (e.g. by email) - A: goes to left panel "make friends" @@ -25,8 +21,8 @@ https://s-p-a-chat.herokuapp.com/ After WebRTC find the way to each other A and B should have friends under "My users" ##### To connect to chat make following: -- A: create user & login & enable unsafe script -- B: create user & login & enable unsafe script +- A: create user & login +- B: create user & login - A: goes to left panel under "Create chat" - A: clicks "auto handshake" & sees new chat - A: goes to opened chat "settings" and copies chat id diff --git a/production/all.min.js b/production/all.min.js index e331c85..5d84178 100644 --- a/production/all.min.js +++ b/production/all.min.js @@ -3742,20 +3742,186 @@ define('id_core', [ return id_core; } ); +define('text!../templates/popap_template.ejs',[],function () { return '<% _in.config._byDataLocation = {};\n_in.config._byDataLocation.body = _in.config.byDataLocation.body;\n_in.config._byDataLocation.footer = _in.config.byDataLocation.footer;\n%>\n
\n <% if (_in.config && _in.config.byDataLocation) {%>\n <%= _in.location_wrapper_template({\n config: _in.config.byDataLocation.header,\n data: _in.data ? _in.data : {},\n triple_element_template: _in.triple_element_template,\n button_template: _in.button_template,\n input_template: _in.input_template,\n label_template: _in.label_template,\n description: _in.description\n }) %>\n <% } %>\n
\n\n<% if (_in.config && _in.config._byDataLocation) {\n for (var locationKey in _in.config._byDataLocation) { %>\n<%= _in.location_wrapper_template({\n config: _in.config._byDataLocation[locationKey],\n data: _in.data ? _in.data : {},\n triple_element_template: _in.triple_element_template,\n button_template: _in.button_template,\n input_template: _in.input_template,\n label_template: _in.label_template,\n description: _in.description\n}) %>\n<% }\n} %>';}); + +define('text!../configs/popap/confirm_config.json',[],function () { return '[\n {\n "role": "locationWrapper",\n "classList": "p-r-l-04em color-blue title-popap",\n "location": "header"\n },\n {\n "element": "label",\n "text": 80,\n "class": "c-50 p-r-l-04em",\n "location": "header",\n "data": {\n "role": ""\n }\n },\n\n {\n "role": "locationWrapper",\n "classList": "w-100p p-t-b flex-sp-between",\n "location": "body"\n },\n {\n "element": "label",\n "text": "",\n "class": "p-b-1em p-r-l-1em",\n "location": "body",\n "data": {\n "role": "",\n "key": "body_text"\n }\n },\n\n {\n "role": "locationWrapper",\n "classList": "flex-sp-around p-05em border-popap-footer",\n "location": "footer"\n },\n {\n "element": "button",\n "location": "footer",\n "class": "border-radius-04em p-tb-03em-lr-1em",\n "text": 42,\n "data": {\n "action": "confirmCancel",\n "description": 98\n }\n },\n {\n "element": "button",\n "location": "footer",\n "class": "border-radius-04em p-tb-03em-lr-1em",\n "text": 97,\n "data": {\n "action": "confirmOk",\n "description": 99\n }\n }\n]';}); + +define('text!../configs/popap/error_config.json',[],function () { return '[\n {\n "role": "locationWrapper",\n "classList": "p-r-l-04em color-red title-popap",\n "location": "header"\n },\n {\n "element": "label",\n "text": 84,\n "class": "c-50 p-r-l-04em",\n "location": "header",\n "data": {\n "role": ""\n }\n },\n\n {\n "role": "locationWrapper",\n "classList": "w-100p p-t-b flex-sp-between",\n "location": "body"\n },\n {\n "element": "label",\n "text": "",\n "class": "p-b-1em p-r-l-1em",\n "location": "body",\n "data": {\n "role": "",\n "key": "body_text"\n }\n },\n\n {\n "role": "locationWrapper",\n "classList": "flex-sp-around p-05em border-popap-footer",\n "location": "footer"\n },\n {\n "element": "button",\n "location": "footer",\n "class": "border-radius-04em p-tb-03em-lr-1em",\n "text": 20,\n "data": {\n "action": "confirmCancel",\n "description": 21\n }\n }\n]';}); + +define('text!../configs/popap/succes_config.json',[],function () { return '[\n {\n "role": "locationWrapper",\n "classList": "p-r-l-04em color-green title-popap",\n "location": "header"\n },\n {\n "element": "label",\n "text": 85,\n "class": "c-50 p-r-l-04em",\n "location": "header",\n "data": {\n "role": ""\n }\n },\n\n {\n "role": "locationWrapper",\n "classList": "w-100p p-t-b flex-sp-between",\n "location": "body"\n },\n {\n "element": "label",\n "text": "",\n "class": "p-b-1em p-r-l-1em",\n "location": "body",\n "data": {\n "role": "",\n "key": "body_text"\n }\n },\n\n {\n "role": "locationWrapper",\n "classList": "flex-sp-around p-05em border-popap-footer",\n "location": "footer"\n },\n {\n "element": "button",\n "location": "footer",\n "class": "border-radius-04em p-tb-03em-lr-1em",\n "text": 20,\n "data": {\n "action": "confirmCancel",\n "description": 21\n }\n }\n]';}); + +define('popap_manager', [ + 'throw_event_core', + 'extend_core', + 'template_core', + 'render_layout_core', + 'dom_core', + // + 'text!../templates/element/triple_element_template.ejs', + 'text!../templates/popap_template.ejs', + 'text!../templates/element/location_wrapper_template.ejs', + 'text!../templates/element/button_template.ejs', + 'text!../templates/element/label_template.ejs', + 'text!../templates/element/input_template.ejs', + // + 'text!../configs/popap/confirm_config.json', + 'text!../configs/popap/error_config.json', + 'text!../configs/popap/succes_config.json' + + ], + function(throw_event_core, + extend_core, + template_core, + render_layout_core, + dom_core, + // + triple_element_template, + popap_template, + location_wrapper_template, + button_template, + label_template, + input_template, + // + confirm_config, + error_config, + succes_config) { + + var popap_manager = function() { + this.bindMainContexts(); + }; + + popap_manager.prototype = { + + MODE: { + POPAP: 'POPAP' + }, + + confirm_config: JSON.parse(confirm_config), + error_config: JSON.parse(error_config), + succes_config: JSON.parse(succes_config), + + bindMainContexts: function() { + var _this = this; + _this.bindedOnDataActionClick = _this.onDataActionClick.bind(_this); + }, + + cashElements: function() { + var _this = this; + _this.popapOuterContainer = document.querySelector('[data-role="popap_outer_container"]'); + _this.popapContainer = document.querySelector('[data-role="popap_inner_container"]'); + }, + + unCashElements: function() { + var _this = this; + _this.popapOuterContainer = null; + _this.popapContainer = null; + }, + + render: function(options) { + var _this = this; + _this.body_mode = _this.MODE.POPAP; + _this.elementMap = { + "POPAP": _this.popapContainer + }; + _this.config = _this.prepareConfig(options.config); + _this.fillBody(null, {"type": options.type}, options, function(){ + _this.popapOuterContainer.classList.remove('hidden-popap'); + _this.popapOuterContainer.classList.add('in'); + }); + }, + + renderPopap: function(type, options, onDataActionClick) { + var _this = this, config; + _this.onDataActionClick = onDataActionClick; + switch (type) { + case 'confirm': + config = _this.confirm_config; + break; + case 'error': + config = _this.error_config; + console.warn(options); + break; + case 'success': + config = _this.succes_config; + break; + } + this.render({ + "body_text": typeof options.message === "number" ? window.getLocText(options.message) : options.message, + "config": config, + "type": type + }); + }, + + onDataActionClick: function(event) { + var _this = this; + if (_this.onDataActionClick) { + var element = _this.getDataParameter(event.target, 'action'); + if (element) { + _this.onDataActionClick(element.dataset.action); + } + } + }, + + onClose: function() { + var _this = this; + _this.popapOuterContainer.classList.remove('in'); + _this.popapOuterContainer.classList.add('hidden-popap'); + _this.popapContainer.innerHTML = null; + _this.onDataActionClick = null; + }, + + onHandlers: function() { + var _this = this; + _this.offHandlers(); + _this.addRemoveListener('add', _this.popapContainer, 'click', _this.bindedOnDataActionClick, false); + }, + + offHandlers: function() { + var _this = this; + _this.addRemoveListener('remove', _this.popapContainer, 'click', _this.bindedOnDataActionClick, false); + }, + + destroy: function() { + var _this = this; + } + }; + + extend_core.prototype.inherit(popap_manager, throw_event_core); + extend_core.prototype.inherit(popap_manager, template_core); + extend_core.prototype.inherit(popap_manager, render_layout_core); + extend_core.prototype.inherit(popap_manager, dom_core); + + popap_manager.prototype.triple_element_template = popap_manager.prototype.template(triple_element_template); + popap_manager.prototype.location_wrapper_template = popap_manager.prototype.template(location_wrapper_template); + popap_manager.prototype.button_template = popap_manager.prototype.template(button_template); + popap_manager.prototype.label_template = popap_manager.prototype.template(label_template); + popap_manager.prototype.input_template = popap_manager.prototype.template(input_template); + popap_manager.prototype.popap_template = popap_manager.prototype.template(popap_template); + + popap_manager.prototype.templateMap = { + "POPAP": popap_manager.prototype.popap_template + }; + + return new popap_manager(); + }); + define('websocket', [ 'throw_event_core', 'extend_core', - 'id_core' + 'id_core', + 'popap_manager' ], function( throw_event_core, extend_core, - id_core + id_core, + popap_manager ) { var websocket = function() { this.bindContexts(); this.responseCallbacks = []; + this.protocol = window.location.origin.indexOf('https') >= 0 ? 'wss://' : 'ws://'; }; websocket.prototype = { @@ -3776,7 +3942,7 @@ define('websocket', [ }, create: function() { - this.socket = new WebSocket('ws://' + window.location.host + this.href); + this.socket = new WebSocket(this.protocol + window.location.host + this.href); }, dispose: function() { @@ -3818,9 +3984,19 @@ define('websocket', [ if (event.wasClean) { console.warn('WebSocket connection closed'); } else { - console.error(new Error('WebSocket connection abort')); + popap_manager.renderPopap( + 'error', + {message: 103}, + function(action) { + switch (action) { + case 'confirmCancel': + popap_manager.onClose(); + break; + } + } + ); } - console.log('Code: ' + event.code + ' reason: ' + event.reason); + console.warn('Code: ' + event.code + ' reason: ' + event.reason); }, onMessage: function(event) { @@ -6413,169 +6589,6 @@ define('filter', [ return filter; } ); -define('text!../templates/popap_template.ejs',[],function () { return '<% _in.config._byDataLocation = {};\n_in.config._byDataLocation.body = _in.config.byDataLocation.body;\n_in.config._byDataLocation.footer = _in.config.byDataLocation.footer;\n%>\n
\n <% if (_in.config && _in.config.byDataLocation) {%>\n <%= _in.location_wrapper_template({\n config: _in.config.byDataLocation.header,\n data: _in.data ? _in.data : {},\n triple_element_template: _in.triple_element_template,\n button_template: _in.button_template,\n input_template: _in.input_template,\n label_template: _in.label_template,\n description: _in.description\n }) %>\n <% } %>\n
\n\n<% if (_in.config && _in.config._byDataLocation) {\n for (var locationKey in _in.config._byDataLocation) { %>\n<%= _in.location_wrapper_template({\n config: _in.config._byDataLocation[locationKey],\n data: _in.data ? _in.data : {},\n triple_element_template: _in.triple_element_template,\n button_template: _in.button_template,\n input_template: _in.input_template,\n label_template: _in.label_template,\n description: _in.description\n}) %>\n<% }\n} %>';}); - -define('text!../configs/popap/confirm_config.json',[],function () { return '[\n {\n "role": "locationWrapper",\n "classList": "p-r-l-04em color-blue title-popap",\n "location": "header"\n },\n {\n "element": "label",\n "text": 80,\n "class": "c-50 p-r-l-04em",\n "location": "header",\n "data": {\n "role": ""\n }\n },\n\n {\n "role": "locationWrapper",\n "classList": "w-100p p-t-b flex-sp-between",\n "location": "body"\n },\n {\n "element": "label",\n "text": "",\n "class": "p-b-1em p-r-l-1em",\n "location": "body",\n "data": {\n "role": "",\n "key": "body_text"\n }\n },\n\n {\n "role": "locationWrapper",\n "classList": "flex-sp-around p-05em border-popap-footer",\n "location": "footer"\n },\n {\n "element": "button",\n "location": "footer",\n "class": "border-radius-04em p-tb-03em-lr-1em",\n "text": 42,\n "data": {\n "action": "confirmCancel",\n "description": 98\n }\n },\n {\n "element": "button",\n "location": "footer",\n "class": "border-radius-04em p-tb-03em-lr-1em",\n "text": 97,\n "data": {\n "action": "confirmOk",\n "description": 99\n }\n }\n]';}); - -define('text!../configs/popap/error_config.json',[],function () { return '[\n {\n "role": "locationWrapper",\n "classList": "p-r-l-04em color-red title-popap",\n "location": "header"\n },\n {\n "element": "label",\n "text": 84,\n "class": "c-50 p-r-l-04em",\n "location": "header",\n "data": {\n "role": ""\n }\n },\n\n {\n "role": "locationWrapper",\n "classList": "w-100p p-t-b flex-sp-between",\n "location": "body"\n },\n {\n "element": "label",\n "text": "",\n "class": "p-b-1em p-r-l-1em",\n "location": "body",\n "data": {\n "role": "",\n "key": "body_text"\n }\n },\n\n {\n "role": "locationWrapper",\n "classList": "flex-sp-around p-05em border-popap-footer",\n "location": "footer"\n },\n {\n "element": "button",\n "location": "footer",\n "class": "border-radius-04em p-tb-03em-lr-1em",\n "text": 20,\n "data": {\n "action": "confirmCancel",\n "description": 21\n }\n }\n]';}); - -define('text!../configs/popap/succes_config.json',[],function () { return '[\n {\n "role": "locationWrapper",\n "classList": "p-r-l-04em color-green title-popap",\n "location": "header"\n },\n {\n "element": "label",\n "text": 85,\n "class": "c-50 p-r-l-04em",\n "location": "header",\n "data": {\n "role": ""\n }\n },\n\n {\n "role": "locationWrapper",\n "classList": "w-100p p-t-b flex-sp-between",\n "location": "body"\n },\n {\n "element": "label",\n "text": "",\n "class": "p-b-1em p-r-l-1em",\n "location": "body",\n "data": {\n "role": "",\n "key": "body_text"\n }\n },\n\n {\n "role": "locationWrapper",\n "classList": "flex-sp-around p-05em border-popap-footer",\n "location": "footer"\n },\n {\n "element": "button",\n "location": "footer",\n "class": "border-radius-04em p-tb-03em-lr-1em",\n "text": 20,\n "data": {\n "action": "confirmCancel",\n "description": 21\n }\n }\n]';}); - -define('popap_manager', [ - 'throw_event_core', - 'extend_core', - 'template_core', - 'render_layout_core', - 'dom_core', - // - 'text!../templates/element/triple_element_template.ejs', - 'text!../templates/popap_template.ejs', - 'text!../templates/element/location_wrapper_template.ejs', - 'text!../templates/element/button_template.ejs', - 'text!../templates/element/label_template.ejs', - 'text!../templates/element/input_template.ejs', - // - 'text!../configs/popap/confirm_config.json', - 'text!../configs/popap/error_config.json', - 'text!../configs/popap/succes_config.json' - - ], - function(throw_event_core, - extend_core, - template_core, - render_layout_core, - dom_core, - // - triple_element_template, - popap_template, - location_wrapper_template, - button_template, - label_template, - input_template, - // - confirm_config, - error_config, - succes_config) { - - var popap_manager = function() { - this.bindMainContexts(); - }; - - popap_manager.prototype = { - - MODE: { - POPAP: 'POPAP' - }, - - confirm_config: JSON.parse(confirm_config), - error_config: JSON.parse(error_config), - succes_config: JSON.parse(succes_config), - - bindMainContexts: function() { - var _this = this; - _this.bindedOnDataActionClick = _this.onDataActionClick.bind(_this); - }, - - cashElements: function() { - var _this = this; - _this.popapOuterContainer = document.querySelector('[data-role="popap_outer_container"]'); - _this.popapContainer = document.querySelector('[data-role="popap_inner_container"]'); - }, - - unCashElements: function() { - var _this = this; - _this.popapOuterContainer = null; - _this.popapContainer = null; - }, - - render: function(options) { - var _this = this; - _this.body_mode = _this.MODE.POPAP; - _this.elementMap = { - "POPAP": _this.popapContainer - }; - _this.config = _this.prepareConfig(options.config); - _this.fillBody(null, {"type": options.type}, options, function(){ - _this.popapOuterContainer.classList.remove('hidden-popap'); - _this.popapOuterContainer.classList.add('in'); - }); - }, - - renderPopap: function(type, options, onDataActionClick) { - var _this = this, config; - _this.onDataActionClick = onDataActionClick; - switch (type) { - case 'confirm': - config = _this.confirm_config; - break; - case 'error': - config = _this.error_config; - console.warn(options); - break; - case 'success': - config = _this.succes_config; - break; - } - this.render({ - "body_text": typeof options.message === "number" ? window.getLocText(options.message) : options.message, - "config": config, - "type": type - }); - }, - - onDataActionClick: function(event) { - var _this = this; - if (_this.onDataActionClick) { - var element = _this.getDataParameter(event.target, 'action'); - if (element) { - _this.onDataActionClick(element.dataset.action); - } - } - }, - - onClose: function() { - var _this = this; - _this.popapOuterContainer.classList.remove('in'); - _this.popapOuterContainer.classList.add('hidden-popap'); - _this.popapContainer.innerHTML = null; - _this.onDataActionClick = null; - }, - - onHandlers: function() { - var _this = this; - _this.offHandlers(); - _this.addRemoveListener('add', _this.popapContainer, 'click', _this.bindedOnDataActionClick, false); - }, - - offHandlers: function() { - var _this = this; - _this.addRemoveListener('remove', _this.popapContainer, 'click', _this.bindedOnDataActionClick, false); - }, - - destroy: function() { - var _this = this; - } - }; - - extend_core.prototype.inherit(popap_manager, throw_event_core); - extend_core.prototype.inherit(popap_manager, template_core); - extend_core.prototype.inherit(popap_manager, render_layout_core); - extend_core.prototype.inherit(popap_manager, dom_core); - - popap_manager.prototype.triple_element_template = popap_manager.prototype.template(triple_element_template); - popap_manager.prototype.location_wrapper_template = popap_manager.prototype.template(location_wrapper_template); - popap_manager.prototype.button_template = popap_manager.prototype.template(button_template); - popap_manager.prototype.label_template = popap_manager.prototype.template(label_template); - popap_manager.prototype.input_template = popap_manager.prototype.template(input_template); - popap_manager.prototype.popap_template = popap_manager.prototype.template(popap_template); - - popap_manager.prototype.templateMap = { - "POPAP": popap_manager.prototype.popap_template - }; - - return new popap_manager(); - }); - define('text!../templates/chat_template.ejs',[],function () { return '\n';}); define('text!../templates/console_log_template.ejs',[],function () { return '
<%= _in.message %>
';}); @@ -11001,7 +11014,7 @@ define('main_layout', [ -define('text!../configs/localization_config.json',[],function () { return '[\n {\n "id": 1,\n "en": "Create chat",\n "ru": "Создать чат"\n },\n {\n "id": 2,\n "en": "Create chat with provided methods",\n "ru": "Создать чат одним из предложенных вариантов"\n },\n {\n "id": 3,\n "en": "Auto handshake",\n "ru": "Автоматическое создание"\n },\n {\n "id": 4,\n "en": "Manual handshake",\n "ru": "Ручное создание"\n },\n {\n "id": 5,\n "en": "Chat id",\n "ru": "Id чата"\n },\n {\n "id": 6,\n "en": "Join chat by chat id",\n "ru": "Присоединить чат по Id"\n },\n {\n "id": 7,\n "en": "Remote offer",\n "ru": "Удаленное предложение"\n },\n {\n "id": 8,\n "en": "Join chat by sdp",\n "ru": "Присоединить чат по sdp"\n },\n {\n "id": 9,\n "en": "User id",\n "ru": "Id контакта"\n },\n {\n "id": 10,\n "en": "Show chat",\n "ru": "Показать чат"\n },\n {\n "id": 11,\n "en": "Go to",\n "ru": "Перейти на"\n },\n {\n "id": 12,\n "en": "Off Scroll",\n "ru": "Выключить прокрутку"\n },\n {\n "id": 13,\n "en": "Connections",\n "ru": "Подключения"\n },\n {\n "id": 14,\n "en": "Format",\n "ru": "Форматирование"\n },\n {\n "id": 15,\n "en": "Show formatting toolbar",\n "ru": "Отобразить панель форматирования"\n },\n {\n "id": 16,\n "en": "Send",\n "ru": "Отправить"\n },\n {\n "id": 17,\n "en": "Send message",\n "ru": "Отправить сообщение"\n },\n {\n "id": 18,\n "en": "Clear",\n "ru": "Очистить"\n },\n {\n "id": 19,\n "en": "Show per page",\n "ru": "Показать на странице"\n },\n {\n "id": 20,\n "en": "Close",\n "ru": "Закрыть"\n },\n {\n "id": 21,\n "en": "Close chat",\n "ru": "Закрыть чат"\n },\n {\n "id": 22,\n "en": "Setting",\n "ru": "Настройки"\n },\n {\n "id": 23,\n "en": "Display settings Chat",\n "ru": "Отобразить настройки чата"\n },\n {\n "id": 24,\n "en": "ContactList",\n "ru": "Контакты"\n },\n {\n "id": 25,\n "en": "Display a contacts list",\n "ru": "Отобразить список контактов"\n },\n {\n "id": 26,\n "en": "Filter",\n "ru": "Фильтр"\n },\n {\n "id": 27,\n "en": "Display filter",\n "ru": "Отобразить фильтры"\n },\n {\n "id": 28,\n "en": "Enable pagination",\n "ru": "Включить нумерацию страниц"\n },\n {\n "id": 29,\n "en": "Join chat",\n "ru": "Присоединить чат"\n },\n {\n "id": 30,\n "en": "My chats",\n "ru": "Мои чаты"\n },\n {\n "id": 31,\n "en": "Display my chats",\n "ru": "Отобразить список чатов"\n },\n {\n "id": 32,\n "en": "My users",\n "ru": "Мои контакты"\n },\n {\n "id": 33,\n "en": "User info",\n "ru": "Данные пользователя"\n },\n {\n "id": 34,\n "en": "Console log",\n "ru": "Системные сообщения"\n },\n {\n "id": 35,\n "en": "Send Enter",\n "ru": "Отправлять по Enter"\n },\n {\n "id": 36,\n "en": "User name",\n "ru": "Имя контакта"\n },\n {\n "id": 37,\n "en": "Change",\n "ru": "Изменить"\n },\n {\n "id": 38,\n "en": "Logout",\n "ru": "Выйти"\n },\n {\n "id": 39,\n "en": "Old password",\n "ru": "Старый пароль"\n },\n {\n "id": 40,\n "en": "New password",\n "ru": "Новый пароль"\n },\n {\n "id": 41,\n "en": "Confirm password",\n "ru": "Подтверждение пароля"\n },\n {\n "id": 42,\n "en": "Cancel",\n "ru": "Отменить"\n },\n {\n "id": 43,\n "en": "Save",\n "ru": "Сохранить"\n },\n {\n "id": 44,\n "en": "From date",\n "ru": "С"\n },\n {\n "id": 45,\n "en": "to date",\n "ru": "по"\n },\n {\n "id": 46,\n "en": "Control panel contacts, chats, blogs",\n "ru": "Панель управления контактами, чатами, блогами"\n },\n {\n "id": 47,\n "en": "Panel settings of user data, connections",\n "ru": "Панель настроек данных пользователя, подключений"\n },\n {\n "id": 48,\n "en": "Register new user",\n "ru": "Зарегистрироваться"\n },\n {\n "id": 49,\n "en": "User name:",\n "ru": "Имя пользователя:"\n },\n {\n "id": 50,\n "en": "User password:",\n "ru": "Пароль пльзователя:"\n },\n {\n "id": 51,\n "en": "Login",\n "ru": "Войти"\n },\n {\n "id": 52,\n "en": "To login page",\n "ru": "Вернуться на страницу авторизации"\n },\n {\n "id": 53,\n "en": "Register",\n "ru": "Зарегистрировать"\n },\n {\n "id": 54,\n "en": "Go to the registration page",\n "ru": "Перейти на страницу регистрации"\n },\n {\n "id": 55,\n "en": "Register a new user",\n "ru": "Зарегистрировать нового пользователя"\n },\n {\n "id": 56,\n "en": "Save and close",\n "ru": "Сохранить и закрыть"\n },\n {\n "id": 57,\n "en": "Save setting and close",\n "ru": "Сохранить настройки и закрыть чат"\n },\n {\n "id": 58,\n "en": "Restore and show chat",\n "ru": "Восстановить и показать чат"\n },\n {\n "id": 59,\n "en": "Chat Messages",\n "ru": "Чат сообщений"\n },\n {\n "id": 60,\n "en": "Web RTC Initialization",\n "ru": "Web RTC инициализация"\n },\n {\n "id": 61,\n "en": "Messages",\n "ru": "Сообщения"\n },\n {\n "id": 62,\n "en": "Show chat messages",\n "ru": "Показать сообщения чата"\n },\n {\n "id": 63,\n "en": "Create a blog",\n "ru": "Создать блог"\n },\n {\n "id": 64,\n "en": "Connect blog",\n "ru": "Подключиться к блогу"\n },\n {\n "id": 65,\n "en": "My blogs",\n "ru": "Мои блоги"\n },\n {\n "id": 66,\n "en": "Make friends",\n "ru": "Подружиться"\n },\n {\n "id": 67,\n "en": "User id",\n "ru": "Id пользователя"\n },\n {\n "id": 68,\n "en": "Send request",\n "ru": "Запросить дружбу"\n },\n {\n "id": 69,\n "en": "Ready for request",\n "ru": "Ожидать запрос"\n },\n {\n "id": 70,\n "en": "350 px",\n "ru": "350 px"\n },\n {\n "id": 71,\n "en": "700 px",\n "ru": "700 px"\n },\n {\n "id": 72,\n "en": "1050 px",\n "ru": "1050 px"\n },\n {\n "id": 73,\n "en": "Custom",\n "ru": "Пользовательская"\n },\n {\n "id": 74,\n "en": "Width chat",\n "ru": "Ширина чата"\n },\n {\n "id": 75,\n "en": "Save as a custom width",\n "ru": "Сохранить как пользователькую"\n },\n {\n "id": 76,\n "en": "Adjust width",\n "ru": "Настроить ширину"\n },\n {\n "id": 77,\n "en": "Request message",\n "ru": "Сообщение для запроса"\n },\n {\n "id": 78,\n "en": "Save setting",\n "ru": "Сохранить настройки"\n },\n {\n "id": 79,\n "en": "Ready for new chat users requests",\n "ru": "Ожидать новых пользователей"\n },\n {\n "id": 80,\n "en": "Confirm",\n "ru": "Подтверждение"\n },\n {\n "id": 81,\n "en": "Save settings this chat ?",\n "ru": "Сохранить текущие настройки данного чата ?"\n },\n {\n "id": 82,\n "en": "Save settings this chat and close it ?",\n "ru": "Сохранить текущие настройки данного чата и закрыть его ?"\n },\n {\n "id": 83,\n "en": "Close this chat ?",\n "ru": "Закрыть данный чат ?"\n },\n {\n "id": 84,\n "en": "Error",\n "ru": "Ошибка"\n },\n {\n "id": 85,\n "en": "Success",\n "ru": "Успех"\n },\n {\n "id": 86,\n "en": "Chat is not found in the database!",\n "ru": "Чат не найден в базе данных!"\n },\n {\n "id": 87,\n "en": "User with such username or password not found!",\n "ru": "Пользователь с таким именем и паролем не найден!"\n },\n {\n "id": 88,\n "en": "All fields are required!",\n "ru": "Все поля обязательны для заполнения!"\n },\n {\n "id": 89,\n "en": "Not enough information to make a request! User id and request message are required!",\n "ru": "Не достаточно информации, чтобы сделать запрос! Заполните идентификатор пользователя и сообщение запроса!"\n },\n {\n "id": 90,\n "en": "Not enough information to make a request! Chat id and request message are required!",\n "ru": "Не достаточно информации, чтобы сделать запрос! Заполните идентификатор чата и сообщение запроса!"\n },\n {\n "id": 91,\n "en": "Passwords don\'t match!",\n "ru": "Пароли не совпадают!"\n },\n {\n "id": 92,\n "en": "Invalid input options for render.",\n "ru": "Недопустимые опции ввода для визуализации."\n },\n {\n "id": 93,\n "en": "Chat is already opened!",\n "ru": "Чат уже открыт!"\n },\n {\n "id": 94,\n "en": "New password and confirm password do not match!",\n "ru": "Новый пароль и подтверждение пароля не совпадают!"\n },\n {\n "id": 95,\n "en": "Old password is not correct!",\n "ru": "Старый пароль введен неверно!"\n },\n {\n "id": 96,\n "en": "Registered",\n "ru": "Зарегистрирован"\n },\n {\n "id": 97,\n "en": "Submit",\n "ru": "Подтвердить"\n },\n {\n "id": 98,\n "en": "Undo without saving",\n "ru": "Отменить действие без сохранения данных"\n },\n {\n "id": 99,\n "en": "Confirm the action described in the message",\n "ru": "Подтвердить действие описанное в сообщении"\n },\n {\n "id": 100,\n "en": "Language:",\n "ru": "Язык:"\n },\n {\n "id": 101,\n "en": "Chats and panels will be closed without saving the data. Continue?",\n "ru": "Чаты и панели будут закрыты без сохранения данных. Продолжить?"\n },\n {\n "id": 102,\n "en": "User with such username is already exist!",\n "ru": "Пользователь с таким именем уже существует!"\n }\n]';}); +define('text!../configs/localization_config.json',[],function () { return '[\n {\n "id": 1,\n "en": "Create chat",\n "ru": "Создать чат"\n },\n {\n "id": 2,\n "en": "Create chat with provided methods",\n "ru": "Создать чат одним из предложенных вариантов"\n },\n {\n "id": 3,\n "en": "Auto handshake",\n "ru": "Автоматическое создание"\n },\n {\n "id": 4,\n "en": "Manual handshake",\n "ru": "Ручное создание"\n },\n {\n "id": 5,\n "en": "Chat id",\n "ru": "Id чата"\n },\n {\n "id": 6,\n "en": "Join chat by chat id",\n "ru": "Присоединить чат по Id"\n },\n {\n "id": 7,\n "en": "Remote offer",\n "ru": "Удаленное предложение"\n },\n {\n "id": 8,\n "en": "Join chat by sdp",\n "ru": "Присоединить чат по sdp"\n },\n {\n "id": 9,\n "en": "User id",\n "ru": "Id контакта"\n },\n {\n "id": 10,\n "en": "Show chat",\n "ru": "Показать чат"\n },\n {\n "id": 11,\n "en": "Go to",\n "ru": "Перейти на"\n },\n {\n "id": 12,\n "en": "Off Scroll",\n "ru": "Выключить прокрутку"\n },\n {\n "id": 13,\n "en": "Connections",\n "ru": "Подключения"\n },\n {\n "id": 14,\n "en": "Format",\n "ru": "Форматирование"\n },\n {\n "id": 15,\n "en": "Show formatting toolbar",\n "ru": "Отобразить панель форматирования"\n },\n {\n "id": 16,\n "en": "Send",\n "ru": "Отправить"\n },\n {\n "id": 17,\n "en": "Send message",\n "ru": "Отправить сообщение"\n },\n {\n "id": 18,\n "en": "Clear",\n "ru": "Очистить"\n },\n {\n "id": 19,\n "en": "Show per page",\n "ru": "Показать на странице"\n },\n {\n "id": 20,\n "en": "Close",\n "ru": "Закрыть"\n },\n {\n "id": 21,\n "en": "Close chat",\n "ru": "Закрыть чат"\n },\n {\n "id": 22,\n "en": "Setting",\n "ru": "Настройки"\n },\n {\n "id": 23,\n "en": "Display settings Chat",\n "ru": "Отобразить настройки чата"\n },\n {\n "id": 24,\n "en": "ContactList",\n "ru": "Контакты"\n },\n {\n "id": 25,\n "en": "Display a contacts list",\n "ru": "Отобразить список контактов"\n },\n {\n "id": 26,\n "en": "Filter",\n "ru": "Фильтр"\n },\n {\n "id": 27,\n "en": "Display filter",\n "ru": "Отобразить фильтры"\n },\n {\n "id": 28,\n "en": "Enable pagination",\n "ru": "Включить нумерацию страниц"\n },\n {\n "id": 29,\n "en": "Join chat",\n "ru": "Присоединить чат"\n },\n {\n "id": 30,\n "en": "My chats",\n "ru": "Мои чаты"\n },\n {\n "id": 31,\n "en": "Display my chats",\n "ru": "Отобразить список чатов"\n },\n {\n "id": 32,\n "en": "My users",\n "ru": "Мои контакты"\n },\n {\n "id": 33,\n "en": "User info",\n "ru": "Данные пользователя"\n },\n {\n "id": 34,\n "en": "Console log",\n "ru": "Системные сообщения"\n },\n {\n "id": 35,\n "en": "Send Enter",\n "ru": "Отправлять по Enter"\n },\n {\n "id": 36,\n "en": "User name",\n "ru": "Имя контакта"\n },\n {\n "id": 37,\n "en": "Change",\n "ru": "Изменить"\n },\n {\n "id": 38,\n "en": "Logout",\n "ru": "Выйти"\n },\n {\n "id": 39,\n "en": "Old password",\n "ru": "Старый пароль"\n },\n {\n "id": 40,\n "en": "New password",\n "ru": "Новый пароль"\n },\n {\n "id": 41,\n "en": "Confirm password",\n "ru": "Подтверждение пароля"\n },\n {\n "id": 42,\n "en": "Cancel",\n "ru": "Отменить"\n },\n {\n "id": 43,\n "en": "Save",\n "ru": "Сохранить"\n },\n {\n "id": 44,\n "en": "From date",\n "ru": "С"\n },\n {\n "id": 45,\n "en": "to date",\n "ru": "по"\n },\n {\n "id": 46,\n "en": "Control panel contacts, chats, blogs",\n "ru": "Панель управления контактами, чатами, блогами"\n },\n {\n "id": 47,\n "en": "Panel settings of user data, connections",\n "ru": "Панель настроек данных пользователя, подключений"\n },\n {\n "id": 48,\n "en": "Register new user",\n "ru": "Зарегистрироваться"\n },\n {\n "id": 49,\n "en": "User name:",\n "ru": "Имя пользователя:"\n },\n {\n "id": 50,\n "en": "User password:",\n "ru": "Пароль пльзователя:"\n },\n {\n "id": 51,\n "en": "Login",\n "ru": "Войти"\n },\n {\n "id": 52,\n "en": "To login page",\n "ru": "Вернуться на страницу авторизации"\n },\n {\n "id": 53,\n "en": "Register",\n "ru": "Зарегистрировать"\n },\n {\n "id": 54,\n "en": "Go to the registration page",\n "ru": "Перейти на страницу регистрации"\n },\n {\n "id": 55,\n "en": "Register a new user",\n "ru": "Зарегистрировать нового пользователя"\n },\n {\n "id": 56,\n "en": "Save and close",\n "ru": "Сохранить и закрыть"\n },\n {\n "id": 57,\n "en": "Save setting and close",\n "ru": "Сохранить настройки и закрыть чат"\n },\n {\n "id": 58,\n "en": "Restore and show chat",\n "ru": "Восстановить и показать чат"\n },\n {\n "id": 59,\n "en": "Chat Messages",\n "ru": "Чат сообщений"\n },\n {\n "id": 60,\n "en": "Web RTC Initialization",\n "ru": "Web RTC инициализация"\n },\n {\n "id": 61,\n "en": "Messages",\n "ru": "Сообщения"\n },\n {\n "id": 62,\n "en": "Show chat messages",\n "ru": "Показать сообщения чата"\n },\n {\n "id": 63,\n "en": "Create a blog",\n "ru": "Создать блог"\n },\n {\n "id": 64,\n "en": "Connect blog",\n "ru": "Подключиться к блогу"\n },\n {\n "id": 65,\n "en": "My blogs",\n "ru": "Мои блоги"\n },\n {\n "id": 66,\n "en": "Make friends",\n "ru": "Подружиться"\n },\n {\n "id": 67,\n "en": "User id",\n "ru": "Id пользователя"\n },\n {\n "id": 68,\n "en": "Send request",\n "ru": "Запросить дружбу"\n },\n {\n "id": 69,\n "en": "Ready for request",\n "ru": "Ожидать запрос"\n },\n {\n "id": 70,\n "en": "350 px",\n "ru": "350 px"\n },\n {\n "id": 71,\n "en": "700 px",\n "ru": "700 px"\n },\n {\n "id": 72,\n "en": "1050 px",\n "ru": "1050 px"\n },\n {\n "id": 73,\n "en": "Custom",\n "ru": "Пользовательская"\n },\n {\n "id": 74,\n "en": "Width chat",\n "ru": "Ширина чата"\n },\n {\n "id": 75,\n "en": "Save as a custom width",\n "ru": "Сохранить как пользователькую"\n },\n {\n "id": 76,\n "en": "Adjust width",\n "ru": "Настроить ширину"\n },\n {\n "id": 77,\n "en": "Request message",\n "ru": "Сообщение для запроса"\n },\n {\n "id": 78,\n "en": "Save setting",\n "ru": "Сохранить настройки"\n },\n {\n "id": 79,\n "en": "Ready for new chat users requests",\n "ru": "Ожидать новых пользователей"\n },\n {\n "id": 80,\n "en": "Confirm",\n "ru": "Подтверждение"\n },\n {\n "id": 81,\n "en": "Save settings this chat ?",\n "ru": "Сохранить текущие настройки данного чата ?"\n },\n {\n "id": 82,\n "en": "Save settings this chat and close it ?",\n "ru": "Сохранить текущие настройки данного чата и закрыть его ?"\n },\n {\n "id": 83,\n "en": "Close this chat ?",\n "ru": "Закрыть данный чат ?"\n },\n {\n "id": 84,\n "en": "Error",\n "ru": "Ошибка"\n },\n {\n "id": 85,\n "en": "Success",\n "ru": "Успех"\n },\n {\n "id": 86,\n "en": "Chat is not found in the database!",\n "ru": "Чат не найден в базе данных!"\n },\n {\n "id": 87,\n "en": "User with such username or password not found!",\n "ru": "Пользователь с таким именем и паролем не найден!"\n },\n {\n "id": 88,\n "en": "All fields are required!",\n "ru": "Все поля обязательны для заполнения!"\n },\n {\n "id": 89,\n "en": "Not enough information to make a request! User id and request message are required!",\n "ru": "Не достаточно информации, чтобы сделать запрос! Заполните идентификатор пользователя и сообщение запроса!"\n },\n {\n "id": 90,\n "en": "Not enough information to make a request! Chat id and request message are required!",\n "ru": "Не достаточно информации, чтобы сделать запрос! Заполните идентификатор чата и сообщение запроса!"\n },\n {\n "id": 91,\n "en": "Passwords don\'t match!",\n "ru": "Пароли не совпадают!"\n },\n {\n "id": 92,\n "en": "Invalid input options for render.",\n "ru": "Недопустимые опции ввода для визуализации."\n },\n {\n "id": 93,\n "en": "Chat is already opened!",\n "ru": "Чат уже открыт!"\n },\n {\n "id": 94,\n "en": "New password and confirm password do not match!",\n "ru": "Новый пароль и подтверждение пароля не совпадают!"\n },\n {\n "id": 95,\n "en": "Old password is not correct!",\n "ru": "Старый пароль введен неверно!"\n },\n {\n "id": 96,\n "en": "Registered",\n "ru": "Зарегистрирован"\n },\n {\n "id": 97,\n "en": "Submit",\n "ru": "Подтвердить"\n },\n {\n "id": 98,\n "en": "Undo without saving",\n "ru": "Отменить действие без сохранения данных"\n },\n {\n "id": 99,\n "en": "Confirm the action described in the message",\n "ru": "Подтвердить действие описанное в сообщении"\n },\n {\n "id": 100,\n "en": "Language:",\n "ru": "Язык:"\n },\n {\n "id": 101,\n "en": "Chats and panels will be closed without saving the data. Continue?",\n "ru": "Чаты и панели будут закрыты без сохранения данных. Продолжить?"\n },\n {\n "id": 102,\n "en": "User with such username is already exist!",\n "ru": "Пользователь с таким именем уже существует!"\n },\n {\n "id": 103,\n "en": "WebSocket connection abort",\n "ru": "Соединение по веб сокету прервано"\n }\n]';}); define('localization', [ 'ajax_core', diff --git a/production/index.html b/production/index.html index 5da2706..374671d 100644 --- a/production/index.html +++ b/production/index.html @@ -6,8 +6,8 @@ - - + +