Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
},
});
}
});
}
});
};
const onKeyDown = (event: React.KeyboardEvent) => {
if (event.key === 'Enter') {
onSubmit();
}
}
if (localStorage.getItem('token')) {
history.replace('/');
return null;
}
return (
<div>
<div>
<div>
<a href="https://apisix.apache.org">
</a>
</div>
</div>
<div>
<div>
<div>
</div></div></div></div>
(id ? update(id, data) : create(data)).then(() => {
notification.success({
message: `${id
? formatMessage({ id: 'page.upstream.edit.upstream.successfully' })
: formatMessage({ id: 'page.upstream.create.upstream.successfully' })
}`,
});
history.replace('/upstream/list');
});
});
onClose: () => {
const redirect = getUrlQuery('redirect');
history.replace(redirect ? decodeURIComponent(redirect) : '/');
},
});
const savePageList = (page = 1, pageSize = 10) => {
history.replace(`/service/list?page=${page}&pageSize=${pageSize}`);
};
(gid ? update(gid, data) : create(data)).then(() => {
notification.success({
message: `${
gid
? formatMessage({ id: 'component.global.edit' })
: formatMessage({ id: 'component.global.create' })
}${formatMessage({ id: 'menu.routegroup' })}${formatMessage({
id: 'component.status.success',
})}`,
});
history.replace('/routegroup/list');
});
};
onClick={() => {
history.replace({
pathname: '/settings',
});
}}
>
const savePageList = (page = 1, pageSize = 10) => {
history.replace(`/ssl/list?page=${page}&pageSize=${pageSize}`);
};
const savePageList = (page = 1, pageSize = 10) => {
history.replace(`/plugin/list?page=${page}&pageSize=${pageSize}`);
};
const settings = async () => {
history.replace({
pathname: '/settings',
search: stringify({
redirect: window.location.href,
}),
});
};
const savePageList = (page = 1, pageSize = 10) => {
history.replace(`/consumer/list?page=${page}&pageSize=${pageSize}`);
};