This file contains hidden or 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
import styles from './SomeComponent.module.css'; | |
const SomeComponent = () => { | |
return ( | |
<a className={styles.ButtonLink}> | |
styled link | |
</a> | |
); | |
} |
This file contains hidden or 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
/* src/components/some-component/SomeComponent.module.css */ | |
.ButtonLink { | |
background: transparent; | |
border-radius: 3px; | |
border: 1px solid var(--accent-color); | |
color: var(--accent-color); | |
display: inline-block; | |
margin: 0.5rem 1rem; | |
padding: 0.5rem 0px; |
This file contains hidden or 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
// src/components/some-component/index.js | |
import styled from '@linaria/react'; | |
const SomeComponent = () => { | |
return ( | |
<ButtonLink> | |
styled link | |
</ButtonLink> | |
); |
This file contains hidden or 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
.hcJJXU { | |
background: transparent; | |
border-radius: 3px; | |
border: 1px solid var(--accent-color); | |
color: var(--accent-color); | |
display: inline-block; | |
margin: 0.5rem 1rem; | |
padding: 0.5rem 0px; | |
transition: all 200ms ease-in-out 0s; | |
width: 11rem; |
This file contains hidden or 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
// src/components/some-component/index.js | |
import styled from 'styled-components'; | |
const SomeComponent = () => { | |
return ( | |
<ButtonLink> | |
styled link | |
</ButtonLink> | |
); |
This file contains hidden or 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
<html> | |
<body> | |
<a class="sc-4c0ad8fd-0 hcJJXU"> | |
styled link | |
</a> | |
</body> | |
</html> |
This file contains hidden or 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
GOOGLE_APPLICATION_CREDENTIALS_BASE64="abc123" |
This file contains hidden or 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
cat name-of-creds-file.json | base64 |
This file contains hidden or 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
// src/index.js#L59 | |
body: JSON.stringify({ | |
blocks: [ | |
{ | |
type: 'header', | |
text: { | |
type: 'plain_text', | |
text: '📊 7 Days Google Analytics Report', | |
emoji: true, |
This file contains hidden or 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
// src/index.js#L42 | |
const report = response.rows | |
.map((row, index) => { | |
const { dimensionValues, metricValues } = row; | |
return `${index + 1}. <https://${dimensionValues[0].value}|${dimensionValues[1].value}> | *x${ | |
metricValues[0].value | |
}*`; | |
}) |
NewerOlder