Skip to content

Commit 4b25722

Browse files
committed
915494: Resolved dependent bot issues in textsearch and ass save button sample
1 parent eca4092 commit 4b25722

File tree

8 files changed

+39
-91
lines changed

8 files changed

+39
-91
lines changed

How to/Add Save Button In ToolBar/package.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "cuatomize-toolbar",
2+
"name": "addsavebutton",
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {
@@ -10,8 +10,12 @@
1010
"dependencies": {
1111
"@syncfusion/ej2-vue-pdfviewer": "*",
1212
"core-js": "^3.8.3",
13-
"gulp": "^5.0.0",
14-
"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"
1519
},
1620
"devDependencies": {
1721
"@babel/core": "^7.12.16",
@@ -20,8 +24,7 @@
2024
"@vue/cli-plugin-eslint": "~5.0.0",
2125
"@vue/cli-service": "~5.0.0",
2226
"eslint": "^7.32.0",
23-
"eslint-plugin-vue": "^8.0.3",
24-
"vue-template-compiler": "^2.7.16"
27+
"eslint-plugin-vue": "^8.0.3"
2528
},
2629
"eslintConfig": {
2730
"root": true,
@@ -40,6 +43,7 @@
4043
"browserslist": [
4144
"> 1%",
4245
"last 2 versions",
43-
"not dead"
46+
"not dead",
47+
"not ie 11"
4448
]
4549
}

How to/Add Save Button In ToolBar/src/App.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@
1212
</div>
1313
</template>
1414
<script>
15-
import Vue from 'vue';
16-
import { PdfViewerPlugin, Toolbar, Magnification, Navigation, LinkAnnotation,
15+
16+
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation,
1717
BookmarkView, ThumbnailView, Print, TextSelection, TextSearch,
1818
Annotation, FormDesigner, FormFields, PageOrganizer } from '@syncfusion/ej2-vue-pdfviewer';
19-
Vue.use(PdfViewerPlugin);
2019
var viewer;
2120
export default {
22-
name: 'app',
21+
name: 'App',
22+
components: {
23+
"ejs-pdfviewer": PdfViewerComponent
24+
},
2325
data () {
2426
// Move the toolItem declaration inside the data function
2527
var toolItem1 = {
@@ -63,5 +65,5 @@ export default {
6365
@import "../node_modules/@syncfusion/ej2-navigations/styles/material.css";
6466
@import "../node_modules/@syncfusion/ej2-popups/styles/material.css";
6567
@import "../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css";
66-
@import "../node_modules/@syncfusion/ej2-pdfviewer/styles/material.css";
68+
@import "../node_modules/@syncfusion/ej2-vue-pdfviewer/styles/material.css";
6769
</style>

How to/Add Save Button In 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/TextSearch/README.md

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

33
## Project setup
44
```

How to/TextSearch/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": "textsearch",
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/TextSearch/src/App.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,17 @@
1111
</template>
1212

1313
<script>
14-
import Vue from 'vue';
15-
import { PdfViewerPlugin, Toolbar, Magnification, Navigation,
14+
15+
import { PdfViewerComponent, Toolbar, Magnification, Navigation,
1616
LinkAnnotation, BookmarkView, Annotation, ThumbnailView,
1717
Print, TextSelection, TextSearch, FormFields, FormDesigner,PageOrganizer } from '@syncfusion/ej2-vue-pdfviewer';
18-
Vue.use(PdfViewerPlugin);
18+
1919
2020
export default {
21-
name: 'app',
21+
name: 'App',
22+
components: {
23+
"ejs-pdfviewer": PdfViewerComponent
24+
},
2225
data () {
2326
return {
2427
resourceUrl:"https://cdn.syncfusion.com/ej2/27.1.48/dist/ej2-pdfviewer-lib",

How to/TextSearch/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)