Changed Algolia public API Key
This commit is contained in:
@@ -447,7 +447,7 @@ func checkGitProxy(cloneOptions *git.CloneOptions) *git.CloneOptions {
|
||||
func createNewUser(username, password, role, apikey string, org shuffle.OrgMini) error {
|
||||
// Returns false if there is an issue
|
||||
// Use this for register
|
||||
err := shuffle.CheckPasswordStrength(password)
|
||||
err := shuffle.CheckPasswordStrength(username, password)
|
||||
if err != nil {
|
||||
log.Printf("[WARNING] Bad password strength: %s", err)
|
||||
return err
|
||||
@@ -460,8 +460,6 @@ func createNewUser(username, password, role, apikey string, org shuffle.OrgMini)
|
||||
}
|
||||
|
||||
ctx := context.Background()
|
||||
//users, err := FindUser(ctx context.Context, username string) ([]User, error) {
|
||||
|
||||
users, err := shuffle.FindUser(ctx, strings.ToLower(strings.TrimSpace(username)))
|
||||
if err != nil && len(users) == 0 {
|
||||
log.Printf("[WARNING] Failed getting user %s: %s", username, err)
|
||||
@@ -486,7 +484,6 @@ func createNewUser(username, password, role, apikey string, org shuffle.OrgMini)
|
||||
newUser.Active = true
|
||||
newUser.Orgs = []string{org.Id}
|
||||
|
||||
// FIXME - Remove this later
|
||||
if role == "admin" {
|
||||
newUser.Role = "admin"
|
||||
newUser.Roles = []string{"admin"}
|
||||
|
||||
@@ -66,7 +66,7 @@ import { Context } from '../context/ContextApi.jsx';
|
||||
|
||||
const searchClient = algoliasearch(
|
||||
"JNSS5CFDZZ",
|
||||
"db08e40265e2941b9a7d8f644b6e5240"
|
||||
"c8f882473ff42d41158430be09ec2b4e"
|
||||
)
|
||||
|
||||
const AppAuthTab = memo((props) => {
|
||||
|
||||
@@ -53,7 +53,7 @@ import {
|
||||
|
||||
const searchClient = algoliasearch(
|
||||
"JNSS5CFDZZ",
|
||||
"db08e40265e2941b9a7d8f644b6e5240"
|
||||
"c8f882473ff42d41158430be09ec2b4e"
|
||||
);
|
||||
//const searchClient = algoliasearch("L55H18ZINA", "a19be455e7e75ee8f20a93d26b9fc6d6")
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ import { Context } from '../context/ContextApi.jsx';
|
||||
|
||||
const searchClient = algoliasearch(
|
||||
"JNSS5CFDZZ",
|
||||
"db08e40265e2941b9a7d8f644b6e5240"
|
||||
"c8f882473ff42d41158430be09ec2b4e"
|
||||
);;
|
||||
|
||||
const AppModal = ({ open, onClose, app, globalUrl, getApps}) => {
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
InputAdornment,
|
||||
Typography,
|
||||
} from '@mui/material';
|
||||
const searchClient = algoliasearch("JNSS5CFDZZ", "db08e40265e2941b9a7d8f644b6e5240")
|
||||
const searchClient = algoliasearch("JNSS5CFDZZ", "c8f882473ff42d41158430be09ec2b4e")
|
||||
const Appsearch = props => {
|
||||
const { maxRows, showName, showSuggestion, isMobile, globalUrl, parsedXs, newSelectedApp, setNewSelectedApp, defaultSearch, showSearch, ConfiguredHits, userdata, cy, isCreatorPage, actionImageList, setActionImageList, setUserSpecialzedApp, placeholder,
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
} from '@mui/material';
|
||||
|
||||
import aa from 'search-insights'
|
||||
const searchClient = algoliasearch("JNSS5CFDZZ", "db08e40265e2941b9a7d8f644b6e5240")
|
||||
const searchClient = algoliasearch("JNSS5CFDZZ", "c8f882473ff42d41158430be09ec2b4e")
|
||||
const Appsearch = props => {
|
||||
const { maxRows, showName, showSuggestion, isMobile, globalUrl, parsedXs, newSelectedApp, setNewSelectedApp, defaultSearch, showSearch, ConfiguredHits, userdata, cy, isCreatorPage, actionImageList, setActionImageList, setUserSpecialzedApp } = props
|
||||
const { themeMode } = useContext(Context)
|
||||
|
||||
@@ -52,11 +52,13 @@ import {
|
||||
|
||||
//import { useAlert
|
||||
import { typecost, typecost_single, } from "../views/HandlePaymentNew.jsx";
|
||||
import BillingStats from "./BillingStats.jsx";
|
||||
import BillingStats from "../components/BillingStats.jsx";
|
||||
import LicencePopup from "../components/LicencePopup.jsx";
|
||||
import { handlePayasyougo } from "../views/HandlePaymentNew.jsx"
|
||||
import DeleteIcon from '@mui/icons-material/Delete';
|
||||
|
||||
import { Context } from "../context/ContextApi.jsx";
|
||||
import LicencePopup from "./LicencePopup.jsx";
|
||||
|
||||
import DeleteIcon from '@mui/icons-material/Delete';
|
||||
import { DataGrid } from "@mui/x-data-grid";
|
||||
|
||||
const Billing = memo((props) => {
|
||||
|
||||
@@ -48,15 +48,21 @@ const CloudSyncTab = (props) => {
|
||||
const [, forceUpdate] = React.useState();
|
||||
const itemColor = "white";
|
||||
const isCloud = window?.location?.host === "localhost:3002" || window?.location?.host === "shuffler.io";
|
||||
|
||||
const { themeMode, brandColor } = useContext(Context);
|
||||
const theme = getTheme(themeMode, brandColor);
|
||||
|
||||
useEffect(() => { getSettings(); }, []);
|
||||
|
||||
const GridItem = (props) => {
|
||||
const [expanded, setExpanded] = React.useState(false);
|
||||
const [showEdit, setShowEdit] = React.useState(false);
|
||||
const [newValue, setNewValue] = React.useState(-100);
|
||||
|
||||
const primary = props.data.primary;
|
||||
var primary = props.data.primary
|
||||
|
||||
const shownName = props.data.newname !== undefined && props.data.newname !== null && props.data.newname !== primary ? props.data.newname : primary
|
||||
|
||||
const secondary = props.data.secondary;
|
||||
const primaryIcon = props.data.icon;
|
||||
const secondaryIcon = props.data.active ?
|
||||
@@ -191,7 +197,7 @@ const CloudSyncTab = (props) => {
|
||||
</ListItemAvatar>
|
||||
<ListItemText
|
||||
style={{ textTransform: "capitalize", color: theme.palette.text.primary, fontSize: 14, fontWeight: 400, }}
|
||||
primary={primary}
|
||||
primary={shownName}
|
||||
/>
|
||||
{isCloud && userdata.support === true ?
|
||||
<Tooltip title="Edit features (support users only)">
|
||||
@@ -717,7 +723,9 @@ const CloudSyncTab = (props) => {
|
||||
{selectedOrganization.sync_features === undefined ||
|
||||
selectedOrganization.sync_features === null
|
||||
? <Grid container spacing={2} justifyContent="center">
|
||||
|
||||
{[...Array(18)].map((_, i) => (
|
||||
|
||||
<Grid item xs={12} sm={6} md={4} key={i}>
|
||||
<div
|
||||
style={{
|
||||
@@ -756,6 +764,13 @@ const CloudSyncTab = (props) => {
|
||||
}
|
||||
|
||||
const newkey = key.replaceAll("_", " ");
|
||||
|
||||
// Rewrites to frontend names
|
||||
var newname = newkey
|
||||
if (newkey === "app executions") {
|
||||
newname = "app runs"
|
||||
}
|
||||
|
||||
const griditem = {
|
||||
primary: newkey,
|
||||
secondary:
|
||||
@@ -770,6 +785,8 @@ const CloudSyncTab = (props) => {
|
||||
data_collection: "None",
|
||||
active: item.active,
|
||||
icon: <PolylineIcon style={{ color: "#1a1a1a" }} />,
|
||||
|
||||
newname: newname,
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
@@ -633,7 +633,7 @@ const ConfigureWorkflow = (props) => {
|
||||
if (aa !== undefined) {
|
||||
aa('init', {
|
||||
appId: "JNSS5CFDZZ",
|
||||
apiKey: "db08e40265e2941b9a7d8f644b6e5240",
|
||||
apiKey: "c8f882473ff42d41158430be09ec2b4e",
|
||||
})
|
||||
|
||||
const timestamp = new Date().getTime()
|
||||
|
||||
@@ -37,7 +37,7 @@ import {
|
||||
AvatarGroup,
|
||||
} from "@mui/material"
|
||||
|
||||
const searchClient = algoliasearch("JNSS5CFDZZ", "db08e40265e2941b9a7d8f644b6e5240")
|
||||
const searchClient = algoliasearch("JNSS5CFDZZ", "c8f882473ff42d41158430be09ec2b4e")
|
||||
const CreatorGrid = props => {
|
||||
const { maxRows, showName, showSuggestion, isMobile, globalUrl, parsedXs, isHeader } = props
|
||||
const rowHandler = maxRows === undefined || maxRows === null ? 50 : maxRows
|
||||
|
||||
@@ -29,7 +29,7 @@ import {
|
||||
|
||||
|
||||
|
||||
const searchClient = algoliasearch("JNSS5CFDZZ", "db08e40265e2941b9a7d8f644b6e5240")
|
||||
const searchClient = algoliasearch("JNSS5CFDZZ", "c8f882473ff42d41158430be09ec2b4e")
|
||||
const DocsGrid = props => {
|
||||
const { maxRows, showName, showSuggestion, isMobile, globalUrl, parsedXs, userdata, } = props
|
||||
const rowHandler = maxRows === undefined || maxRows === null ? 50 : maxRows
|
||||
|
||||
@@ -226,8 +226,8 @@ const EditWorkflow = (props) => {
|
||||
<div style={{ display: "flex" }}>
|
||||
<div style={{ flex: 1, color: theme.palette.textColor }}>
|
||||
<div style={{ display: "flex" }}>
|
||||
<Typography variant="h4" style={{ flex: 9, }}>
|
||||
{newWorkflow ? "New" : "Editing"} workflow
|
||||
<Typography variant="h4" style={{ flex: 9, marginTop: 25, }}>
|
||||
{newWorkflow ? "New" : "Editing"} Workflow
|
||||
</Typography>
|
||||
|
||||
{newWorkflow === true ? null :
|
||||
@@ -393,7 +393,7 @@ const EditWorkflow = (props) => {
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<DialogContent style={{ paddingTop: 10, display: "flex", minHeight: 300, zIndex: 1001, paddingBottom: 200, paddingLeft: "50px" }}>
|
||||
<DialogContent style={{ paddingTop: 10, display: "flex", minHeight: 300, zIndex: 1001, paddingBottom: 400, paddingLeft: 50, }}>
|
||||
<div style={{ minWidth: newWorkflow ? 500 : 550, maxWidth: newWorkflow ? 450 : 500, }}>
|
||||
<TextField
|
||||
onChange={(event) => {
|
||||
|
||||
@@ -518,7 +518,7 @@ const LeftSideBar = ({ userdata, serverside, globalUrl, notifications, }) => {
|
||||
console.error("Logout error:", error);
|
||||
});
|
||||
};
|
||||
console.log("userdata: ", userdata);
|
||||
|
||||
const avatarMenu = (
|
||||
<span>
|
||||
<IconButton
|
||||
|
||||
@@ -47,7 +47,7 @@ const chipStyle = {
|
||||
backgroundColor: "#3d3f43", height: 30, marginRight: 5, paddingLeft: 5, paddingRight: 5, height: 28, cursor: "pointer", borderColor: "#3d3f43", color: "white",
|
||||
}
|
||||
|
||||
const searchClient = algoliasearch("JNSS5CFDZZ", "db08e40265e2941b9a7d8f644b6e5240")
|
||||
const searchClient = algoliasearch("JNSS5CFDZZ", "c8f882473ff42d41158430be09ec2b4e")
|
||||
const SearchData = props => {
|
||||
const { serverside, globalUrl, userdata } = props
|
||||
let navigate = useNavigate();
|
||||
|
||||
@@ -24,7 +24,7 @@ import {
|
||||
import WorkflowPaper from "../components/WorkflowPaper.jsx"
|
||||
import WorkflowPaperNew from "../components/WorkflowPaperNew.jsx"
|
||||
|
||||
const searchClient = algoliasearch("JNSS5CFDZZ", "db08e40265e2941b9a7d8f644b6e5240")
|
||||
const searchClient = algoliasearch("JNSS5CFDZZ", "c8f882473ff42d41158430be09ec2b4e")
|
||||
const AppGrid = props => {
|
||||
const { maxRows, showName, showSuggestion, isMobile, globalUrl, parsedXs, alternativeView, onlyResults, inputsearch } = props
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import algoliasearch from 'algoliasearch';
|
||||
import { InstantSearch, connectSearchBox, connectHits } from 'react-instantsearch-dom';
|
||||
import { Grid, Paper, TextField, ButtonBase, InputAdornment, Typography, Button, Tooltip} from '@mui/material';
|
||||
|
||||
const searchClient = algoliasearch("JNSS5CFDZZ", "db08e40265e2941b9a7d8f644b6e5240")
|
||||
const searchClient = algoliasearch("JNSS5CFDZZ", "c8f882473ff42d41158430be09ec2b4e")
|
||||
const WorkflowSearch = props => {
|
||||
const { maxRows, showName, showSuggestion, isMobile, globalUrl, parsedXs, newSelectedApp, setNewSelectedApp, defaultSearch, showSearch, ConfiguredHits, selectAble, } = props
|
||||
const rowHandler = maxRows === undefined || maxRows === null ? 50 : maxRows
|
||||
|
||||
@@ -438,7 +438,7 @@ const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
||||
//const referenceUrl = "https://shuffler.io/functions/webhooks/"
|
||||
//const referenceUrl = window.location.origin+"/api/v1/hooks/"
|
||||
|
||||
const searchClient = algoliasearch("JNSS5CFDZZ", "db08e40265e2941b9a7d8f644b6e5240")
|
||||
const searchClient = algoliasearch("JNSS5CFDZZ", "c8f882473ff42d41158430be09ec2b4e")
|
||||
const AngularWorkflow = (defaultprops) => {
|
||||
const { globalUrl, setCookie, isLoggedIn, isLoaded, userdata, data_id, ReactGA, } = defaultprops;
|
||||
const {themeMode, supportEmail, brandColor} = useContext(Context)
|
||||
@@ -3573,6 +3573,12 @@ const AngularWorkflow = (defaultprops) => {
|
||||
if (curapp?.actions === undefined || curapp?.actions === null || curapp?.actions?.length === 0 || curapp?.actions?.length === 1) {
|
||||
loadAppConfig(curapp?.id, false, true)
|
||||
}
|
||||
|
||||
if (key > 10) {
|
||||
console.log("Breaking on 10 sideloads of total", responseJson.length)
|
||||
break
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// Find app with ID "794e51c3c1a8b24b89ccc573a3defc47" (gmail) to force-break it,
|
||||
@@ -11856,7 +11862,7 @@ const AngularWorkflow = (defaultprops) => {
|
||||
if (queryID !== undefined && queryID !== null) {
|
||||
aa('init', {
|
||||
appId: "JNSS5CFDZZ",
|
||||
apiKey: "db08e40265e2941b9a7d8f644b6e5240",
|
||||
apiKey: "c8f882473ff42d41158430be09ec2b4e",
|
||||
})
|
||||
|
||||
const timestamp = new Date().getTime()
|
||||
@@ -18698,7 +18704,9 @@ const AngularWorkflow = (defaultprops) => {
|
||||
|
||||
{originalWorkflow?.suborg_distribution === undefined || originalWorkflow?.suborg_distribution === null || originalWorkflow?.suborg_distribution?.length === 0 || originalWorkflow?.suborg_distribution.includes("none") ?
|
||||
|
||||
originalWorkflow?.parentorg_workflow !== undefined && originalWorkflow?.parentorg_workflow !== null && originalWorkflow?.parentorg_workflow.length > 0 || workflow?.parentorg_workflow !== undefined && workflow?.parentorg_workflow !== null && workflow?.parentorg_workflow.length > 0 ?
|
||||
<div>
|
||||
{originalWorkflow?.parentorg_workflow !== undefined && originalWorkflow?.parentorg_workflow !== null && originalWorkflow?.parentorg_workflow.length > 0 || workflow?.parentorg_workflow !== undefined && workflow?.parentorg_workflow !== null && workflow?.parentorg_workflow.length > 0 ?
|
||||
|
||||
<Button
|
||||
color="secondary"
|
||||
variant="outlined"
|
||||
@@ -18716,7 +18724,10 @@ const AngularWorkflow = (defaultprops) => {
|
||||
>
|
||||
Go to parent org workflow
|
||||
</Button>
|
||||
: userdata !== undefined && userdata !== null && userdata.orgs !== undefined && userdata.orgs !== null && userdata.orgs.length > 1 && workflow?.id !== undefined && workflow?.id && workflow?.id?.length > 0 ?
|
||||
|
||||
: null}
|
||||
|
||||
{userdata !== undefined && userdata !== null && userdata.orgs !== undefined && userdata.orgs !== null && userdata.orgs.length > 1 && workflow?.id !== undefined && workflow?.id && workflow?.id?.length > 0 ?
|
||||
<Button
|
||||
color="secondary"
|
||||
variant="outlined"
|
||||
@@ -18732,8 +18743,8 @@ const AngularWorkflow = (defaultprops) => {
|
||||
>
|
||||
Enable Suborg Distribution
|
||||
</Button>
|
||||
: null
|
||||
|
||||
: null}
|
||||
</div>
|
||||
:
|
||||
|
||||
<Tooltip title={lastSaved === false && originalWorkflow.id === workflow.id ?
|
||||
@@ -20080,7 +20091,7 @@ const AngularWorkflow = (defaultprops) => {
|
||||
if (queryID !== undefined && queryID !== null) {
|
||||
aa('init', {
|
||||
appId: "JNSS5CFDZZ",
|
||||
apiKey: "db08e40265e2941b9a7d8f644b6e5240",
|
||||
apiKey: "c8f882473ff42d41158430be09ec2b4e",
|
||||
})
|
||||
|
||||
const timestamp = new Date().getTime()
|
||||
|
||||
@@ -50,7 +50,7 @@ import { green } from "../views/AngularWorkflow.jsx"
|
||||
|
||||
const searchClient = algoliasearch(
|
||||
"JNSS5CFDZZ",
|
||||
"db08e40265e2941b9a7d8f644b6e5240"
|
||||
"c8f882473ff42d41158430be09ec2b4e"
|
||||
)
|
||||
|
||||
// Lazy loading of ApiExplorer component to reduce initial load time
|
||||
|
||||
@@ -93,7 +93,7 @@ import aa from "search-insights";
|
||||
// 2 = OpenAPI (Invalid)
|
||||
const searchClient = algoliasearch(
|
||||
"JNSS5CFDZZ",
|
||||
"db08e40265e2941b9a7d8f644b6e5240"
|
||||
"c8f882473ff42d41158430be09ec2b4e"
|
||||
)
|
||||
|
||||
const AppExplorer = (props) => {
|
||||
@@ -3996,7 +3996,7 @@ const buttonBackground = "linear-gradient(to right, #f86a3e, #f34079)";
|
||||
if (queryID !== undefined && queryID !== null) {
|
||||
aa("init", {
|
||||
appId: "JNSS5CFDZZ",
|
||||
apiKey: "db08e40265e2941b9a7d8f644b6e5240",
|
||||
apiKey: "c8f882473ff42d41158430be09ec2b4e",
|
||||
});
|
||||
|
||||
const timestamp = new Date().getTime();
|
||||
@@ -4085,7 +4085,7 @@ const buttonBackground = "linear-gradient(to right, #f86a3e, #f34079)";
|
||||
if (queryID !== undefined && queryID !== null) {
|
||||
aa("init", {
|
||||
appId: "JNSS5CFDZZ",
|
||||
apiKey: "db08e40265e2941b9a7d8f644b6e5240",
|
||||
apiKey: "c8f882473ff42d41158430be09ec2b4e",
|
||||
});
|
||||
|
||||
const timestamp = new Date().getTime();
|
||||
|
||||
@@ -280,7 +280,7 @@ export const GetParsedPaths = (inputdata, basekey) => {
|
||||
return parsedValues;
|
||||
};
|
||||
|
||||
const searchClient = algoliasearch("JNSS5CFDZZ", "db08e40265e2941b9a7d8f644b6e5240")
|
||||
const searchClient = algoliasearch("JNSS5CFDZZ", "c8f882473ff42d41158430be09ec2b4e")
|
||||
const Apps = (props) => {
|
||||
const { globalUrl, isLoggedIn, isLoaded, userdata, serverside, } = props;
|
||||
|
||||
@@ -1305,7 +1305,7 @@ const Apps = (props) => {
|
||||
if (queryID !== undefined && queryID !== null) {
|
||||
aa("init", {
|
||||
appId: "JNSS5CFDZZ",
|
||||
apiKey: "db08e40265e2941b9a7d8f644b6e5240",
|
||||
apiKey: "c8f882473ff42d41158430be09ec2b4e",
|
||||
});
|
||||
|
||||
const timestamp = new Date().getTime();
|
||||
@@ -2036,7 +2036,7 @@ const Apps = (props) => {
|
||||
if (queryID !== undefined && queryID !== null) {
|
||||
aa('init', {
|
||||
appId: "JNSS5CFDZZ",
|
||||
apiKey: "db08e40265e2941b9a7d8f644b6e5240",
|
||||
apiKey: "c8f882473ff42d41158430be09ec2b4e",
|
||||
})
|
||||
|
||||
const timestamp = new Date().getTime()
|
||||
|
||||
@@ -46,7 +46,7 @@ import AppCreationModal from "../components/AppCreationModal.jsx";
|
||||
|
||||
const searchClient = algoliasearch(
|
||||
"JNSS5CFDZZ",
|
||||
"db08e40265e2941b9a7d8f644b6e5240"
|
||||
"c8f882473ff42d41158430be09ec2b4e"
|
||||
);
|
||||
|
||||
// AppCard Component
|
||||
|
||||
@@ -111,7 +111,7 @@ import { removeQuery } from "../components/ScrollToTop.jsx";
|
||||
import {green, yellow, red, grey } from "../views/AngularWorkflow.jsx"
|
||||
|
||||
|
||||
const searchClient = algoliasearch("JNSS5CFDZZ", "db08e40265e2941b9a7d8f644b6e5240");
|
||||
const searchClient = algoliasearch("JNSS5CFDZZ", "c8f882473ff42d41158430be09ec2b4e");
|
||||
|
||||
const svgSize = 24;
|
||||
const imagesize = 22;
|
||||
@@ -5071,7 +5071,7 @@ const Workflows2 = (props) => {
|
||||
|
||||
//isLoaded && isLoggedIn && workflowDone ? (
|
||||
const loadedCheck =
|
||||
workflowDone && isLoaded ? (
|
||||
workflowDone ? (
|
||||
<div>
|
||||
{/*
|
||||
<ShepherdTour steps={newSteps} tourOptions={tourOptions}>
|
||||
|
||||
Reference in New Issue
Block a user