feat(ui): new Settings layout using antd
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user