Skip to content

Commit

Permalink
Merge pull request #14 from SyncfusionExamples/877844-samples
Browse files Browse the repository at this point in the history
877844 : samples are update to vue 2
  • Loading branch information
SasidharanKaruppiah authored Apr 1, 2024
2 parents 1e3b5bf + a972102 commit 0b5561d
Show file tree
Hide file tree
Showing 159 changed files with 2,692 additions and 2,193 deletions.
27 changes: 11 additions & 16 deletions Annotations/Interaction with annotations/.gitignore
Original file line number Diff line number Diff line change
@@ -1,26 +1,21 @@
# Logs
logs
*.log
.DS_Store
node_modules
/dist


# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.DS_Store
dist
dist-ssr
coverage
*.local

/cypress/videos/
/cypress/screenshots/

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
Expand Down
37 changes: 16 additions & 21 deletions Annotations/Interaction with annotations/README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,24 @@
# ej2-vue-app
# quickstart

This template should help get you started developing with Vue 3 in Vite.

## Recommended IDE Setup

[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.vscode-typescript-vue-plugin).

## Customize configuration

See [Vite Configuration Reference](https://vitejs.dev/config/).

## Project Setup

```sh
## Project setup
```
npm install
```

### Compile and Hot-Reload for Development

```sh
npm run dev
### Compiles and hot-reloads for development
```
npm run serve
```

### Compile and Minify for Production

```sh
### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
13 changes: 0 additions & 13 deletions Annotations/Interaction with annotations/index.html

This file was deleted.

48 changes: 36 additions & 12 deletions Annotations/Interaction with annotations/package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,44 @@
{
"name": "ej2-vue-app",
"version": "0.0.0",
"name": "annotation",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview --port 5050"
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"@syncfusion/ej2-vue-navigations": "*",
"@syncfusion/ej2-vue-schedule": "*",
"@syncfusion/ej2-vue-pdfviewer": "*",
"vue": "^3.2.33",
"vue-class-component": "^8.0.0-rc.1"
"core-js": "^3.8.3",
"vue": "^2.6.14"
},
"devDependencies": {
"@vitejs/plugin-vue": "^2.3.1",
"vite": "^2.9.5"
}
"@babel/core": "^7.12.16",
"@babel/eslint-parser": "^7.12.16",
"@vue/cli-plugin-babel": "~5.0.0",
"@vue/cli-plugin-eslint": "~5.0.0",
"@vue/cli-service": "~5.0.0",
"eslint": "^7.32.0",
"eslint-plugin-vue": "^8.0.3",
"vue-template-compiler": "^2.6.14"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended"
],
"parserOptions": {
"parser": "@babel/eslint-parser"
},
"rules": {}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not dead"
]
}
2 changes: 1 addition & 1 deletion Annotations/Interaction with annotations/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default {
PdfViewer: [Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, TextSearch, Annotation, FormDesigner, FormFields]
},
methods: {
documentLoad: function (args) {
documentLoad: function () {
viewer = this.$refs.pdfviewer.ej2Instances;
//Document loaded with annotation.
viewer.annotation.addAnnotation("Ink", {
Expand Down
74 changes: 0 additions & 74 deletions Annotations/Interaction with annotations/src/assets/base.css

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

8 changes: 6 additions & 2 deletions Annotations/Interaction with annotations/src/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { createApp } from 'vue'
import Vue from 'vue'
import App from './App.vue'

createApp(App).mount('#app')
Vue.config.productionTip = false

new Vue({
render: h => h(App),
}).$mount('#app')
14 changes: 0 additions & 14 deletions Annotations/Interaction with annotations/vite.config.js

This file was deleted.

6 changes: 0 additions & 6 deletions Getting Started - Standalone/.babelrc

This file was deleted.

9 changes: 0 additions & 9 deletions Getting Started - Standalone/.editorconfig

This file was deleted.

35 changes: 23 additions & 12 deletions Getting Started - Standalone/.gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
.DS_Store
node_modules/
dist/
npm-debug.log
yarn-error.log

# Editor directories and files
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
.DS_Store
node_modules
/dist


# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
Loading

0 comments on commit 0b5561d

Please sign in to comment.