File tree Expand file tree Collapse file tree 2 files changed +14
-17
lines changed
src/platform/android/webui Expand file tree Collapse file tree 2 files changed +14
-17
lines changed Original file line number Diff line number Diff line change 44 "private" : true ,
55 "proxy" : " http://localhost:8080" ,
66 "dependencies" : {
7- "@emotion/react" : " ^11.10.5 " ,
8- "@emotion/styled" : " ^11.10.5 " ,
9- "@mui/icons-material" : " ^5.10.15 " ,
10- "@mui/material" : " ^5.10.15 " ,
11- "@mui/x-data-grid" : " ^5.17.12 " ,
12- "npm-check-updates" : " ^16.4.3 " ,
7+ "@emotion/react" : " ^11.10.6 " ,
8+ "@emotion/styled" : " ^11.10.6 " ,
9+ "@mui/icons-material" : " ^5.11.11 " ,
10+ "@mui/material" : " ^5.11.14 " ,
11+ "@mui/x-data-grid" : " ^6.0.2 " ,
12+ "npm-check-updates" : " ^16.8.0 " ,
1313 "react" : " ^18.2.0" ,
1414 "react-dom" : " ^18.2.0" ,
1515 "react-scripts" : " 5.0.1"
1616 },
1717 "scripts" : {
1818 "start" : " react-scripts start" ,
1919 "build" : " GENERATE_SOURCEMAP=false react-scripts build && rm ../app/src/main/assets/webui/static/js/main.* && cp -R build/* ../app/src/main/assets/webui/" ,
20- "update" : " npm update && ncu"
20+ "update" : " npm update && ncu -u "
2121 },
2222 "eslintConfig" : {
2323 "extends" : [
Original file line number Diff line number Diff line change @@ -45,9 +45,7 @@ const columns = [{
4545 field : 'fileName' ,
4646 headerName : 'Name' ,
4747 editable : true ,
48- valueGetter : ( params ) => {
49- return params . row . fileName ;
50- } ,
48+ valueGetter : ( params ) => params . row . fileName ,
5149 flex : 1 ,
5250} , {
5351 field : 'size' ,
@@ -58,9 +56,8 @@ const columns = [{
5856 headerName : 'Modified' ,
5957 type : 'date' ,
6058 minWidth : 110 ,
61- renderCell : ( params ) => {
62- return new Date ( params . row . date ) . toLocaleDateString ( ) ;
63- }
59+ valueGetter : ( params ) => new Date ( params . row . date ) ,
60+ renderCell : ( params ) => params . value . toLocaleDateString ( )
6461} ] ;
6562
6663function getFetchHeader ( body ) {
@@ -322,11 +319,11 @@ function FileList(props) {
322319 autoPageSize
323320 components = { { Toolbar : AppToolbar } }
324321 componentsProps = { { toolbar : toolbarProps } }
325- onSelectionModelChange = { ( model ) => setSelectionModel ( model ) }
326- selectionModel = { selectionModel }
327- rowsPerPageOptions = { [ 5 ] }
322+ onRowSelectionModelChange = { ( model ) => setSelectionModel ( model ) }
323+ rowSelectionModel = { selectionModel }
324+ pageSizeOptions = { [ 5 ] }
328325 checkboxSelection
329- disableSelectionOnClick />
326+ disableRowSelectionOnClick />
330327 </ Fragment >
331328 ) ;
332329}
You can’t perform that action at this time.
0 commit comments