Skip to content

Commit

Permalink
Merge pull request #53 from Finsemble/lintandprettier1.2
Browse files Browse the repository at this point in the history
Prettier and lint 1.2
  • Loading branch information
karisjlin authored Dec 23, 2022
2 parents 189480e + d8638f2 commit 3cf5914
Show file tree
Hide file tree
Showing 19 changed files with 720 additions and 664 deletions.
56 changes: 28 additions & 28 deletions toolbox/fdc3-workbench/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ const mainTheme = createTheme({
},
props: {
MuiLink: {
underline: "hover"
}
}
underline: "hover",
},
},
});

mainTheme.typography.h4 = {
Expand All @@ -50,10 +50,10 @@ mainTheme.typography.h5 = {

mainTheme.typography.body1 = {
fontSize: "1rem",
fontFamily: "Roboto, Helvetica, Arial, sans-serif",
fontWeight: 400,
lineHeight: 1.5,
letterSpacing: "0.00938em",
fontFamily: "Roboto, Helvetica, Arial, sans-serif",
fontWeight: 400,
lineHeight: 1.5,
letterSpacing: "0.00938em",
marginBlockStart: "10px",
marginBlockEnd: "10px",
};
Expand All @@ -78,7 +78,7 @@ const useStyles = makeStyles((theme: Theme) =>
".MuiInputBase-root.Mui-disabled": {
color: "rgba(0, 0, 0, 0.6)",
cursor: "default",
},
},
},
root: {
flexGrow: 1,
Expand Down Expand Up @@ -134,10 +134,10 @@ const useStyles = makeStyles((theme: Theme) =>
fontFamily: "courier, courier new, serif",
},
workbench: {
[theme.breakpoints.down('sm')]: {
marginTop: '30px'
}
}
[theme.breakpoints.down("sm")]: {
marginTop: "30px",
},
},
})
);

Expand All @@ -164,10 +164,10 @@ export const App = observer(() => {
const [fdc3Available, setFdc3Available] = useState(false);
const [openSnackbar, setOpenSnackbar] = useState(false);
const [tabIndex, setTabIndex] = useState(0);
const [contextName, setContextName] = useState('');
const [contextName, setContextName] = useState("");

const handleTabChange = (event: React.ChangeEvent<{}>, newIndex: number, name: string = '') => {
setContextName(name)
const handleTabChange = (event: React.ChangeEvent<{}>, newIndex: number, name: string = "") => {
setContextName(name);
setTabIndex(newIndex);
};

Expand Down Expand Up @@ -216,23 +216,22 @@ export const App = observer(() => {
indicator: classes.indicator,
}}
>

<Tab label="Contexts" />
<Tab label="Intents" />
<Tab label="System Channels" />
<Tab label="App Channels" />
</Tabs>
<TabPanel value={tabIndex} index={0}>
<ContextCreate contextName={contextName}/>
<ContextCreate contextName={contextName} />
</TabPanel>
<TabPanel value={tabIndex} index={1}>
<Intents handleTabChange={handleTabChange}/>
<Intents handleTabChange={handleTabChange} />
</TabPanel>
<TabPanel value={tabIndex} index={2}>
<Channels handleTabChange={handleTabChange}/>
<Channels handleTabChange={handleTabChange} />
</TabPanel>
<TabPanel value={tabIndex} index={3}>
<AppChannels handleTabChange={handleTabChange}/>
<AppChannels handleTabChange={handleTabChange} />
</TabPanel>
</Paper>
</Grid>
Expand All @@ -253,10 +252,10 @@ export const App = observer(() => {
<span className={classes.code}>window.fdc3</span>.
</Typography>
<Typography variant="body1">
For web applications to be FDC3-enabled, they need to run in the context of an
agent that makes the FDC3 API available to the application. This desktop agent is
also responsible for lauching and co-ordinating applications. It could be a browser
extension, web app, or full-fledged desktop container framework.
For web applications to be FDC3-enabled, they need to run in the context of an agent that makes the
FDC3 API available to the application. This desktop agent is also responsible for lauching and
co-ordinating applications. It could be a browser extension, web app, or full-fledged desktop
container framework.
</Typography>
<Typography variant="body1">
See the FDC3 standard documentation for details on{" "}
Expand All @@ -265,16 +264,17 @@ export const App = observer(() => {
href="https://fdc3.finos.org/docs/supported-platforms"
onClick={openSupportedPlatformsDocs}
>
supported platforms
</Link>
{" "}and{" "}
supported platforms
</Link>{" "}
and{" "}
<Link
className={classes.link}
href="https://fdc3.finos.org/docs/api/spec#api-access"
onClick={openSpecAccessDocs}
>
accessing the FDC3 API
</Link>.
</Link>
.
</Typography>
</Paper>
</Grid>
Expand Down
Loading

0 comments on commit 3cf5914

Please sign in to comment.