Skip to content

Commit

Permalink
Merge pull request #46 from mautic/move-assets-to-library-directory
Browse files Browse the repository at this point in the history
Move assets to library directory
  • Loading branch information
RCheesley authored Feb 13, 2021
2 parents 2b88e0e + 9a1c11a commit 128000a
Show file tree
Hide file tree
Showing 18 changed files with 11 additions and 11 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 11 additions & 11 deletions EventSubscriber/AssetsSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ public static function getSubscribedEvents()
public function injectAssets(CustomAssetsEvent $assetsEvent)
{
if ($this->config->isPublished()) {
$assetsEvent->addScript('plugins/GrapesJsBuilderBundle/Assets/js/builder.js');
$assetsEvent->addScript('plugins/GrapesJsBuilderBundle/Assets/js/grapes.min.js');
$assetsEvent->addScript('plugins/GrapesJsBuilderBundle/Assets/js/grapesjs-preset-newsletter.min.js');
$assetsEvent->addScript('plugins/GrapesJsBuilderBundle/Assets/js/grapesjs-preset-webpage.min.js');
$assetsEvent->addScript('plugins/GrapesJsBuilderBundle/Assets/js/grapesjs-mjml.min.js');
$assetsEvent->addScript('plugins/GrapesJsBuilderBundle/Assets/js/grapesjs-parser-postcss.min.js');
$assetsEvent->addScript('plugins/GrapesJsBuilderBundle/Assets/js/grapesjs-preset-mautic.min.js');

$assetsEvent->addStylesheet('plugins/GrapesJsBuilderBundle/Assets/css/builder.css');
$assetsEvent->addStylesheet('plugins/GrapesJsBuilderBundle/Assets/css/grapes.min.css');
$assetsEvent->addStylesheet('plugins/GrapesJsBuilderBundle/Assets/css/grapes-code-editor.min.css');
$assetsEvent->addScript('plugins/GrapesJsBuilderBundle/Assets/library/js/builder.js');
$assetsEvent->addScript('plugins/GrapesJsBuilderBundle/Assets/library/js/grapes.min.js');
$assetsEvent->addScript('plugins/GrapesJsBuilderBundle/Assets/library/js/grapesjs-preset-newsletter.min.js');
$assetsEvent->addScript('plugins/GrapesJsBuilderBundle/Assets/library/js/grapesjs-preset-webpage.min.js');
$assetsEvent->addScript('plugins/GrapesJsBuilderBundle/Assets/library/js/grapesjs-mjml.min.js');
$assetsEvent->addScript('plugins/GrapesJsBuilderBundle/Assets/library/js/grapesjs-parser-postcss.min.js');
$assetsEvent->addScript('plugins/GrapesJsBuilderBundle/Assets/library/js/grapesjs-preset-mautic.min.js');

$assetsEvent->addStylesheet('plugins/GrapesJsBuilderBundle/Assets/library/css/builder.css');
$assetsEvent->addStylesheet('plugins/GrapesJsBuilderBundle/Assets/library/css/grapes.min.css');
$assetsEvent->addStylesheet('plugins/GrapesJsBuilderBundle/Assets/library/css/grapes-code-editor.min.css');
}
}
}

0 comments on commit 128000a

Please sign in to comment.