1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +01:00
invoiceninja/resources/js/app.js

27 lines
695 B
JavaScript
Raw Normal View History

/**
2023-09-04 16:12:21 +02:00
* Invoice Ninja (https://invoiceninja.com).
*
2023-09-04 16:12:21 +02:00
* @link https://github.com/invoiceninja/invoiceninja source repository
2020-08-24 10:28:55 +02:00
*
2023-09-04 16:12:21 +02:00
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://www.elastic.co/licensing/elastic-license
2020-06-16 18:09:43 +02:00
*/
2023-09-04 16:12:21 +02:00
import axios from 'axios';
import cardValidator from 'card-validator';
2024-01-14 02:00:51 +01:00
import { Livewire, Alpine } from '../../vendor/livewire/livewire/dist/livewire.esm';
2023-09-04 16:12:21 +02:00
2024-01-14 02:00:51 +01:00
Livewire.start()
2023-09-04 16:12:21 +02:00
window.axios = axios;
window.valid = cardValidator;
/**
* Remove flashing message div after 3 seconds.
*/
document.querySelectorAll('.disposable-alert').forEach((element) => {
setTimeout(() => {
element.remove();
}, 5000);
});