Skip to content

Commit 8e01334

Browse files
author
Anto Gibson
authored
Initial Sample Commit
1 parent ecbf508 commit 8e01334

File tree

9 files changed

+195
-0
lines changed

9 files changed

+195
-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: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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-vue-layouts": "^26.2.10",
13+
"@syncfusion/ej2-vue-lists": "^26.2.11",
14+
"@syncfusion/ej2-vue-navigations": "^26.2.11",
15+
"vue": "^3.4.37"
16+
},
17+
"devDependencies": {
18+
"@vitejs/plugin-vue": "^5.1.2",
19+
"vite": "^5.4.1"
20+
}
21+
}

public/vite.svg

Lines changed: 1 addition & 0 deletions
Loading

src/App.vue

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
<script setup>
2+
import { TimelineComponent,
3+
ItemDirective as Item,
4+
ItemsDirective as Items
5+
} from '@syncfusion/ej2-vue-layouts';
6+
</script>
7+
<template>
8+
<div class="timeline-component">
9+
<TimelineComponent align="Alternate" orientation="Horizontal">
10+
<Items>
11+
<Item :content="'ordered'" oppositeContent="9:15 AM, January 1, 2024"
12+
dotCss="state-success" cssClass="completed"></Item>
13+
<template v-slot:ordered>
14+
<div class="timeline-content">
15+
<p>Order was placed successfully.</p>
16+
<p>Details: USB Wired-Mouse, Quantity: 3</p>
17+
</div>
18+
</template>
19+
<Item :content="'shipped'" oppositeContent="12:20 PM, January 4, 2024"
20+
dotCss="state-success" cssClass="completed"></Item>
21+
<template v-slot:shipped>
22+
<div class="timeline-content">
23+
<p>Order has been shipped.</p>
24+
<p>Tracking Number: 123456789</p>
25+
</div>
26+
</template>
27+
<Item content="Out for Delivery" oppositeContent="07:00 AM, January 8, 2024"
28+
dotCss="state-progress" cssClass="intermediate"></Item>
29+
<Item content="Delivered" oppositeContent="Estimated delivery by 09:20 AM"
30+
:disabled="true"></Item>
31+
</Items>
32+
</TimelineComponent>
33+
</div>
34+
</template>
35+
<style>
36+
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
37+
@import '../node_modules/@syncfusion/ej2-vue-layouts/styles/material.css';
38+
.timeline-component {
39+
height: 350px;
40+
width: 520px;
41+
margin: 10% auto;
42+
position: relative;
43+
/* .state-progress{
44+
outline-color: #007bff;
45+
background-color: #007bff;
46+
--dot-size: 25px;
47+
}
48+
.state-success{
49+
outline-color: #28a745;
50+
background-color: #28a745;
51+
}
52+
.completed.e-connector::after {
53+
border-color:#28a745;
54+
}
55+
.intermediate.e-connector::after {
56+
border-style: dashed;
57+
} */
58+
}
59+
.template-container {
60+
display: flex;
61+
justify-content: space-between;
62+
align-items: center;
63+
padding: 10px 0;
64+
position: relative;
65+
}
66+
.content-container {
67+
width: 80%;
68+
}
69+
.timeline-content {
70+
padding: 10px;
71+
border-radius: 5px;
72+
background-color: #f1f1f1;
73+
font-family: Arial, sans-serif;
74+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
75+
}
76+
.content-connector {
77+
position: absolute;
78+
height: 2px;
79+
width: 100%;
80+
background-color: #ccc;
81+
top: 50%;
82+
left: 10%;
83+
z-index: 1;
84+
}
85+
.progress-line {
86+
display: flex;
87+
justify-content: center;
88+
align-items: center;
89+
flex-direction: column;
90+
position: relative;
91+
width: 25px;
92+
}
93+
.indicator {
94+
width: var(--dot-size, 20px);
95+
height: var(--dot-size, 20px);
96+
border-radius: 50%;
97+
background-color: #ccc;
98+
position: relative;
99+
z-index: 2;
100+
}
101+
</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 License Key');
6+
7+
createApp(App).mount('#app')

src/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

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)