-
Notifications
You must be signed in to change notification settings - Fork 73
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 #627 from jaxx2104/develop
master <- develop
- Loading branch information
Showing
42 changed files
with
5,125 additions
and
1,974 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es6: true, | ||
node: true, | ||
}, | ||
extends: [ | ||
'plugin:react/recommended', | ||
'plugin:react-hooks/recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'prettier', | ||
'prettier/@typescript-eslint', | ||
'prettier/react', | ||
], | ||
plugins: ['@typescript-eslint', 'react', 'react-hooks', 'prettier'], | ||
parserOptions: { | ||
ecmaVersion: 2018, | ||
sourceType: 'module', | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
}, | ||
rules: { | ||
'prettier/prettier': 'error', | ||
}, | ||
settings: { | ||
react: { | ||
version: '16.13.0', | ||
}, | ||
}, | ||
} |
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 |
---|---|---|
|
@@ -4,4 +4,3 @@ public | |
.DS_Store | ||
.intermediate-representation | ||
.cache | ||
.vscode |
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,5 @@ | ||
module.exports = { | ||
trailingComma: 'es5', | ||
semi: false, | ||
singleQuote: true, | ||
} |
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,6 @@ | ||
{ | ||
"editor.formatOnSave": false, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,6 @@ | ||
// Import all js dependencies. | ||
import 'jquery/dist/jquery.min.js' | ||
import 'popper.js/dist/popper.min' | ||
import 'bootstrap/js/dist/util' | ||
import 'bootstrap/js/dist/carousel' | ||
import 'bootstrap/js/dist/dropdown' |
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 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
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,39 @@ | ||
import React, { useEffect } from 'react' | ||
import './style.scss' | ||
|
||
interface Props { | ||
clientId?: string | null | ||
slotId: string | ||
format: string | ||
} | ||
|
||
declare global { | ||
interface Window { | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
adsbygoogle: any | ||
} | ||
} | ||
|
||
const Adsense: React.FC<Props> = ({ clientId, slotId, format }: Props) => { | ||
useEffect(() => { | ||
if (clientId) { | ||
window.adsbygoogle = (window.adsbygoogle || []).push({}) | ||
} | ||
}, [clientId]) | ||
|
||
return clientId ? ( | ||
<div className="ad"> | ||
<ins | ||
className="adsbygoogle" | ||
style={{ display: 'block' }} | ||
data-ad-client={clientId} | ||
data-ad-slot={slotId} | ||
data-ad-format={format} | ||
/> | ||
</div> | ||
) : ( | ||
<></> | ||
) | ||
} | ||
|
||
export default Adsense |
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,16 @@ | ||
import React from 'react' | ||
|
||
interface Props { | ||
label: string | ||
primary: boolean | ||
} | ||
|
||
const Badges: React.FC<Props> = ({ label, primary }: Props) => { | ||
return ( | ||
<span className={`badge ${primary ? 'badge-primary' : 'badge-secondary'}`}> | ||
{label} | ||
</span> | ||
) | ||
} | ||
|
||
export default Badges |
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,24 @@ | ||
import React from 'react' | ||
import { Link } from 'gatsby' | ||
|
||
interface Props { | ||
path: string | ||
label: string | ||
primary: boolean | ||
} | ||
|
||
const Button: React.FC<Props> = ({ path, label, primary }: Props) => { | ||
return ( | ||
<Link className="readmore" to={path}> | ||
<span | ||
className={`btn btn-outline-primary btn-block ${ | ||
primary ? 'btn-outline-primary' : 'btn-outline-secondary' | ||
}`} | ||
> | ||
{label} | ||
</span> | ||
</Link> | ||
) | ||
} | ||
|
||
export default Button |
Oops, something went wrong.