Download web/app/components/header/utils/util.ts from ZHZ1024/dify: direct link, hf CLI and curl.
- Browser
- Download file 750 Bytes
-
https://huggingface.co/spaces/ZHZ1024/dify/resolve/main/web/app/components/header/utils/util.ts
- Command line
-
hf download hf://spaces/ZHZ1024/dify/web/app/components/header/utils/util.ts
-
curl -L -o util.ts https://huggingface.co/spaces/ZHZ1024/dify/resolve/main/web/app/components/header/utils/util.ts
750 Bytes
| export const generateMailToLink = (email: string, subject?: string, body?: string): string => { | |
| let mailtoLink = `mailto:${email}` | |
| if (subject) | |
| mailtoLink += `?subject=${encodeURIComponent(subject)}` | |
| if (body) | |
| mailtoLink += `&body=${encodeURIComponent(body)}` | |
| return mailtoLink | |
| } | |
| export const mailToSupport = (account: string, plan: string, version: string) => { | |
| const subject = `Technical Support Request ${plan} ${account}` | |
| const body = ` | |
| Please do not remove the following information: | |
| ----------------------------------------------- | |
| Current Plan: ${plan} | |
| Account: ${account} | |
| Version: ${version} | |
| Platform: | |
| Problem Description: | |
| ` | |
| return generateMailToLink('support@dify.ai', subject, body) | |
| } | |