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
--- | |
name: Build and Push Docker Image to AWS ECR | |
on: | |
push: | |
branches: [ master ] | |
env: | |
A_ACCESS: '${{ secrets.A_ACCESS }}' | |
A_SECRET: '${{ secrets.A_SECRET }}' | |
FOO: '${{ secrets.FOO }}' |
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
FROM node:14 | |
ARG FOO=${FOO} | |
ENV FOO=${FOO} | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app |
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
const [playingDemo, setPlayingDemo] = useState(0) | |
const [scrollTop, setScrollTop] = useState(0); | |
const [loaded, setLoaded] = useState(false) | |
useEffect(() => { | |
const onScroll = (e) => { | |
setScrollTop(e.target.documentElement.scrollTop); |
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
//https://regex101.com/r/gmICzZ/1 | |
const params = new URLSearchParams(window.location.href.match(/\?.*/)[0]); | |
const callBackUrl = params?.get("callbackUrl") |
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
const htmlToFormattedText = require("html-to-formatted-text"); | |
export const stringToBoolean = (string) => { | |
if (!string) { | |
return false; | |
} | |
switch (`${string}`?.toLowerCase().trim()) { |
OlderNewer