Skip to content

Commit 360ec00

Browse files
committed
915494: Resolved dependent bot issues
1 parent 2657668 commit 360ec00

File tree

4 files changed

+19
-76
lines changed

4 files changed

+19
-76
lines changed

How to/Custom Fonts/package.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@
1010
"dependencies": {
1111
"@syncfusion/ej2-vue-pdfviewer": "*",
1212
"@syncfusion/ej2-base": "*",
13+
"buffer": "^6.0.3",
1314
"core-js": "^3.8.3",
14-
"vue": "^2.6.14"
15+
"crypto-browserify": "^3.12.0",
16+
"stream-browserify": "^3.0.0",
17+
"util": "^0.12.5",
18+
"vm-browserify": "^1.1.2",
19+
"vue": "^3.2.13"
1520
},
1621
"devDependencies": {
1722
"@babel/core": "^7.12.16",
@@ -20,8 +25,7 @@
2025
"@vue/cli-plugin-eslint": "~5.0.0",
2126
"@vue/cli-service": "~5.0.0",
2227
"eslint": "^7.32.0",
23-
"eslint-plugin-vue": "^8.0.3",
24-
"vue-template-compiler": "^2.6.14"
28+
"eslint-plugin-vue": "^8.0.3"
2529
},
2630
"eslintConfig": {
2731
"root": true,
@@ -40,6 +44,7 @@
4044
"browserslist": [
4145
"> 1%",
4246
"last 2 versions",
43-
"not dead"
47+
"not dead",
48+
"not ie 11"
4449
]
4550
}

How to/Custom Fonts/src/App.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@
1111
</template>
1212

1313
<script>
14-
import Vue from 'vue';
15-
import { PdfViewerPlugin, Toolbar, Magnification, Navigation,
14+
import { PdfViewerComponent, Toolbar, Magnification, Navigation,
1615
LinkAnnotation, BookmarkView, Annotation, ThumbnailView,
1716
Print, TextSelection, TextSearch, FormFields, FormDesigner,PageOrganizer } from '@syncfusion/ej2-vue-pdfviewer';
18-
import {Browser} from '@syncfusion/ej2-base';
19-
Vue.use(PdfViewerPlugin);
2017
2118
export default {
22-
name: 'app',
19+
name: 'App',
20+
components: {
21+
"ejs-pdfviewer": PdfViewerComponent
22+
},
2323
data () {
2424
return {
25-
resourceUrl:window.location.origin + "/public/ej2-pdfviewer-lib";
26-
documentPath:"https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf"
27-
customFonts: ["simsun.ttc", "sumsinb.ttf", "arial/arialbd.ttf", "arial/arial.ttf", "BKANT.TTF", "calibri.ttf", "GARA.TTF", "GARAIT.TTF", "msgothic.ttc", "trebuc.ttf", "wingding.ttf"];
25+
resourceUrl:window.location.origin + "/ej2-pdfviewer-lib",
26+
documentPath:"https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
27+
customFonts: ["simsun.ttc", "sumsinb.ttf", "arial/arialbd.ttf", "arial/arial.ttf", "BKANT.TTF", "calibri.ttf", "GARA.TTF", "GARAIT.TTF", "msgothic.ttc", "trebuc.ttf", "wingding.ttf"]
2828
};
2929
},
3030
provide: {

How to/Custom Fonts/src/components/HelloWorld.vue

Lines changed: 0 additions & 58 deletions
This file was deleted.

How to/Custom Fonts/src/main.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
import Vue from 'vue'
1+
import { createApp } from 'vue'
22
import App from './App.vue'
33

4-
Vue.config.productionTip = false
5-
6-
new Vue({
7-
render: h => h(App),
8-
}).$mount('#app')
4+
createApp(App).mount('#app')

0 commit comments

Comments
 (0)