File tree 16 files changed +99
-102
lines changed
16 files changed +99
-102
lines changed Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.0" ,
4
4
"description" : " Columns, rows - ActiveWidgets/React" ,
5
5
"license" : " MIT" ,
6
- "main" : " src/index.jsx" ,
7
6
"scripts" : {
8
- "start" : " vite --open / " ,
9
- "build" : " vite build"
7
+ "start" : " react-scripts start " ,
8
+ "build" : " react-scripts build"
10
9
},
11
10
"dependencies" : {
12
11
"@activewidgets/examples" : " *" ,
13
12
"@activewidgets/react" : " ^3" ,
14
- "react" : " ^17 " ,
15
- "react-dom" : " ^17 "
13
+ "react" : " ^18 " ,
14
+ "react-dom" : " ^18 "
16
15
},
17
16
"devDependencies" : {
18
- "vite " : " ^2 "
17
+ "react-scripts " : " ^5 "
19
18
},
19
+ "browserslist" : [
20
+ " defaults"
21
+ ],
20
22
"repository" : {
21
23
"type" : " git" ,
22
24
"url" : " https://github.com/activewidgets/react.git" ,
Original file line number Diff line number Diff line change 1
- <!DOCTYPE html>
2
- < html >
3
- < head >
4
- < title > Columns, rows - ActiveWidgets/React</ title >
5
- < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
6
- </ head >
7
- < body >
8
- < div id ="app "> Loading...</ div >
9
- < script type ="module " src ="./src/index.jsx "> </ script >
10
- </ body >
1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < title > Columns, rows - ActiveWidgets/React</ title >
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
6
+ </ head >
7
+ < body >
8
+ < div id ="app "> Loading...</ div >
9
+ </ body >
11
10
</ html >
Original file line number Diff line number Diff line change 5
5
*/
6
6
7
7
import React from "react" ;
8
- import ReactDOM from "react-dom" ;
8
+ import { createRoot } from "react-dom/client " ;
9
9
import { Datagrid } from "@activewidgets/react" ;
10
10
import { northwind } from "@activewidgets/examples/data" ;
11
11
import './styles.css' ;
@@ -32,4 +32,4 @@ function App(){
32
32
}
33
33
34
34
35
- ReactDOM . render ( < App /> , document . getElementById ( "app" ) ) ;
35
+ createRoot ( document . getElementById ( "app" ) ) . render ( < App /> ) ;
Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.0" ,
4
4
"description" : " Demo - ActiveWidgets/React" ,
5
5
"license" : " MIT" ,
6
- "main" : " src/index.jsx" ,
7
6
"scripts" : {
8
- "start" : " vite --open / " ,
9
- "build" : " vite build"
7
+ "start" : " react-scripts start " ,
8
+ "build" : " react-scripts build"
10
9
},
11
10
"dependencies" : {
12
11
"@activewidgets/examples" : " *" ,
13
12
"@activewidgets/options" : " ^3" ,
14
13
"@activewidgets/react" : " ^3" ,
15
- "react" : " ^17 " ,
16
- "react-dom" : " ^17 "
14
+ "react" : " ^18 " ,
15
+ "react-dom" : " ^18 "
17
16
},
18
17
"devDependencies" : {
19
- "vite " : " ^2 "
18
+ "react-scripts " : " ^5 "
20
19
},
20
+ "browserslist" : [
21
+ " defaults"
22
+ ],
21
23
"repository" : {
22
24
"type" : " git" ,
23
25
"url" : " https://github.com/activewidgets/react.git" ,
Original file line number Diff line number Diff line change 1
- <!DOCTYPE html>
2
- < html >
3
- < head >
4
- < title > Demo - ActiveWidgets/React</ title >
5
- < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
6
- </ head >
7
- < body >
8
- < div id ="app "> </ div >
9
- < script type ="module " src ="./src/index.jsx "> </ script >
10
- </ body >
1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < title > Demo - ActiveWidgets/React</ title >
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
6
+ </ head >
7
+ < body >
8
+ < div id ="app "> </ div >
9
+ </ body >
11
10
</ html >
Original file line number Diff line number Diff line change 5
5
*/
6
6
7
7
import React from 'react' ;
8
- import ReactDOM from ' react-dom' ;
8
+ import { createRoot } from " react-dom/client" ;
9
9
import { Datagrid } from '@activewidgets/react' ;
10
10
import { northwind } from '@activewidgets/examples/data' ;
11
11
import * as templates from './templates' ;
@@ -36,4 +36,4 @@ function App(){
36
36
return < Datagrid columns = { columns } rows = { rows } calc = { calc } templates = { templates } options = { options } />
37
37
}
38
38
39
- ReactDOM . render ( < App /> , document . getElementById ( 'app' ) ) ;
39
+ createRoot ( document . getElementById ( "app" ) ) . render ( < App /> ) ;
Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.0" ,
4
4
"description" : " User events - ActiveWidgets/React" ,
5
5
"license" : " MIT" ,
6
- "main" : " src/index.jsx" ,
7
6
"scripts" : {
8
- "start" : " vite --open / " ,
9
- "build" : " vite build"
7
+ "start" : " react-scripts start " ,
8
+ "build" : " react-scripts build"
10
9
},
11
10
"dependencies" : {
12
11
"@activewidgets/examples" : " *" ,
13
12
"@activewidgets/react" : " ^3" ,
14
- "react" : " ^17 " ,
15
- "react-dom" : " ^17 "
13
+ "react" : " ^18 " ,
14
+ "react-dom" : " ^18 "
16
15
},
17
16
"devDependencies" : {
18
- "vite " : " ^2 "
17
+ "react-scripts " : " ^5 "
19
18
},
19
+ "browserslist" : [
20
+ " defaults"
21
+ ],
20
22
"repository" : {
21
23
"type" : " git" ,
22
24
"url" : " https://github.com/activewidgets/react.git" ,
Original file line number Diff line number Diff line change 1
- <!DOCTYPE html>
2
- < html >
3
- < head >
4
- < title > User events - ActiveWidgets/React</ title >
5
- < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
6
- </ head >
7
- < body >
8
- < div id ="app "> Loading...</ div >
9
- < p > ➜ Click on a datagrid row to open an alert box</ p >
10
- < script type ="module " src ="./src/index.jsx "> </ script >
11
- </ body >
1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < title > User events - ActiveWidgets/React</ title >
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
6
+ </ head >
7
+ < body >
8
+ < div id ="app "> Loading...</ div >
9
+ < p > ➜ Click on a datagrid row to open an alert box</ p >
10
+ </ body >
12
11
</ html >
Original file line number Diff line number Diff line change 5
5
*/
6
6
7
7
import React from "react" ;
8
- import ReactDOM from "react-dom" ;
8
+ import { createRoot } from "react-dom/client " ;
9
9
import { Datagrid } from "@activewidgets/react" ;
10
10
import { columns , rows } from "@activewidgets/examples/data" ;
11
11
import './styles.css' ;
@@ -30,4 +30,4 @@ function App(){
30
30
return < Datagrid columns = { columns } rows = { rows } onInit = { onInit } onClick = { onClick } />
31
31
}
32
32
33
- ReactDOM . render ( < App /> , document . getElementById ( "app" ) ) ;
33
+ createRoot ( document . getElementById ( "app" ) ) . render ( < App /> ) ;
Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.0" ,
4
4
"description" : " Hello World - ActiveWidgets/React" ,
5
5
"license" : " MIT" ,
6
- "main" : " src/index.jsx" ,
7
6
"scripts" : {
8
- "start" : " vite --open / " ,
9
- "build" : " vite build"
7
+ "start" : " react-scripts start " ,
8
+ "build" : " react-scripts build"
10
9
},
11
10
"dependencies" : {
12
11
"@activewidgets/react" : " ^3" ,
13
- "react" : " ^17 " ,
14
- "react-dom" : " ^17 "
12
+ "react" : " ^18 " ,
13
+ "react-dom" : " ^18 "
15
14
},
16
15
"devDependencies" : {
17
- "vite " : " ^2 "
16
+ "react-scripts " : " ^5 "
18
17
},
18
+ "browserslist" : [
19
+ " defaults"
20
+ ],
19
21
"repository" : {
20
22
"type" : " git" ,
21
23
"url" : " https://github.com/activewidgets/react.git" ,
Original file line number Diff line number Diff line change 1
- <!DOCTYPE html>
2
- < html >
3
- < head >
4
- < title > Hello World - ActiveWidgets/React</ title >
5
- < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
6
- </ head >
7
- < body >
8
- < div id ="app "> </ div >
9
- < script type ="module " src ="./src/index.jsx "> </ script >
10
- </ body >
1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < title > Hello World - ActiveWidgets/React</ title >
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
6
+ </ head >
7
+ < body >
8
+ < div id ="app "> </ div >
9
+ </ body >
11
10
</ html >
Original file line number Diff line number Diff line change 5
5
*/
6
6
7
7
import React from "react" ;
8
- import ReactDOM from "react-dom" ;
8
+ import { createRoot } from "react-dom/client " ;
9
9
import { Datagrid } from "@activewidgets/react" ;
10
10
import './styles.css' ;
11
11
@@ -18,4 +18,4 @@ function App(){
18
18
return < Datagrid rows = { rows } />
19
19
}
20
20
21
- ReactDOM . render ( < App /> , document . getElementById ( "app" ) ) ;
21
+ createRoot ( document . getElementById ( "app" ) ) . render ( < App /> ) ;
Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.0" ,
4
4
"description" : " Performance - ActiveWidgets/React" ,
5
5
"license" : " MIT" ,
6
- "main" : " src/index.jsx" ,
7
6
"scripts" : {
8
- "start" : " vite --open / " ,
9
- "build" : " vite build"
7
+ "start" : " react-scripts start " ,
8
+ "build" : " react-scripts build"
10
9
},
11
10
"dependencies" : {
12
11
"@activewidgets/examples" : " *" ,
13
12
"@activewidgets/options" : " ^3" ,
14
13
"@activewidgets/react" : " ^3" ,
15
- "react" : " ^17 " ,
16
- "react-dom" : " ^17 "
14
+ "react" : " ^18 " ,
15
+ "react-dom" : " ^18 "
17
16
},
18
17
"devDependencies" : {
19
- "vite " : " ^2 "
18
+ "react-scripts " : " ^5 "
20
19
},
20
+ "browserslist" : [
21
+ " defaults"
22
+ ],
21
23
"repository" : {
22
24
"type" : " git" ,
23
25
"url" : " https://github.com/activewidgets/react.git" ,
Original file line number Diff line number Diff line change 1
- <!DOCTYPE html>
2
- < html >
3
- < head >
4
- < title > Performance - ActiveWidgets/React</ title >
5
- < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
6
- </ head >
7
- < body >
8
- < div id ="app "> Loading...</ div >
9
- < script type ="module " src ="./src/index.jsx "> </ script >
10
- </ body >
1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < title > Performance - ActiveWidgets/React</ title >
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
6
+ </ head >
7
+ < body >
8
+ < div id ="app "> Loading...</ div >
9
+ </ body >
11
10
</ html >
Original file line number Diff line number Diff line change 5
5
*/
6
6
7
7
import React from "react" ;
8
- import ReactDOM from "react-dom" ;
8
+ import { createRoot } from "react-dom/client " ;
9
9
import { Datagrid } from "@activewidgets/react" ;
10
10
import { lazy } from '@activewidgets/options' ;
11
11
import './styles.css' ;
@@ -52,4 +52,4 @@ function App(){
52
52
}
53
53
54
54
55
- ReactDOM . render ( < App /> , document . getElementById ( "app" ) ) ;
55
+ createRoot ( document . getElementById ( "app" ) ) . render ( < App /> ) ;
Original file line number Diff line number Diff line change 1
1
import { resolve } from 'path' ;
2
2
import markdown from 'rollup-plugin-md' ;
3
+ import examples from '@activewidgets/examples/plugin' ;
3
4
4
5
export default {
5
6
root : 'examples' ,
6
7
build : {
7
8
outDir : '../out' ,
8
- emptyOutDir : true ,
9
- rollupOptions : {
10
- input : {
11
- main : resolve ( 'examples/index.html' ) ,
12
- columns : resolve ( 'examples/columns/index.html' ) ,
13
- demo : resolve ( 'examples/demo/index.html' ) ,
14
- events : resolve ( 'examples/events/index.html' ) ,
15
- hello : resolve ( 'examples/hello-world/index.html' ) ,
16
- performance : resolve ( 'examples/performance/index.html' )
17
- }
18
- }
9
+ emptyOutDir : true
19
10
} ,
20
11
plugins : [
12
+ examples ( ) ,
21
13
markdown ( )
22
14
] ,
23
15
resolve : {
You can’t perform that action at this time.
0 commit comments