Skip to content

Commit

Permalink
Renames assetBundles to web folder
Browse files Browse the repository at this point in the history
  • Loading branch information
andrelopez committed Nov 19, 2018
1 parent b6b9f1c commit f420bce
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/templates/_layouts/settings.twig
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@

{% endset %}

{% do view.registerAssetBundle("enupal\\paypal\\assetbundles\\FontAwesomeAsset") %}
{% do view.registerAssetBundle("enupal\\paypal\\web\\FontAwesomeAsset") %}
4 changes: 2 additions & 2 deletions src/templates/buttons/_edit.twig
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@
</div>
{% endblock %}

{% do view.registerAssetBundle("enupal\\paypal\\assetbundles\\PaypalButtonAsset") %}
{% do view.registerAssetBundle("enupal\\paypal\\assetbundles\\FontAwesomeAsset") %}
{% do view.registerAssetBundle("enupal\\paypal\\web\\PaypalButtonAsset") %}
{% do view.registerAssetBundle("enupal\\paypal\\web\\FontAwesomeAsset") %}
{% js %}
$(document).ready(function() {
var clipboard = new Clipboard('.clipbtn');
Expand Down
2 changes: 1 addition & 1 deletion src/templates/buttons/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{% extends "enupal-paypal/_layouts/elementindex" %}
{% set title = "Paypal Buttons"|t %}
{% set elementType = 'enupal\\paypal\\elements\\PaypalButton' %}
{% do view.registerAssetBundle("enupal\\paypal\\assetBundles\\FontAwesomeAsset") %}
{% do view.registerAssetBundle("enupal\\paypal\\web\\FontAwesomeAsset") %}
{% block actionButton %}
<div class="buttons">
<a class="btn submit add icon" href="{{ url('enupal-paypal/buttons/new') }}">{{ "New Paypal Button"|t('enupal-paypal') }}</a>
Expand Down
4 changes: 2 additions & 2 deletions src/templates/orders/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
{% extends "enupal-paypal/_layouts/elementindex" %}
{% set title = "Orders"|t %}
{% set elementType = 'enupal\\paypal\\elements\\Order' %}
{% do view.registerAssetBundle("enupal\\paypal\\assetBundles\\FontAwesomeAsset") %}
{% do view.registerAssetBundle("enupal\\paypal\\assetBundles\\OrdersAsset") %}
{% do view.registerAssetBundle("enupal\\paypal\\web\\FontAwesomeAsset") %}
{% do view.registerAssetBundle("enupal\\paypal\\web\\OrdersAsset") %}
2 changes: 1 addition & 1 deletion src/templates/settings/general.twig
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

{{ forms.textField({
label: "Sandbox Account"|t('enupal-paypal'),
instructions: "The PayPal Sandbox is a self-contained, virtual testing environment that mimics the live PayPal production environment. Use your existing PayPal account to log in to the Developer website at <a href='developer.paypal.com'>developer.paypal.com</a>, or create a new PayPal account by clicking the Sign Up button on this site."|t('enupal-paypal'),
instructions: "The PayPal Sandbox is a self-contained, virtual testing environment that mimics the live PayPal production environment. Use your existing PayPal account to log in to the Developer website at <a href='https://developer.paypal.com/'>developer.paypal.com</a>, or create a new PayPal account by clicking the Sign Up button on this site."|t('enupal-paypal'),
id: 'sandboxAccount',
name: 'sandboxAccount',
value: settings.sandboxAccount,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @copyright Copyright (c) 2018 Enupal
*/

namespace enupal\paypal\assetbundles;
namespace enupal\paypal\web;

use craft\web\AssetBundle;
use craft\web\assets\cp\CpAsset;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @copyright Copyright (c) 2018 Enupal
*/

namespace enupal\paypal\assetbundles;
namespace enupal\paypal\web;

use craft\web\AssetBundle;
use craft\web\assets\cp\CpAsset;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @copyright Copyright (c) 2018 Enupal
*/

namespace enupal\paypal\assetbundles;
namespace enupal\paypal\web;

use craft\web\AssetBundle;
use craft\web\assets\cp\CpAsset;
Expand Down

0 comments on commit f420bce

Please sign in to comment.