Skip to content

Commit 2412bd5

Browse files
authored
Merge pull request #1 from Balaji-Elumalai/master
Added scheduler sample.
2 parents 1652b55 + 8f5f51d commit 2412bd5

14 files changed

Lines changed: 279 additions & 1 deletion

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "next/core-web-vitals"
3+
}

.gitignore

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
27+
# local env files
28+
.env*.local
29+
30+
# vercel
31+
.vercel
32+
33+
# typescript
34+
*.tsbuildinfo
35+
next-env.d.ts

README.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,37 @@
1-
# ej2-nextjs-schedule
1+
# Getting Started with React UI Components using Next.js
2+
23
This application demonstrates the usage of the Syncfusion React Schedule component in Next.js.
4+
5+
To know how to configure the Syncfusion React Schedule component in Next.js, refer to the [documentation](https://ej2.syncfusion.com/react/documentation/schedule/nextjs-getting-started).
6+
7+
## Clone the repository
8+
9+
* To clone the sample repository locally, open the command prompt in the desired location and execute the following command.
10+
11+
```sh
12+
13+
git clone https://github.com/SyncfusionExamples/ej2-nextjs-schedule.git
14+
15+
```
16+
17+
* Navigate to the project directory:
18+
19+
```sh
20+
cd ej2-nextjs-schedule
21+
```
22+
23+
## Installing Packages
24+
25+
Install the required node modules by running the following command:
26+
27+
```sh
28+
npm install
29+
```
30+
31+
## Run the application
32+
33+
To run the application, use the following command:
34+
35+
```bash
36+
npm run dev
37+
```

next.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {}
3+
4+
module.exports = nextConfig

package.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "ej2-nextjs-schedule",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"dev": "next dev",
7+
"build": "next build",
8+
"start": "next start",
9+
"lint": "next lint"
10+
},
11+
"dependencies": {
12+
"@syncfusion/ej2-react-schedule": "*",
13+
"@types/node": "20.4.8",
14+
"@types/react": "18.2.18",
15+
"@types/react-dom": "18.2.7",
16+
"eslint": "8.46.0",
17+
"eslint-config-next": "13.4.13",
18+
"next": "13.4.13",
19+
"react": "18.2.0",
20+
"react-dom": "18.2.0",
21+
"typescript": "5.1.6"
22+
}
23+
}

public/next.svg

Lines changed: 1 addition & 0 deletions
Loading

public/vercel.svg

Lines changed: 1 addition & 0 deletions
Loading

src/app/datasource.tsx

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
export let timelineResourceData: Object[] = [
2+
{
3+
Id: 61,
4+
Subject: 'Decoding',
5+
StartTime: new Date(2018, 3, 4, 9, 30),
6+
EndTime: new Date(2018, 3, 4, 10, 30),
7+
IsAllDay: false,
8+
ProjectId: 2,
9+
TaskId: 2
10+
}, {
11+
Id: 62,
12+
Subject: 'Bug Automation',
13+
StartTime: new Date(2018, 3, 4, 13, 30),
14+
EndTime: new Date(2018, 3, 4, 16, 30),
15+
IsAllDay: false,
16+
ProjectId: 2,
17+
TaskId: 1
18+
}, {
19+
Id: 63,
20+
Subject: 'Functionality testing',
21+
StartTime: new Date(2018, 3, 4, 9),
22+
EndTime: new Date(2018, 3, 4, 10, 30),
23+
IsAllDay: false,
24+
ProjectId: 1,
25+
TaskId: 1
26+
}, {
27+
Id: 64,
28+
Subject: 'Resolution-based testing',
29+
StartTime: new Date(2018, 3, 4, 12),
30+
EndTime: new Date(2018, 3, 4, 13),
31+
IsAllDay: false,
32+
ProjectId: 1,
33+
TaskId: 1
34+
}, {
35+
Id: 65,
36+
Subject: 'Test report Validation',
37+
StartTime: new Date(2018, 3, 4, 15),
38+
EndTime: new Date(2018, 3, 4, 18),
39+
IsAllDay: false,
40+
ProjectId: 1,
41+
TaskId: 1
42+
}, {
43+
Id: 66,
44+
Subject: 'Test case correction',
45+
StartTime: new Date(2018, 3, 4, 14),
46+
EndTime: new Date(2018, 3, 4, 16),
47+
IsAllDay: false,
48+
ProjectId: 1,
49+
TaskId: 2
50+
}, {
51+
Id: 67,
52+
Subject: 'Bug fixing',
53+
StartTime: new Date(2018, 3, 4, 14, 30),
54+
EndTime: new Date(2018, 3, 4, 18, 30),
55+
IsAllDay: false,
56+
ProjectId: 2,
57+
TaskId: 2
58+
}, {
59+
Id: 68,
60+
Subject: 'Run test cases',
61+
StartTime: new Date(2018, 3, 4, 17, 30),
62+
EndTime: new Date(2018, 3, 4, 19, 30),
63+
IsAllDay: false,
64+
ProjectId: 1,
65+
TaskId: 2
66+
}, {
67+
Id: 70,
68+
Subject: 'Bug Automation',
69+
StartTime: new Date(2018, 3, 4, 18, 30),
70+
EndTime: new Date(2018, 3, 4, 20),
71+
IsAllDay: false,
72+
ProjectId: 2,
73+
TaskId: 1
74+
}
75+
];

src/app/favicon.ico

25.3 KB
Binary file not shown.

src/app/globals.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@import "../../node_modules/@syncfusion/ej2-base/styles/material.css";
2+
@import "../../node_modules/@syncfusion/ej2-buttons/styles/material.css";
3+
@import "../../node_modules/@syncfusion/ej2-calendars/styles/material.css";
4+
@import "../../node_modules/@syncfusion/ej2-dropdowns/styles/material.css";
5+
@import "../../node_modules/@syncfusion/ej2-inputs/styles/material.css";
6+
@import "../../node_modules/@syncfusion/ej2-lists/styles/material.css";
7+
@import "../../node_modules/@syncfusion/ej2-navigations/styles/material.css";
8+
@import "../../node_modules/@syncfusion/ej2-popups/styles/material.css";
9+
@import "../../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css";
10+
@import "../../node_modules/@syncfusion/ej2-react-schedule/styles/material.css";

0 commit comments

Comments
 (0)