remove cdn print-js to import it
This commit is contained in:
parent
fa265018f8
commit
214ff79085
7 changed files with 20 additions and 6 deletions
13
package-lock.json
generated
13
package-lock.json
generated
|
|
@ -32,6 +32,7 @@
|
|||
"postcss": "^8.1.14",
|
||||
"postcss-discard-comments": "^4.0.2",
|
||||
"prettier": "^2.8.8",
|
||||
"print-js": "^1.6.0",
|
||||
"resolve-url-loader": "^3.1.3",
|
||||
"sass": "^1.32.11",
|
||||
"sass-loader": "^11.0.1",
|
||||
|
|
@ -9201,6 +9202,12 @@
|
|||
"node": ">=4"
|
||||
}
|
||||
},
|
||||
"node_modules/print-js": {
|
||||
"version": "1.6.0",
|
||||
"resolved": "https://registry.npmjs.org/print-js/-/print-js-1.6.0.tgz",
|
||||
"integrity": "sha512-BfnOIzSKbqGRtO4o0rnj/K3681BSd2QUrsIZy/+WdCIugjIswjmx3lDEZpXB2ruGf9d4b3YNINri81+J0FsBWg==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/process": {
|
||||
"version": "0.11.10",
|
||||
"resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
|
||||
|
|
@ -19174,6 +19181,12 @@
|
|||
"integrity": "sha512-28iF6xPQrP8Oa6uxE6a1biz+lWeTOAPKggvjB8HAs6nVMKZwf5bG++632Dx614hIWgUPkgivRfG+a8uAXGTIbA==",
|
||||
"dev": true
|
||||
},
|
||||
"print-js": {
|
||||
"version": "1.6.0",
|
||||
"resolved": "https://registry.npmjs.org/print-js/-/print-js-1.6.0.tgz",
|
||||
"integrity": "sha512-BfnOIzSKbqGRtO4o0rnj/K3681BSd2QUrsIZy/+WdCIugjIswjmx3lDEZpXB2ruGf9d4b3YNINri81+J0FsBWg==",
|
||||
"dev": true
|
||||
},
|
||||
"process": {
|
||||
"version": "0.11.10",
|
||||
"resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@
|
|||
"postcss": "^8.1.14",
|
||||
"postcss-discard-comments": "^4.0.2",
|
||||
"prettier": "^2.8.8",
|
||||
"print-js": "^1.6.0",
|
||||
"resolve-url-loader": "^3.1.3",
|
||||
"sass": "^1.32.11",
|
||||
"sass-loader": "^11.0.1",
|
||||
|
|
|
|||
1
resources/sass/app.scss
vendored
1
resources/sass/app.scss
vendored
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
// * VENDOR
|
||||
@import "./vendor/bootstrap";
|
||||
@import "./vendor/print-js";
|
||||
|
||||
// * PARTIALS
|
||||
@import "./partials/layout";
|
||||
|
|
|
|||
1
resources/sass/vendor/_print-js.scss
vendored
Normal file
1
resources/sass/vendor/_print-js.scss
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
@import "~print-js/src/sass/index";
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
import printJS from "print-js";
|
||||
|
||||
const statsCSV = document.getElementById("StatsCSV");
|
||||
const statsPDF = document.getElementById("StatsPDF");
|
||||
|
||||
|
|
|
|||
|
|
@ -32,13 +32,8 @@
|
|||
@push('styles')
|
||||
<link rel="stylesheet" href="{{ mix('css/back.css', 'build') }}">
|
||||
<link rel="stylesheet" href="{{ mix('css/v-extract.css', 'build') }}">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/print-js@1.6.0/dist/print.css" integrity="sha256-FpdKS+ZModcod+vii6bOQTrWSaMwIRgLevlTU5o72n4=" crossorigin="anonymous">
|
||||
@endpush
|
||||
|
||||
@if(config('app.debug'))
|
||||
<script nonce="{{ $nonce }}">window.vueDebug = true;</script>
|
||||
@endif
|
||||
|
||||
@push('scripts')
|
||||
<script src="https://cdn.jsdelivr.net/npm/print-js@1.6.0/dist/print.js" integrity="sha256-M4dKA3UMrgzXdcBkWr0AwyeZJguOihkcsGrAf7Glwwc=" crossorigin="anonymous"></script>
|
||||
@endpush
|
||||
|
|
|
|||
|
|
@ -7,7 +7,8 @@
|
|||
"strict": true,
|
||||
"jsx": "preserve",
|
||||
"moduleResolution": "node",
|
||||
"typeRoots": ["resources/ts/@types", "node_modules/@types"]
|
||||
"typeRoots": ["resources/ts/@types", "node_modules/@types"],
|
||||
"allowSyntheticDefaultImports": true,
|
||||
},
|
||||
"include": ["resources/**/*.js", "resources/**/*.ts", "resources/**/*.vue"],
|
||||
"exclude": ["node_modules"],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue