mirror of
https://github.com/dwaxweiler/connector-mobilizon
synced 2025-06-05 21:59:25 +02:00
remove JS file
This commit is contained in:
@ -11,7 +11,6 @@ function injectMetadata() {
|
|||||||
return src(
|
return src(
|
||||||
[
|
[
|
||||||
FOLDER_BUILD + '/front/block-events-loader.js',
|
FOLDER_BUILD + '/front/block-events-loader.js',
|
||||||
FOLDER_BUILD + '/front/events-loader.js',
|
|
||||||
FOLDER_BUILD + '/' + PACKAGE.name + '.php',
|
FOLDER_BUILD + '/' + PACKAGE.name + '.php',
|
||||||
FOLDER_BUILD + '/includes/constants.php',
|
FOLDER_BUILD + '/includes/constants.php',
|
||||||
FOLDER_BUILD + '/readme.txt',
|
FOLDER_BUILD + '/readme.txt',
|
||||||
|
@ -33,7 +33,6 @@ final class Mobilizon_Connector {
|
|||||||
add_action('init', [$this, 'register_settings'], 1); // required for register_blocks
|
add_action('init', [$this, 'register_settings'], 1); // required for register_blocks
|
||||||
add_action('init', [$this, 'register_shortcut']);
|
add_action('init', [$this, 'register_shortcut']);
|
||||||
add_action('widgets_init', [$this, 'register_widget']);
|
add_action('widgets_init', [$this, 'register_widget']);
|
||||||
add_action('wp_enqueue_scripts', [$this, 'register_scripts']);
|
|
||||||
register_activation_hook(__FILE__, [$this, 'enable_activation']);
|
register_activation_hook(__FILE__, [$this, 'enable_activation']);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -69,12 +68,6 @@ final class Mobilizon_Connector {
|
|||||||
MobilizonConnector\Settings::init();
|
MobilizonConnector\Settings::init();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function register_scripts() {
|
|
||||||
$name = MobilizonConnector\NAME . '-js';
|
|
||||||
wp_enqueue_script($name, plugins_url('front/events-loader.js', __FILE__ ));
|
|
||||||
$this->load_settings_globally_before_script($name);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function register_shortcut() {
|
public function register_shortcut() {
|
||||||
MobilizonConnector\EventsListShortcut::init();
|
MobilizonConnector\EventsListShortcut::init();
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,6 @@ const FOLDER_SOURCE = './source'
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
entry: {
|
entry: {
|
||||||
'block-events-loader': FOLDER_SOURCE + '/front/block-events-loader.js',
|
'block-events-loader': FOLDER_SOURCE + '/front/block-events-loader.js',
|
||||||
'events-loader': FOLDER_SOURCE + '/front/events-loader.js',
|
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
filename: '[name].js',
|
filename: '[name].js',
|
||||||
|
Reference in New Issue
Block a user