mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
Refactor logging and remove unused code
This commit is contained in:
parent
a5bd73a13b
commit
956ac101a2
@ -30,6 +30,9 @@ screenshots['screenshot-name'] = await page.screenshot(); // you can save multip
|
||||
|
||||
// when you want to return a value, use return statement with data as a prop. You can also add screenshots in the screenshots array.
|
||||
|
||||
// To log data, use console.log
|
||||
// console.log('Hello World');
|
||||
|
||||
return {
|
||||
data: 'Hello World',
|
||||
screenshots: screenshots
|
||||
|
@ -233,6 +233,9 @@ const MonitorStepElement: FunctionComponent<ComponentProps> = (
|
||||
screenshots['screenshot-name'] = await page.screenshot(); // you can save multiple screenshots and have them with different names.
|
||||
|
||||
|
||||
// To log data, use console.log
|
||||
console.log('Hello World');
|
||||
|
||||
// when you want to return a value, use return statement with data as a prop. You can also add screenshots in the screenshots array.
|
||||
|
||||
return {
|
||||
|
@ -303,6 +303,7 @@ const MonitorsTable: FunctionComponent<ComponentProps> = (
|
||||
interval = interval.filter((option: DropdownOption) => {
|
||||
return (
|
||||
option.value !== "* * * * *" &&
|
||||
option.value !== "*/2 * * * *" &&
|
||||
option.value !== "*/5 * * * *" &&
|
||||
option.value !== "*/10 * * * *"
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user