Commit a166b409 by gonglei

加入前端代码

1 parent 14889a96
export class FileInfo {
/**
* 唯一标识符,不设置时会自动生成
*/
uid: string;
/**
* 文件名
*/
name: string;
/**
* 上传状态,不同状态展示颜色也会有所不同
*/
status : "error" | "success" | "done" | "uploading" | "removed"="done";
/**
* 上传进度
*/
percent:number;
response: string;
/**
* 下载地址
*/
url: string;
/**
* 缩略图地址
*/
thumbUrl: string;
filePath: string;
thumbPath: string;
size: number
lastModified: string;
lastModifiedDate: Date | string;
linkProps: any;
}
/**
* 树节点
*/
export class SimpleTreeItem {
label: string;
value: string;
children: SimpleTreeItem[];
disabled: boolean;
disableCheckbox: boolean;
selectable = true;
}
/**
* 树节点
*/
export class TreeItem {
/**
* 标题
*/
title: string;
/**
* 整个树范围内的所有节点的 key 值不能重复且不为空!
*/
key: string;
/**
* 节点前的图标,与 nzShowIcon 组合使用
*/
icon: string;
/**
* 设置为叶子节点(叶子节点不可被拖拽模式放置)
*/
isLeaf: boolean;
/**
* 设置节点 Checkbox 是否选中
*/
checked: boolean;
/**
* 设置节点本身是否选中
*/
selected: boolean;
/**
* 设置节点是否展开(叶子节点无效)
*/
expanded: boolean;
/**
* 设置是否禁用节点(不可进行任何操作)
*/
disabled: boolean;
/**
* 编辑中
*/
editable: boolean;
/**
* 子节点
*/
children: TreeItem[];
/**
* 类型,扩展字段
*/
type: string;
/**
* 上级key,扩展字段
*/
parentKey: string;
/**
* 能否不可选中, 扩展字段
*/
unselectable: boolean;
/**
* 层级编码, 扩展字段
*/
layerCode: string;
/**
* 是否启用, 扩展字段
*/
enabled: boolean;
/**
* 是否可选择
*/
selectable: boolean;
data: any;
}
import {Component, Emit, Vue} from "vue-facing-decorator";
@Component({})
export default class ModalComponent extends Vue {
/**
* 如果表单使用弹出窗口,使用此字段控制弹窗显示
*/
showModal = true;
/**
* 如果表单使用弹出窗口,使用此函数向父组件传递关闭事件
*/
@Emit('after-modal-close')
afterModalClose(): boolean {
return this.showModal;
}
}
/**
* 全局配置类
*/
export class AutumnConfig {
/**
* 输入框提示前缀
*/
static FORM_PLACEHOLDER_PREFIX = '请输入';
/**
* 选择器提示前缀
*/
static FORM_SELECT_PLACEHOLDER_PREFIX = '请选择';
/**
* 输入框提示前缀
*/
static PAGE_PLACEHOLDER_PREFIX = '请输入';
/**
* 分页条数
*/
static PAGE_LIMIT = 20;
/**
* FileBean请求前缀
*/
static FILE_BASE_UPLOAD_URL_PREFIX = 'archive/';
/**
* 富文本编辑器的 上传地址前缀
*/
static EDITOR_UPLOAD_URL_PREFIX = '';
/**
* 请求500的提示语
*/
static ERROR_500_HINT = '服务器错误(500)';
/**
* 请求404的提示语
*/
static ERROR_404_HINT = '请求出错(404)';
}
export class Diction {
value: string;
label: string;
}
/**
* 字典表(Dictionary)实体类
*
* @author gonglei
* @since 2022-04-18 16:06:57
*/
import {AuditingEntity} from '../orm/AuditingEntity';
export class Dictionary extends AuditingEntity {
/**
* DICTIONARY_ID
*/
dictionaryId: number;
/**
* 字典名称
*/
dictionaryName: string;
/**
* 选项编码
*/
optionCode: string;
/**
* 选项名称
*/
optionName: string;
/**
* 启用
*/
enabled: boolean;
/**
* 备注
*/
remark: string;
/**
* 租户id
*/
tenantId:string;
}
import {AxiosInstance} from 'axios';
import {AuthenticationManager} from "../security/AuthenticationManager";
import {AutumnConfig} from '../config/AutumnConfig';
export abstract class DefaultTokenInterceptor {
public static readonly AUTHORIZATION = 'Authorization';
constructor(public axios: AxiosInstance, public authService: AuthenticationManager) {
// 初始化拦截器
this.initInterceptors();
}
/**
* 初始化拦截器
*/
private initInterceptors(): void {
/**
* 请求拦截器
* 每次请求前,如果存在token则在请求头中携带token
*/
this.axios.interceptors.request.use(
(config: any) => {
// 登录流程控制中,根据本地是否存在token判断用户的登录情况
// 但是即使token存在,也有可能token是过期的,所以在每次的请求头中携带token
// 后台根据携带的token判断用户的登录情况,并返回给我们对应的状态码
const authToken = this.authService.getToken();
if (authToken) {
config.headers.Authorization = 'Bearer ' + authToken;
}
return config;
},
(error: any) => {
this.handleError(error);
return Promise.reject(error);
},
);
// 响应拦截器
this.axios.interceptors.response.use(
// 请求成功
(res: any) => {
if (res.status === 200) {
if (res.headers) {
const resToken = res.headers[DefaultTokenInterceptor.AUTHORIZATION];
if (resToken) {
this.authService.updateToken(resToken);
}
}
return Promise.resolve(res);
} else {
this.handleError(res);
return Promise.reject(res);
}
},
// 请求失败
(error: any) => {
if (error) {
// 请求已发出,但是不在2xx的范围
this.handleError(error);
return Promise.reject(error.response);
} else {
// 处理断网的情况
// eg:请求超时或断网时,更新state的network状态
// network状态在app.vue中控制着一个全局的断网提示组件的显示隐藏
// 关于断网组件中的刷新重新获取数据,会在断网组件中说明
// this.showMessage('网络连接异常,请稍后再试!');
}
});
}
/**
* http握手错误
* @param error 响应回调,根据不同响应进行不同操作
*/
private handleError(error: any) {
console.log(error);
// 状态码判断
const status = error.response.status;
const errorResponse = error.response.data;
const statusText = error.response.statusText;
let msg;
let type = 'error';
switch (status) {
case 400:
msg = '请求错误(400)';
if (errorResponse) {
if (typeof errorResponse === 'string') {
msg = errorResponse;
} else if (typeof errorResponse === 'object') {
msg = errorResponse.message;
} else {
msg = statusText;
}
}
break;
case 401:
type = 'warning';
msg = '未授权,请重新登录(401)'
break
case 403:
msg = '拒绝访问(403)'
break
case 404:
msg = AutumnConfig.ERROR_404_HINT
break
case 408:
msg = '请求超时(408)'
break
case 500:
msg = AutumnConfig.ERROR_500_HINT
break
case 501:
msg = '服务未实现(501)'
break
case 502:
msg = '网络错误(502)'
break
case 503:
msg = '服务不可用(503)'
break
case 504:
msg = '网络超时(504)'
break
case 505:
msg = 'HTTP版本不受支持(505)'
break
case 0:
msg = '无法连接到服务器,请检测您的网络'
break
default:
msg = `连接出错(${status})!`
}
this.showMessage(type, msg, status);
}
/**
* 处理请求失败事件
* @ param type
* @ param msg
*/
/**
* 处理请求失败事件
* @ param type
* @ param msg
*/
abstract showMessage(type: string, msg: string, status: string): void ;
}
import {AxiosInstance, AxiosRequestConfig} from 'axios';
import qs from 'qs';
/**
* @title http请求封装
* @desc
*/
export class HttpService {
constructor(public axios: AxiosInstance) {
}
/**
* get请求, json形式返回
* @param url 接口地址
* @param paramMap 参数
*/
public get(url: string, paramMap?: Record<string, unknown>): Promise<unknown> {
const request: AxiosRequestConfig = {
params: paramMap,
};
return this.axios.get(url, request);
}
/**
* post请求
* @param url 接口地址
* @param body 参数
*/
public post(url: string, body: string | Record<string, unknown>): Promise<unknown> {
const requestConfig = {
withCredentials: true,
headers: {
'Content-Type': 'application/json; charset=UTF-8',
},
};
return this.axios.post(url, body, requestConfig);
}
/**
* 以表单方式提交
* @ param {string} url
* @ param body
* @ returns {Promise<any>}
*/
public postForm(url: string, body: string | Record<string, unknown>): Promise<unknown> {
const options = {
headers: {
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
},
};
return this.axios.post(url, qs.stringify(body), options);
}
/**
* 以参数和json一起提交数据
* @param url
* @param body
* @param paramMap
*/
public postParams(url: string, body: string | Record<string, unknown> | null, paramMap: string | Record<string, unknown>): Promise<any> {
const options = {
params: paramMap,
headers: {
'Content-Type': 'application/json; charset=UTF-8',
},
};
return this.axios.post(url, body, options);
}
/**
* put方式提交
* @param url
* @param body
*/
public put(url: string, body: Record<string, unknown> | string): Promise<any> {
const options = {};
return this.axios.put(url, body, options);
}
/**
* delete方式提交
* @param url
* @param paramMap
*/
public delete(url: string, paramMap?: Record<string, unknown> | string): Promise<any> {
const options = {
params: paramMap,
};
return this.axios.delete(url, options);
}
/**
* patch方式提交
* @param url
* @param body
*/
public patch(url: string, body: Record<string, unknown> | string): Promise<any> {
const options = {};
return this.axios.patch(url, body, options);
}
/**
* post请求下载文件
* @param url
* @param body
* @param fileName
* @param contentType
*/
public postDownload(url: string, body = null, fileName: string, contentType = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') {
this.axios.post(url, body, {
responseType: 'blob',
headers: {
'Content-Type': 'application/json; charset=UTF-8',
},
}).then(data => {
HttpService.downloadFile(data, fileName, contentType);
});
}
/**
* get方式请求下载文件
* @param url
* @param paramMap
* @param fileName
* @param contentType
*/
public getDownload(url: string, paramMap = null, fileName: string, contentType = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') {
this.axios.get(url, {
responseType: 'blob',
headers: {
'Content-Type': 'application/json; charset=UTF-8',
},
params: paramMap,
}).then(data => {
HttpService.downloadFile(data, fileName, contentType);
});
}
/**
* 将文件下载下来
* @param data
* @param fileName
* @param contentType
*/
private static downloadFile(data: any, fileName: string, contentType: string) {
const blob = new Blob([data], {type: contentType});
const url = window.URL.createObjectURL(blob);
// 以动态创建a标签进行下载
const a = document.createElement('a');
a.href = url;
a.download = fileName;
a.click();
window.URL.revokeObjectURL(url);
}
/**
* 以formData方式提交
* @ param {string} url
* @ param body
* @ returns {Promise<any>}
*/
public postFormData(url: string, formData: any): Promise<any> {
const options = {
headers: {
'Content-Type': 'multipart/form-data; charset=UTF-8',
},
};
return this.axios.post(url, formData, options);
}
}
/**
* 审计时间类
*/
export class AuditingTimeEntity {
/**
* 创建时间
*/
createTime?: Date | string;
/**
* 修改时间
*/
updateTime?: Date | string;
}
/**
* 审计时间操作者类
*/
export abstract class AuditingEntity extends AuditingTimeEntity{
/**
* 创建人
*/
createBy?: string;
/**
* 修改人
*/
updateBy?: string;
}
import {Component, Vue} from "vue-facing-decorator";
@Component({})
export default class CurdHelper extends Vue{
/**
* 新建弹窗
*/
createVisible = false;
/**
* 修改弹窗
*/
editVisible = false;
/**
* 详情弹窗
*/
viewVisible = false;
showCreate(): void {
this.createVisible = true;
}
}
import {
CheckboxFieldOptions,
DateFieldOptions,
FormFieldOptions,
NumberFieldOptions,
NumberRangeFieldOptions,
RadioFieldOptions,
RangeFieldOptions,
RateFieldOptions,
SelectFieldOptions,
SwitchFieldOptions, SlotFieldOptions,
TextareaFieldOptions,
TextFieldOptions,
TimeFieldOptions,
TreeSelectFieldOptions, TimeRangeFieldOptions, RadioGroupFieldOptions, CheckboxGroupFieldOptions
} from '../form/FormField';
import {Operator} from './Pagination';
export declare type FilterOptionsType =
TextFilterOptions
| SelectFilterOptions
| NumberFilterOptions
| NumberRangeFilterOptions
| DateFilterOptions
| RangeFilterOptions
| TimeFilterOptions
| TimeRangeFilterOptions
| RateFilterOptions
| RadioFilterOptions
| RadioGroupFilterOptions
| TextareaFilterOptions
| CheckboxFilterOptions
| CheckboxGroupFilterOptions
| SwitchFilterOptions
| SlotFilterOptions
| TreeSelectFilterOptions;
export declare interface FilterFieldOptions {
/**
* 服务器过滤字段名,支持.
*/
field?: string;
/**
* 是否可见
*/
hidden?: boolean;
/**
* 过滤条件(仅查询表单时使用)
*/
operator?: Operator;
/**
* 条件逻辑
*/
logic?: 'or' | 'and';
/**
* 是否覆盖
*/
override?: boolean;
}
export declare interface TextFilterOptions extends FilterFieldOptions, TextFieldOptions {
}
export declare interface NumberFilterOptions extends FilterFieldOptions, NumberFieldOptions {
}
export declare interface NumberRangeFilterOptions extends FilterFieldOptions, NumberRangeFieldOptions {
}
export declare interface DateFilterOptions extends FilterFieldOptions, DateFieldOptions {
}
export declare interface RangeFilterOptions extends FilterFieldOptions, RangeFieldOptions {
}
export declare interface TimeFilterOptions extends FilterFieldOptions, TimeFieldOptions {
}
export declare interface TimeRangeFilterOptions extends FilterFieldOptions, TimeRangeFieldOptions {
}
export declare interface RateFilterOptions extends FilterFieldOptions, RateFieldOptions {
}
export declare interface SelectFilterOptions extends FilterFieldOptions, SelectFieldOptions {
}
export declare interface RadioFilterOptions extends FilterFieldOptions, RadioFieldOptions {
}
export declare interface RadioGroupFilterOptions extends FilterFieldOptions, RadioGroupFieldOptions {
}
export declare interface TextareaFilterOptions extends FilterFieldOptions, TextareaFieldOptions {
}
export declare interface CheckboxFilterOptions extends FilterFieldOptions, CheckboxFieldOptions {
}
export declare interface CheckboxGroupFilterOptions extends FilterFieldOptions, CheckboxGroupFieldOptions {
}
export declare interface SwitchFilterOptions extends FilterFieldOptions, SwitchFieldOptions {
}
export declare interface TreeSelectFilterOptions extends FilterFieldOptions, TreeSelectFieldOptions {
}
export declare interface SlotFilterOptions extends FilterFieldOptions, SlotFieldOptions {
}
export class Page<T>{
number:number;
size:number;
numberOfElements:number;
totalPages:number;
totalElements:number;
content:T[];
}
\ No newline at end of file \ No newline at end of file
import {Component, Prop, Vue} from "vue-facing-decorator";
@Component({})
export class PopConfirm extends Vue {
// 请求url
@Prop({required: true}) url: string;
// 弹出位置(不用传)
@Prop({required: false, default: 'topRight'}) placement;
// 显示文本(不用传)
@Prop({required: false, default: ''}) title;
titleText: string;
// 确定按钮文本(不用传)
@Prop({required: false}) okText;
// 取消文本(不用传)
@Prop({required: false}) cancelText;
// true显示的值,false显示的值
@Prop({required: false, default: '已启用'}) checkedChildren;
@Prop({required: false, default: '已停用'}) unCheckedChildren;
}
import {DefaultTokenInterceptor} from '../http/DefaultTokenInterceptor';
import {Privilege} from './Privilege';
import Authenticity from "./Authenticity";
export abstract class AuthenticationManager {
/**
* TOKEN存储KEY
*/
public static readonly TOKEN = 'token';
/**
*
* @param token 登录认证token
* @param authenticity 登录认证用户
*/
constructor(protected token: string | null, protected authenticity: Authenticity | null) {
this.loadStorageToken();
this.loadStorageAuthentication();
}
/**
* 更新TOKEN
*/
updateToken(token: string) {
this.token = token;
localStorage.setItem(AuthenticationManager.TOKEN, token);
}
/**
* 获取TOKEN
*/
getToken() {
return this.token;
}
/**
* 删除TOKEN
*/
removeToken() {
this.token = null;
localStorage.removeItem(AuthenticationManager.TOKEN);
}
/**
* 删除登录信息
*/
removeAuthentication() {
this.authenticity = null;
this.deleteAuthentication();
}
/**
* 退出
*/
logout() {
this.removeToken();
this.removeAuthentication();
}
getAuthentication(): Authenticity | null {
return this.authenticity;
}
setAuthentication(authentication: Authenticity) {
this.authenticity = authentication;
}
/**
* 更新登录认证
* @ param authentication
*/
updateAuthentication(authentication: Authenticity) {
this.updateToken(authentication.token);
this.authenticity = authentication;
this.saveAuthentication(authentication);
}
/**
* 判断是否登录
*/
isLogin(): boolean {
return this.getAuthentication() != null;
}
/**
* 判断是否有权限
* @ param privilegeCode
*/
hasPrivilege(privilegeCode: string): boolean {
if (this.isLogin()) {
return this.recursivePrivilegeCode(this.authenticity.privileges, privilegeCode);
} else {
return false;
}
}
recursivePrivilegeCode(privileges: Privilege[], privilegeCode: string): boolean {
for (const privilege of privileges) {
if (privilege.code === privilegeCode) {
return true;
} else if (privilege.children != null && privilege.children.length > 0) {
const hp = this.recursivePrivilegeCode(privilege.children, privilegeCode);
if (hp) {
return true;
}
}
}
return false;
}
recursivePrivilegeValue(privileges: Privilege[], path: string): boolean {
for (const privilege of privileges) {
if (privilege.value === path) {
return true;
} else if (privilege.children != null && privilege.children.length > 0) {
const hp = this.recursivePrivilegeValue(privilege.children, path);
if (hp) {
return true;
}
}
}
return false;
}
/**
* 获取TOKEN
*/
getStorageToken(): string {
return localStorage.getItem(AuthenticationManager.TOKEN);
}
deleteAuthentication(): void {
localStorage.removeItem(DefaultTokenInterceptor.AUTHORIZATION);
}
getStorageAuthentication(): string {
return localStorage.getItem(DefaultTokenInterceptor.AUTHORIZATION);
}
saveAuthentication(authentication: Authenticity): void {
localStorage.setItem(DefaultTokenInterceptor.AUTHORIZATION, JSON.stringify(authentication));
}
loadStorageAuthentication(): Promise<any> {
this.authenticity = JSON.parse(localStorage.getItem(DefaultTokenInterceptor.AUTHORIZATION));
return Promise.resolve(this.authenticity);
}
loadStorageToken(): Promise<any> {
this.token = localStorage.getItem(AuthenticationManager.TOKEN);
return Promise.resolve(this.token);
}
hasRole(roleCode: any): boolean {
if (this.authenticity && this.authenticity.authorities) {
return this.authenticity.authorities.includes(roleCode);
} else {
return false;
}
}
}
/**
* 认证账号父类
*/
import {Privilege} from './Privilege';
export default interface Authenticity {
/**
* 帐号ID
*/
id: number;
/**
* 帐号名称
*/
name: string;
/**
* 别名
*/
fullName?: string;
/**
* 头像地址
*/
avatar?: string;
/**
* token
*/
token: string;
/**
* 角色
*/
authorities: string[];
/**
* 权限
*/
privileges: Privilege[];
/**
* 扩展数据项
*/
data: Map<string, any>;
}
export class Privilege {
/**
* 权限编码
*/
code: string;
/**
* 权限名称
*/
name: string;
/**
* 权限类型
*/
type = 'MENU';
/**
* 权限值
*/
value: string;
/**
* 图标
*/
icon: string;
/**
* 权限节点样式
*/
css: string;
/**
* 子权限节点样式
*/
cssChild: string;
/**
* 启用
*/
enabled = true;
/**
* 子权限
*/
children: Privilege[];
/**
* 查找权限节点
* @param code
* @param privileges
*/
static findPrivilegeByCode(code: string, privileges: Privilege[]): Privilege | null {
for (const privilege of privileges) {
if (privilege.code === code) {
return privilege;
} else if (privilege.children) {
const prilege = Privilege.findPrivilegeByCode(code, privilege.children);
if (prilege) {
return prilege;
}
}
}
return null;
}
}
// @ts-ignore
import store from '@/store';
import {Privilege} from './Privilege';
const SecurityDirective = {
// 在绑定元素的父组件挂载之前调用
beforeMount(el: any, binding: any, vnode: any, prevVnode: any) {
},
// 在绑定元素的 attribute 或事件监听器被应用之前调用
created() {
//
},
// 在绑定元素的父组件挂载之后调用
mounted(el: any, binding: any) {
const privileges = store.getters['security/getPrivileges'];
const privilege = Privilege.findPrivilegeByCode(binding.value, privileges);
if (!privilege) {
el.remove();
}
},
// 在包含组件的 VNode 更新之前调用
beforeUpdate() {
//
},
// 在包含组件的 VNode 及其子组件的 VNode 更新之后调用
updated() {
//
},
// 在绑定元素的父组件卸载之前调用
beforeUnmount() {
//
},
// 在绑定元素的父组件卸载之后调用
unmounted() {
//
}
}
export default SecurityDirective;
import {Privilege} from './Privilege';
import Authenticity from "./Authenticity";
const securityModule = {
namespaced: true,
state: (): Authenticity => ({
/**
* 帐号ID
*/
id: 0,
/**
* 帐号名称
*/
name: '未知',
/**
* 别名
*/
fullName: '未知',
/**
* 头像地址
*/
avatar: '',
/**
* token
*/
token: '',
/**
* 角色
*/
authorities: [],
/**
* 权限
*/
privileges: [],
/**
* 扩展数据
*/
data: new Map<string, any>()
}),
getters: {
/**
* 获得权限对象
* @param state
*/
getAuthenticity: (state: Authenticity): Authenticity => {
return state;
},
/**
* 获得用户所有权限树
* @param state
*/
getPrivileges: (state: Authenticity): Privilege[] => {
return state.privileges;
},
/**
* 根据编码查询此权限的子权限
* @param state
*/
getPrivilegeByCode: (state: Authenticity) => {
return (code: string): Privilege | null => {
return Privilege.findPrivilegeByCode(code, state.privileges);
};
},
},
mutations: {
/**
* 同步设置权限树
* @param state
* @param privileges
*/
changePrivileges: (state: Authenticity, privileges: Privilege[]) => {
state.privileges = privileges;
},
/**
* 修改用户信息
* @param state
* @param auth
*/
changeAuthenticity: (state: Authenticity, auth: Authenticity) => {
state.id = auth.id;
state.name = auth.name;
state.fullName = auth.fullName;
state.avatar = auth.avatar;
}
},
actions: {},
modules: {}
};
export default securityModule;
\ No newline at end of file \ No newline at end of file
import dayjs, {Dayjs} from 'dayjs';
export const DATE_FORMAT = 'YYYY-MM-DD';
export const TIME_FORMAT = 'HH:mm:ss';
export const DATE_TIME_FORMAT = 'YYYY-MM-DD HH:mm:ss';
export const DATE_TIME_NO_SECOND_FORMAT = 'YYYY-MM-DD HH:mm';
export function formatDate(date: string | Dayjs, format = DATE_FORMAT): string {
if (!date) {
return '';
}
if (typeof date === 'string') {
return date;
} else if (typeof date === 'object') {
return (date as Dayjs).format(format);
} else {
return date;
}
}
export function parseDate(date: string): Dayjs {
return dayjs(date, DATE_FORMAT);
}
export function parseDateTime(date: string, format = DATE_TIME_FORMAT): Dayjs {
return dayjs(date, format);
}
export function parseDateTimeNoSecond(date: string, format = DATE_TIME_NO_SECOND_FORMAT): Dayjs {
return dayjs(date, format);
}
export default class StringUtils {
/**
* 判断字符串是否为空或undefined,不判断为0,不判断为false
* @param str
* @returns {boolean}
*/
public static isEmpty = (str: any): boolean => {
if (
str === null ||
str === '' ||
str === undefined ||
str.length === 0
) {
return true
} else {
return false
}
};
public static isNotEmpty = (str: any): boolean => {
if (
str === null ||
str === '' ||
str === undefined ||
str.length === 0
) {
return false
} else {
return true
}
};
public static isInteger = (value: string): boolean => {
return /^-?\d+$/.test(value);
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!