Skip to content

Commit 16ef2d5

Browse files
author
Anto Gibson
authored
Initial Sample Commit
1 parent e7ede10 commit 16ef2d5

File tree

9 files changed

+139
-0
lines changed

9 files changed

+139
-0
lines changed

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + Vue</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.js"></script>
12+
</body>
13+
</html>

package.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "myvueapp",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "vite build",
9+
"preview": "vite preview"
10+
},
11+
"dependencies": {
12+
"@syncfusion/ej2-inputs": "^27.1.50",
13+
"@syncfusion/ej2-vue-buttons": "^27.1.53",
14+
"@syncfusion/ej2-vue-filemanager": "^27.1.52",
15+
"@syncfusion/ej2-vue-layouts": "^26.2.10",
16+
"@syncfusion/ej2-vue-lists": "^26.2.14",
17+
"@syncfusion/ej2-vue-navigations": "^26.2.11",
18+
"vue": "^3.4.37"
19+
},
20+
"devDependencies": {
21+
"@vitejs/plugin-vue": "^5.1.2",
22+
"vite": "^5.4.1"
23+
}
24+
}

public/vite.svg

Lines changed: 1 addition & 0 deletions
Loading

src/App.vue

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
2+
<script setup>
3+
import { FileManagerComponent, NavigationPane,
4+
Toolbar, DetailsView
5+
} from '@syncfusion/ej2-vue-filemanager';
6+
import { provide } from "vue";
7+
const filemanager = [DetailsView, NavigationPane, Toolbar];
8+
provide('filemanager', filemanager);
9+
10+
const baseUrl = "https://ej2-aspcore-service.azurewebsites.net/";
11+
// Ajax settings for FileManager
12+
const ajaxSettings = {
13+
url: baseUrl + `api/FileManager/FileOperations`,
14+
downloadUrl: baseUrl + `api/FileManager/Download`,
15+
uploadUrl: baseUrl + `api/FileManager/Upload`,
16+
getImageUrl: baseUrl + `api/FileManager/GetImage`
17+
};
18+
</script>
19+
<template>
20+
<div className='container'>
21+
<FileManagerComponent
22+
:ajaxSettings="ajaxSettings"
23+
>
24+
</FileManagerComponent>
25+
</div>
26+
</template>
27+
<style>
28+
@import "../node_modules/@syncfusion/ej2-base/styles/material.css";
29+
@import "../node_modules/@syncfusion/ej2-icons/styles/material.css";
30+
@import "../node_modules/@syncfusion/ej2-inputs/styles/material.css";
31+
@import "../node_modules/@syncfusion/ej2-popups/styles/material.css";
32+
@import "../node_modules/@syncfusion/ej2-buttons/styles/material.css";
33+
@import "../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css";
34+
@import "../node_modules/@syncfusion/ej2-navigations/styles/material.css";
35+
@import "../node_modules/@syncfusion/ej2-layouts/styles/material.css";
36+
@import "../node_modules/@syncfusion/ej2-vue-filemanager/styles/material.css";
37+
.container{
38+
margin-top: 10%;
39+
height: 500px;
40+
width: 670px;
41+
margin-left: 22.5%;
42+
}
43+
</style>

src/assets/vue.svg

Lines changed: 1 addition & 0 deletions
Loading

src/components/HelloWorld.vue

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<script setup>
2+
import { ref } from 'vue'
3+
4+
defineProps({
5+
msg: String,
6+
})
7+
8+
const count = ref(0)
9+
</script>
10+
11+
<template>
12+
<h1>{{ msg }}</h1>
13+
14+
<div class="card">
15+
<button type="button" @click="count++">count is {{ count }}</button>
16+
<p>
17+
Edit
18+
<code>components/HelloWorld.vue</code> to test HMR
19+
</p>
20+
</div>
21+
22+
<p>
23+
Check out
24+
<a href="https://vuejs.org/guide/quick-start.html#local" target="_blank"
25+
>create-vue</a
26+
>, the official Vue + Vite starter
27+
</p>
28+
<p>
29+
Learn more about IDE Support for Vue in the
30+
<a
31+
href="https://vuejs.org/guide/scaling-up/tooling.html#ide-support"
32+
target="_blank"
33+
>Vue Docs Scaling up Guide</a
34+
>.
35+
</p>
36+
<p class="read-the-docs">Click on the Vite and Vue logos to learn more</p>
37+
</template>
38+
39+
<style scoped>
40+
.read-the-docs {
41+
color: #888;
42+
}
43+
</style>

src/main.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { createApp } from 'vue'
2+
import './style.css'
3+
import App from './App.vue'
4+
import { registerLicense} from '@syncfusion/ej2-base';
5+
registerLicense('Your Trial Key');
6+
7+
createApp(App).mount('#app')

src/style.css

Whitespace-only changes.

vite.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { defineConfig } from 'vite'
2+
import vue from '@vitejs/plugin-vue'
3+
4+
// https://vitejs.dev/config/
5+
export default defineConfig({
6+
plugins: [vue()],
7+
})

0 commit comments

Comments
 (0)