mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 02:04:33 -04:00
Replace require with ES imports
This commit is contained in:
parent
5f450bd47b
commit
1ebc6016ab
21
resources/js/app.js
vendored
21
resources/js/app.js
vendored
@ -1,19 +1,18 @@
|
||||
/**
|
||||
* Axios
|
||||
* Invoice Ninja (https://invoiceninja.com).
|
||||
*
|
||||
* Promise based HTTP client for the browser and node.js
|
||||
* https://github.com/axios/axios
|
||||
*/
|
||||
window.axios = require('axios');
|
||||
|
||||
/**
|
||||
* card-validator
|
||||
* @link https://github.com/invoiceninja/invoiceninja source repository
|
||||
*
|
||||
* Validate credit cards as users type.
|
||||
* https://github.com/braintree/card-validator
|
||||
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
|
||||
*
|
||||
* @license https://www.elastic.co/licensing/elastic-license
|
||||
*/
|
||||
window.valid = require('card-validator');
|
||||
|
||||
import axios from 'axios';
|
||||
import cardValidator from 'card-validator';
|
||||
|
||||
window.axios = axios;
|
||||
window.valid = cardValidator;
|
||||
|
||||
/**
|
||||
* Remove flashing message div after 3 seconds.
|
||||
|
2
resources/js/clients/linkify-urls.js
vendored
2
resources/js/clients/linkify-urls.js
vendored
@ -8,7 +8,7 @@
|
||||
* @license https://www.elastic.co/licensing/elastic-license
|
||||
*/
|
||||
|
||||
const linkifyUrls = require('linkify-urls');
|
||||
import linkifyUrls from 'linkify-urls';
|
||||
|
||||
document
|
||||
.querySelectorAll('[data-ref=entity-terms]')
|
||||
|
Loading…
x
Reference in New Issue
Block a user