-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add integration guides for Zapier apps
- Loading branch information
Showing
70 changed files
with
1,100 additions
and
383 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# API Base URL | ||
VITE_REACT_APP_API_BASE_URL=https://api.nepflow.dev | ||
VITE_REACT_APP_API_BASE_URL=https://api.nepflow.dev/v1 |
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,2 +1,2 @@ | ||
# API Base URL | ||
VITE_REACT_APP_API_BASE_URL=http://localhost:5690 | ||
VITE_REACT_APP_API_BASE_URL=http://localhost:5690/v1 |
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import apiClient from '..' | ||
import { type Recommendation } from '../../../models/recommendation' | ||
|
||
async function getRecommendations (serviceKey: string, secondServiceKey: string): Promise<Recommendation[]> { | ||
const res = await apiClient.get('/services/recommendations', { | ||
params: { | ||
serviceKey, | ||
secondServiceKey | ||
} | ||
}) | ||
const result = await res.data | ||
|
||
return result.recommendations | ||
} | ||
|
||
export default getRecommendations |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import Icon from '../Icon/Icon' | ||
import styles from './backButton.module.css' | ||
|
||
interface Props { | ||
onClick: () => void | ||
} | ||
|
||
function BackButton ({ onClick }: Props) { | ||
return ( | ||
<div | ||
className={styles.backButton} | ||
onClick={onClick} | ||
> | ||
<Icon icon='arrowLeft' className={styles.backButtonIcon} size={18} /> | ||
</div> | ||
) | ||
} | ||
|
||
export default BackButton |
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,20 @@ | ||
.backButton { | ||
float: left; | ||
|
||
text-align: center; | ||
margin-right: 22px; | ||
|
||
width: 36px; | ||
height: 36px; | ||
border-radius: 100%; | ||
background-color: rgba(0, 0, 0, 0.05); | ||
|
||
cursor: pointer; | ||
} | ||
.backButtonIcon { | ||
opacity: 0.4; | ||
margin: 9px auto 0; | ||
} | ||
.backButton:hover { | ||
background-color: rgba(0, 0, 0, 0.07); | ||
} |
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,3 @@ | ||
import BackButton from './BackButton' | ||
|
||
export default BackButton |
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,41 @@ | ||
import Icon from '../Icon/Icon' | ||
import styles from './breadcrumbs.module.css' | ||
import { Link } from 'react-router-dom' | ||
|
||
interface Item { title: string, path?: string } | ||
|
||
interface Props { | ||
items: Array<Item | undefined> | ||
} | ||
|
||
function Breadcrumbs ({ items }: Props) { | ||
const filteredItems = items.filter(i => !!i) as Item[] | ||
|
||
return ( | ||
<div | ||
className={styles.breadcrumbs} | ||
> | ||
{filteredItems.map((item, i) => ( | ||
<div key={i.toString()} className={styles.breadcrumbsItem}> | ||
{item.path | ||
? ( | ||
<Link to={item.path}> | ||
{item.title} | ||
</Link> | ||
) | ||
: ( | ||
<span> | ||
{item.title} | ||
</span> | ||
)} | ||
|
||
{i < filteredItems.length - 1 && ( | ||
<Icon icon='chevronRight' className={styles.breadcrumbsItemSeparator} size={16} /> | ||
)} | ||
</div> | ||
))} | ||
</div> | ||
) | ||
} | ||
|
||
export default Breadcrumbs |
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,26 @@ | ||
.breadcrumbs { | ||
font-size: 14px; | ||
line-height: 14px; | ||
color: #777; | ||
cursor: default; | ||
} | ||
|
||
.breadcrumbsItem { | ||
display: inline-block; | ||
margin-right: 8px; | ||
line-height: 14px; | ||
} | ||
.breadcrumbsItem a { | ||
color: #555; | ||
} | ||
.breadcrumbsItem a:hover { | ||
color: #333; | ||
} | ||
|
||
.breadcrumbsItemSeparator { | ||
display: inline-block; | ||
margin-left: 8px; | ||
line-height: 14px; | ||
opacity: 0.5; | ||
margin-top: 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Breadcrumbs from './Breadcrumbs' | ||
|
||
export default Breadcrumbs |
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,3 @@ | ||
import Button from './Button' | ||
|
||
export default Button |
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,26 @@ | ||
import { type ReactNode } from 'react' | ||
import styles from './card.module.css' | ||
|
||
interface Props { | ||
className: string | string[] | ||
children?: ReactNode | ||
onClick?: () => void | ||
} | ||
|
||
function Card ({ className, children, onClick }: Props) { | ||
let finalClassName = [styles.card] | ||
if (Array.isArray(className)) { | ||
finalClassName = [ | ||
...finalClassName, | ||
...className | ||
] | ||
} else { | ||
finalClassName.push(className) | ||
} | ||
|
||
return ( | ||
<div onClick={onClick} className={finalClassName.join(' ')}>{children}</div> | ||
) | ||
} | ||
|
||
export default Card |
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,7 @@ | ||
.card { | ||
width: 100%; | ||
background-color: var(--card-color); | ||
border: solid 1px var(--card-border-color); | ||
border-radius: 12px; | ||
color: #000; | ||
} |
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,3 @@ | ||
import Card from './Card' | ||
|
||
export default Card |
File renamed without changes.
File renamed without changes.
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,3 @@ | ||
import FullScreenLoading from './FullScreenLoading' | ||
|
||
export default FullScreenLoading |
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,19 @@ | ||
import styles from './header.module.css' | ||
import BackButton from '../BackButton' | ||
|
||
interface Props { | ||
title?: string | ||
onBackClick: () => void | ||
} | ||
|
||
function Header ({ title, onBackClick }: Props) { | ||
return ( | ||
<div className={styles.header}> | ||
<BackButton onClick={onBackClick} /> | ||
|
||
<div className={styles.headerTitle}>{title}</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default Header |
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,9 @@ | ||
.header { | ||
margin: 20px 0 30px; | ||
} | ||
|
||
.headerTitle { | ||
font-size: 24px; | ||
line-height: 38px; | ||
font-weight: 600; | ||
} |
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,3 @@ | ||
import Header from './Header' | ||
|
||
export default Header |
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,3 @@ | ||
import Icon from './Icon' | ||
|
||
export default Icon |
Oops, something went wrong.