File tree 3 files changed +16
-19
lines changed
app/src/main/java/net/sourceforge/smallbasic 3 files changed +16
-19
lines changed Original file line number Diff line number Diff line change @@ -913,8 +913,8 @@ private final class Storage {
913
913
private final String _media ;
914
914
915
915
private Storage () {
916
- String external = null ;
917
- String media = null ;
916
+ String external = "" ;
917
+ String media = "" ;
918
918
919
919
String path = Environment .getExternalStorageDirectory ().getAbsolutePath ();
920
920
if (isPublicStorage (path )) {
Original file line number Diff line number Diff line change 4
4
"private" : true ,
5
5
"proxy" : " http://localhost:8080" ,
6
6
"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 " ,
13
13
"react" : " ^18.2.0" ,
14
14
"react-dom" : " ^18.2.0" ,
15
15
"react-scripts" : " 5.0.1"
16
16
},
17
17
"scripts" : {
18
18
"start" : " react-scripts start" ,
19
19
"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 "
21
21
},
22
22
"eslintConfig" : {
23
23
"extends" : [
Original file line number Diff line number Diff line change @@ -45,9 +45,7 @@ const columns = [{
45
45
field : 'fileName' ,
46
46
headerName : 'Name' ,
47
47
editable : true ,
48
- valueGetter : ( params ) => {
49
- return params . row . fileName ;
50
- } ,
48
+ valueGetter : ( params ) => params . row . fileName ,
51
49
flex : 1 ,
52
50
} , {
53
51
field : 'size' ,
@@ -58,9 +56,8 @@ const columns = [{
58
56
headerName : 'Modified' ,
59
57
type : 'date' ,
60
58
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 ( )
64
61
} ] ;
65
62
66
63
function getFetchHeader ( body ) {
@@ -322,11 +319,11 @@ function FileList(props) {
322
319
autoPageSize
323
320
components = { { Toolbar : AppToolbar } }
324
321
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 ] }
328
325
checkboxSelection
329
- disableSelectionOnClick />
326
+ disableRowSelectionOnClick />
330
327
</ Fragment >
331
328
) ;
332
329
}
You can’t perform that action at this time.
0 commit comments