Commit Graph

787 Commits

Author SHA1 Message Date
Dmitriy Simushev
7e70d5b14b Add thread status to Mibew.Models.Thread 2013-03-13 15:32:47 +00:00
Dmitriy Simushev
dd79c9aa21 Create base composite view 2013-03-13 15:32:47 +00:00
Dmitriy Simushev
2a656a58d5 Fix bug with redicection user to a group 2013-03-13 15:32:47 +00:00
Dmitriy Simushev
1ecda26d3d Update Marionette.js to v1.0.0-rc4 2013-03-13 15:32:47 +00:00
Dmitriy Simushev
88244a7b09 Update Handlebars.js to v1.0.rc.2 2013-03-13 15:32:47 +00:00
Dmitriy Simushev
0e260d1aaf Fix bug in handlebars 'formatTime' helper 2013-03-13 15:32:47 +00:00
Dmitriy Simushev
d9d01ed7e0 Forbid access to .tpl .handlebars .ini files in dialogs styles 2013-03-13 15:32:47 +00:00
Dmitriy Simushev
edef539707 Remove unnecessary element from $page array in set_chatview_* functions 2013-03-13 15:32:47 +00:00
Dmitriy Simushev
ad4f4e8d8e Create config files for dialogs and core styles 2013-03-13 15:32:47 +00:00
Dmitriy Simushev
abac28fa46 Change history and refresh controls title 2013-03-13 15:32:47 +00:00
Dmitriy Simushev
1f3e727c17 Create model for Thread 2013-03-13 15:32:47 +00:00
Dmitriy Simushev
e1368a3f87 Change parent model for Mibew.Models.User 2013-03-13 15:32:47 +00:00
Dmitriy Simushev
16162499cf Update Marionette.js to v1.0.0-rc3 2013-03-13 15:32:47 +00:00
Dmitriy Simushev
9b54eea039 Update jQuery to v1.9.0 2013-03-13 15:32:46 +00:00
Dmitriy Simushev
d3be5cc087 Update Underscore.js to v1.4.3 2013-03-13 15:32:46 +00:00
Dmitriy Simushev
71b1b70528 Fix bug with push controls to collection 2013-03-13 15:32:46 +00:00
Dmitriy Simushev
62aa4c4639 Update Backbone.js to v0.9.10 2013-03-13 15:32:46 +00:00
Dmitriy Simushev
0f78be2194 Method getModelType not obligatory for collections models any more 2013-03-13 15:32:46 +00:00
Dmitriy Simushev
e4f172e715 Update operator status in cache in notify_operator_alive function 2013-03-13 15:32:46 +00:00
Dmitriy Simushev
fca7c3c7cd Add some comments to libs/operator.php 2013-03-13 15:32:46 +00:00
Dmitriy Simushev
0808bb5ba6 Split user model to default and chat user 2013-03-13 15:32:46 +00:00
Dmitriy Simushev
a40ec07b59 Update ant usage target 2013-03-13 15:32:46 +00:00
Dmitriy Simushev
1524f0899a Move control.handlebars template to default JavaScript application 2013-03-13 15:32:46 +00:00
Dmitriy Simushev
4a23ae7dc4 Update JavaScript application files structure
Move models views and collection views to various directories
2013-03-13 15:32:46 +00:00
Dmitriy Simushev
6172334090 Fix bug in build file and rebuild JavaScript Applications 2013-03-13 15:32:46 +00:00
Dmitriy Simushev
7f35a7488b Update JavaScript application files structure
Move Control related files from chat app to default app
2013-03-13 15:32:45 +00:00
Dmitriy Simushev
9e01c73cae Create separate requests buffers for user and agent 2013-03-13 15:32:45 +00:00
Dmitriy Simushev
46ce6f2a91 Update MibewAPICoreInteraction
Move it to separate file and rename it to MibewAPIChatInteraction
2013-03-13 15:32:45 +00:00
Dmitriy Simushev
de68b862da Update JavaScript documentation 2013-03-13 15:32:45 +00:00
Dmitriy Simushev
a300b99171 Create base class for Client Side Request Processors 2013-03-13 15:32:45 +00:00
Dmitriy Simushev
0933263cc9 Fix bug with wrong exception class 2013-03-13 15:32:45 +00:00
Dmitriy Simushev
a650a35dd6 Move processorCall method to RequestProcessor class 2013-03-13 15:32:45 +00:00
Dmitriy Simushev
95bc033817 Move saveCallback and loadCallback to RequestProcessor class 2013-03-13 15:32:45 +00:00
Dmitriy Simushev
4f199b2f26 Rename MibewAPIWindowInteraction to MibewAPIChatInteraction 2013-03-13 15:32:45 +00:00
Dmitriy Simushev
2695ef98b6 Move all controls to one cell at user waiting page 2013-03-13 15:32:45 +00:00
Dmitriy Simushev
72e58f0959 Fix JavaScript Unit tests 2013-03-13 15:32:45 +00:00
Dmitriy Simushev
47ccc46359 Completely update messenger build system 2013-03-13 15:32:45 +00:00
Dmitriy Simushev
053837d069 Completely rewrite Chat's JavaScript files 2013-03-13 15:32:44 +00:00
Dmitriy Simushev
1565458c26 Move all JavaScript files from /js/$jsver to /js/compiled 2013-03-13 15:32:44 +00:00
Dmitriy Simushev
f085fbc767 Move request.js and invite.js to /js/compiled 2013-03-13 15:32:44 +00:00
Dmitriy Simushev
35162b8906 Move handlebars.js to /js/libs 2013-03-13 15:32:44 +00:00
Dmitriy Simushev
da50f6f6d9 Move json2.js to /js/libs 2013-03-13 15:32:44 +00:00
Dmitriy Simushev
9587ff9b5b Move LAB.js to /js/libs 2013-03-13 15:32:44 +00:00
Dmitriy Simushev
64d7650e54 Update jQuery to 1.8.3 and move it to /js/libs 2013-03-13 15:32:44 +00:00
Dmitriy Simushev
e45a3e489f Use camel case for plugins' classes names 2013-03-13 15:32:44 +00:00
Dmitriy Simushev
9037f69c09 Fix bug with user wait time 2013-03-13 15:32:44 +00:00
Dmitriy Simushev
092e9c2dcf Fix bug with wrong total thread time 2013-03-13 15:32:44 +00:00
Dmitriy Simushev
2d7676fdf6 Fix the ability to call functions at Chat Window side 2013-03-13 15:32:44 +00:00
Dmitriy Simushev
7c661b11c6 Fix undefined groupname in /operator/update.php 2013-03-13 15:32:44 +00:00
Dmitriy Simushev
498a34ae19 Update ThreadProcessor documentation 2013-03-13 15:32:43 +00:00
Dmitriy Simushev
a310180709 Fix reset predefined answers selectbox index 2013-03-13 15:32:43 +00:00
Dmitriy Simushev
14eed1072d Use JavaScript templates for messages 2013-03-13 15:32:43 +00:00
Dmitriy Simushev
3f39164db1 Fix bug with message about user rename 2013-03-13 15:32:43 +00:00
Dmitriy Simushev
4102ce00f3 Fix bug in Handlebars apply helper. Update docs 2013-03-13 15:32:43 +00:00
Dmitriy Simushev
c1b633843f Fix bug with NULL for message's sender name 2013-03-13 15:32:43 +00:00
Dmitriy Simushev
38668789b9 Change keys of array return by Thread::getMessages 2013-03-13 15:32:43 +00:00
Dmitriy Simushev
f5a970e50f Use LAB.js to load JavaScripts to the chat window 2013-03-13 15:32:43 +00:00
Dmitriy Simushev
4cfac7bbef Split chat.js
JavaScript's chat.js library split into several logical parts:
chatcontroller.js, chatview.js and chatinit.js
2013-03-13 15:32:43 +00:00
Dmitriy Simushev
edb40a06d3 Add LAB.js library 2013-03-13 15:32:43 +00:00
Dmitriy Simushev
727625dfc8 Refactor and format JavaScript chat code 2013-03-13 15:32:43 +00:00
Dmitriy Simushev
72d0c3b0a4 Update webim/js/source/build.xml file
Add pluginmanager.js, handlebars.js, handlebars_hrlpers.js to
the webim/js/source/build.xml configuration file
2013-03-13 15:32:43 +00:00
Dmitriy Simushev
d53e1d8020 Move JavaScript's ChatServer class to separate file 2013-03-13 15:32:43 +00:00
Dmitriy Simushev
83636a02ef Add several Handlebars helpers
Add 'apply', 'formatTime' and 'nl2br' Handlebars helpers.
Also add QUnit tests for 'apply' helper.
2013-03-13 15:32:42 +00:00
Dmitriy Simushev
36c8e6c042 Add Handlebars JavaScript template engine 2013-03-13 15:32:42 +00:00
Dmitriy Simushev
56a50c9df4 Add JavaScript's Thread class usage to chat.js 2013-03-13 15:32:42 +00:00
Dmitriy Simushev
ec5ba068bb Create JavaScript's Thread class 2013-03-13 15:32:42 +00:00
Dmitriy Simushev
5ff3a7656d Extend plugin system
Plugins can add custom CSS and JavaScript files to chat window and
implement JavaScript plugins
2013-03-13 15:32:42 +00:00
Dmitriy Simushev
c61789c2d7 Create JavaScript's PluginManager class 2013-03-13 15:32:42 +00:00
Dmitriy Simushev
53e9400dde Add PluginManager::getAllPlugins() method 2013-03-13 15:32:42 +00:00
Dmitriy Simushev
30cb668a73 Implement new chat system 2013-03-13 15:32:42 +00:00
Dmitriy Simushev
f1224a98ee Fix ability to change avatar 2013-03-13 15:32:42 +00:00
Dmitriy Simushev
1528c610d7 Moved themeMessage method from ThreadProcessor to Thread 2013-03-13 15:32:42 +00:00
Dmitriy Simushev
c26fc8bb26 Fix early return from RequestProcessor::processRequest 2013-03-13 15:32:42 +00:00
Dmitriy Simushev
bebe603a9b Add Thread object creation to /operator/history.php
Replace direct work with thread table's fields by Thread object
2013-03-13 15:32:42 +00:00
Dmitriy Simushev
0b2a379dd8 Add Thread object creation to /operator/userhistory.php
Replace direct work with thread table's fields by Thread object
2013-03-13 15:32:42 +00:00
Dmitriy Simushev
898ecc3055 Add Thread object creation to /operator/update.php
Replace direct work with thread table's fields by Thread object
2013-03-13 15:32:42 +00:00
Dmitriy Simushev
f553f42460 Add Thread object creation to /operator/threadprocessor.php
Replace direct work with thread table's fields by Thread object
2013-03-13 15:32:41 +00:00
Dmitriy Simushev
69477cea8d Add ability to create Thread object from DB info 2013-03-13 15:32:41 +00:00
Dmitriy Simushev
8f87a017a1 Fix tests for Thread class
Fix tests that affect auto generation of the last token field
2013-03-13 15:32:41 +00:00
Dmitriy Simushev
f81dad7eae Replace thread related functions by Thread's methods 2013-03-13 15:32:41 +00:00
Dmitriy Simushev
50283a0b21 Move kindToString() method from ThreadProcessor to Thread 2013-03-13 15:32:41 +00:00
Dmitriy Simushev
2ba492d94f Create Thread::connectionLimitReached method 2013-03-13 15:32:41 +00:00
Dmitriy Simushev
9d19afcdf2 Add auto token generate during Thread creation 2013-03-13 15:32:41 +00:00
Dmitriy Simushev
37b8fa7243 Create ThreadProcessor class 2013-03-13 15:32:41 +00:00
Dmitriy Simushev
7b6a433ae6 Create tests for RequestProcessor class 2013-03-13 15:32:41 +00:00
Dmitriy Simushev
24ecf02e7b Remove RequestProcessor::NO_RESULT_FUNCTION constant
RequestProcessor::NO_RESULT_FUNCTION not use any more. Rewrite code
to throw use Mibew API checks for existance of the result function
2013-03-13 15:32:41 +00:00
Dmitriy Simushev
1d4cac01d1 Fix bug with callback's arguments in RequestProcessor class 2013-03-13 15:32:41 +00:00
Dmitriy Simushev
7e49da1999 Fix bug in documentation for RequestProcessor class 2013-03-13 15:32:41 +00:00
Dmitriy Simushev
1613a1052e Add token check to the Thread::load method 2013-03-13 15:32:41 +00:00
Dmitriy Simushev
5c7d525871 Update Plugin class documentation 2013-03-13 15:32:41 +00:00
Dmitriy Simushev
a9380cf307 Modify tests directory structure 2013-03-13 15:32:40 +00:00
Dmitriy Simushev
159a8aa0df Document calback array in the RequestProcessor class 2013-03-13 15:32:40 +00:00
Dmitriy Simushev
69e08359c2 Fix bug in requests handling in RequestProcessor 2013-03-13 15:32:40 +00:00
Dmitriy Simushev
4aa44861b4 Add parameters to the Window-to-Core interaction
Add 'threadId' and 'token' obligatory parameters to the
Window-to-Core interaction type
2013-03-13 15:32:40 +00:00
Dmitriy Simushev
6247d20f95 Object's methods callbacks replaced by functions 2013-03-13 15:32:40 +00:00
Dmitriy Simushev
de2f60bfdc Add some warnings to RequestProcessor class
Request/response methods not abstract any more. To prevent direct
call(without overloading) add error with E_USER_WARNING level
into this methods.
2013-03-13 15:32:40 +00:00
Dmitriy Simushev
551be06d9e Fix bug in users tracking 2013-03-13 15:32:40 +00:00
Dmitriy Simushev
f720da79d0 Fix bug in chat button image's generation script 2013-03-13 15:32:40 +00:00
Dmitriy Simushev
03ffd84e76 Create Thread class and tests for it 2013-03-13 15:32:40 +00:00
Dmitriy Simushev
1a963cff00 Add additional config info to unit tests 2013-03-13 15:32:40 +00:00