Skip to content

Commit 105e0a7

Browse files
committed
915494: Resolved dependent bot issue in standalone getting started
1 parent db85b18 commit 105e0a7

File tree

9 files changed

+91
-35
lines changed

9 files changed

+91
-35
lines changed
Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,24 @@
1-
# Vue 3 + Vite
1+
# getting-started-standalone
22

3-
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
3+
## Project setup
4+
```
5+
npm install
6+
```
47

5-
## Recommended IDE Setup
8+
### Compiles and hot-reloads for development
9+
```
10+
npm run serve
11+
```
612

7-
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
13+
### Compiles and minifies for production
14+
```
15+
npm run build
16+
```
17+
18+
### Lints and fixes files
19+
```
20+
npm run lint
21+
```
22+
23+
### Customize configuration
24+
See [Configuration Reference](https://cli.vuejs.org/config/).
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/cli-plugin-babel/preset'
4+
]
5+
}

Getting Started Vue-3 - Standalone/index.html

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es5",
4+
"module": "esnext",
5+
"baseUrl": "./",
6+
"moduleResolution": "node",
7+
"paths": {
8+
"@/*": [
9+
"src/*"
10+
]
11+
},
12+
"lib": [
13+
"esnext",
14+
"dom",
15+
"dom.iterable",
16+
"scripthost"
17+
]
18+
}
19+
}
Lines changed: 40 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,49 @@
11
{
2-
"name": "getting-started-server-back",
2+
"name": "getting-started-standalone",
3+
"version": "0.1.0",
34
"private": true,
4-
"version": "0.0.0",
5-
"type": "module",
65
"scripts": {
7-
"dev": "vite",
8-
"build": "vite build",
9-
"preview": "vite preview"
6+
"serve": "vue-cli-service serve",
7+
"build": "vue-cli-service build",
8+
"lint": "vue-cli-service lint"
109
},
1110
"dependencies": {
1211
"@syncfusion/ej2-vue-pdfviewer": "*",
13-
"vue": "^3.2.47"
12+
"buffer": "^6.0.3",
13+
"core-js": "^3.8.3",
14+
"crypto-browserify": "^3.12.0",
15+
"stream-browserify": "^3.0.0",
16+
"util": "^0.12.5",
17+
"vm-browserify": "^1.1.2",
18+
"vue": "^3.2.13"
1419
},
1520
"devDependencies": {
16-
"@vitejs/plugin-vue": "^4.1.0",
17-
"vite": "^4.3.9"
18-
}
21+
"@babel/core": "^7.12.16",
22+
"@babel/eslint-parser": "^7.12.16",
23+
"@vue/cli-plugin-babel": "~5.0.0",
24+
"@vue/cli-plugin-eslint": "~5.0.0",
25+
"@vue/cli-service": "~5.0.0",
26+
"eslint": "^7.32.0",
27+
"eslint-plugin-vue": "^8.0.3"
28+
},
29+
"eslintConfig": {
30+
"root": true,
31+
"env": {
32+
"node": true
33+
},
34+
"extends": [
35+
"plugin:vue/essential",
36+
"eslint:recommended"
37+
],
38+
"parserOptions": {
39+
"parser": "@babel/eslint-parser"
40+
},
41+
"rules": {}
42+
},
43+
"browserslist": [
44+
"> 1%",
45+
"last 2 versions",
46+
"not dead",
47+
"not ie 11"
48+
]
1949
}

Getting Started Vue-3 - Standalone/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
provide: {
2929
PdfViewer: [ Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView,
30-
Print, TextSelection, TextSearch, Annotation, FormDesigner, FormField, PageOrganizer ]
30+
Print, TextSelection, TextSearch, Annotation, FormDesigner, FormFields, PageOrganizer ]
3131
}
3232
}
3333
</script>

Getting Started Vue-3 - Standalone/vite.config.js

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
const { defineConfig } = require('@vue/cli-service')
2+
module.exports = defineConfig({
3+
transpileDependencies: true
4+
})

Getting Started Vue-3 - server-back/src/App.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
data() {
2222
return {
2323
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf",
24+
// Replace the "localhost:44396" with the actual URL of your server
2425
serviceUrl: "https://localhost:44396/pdfviewer"
2526
2627
};

0 commit comments

Comments
 (0)