File tree Expand file tree Collapse file tree 5 files changed +31
-11
lines changed
Expand file tree Collapse file tree 5 files changed +31
-11
lines changed Original file line number Diff line number Diff line change 1- ## 临时邮箱
1+ ## 📮 临时邮箱
2+
3+ 匿名的一次性邮箱,保护您的个人电子邮件地址免受垃圾邮件的骚扰。
4+
5+ ## 🎉 可以做什么?
6+
7+ - 用于注册不想暴露自己真实邮件地址的网站,以避免垃圾邮件的骚扰。
8+ - 用于在同一个平台注册多个账号,而又不需要去注册多个邮箱。
9+
10+ ## ⚠️ 注意
11+
12+ - ** ❗接收到的邮件内容仅能保留10天**
13+ - ** ❗随机生成的邮箱地址任何人都可以使用,请勿用于注册重要账号**
Original file line number Diff line number Diff line change @@ -7,10 +7,7 @@ export async function GET(req: NextRequest) {
77 if ( ! to ) {
88 return NextResponse . json ( { error : "no email address" } , { status : 400 } ) ;
99 }
10- const mailList = await fetchLast ( {
11- to,
12- since : new Date ( new Date ( ) . getTime ( ) - 86400000 ) ,
13- } ) ;
10+ const mailList = await fetchLast ( { to } ) ;
1411 return NextResponse . json ( mailList ) ;
1512 } catch ( e : any ) {
1613 return NextResponse . json ( { error : e . message } , { status : 500 } ) ;
Original file line number Diff line number Diff line change @@ -4,8 +4,17 @@ import React from "react";
44import { Toaster } from "@/components/ui/toaster" ;
55
66export const metadata : Metadata = {
7- title : "临时邮箱" ,
8- description : "临时邮箱" ,
7+ title : "临时邮箱 - 匿名的一次性邮箱" ,
8+ description :
9+ "临时邮箱 - 匿名的一次性邮箱,保护您的个人电子邮件地址免受垃圾邮件的骚扰。" ,
10+ keywords : [
11+ "免费" ,
12+ "临时邮箱" ,
13+ "匿名邮箱" ,
14+ "安全邮箱" ,
15+ "一次性邮箱" ,
16+ "电子邮件地址" ,
17+ ] ,
918 appleWebApp : {
1019 title : "临时邮箱" ,
1120 } ,
Original file line number Diff line number Diff line change 11import React from "react" ;
2- import { Github } from "lucide-react" ;
2+ import { Github , ShieldCheck } from "lucide-react" ;
33import { VERSION } from "@/lib/constant" ;
44
55function Header ( ) {
66 return (
77 < header className = "h-16 shrink-0 border-b shadow-sm" >
8- < div className = "mx-auto flex h-full w-[90%] max-w-4xl items-center justify-center gap-2 sm:justify-between" >
9- < span className = "font-medium" > 临时邮箱</ span >
8+ < div className = "mx-auto flex h-full w-[90%] max-w-4xl items-center" >
9+ < ShieldCheck strokeWidth = { 1.8 } />
10+ < span className = "ml-1 font-medium" > 临时邮箱</ span >
11+ < span className = "flex-1" />
1012 < a
1113 href = "https://github.com/sunls24/temporary-mail"
1214 target = "_blank"
Original file line number Diff line number Diff line change 11export const domainList = [ "@sliu.eu.org" ] ;
22
3- export const refreshSeconds = 10 ;
3+ export const refreshSeconds = process . env . NODE_ENV === "development" ? 100 : 10 ;
44
55export const VERSION = "1.0.0" ;
You can’t perform that action at this time.
0 commit comments