mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-30 20:54: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
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
||||||
* https://github.com/axios/axios
|
|
||||||
*/
|
|
||||||
window.axios = require('axios');
|
|
||||||
|
|
||||||
/**
|
|
||||||
* card-validator
|
|
||||||
*
|
*
|
||||||
* Validate credit cards as users type.
|
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
|
||||||
* https://github.com/braintree/card-validator
|
*
|
||||||
|
* @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.
|
* 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
|
* @license https://www.elastic.co/licensing/elastic-license
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const linkifyUrls = require('linkify-urls');
|
import linkifyUrls from 'linkify-urls';
|
||||||
|
|
||||||
document
|
document
|
||||||
.querySelectorAll('[data-ref=entity-terms]')
|
.querySelectorAll('[data-ref=entity-terms]')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user