Refactor logging and remove unused code

This commit is contained in:
Simon Larsen 2024-09-11 15:26:02 -07:00
parent a5bd73a13b
commit 956ac101a2
No known key found for this signature in database
GPG Key ID: 96C5DCA24769DBCA
3 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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 {

View File

@ -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 * * * *"
);