mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-09-08 00:47:09 +08:00
feat: add SHOW_GITHUB config (#371)
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
- Docs: Update new-address-api.md (#360)
|
- Docs: Update new-address-api.md (#360)
|
||||||
- feat: worker 增加 `ADMIN_USER_ROLE` 配置, 用于配置管理员用户角色,此角色的用户可访问 admin 管理页面 (#363)
|
- feat: worker 增加 `ADMIN_USER_ROLE` 配置, 用于配置管理员用户角色,此角色的用户可访问 admin 管理页面 (#363)
|
||||||
|
- feat: worker 增加 `SHOW_GITHUB` 配置, 用于配置是否显示 github 链接
|
||||||
|
|
||||||
## v0.6.1
|
## v0.6.1
|
||||||
|
|
||||||
|
|||||||
@@ -192,6 +192,7 @@ const menuOptions = computed(() => [
|
|||||||
icon: () => h(NIcon, { component: GithubAlt })
|
icon: () => h(NIcon, { component: GithubAlt })
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
show: openSettings.value?.showGithub,
|
||||||
key: "github"
|
key: "github"
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -109,6 +109,7 @@ ENABLE_AUTO_REPLY = false
|
|||||||
# ENABLE_WEBHOOK = true
|
# ENABLE_WEBHOOK = true
|
||||||
# Footer text
|
# Footer text
|
||||||
# COPYRIGHT = "Dream Hunter"
|
# COPYRIGHT = "Dream Hunter"
|
||||||
|
# SHOW_GITHUB = true # Show GitHub link
|
||||||
# default send balance, if not set, it will be 0
|
# default send balance, if not set, it will be 0
|
||||||
# DEFAULT_SEND_BALANCE = 1
|
# DEFAULT_SEND_BALANCE = 1
|
||||||
# Turnstile verification configuration
|
# Turnstile verification configuration
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ ENABLE_AUTO_REPLY = false
|
|||||||
# ENABLE_WEBHOOK = true
|
# ENABLE_WEBHOOK = true
|
||||||
# 前端界面页脚文本
|
# 前端界面页脚文本
|
||||||
# COPYRIGHT = "Dream Hunter"
|
# COPYRIGHT = "Dream Hunter"
|
||||||
|
# SHOW_GITHUB = true # 是否显示 GitHub 链接
|
||||||
# 默认发送邮件余额,如果不设置,将为 0
|
# 默认发送邮件余额,如果不设置,将为 0
|
||||||
# DEFAULT_SEND_BALANCE = 1
|
# DEFAULT_SEND_BALANCE = 1
|
||||||
# Turnstile 人机验证配置
|
# Turnstile 人机验证配置
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ api.get('/open_api/settings', async (c) => {
|
|||||||
"enableWebhook": getBooleanValue(c.env.ENABLE_WEBHOOK),
|
"enableWebhook": getBooleanValue(c.env.ENABLE_WEBHOOK),
|
||||||
"isS3Enabled": isS3Enabled(c),
|
"isS3Enabled": isS3Enabled(c),
|
||||||
"version": CONSTANTS.VERSION,
|
"version": CONSTANTS.VERSION,
|
||||||
|
"showGithub": getBooleanValue(c.env.SHOW_GITHUB),
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
@@ -35,6 +35,7 @@ export type Bindings = {
|
|||||||
DEFAULT_SEND_BALANCE: number | string | undefined
|
DEFAULT_SEND_BALANCE: number | string | undefined
|
||||||
ADMIN_CONTACT: string | undefined
|
ADMIN_CONTACT: string | undefined
|
||||||
COPYRIGHT: string | undefined
|
COPYRIGHT: string | undefined
|
||||||
|
SHOW_GITHUB: string | boolean | undefined
|
||||||
FORWARD_ADDRESS_LIST: string | string[] | undefined
|
FORWARD_ADDRESS_LIST: string | string[] | undefined
|
||||||
|
|
||||||
// s3 config
|
// s3 config
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ ENABLE_AUTO_REPLY = false
|
|||||||
# ENABLE_WEBHOOK = true
|
# ENABLE_WEBHOOK = true
|
||||||
# Footer text
|
# Footer text
|
||||||
# COPYRIGHT = "Dream Hunter"
|
# COPYRIGHT = "Dream Hunter"
|
||||||
|
# SHOW_GITHUB = true
|
||||||
# default send balance, if not set, it will be 0
|
# default send balance, if not set, it will be 0
|
||||||
# DEFAULT_SEND_BALANCE = 1
|
# DEFAULT_SEND_BALANCE = 1
|
||||||
# Turnstile verification
|
# Turnstile verification
|
||||||
|
|||||||
Reference in New Issue
Block a user