From a641e788c53b8896d16fb181bef87e0649d25807 Mon Sep 17 00:00:00 2001 From: Arulraj Aboorvasamy <95745238+ArulrajAboo@users.noreply.github.com> Date: Fri, 12 Apr 2024 16:42:23 +0530 Subject: [PATCH 1/3] Committed the example project. --- README.md | 9 +++- index.html | 13 ++++++ package.json | 20 +++++++++ public/vite.svg | 1 + src/App.vue | 75 +++++++++++++++++++++++++++++++++ src/assets/vue.svg | 1 + src/components/HelloWorld.vue | 40 ++++++++++++++++++ src/main.js | 6 +++ src/style.css | 79 +++++++++++++++++++++++++++++++++++ vite.config.js | 7 ++++ 10 files changed, 249 insertions(+), 2 deletions(-) create mode 100644 index.html create mode 100644 package.json create mode 100644 public/vite.svg create mode 100644 src/App.vue create mode 100644 src/assets/vue.svg create mode 100644 src/components/HelloWorld.vue create mode 100644 src/main.js create mode 100644 src/style.css create mode 100644 vite.config.js diff --git a/README.md b/README.md index f6847ff..e62e093 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ -# How-to-Create-and-Customize-Nodes-in-the-Vue-Diagram-Component -A quick start Vue project that shows how to create a node and customize it in the Syncfusion Vue Diagram Component. This project includes code snippets to create a node programmatically and use the drawing tool. +# Vue 3 + Vite + +This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 ` + + diff --git a/package.json b/package.json new file mode 100644 index 0000000..ca5622a --- /dev/null +++ b/package.json @@ -0,0 +1,20 @@ +{ + "name": "myvueapp", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "preview": "vite preview" + }, + "dependencies": { + "@syncfusion/ej2-vue-buttons": "^24.2.5", + "@syncfusion/ej2-vue-diagrams": "^24.2.5", + "vue": "^3.3.11" + }, + "devDependencies": { + "@vitejs/plugin-vue": "^4.5.2", + "vite": "^5.0.8" + } +} diff --git a/public/vite.svg b/public/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/public/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/App.vue b/src/App.vue new file mode 100644 index 0000000..34f6094 --- /dev/null +++ b/src/App.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/assets/vue.svg b/src/assets/vue.svg new file mode 100644 index 0000000..770e9d3 --- /dev/null +++ b/src/assets/vue.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue new file mode 100644 index 0000000..f5e4f53 --- /dev/null +++ b/src/components/HelloWorld.vue @@ -0,0 +1,40 @@ + + + + + diff --git a/src/main.js b/src/main.js new file mode 100644 index 0000000..686cd5d --- /dev/null +++ b/src/main.js @@ -0,0 +1,6 @@ +import { createApp } from 'vue' +import './style.css' +import App from './App.vue' +import { registerLicense } from '@syncfusion/ej2-base' +registerLicense('Ngo9BigBOggjHTQxAR8/V1NAaF5cWWRCf1FpRmJGdld5fUVHYVZUTXxaS00DNHVRdkdnWX5cdHRRQmBZVUN/XUQ=') +createApp(App).mount('#app') diff --git a/src/style.css b/src/style.css new file mode 100644 index 0000000..bb131d6 --- /dev/null +++ b/src/style.css @@ -0,0 +1,79 @@ +:root { + font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; + line-height: 1.5; + font-weight: 400; + + color-scheme: light dark; + color: rgba(255, 255, 255, 0.87); + background-color: #242424; + + font-synthesis: none; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +a { + font-weight: 500; + color: #646cff; + text-decoration: inherit; +} +a:hover { + color: #535bf2; +} + +body { + margin: 0; + display: flex; + place-items: center; + min-width: 320px; + min-height: 100vh; +} + +h1 { + font-size: 3.2em; + line-height: 1.1; +} + +button { + border-radius: 8px; + border: 1px solid transparent; + padding: 0.6em 1.2em; + font-size: 1em; + font-weight: 500; + font-family: inherit; + background-color: #1a1a1a; + cursor: pointer; + transition: border-color 0.25s; +} +button:hover { + border-color: #646cff; +} +button:focus, +button:focus-visible { + outline: 4px auto -webkit-focus-ring-color; +} + +.card { + padding: 2em; +} + +#app { + max-width: 1280px; + margin: 0 auto; + padding: 2rem; + text-align: center; +} + +@media (prefers-color-scheme: light) { + :root { + color: #213547; + background-color: #ffffff; + } + a:hover { + color: #747bff; + } + button { + background-color: #f9f9f9; + } +} diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..05c1740 --- /dev/null +++ b/vite.config.js @@ -0,0 +1,7 @@ +import { defineConfig } from 'vite' +import vue from '@vitejs/plugin-vue' + +// https://vitejs.dev/config/ +export default defineConfig({ + plugins: [vue()], +}) From 42ac674622896a721f9e45a6f637b53a112fe1f3 Mon Sep 17 00:00:00 2001 From: Arulraj Aboorvasamy <95745238+ArulrajAboo@users.noreply.github.com> Date: Fri, 12 Apr 2024 16:44:35 +0530 Subject: [PATCH 2/3] Update README.md --- README.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e62e093..47f9951 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,13 @@ -# Vue 3 + Vite +# How to Create and Customize Nodes in the Vue Diagram Component -This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `