mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Rebundle livewire using ESM
This commit is contained in:
parent
485b80128f
commit
4f9400454a
109
public/build/assets/app-01291e40.js
vendored
Normal file
109
public/build/assets/app-01291e40.js
vendored
Normal file
File diff suppressed because one or more lines are too long
9
public/build/assets/app-253efa47.js
vendored
9
public/build/assets/app-253efa47.js
vendored
File diff suppressed because one or more lines are too long
@ -9,7 +9,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"resources/js/app.js": {
|
"resources/js/app.js": {
|
||||||
"file": "assets/app-253efa47.js",
|
"file": "assets/app-01291e40.js",
|
||||||
"imports": [
|
"imports": [
|
||||||
"_index-08e160a7.js",
|
"_index-08e160a7.js",
|
||||||
"__commonjsHelpers-725317a4.js"
|
"__commonjsHelpers-725317a4.js"
|
||||||
|
2
resources/js/app.js
vendored
2
resources/js/app.js
vendored
@ -10,7 +10,9 @@
|
|||||||
|
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import cardValidator from 'card-validator';
|
import cardValidator from 'card-validator';
|
||||||
|
import { Livewire, Alpine } from '../../vendor/livewire/livewire/dist/livewire.esm';
|
||||||
|
|
||||||
|
Livewire.start()
|
||||||
window.axios = axios;
|
window.axios = axios;
|
||||||
window.valid = cardValidator;
|
window.valid = cardValidator;
|
||||||
|
|
||||||
|
@ -231,4 +231,8 @@ let s = new StripeCreditCard(publishableKey, secret, onlyAuthorization, stripeCo
|
|||||||
|
|
||||||
s.handle();
|
s.handle();
|
||||||
|
|
||||||
|
document.addEventListener('livewire:init', () => {
|
||||||
|
|
||||||
Livewire.on('passed-required-fields-check', () => s.handle());
|
Livewire.on('passed-required-fields-check', () => s.handle());
|
||||||
|
|
||||||
|
});
|
@ -12,6 +12,12 @@
|
|||||||
document.getElementById('payment_method_id').value = paymentMethodId;
|
document.getElementById('payment_method_id').value = paymentMethodId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
document.addEventListener('livewire:init', () => {
|
||||||
|
|
||||||
Livewire.on('beforePaymentEventsCompleted', () => document.getElementById('payment-method-form').submit());
|
Livewire.on('beforePaymentEventsCompleted', () => document.getElementById('payment-method-form').submit());
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@endpush
|
@endpush
|
||||||
|
@ -14,10 +14,15 @@
|
|||||||
document.getElementById('payment_method_id').value = paymentMethodId;
|
document.getElementById('payment_method_id').value = paymentMethodId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
document.addEventListener('livewire:init', () => {
|
||||||
|
|
||||||
Livewire.on('beforePaymentEventsCompleted', () => {
|
Livewire.on('beforePaymentEventsCompleted', () => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
document.getElementById('payment-method-form').submit()
|
document.getElementById('payment-method-form').submit()
|
||||||
}, 2500);
|
}, 2500);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@endpush
|
@endpush
|
||||||
|
@ -85,7 +85,7 @@
|
|||||||
|
|
||||||
@yield('body')
|
@yield('body')
|
||||||
|
|
||||||
@livewireScripts
|
@livewireScriptConfig
|
||||||
|
|
||||||
<script src="{{ asset('vendor/cookieconsent@3/cookieconsent.min.js') }}" data-cfasync="false"></script>
|
<script src="{{ asset('vendor/cookieconsent@3/cookieconsent.min.js') }}" data-cfasync="false"></script>
|
||||||
<script>
|
<script>
|
||||||
|
@ -216,6 +216,8 @@ span {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
document.addEventListener('livewire:init', () => {
|
||||||
|
|
||||||
Livewire.hook('message.processed', (message, component) => {
|
Livewire.hook('message.processed', (message, component) => {
|
||||||
|
|
||||||
Array.from(document.getElementsByClassName("entity-field")).forEach(function(item) {
|
Array.from(document.getElementsByClassName("entity-field")).forEach(function(item) {
|
||||||
@ -224,7 +226,9 @@ span {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
})
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
var timeout = false;
|
var timeout = false;
|
||||||
|
|
||||||
|
@ -89,11 +89,16 @@
|
|||||||
|
|
||||||
@section('gateway_footer')
|
@section('gateway_footer')
|
||||||
<script>
|
<script>
|
||||||
|
document.addEventListener('livewire:init', () => {
|
||||||
|
|
||||||
Livewire.on('passed-required-fields-check', (event) => {
|
Livewire.on('passed-required-fields-check', (event) => {
|
||||||
if (event.hasOwnProperty('client_postal_code')) {
|
if (event.hasOwnProperty('client_postal_code')) {
|
||||||
document.querySelector('meta[name=client-postal-code]').content = event.client_postal_code;
|
document.querySelector('meta[name=client-postal-code]').content = event.client_postal_code;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script src="https://js.stripe.com/v3/"></script>
|
<script src="https://js.stripe.com/v3/"></script>
|
||||||
|
@ -72,11 +72,17 @@
|
|||||||
|
|
||||||
@section('gateway_footer')
|
@section('gateway_footer')
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
document.addEventListener('livewire:init', () => {
|
||||||
|
|
||||||
Livewire.on('passed-required-fields-check', (event) => {
|
Livewire.on('passed-required-fields-check', (event) => {
|
||||||
if (event.hasOwnProperty('client_postal_code')) {
|
if (event.hasOwnProperty('client_postal_code')) {
|
||||||
document.querySelector('meta[name=client-postal-code]').content = event.client_postal_code;
|
document.querySelector('meta[name=client-postal-code]').content = event.client_postal_code;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@vite('resources/js/clients/payments/wepay-credit-card.js')
|
@vite('resources/js/clients/payments/wepay-credit-card.js')
|
||||||
|
@ -117,7 +117,7 @@
|
|||||||
@yield('body')
|
@yield('body')
|
||||||
@endcomponent
|
@endcomponent
|
||||||
|
|
||||||
@livewireScripts
|
@livewireScriptConfig
|
||||||
|
|
||||||
<script src="{{ asset('vendor/cookieconsent@3/cookieconsent.min.js') }}" data-cfasync="false"></script>
|
<script src="{{ asset('vendor/cookieconsent@3/cookieconsent.min.js') }}" data-cfasync="false"></script>
|
||||||
<script>
|
<script>
|
||||||
|
@ -112,7 +112,7 @@
|
|||||||
|
|
||||||
@yield('body')
|
@yield('body')
|
||||||
|
|
||||||
@livewireScripts
|
@livewireScriptConfig
|
||||||
|
|
||||||
<script src="{{ asset('vendor/cookieconsent@3/cookieconsent.min.js') }}" data-cfasync="false"></script>
|
<script src="{{ asset('vendor/cookieconsent@3/cookieconsent.min.js') }}" data-cfasync="false"></script>
|
||||||
<script>
|
<script>
|
||||||
|
@ -46,6 +46,9 @@
|
|||||||
@yield('gateway_footer')
|
@yield('gateway_footer')
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
document.addEventListener('livewire:init', () => {
|
||||||
|
|
||||||
Livewire.on('passed-required-fields-check', () => {
|
Livewire.on('passed-required-fields-check', () => {
|
||||||
document.querySelector('div[data-ref="required-fields-container"]').classList.add('opacity-25');
|
document.querySelector('div[data-ref="required-fields-container"]').classList.add('opacity-25');
|
||||||
document.querySelector('div[data-ref="required-fields-container"]').classList.add('pointer-events-none');
|
document.querySelector('div[data-ref="required-fields-container"]').classList.add('pointer-events-none');
|
||||||
@ -68,6 +71,8 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
let toggleWithToken = document.querySelector('.toggle-payment-with-token');
|
let toggleWithToken = document.querySelector('.toggle-payment-with-token');
|
||||||
let toggleWithCard = document.querySelector('#toggle-payment-with-credit-card');
|
let toggleWithCard = document.querySelector('#toggle-payment-with-credit-card');
|
||||||
|
@ -120,7 +120,7 @@
|
|||||||
@yield('body')
|
@yield('body')
|
||||||
@endcomponent
|
@endcomponent
|
||||||
|
|
||||||
@livewireScripts
|
@livewireScriptConfig
|
||||||
|
|
||||||
<script src="{{ asset('vendor/cookieconsent@3/cookieconsent.min.js') }}" data-cfasync="false"></script>
|
<script src="{{ asset('vendor/cookieconsent@3/cookieconsent.min.js') }}" data-cfasync="false"></script>
|
||||||
<script>
|
<script>
|
||||||
|
@ -147,8 +147,14 @@
|
|||||||
|
|
||||||
@section('footer')
|
@section('footer')
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
document.addEventListener('livewire:init', () => {
|
||||||
|
|
||||||
Livewire.on('UpdateDefaultMethod::method-updated', event => {
|
Livewire.on('UpdateDefaultMethod::method-updated', event => {
|
||||||
document.querySelector('span[data-ref=success-label]').classList.remove('hidden');
|
document.querySelector('span[data-ref=success-label]').classList.remove('hidden');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@endsection
|
@endsection
|
||||||
|
@ -48,6 +48,12 @@
|
|||||||
|
|
||||||
@push('footer')
|
@push('footer')
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
document.addEventListener('livewire:init', () => {
|
||||||
|
|
||||||
Livewire.on('beforePaymentEventsCompleted', () => document.getElementById('payment-method-form').submit());
|
Livewire.on('beforePaymentEventsCompleted', () => document.getElementById('payment-method-form').submit());
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@endpush
|
@endpush
|
||||||
|
@ -104,7 +104,7 @@
|
|||||||
|
|
||||||
@yield('body')
|
@yield('body')
|
||||||
|
|
||||||
@livewireScripts
|
@livewireScriptConfig
|
||||||
|
|
||||||
<script src="{{ asset('vendor/cookieconsent@3/cookieconsent.min.js') }}" data-cfasync="false"></script>
|
<script src="{{ asset('vendor/cookieconsent@3/cookieconsent.min.js') }}" data-cfasync="false"></script>
|
||||||
<script>
|
<script>
|
||||||
|
Loading…
Reference in New Issue
Block a user