-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: initial commit for typescript migration * fix: tsconfig with next * feat: migrate footer to ts * feat: migrate components to ts * fix: prettier error * fix: prettier error * fix: all lint errors * fix: remove unused vscode settings * fix: migrate and improve widget.js * feat: migrate all helpers to ts * fix: types * feat: migrate api to ts * feat: migrate page files * Fix for tz Page component is not being set correctly when the component is rendered * Add type check to ensure that router.query.tz is a string --------- Co-authored-by: Alexis Sgarbossa <[email protected]>
- Loading branch information
Showing
22 changed files
with
549 additions
and
349 deletions.
There are no files selected for viewing
This file was deleted.
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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import React from 'react' | ||
import Timezone from './timezone' | ||
|
||
interface IFooter { | ||
changeTimezone: (timezone: string) => void | ||
timezone: string | ||
} | ||
|
||
const Footer = (props: IFooter) => { | ||
return ( | ||
<> | ||
<ul className="footer-list"> | ||
<li>Share:</li> | ||
<li> | ||
<a | ||
href="https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fshouldideploy.today%2F&t=Should%20I%20Deploy%20Today%3F" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
title="Share on Facebook" | ||
> | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
href="https://twitter.com/intent/tweet?source=http%3A%2F%2Fshouldideploy.today%2F&text=Should%20I%20Deploy%20Today%3F:%20http%3A%2F%2Fshouldideploy.today" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
title="Tweet" | ||
> | ||
</a> | ||
</li> | ||
<li> | ||
Source:{' '} | ||
<a | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
href="http://github.com/baires/shouldideploy/" | ||
> | ||
Github | ||
</a> | ||
</li> | ||
<li> | ||
Timezone:{' '} | ||
<Timezone onChange={props.changeTimezone} timezone={props.timezone} /> | ||
</li> | ||
</ul> | ||
|
||
<ul className="footer-list"> | ||
<li> | ||
<a href={'/api?tz=' + props.timezone}> | ||
<mark>API</mark> | ||
</a> | ||
</li> | ||
<li> | ||
<a href={'/api/slack?tz=' + props.timezone}> | ||
<mark>Slack API</mark> | ||
</a> | ||
</li> | ||
</ul> | ||
</> | ||
) | ||
} | ||
|
||
export default Footer |
This file was deleted.
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import React from 'react' | ||
|
||
const Head = () => { | ||
return ( | ||
<> | ||
<meta charSet="utf-8" /> | ||
<meta name="viewport" content="width=device-width" /> | ||
<meta | ||
name="description" | ||
content="A friendly reminder to all Developers, Designers, CEO's" | ||
/> | ||
|
||
<meta itemProp="name" content="Should I Deploy Today" /> | ||
<meta | ||
itemProp="description" | ||
content="A friendly reminder to all Developers, Designers, CEO's" | ||
/> | ||
|
||
<meta name="twitter:card" content="summary" /> | ||
<meta name="twitter:title" content="Should I Deploy Today" /> | ||
<meta | ||
name="twitter:description" | ||
content="A friendly reminder to all Developers, Designers, CEO's" | ||
/> | ||
|
||
<meta property="og:title" content="Should I Deploy Today" /> | ||
<meta | ||
property="og:description" | ||
content="A friendly reminder to all Developers, Designers, CEO's" | ||
/> | ||
<meta property="og:url" content="https://shouldideploy.today" /> | ||
<meta property="og:site_name" content="Should I Deploy Today" /> | ||
<meta property="og:type" content="website" /> | ||
|
||
<meta name="theme-color" content="#1E1F29" /> | ||
<script | ||
defer | ||
src="https://static.cloudflareinsights.com/beacon.min.js" | ||
data-cf-beacon='{"token": "f87541717296439a86907c81d3effe69"}' | ||
></script> | ||
</> | ||
) | ||
} | ||
|
||
export default Head |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.
469a287
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
shouldideploy – ./
shouldideploy-sgavel.vercel.app
shouldideploy-git-master-sgavel.vercel.app
shouldideploy.today
shouldideploy.vercel.app