Skip to content

Commit b79031f

Browse files
committed
chore: reinit projects
0 parents  commit b79031f

File tree

159 files changed

+25440
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+25440
-0
lines changed

.editorconfig

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
max_line_length = 120
11+
trim_trailing_whitespace = true
12+
13+
[*.markdown]
14+
trim_trailing_whitespace = false
15+
16+
# Matches multiple files with brace expansion notation
17+
# Set default charset
18+
[*.{js, py, ts, tsx, html, css, scss, json}]
19+
charset = utf-8
20+
indent_style = space
21+
indent_size = 2
22+
23+
# 4 space indentation
24+
[*.py]
25+
indent_style = space
26+
indent_size = 4
27+
28+
# Tab indentation (no size specified)
29+
[Makefile]
30+
indent_style = tab
31+
32+
# Matches the exact files either package.json or .travis.yml
33+
[{package.json,.travis.yml}]
34+
indent_style = space
35+
indent_size = 2

.env.example

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# fake enc on local dev
2+
# ```nodejs
3+
# const { createHash } = require('node:crypto');
4+
# const enc = createHash('sha256').update(String(<secret>)).digest('base64').substring(0, 32);
5+
# ```
6+
ENC_KEY=
7+
# can get free db from https://auth.planetscale.com/sign-up
8+
DATABASE_URL=
9+
# replace it to your own
10+
# only works at `development`
11+
PROXY_HOST=
12+
PROXY_PORT=

.eslintrc.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"root": true,
3+
"plugins": [
4+
"@typescript-eslint"
5+
],
6+
"extends": [
7+
"next/core-web-vitals",
8+
"plugin:@typescript-eslint/recommended",
9+
"prettier"
10+
],
11+
"rules": {
12+
"react-hooks/exhaustive-deps": "off",
13+
"no-console": "off",
14+
"@typescript-eslint/no-unused-vars": "off",
15+
"@typescript-eslint/no-explicit-any": "off"
16+
}
17+
}

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ""
5+
labels: ""
6+
assignees: ""
7+
---
8+
9+
**Describe the bug**
10+
A clear and concise description of what the bug is.
11+
12+
**To Reproduce**
13+
Steps to reproduce the behavior:
14+
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
28+
- OS: [e.g. iOS]
29+
- Browser [e.g. chrome, safari]
30+
- Version [e.g. 22]
31+
32+
**Smartphone (please complete the following information):**
33+
34+
- Device: [e.g. iPhone6]
35+
- OS: [e.g. iOS8.1]
36+
- Browser [e.g. stock browser, safari]
37+
- Version [e.g. 22]
38+
39+
**Additional context**
40+
Add any other context about the problem here.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ""
5+
labels: ""
6+
assignees: ""
7+
---
8+
9+
**Is your feature request related to a problem? Please describe.**
10+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
11+
12+
**Describe the solution you'd like**
13+
A clear and concise description of what you want to happen.
14+
15+
**Describe alternatives you've considered**
16+
A clear and concise description of any alternative solutions or features you've considered.
17+
18+
**Additional context**
19+
Add any other context or screenshots about the feature request here.

.github/workflows/ci.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
name: Build & Test
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
node-version: ["lts/gallium", "lts/hydrogen", "current"]
16+
steps:
17+
- name: Checkout 🛎️
18+
uses: actions/checkout@v3
19+
with:
20+
persist-credentials: false
21+
22+
- uses: actions/setup-node@v3
23+
with:
24+
node-version: 16
25+
26+
- run: npm ci
27+
28+
- run: npm run test
29+
30+
- run: npm run build --if-present
31+
lint:
32+
name: format and lint
33+
runs-on: ubuntu-latest
34+
steps:
35+
- name: Checkout 🛎️
36+
uses: actions/checkout@v3
37+
with:
38+
persist-credentials: false
39+
40+
- uses: actions/setup-node@v3
41+
with:
42+
node-version: 16
43+
- run: npm ci
44+
45+
- run: npm run format
46+
47+
- run: npm run lint

.gitignore

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
pnpm-lock.yaml
8+
9+
# testing
10+
/coverage
11+
12+
# next.js
13+
/.next/
14+
/.swc/
15+
/out/
16+
17+
# production
18+
/build
19+
20+
# misc
21+
.DS_Store
22+
*.pem
23+
24+
# debug
25+
npm-debug.log*
26+
yarn-debug.log*
27+
yarn-error.log*
28+
.pnpm-debug.log*
29+
30+
# local env files
31+
.env*.local
32+
33+
# vercel
34+
.vercel
35+
36+
# typescript
37+
*.tsbuildinfo
38+
next-env.d.ts
39+
.idea
40+
41+
/dist
42+
public/sitemap-0.xml
43+
src/assets/resources/**/*.json
44+
45+
.vercel
46+
.env

