Skip to content

Commit a69ca62

Browse files
committed
chore: init
0 parents  commit a69ca62

21 files changed

Lines changed: 17041 additions & 0 deletions

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = tab
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.yml]
12+
indent_style = space

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SECRET_KEY=your_secret_key_here

.github/dependabot.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'npm' # See documentation for possible values
4+
directory: '/' # Location of package manifests
5+
schedule:
6+
interval: 'daily'

.github/workflows/check.yaml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
name: Check
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
types:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v6
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v6
17+
with:
18+
node-version: 22
19+
cache: npm
20+
21+
- name: Install dependencies
22+
run: npm ci
23+
24+
- name: Verify generated worker types are up to date
25+
run: npm run types:check
26+
27+
typecheck:
28+
runs-on: ubuntu-latest
29+
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v6
33+
34+
- name: Setup Node.js
35+
uses: actions/setup-node@v6
36+
with:
37+
node-version: 22
38+
cache: npm
39+
40+
- name: Install dependencies
41+
run: npm ci
42+
43+
- name: Type check
44+
run: npm run typecheck
45+
46+
format:
47+
runs-on: ubuntu-latest
48+
49+
steps:
50+
- name: Checkout
51+
uses: actions/checkout@v6
52+
53+
- name: Setup Node.js
54+
uses: actions/setup-node@v6
55+
with:
56+
node-version: 22
57+
cache: npm
58+
59+
- name: Install dependencies
60+
run: npm ci
61+
62+
- name: Prettier format check
63+
run: npm run format:check
64+
65+
test:
66+
runs-on: ubuntu-latest
67+
68+
steps:
69+
- name: Checkout
70+
uses: actions/checkout@v6
71+
72+
- name: Setup Node.js
73+
uses: actions/setup-node@v6
74+
with:
75+
node-version: 22
76+
cache: npm
77+
78+
- name: Install dependencies
79+
run: npm ci
80+
81+
- name: Run unit tests
82+
run: npm run test:run

.gitignore

Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
# Logs
2+
3+
logs
4+
_.log
5+
npm-debug.log_
6+
yarn-debug.log*
7+
yarn-error.log*
8+
lerna-debug.log*
9+
.pnpm-debug.log*
10+
11+
# Diagnostic reports (https://nodejs.org/api/report.html)
12+
13+
report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
14+
15+
# Runtime data
16+
17+
pids
18+
_.pid
19+
_.seed
20+
\*.pid.lock
21+
22+
# Directory for instrumented libs generated by jscoverage/JSCover
23+
24+
lib-cov
25+
26+
# Coverage directory used by tools like istanbul
27+
28+
coverage
29+
\*.lcov
30+
31+
# nyc test coverage
32+
33+
.nyc_output
34+
35+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
36+
37+
.grunt
38+
39+
# Bower dependency directory (https://bower.io/)
40+
41+
bower_components
42+
43+
# node-waf configuration
44+
45+
.lock-wscript
46+
47+
# Compiled binary addons (https://nodejs.org/api/addons.html)
48+
49+
build/Release
50+
51+
# Dependency directories
52+
53+
node_modules/
54+
jspm_packages/
55+
56+
# Snowpack dependency directory (https://snowpack.dev/)
57+
58+
web_modules/
59+
60+
# TypeScript cache
61+
62+
\*.tsbuildinfo
63+
64+
# Optional npm cache directory
65+
66+
.npm
67+
68+
# Optional eslint cache
69+
70+
.eslintcache
71+
72+
# Optional stylelint cache
73+
74+
.stylelintcache
75+
76+
# Microbundle cache
77+
78+
.rpt2_cache/
79+
.rts2_cache_cjs/
80+
.rts2_cache_es/
81+
.rts2_cache_umd/
82+
83+
# Optional REPL history
84+
85+
.node_repl_history
86+
87+
# Output of 'npm pack'
88+
89+
\*.tgz
90+
91+
# Yarn Integrity file
92+
93+
.yarn-integrity
94+
95+
# parcel-bundler cache (https://parceljs.org/)
96+
97+
.cache
98+
.parcel-cache
99+
100+
# Next.js build output
101+
102+
.next
103+
out
104+
105+
# Nuxt.js build / generate output
106+
107+
.nuxt
108+
dist
109+
110+
# Gatsby files
111+
112+
.cache/
113+
114+
# Comment in the public line in if your project uses Gatsby and not Next.js
115+
116+
# https://nextjs.org/blog/next-9-1#public-directory-support
117+
118+
# public
119+
120+
# vuepress build output
121+
122+
.vuepress/dist
123+
124+
# vuepress v2.x temp and cache directory
125+
126+
.temp
127+
.cache
128+
129+
# Docusaurus cache and generated files
130+
131+
.docusaurus
132+
133+
# Serverless directories
134+
135+
.serverless/
136+
137+
# FuseBox cache
138+
139+
.fusebox/
140+
141+
# DynamoDB Local files
142+
143+
.dynamodb/
144+
145+
# TernJS port file
146+
147+
.tern-port
148+
149+
# Stores VSCode versions used for testing VSCode extensions
150+
151+
.vscode-test
152+
153+
# yarn v2
154+
155+
.yarn/cache
156+
.yarn/unplugged
157+
.yarn/build-state.yml
158+
.yarn/install-state.gz
159+
.pnp.\*
160+
161+
# wrangler project
162+
163+
.dev.vars*
164+
!.dev.vars.example
165+
.env*
166+
!.env.example
167+
.wrangler/

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
worker-configuration.d.ts

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"printWidth": 140,
3+
"singleQuote": true,
4+
"semi": true,
5+
"useTabs": false,
6+
"tabWidth": 2
7+
}

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"files.associations": {
3+
"wrangler.json": "jsonc"
4+
}
5+
}

body.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"event": "open",
3+
"timestamp": "2026-04-27T12:59:01Z",
4+
"email": {
5+
"id": "69ee0f26b1eb5d97e14cecd6",
6+
7+
"message_id": "0106019dc9eb3130-a7b20e13-76e9-4641-a608-68d41acb28a5-000000",
8+
9+
"from": "ccepr <ccepr@zsend.ccepr.dev>",
10+
11+
"to": ["大帥哥 <ccepr@ccepr.dev>"],
12+
13+
"subject": "Hello World",
14+
15+
"sent_at": "2026-04-26T13:12:06Z"
16+
}
17+
}

0 commit comments

Comments
 (0)