refactor: rename dev to canary

This commit is contained in:
三咲智子 2023-01-07 00:20:12 +08:00
parent cffcddefb9
commit c713add727
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
4 changed files with 31 additions and 9 deletions

View file

@ -41,7 +41,7 @@ export const getEnv = async () => {
: isPreview : isPreview
? 'preview' ? 'preview'
: branch === 'main' : branch === 'main'
? 'main' ? 'canary'
: 'release' : 'release'
return { commit, branch, env } as const return { commit, branch, env } as const
} }

View file

@ -189,16 +189,16 @@
"update": "Update", "update": "Update",
"update_available_short": "Update Elk", "update_available_short": "Update Elk",
"webmanifest": { "webmanifest": {
"canary": {
"description": "A nimble Mastodon web client (canary)",
"name": "Elk (canary)",
"short_name": "Elk (canary)"
},
"dev": { "dev": {
"description": "A nimble Mastodon web client (dev)", "description": "A nimble Mastodon web client (dev)",
"name": "Elk (dev)", "name": "Elk (dev)",
"short_name": "Elk (dev)" "short_name": "Elk (dev)"
}, },
"main": {
"description": "A nimble Mastodon web client (main)",
"name": "Elk (main)",
"short_name": "Elk (main)"
},
"preview": { "preview": {
"description": "A nimble Mastodon web client (preview)", "description": "A nimble Mastodon web client (preview)",
"name": "Elk (preview)", "name": "Elk (preview)",

View file

@ -103,7 +103,7 @@
"desc_highlight": "可能会在某些地方出现一些 bug 或缺失的功能。", "desc_highlight": "可能会在某些地方出现一些 bug 或缺失的功能。",
"desc_para1": "感谢你有兴趣尝试鹿鸣,一个我们正在积极开发的通用 Mastodon 客户端。", "desc_para1": "感谢你有兴趣尝试鹿鸣,一个我们正在积极开发的通用 Mastodon 客户端。",
"desc_para2": "我们正在努力开发中,并随着时间的推移不断完善。鹿鸣将很快开源,并邀请您参与进来!", "desc_para2": "我们正在努力开发中,并随着时间的推移不断完善。鹿鸣将很快开源,并邀请您参与进来!",
"desc_para3": "为了帮助促进开发,你可以通过以下链接赞助我们的团队成员。希望你喜欢 Elk", "desc_para3": "为了帮助促进开发,你可以通过以下链接赞助我们的团队成员。希望你喜欢鹿鸣",
"desc_para4": "在此之前,如果你愿意帮助测试、提供反馈或作出贡献,", "desc_para4": "在此之前,如果你愿意帮助测试、提供反馈或作出贡献,",
"desc_para5": "在 Mastodon 上联系我们", "desc_para5": "在 Mastodon 上联系我们",
"desc_para6": "来参与其中。", "desc_para6": "来参与其中。",
@ -178,7 +178,29 @@
"dismiss": "忽略", "dismiss": "忽略",
"title": "鹿鸣存在新的更新", "title": "鹿鸣存在新的更新",
"update": "更新", "update": "更新",
"update_available_short": "更新鹿鸣" "update_available_short": "更新鹿鸣",
"webmanifest": {
"canary": {
"description": "用 🧡 制作的 Mastodon 客户端Canary",
"name": "鹿鸣Canary",
"short_name": "鹿鸣Canary"
},
"dev": {
"description": "用 🧡 制作的 Mastodon 客户端(开发版)",
"name": "鹿鸣 开发版",
"short_name": "鹿鸣 开发版"
},
"preview": {
"description": "用 🧡 制作的 Mastodon 客户端(预览版)",
"name": "鹿鸣(预览版)",
"short_name": "鹿鸣(预览版)"
},
"release": {
"description": "用 🧡 制作的 Mastodon 客户端",
"name": "鹿鸣",
"short_name": "鹿鸣"
}
}
}, },
"search": { "search": {
"search_desc": "搜索用户或话题标签" "search_desc": "搜索用户或话题标签"

View file

@ -70,7 +70,7 @@ export interface BuildInfo {
commit: string commit: string
time: number time: number
branch: string branch: string
env: 'preview' | 'main' | 'dev' | 'release' env: 'preview' | 'canary' | 'dev' | 'release'
} }
export type FontSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' export type FontSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl'