From 9ff628ca5612f378ddcf5faead065ed3415a6fac Mon Sep 17 00:00:00 2001 From: Kevin Decherf Date: Tue, 24 Oct 2017 00:15:52 +0200 Subject: [PATCH] webpack & views: replace bundles/wallabagcore with wallassets This change will prevent composer from removing wallabagcore assets when installing assets. Signed-off-by: Kevin Decherf --- app/config/webpack/common.js | 4 +-- .../CoreBundle/Resources/views/base.html.twig | 34 +++++++++---------- .../themes/baggy/Exception/error.html.twig | 2 +- .../views/themes/baggy/layout.html.twig | 6 ++-- .../views/themes/common/Entry/share.html.twig | 6 ++-- .../themes/material/Exception/error.html.twig | 2 +- .../views/themes/material/layout.html.twig | 6 ++-- .../views/TwoFactor/email_auth_code.html.twig | 2 +- .../Resources/views/layout.html.twig | 2 +- 9 files changed, 32 insertions(+), 32 deletions(-) diff --git a/app/config/webpack/common.js b/app/config/webpack/common.js index c497689a..47113950 100644 --- a/app/config/webpack/common.js +++ b/app/config/webpack/common.js @@ -13,8 +13,8 @@ module.exports = function () { }, output: { filename: '[name].js', - path: path.resolve(rootDir, 'web/bundles/wallabagcore'), - publicPath: '/bundles/wallabagcore/', + path: path.resolve(rootDir, 'web/wallassets'), + publicPath: '/wallassets/', }, plugins: [ new webpack.ProvidePlugin({ diff --git a/src/Wallabag/CoreBundle/Resources/views/base.html.twig b/src/Wallabag/CoreBundle/Resources/views/base.html.twig index 020d8efc..2499bb88 100644 --- a/src/Wallabag/CoreBundle/Resources/views/base.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/base.html.twig @@ -12,31 +12,31 @@ - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + {% block css %} {% endblock %} diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Exception/error.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Exception/error.html.twig index b52634fd..9959cc3d 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Exception/error.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Exception/error.html.twig @@ -12,7 +12,7 @@
-
wallabag logo
+
wallabag logo

{{ status_code }}: {{ status_text }}

{{ exception.message }}

diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/layout.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/layout.html.twig index 17fa13bb..35a54daf 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/layout.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/layout.html.twig @@ -3,13 +3,13 @@ {% block css %} {{ parent() }} {% if not app.debug %} - + {% endif %} {% endblock %} {% block scripts %} {{ parent() }} - + {% endblock %} {% block header %} @@ -17,7 +17,7 @@

{% block logo %} - wallabag logo + wallabag logo {% endblock %}

diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig index a67807f9..955420ba 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig @@ -4,7 +4,7 @@ - {% set picturePath = app.request.schemeAndHttpHost ~ asset('bundles/wallabagcore/themes/_global/img/logo-other_themes.png') %} + {% set picturePath = app.request.schemeAndHttpHost ~ asset('wallassets/themes/_global/img/logo-other_themes.png') %} {% if entry.previewPicture is not null %} {% set picturePath = entry.previewPicture %} {% endif %} @@ -15,9 +15,9 @@ {% if app.debug %} - + {% else %} - + {% endif %} diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Exception/error.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Exception/error.html.twig index 6be78edb..b5db40f5 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Exception/error.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Exception/error.html.twig @@ -11,7 +11,7 @@
-
wallabag logo
+
wallabag logo
{{ status_code }}: {{ status_text }}
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig index 60907e11..2a14e5b0 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig @@ -3,13 +3,13 @@ {% block css %} {{ parent() }} {% if not app.debug %} - + {% endif %} {% endblock %} {% block scripts %} {{ parent() }} - + {% endblock %} {% block header %} @@ -29,7 +29,7 @@ {% block logo %} {% endblock %} diff --git a/src/Wallabag/UserBundle/Resources/views/TwoFactor/email_auth_code.html.twig b/src/Wallabag/UserBundle/Resources/views/TwoFactor/email_auth_code.html.twig index 5d1f22b7..ecc1d79a 100644 --- a/src/Wallabag/UserBundle/Resources/views/TwoFactor/email_auth_code.html.twig +++ b/src/Wallabag/UserBundle/Resources/views/TwoFactor/email_auth_code.html.twig @@ -74,7 +74,7 @@ - +
logologo

wallabag

{{ "auth_code.on"|trans({}, 'wallabag_user') }} {{ wallabag_url }}
diff --git a/src/Wallabag/UserBundle/Resources/views/layout.html.twig b/src/Wallabag/UserBundle/Resources/views/layout.html.twig index 1f6ea255..eada1829 100644 --- a/src/Wallabag/UserBundle/Resources/views/layout.html.twig +++ b/src/Wallabag/UserBundle/Resources/views/layout.html.twig @@ -11,7 +11,7 @@
-
wallabag logo
+
wallabag logo
{% block fos_user_content %} {% endblock fos_user_content %}
-- 2.41.0