mirror of
https://github.com/Mibew/google-maps-plugin.git
synced 2025-04-07 03:30:12 +03:00
Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
8759949586 | |||
e1aa19b256 | |||
ef0dc2fc1f | |||
cea38ca8ba | |||
49234f05aa | |||
e3efa8c982 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,6 @@
|
|||||||
# Do not index node.js modules that are used for building
|
# Do not index node.js modules that are used for building
|
||||||
node_modules
|
node_modules
|
||||||
|
package-lock.json
|
||||||
|
|
||||||
# Do not index bower components
|
# Do not index bower components
|
||||||
vendor
|
vendor
|
||||||
|
12
Plugin.php
12
Plugin.php
@ -110,12 +110,13 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
|
|||||||
public function pageAddJsHandler(&$args)
|
public function pageAddJsHandler(&$args)
|
||||||
{
|
{
|
||||||
if ($args['request']->attributes->get('_route') == 'users') {
|
if ($args['request']->attributes->get('_route') == 'users') {
|
||||||
$args['js'][] = $this->getFilesPath() . '/vendor/jquery-colorbox/jquery.colorbox-min.js';
|
$filepath = str_replace(DIRECTORY_SEPARATOR, '/', $this->getFilesPath());
|
||||||
|
$args['js'][] = $filepath . '/vendor/jquery-colorbox/jquery.colorbox-min.js';
|
||||||
$args['js'][] = array(
|
$args['js'][] = array(
|
||||||
'content' => $this->getApiUrl(),
|
'content' => $this->getApiUrl(),
|
||||||
'type' => AssetManagerInterface::ABSOLUTE_URL,
|
'type' => AssetManagerInterface::ABSOLUTE_URL,
|
||||||
);
|
);
|
||||||
$args['js'][] = $this->getFilesPath() . '/js/plugin.js';
|
$args['js'][] = $filepath . '/js/plugin.js';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -127,8 +128,9 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
|
|||||||
public function pageAddCssHandler(&$args)
|
public function pageAddCssHandler(&$args)
|
||||||
{
|
{
|
||||||
if ($args['request']->attributes->get('_route') == 'users') {
|
if ($args['request']->attributes->get('_route') == 'users') {
|
||||||
$args['css'][] = $this->getFilesPath() . '/vendor/jquery-colorbox/example3/colorbox.css';
|
$filepath = str_replace(DIRECTORY_SEPARATOR, '/', $this->getFilesPath());
|
||||||
$args['css'][] = $this->getFilesPath() . '/css/styles.css';
|
$args['css'][] = $filepath . '/vendor/jquery-colorbox/example3/colorbox.css';
|
||||||
|
$args['css'][] = $filepath . '/css/styles.css';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -137,7 +139,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
|
|||||||
*/
|
*/
|
||||||
public static function getVersion()
|
public static function getVersion()
|
||||||
{
|
{
|
||||||
return '1.1.0';
|
return '1.1.1';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -18,7 +18,7 @@ gulp.task('bower', function(callback) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('prepare-release', ['bower'], function() {
|
gulp.task('prepare-release', gulp.series('bower', function() {
|
||||||
var version = require('./package.json').version;
|
var version = require('./package.json').version;
|
||||||
|
|
||||||
return eventStream.merge(
|
return eventStream.merge(
|
||||||
@ -30,12 +30,10 @@ gulp.task('prepare-release', ['bower'], function() {
|
|||||||
)
|
)
|
||||||
.pipe(chmod(0644))
|
.pipe(chmod(0644))
|
||||||
.pipe(gulp.dest('release'));
|
.pipe(gulp.dest('release'));
|
||||||
});
|
}));
|
||||||
|
|
||||||
// Builds and packs plugins sources
|
// Builds and packs plugins sources
|
||||||
gulp.task('default', ['prepare-release'], function() {
|
gulp.task('default', gulp.series('prepare-release'));
|
||||||
// The "default" task is just an alias for "prepare-release" task.
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns files stream with the plugin sources.
|
* Returns files stream with the plugin sources.
|
||||||
|
12
package.json
12
package.json
@ -1,13 +1,13 @@
|
|||||||
{
|
{
|
||||||
"version": "1.1.0",
|
"version": "1.1.1",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"bower": "~1.3.12",
|
"bower": "~1.8.8",
|
||||||
"gulp": "~3.8.10",
|
"gulp": "~4.0.0",
|
||||||
"event-stream": "~3.1.7",
|
"event-stream": "~3.1.7",
|
||||||
"gulp-zip": "~2.0.2",
|
"gulp-zip": "~2.0.2",
|
||||||
"gulp-tar": "~1.3.1",
|
"gulp-tar": "~3.1.0",
|
||||||
"gulp-gzip": "~0.0.8",
|
"gulp-gzip": "~0.0.8",
|
||||||
"gulp-chmod": "~1.2.0",
|
"gulp-chmod": "~3.0.0",
|
||||||
"gulp-rename": "~1.2.0"
|
"gulp-rename": "~1.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user