#245: Loads of new introduction features, including a basic app selector

This commit is contained in:
frikky
2022-01-03 02:39:22 +01:00
parent d1eb9e6347
commit 0f2c71a721
9 changed files with 371 additions and 39 deletions
+2 -4
View File
@@ -31,8 +31,7 @@ import MyView from "./views/MyView";
import { createMuiTheme, MuiThemeProvider } from "@material-ui/core/styles";
import DetectionFramework from "./components/DetectionFramework.jsx";
import FrameworkData from "./components/FrameworkData";
import FrameworkWrapper from "./views/FrameworkWrapper.jsx";
import ScrollToTop from "./components/ScrollToTop";
import AlertTemplate from "./components/AlertTemplate";
import { useAlert, positions, Provider } from "react-alert";
@@ -386,8 +385,7 @@ const App = (message, props) => {
exact
path="/detectionframework"
element={
<DetectionFramework
frameworkData={FrameworkData}
<FrameworkWrapper
selectedOption={"Draw"}
showOptions={false}
File diff suppressed because one or more lines are too long
+1
View File
@@ -21,6 +21,7 @@ import {
IconButton,
Grid,
} from "@material-ui/core";
import {
MeetingRoom as MeetingRoomIcon,
Settings as SettingsIcon,
+3 -3
View File
@@ -978,8 +978,8 @@ const ParsedAction = (props) => {
return helperText
}
console.log("AUTH: ", authenticationType)
if (authenticationType.type === "oauth2") {
//console.log("AUTH: ", authenticationType)
if (authenticationType !== undefined && authenticationType !== null && authenticationType.type === "oauth2") {
return (
<Typography variant="body1" color="textSecondary" style={{marginTop: 15}}>
You must authenticate before using oauth2 apps.
@@ -1082,7 +1082,7 @@ const ParsedAction = (props) => {
) {
placeholder = data.example;
if (data.name === "url" && data.value.length === 0) {
if (data.name === "url" && data.value !== undefined && data.value !== null && data.value.length === 0) {
data.value = data.example;
}
}
+7
View File
@@ -384,6 +384,13 @@ const data = [
"font-size": "0px",
},
},
{
selector: "node:selected",
css: {
"border-color": "#f86a3e",
"border-width": "7px",
},
},
];
//{
+7
View File
@@ -90,6 +90,13 @@ const data = [{
"source-arrow-color": "#337ab7",
},
},
{
selector: "node:selected",
css: {
"border-color": "#f86a3e",
"border-width": "3px",
},
},
]
export default data
+1 -1
View File
@@ -2584,7 +2584,7 @@ const GettingStarted = (props) => {
<Typography color="textSecondary" variant="body2" style={{marginTop: 5,}} >
We help with automation, scaling, training and more. Get involved!
</Typography>
<Link to="" style={{textDecoration: "none",}}>
<a href="https://discord.gg/B2CBzUm" style={{textDecoration: "none",}}>
<Button
variant="outlined"
style={{marginTop: 10}}