feat(ui): new Settings layout using antd

This commit is contained in:
Fu Diwei
2024-12-18 21:22:25 +08:00
parent afa446aabe
commit abe6dbb5a2
12 changed files with 205 additions and 195 deletions

View File

@@ -164,7 +164,16 @@ export type WebhookAccessConfig = {
url: string;
};
type AccessUsages = "apply" | "deploy" | "all";
export const ACCESS_PROVIDER_USAGE_ALL = "all" as const;
export const ACCESS_PROVIDER_USAGE_APPLY = "apply" as const;
export const ACCESS_PROVIDER_USAGE_DEPLOY = "deploy" as const;
export const ACCESS_PROVIDER_USAGES = Object.freeze({
ALL: ACCESS_PROVIDER_USAGE_ALL,
APPLY: ACCESS_PROVIDER_USAGE_APPLY,
DEPLOY: ACCESS_PROVIDER_USAGE_DEPLOY,
} as const);
type AccessUsages = (typeof ACCESS_PROVIDER_USAGES)[keyof typeof ACCESS_PROVIDER_USAGES];
type AccessProvider = {
type: string;

View File

@@ -36,31 +36,31 @@ type ChannelLabel = {
export const channels: ChannelLabel[] = [
{
name: "dingtalk",
label: "common.provider.dingtalk",
label: "common.notifier.dingtalk",
},
{
name: "lark",
label: "common.provider.lark",
label: "common.notifier.lark",
},
{
name: "telegram",
label: "common.provider.telegram",
label: "common.notifier.telegram",
},
{
name: "webhook",
label: "common.provider.webhook",
label: "common.notifier.webhook",
},
{
name: "serverchan",
label: "common.provider.serverchan",
label: "common.notifier.serverchan",
},
{
name: "email",
label: "common.provider.email",
label: "common.notifier.email",
},
{
name: "bark",
label: "common.provider.bark",
label: "common.notifier.bark",
},
];