Commit Graph

2067 Commits

Author SHA1 Message Date
Dmitriy Simushev
8a47afef58 Do not die if "user_history" mail template cannot be loaded 2014-12-11 13:04:25 +00:00
Dmitriy Simushev
6768fe96c2 Use "en" locale as a fallback for MailTemplate 2014-12-11 12:48:53 +00:00
Dmitriy Simushev
c4a47928a8 Add warning about uncaught exception to AbstractProcessor 2014-12-11 11:57:57 +00:00
Dmitriy Simushev
ec06357535 Use stable version of Handlebars.php 2014-12-11 11:26:29 +00:00
Dmitriy Simushev
bb1b6c377c Log error when "Internal Server Error" page is shown 2014-12-11 10:48:00 +00:00
Dmitriy Simushev
9c87fadb7d Clean up ImageGenerator::getWidgetCode method 2014-12-11 10:18:24 +00:00
304de4ab71 Fix button generation with disabled visitors tracking 2014-12-10 19:48:34 +03:00
Dmitriy S. Simushev
3e5f589972 Merge pull request #83 from Mibew/connection_timeout
Fixes #65
2014-12-10 19:32:15 +03:00
Dmitriy Simushev
6fbee71173 Add an ability to use SMTP mail transport 2014-12-10 16:21:59 +00:00
07c015856e Fixes #65 2014-12-10 19:09:04 +03:00
Dmitriy Simushev
17b7bf6757 Use Object-Oriented approach for mail templates 2014-12-10 11:50:57 +00:00
Dmitriy Simushev
e0716bbeb2 Fix bug with "plugin" table fields sizes 2014-12-10 11:15:23 +00:00
Dmitriy Simushev
4e4f0adfd6 Use SwiftMailer to send emails 2014-12-09 14:40:16 +00:00
Dmitriy Simushev
a66e23fe9b Remove unneeded TODO from HomeController 2014-12-09 11:55:35 +00:00
80565efefb Update README 2014-12-08 16:18:34 +03:00
Dmitriy Simushev
aa28272dbd Update Symfony Components 2014-12-05 15:53:18 +00:00
Dmitriy Simushev
097ec6ef1a Add info about current plugin state 2014-11-28 15:18:48 +00:00
Dmitriy Simushev
2bdfebc428 Add PluginManager::hasPlugin method 2014-11-28 15:02:16 +00:00
Dmitriy Simushev
5282e789ba Use PluginInfo::needsUpdate instead of checking versions directly 2014-11-28 14:38:54 +00:00
Dmitriy Simushev
b0aa66c7cf Fix issue with sprintf arguments in PluginManager 2014-11-28 14:25:07 +00:00
Dmitriy Simushev
772aa904d9 Add plugins update stuff 2014-11-28 14:20:47 +00:00
Dmitriy Simushev
459f75727a Provide an ability to use static methods as updates 2014-11-28 13:34:37 +00:00
Dmitriy Simushev
e2d4ab3715 Recognize alpha and rc versions in updates names 2014-11-28 11:46:27 +00:00
Dmitriy Simushev
80f5873d9a Move getUpdates to Maintenance\Utils class 2014-11-28 11:02:55 +00:00
Dmitriy Simushev
abdfa54f36 Update Handlebars.php 2014-11-27 15:42:30 +00:00
Dmitriy Simushev
361e424acd Merge two localization constants in plugins template 2014-11-27 15:08:52 +00:00
Dmitriy Simushev
7ac85ac412 Check that all needed PHP extensions are loaded before install 2014-11-27 13:01:25 +00:00
Dmitriy Simushev
80077be185 Implement new plugin management system 2014-11-27 11:42:23 +00:00
014a7fabcb Merge pull request #80 from Mibew/issue61
Fix setting of tracking cookie for TLDs
2014-11-27 13:37:26 +03:00
a2fee28bba Fix setting of tracking cookie for TLDs
Fixes #61
2014-11-26 20:02:15 +03:00
Dmitriy Simushev
f7434502b7 Add PluginInfo::getInstance method 2014-11-25 12:22:49 +00:00
Dmitriy Simushev
a4361fe8ce Create plugin info wrapper 2014-11-24 10:37:08 +00:00
Dmitriy Simushev
48978fb060 Add a function to check if a plugin exists or it does not. 2014-11-24 10:13:51 +00:00
Dmitriy Simushev
03a8eab3d1 Fix undefined index in ThreadProcessor::processFunction 2014-11-21 15:49:03 +00:00
Dmitriy Simushev
428c592139 Statically cache results of Plugin\Utils::discoverPlugins 2014-11-21 13:06:44 +00:00
Dmitriy Simushev
dca7c2c520 Fix comments in Mibew\Ban class 2014-11-21 13:00:30 +00:00
Dmitriy Simushev
c9c1ffca4e Remove unused "use" statement 2014-11-20 10:06:30 +00:00
Dmitriy Simushev
ad5554bb52 Fix coding style in Mibew\Plugin\Utils 2014-11-20 09:50:32 +00:00
Dmitriy Simushev
bf7642dab3 Run plugins only after all libs are loaded 2014-11-20 09:26:03 +00:00
Dmitriy Simushev
a63f4ced3d Create a method for plugin class name building 2014-11-19 14:19:01 +00:00
Dmitriy Simushev
b896d43db7 Use more strict policy for plugin names 2014-11-19 14:06:19 +00:00
Dmitriy Simushev
f4b08ff0a3 Add plugins discovery means 2014-11-19 13:15:41 +00:00
Dmitriy Simushev
c70764dab2 Use regular singleton in Mibew\Plugin\PluginManager 2014-11-19 12:50:08 +00:00
Dmitriy Simushev
542b830577 Return false from PluginManager::getPlugin for unregistered plugins 2014-11-19 11:58:50 +00:00
Dmitriy Simushev
bfe902e062 Rename Mibew\Plugin\Manager to Mibew\Plugin\PluginManager 2014-11-19 11:55:16 +00:00
Dmitriy Simushev
c205c9ff94 Use versions range in plugin dependencies 2014-11-19 10:17:15 +00:00
Dmitriy Simushev
2d702f5542 Add versions check to plugins 2014-11-18 12:06:22 +00:00
Dmitriy Simushev
d68b0bdb0c Flush cache on update 2014-11-17 14:30:15 +00:00
Dmitriy Simushev
07b25a2fc3 Create Updater 2014-11-17 14:19:07 +00:00
Dmitriy Simushev
a43d46f5f5 Extract SessionAuthenticationManager 2014-11-13 11:19:53 +00:00
Dmitriy Simushev
47851c9ed2 Move "format_version_id" func to Maintenance\Utils class 2014-11-12 15:14:13 +00:00
Dmitriy Simushev
f82d42e729 Add "buttonGenerate" event 2014-11-12 10:58:21 +00:00
Dmitriy Simushev
c43fccf297 Use CanteenHTML5 for buttons generation 2014-11-12 10:24:40 +00:00
Dmitriy Simushev
d446b9a78f Replace INSTALLATION_IN_PROGRESS const with MAINTENANCE_MODE 2014-11-11 13:31:38 +00:00
Dmitriy Simushev
1deebaff20 Move Installer to a separated namespace 2014-11-11 13:14:37 +00:00
Dmitriy Simushev
df66227729 Remove unused "escape_with_cdata" function 2014-11-11 12:21:02 +00:00
Dmitriy Simushev
bcbb02f52f Fix trailing slash removing on installation 2014-11-11 10:49:13 +00:00
Dmitriy Simushev
f5470239e4 Use Symfony-compatible router 2014-11-11 10:34:04 +00:00
Dmitriy Simushev
f8909d5e8c Move Stash cache to separated directory 2014-11-11 10:31:51 +00:00
d27633fc28 Increase Mibew version 2014-11-10 21:41:12 +03:00
Dmitriy Simushev
6066b9312e Remove "is_secure_request" function 2014-11-07 12:39:19 +00:00
Dmitriy Simushev
fe0d2f2760 Check directories permissions on install
Fixes #76
2014-11-07 12:09:18 +00:00
Dmitriy Simushev
2c0d88c4d5 Use ephemeral cache during installation 2014-11-07 11:40:36 +00:00
Dmitriy Simushev
2c9a6830c8 Use lazy objects creation in Application class 2014-11-07 11:10:19 +00:00
Dmitriy Simushev
6b3b5d6fec Forbid users to post to closed threads
Fixes #72
2014-11-06 13:13:29 +00:00
Dmitriy Simushev
b4ab5d8cd1 Use "once" method instead of "on"/"off" in JS message form 2014-11-06 11:02:57 +00:00
Dmitriy Simushev
bffc2fd799 Restrict access to a thread for third-party users
Fixes #71
2014-11-06 10:45:38 +00:00
Dmitriy Simushev
3f36afc285 Fix comments for AbstractProcessor::processFunction method 2014-11-06 10:08:12 +00:00
Dmitriy Simushev
18e9cf7039 Remove "get_logged_in" function 2014-11-05 15:52:25 +00:00
Dmitriy Simushev
43f7df6c76 Remove Thread::setupAvatar method 2014-11-05 15:29:23 +00:00
Dmitriy Simushev
03328b9293 Use valid types for Thread fields 2014-11-05 14:40:19 +00:00
Dmitriy Simushev
3dd80070c7 Add "userId" and "agentId" fields to thread at client side 2014-11-05 14:25:02 +00:00
Dmitriy Simushev
3984c260b0 Use the correct backpath to redirect operator after login 2014-11-05 10:46:56 +00:00
Dmitriy Simushev
82a4d7a2a2 Use composer's autoloader
Funny, but it fixes #75 without classes changing
2014-10-31 14:13:49 +00:00
Dmitriy Simushev
3b43090bda Add "visitorDeleteOld" event 2014-10-31 11:51:08 +00:00
Dmitriy Simushev
f0c4299ba3 Remove old visitors in single process 2014-10-31 11:26:53 +00:00
Dmitriy Simushev
f10079497c Add "groupUpdateOperators" event 2014-10-31 09:59:44 +00:00
Dmitriy Simushev
07fc4a3666 Fix broken links at "operator/group/<id>/members" page 2014-10-30 13:53:47 +00:00
Dmitriy Simushev
38bc096444 Return IDs set from "get_operator_group_ids" function 2014-10-30 13:49:16 +00:00
Dmitriy Simushev
146c4b7ac1 Return IDs set from "get_group_members" function 2014-10-30 13:27:23 +00:00
Dmitriy Simushev
9d854e9642 Use regular "Thread::save" to close old invitations 2014-10-30 13:07:54 +00:00
Dmitriy Simushev
6e200bf956 Fix race condition in old invitation closing 2014-10-30 12:33:21 +00:00
Dmitriy Simushev
b3c9a02660 Encapsulate locks mechanics in "ProcessLock" class 2014-10-30 12:25:48 +00:00
Dmitriy Simushev
22699f1ed5 Add "threadGetMessagesAlter" event 2014-10-30 10:19:08 +00:00
Dmitriy Simushev
c0232e6fce Use regular tread save in "Thread::closeOldThreads" method 2014-10-29 16:03:38 +00:00
Dmitriy Simushev
96c9bf2a93 Prevent race condition in old threads closing 2014-10-29 15:12:05 +00:00
Dmitriy Simushev
b5020645be Remove Settings::update method
It was too slow
2014-10-29 15:02:55 +00:00
Dmitriy Simushev
bf483e4abc Fix bug with "Settings::update" method. 2014-10-29 14:35:40 +00:00
Dmitriy Simushev
a37018aab6 Add "default" argument to "Settings::get" method 2014-10-29 13:48:30 +00:00
Dmitriy Simushev
be7d49c0f5 Use Events class constant instead of raw event name in track.php 2014-10-29 12:39:59 +00:00
Dmitriy Simushev
336d8c1faa Add "threadCreate" event 2014-10-29 10:50:09 +00:00
Dmitriy Simushev
ab942731e6 Refactor Thread class 2014-10-29 10:45:35 +00:00
Dmitriy Simushev
168336a20b Document "threadFunctionCall" event 2014-10-28 13:04:31 +00:00
Dmitriy Simushev
297377b0fd Add "operatorUpdate" event 2014-10-28 12:43:40 +00:00
Dmitriy Simushev
65d7cb3823 Use "update_operator" func for operator modification everywhere 2014-10-28 12:26:14 +00:00
Dmitriy Simushev
1d9a837e37 Make operator's login unchangeable 2014-10-28 12:06:07 +00:00
Dmitriy Simushev
05f5a606d1 Refactor update_operator function 2014-10-28 11:45:36 +00:00
Dmitriy Simushev
614f02a108 Refactor "check_group_fields" function 2014-10-28 10:40:26 +00:00
Dmitriy Simushev
32a134f31a Remove unused class alias from libs/chat.php 2014-10-27 14:20:59 +00:00
Dmitriy Simushev
4ae850d529 Remove invalid link from Thread::postMessage docs 2014-10-27 14:19:08 +00:00
Dmitriy Simushev
3f27aea2ea Add "threadPostMessage" event 2014-10-27 13:18:12 +00:00
Dmitriy Simushev
30da4ae75e Add notice about triggering event to "update_group" function 2014-10-27 12:07:52 +00:00
Dmitriy Simushev
b7bf41a191 Create separate function for enable/disable operators 2014-10-27 11:55:29 +00:00
Dmitriy Simushev
38769615ac Fix notice about undefined variable in BanController 2014-10-27 10:57:43 +00:00
Dmitriy Simushev
6cc94bcb33 Reduce duplication in Ban class 2014-10-27 10:57:03 +00:00
Dmitriy Simushev
7f6a9c6513 Add "banUpdate" event 2014-10-27 10:40:45 +00:00
Dmitriy Simushev
7e371a20d9 Fix wrong group key in "update_group" function 2014-10-27 10:30:25 +00:00
Dmitriy Simushev
28270d7d18 Use named placeholders in "update_group" function 2014-10-27 10:27:37 +00:00
Dmitriy Simushev
d6084f035f Pass regular group array to "create_group" and "update_group" functions 2014-10-27 10:19:21 +00:00
Dmitriy Simushev
816323a154 Add one more group parameter to check 2014-10-27 10:01:40 +00:00
Dmitriy Simushev
0a3207e879 Add "groupUpdate" event 2014-10-27 10:00:27 +00:00
Dmitriy Simushev
7af300b8f5 Move group related functions to libs/groups.php 2014-10-23 11:41:35 +00:00
Dmitriy Simushev
9753081407 Sent "Visitor closed chat window" message only if there was a chat 2014-10-22 14:34:06 +00:00
Dmitriy Simushev
c83fd59763 Remove unused "blockedcount" field of ban table 2014-10-22 14:17:38 +00:00
Dmitriy Simushev
445a5866ad Add "invitationIgnore" event 2014-10-22 14:15:05 +00:00
Dmitriy Simushev
f070a121fe Fix typo in widget.js code 2014-10-21 12:54:07 +00:00
Dmitriy Simushev
c2f0fb24c3 Describe "routesAlter" event in Events class 2014-10-21 12:37:07 +00:00
Dmitriy Simushev
7eea7c09d4 Add "banDelete" event 2014-10-21 11:51:19 +00:00
Dmitriy Simushev
6263f3a2f4 Add "banCreate" event 2014-10-21 11:43:10 +00:00
Dmitriy Simushev
ada83c629a Encapsulate work with bans in Ban class 2014-10-21 11:33:13 +00:00
Dmitriy Simushev
1dea407037 Add "invitationReject" event 2014-10-20 12:44:44 +00:00
Dmitriy Simushev
b83cb193f1 Add "invitationAccept" event 2014-10-20 12:36:44 +00:00
Dmitriy Simushev
5ad1044dc0 Add "invitationCreate" event 2014-10-20 12:27:10 +00:00
Dmitriy Simushev
09b3d77b19 Add "groupDelete" action 2014-10-20 12:21:59 +00:00
Dmitriy Simushev
7ce1add5dc Create delete_group function 2014-10-20 12:10:31 +00:00
Dmitriy Simushev
34341ef01c Refactor create_group function a little 2014-10-20 11:50:45 +00:00
Dmitriy Simushev
1aec37b6f6 Add "groupCreate" event 2014-10-20 11:17:56 +00:00
Dmitriy Simushev
9b05509ec4 Add "threadClose" event 2014-10-20 11:07:50 +00:00
Dmitriy Simushev
53450ea9d6 Create "threadDelete" event 2014-10-20 10:55:22 +00:00
Dmitriy Simushev
60bd21bf42 Move "threadUpdate" event to Events class 2014-10-20 10:17:34 +00:00
Dmitriy Simushev
d05fe335b8 Describe all "users" app related events in Events class 2014-10-20 10:12:55 +00:00
Dmitriy Simushev
55b1476139 Describe "cronRun" event in Events class 2014-10-17 14:42:39 +00:00
Dmitriy Simushev
de1d5d6d51 Create "visitorCreate" event 2014-10-17 14:37:01 +00:00
Dmitriy Simushev
e61b91dd5e Describe "visitorTrack" event in Events class 2014-10-17 14:10:20 +00:00
Dmitriy Simushev
1814298f4f Create "Resource not found" event 2014-10-17 13:47:57 +00:00
Dmitriy Simushev
5c52ec61da Describe "accessDenied" event in Events class 2014-10-17 13:36:20 +00:00
Dmitriy Simushev
86f6d6429e Move "pageAdd*" events description to Events class 2014-10-17 13:15:53 +00:00
Dmitriy Simushev
31c4afe751 Remove jabber operator field 2014-10-17 12:48:28 +00:00
Dmitriy Simushev
a34cb53e91 Add event on operator create 2014-10-17 11:09:10 +00:00
Dmitriy Simushev
2dca8f236e Describe operators' events in one place 2014-10-17 10:54:04 +00:00
Dmitriy Simushev
55b7b28eb1 Move EventDispatcher class to a separate namespace 2014-10-17 09:47:03 +00:00
Dmitriy Simushev
919c71a1c1 Fix misssed semicolon in js test 2014-10-14 14:39:52 +00:00
Dmitriy Simushev
2d5d4b0e46 Remove unused "append_query" function 2014-10-14 14:38:54 +00:00
Dmitriy Simushev
2703f72de8 Fix localization of unknown strings on client 2014-10-14 12:36:23 +00:00
Dmitriy Simushev
7f071cbe80 Increase Mibew version 2014-10-14 11:19:24 +00:00
Dmitriy Simushev
55587f67fe Remove unused "jsString" Handlebars.php helper 2014-10-14 11:18:39 +00:00
Dmitriy Simushev
ae7ee06031 Increase cache ttl for handlebars templates 2014-10-14 11:16:55 +00:00
Dmitriy Simushev
3fbc5fa262 Always set focus on message input after message sent
Fixes #66
2014-10-14 11:03:20 +00:00
Dmitriy Simushev
397786991d Simplify plugins' assets attachment 2014-10-14 10:57:01 +00:00
Dmitriy Simushev
1a82e11b5e Use 500 as default weight for plugins assets 2014-10-14 10:23:40 +00:00
Dmitriy Simushev
71d2b234c6 Create Asset/Package class to reduce code duplication 2014-10-14 09:36:55 +00:00
Dmitriy Simushev
f8d4d074d5 Rename "styles/dialogs" to "styles/chats" 2014-10-13 13:52:17 +00:00
Dmitriy Simushev
6ac121bc01 Remove unused value 2014-10-13 13:34:28 +00:00
Dmitriy Simushev
452446a375 Initialize chat js application from controller 2014-10-13 13:30:07 +00:00
Dmitriy Simushev
dcd17ed01c Attach js files to chat page in "_layout" template 2014-10-13 12:41:11 +00:00
Dmitriy Simushev
8eaf93a916 Remove unused templates from the default chat style 2014-10-13 11:34:44 +00:00
Dmitriy Simushev
0d1efa5a87 Use cache for Handlebars AST 2014-10-13 11:20:05 +00:00
Dmitriy Simushev
d92b88b65a Initialize "thread_log" client side app from controller 2014-10-13 09:52:06 +00:00
Dmitriy Simushev
aee1aa6904 Initialize "users" client side app from controller 2014-10-13 09:23:43 +00:00
Dmitriy Simushev
5dafbd2997 Add weights to asset manager 2014-10-13 09:07:07 +00:00
Dmitriy Simushev
54b4814389 Attach js on updates page via controller 2014-10-10 12:38:00 +00:00
Dmitriy Simushev
d01bd8a080 Move thread log app initialization to controller 2014-10-10 12:25:53 +00:00
Dmitriy Simushev
3081dcc8db Remove js working with features fields from style files 2014-10-10 12:14:37 +00:00
Dmitriy Simushev
c86d7569f3 Remove js working with group fields from style files 2014-10-10 11:59:23 +00:00
Dmitriy Simushev
e8b35a6971 Move js attaching from install_done template to controller 2014-10-10 11:44:13 +00:00
Dmitriy Simushev
3339153ad3 Remove js with operator delete comfirm from style files 2014-10-10 11:24:54 +00:00
Dmitriy Simushev
ed6252bb38 Remove js with group delete comfirm from style files 2014-10-10 11:10:28 +00:00
Dmitriy Simushev
01e2d8f2a7 Remove js with ban delete comfirm from style files 2014-10-10 10:57:00 +00:00
Dmitriy Simushev
dd71e6bc70 Attach js and css assets to every operator's page 2014-10-10 10:33:08 +00:00
Dmitriy Simushev
46ee9df63a Use relative URL for assets as default 2014-10-10 10:17:41 +00:00
Dmitriy Simushev
922edc96d7 Replace inline js in the default page style with files 2014-10-10 09:15:50 +00:00
Dmitriy Simushev
a671caeb79 Move js code which auto close a window in a sepate file 2014-10-10 09:01:15 +00:00
Dmitriy Simushev
3088481d6d Remove unused "brws.js" lib 2014-10-10 08:38:37 +00:00
Dmitriy Simushev
00bba6c05a Create a base class for jsAssets and cssAssets helpers 2014-10-10 08:17:36 +00:00
Dmitriy Simushev
5b09b3e52c Rename "additionalJs" helper to "jsAssets" 2014-10-09 14:31:26 +00:00
Dmitriy Simushev
3772274ca3 Rename "additionalCss" helper to "cssAssets" 2014-10-09 14:27:35 +00:00
Dmitriy Simushev
7ce4d812bd Rename "AssetManager::add*Asset" methods to "attach*" 2014-10-09 14:20:40 +00:00
Dmitriy Simushev
2ed44e874c Clean up docs for Assetmanager::triggerJsEvent a little 2014-10-09 14:01:38 +00:00
Dmitriy Simushev
9898fb0cbe Create "additionalCss" HBS helper 2014-10-09 13:51:37 +00:00
Dmitriy Simushev
bc45a6d3be Create "additionalJs" HBS helper 2014-10-09 13:25:17 +00:00
Dmitriy Simushev
e320dcd1bb Create AssetManager class 2014-10-08 14:14:43 +00:00
Dmitriy Simushev
54840e96ad Move default js libraries to _layout.hbs in pages style 2014-10-07 11:02:31 +00:00
Dmitriy Simushev
406e11a38e Simplify client side templates structure of pages style 2014-10-06 10:38:33 +00:00
Dmitriy Simushev
a61b48252c Move request preparation and finalization to special methods 2014-10-06 09:06:11 +00:00
Dmitriy Simushev
952ebf8b9d Remove unneeded files from release archive
Fixes #67
2014-09-26 13:18:42 +00:00
Dmitriy Simushev
b6d472d62f Fix some typos in js 2014-09-26 09:24:49 +00:00
Dmitriy Simushev
0cd01e2c03 Remove unneeded "pageAddLocalizedStrings" event 2014-09-25 12:40:46 +00:00
Dmitriy Simushev
c3956be558 Move send shortcut string generation to the client side 2014-09-25 12:33:30 +00:00
Dmitriy Simushev
6e6920851d Remove almost all pseudo-localization strings 2014-09-25 11:51:04 +00:00
Dmitriy Simushev
022fe7d6f4 Purge cache on cron 2014-09-25 10:38:31 +00:00
Dmitriy Simushev
ba103d5636 Pass all localized string to a client side application 2014-09-25 10:30:19 +00:00
Dmitriy Simushev
a2e2f1b194 Use Stash as a cache system 2014-09-24 13:04:37 +00:00
Dmitriy Simushev
e514b1590b Pass AssetUrlGenerator via constructor to ControllerResolver 2014-09-23 13:10:35 +00:00
Dmitriy Simushev
2bb6899c33 Move translation logic from js helper to localization object 2014-09-19 13:51:59 +00:00
Dmitriy Simushev
cb4bd3acaa Add inheritance helpers to Handlebars.js 2014-09-18 15:00:57 +00:00
Dmitriy Simushev
fa615bc2e0 Add placeholders to HBS.js "l10n" helper 2014-09-18 10:35:08 +00:00
Dmitriy Simushev
957e67686a Refactor HelpersSet class 2014-09-18 09:42:50 +00:00
Dmitriy Simushev
911487871d Generate offline message in the template 2014-09-18 08:32:16 +00:00
Dmitriy Simushev
c397a953a1 Update Handlebars.php version 2014-09-17 14:54:04 +00:00
Dmitriy Simushev
e7b0201e0a Update Handlebars.js to v2.0.0 2014-09-15 14:32:34 +00:00
Dmitriy Simushev
340c0f9213 Update jQuery to v1.11.1 2014-09-12 13:14:20 +00:00
Dmitriy Simushev
db4e8ee0db Update Underscore.js to v1.7.0 2014-09-12 12:50:49 +00:00
Dmitriy Simushev
95caad6b59 Use "replace" helper instead of "nl2br" in HBS.js templates 2014-09-12 11:12:34 +00:00
Dmitriy Simushev
ae9de7aa92 Sanitize messages at server side 2014-09-12 10:59:56 +00:00
Dmitriy Simushev
ce6761755e Enforce HTML sanitization 2014-09-11 14:53:03 +00:00
Dmitriy Simushev
6154992f4f Remove "apply" Handlebars.js helper 2014-09-11 12:30:11 +00:00
Dmitriy Simushev
0b9fdeceb8 Fix number arguments in "allowTags" Handlebars.js helper 2014-09-11 12:15:19 +00:00
Dmitriy Simushev
34017d54db Fix number arguments in "urlReplace" Handlebars.js helper 2014-09-11 11:24:33 +00:00
Dmitriy Simushev
aa12eceeea Fix number arguments in "nl2br" Handlebars.js helper 2014-09-11 11:23:02 +00:00
Dmitriy Simushev
9805b4bb18 Add "replace" Handlebars.js helper 2014-09-11 11:08:34 +00:00
Dmitriy Simushev
333f769a16 Add "cutString" Handlebars.js helper 2014-09-11 10:09:14 +00:00
Dmitriy Simushev
75276ab2da Add "repeat" Handlebars.js helper 2014-09-11 10:06:30 +00:00
Dmitriy Simushev
814869ec77 Add tests for "ifEven" and "ifOdd" Handlebars.js helpers 2014-09-11 09:36:33 +00:00
Dmitriy Simushev
3f3abb4255 Add "ifEqual" Handlebars.js helper 2014-09-11 09:29:36 +00:00
Dmitriy Simushev
55a33cf012 Add "ifAny" Handlebars.js helper 2014-09-11 09:19:51 +00:00
Dmitriy Simushev
accfbe0acd Merge branch 'fix_comment' 2014-09-10 15:04:20 +00:00
94c1859a01 Fix comment for generated text link 2014-09-10 18:59:43 +04:00
Dmitriy Simushev
bbf1cec98c Remove unused "use" statement in the "ifOdd" helper 2014-09-10 14:15:14 +00:00
Dmitriy Simushev
ff72960382 Throw an exception if a HBS helper receives wrong arguments set 2014-09-10 14:13:16 +00:00
Dmitriy Simushev
61ee2d0af6 Fix invitation popup 2014-09-10 11:26:09 +00:00
Dmitriy Simushev
933d03e45a Increase Mibew version 2014-09-10 11:07:54 +00:00
Dmitriy Simushev
86085a0c31 Force Mibew to work without mod_rewrite 2014-09-10 10:56:06 +00:00
Dmitriy Simushev
7c969e495e Add RTL support to the default chat style
Fixes #64
2014-09-10 10:16:30 +00:00
Dmitriy Simushev
97ab17ce7a Update Symfony components version 2014-09-10 09:40:27 +00:00
Dmitriy Simushev
58959cf866 Fix problems with installation script 2014-09-09 10:07:43 +00:00
Dmitriy Simushev
7201dfd113 Remove MIBEW_WEB_ROOT constant 2014-09-08 14:08:44 +00:00
Dmitriy Simushev
a314bca69b Move "go online link" generation to Controller 2014-09-08 14:01:41 +00:00
Dmitriy Simushev
cb98a6fc94 Fix typo in comment 2014-09-08 12:39:09 +00:00
Dmitriy Simushev
f107ae4556 Configure plugins data with a request instead of a page name 2014-09-08 12:29:30 +00:00
Dmitriy Simushev
3a3b7f362b Add "asset" helper to the repository. 2014-09-08 09:54:53 +00:00
Dmitriy Simushev
ff917b25ad Do not use MIBEW_WEB_ROOT in Style classes 2014-09-05 10:59:48 +00:00
Dmitriy Simushev
dfbbc11cfb Apply asset helper to chat templates 2014-09-05 10:50:36 +00:00
Dmitriy Simushev
7c1e123ad6 Do not use style path for pagination generation 2014-09-05 10:26:47 +00:00
Dmitriy Simushev
84094ad38b Use divs instead of images for pagination arrows 2014-09-05 10:06:26 +00:00
Dmitriy Simushev
5a3a4d959f Use asset helper in pages style 2014-09-05 09:13:11 +00:00
Dmitriy Simushev
83f6c31dd6 Fix styles screeenshots 2014-09-04 15:11:52 +00:00
Dmitriy Simushev
e5031f9987 Use "mibewRoot" only in file paths 2014-09-04 12:53:13 +00:00
Dmitriy Simushev
0253f8e67e Remove unused use statement 2014-09-04 12:43:08 +00:00
Dmitriy Simushev
c207f0507d Use "route" helper to generate URLs in chat style 2014-09-04 12:26:18 +00:00
Dmitriy Simushev
6ceecb42aa Generate links for Users JS App in the controller 2014-09-04 12:12:30 +00:00
Dmitriy Simushev
f8bd639f39 Use stylePath variable instead of tplRoot in chat templates 2014-09-04 10:52:57 +00:00
Dmitriy Simushev
cf6e7f625a Fix URL for ban edit page 2014-09-04 10:38:17 +00:00
Dmitriy Simushev
cbc119382b Create a helper to generatate URLs with CSRF protection 2014-09-04 10:23:38 +00:00
Dmitriy Simushev
c08ab3a456 Use "route" helper in pages style 2014-09-03 15:19:27 +00:00
Dmitriy Simushev
09c7b15656 Move protected AbstractController::getStyle method to the end of the class 2014-09-03 11:56:53 +00:00
Dmitriy Simushev
5ee217accb Create "route" Handlebars.php helper 2014-09-03 11:52:37 +00:00
Dmitriy Simushev
eba2eadaca Reduce code duplication in Handlebars powered styles 2014-09-03 11:27:43 +00:00
Dmitriy Simushev
7021cb983e Move takeover confirmation page template to chat style 2014-08-29 12:55:41 +00:00
Dmitriy Simushev
37cc5cb178 Move Handlebars.php helpers to separate classes 2014-08-29 11:42:15 +00:00
Dmitriy Simushev
a5d7c6ccd4 Don't use MIBEW_WEB_ROOT in get_current_locale func 2014-08-28 12:15:59 +00:00
Dmitriy Simushev
766be1f051 Remove unused function "get_app_location" 2014-08-28 10:23:58 +00:00
Dmitriy Simushev
f61ef23e3f Don't use global environment in "setup_chatview_for_user" func 2014-08-28 10:22:17 +00:00
Dmitriy Simushev
896e0d924b Don't rely on internal Router structure 2014-08-28 09:52:48 +00:00
Dmitriy Simushev
1c1d479474 Don't use global environment in "setup_chatview_for_operator" func 2014-08-28 09:39:14 +00:00
Dmitriy Simushev
ee492a0c23 Extract release preparation stuff from default gulp task
Fixes #62
2014-08-28 08:40:08 +00:00
Dmitriy Simushev
da54de32b9 Remove unused "is_agent_opera95" function 2014-08-27 15:34:56 +00:00
Dmitriy Simushev
4ba7804b88 Make *Processor::handleRequest returns a Response 2014-08-27 13:44:01 +00:00
Dmitriy Simushev
928328f2b0 Set default value for Thread's agent ID when a thread is created 2014-08-27 13:28:01 +00:00
Dmitriy Simushev
730dd2f2df Make *Processor handles Symfony requests 2014-08-27 13:22:43 +00:00
Dmitriy Simushev
8b1b38dddc Set default operator's avatar
Fixes #60
2014-08-27 10:33:35 +00:00
Dmitriy Simushev
57770e76cf Remove unused needs_frame_src function 2014-08-26 14:53:21 +00:00
Dmitriy Simushev
aad2f6a34f Move button generating logic to separate classes 2014-08-26 12:03:58 +00:00
Dmitriy Simushev
3802e1bf0f Update Handlebars.php version 2014-08-26 09:39:14 +00:00
Dmitriy Simushev
c9e7971c41 Fix button size determination 2014-08-26 09:33:10 +00:00
Dmitriy Simushev
e97f3d1fbf Add secure URL generation for assets 2014-08-25 11:21:18 +00:00
Dmitriy Simushev
21c0ee9134 Move secure URL generation to the Router 2014-08-22 13:11:17 +00:00
Dmitriy Simushev
96df4dc857 Declare method visibility in ButtonCodeController 2014-08-21 11:38:45 +00:00
Dmitriy Simushev
c32628e2b2 Generate URLs from routes in HomeController 2014-08-21 11:37:17 +00:00
Dmitriy Simushev
df4b6f214e Add an easy way to generate assets URL 2014-08-21 11:33:38 +00:00
Dmitriy Simushev
f0f41cbfb6 Move all button generation logic to ButtonCodeController 2014-08-20 14:40:30 +00:00
Dmitriy Simushev
e9f480e3ef Add an ability to generate https routes 2014-08-20 13:00:03 +00:00
Dmitriy Simushev
82a3cb7dd5 Remove unused "verifyparam_groupid" function 2014-08-20 10:04:19 +00:00
Dmitriy Simushev
34a8a2eee4 Do not use MIBEW_WEB_ROOT in AvatarController 2014-08-20 09:50:39 +00:00
Dmitriy Simushev
e6b9635e22 Add project name to .pot file 2014-08-19 12:49:54 +00:00
Dmitriy Simushev
154e891cb4 Update Handlebars.php version 2014-08-18 14:40:24 +00:00
4fc223a6a6 Improve headers 2014-08-18 15:42:27 +04:00
Dmitriy Simushev
22a34c3315 Localize some strings related with files uploading 2014-08-18 09:46:26 +00:00
Dmitriy Simushev
51e076aafc Add more PHP's localization functions 2014-08-18 09:42:08 +00:00
Dmitriy Simushev
46a8345de2 Extract localization strings from js files 2014-08-18 09:23:15 +00:00
Dmitriy Simushev
17d7014da9 Rename Localization.get method on the client side 2014-08-18 09:11:40 +00:00
Dmitriy Simushev
7128870ef6 Fix notice about undefined "visitorid" in UserChatController 2014-08-13 14:09:35 +00:00
Dmitriy Simushev
48408c6547 Remove unused console scripts 2014-08-13 12:51:17 +00:00
Dmitriy Simushev
3ca9395d69 Search localization strings in .handlebars files 2014-08-13 12:14:35 +00:00
Dmitriy Simushev
95d2593b28 Update version of gulp-phpcs plugin 2014-08-13 11:03:03 +00:00
Dmitriy Simushev
02874adbd0 Do not include GIT repos of third-party libs to build 2014-08-13 09:04:44 +00:00
Dmitriy Simushev
f583aa6439 Add gulp task for .pot file generation 2014-08-13 08:40:42 +00:00
Dmitriy Simushev
547cd5abb6 Fix suhosin problems during build process 2014-08-12 10:35:57 +00:00
Dmitriy Simushev
51fcdcd1a5 Update JavaScript headers 2014-08-08 12:34:04 +00:00
Dmitriy Simushev
58aec22fc3 Remove compiled files from the reository 2014-08-08 12:20:44 +00:00
Dmitriy Simushev
ac55ecc545 Minify js/source/update.js file 2014-08-08 11:51:38 +00:00
Dmitriy Simushev
f8b5cdafa2 Move JavaScript files related with style to style 2014-08-08 11:49:26 +00:00
Dmitriy Simushev
5feb4535d6 Fix automatic set of online status 2014-08-08 10:26:42 +00:00
Dmitriy Simushev
6d90246bbe Do not override "getFilesPath" method in the Abstract style class
Fixes #56
2014-08-08 10:15:12 +00:00
Dmitriy Simushev
c2aeeb07f9 Add gulp task for build the sources 2014-08-07 11:04:45 +00:00
Dmitriy Simushev
a9cd400834 Add a Gulp tasks for composer dependancies installation 2014-08-06 12:08:19 +00:00
Dmitriy Simushev
4594619a4a Provide an ability to export translations
Fixes #45
2014-08-06 08:52:12 +00:00
Dmitriy Simushev
668e724a01 Add option to override strings during import
Fixes #47
2014-08-05 14:15:02 +00:00
Dmitriy Simushev
cabdaed21d A user cannot start chat if all groups offline
Revert changes made in 324f5bf94e
2014-08-05 12:50:09 +00:00
Dmitriy Simushev
38bdf1318f Remove unused legacy code 2014-08-05 12:32:34 +00:00
Dmitriy Simushev
4ccd67e28a Do not work directly with session in "notify_operator_alive" func
Fixes #57
2014-08-05 11:39:44 +00:00