.husky/pre-push

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
# TODO(CGQAQ): uncomment this when next 13.2.4 came out
5+
# npm run lint;
6+
npm run format;

.prettierignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Ignore artifacts:
2+
build
3+
coverage
4+
5+
.next
6+
7+
dist
8+
node_modules
9+
public
10+
11+
.vscode
12+
.idea
13+
14+
*.json
15+
CNAME

.prettierrc.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "http://json.schemastore.org/prettierrc",
3+
"trailingComma": "all",
4+
"tabWidth": 2,
5+
"semi": true,
6+
"singleQuote": false,
7+
"jsxSingleQuote": true,
8+
"endOfLine": "lf",
9+
"printWidth": 120,
10+
"bracketSpacing": true,
11+
"arrowParens": "always",
12+
"useTabs": false
13+
}

.vscode/launch.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Next.js: debug server-side",
9+
"type": "node-terminal",
10+
"request": "launch",
11+
"command": "npm run dev"
12+
},
13+
{
14+
"name": "Next.js: debug client-side",
15+
"type": "chrome",
16+
"request": "launch",
17+
"url": "http://localhost:3000"
18+
},
19+
{
20+
"name": "Next.js: debug full stack",
21+
"type": "node-terminal",
22+
"request": "launch",
23+
"command": "npm run dev",
24+
"serverReadyAction": {
25+
"pattern": "started server on .+, url: (https?://.+)",
26+
"uriFormat": "%s",
27+
"action": "debugWithChrome"
28+
}
29+
}
30+
]
31+
}

.vscode/settings.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"typescript.tsdk": "node_modules/typescript/lib",
3+
"typescript.enablePromptUseWorkspaceTsdk": true,
4+
"stylelint.validate": [
5+
"css",
6+
"less",
7+
"scss",
8+
"postcss",
9+
"react",
10+
],
11+
"editor.codeActionsOnSave": {
12+
"source.fixAll.eslint": true
13+
},
14+
"eslint.validate": [
15+
"javascript",
16+
"typescript"
17+
],
18+
"editor.formatOnSave": true,
19+
"editor.defaultFormatter": "esbenp.prettier-vscode",
20+
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false,
21+
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false,
22+
}

LICENSE

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Prompt Engineering
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# ChatFlow - Personalize your ChatGPT workflows and build the road to automation
2+
3+
[![ci](https://github.com/prompt-engineering/chat-flow/actions/workflows/ci.yaml/badge.svg)](https://github.com/prompt-engineering/chat-flow/actions/workflows/ci.yaml)
4+
![GitHub](https://img.shields.io/github/license/prompt-engineering/chat-flow)
5+
[![Discord](https://img.shields.io/discord/1082563233593966612)](https://discord.gg/FSWXq4DmEj)
6+
7+
![](docs/screenshot.jpeg)
8+
9+
English | [简体中文](./README.zh-CN.md)
10+
11+
Join us:
12+
13+
[![Chat Server](https://img.shields.io/badge/chat-discord-7289da.svg)](https://discord.gg/FSWXq4DmEj)
14+
15+
# DEPLOY (On vercel)
16+
17+
Deploying a Next.js Application on Vercel
18+
19+
Prerequisites:
20+
21+
- ChatFlow repo fork
22+
- A Vercel account
23+
24+
## Connect Your Repository
25+
26+
1. Login to your Vercel account and click on "New Project".
27+
2. Select your Git repository where your Next.js application is hosted.
28+
3. Vercel will automatically detect that it is a Next.js application and configure the build settings.
29+
30+
## LICENSE
31+
32+
This code is distributed under the MIT license. See [LICENSE](./LICENSE) in this directory.

README.zh-CN.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# ChatFlow - 打造个性化 ChatGPT 流程,构建自动化之路
2+
3+
[![ci](https://github.com/prompt-engineering/chat-flow/actions/workflows/ci.yaml/badge.svg)](https://github.com/prompt-engineering/chat-flow/actions/workflows/ci.yaml)
4+
![GitHub](https://img.shields.io/github/license/prompt-engineering/chat-flow)
5+
6+
![](docs/screenshot.jpeg)
7+
8+
[English](./README.md) | 简体中文
9+
10+
# 部署 ChatFlow
11+
12+
要求:
13+
14+
- 使用 ChatFlow 作为模板
15+
- 注册 Vercel 帐户
16+
17+
## 使用
18+
19+
1. 登录到您的 Vercel 帐户并单击 “New Project”。
20+
2. 选择您的 Git 代码仓库,其中存储着您的 Next.js 应用程序。
21+
3. Vercel 将自动检测到它是一个 Next.js 应用程序,并配置构建设置。
22+
23+
## LICENSE
24+
25+
This code is distributed under the MIT license. See [LICENSE](./LICENSE) in this directory.

0 commit comments

Comments
 (0)