mirror of
https://github.com/Mibew/broadcast-plugin.git
synced 2025-04-21 01:27:24 +03:00
Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
48c61a1631 | |||
238889c330 | |||
d53d90c856 | |||
b62f3fbc2b | |||
f6b19dce84 | |||
f86fec3757 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,6 @@
|
||||
# Do not index node.js modules that are used for building
|
||||
node_modules
|
||||
package-lock.json
|
||||
|
||||
# Do not index releases
|
||||
release
|
||||
|
@ -126,7 +126,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
|
||||
{
|
||||
if ($this->checkAdmin()) {
|
||||
if (!strcmp('/operator/users', $args['request']->getPathInfo())) {
|
||||
$args['js'][] = $this->getFilesPath() . '/js/broadcast.js';
|
||||
$args['js'][] = str_replace(DIRECTORY_SEPARATOR, '/', $this->getFilesPath()) . '/js/broadcast.js';
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -161,7 +161,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
|
||||
*/
|
||||
public static function getVersion()
|
||||
{
|
||||
return '0.1.0';
|
||||
return '0.1.1';
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -5,7 +5,7 @@ A plugin to broadcast a message.
|
||||
At the moment there are four broadcasting modes available:
|
||||
|
||||
* to all active chats (i.e. to chats with an operator connected);
|
||||
* to all waiting chats (i.e. to chats in a queue and chats where an operator has been disconnected)
|
||||
* to all waiting chats (i.e. to chats in a queue and chats where an operator has been disconnected);
|
||||
* to all chats except for closed ones;
|
||||
* to all operators involved in chats (i.e. to operators in active chats or in active invitations).
|
||||
|
||||
|
@ -21,9 +21,7 @@ gulp.task('prepare-release', function() {
|
||||
});
|
||||
|
||||
// Builds and packs plugins sources
|
||||
gulp.task('default', ['prepare-release'], function() {
|
||||
// The "default" task is just an alias for "prepare-release" task.
|
||||
});
|
||||
gulp.task('default', gulp.series('prepare-release'));
|
||||
|
||||
/**
|
||||
* Returns files stream with the plugin sources.
|
||||
|
18
package.json
18
package.json
@ -1,12 +1,12 @@
|
||||
{
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"devDependencies": {
|
||||
"gulp": ">3.8.10",
|
||||
"event-stream": ">3.1.7",
|
||||
"gulp-zip": ">2.0.2",
|
||||
"gulp-tar": ">1.3.1",
|
||||
"gulp-gzip": ">0.0.8",
|
||||
"gulp-chmod": ">1.2.0",
|
||||
"gulp-rename": ">1.2.0"
|
||||
"gulp": "~4.0.0",
|
||||
"event-stream": "~3.1.7",
|
||||
"gulp-zip": "~2.0.2",
|
||||
"gulp-tar": "~3.1.0",
|
||||
"gulp-gzip": "~0.0.8",
|
||||
"gulp-chmod": "~3.0.0",
|
||||
"gulp-rename": "~1.2.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user