Skip to content

Commit 41eb465

Browse files
author
SasidharanKaruppiah
authored
Merge pull request #30 from SyncfusionExamples/EJ2-915494-dependent_bot
915494: Resolved dependent bot issues in customize toolbar and open close bookmark sample
2 parents 5f5572e + c1ea883 commit 41eb465

File tree

10 files changed

+38
-148
lines changed

10 files changed

+38
-148
lines changed

How to/Customize existing toolbar/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# quickstart
1+
# customize-toolbar
22

33
## Project setup
44
```

How to/Customize existing toolbar/package.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "cuatomize-toolbar",
2+
"name": "customize-toolbar",
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {
@@ -10,7 +10,12 @@
1010
"dependencies": {
1111
"@syncfusion/ej2-vue-pdfviewer": "*",
1212
"core-js": "^3.8.3",
13-
"vue": "^2.7.16"
13+
"vue": "^3.2.13",
14+
"buffer": "^6.0.3",
15+
"crypto-browserify": "^3.12.0",
16+
"stream-browserify": "^3.0.0",
17+
"util": "^0.12.5",
18+
"vm-browserify": "^1.1.2"
1419
},
1520
"devDependencies": {
1621
"@babel/core": "^7.12.16",
@@ -19,8 +24,7 @@
1924
"@vue/cli-plugin-eslint": "~5.0.0",
2025
"@vue/cli-service": "~5.0.0",
2126
"eslint": "^7.32.0",
22-
"eslint-plugin-vue": "^8.0.3",
23-
"vue-template-compiler": "^2.7.16"
27+
"eslint-plugin-vue": "^8.0.3"
2428
},
2529
"eslintConfig": {
2630
"root": true,
@@ -39,6 +43,7 @@
3943
"browserslist": [
4044
"> 1%",
4145
"last 2 versions",
42-
"not dead"
46+
"not dead",
47+
"not ie 11"
4348
]
4449
}

How to/Customize existing toolbar/src/App.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,18 @@
1212
</div>
1313
</template>
1414
<script>
15-
import Vue from 'vue';
16-
import { PdfViewerPlugin, Toolbar, Magnification, Navigation, LinkAnnotation,
15+
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation,
1716
BookmarkView, ThumbnailView, Print, TextSelection, TextSearch,
1817
Annotation, FormDesigner, FormFields, PageOrganizer } from '@syncfusion/ej2-vue-pdfviewer';
1918
import { ComboBox } from "@syncfusion/ej2-dropdowns";
2019
import { TextBox } from "@syncfusion/ej2-inputs";
21-
Vue.use(PdfViewerPlugin);
20+
2221
var viewer;
2322
export default {
24-
name: 'app',
23+
name: 'App',
24+
components: {
25+
"ejs-pdfviewer": PdfViewerComponent
26+
},
2527
data () {
2628
// Move the toolItem declaration inside the data function
2729
var toolItem1 = {

How to/Customize existing toolbar/src/components/HelloWorld.vue

Lines changed: 0 additions & 58 deletions
This file was deleted.
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')

How to/Open and close bookmark/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# quickstart
1+
# openclosebookmark
22

33
## Project setup
44
```

How to/Open and close bookmark/package.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "quickstart",
2+
"name": "openclosebookmark",
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {
@@ -10,7 +10,12 @@
1010
"dependencies": {
1111
"@syncfusion/ej2-vue-pdfviewer": "*",
1212
"core-js": "^3.8.3",
13-
"vue": "^2.7.16"
13+
"vue": "^3.2.13",
14+
"buffer": "^6.0.3",
15+
"crypto-browserify": "^3.12.0",
16+
"stream-browserify": "^3.0.0",
17+
"util": "^0.12.5",
18+
"vm-browserify": "^1.1.2"
1419
},
1520
"devDependencies": {
1621
"@babel/core": "^7.12.16",
@@ -19,8 +24,7 @@
1924
"@vue/cli-plugin-eslint": "~5.0.0",
2025
"@vue/cli-service": "~5.0.0",
2126
"eslint": "^7.32.0",
22-
"eslint-plugin-vue": "^8.0.3",
23-
"vue-template-compiler": "^2.7.16"
27+
"eslint-plugin-vue": "^8.0.3"
2428
},
2529
"eslintConfig": {
2630
"root": true,
@@ -39,6 +43,7 @@
3943
"browserslist": [
4044
"> 1%",
4145
"last 2 versions",
42-
"not dead"
46+
"not dead",
47+
"not ie 11"
4348
]
4449
}

How to/Open and close bookmark/src/App.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@
1212
</template>
1313

1414
<script>
15-
import Vue from 'vue';
16-
import { PdfViewerPlugin, Toolbar, Magnification, Navigation,
15+
16+
import { PdfViewerComponent, Toolbar, Magnification, Navigation,
1717
LinkAnnotation, BookmarkView, Annotation, ThumbnailView,
1818
Print, TextSelection, TextSearch, FormFields, FormDesigner,PageOrganizer } from '@syncfusion/ej2-vue-pdfviewer';
19-
Vue.use(PdfViewerPlugin);
2019
2120
export default {
22-
name: 'app',
21+
name: 'App',
22+
components: {
23+
"ejs-pdfviewer": PdfViewerComponent
24+
},
2325
data () {
2426
return {
2527
resourceUrl:"https://cdn.syncfusion.com/ej2/24.1.41/dist/ej2-pdfviewer-lib",

How to/Open and close bookmark/src/components/HelloWorld.vue

Lines changed: 0 additions & 58 deletions
This file was deleted.
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)