mirror of
https://github.com/Mibew/emoji-plugin.git
synced 2024-11-15 00:44:12 +03:00
Rename "componets" directory to "vendor"
This commit is contained in:
parent
068ce8740c
commit
a87968c90a
2
.bowerrc
2
.bowerrc
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"analytics": false,
|
"analytics": false,
|
||||||
"directory": "components"
|
"directory": "vendor"
|
||||||
}
|
}
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,7 +2,7 @@
|
|||||||
node_modules
|
node_modules
|
||||||
|
|
||||||
# Do not index bower components
|
# Do not index bower components
|
||||||
components
|
vendor
|
||||||
|
|
||||||
# Do not index releases
|
# Do not index releases
|
||||||
release
|
release
|
||||||
|
@ -85,8 +85,8 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
|
|||||||
{
|
{
|
||||||
if ($this->isAppropriatePage($args['request'])) {
|
if ($this->isAppropriatePage($args['request'])) {
|
||||||
$base_path = $this->getFilesPath();
|
$base_path = $this->getFilesPath();
|
||||||
$args['js'][] = $base_path . '/components/es5-shim/es5-shim.js';
|
$args['js'][] = $base_path . '/vendor/es5-shim/es5-shim.js';
|
||||||
$args['js'][] = $base_path . '/components/emojify.js/emojify.js';
|
$args['js'][] = $base_path . '/vendor/emojify.js/emojify.js';
|
||||||
$args['js'][] = $base_path . '/js/plugin.js';
|
$args['js'][] = $base_path . '/js/plugin.js';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -115,7 +115,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
|
|||||||
if ($this->isAppropriatePage($request)) {
|
if ($this->isAppropriatePage($request)) {
|
||||||
$args['plugins']['MibewEmoji'] = array(
|
$args['plugins']['MibewEmoji'] = array(
|
||||||
'imagesDir' => ($request->getBasePath() . '/' . $this->getFilesPath()
|
'imagesDir' => ($request->getBasePath() . '/' . $this->getFilesPath()
|
||||||
. '/components/emojify.js/images/emoji'),
|
. '/vendor/emojify.js/images/emoji'),
|
||||||
'ignoreEmoticons' => $this->config['ignore_emoticons'],
|
'ignoreEmoticons' => $this->config['ignore_emoticons'],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
12
gulpfile.js
12
gulpfile.js
@ -49,12 +49,12 @@ var getSources = function() {
|
|||||||
'LICENSE',
|
'LICENSE',
|
||||||
'js/*',
|
'js/*',
|
||||||
'css/*',
|
'css/*',
|
||||||
'components/es5-shim/es5-shim.js',
|
'vendor/es5-shim/es5-shim.js',
|
||||||
'components/es5-shim/LICENSE',
|
'vendor/es5-shim/LICENSE',
|
||||||
'components/es5-shim/README.md',
|
'vendor/es5-shim/README.md',
|
||||||
'components/emojify.js/emojify.js',
|
'vendor/emojify.js/emojify.js',
|
||||||
'components/emojify.js/README.md',
|
'vendor/emojify.js/README.md',
|
||||||
'components/emojify.js/images/emoji/*'
|
'vendor/emojify.js/images/emoji/*'
|
||||||
],
|
],
|
||||||
{base: './'}
|
{base: './'}
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user