forked from distribworks/dkron
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit a127a76 Merge: ffaf975 347cf72 Author: Miguel Sousa <miguelsousa@MacBook-Pro-de-Miguel.local> Date: Mon Mar 15 15:39:45 2021 +0000 Merge branch 'master' of https://github.com/MGSousa/dkron commit ffaf975 Author: Miguel Sousa <miguelsousa@MacBook-Pro-de-Miguel.local> Date: Mon Mar 15 13:07:06 2021 +0000 Remove custom status for untriggered/pristine jobs && Minor changes commit 8c9440b Author: Miguel Sousa <miguelsousa@MacBook-Pro-de-Miguel.local> Date: Mon Mar 15 11:44:07 2021 +0000 Added public directory commit aa96dcf Author: Miguel Sousa <miguelsousa@MacBook-Pro-de-Miguel.local> Date: Wed Mar 10 12:52:52 2021 +0000 Added Pristine Jobs to React UI commit eb18129 Author: Miguel Sousa <miguelsousa@MacBook-Pro-de-Miguel.local> Date: Mon Jan 25 11:53:02 2021 +0000 FIX change header name DKRON_PRISTINE_JOBS commit d1c3184 Author: Miguel Sousa <miguelsousa@MacBook-Pro-de-Miguel.local> Date: Mon Jan 25 10:22:15 2021 +0000 Provide filter query by job displayName, add disabled pristine jobs reports commit 347cf72 Author: Miguel Sousa <miguelsousa@MacBook-Pro-de-Miguel.local> Date: Mon Mar 15 13:07:06 2021 +0000 Remove custom status for untriggered/pristine jobs && Minor changes commit 92fd8f5 Author: Miguel Sousa <miguelsousa@MacBook-Pro-de-Miguel.local> Date: Mon Mar 15 11:44:07 2021 +0000 Added public directory commit b6b593a Author: Yuri van Oers <yvanoers@gmail.com> Date: Sun Mar 14 23:40:46 2021 +0100 Fix XSS vulnerability (distribworks#922) * Tidy modules * Fix "can't import package" error * Fix XSS vulnerability commit 2b2a2b2 Author: Etienne Duclos <duclosetienne@gmail.com> Date: Sun Mar 14 13:41:24 2021 -0400 feat(ui): add a filter on disabled state (distribworks#923) commit 31c6324 Author: Miguel Sousa <miguelsousa@MacBook-Pro-de-Miguel.local> Date: Wed Mar 10 12:52:52 2021 +0000 Added Pristine Jobs to React UI commit 92a9709 Author: Victor Castell <victor@victorcastell.com> Date: Tue Mar 9 09:37:53 2021 +0100 Update go.sum commit 296a9fa Author: Victor Castell <victor@victorcastell.com> Date: Mon Mar 8 22:44:39 2021 +0100 Update changelog commit 1a982e0 Author: Victor Castell <victor@victorcastell.com> Date: Mon Mar 8 22:30:55 2021 +0100 Add the ui/public dir (distribworks#919) It was missing because of wrong gitignore commit 20ab436 Author: Miguel Sousa <miguelsousa@MacBook-Pro-de-Miguel.local> Date: Mon Jan 25 11:53:02 2021 +0000 FIX change header name DKRON_PRISTINE_JOBS commit 5be4196 Author: Miguel Sousa <miguelsousa@MacBook-Pro-de-Miguel.local> Date: Mon Jan 25 10:22:15 2021 +0000 Provide filter query by job displayName, add disabled pristine jobs reports
- Loading branch information
Miguel Sousa
authored and
Miguel Sousa
committed
Mar 15, 2021
1 parent
bd897fc
commit 52c44af
Showing
21 changed files
with
235 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
site/ | ||
public | ||
/public | ||
/website/public | ||
docs/scss/Gemfile.lock | ||
docs/scss/.sass-cache | ||
downloads/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package assets_ui | ||
|
||
//go:generate vfsgendev -source="github.com/distribworks/dkron/dkron/assets_ui".Assets | ||
//go:generate vfsgendev -source="github.com/distribworks/dkron/v3/dkron/assets_ui".Assets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#000000" /> | ||
<meta | ||
name="description" | ||
content="Web site created using create-react-app" | ||
/> | ||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/dkron-logo.png" /> | ||
<!-- | ||
manifest.json provides metadata used when your web app is installed on a | ||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ | ||
--> | ||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> | ||
<!-- | ||
Notice the use of %PUBLIC_URL% in the tags above. | ||
It will be replaced with the URL of the `public` folder during the build. | ||
Only files inside the `public` folder can be referenced from the HTML. | ||
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will | ||
work correctly both with client-side routing and a non-root public URL. | ||
Learn how to configure a non-root public URL by running `npm run build`. | ||
--> | ||
<title>Dkron</title> | ||
<script> | ||
window.DKRON_API_URL={{.DKRON_API_URL}}; | ||
window.DKRON_LEADER={{.DKRON_LEADER}}; | ||
window.DKRON_TOTAL_JOBS={{.DKRON_TOTAL_JOBS}}; | ||
window.DKRON_SUCCESSFUL_JOBS={{.DKRON_SUCCESSFUL_JOBS}}; | ||
window.DKRON_FAILED_JOBS={{.DKRON_FAILED_JOBS}}; | ||
window.DKRON_PRISTINE_JOBS={{.DKRON_PRISTINE_JOBS}}; | ||
</script> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
<!-- | ||
This HTML file is a template. | ||
If you open it directly in the browser, you will see an empty page. | ||
You can add webfonts, meta tags, or analytics to this file. | ||
The build step will place the bundled scripts into the <body> tag. | ||
To begin the development, run `npm start` or `yarn start`. | ||
To create a production bundle, use `npm run build` or `yarn build`. | ||
--> | ||
</body> | ||
</html> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"short_name": "React App", | ||
"name": "Create React App Sample", | ||
"icons": [ | ||
{ | ||
"src": "favicon.ico", | ||
"sizes": "64x64 32x32 24x24 16x16", | ||
"type": "image/x-icon" | ||
}, | ||
{ | ||
"src": "logo192.png", | ||
"type": "image/png", | ||
"sizes": "192x192" | ||
}, | ||
{ | ||
"src": "logo512.png", | ||
"type": "image/png", | ||
"sizes": "512x512" | ||
} | ||
], | ||
"start_url": ".", | ||
"display": "standalone", | ||
"theme_color": "#000000", | ||
"background_color": "#ffffff" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# https://www.robotstxt.org/robotstxt.html | ||
User-agent: * | ||
Disallow: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import * as React from 'react'; | ||
import { FC } from 'react'; | ||
import Icon from '@material-ui/icons/NewReleases'; | ||
|
||
import CardWithIcon from './CardWithIcon'; | ||
|
||
interface Props { | ||
value?: string; | ||
} | ||
|
||
const PristineJobs: FC<Props> = ({ value }) => { | ||
return ( | ||
<CardWithIcon | ||
to='/jobs?filter={"status":"untriggered"}' | ||
icon={Icon} | ||
title='Untriggered Jobs' | ||
subtitle={value} | ||
/> | ||
); | ||
}; | ||
|
||
export default PristineJobs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
import * as React from "react"; | ||
import SuccessIcon from '@material-ui/icons/CheckCircle'; | ||
import FailedIcon from '@material-ui/icons/Cancel'; | ||
import PristineIcon from '@material-ui/icons/Timer'; | ||
import { Tooltip } from '@material-ui/core'; | ||
|
||
const StatusField = (props: any) => { | ||
return (props.record[props.source] === 'success' ? <Tooltip title="Success"><SuccessIcon htmlColor="green" /></Tooltip> : <Tooltip title="Success"><FailedIcon htmlColor="red" /></Tooltip>); | ||
if (props.record[props.source] === 'success') { | ||
return <Tooltip title="Success"><SuccessIcon htmlColor="green" /></Tooltip> | ||
} else if (props.record[props.source] === 'failed') { | ||
return <Tooltip title="Error"><FailedIcon htmlColor="red" /></Tooltip> | ||
} else { | ||
return <Tooltip title="Waiting to Run"><PristineIcon htmlColor="blue" /></Tooltip> | ||
} | ||
}; | ||
|
||
export default StatusField; |