1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Merge pull request #8847 from beganovich/fixes-for-authjs

Fixes for card-js
This commit is contained in:
David Bomba 2023-10-03 00:04:50 +11:00 committed by GitHub
commit 94852825de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 15 additions and 17 deletions

File diff suppressed because one or more lines are too long

View File

@ -8,11 +8,6 @@
"__commonjsHelpers-725317a4.js"
]
},
"node_modules/card-js/card-js.min.js": {
"file": "assets/card-js.min-7d4742dc.js",
"isEntry": true,
"src": "node_modules/card-js/card-js.min.js"
},
"resources/js/app.js": {
"file": "assets/app-253efa47.js",
"imports": [

File diff suppressed because one or more lines are too long

View File

@ -9,9 +9,9 @@
<meta name="authnet-require-cvv" content="{{ $gateway->company_gateway->require_cvv }}">
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
@vite('node_modules/card-js/card-js.min.js')
<link href="{{ asset('css/card-js.min.css') }}" rel="stylesheet" type="text/css">
<script src="{{ asset('build/public/js/card-js.min.js/card-js.min.js') }}"></script>
<link href="{{ asset('build/public/css/card-js.min.css/card-js.min.css') }}" rel="stylesheet" type="text/css">
@endsection
@section('gateway_content')

View File

@ -5,10 +5,10 @@
<meta name="authorize-login-id" content="{{ $api_login_id }}">
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
@vite('node_modules/card-js/card-js.min.js')
<meta name="authnet-require-cvv" content="{{ $gateway->company_gateway->require_cvv }}">
<link href="{{ asset('css/card-js.min.css') }}" rel="stylesheet" type="text/css">
<script src="{{ asset('build/public/js/card-js.min.js/card-js.min.js') }}"></script>
<link href="{{ asset('build/public/css/card-js.min.css/card-js.min.css') }}" rel="stylesheet" type="text/css">
@endsection
@section('gateway_content')

View File

@ -6,9 +6,9 @@ ctrans('texts.credit_card')])
<meta name="mollie-profileId" content="{{ $gateway->company_gateway->getConfigField('profileId') }}">
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
@vite('node_modules/card-js/card-js.min.js')
<link href="{{ asset('css/card-js.min.css') }}" rel="stylesheet" type="text/css">
<script src="{{ asset('build/public/js/card-js.min.js/card-js.min.js') }}"></script>
<link href="{{ asset('build/public/css/card-js.min.css/card-js.min.css') }}" rel="stylesheet" type="text/css">
@endsection
@section('gateway_content')

View File

@ -10,9 +10,9 @@
<meta name="country_code" content="{{$country_code}}">
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
@vite('node_modules/card-js/card-js.min.js')
<link href="{{ asset('css/card-js.min.css') }}" rel="stylesheet" type="text/css">
<script src="{{ asset('build/public/js/card-js.min.js/card-js.min.js') }}"></script>
<link href="{{ asset('build/public/css/card-js.min.css/card-js.min.css') }}" rel="stylesheet" type="text/css">
<script type="text/javascript" src="https://static.wepay.com/min/js/tokenization.4.latest.js"></script>
@endsection

View File

@ -9,9 +9,9 @@
<meta name="client-postal-code" content="{{ $contact->client->postal_code }}">
<meta name="country_code" content="{{$country_code}}">
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
@vite('node_modules/card-js/card-js.min.js')
<link href="{{ asset('css/card-js.min.css') }}" rel="stylesheet" type="text/css">
<script src="{{ asset('build/public/js/card-js.min.js/card-js.min.js') }}"></script>
<link href="{{ asset('build/public/css/card-js.min.css/card-js.min.css') }}" rel="stylesheet" type="text/css">
<script type="text/javascript" src="https://static.wepay.com/min/js/tokenization.4.latest.js"></script>
@endsection

View File

@ -25,7 +25,6 @@ export default defineConfig({
'resources/js/clients/quotes/approve.js',
'resources/js/clients/payments/stripe-credit-card.js',
'resources/js/setup/setup.js',
'node_modules/card-js/card-js.min.js',
'resources/js/clients/shared/pdf.js',
'resources/js/clients/shared/multiple-downloads.js',
'resources/js/clients/linkify-urls.js',
@ -54,6 +53,10 @@ export default defineConfig({
]),
viteStaticCopy({
targets: [
{
src: 'node_modules/card-js/card-js.min.js',
dest: 'public/js/card-js.min.js',
},
{
src: 'node_modules/card-js/card-js.min.css',
dest: 'public/css/card-js.min.css',