This repository has been archived by the owner on Mar 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #339 from watermelontools/enhancement/beautify-das…
…hboard Enhancement/beautify dashboard
- Loading branch information
Showing
17 changed files
with
308 additions
and
221 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
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
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,19 +1,33 @@ | ||
import Link from "next/link"; | ||
|
||
const AsanaLoginLink = ({ userEmail }) => ( | ||
<div className="Box"> | ||
<Link | ||
href={`https://app.asana.com/-/oauth_authorize?client_id=${process.env.ASANA_CLIENT_ID}&redirect_uri=https%3A%2F%2Fapp.watermelontools.com%2Fasana&response_type=code&state=${userEmail}`} | ||
className="button block" | ||
> | ||
<div className="Box d-flex flex-items-center flex-justify-start p-2"> | ||
<img className="avatar avatar-8" src="/logos/asana.svg" /> | ||
<div className="p-2"> | ||
<h2>Login to Asana</h2> | ||
<p>View your Tasks and Stories</p> | ||
<div className="Box" style={{ height: "100%" }}> | ||
<div className="Subhead px-3 pt-2"> | ||
<h2 className="Subhead-heading d-flex flex-items-center flex-justify-start"> | ||
<img | ||
className="avatar avatar-4" | ||
src="/logos/asana.svg" | ||
/> | ||
<span>Asana</span> | ||
</h2> | ||
</div> | ||
|
||
<div className="pl-3 pr-3 pt-1 pb-3" style={{ flex: 1 }}> | ||
<Link | ||
href={`https://app.asana.com/-/oauth_authorize?client_id=${process.env.ASANA_CLIENT_ID}&redirect_uri=https%3A%2F%2Fapp.watermelontools.com%2Fasana&response_type=code&state=${userEmail}`} | ||
className="button block" | ||
> | ||
<div className="d-flex flex-items-center"> | ||
<img className="avatar avatar-8 mr-2" src="/logos/asana.svg" /> | ||
<div style={{ flex: 1 }}> | ||
<h3>Login to Asana</h3> | ||
<p>View your Tasks and Stories</p> | ||
</div> | ||
</div> | ||
</div> | ||
</Link> | ||
</Link> | ||
</div> | ||
</div> | ||
); | ||
|
||
|
||
export default AsanaLoginLink; |
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,19 +1,32 @@ | ||
import Link from "next/link"; | ||
|
||
const BitbucketLoginLink = ({ userEmail }) => ( | ||
<div className="Box"> | ||
<Link | ||
href={`https://bitbucket.org/site/oauth2/authorize?client_id=qvxNH4EGH4sjZysZAu&response_type=code&state=${userEmail}`} | ||
className="button block" | ||
> | ||
<div className="Box d-flex flex-items-center flex-justify-start p-2"> | ||
<img className="avatar avatar-8" src="/logos/bitbucket.svg" /> | ||
<div className="p-2"> | ||
<h2>Login to Bitbucket</h2> | ||
<p>View your Assigned Issues and Relevant Pull Requests</p> | ||
<div className="Box" style={{ height: "100%" }}> | ||
<div className="Subhead px-3 pt-2"> | ||
<h2 className="Subhead-heading d-flex flex-items-center flex-justify-start"> | ||
<img | ||
className="avatar avatar-4" | ||
src="/logos/bitbucket.svg" | ||
/> | ||
<span>Bitbucket</span> | ||
</h2> | ||
</div> | ||
|
||
<div className="pl-3 pr-3 pt-1 pb-3" style={{ flex: 1 }}> | ||
<Link | ||
href={`https://bitbucket.org/site/oauth2/authorize?client_id=qvxNH4EGH4sjZysZAu&response_type=code&state=${userEmail}`} | ||
className="button block" | ||
> | ||
<div className="d-flex flex-items-center"> | ||
<img className="avatar avatar-8 mr-2" src="/logos/bitbucket.svg" /> | ||
<div style={{ flex: 1 }}> | ||
<h3>Login to Bitbucket</h3> | ||
<p>View your Assigned Issues and Relevant Pull Requests</p> | ||
</div> | ||
</div> | ||
</div> | ||
</Link> | ||
</Link> | ||
</div> | ||
</div> | ||
); | ||
|
||
export default BitbucketLoginLink; |
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,21 +1,31 @@ | ||
import Link from "next/link"; | ||
|
||
const ConfluenceLoginLink = ({ userEmail }) => ( | ||
<div> | ||
<Link | ||
href={`https://auth.atlassian.com/authorize?audience=api.atlassian.com&client_id=VUngRAClu8ZE56vxXCFBocTxCTLEUQTT&scope=offline_access%20read%3Acontent%3Aconfluence%20read%3Acontent-details%3Aconfluence%20read%3Ablogpost%3Aconfluence%20read%3Acomment%3Aconfluence%20read%3Auser%3Aconfluence%20read%3Auser.property%3Aconfluence%20read%3Ainlinetask%3Aconfluence&redirect_uri=https%3A%2F%2Fapp.watermelontools.com%2Fatlassian&state=${ | ||
"c" + userEmail | ||
}&response_type=code&prompt=consent`} | ||
className="button block" | ||
> | ||
<div className="Box d-flex flex-items-center flex-justify-start p-2"> | ||
<img className="avatar avatar-8" src="/logos/confluence.svg" /> | ||
<div className="p-2"> | ||
<h2>Login to Confluence</h2> | ||
<p>View your Most Relevant Docs</p> | ||
<div className="Box" style={{ height: "100%" }}> | ||
<div className="Subhead px-3 pt-2"> | ||
<h2 className="Subhead-heading d-flex flex-items-center flex-justify-start"> | ||
<img className="avatar avatar-4" src="/logos/confluence.svg" /> | ||
<span>Confluence</span> | ||
</h2> | ||
</div> | ||
|
||
<div className="pl-3 pr-3 pt-1 pb-3" style={{ flex: 1 }}> | ||
<Link | ||
href={`https://auth.atlassian.com/authorize?audience=api.atlassian.com&client_id=VUngRAClu8ZE56vxXCFBocTxCTLEUQTT&scope=offline_access%20read%3Acontent%3Aconfluence%20read%3Acontent-details%3Aconfluence%20read%3Ablogpost%3Aconfluence%20read%3Acomment%3Aconfluence%20read%3Auser%3Aconfluence%20read%3Auser.property%3Aconfluence%20read%3Ainlinetask%3Aconfluence&redirect_uri=https%3A%2F%2Fapp.watermelontools.com%2Fatlassian&state=${ | ||
"c" + userEmail | ||
}&response_type=code&prompt=consent`} | ||
className="button block" | ||
> | ||
<div className="d-flex flex-items-center"> | ||
<img className="avatar avatar-8 mr-2" src="/logos/confluence.svg" /> | ||
<div style={{ flex: 1 }}> | ||
<h3>Login to Confluence</h3> | ||
<p>Index Relevant Docs</p> | ||
</div> | ||
</div> | ||
</div> | ||
</Link> | ||
</Link> | ||
</div> | ||
</div> | ||
); | ||
|
||
export default ConfluenceLoginLink; |
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,20 +1,32 @@ | ||
import Link from "next/link"; | ||
|
||
const GitHubLoginLink = ({ userEmail }) => ( | ||
<div className="Box"> | ||
<Link | ||
href={`https://github.com/login/oauth/authorize?client_id=8543242e428085df968c&redirect_uri=https://app.watermelontools.com/github&state=${userEmail}&scope=repo%20user%20notifications`} | ||
className="button block"> | ||
<div className="Box" style={{ height: "100%" }}> | ||
<div className="Subhead px-3 pt-2"> | ||
<h2 className="Subhead-heading d-flex flex-items-center flex-justify-start"> | ||
<img | ||
className="avatar avatar-4" | ||
src="/logos/github.svg" | ||
/> | ||
<span>GitHub</span> | ||
</h2> | ||
</div> | ||
|
||
<div className="Box d-flex flex-items-center flex-justify-start p-2"> | ||
<img className="avatar avatar-8" src="/logos/github.svg" /> | ||
<div className="p-2"> | ||
<h2>Login to GitHub</h2> | ||
<p>View your Assigned Issues and Relevant Pull Requests</p> | ||
<div className="pl-3 pr-3 pt-1 pb-3" style={{ flex: 1 }}> | ||
<Link | ||
href={`https://github.com/login/oauth/authorize?client_id=8543242e428085df968c&redirect_uri=https://app.watermelontools.com/github&state=${userEmail}&scope=repo%20user%20notifications`} | ||
className="button block" | ||
> | ||
<div className="d-flex flex-items-center"> | ||
<img className="avatar avatar-8 mr-2" src="/logos/github.svg" /> | ||
<div style={{ flex: 1 }}> | ||
<h3>Login to GitHub</h3> | ||
<p>Index Relevant Pull Requests</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</Link> | ||
</Link> | ||
</div> | ||
</div> | ||
); | ||
|
||
export default GitHubLoginLink; |
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,19 +1,33 @@ | ||
import Link from "next/link"; | ||
|
||
const GitLabLoginLink = ({ userEmail }) => ( | ||
<div> | ||
<Link | ||
href={`https://gitlab.com/oauth/authorize?client_id=399843bda5477334e51f2aa88d96dfff694ce2da3130dabc685e34e1aa55b8f3&redirect_uri=https://app.watermelontools.com/gitlab&response_type=code&state=${userEmail}&scope=api%20read_api%20read_user%20read_repository%20write_repository%20read_registry%20openid%20profile%20email`} | ||
className="button block" | ||
> | ||
<div className="Box d-flex flex-items-center flex-justify-start p-2"> | ||
<img className="avatar avatar-8" src="/logos/gitlab.svg" /> | ||
<div className="p-2"> | ||
<h2>Login to GitLab</h2> | ||
<p>View your Assigned Issues and Relevant Pull Requests</p> | ||
<div className="Box" style={{ height: "100%" }}> | ||
<div className="Subhead px-3 pt-2"> | ||
<h2 className="Subhead-heading d-flex flex-items-center flex-justify-start"> | ||
<img | ||
className="avatar avatar-4" | ||
src="/logos/gitlab.svg" | ||
/> | ||
<span>GitLab</span> | ||
</h2> | ||
</div> | ||
|
||
<div className="pl-3 pr-3 pt-1 pb-3" style={{ flex: 1 }}> | ||
<Link | ||
href={`https://gitlab.com/oauth/authorize?client_id=399843bda5477334e51f2aa88d96dfff694ce2da3130dabc685e34e1aa55b8f3&redirect_uri=https://app.watermelontools.com/gitlab&response_type=code&state=${userEmail}&scope=api%20read_api%20read_user%20read_repository%20write_repository%20read_registry%20openid%20profile%20email`} | ||
className="button block" | ||
> | ||
<div className="d-flex flex-items-center"> | ||
<img className="avatar avatar-8 mr-2" src="/logos/gitlab.svg" /> | ||
<div style={{ flex: 1 }}> | ||
<h3>Login to GitLab</h3> | ||
<p>View your Assigned Issues and Relevant Pull Requests</p> | ||
</div> | ||
</div> | ||
</div> | ||
</Link> | ||
</Link> | ||
</div> | ||
</div> | ||
); | ||
|
||
|
||
export default GitLabLoginLink; |
Oops, something went wrong.