160 lines
4.7 KiB
JavaScript
160 lines
4.7 KiB
JavaScript
export const resourceStatusFilters = [
|
|
["", "全部状态"],
|
|
["active", "启用"],
|
|
["disabled", "禁用"],
|
|
];
|
|
|
|
export const resourceStatusLabels = {
|
|
active: "启用",
|
|
disabled: "禁用",
|
|
};
|
|
|
|
export const defaultGiftTypeOptions = [
|
|
{ displayName: "普通礼物", sortOrder: 10, status: "active", tabKey: "normal", tabName: "Gift" },
|
|
{ displayName: "CP礼物", sortOrder: 20, status: "active", tabKey: "cp", tabName: "CP" },
|
|
{ displayName: "幸运礼物", sortOrder: 30, status: "active", tabKey: "lucky", tabName: "Lucky" },
|
|
{ displayName: "超级幸运礼物", sortOrder: 40, status: "active", tabKey: "super_lucky", tabName: "Super Lucky" },
|
|
{ displayName: "专属礼物", sortOrder: 50, status: "active", tabKey: "exclusive", tabName: "Exclusive" },
|
|
{ displayName: "贵族礼物", sortOrder: 60, status: "active", tabKey: "noble", tabName: "Noble" },
|
|
{ displayName: "国旗礼物", sortOrder: 70, status: "active", tabKey: "flag", tabName: "Flag" },
|
|
{ displayName: "活动礼物", sortOrder: 80, status: "active", tabKey: "activity", tabName: "Activity" },
|
|
{ displayName: "魔法礼物", sortOrder: 90, status: "active", tabKey: "magic", tabName: "Magic" },
|
|
{ displayName: "定制礼物", sortOrder: 100, status: "active", tabKey: "custom", tabName: "Custom" },
|
|
];
|
|
|
|
export const cpRelationTypeOptions = [
|
|
["cp", "CP礼物"],
|
|
["brother", "兄弟礼物"],
|
|
["sister", "姐妹礼物"],
|
|
];
|
|
|
|
export const cpRelationTypeLabels = Object.fromEntries(cpRelationTypeOptions);
|
|
|
|
export const resourceGrantStatusFilters = [
|
|
["", "全部状态"],
|
|
["succeeded", "成功"],
|
|
["revoked", "已撤销"],
|
|
];
|
|
|
|
export const resourceGrantStatusLabels = {
|
|
succeeded: "成功",
|
|
revoked: "已撤销",
|
|
};
|
|
|
|
export const resourceGrantSubjectLabels = {
|
|
resource: "资源",
|
|
resource_group: "资源组",
|
|
vip: "VIP",
|
|
vip_level: "VIP等级",
|
|
};
|
|
|
|
export const emojiPackPricingLabels = {
|
|
free: "免费",
|
|
paid: "付费",
|
|
};
|
|
|
|
export const resourcePriceTypeOptions = [
|
|
["coin", "金币"],
|
|
["free", "免费"],
|
|
];
|
|
|
|
export const resourcePriceTypeLabels = Object.fromEntries(resourcePriceTypeOptions);
|
|
|
|
export const badgeFormOptions = [
|
|
["strip", "长徽章"],
|
|
["tile", "短徽章"],
|
|
];
|
|
|
|
export const badgeFormLabels = Object.fromEntries(badgeFormOptions);
|
|
|
|
export const badgeKindOptions = [
|
|
["normal", "普通徽章"],
|
|
["level", "等级徽章"],
|
|
];
|
|
|
|
export const badgeKindLabels = Object.fromEntries(badgeKindOptions);
|
|
|
|
export const avatarFrameKindOptions = [
|
|
["normal", "普通头像框"],
|
|
["level", "等级头像框"],
|
|
];
|
|
|
|
export const avatarFrameKindLabels = Object.fromEntries(avatarFrameKindOptions);
|
|
|
|
export const badgeLevelTrackOptions = [
|
|
["wealth", "财富等级"],
|
|
["game", "游戏等级"],
|
|
["charm", "魅力等级"],
|
|
];
|
|
|
|
export const badgeLevelTrackLabels = Object.fromEntries(badgeLevelTrackOptions);
|
|
|
|
export const resourceBatchUploadRoleLabels = {
|
|
animation: "动效素材",
|
|
cover: "封面图",
|
|
};
|
|
|
|
export const resourceTypeFilters = [
|
|
["", "全部类型"],
|
|
["avatar_frame", "头像框"],
|
|
["profile_card", "背景卡"],
|
|
["coin", "金币"],
|
|
["vehicle", "座驾"],
|
|
["chat_bubble", "气泡"],
|
|
["badge", "徽章"],
|
|
["floating_screen", "飘窗"],
|
|
["gift", "礼物"],
|
|
["mic_seat_icon", "麦位图标"],
|
|
["mic_seat_animation", "麦位动效"],
|
|
["emoji_pack", "表情包"],
|
|
];
|
|
|
|
export const resourceTypeLabels = Object.fromEntries(resourceTypeFilters.filter(([value]) => value));
|
|
|
|
export const resourceShopDurationOptions = [
|
|
["1", "1天"],
|
|
["3", "3天"],
|
|
["7", "7天"],
|
|
];
|
|
|
|
export const resourceShopSellableTypes = [
|
|
"avatar_frame",
|
|
"profile_card",
|
|
"vehicle",
|
|
"chat_bubble",
|
|
"badge",
|
|
"mic_seat_icon",
|
|
"mic_seat_animation",
|
|
];
|
|
|
|
export const resourceShopTypeFilters = [
|
|
["", "全部类型"],
|
|
...resourceTypeFilters.filter(([value]) => resourceShopSellableTypes.includes(value)),
|
|
];
|
|
|
|
export const resourceGroupAssetOptions = [
|
|
["COIN", "金币"],
|
|
];
|
|
|
|
export const resourceGroupAssetLabels = Object.fromEntries(resourceGroupAssetOptions);
|
|
|
|
export const resourceIdentityAutoGrantOptions = [
|
|
["host", "主播"],
|
|
["bd", "BD"],
|
|
["bd_leader", "BD Leader"],
|
|
["agency", "Agency"],
|
|
["manager", "Manager"],
|
|
];
|
|
|
|
export const resourceIdentityAutoGrantTypes = resourceIdentityAutoGrantOptions.map(([value]) => value);
|
|
|
|
export const resourceIdentityAutoGrantLabels = Object.fromEntries(resourceIdentityAutoGrantOptions);
|
|
|
|
export const grantStrategyLabels = {
|
|
extend_expiry: "延长有效期",
|
|
increase_quantity: "增加数量",
|
|
new_entitlement: "新增权益",
|
|
set_active_flag: "激活标记",
|
|
wallet_credit: "钱包入账",
|
|
};
|