Skip to content

Commit 193d11f

Browse files
authored
Merge pull request #188 from chrisws/12_26
12 26
2 parents a846508 + b95a6ea commit 193d11f

File tree

3 files changed

+16
-19
lines changed

3 files changed

+16
-19
lines changed

src/platform/android/app/src/main/java/net/sourceforge/smallbasic/MainActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -913,8 +913,8 @@ private final class Storage {
913913
private final String _media;
914914

915915
private Storage() {
916-
String external = null;
917-
String media = null;
916+
String external = "";
917+
String media = "";
918918

919919
String path = Environment.getExternalStorageDirectory().getAbsolutePath();
920920
if (isPublicStorage(path)) {

src/platform/android/webui/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
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": [

src/platform/android/webui/src/App.js

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff 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

6663
function 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
}

0 commit comments

Comments
 (0)