-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
10 changed files
with
148 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
id=node_on_android | ||
name=Systemless Node.js | ||
version=1.5.6 | ||
versionCode=156 | ||
version=1.6.6 | ||
versionCode=166 | ||
author=Der_Googler | ||
description=Node.js is a cross-platform, open-source server environment that can run on Windows, Linux, Unix, macOS, and more. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import React from "react"; | ||
import { Page, Toolbar } from "@mmrl/ui"; | ||
import { useConfig, useActivity, useStrings } from "@mmrl/hooks"; | ||
import { BugReport } from "@mui/icons-material"; | ||
import { List, Divider, ListItemText, Switch, ListItemButton, ListSubheader, ListItem, ListItemIcon } from "@mui/material"; | ||
|
||
function App() { | ||
const { context } = useActivity(); | ||
const { strings } = useStrings(); | ||
|
||
const [config, setConfig] = useConfig(); | ||
|
||
const renderToolbar = () => { | ||
return ( | ||
<Toolbar modifier="noshadow"> | ||
<Toolbar.Left> | ||
<Toolbar.BackButton onClick={context.popPage} /> | ||
</Toolbar.Left> | ||
<Toolbar.Center>{strings("title")}</Toolbar.Center> | ||
</Toolbar> | ||
); | ||
}; | ||
|
||
return ( | ||
<Page sx={{ p: 0 }} renderToolbar={renderToolbar}> | ||
<List subheader={<ListSubheader>{strings("service")}</ListSubheader>}> | ||
<ListItem> | ||
<ListItemText primary={strings("s_up_notify")} /> | ||
<Switch checked={config.notify} onChange={(e) => setConfig("notify", e.target.checked)} /> | ||
</ListItem> | ||
<ListItem> | ||
<ListItemText primary={strings("logging")} /> | ||
<Switch checked={config.logging} onChange={(e) => setConfig("logging", e.target.checked)} /> | ||
</ListItem> | ||
<ListItem> | ||
<ListItemText primary={strings("desc_notice")} secondary={strings("desc_notice_sub")} /> | ||
<Switch checked={config.desc} onChange={(e) => setConfig("desc", e.target.checked)} /> | ||
</ListItem> | ||
<ListItem> | ||
<ListItemText primary={strings("service_title")} secondary={strings("service_desc")} /> | ||
<Switch checked={config.service} onChange={(e) => setConfig("service", e.target.checked)} /> | ||
</ListItem> | ||
</List> | ||
|
||
<Divider /> | ||
|
||
<List subheader={<ListSubheader>{strings("project")}</ListSubheader>}> | ||
<ListItem disablePadding> | ||
<ListItemButton onClick={() => window.open("https://github.com/Magisk-Modules-Alt-Repo/node/issues")}> | ||
<ListItemIcon> | ||
<BugReport /> | ||
</ListItemIcon> | ||
<ListItemText primary={strings("report_issue")} /> | ||
</ListItemButton> | ||
</ListItem> | ||
</List> | ||
</Page> | ||
); | ||
} | ||
|
||
export { App }; |
Oops, something went wrong.