Skip to content

Commit 4ebe999

Browse files
Merge pull request #1 from SatishRaj4377/EJ2-964408-jsonToDiagram
964408: added react sample
2 parents 10b68ea + 2daf62a commit 4ebe999

32 files changed

+3654
-0
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.vscode/
2+
node_modules/
3+
src/**/*.js
4+
dist/
5+
styles/*.*
6+
!styles/index.css

.gitleaksignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/assets/styles.css:aws-access-token:7

.npmignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.npmrc
2+
.vscode/
3+
.npmignore
4+
config.json
5+
gulpfile.js
6+
tsconfig.json
7+
node-modules/
8+
Jenkinsfile
9+
src/**/*.js

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
registry=https://registry.npmjs.org/
2+
@syncfusion:registry=https://nexus.syncfusioninternal.com/repository/ej2-development/

Jenkinsfile

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!groovy
2+
3+
node('EJ2Angularlatest') {
4+
try {
5+
deleteDir()
6+
7+
stage('Import') {
8+
git url: 'https://gitea.syncfusion.com/essential-studio/ej2-groovy-scripts.git', branch: 'master', credentialsId: env.GiteaCredentialID;
9+
shared = load 'src/shared.groovy'
10+
}
11+
12+
stage('Checkout') {
13+
checkout scm
14+
}
15+
16+
stage('Validation') {
17+
shared.getProjectDetails()
18+
shared.gitlabCommitStatus('running')
19+
}
20+
21+
stage('Install') {
22+
sh 'npm install'
23+
}
24+
25+
stage('Build') {
26+
sh 'gulp hide-license && npm run build && gulp finished'
27+
}
28+
29+
stage('Publish') {
30+
shared.publish()
31+
}
32+
33+
shared.gitlabCommitStatus('success')
34+
35+
deleteDir()
36+
}
37+
catch(Exception e) {
38+
shared.throwError(e)
39+
deleteDir()
40+
error('Build Failed')
41+
}
42+
}

config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"productOwner": "Sarathkumar V"
3+
}

gulpfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require('@syncfusion/ej2-showcase-helper');

license

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Essential JS 2 library is available under the Syncfusion Essential Studio program, and can be licensed either under the Syncfusion Community License Program or the Syncfusion commercial license.
2+
3+
To be qualified for the Syncfusion Community License Program you must have a gross revenue of less than one (1) million U.S. dollars ($1,000,000.00 USD) per year and have less than five (5) developers in your organization, and agree to be bound by Syncfusion’s terms and conditions.
4+
5+
Customers who do not qualify for the community license can contact [email protected] for commercial licensing options.
6+
7+
Under no circumstances can you use this product without (1) either a Community License or a commercial license and (2) without agreeing and abiding by Syncfusion’s license containing all terms and conditions.
8+
9+
The Syncfusion license that contains the terms and conditions can be found at
10+
https://www.syncfusion.com/content/downloads/syncfusion_license.pdf

package.json

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"name": "@syncfusion/ej2-react-jsonandxml-to-diagram-visualizer",
3+
"version": "0.0.1",
4+
"description": "Essential JS 2 for React - JSON and XML to Diagram Layout",
5+
"author": "Syncfusion Inc.",
6+
"license": "SEE LICENSE IN license",
7+
"dependencies": {
8+
"@monaco-editor/react": "^4.7.0",
9+
"@syncfusion/ej2-react-buttons": "*",
10+
"@syncfusion/ej2-react-diagrams": "*",
11+
"@syncfusion/ej2-react-dropdowns": "*",
12+
"@syncfusion/ej2-react-inputs": "*",
13+
"@syncfusion/ej2-react-navigations": "*",
14+
"@syncfusion/ej2-react-popups": "*",
15+
"@syncfusion/ej2-react-splitbuttons": "*",
16+
"fast-xml-parser": "^5.2.5",
17+
"monaco-editor": "^0.52.2",
18+
"@testing-library/jest-dom": "^5.16.4",
19+
"@testing-library/react": "^13.2.0",
20+
"@testing-library/user-event": "^13.5.0",
21+
"react": "^18.2.0",
22+
"react-dom": "^18.2.0",
23+
"react-scripts": "*",
24+
"typescript": "^4.6.4",
25+
"web-vitals": "*",
26+
"react-router-dom": "^6.14.1"
27+
},
28+
"devDependencies": {
29+
"@types/jest": "^27.5.1",
30+
"@types/node": "^20.4.1",
31+
"@types/react": "^18.2.14",
32+
"@types/react-dom": "^18.2.6",
33+
"style-loader": "^0.23.1",
34+
"typescript": "^4.0.0",
35+
"@syncfusion/ej2-showcase-helper": "*",
36+
"@types/react-router-dom": "^5.3.3",
37+
"css-loader": "^6.8.1",
38+
"html-webpack-plugin": "^5.5.3",
39+
"mini-css-extract-plugin": "^2.7.6",
40+
"terser-webpack-plugin": "^5.3.9",
41+
"ts-loader": "^9.5.1",
42+
"webpack": "^5.91.0",
43+
"webpack-cli": "^5.1.4",
44+
"webpack-dev-server": "^4.15.1"
45+
},
46+
"scripts": {
47+
"start": "webpack-dev-server --open --mode development",
48+
"build": "webpack --mode production",
49+
"ci-publish": "gulp publish-sample",
50+
"hide-license": "gulp hide-license"
51+
},
52+
"eslintConfig": {
53+
"extends": [
54+
"react-app",
55+
"react-app/jest"
56+
]
57+
},
58+
"browserslist": {
59+
"production": [
60+
">0.2%",
61+
"not dead",
62+
"not op_mini all"
63+
],
64+
"development": [
65+
"last 1 chrome version",
66+
"last 1 firefox version",
67+
"last 1 safari version"
68+
]
69+
}
70+
}

public/favicon.ico

6.42 KB
Binary file not shown.

public/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+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<link id="theme-link" href="https://cdn.syncfusion.com/ej2/29.1.33/tailwind.css" rel="stylesheet">
7+
<title>Essential JS2 for React - JSON and XML to Diagram Layout</title>
8+
</head>
9+
<body>
10+
<noscript>You need to enable JavaScript to run this app.</noscript>
11+
<div id="root"></div>
12+
</body>
13+
</html>

public/manifest.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"short_name": "Json and Xml to Diagram",
3+
"name": "Essential JS 2 for React - JSON and XML to Diagram Layout",
4+
"icons": [
5+
{
6+
"src": "favicon.ico",
7+
"sizes": "64x64 32x32 24x24 16x16",
8+
"type": "image/x-icon"
9+
}
10+
],
11+
"start_url": ".",
12+
"display": "standalone",
13+
"theme_color": "#000000",
14+
"background_color": "#ffffff"
15+
}

public/robots.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# https://www.robotstxt.org/robotstxt.html
2+
User-agent: *
3+
Disallow:

0 commit comments

Comments
 (0)