-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
857163-sampleUpdate : GitHub samples for vue 3 standalone and server …
…back component is added
- Loading branch information
SaravanaPriya31
authored and
SaravanaPriya31
committed
Nov 30, 2023
1 parent
e99976c
commit 8f2251f
Showing
18 changed files
with
165 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Vue 3 + Vite | ||
|
||
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. | ||
|
||
## Recommended IDE Setup | ||
|
||
- [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). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>vue 3 getting started</title> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "vite-project", | ||
"private": true, | ||
"version": "0.0.0", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vite build", | ||
"preview": "vite preview" | ||
}, | ||
"dependencies": { | ||
"@syncfusion/ej2-vue-pdfviewer": "*", | ||
"vue": "^3.2.47" | ||
}, | ||
"devDependencies": { | ||
"@vitejs/plugin-vue": "^4.1.0", | ||
"vite": "^4.3.9" | ||
} | ||
} |
90 changes: 44 additions & 46 deletions
90
Getting Started Vue-3/src/App.vue → ...ng Started Vue-3 - Standalone/src/App.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,45 @@ | ||
<template> | ||
<ejs-pdfviewer | ||
id="pdfViewer" | ||
:documentPath="documentPath" | ||
:style="{ height: '800px', width: '1200px' }" | ||
:resourceUrl="resourceUrl"> | ||
</ejs-pdfviewer> | ||
</template> | ||
|
||
<script> | ||
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, | ||
ThumbnailView, Print, TextSelection, TextSearch, Annotation, FormDesigner, FormFields } from '@syncfusion/ej2-vue-pdfviewer'; | ||
export default { | ||
name: 'App', | ||
// Declaring component and its directives | ||
components: { | ||
"ejs-pdfviewer": PdfViewerComponent | ||
}, | ||
data() { | ||
return { | ||
// To set up the **server-backed PDF Viewer** in the app.vue file, include the following serviceUrl. Within the template, configure the PDF Viewer by adding the `:serviceUrl="serviceUrl"` attribute inside the <div> element | ||
// serviceUrl: "https://services.syncfusion.com/vue/production/api/pdfviewer", | ||
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf", | ||
resourceUrl: 'https://cdn.syncfusion.com/ej2/23.1.43/dist/ej2-pdfviewer-lib' | ||
}; | ||
}, | ||
provide: { | ||
PdfViewer: [ Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, | ||
Print, TextSelection, TextSearch, Annotation, FormDesigner, FormFields ] | ||
} | ||
} | ||
</script> | ||
|
||
<style> | ||
@import '../node_modules/@syncfusion/ej2-base/styles/material.css'; | ||
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css'; | ||
@import '../node_modules/@syncfusion/ej2-dropdowns/styles/material.css'; | ||
@import '../node_modules/@syncfusion/ej2-inputs/styles/material.css'; | ||
@import '../node_modules/@syncfusion/ej2-navigations/styles/material.css'; | ||
@import '../node_modules/@syncfusion/ej2-popups/styles/material.css'; | ||
@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css'; | ||
@import '../node_modules/@syncfusion/ej2-lists/styles/material.css'; | ||
@import '../node_modules/@syncfusion/ej2-vue-pdfviewer/styles/material.css'; | ||
<template> | ||
<ejs-pdfviewer | ||
id="pdfViewer" | ||
:documentPath="documentPath" | ||
:style="{ height: '800px', width: '1200px' }" | ||
:resourceUrl="resourceUrl"> | ||
</ejs-pdfviewer> | ||
</template> | ||
|
||
<script> | ||
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, | ||
ThumbnailView, Print, TextSelection, TextSearch, Annotation, FormDesigner, FormFields } from '@syncfusion/ej2-vue-pdfviewer'; | ||
export default { | ||
name: 'App', | ||
// Declaring component and its directives | ||
components: { | ||
"ejs-pdfviewer": PdfViewerComponent | ||
}, | ||
data() { | ||
return { | ||
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf", | ||
resourceUrl: 'https://cdn.syncfusion.com/ej2/23.1.43/dist/ej2-pdfviewer-lib' | ||
}; | ||
}, | ||
provide: { | ||
PdfViewer: [ Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, | ||
Print, TextSelection, TextSearch, Annotation, FormDesigner, FormFields ] | ||
} | ||
} | ||
</script> | ||
|
||
<style> | ||
@import '../node_modules/@syncfusion/ej2-base/styles/material.css'; | ||
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css'; | ||
@import '../node_modules/@syncfusion/ej2-dropdowns/styles/material.css'; | ||
@import '../node_modules/@syncfusion/ej2-inputs/styles/material.css'; | ||
@import '../node_modules/@syncfusion/ej2-navigations/styles/material.css'; | ||
@import '../node_modules/@syncfusion/ej2-popups/styles/material.css'; | ||
@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css'; | ||
@import '../node_modules/@syncfusion/ej2-lists/styles/material.css'; | ||
@import '../node_modules/@syncfusion/ej2-vue-pdfviewer/styles/material.css'; | ||
</style> |
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { createApp } from 'vue' | ||
import App from './App.vue' | ||
|
||
createApp(App).mount('#app') |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { defineConfig } from 'vite' | ||
import vue from '@vitejs/plugin-vue' | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
plugins: [vue()], | ||
}) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<template> | ||
<ejs-pdfviewer | ||
id="pdfViewer" | ||
:documentPath="documentPath" | ||
:style="{ height: '800px', width: '1200px' }" | ||
:serviceUrl="serviceUrl"> | ||
</ejs-pdfviewer> | ||
</template> | ||
|
||
<script> | ||
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, | ||
ThumbnailView, Print, TextSelection, TextSearch, Annotation, FormDesigner, FormFields } from '@syncfusion/ej2-vue-pdfviewer'; | ||
export default { | ||
name: 'App', | ||
// Declaring component and its directives | ||
components: { | ||
"ejs-pdfviewer": PdfViewerComponent | ||
}, | ||
data() { | ||
return { | ||
documentPath: "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf", | ||
serviceUrl: "https://services.syncfusion.com/vue/production/api/pdfviewer" | ||
}; | ||
}, | ||
provide: { | ||
PdfViewer: [ Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, | ||
Print, TextSelection, TextSearch, Annotation, FormDesigner, FormFields ] | ||
} | ||
} | ||
</script> | ||
|
||
<style> | ||
@import '../node_modules/@syncfusion/ej2-base/styles/material.css'; | ||
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css'; | ||
@import '../node_modules/@syncfusion/ej2-dropdowns/styles/material.css'; | ||
@import '../node_modules/@syncfusion/ej2-inputs/styles/material.css'; | ||
@import '../node_modules/@syncfusion/ej2-navigations/styles/material.css'; | ||
@import '../node_modules/@syncfusion/ej2-popups/styles/material.css'; | ||
@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css'; | ||
@import '../node_modules/@syncfusion/ej2-lists/styles/material.css'; | ||
@import '../node_modules/@syncfusion/ej2-vue-pdfviewer/styles/material.css'; | ||
</style> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
Empty file.
File renamed without changes.