You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailchat/client/shared/utils/consts.ts

27 lines
609 B
TypeScript

import type { GlobalConfig } from '../model/config';
/**
* 昵称合法性匹配
* 最大八个汉字内容或者16字英文
* 且中间不能有空格
*/
export const NAME_REGEXP =
/^([0-9a-zA-Z]{1,2}|[\u4e00-\u9eff]|[\u3040-\u309Fー]|[\u30A0-\u30FF]){1,8}$/;
/**
* 系统语言的常量
*/
export const LANGUAGE_KEY = 'i18n:language';
/**
* 系统用户id
*/
export const SYSTEM_USERID = '000000000000000000000000';
export const defaultGlobalConfig: GlobalConfig = {
uploadFileLimit: 1 * 1024 * 1024,
emailVerification: false,
disableUserRegister: false,
disableGuestLogin: false,
};