Skip to content

Commit 0e4d910

Browse files
authored
Remove redux from example package
Removes the redux integration from the example package and reimplements most of the Redux based custom functionality with the React standalone variant.
1 parent 7363465 commit 0e4d910

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+588
-1133
lines changed

package-lock.json

Lines changed: 133 additions & 73 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
"@jsonforms/examples": "^3.0.0-alpha.2",
88
"@jsonforms/react": "^3.0.0-alpha.2",
99
"@mui/material": "^5.2.2",
10+
"json-refs": "3.0.15",
1011
"lodash": "^4.17.15",
11-
"react": "^17.0.2",
1212
"react-dom": "^17.0.2",
13-
"redux": "^4.0.4"
13+
"react": "^17.0.2"
1414
},
1515
"scripts": {
1616
"build": "echo 'Nothing to do'",

packages/example/src/App.css

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
.App {
2-
text-align: center;
1+
body {
2+
margin: 0;
3+
padding: 0;
4+
font-family: sans-serif;
35
}
46

57
.App-logo {
@@ -9,15 +11,37 @@
911

1012
.App-header {
1113
background-color: #222;
12-
height: 150px;
1314
padding: 20px;
1415
color: white;
16+
text-align: center;
1517
}
1618

1719
.App-title {
1820
font-size: 1.5em;
1921
}
2022

23+
.buttons {
24+
margin-bottom: 20px;
25+
}
26+
27+
button {
28+
margin-right: 10px;
29+
background-color: #0069ed;
30+
color: #ffffff;
31+
border: 1px solid;
32+
font-size: 1rem;
33+
line-height: 1;
34+
padding: 0.5rem 1rem;
35+
border-radius: 5px;
36+
cursor: pointer;
37+
}
38+
button:hover {
39+
background-color: #0053ba;
40+
}
41+
button:active {
42+
transform: scale(0.99);
43+
}
44+
2145
.App-intro {
2246
font-size: large;
2347
}
@@ -27,9 +51,18 @@
2751
to { transform: rotate(360deg); }
2852
}
2953

54+
pre {
55+
overflow-x: auto;
56+
background: #ccc;
57+
padding: 15px;
58+
}
59+
60+
.content {
61+
padding: 20px;
62+
}
63+
3064
.data-title {
3165
text-align: center;
32-
margin-bottom: 0;
3366
}
3467

3568
.data-content {

0 commit comments

Comments
 (0)