mirror of https://gitee.com/topiam/eiam
Merge remote-tracking branch 'origin/master'
commit
48a998c2c6
|
@ -1,85 +0,0 @@
|
||||||
/*
|
|
||||||
* eiam-common - Employee Identity and Access Management
|
|
||||||
* Copyright © 2022-Present Jinan Yuanchuang Network Technology Co., Ltd. (support@topiam.cn)
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
package cn.topiam.employee.common.schema;
|
|
||||||
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @author TopIAM
|
|
||||||
* Created by support@topiam.cn on 2023/4/12 21:17
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
public class FormSchema {
|
|
||||||
/**
|
|
||||||
* type: 'object'(固定配置)
|
|
||||||
*/
|
|
||||||
private String type = "object";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 表单项 label 布局方式:row | column | inline
|
|
||||||
*/
|
|
||||||
private DisplayType displayType = DisplayType.row;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 表单布局:一行多列
|
|
||||||
*/
|
|
||||||
private Integer column;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 固定表单标签的宽度
|
|
||||||
*/
|
|
||||||
private Integer labelWidth;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* labelCol
|
|
||||||
*/
|
|
||||||
private Integer labelCol = 6;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* fieldCol
|
|
||||||
*/
|
|
||||||
private Integer fieldCol = 14;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 表单元素集合
|
|
||||||
*/
|
|
||||||
private Map<String, Object> properties;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @author TopIAM
|
|
||||||
* Created by support@topiam.cn on 2023/4/12 21:16
|
|
||||||
*/
|
|
||||||
public enum DisplayType {
|
|
||||||
/**
|
|
||||||
* row
|
|
||||||
*/
|
|
||||||
row,
|
|
||||||
/**
|
|
||||||
* column
|
|
||||||
*/
|
|
||||||
column,
|
|
||||||
/**
|
|
||||||
* inline
|
|
||||||
*/
|
|
||||||
inline
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,31 +0,0 @@
|
||||||
/*
|
|
||||||
* eiam-common - Employee Identity and Access Management
|
|
||||||
* Copyright © 2022-Present Jinan Yuanchuang Network Technology Co., Ltd. (support@topiam.cn)
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
package cn.topiam.employee.common.schema.field;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checkbox 单选
|
|
||||||
*
|
|
||||||
* @author TopIAM
|
|
||||||
* Created by support@topiam.cn on 2023/4/12 21:31
|
|
||||||
*/
|
|
||||||
public class Checkbox extends Field {
|
|
||||||
public Checkbox(String title) {
|
|
||||||
super("boolean", "checkbox");
|
|
||||||
this.title = title;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,36 +0,0 @@
|
||||||
/*
|
|
||||||
* eiam-common - Employee Identity and Access Management
|
|
||||||
* Copyright © 2022-Present Jinan Yuanchuang Network Technology Co., Ltd. (support@topiam.cn)
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
package cn.topiam.employee.common.schema.field;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checkbox 多选
|
|
||||||
*
|
|
||||||
* @author TopIAM
|
|
||||||
* Created by support@topiam.cn on 2023/4/12 21:31
|
|
||||||
*/
|
|
||||||
public class Checkboxes extends Field {
|
|
||||||
|
|
||||||
public Checkboxes(String title, List<Option> options) {
|
|
||||||
super("array", "checkboxes");
|
|
||||||
this.title = title;
|
|
||||||
this.props.put("options", options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,33 +0,0 @@
|
||||||
/*
|
|
||||||
* eiam-common - Employee Identity and Access Management
|
|
||||||
* Copyright © 2022-Present Jinan Yuanchuang Network Technology Co., Ltd. (support@topiam.cn)
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
package cn.topiam.employee.common.schema.field;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 日期选择
|
|
||||||
*
|
|
||||||
* @author TopIAM
|
|
||||||
* Created by support@topiam.cn on 2023/4/12 21:28
|
|
||||||
*/
|
|
||||||
public class Date extends Field {
|
|
||||||
|
|
||||||
public Date(String title) {
|
|
||||||
super("string");
|
|
||||||
this.format = "date";
|
|
||||||
this.title = title;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,33 +0,0 @@
|
||||||
/*
|
|
||||||
* eiam-common - Employee Identity and Access Management
|
|
||||||
* Copyright © 2022-Present Jinan Yuanchuang Network Technology Co., Ltd. (support@topiam.cn)
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
package cn.topiam.employee.common.schema.field;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 日期时间范围
|
|
||||||
*
|
|
||||||
* @author TopIAM
|
|
||||||
* Created by support@topiam.cn on 2023/4/12 21:17
|
|
||||||
*/
|
|
||||||
public class DateTime extends Field {
|
|
||||||
|
|
||||||
public DateTime(String title) {
|
|
||||||
super("string");
|
|
||||||
this.format = "dateTime";
|
|
||||||
this.title = title;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,33 +0,0 @@
|
||||||
/*
|
|
||||||
* eiam-common - Employee Identity and Access Management
|
|
||||||
* Copyright © 2022-Present Jinan Yuanchuang Network Technology Co., Ltd. (support@topiam.cn)
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
package cn.topiam.employee.common.schema.field;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 日期时间范围
|
|
||||||
*
|
|
||||||
* @author TopIAM
|
|
||||||
* Created by support@topiam.cn on 2023/4/12 21:17
|
|
||||||
*/
|
|
||||||
public class DateTimeRange extends Field {
|
|
||||||
|
|
||||||
public DateTimeRange(String title) {
|
|
||||||
super("range");
|
|
||||||
this.format = "dateTime";
|
|
||||||
this.title = title;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,205 +0,0 @@
|
||||||
/*
|
|
||||||
* eiam-common - Employee Identity and Access Management
|
|
||||||
* Copyright © 2022-Present Jinan Yuanchuang Network Technology Co., Ltd. (support@topiam.cn)
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
package cn.topiam.employee.common.schema.field;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import org.apache.commons.collections4.map.HashedMap;
|
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
import lombok.experimental.Accessors;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 基础控件配置项基类
|
|
||||||
*
|
|
||||||
* @author TopIAM
|
|
||||||
* Created by support@topiam.cn on 2023/4/12 21:27
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
@Accessors(chain = true)
|
|
||||||
public abstract class Field {
|
|
||||||
/**
|
|
||||||
*标题
|
|
||||||
*/
|
|
||||||
protected String title;
|
|
||||||
/**
|
|
||||||
* 输入内容提示
|
|
||||||
*/
|
|
||||||
protected List<String> placeholder;
|
|
||||||
/**
|
|
||||||
* 副标题描述
|
|
||||||
*/
|
|
||||||
protected String description;
|
|
||||||
/**
|
|
||||||
* 气泡提示,支持 html 格式
|
|
||||||
*/
|
|
||||||
protected Tooltip tooltip;
|
|
||||||
/**
|
|
||||||
* 更多说明信息:extra 可以是 html string,也可以是纯文案,会展示在元素下面一行紧贴。
|
|
||||||
*/
|
|
||||||
protected String extra;
|
|
||||||
/**
|
|
||||||
* 校验规则,以 ant design Form rules 为准
|
|
||||||
*/
|
|
||||||
protected List<Rule> rules;
|
|
||||||
/**
|
|
||||||
*隐藏
|
|
||||||
*/
|
|
||||||
protected Boolean hidden;
|
|
||||||
/**
|
|
||||||
*禁用
|
|
||||||
*/
|
|
||||||
protected Boolean disabled;
|
|
||||||
/**
|
|
||||||
* 只读
|
|
||||||
*/
|
|
||||||
protected Boolean readOnly;
|
|
||||||
/**
|
|
||||||
* 额外属性
|
|
||||||
*/
|
|
||||||
protected Map<String, Object> props;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 数据类型:(参考form-render)
|
|
||||||
*/
|
|
||||||
protected final String type;
|
|
||||||
/**
|
|
||||||
* 组件名称(参考form-render)
|
|
||||||
*/
|
|
||||||
protected String widget;
|
|
||||||
/**
|
|
||||||
* format
|
|
||||||
*/
|
|
||||||
protected String format;
|
|
||||||
|
|
||||||
public Field(String type, String widget) {
|
|
||||||
this.type = type;
|
|
||||||
this.widget = widget;
|
|
||||||
this.props = new HashedMap<>(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
public Field(String type) {
|
|
||||||
this.type = type;
|
|
||||||
this.props = new HashedMap<>(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Data
|
|
||||||
public static class Tooltip {
|
|
||||||
private String title;
|
|
||||||
|
|
||||||
public Tooltip(String title) {
|
|
||||||
this.title = title;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 规则,ant design Form 校验规则
|
|
||||||
*
|
|
||||||
* @author TopIAM
|
|
||||||
* Created by support@topiam.cn on 2023/4/12 21:44
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
public static class Rule {
|
|
||||||
/**
|
|
||||||
* 是否必填
|
|
||||||
*/
|
|
||||||
private Boolean required;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 如果字段仅包含空格则校验不通过,只在 type: 'string' 时生效
|
|
||||||
*/
|
|
||||||
private Boolean whitespace;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 错误提示
|
|
||||||
*/
|
|
||||||
private String message;
|
|
||||||
/**
|
|
||||||
* 正则表达式
|
|
||||||
*/
|
|
||||||
private String pattern;
|
|
||||||
/**
|
|
||||||
* 最小
|
|
||||||
*/
|
|
||||||
private Integer min;
|
|
||||||
/**
|
|
||||||
* 最大
|
|
||||||
*/
|
|
||||||
private Integer max;
|
|
||||||
/**
|
|
||||||
* 类型,常见有 string |number |boolean |url | email。
|
|
||||||
* 更多请参考:<a href="https://github.com/yiminghe/async-validator#type">...</a>
|
|
||||||
*/
|
|
||||||
private String type;
|
|
||||||
|
|
||||||
public Rule required(Boolean required) {
|
|
||||||
this.required = required;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Rule message(String message) {
|
|
||||||
this.message = message;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Rule pattern(String pattern) {
|
|
||||||
this.pattern = pattern;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Rule min(Integer min) {
|
|
||||||
this.min = min;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Rule max(Integer max) {
|
|
||||||
this.max = max;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Rule whitespace(Boolean whitespace) {
|
|
||||||
this.whitespace = whitespace;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Rule type(String type) {
|
|
||||||
this.type = type;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public Field addRule(Rule rule) {
|
|
||||||
if (this.rules == null) {
|
|
||||||
this.rules = new ArrayList<>();
|
|
||||||
}
|
|
||||||
this.rules.add(rule);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Field addProps(Map<String, Object> props) {
|
|
||||||
getProps().putAll(props);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Field addProps(String key, Object value) {
|
|
||||||
getProps().put(key, value);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,32 +0,0 @@
|
||||||
/*
|
|
||||||
* eiam-common - Employee Identity and Access Management
|
|
||||||
* Copyright © 2022-Present Jinan Yuanchuang Network Technology Co., Ltd. (support@topiam.cn)
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
package cn.topiam.employee.common.schema.field;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 月份
|
|
||||||
*
|
|
||||||
* @author TopIAM
|
|
||||||
* Created by support@topiam.cn on 2023/4/12 21:07
|
|
||||||
*/
|
|
||||||
public class Month extends Field {
|
|
||||||
public Month(String title) {
|
|
||||||
super("string");
|
|
||||||
this.title = title;
|
|
||||||
this.format = "month";
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,35 +0,0 @@
|
||||||
/*
|
|
||||||
* eiam-common - Employee Identity and Access Management
|
|
||||||
* Copyright © 2022-Present Jinan Yuanchuang Network Technology Co., Ltd. (support@topiam.cn)
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
package cn.topiam.employee.common.schema.field;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 多选
|
|
||||||
*
|
|
||||||
* @author TopIAM
|
|
||||||
* Created by support@topiam.cn on 2023/4/12 21:29
|
|
||||||
*/
|
|
||||||
public class MultiSelect extends Field {
|
|
||||||
|
|
||||||
public MultiSelect(String title, List<Option> options) {
|
|
||||||
super("array", "multiSelect");
|
|
||||||
this.props.put("options", options);
|
|
||||||
this.title = title;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,32 +0,0 @@
|
||||||
/*
|
|
||||||
* eiam-common - Employee Identity and Access Management
|
|
||||||
* Copyright © 2022-Present Jinan Yuanchuang Network Technology Co., Ltd. (support@topiam.cn)
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
package cn.topiam.employee.common.schema.field;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 数字Input
|
|
||||||
*
|
|
||||||
* @author TopIAM
|
|
||||||
* Created by support@topiam.cn on 2023/4/12 21:28
|
|
||||||
*/
|
|
||||||
public class NumberInput extends Field {
|
|
||||||
|
|
||||||
public NumberInput(String title) {
|
|
||||||
super("number");
|
|
||||||
this.title = title;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,38 +0,0 @@
|
||||||
/*
|
|
||||||
* eiam-common - Employee Identity and Access Management
|
|
||||||
* Copyright © 2022-Present Jinan Yuanchuang Network Technology Co., Ltd. (support@topiam.cn)
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
package cn.topiam.employee.common.schema.field;
|
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 选项
|
|
||||||
*
|
|
||||||
* @author TopIAM
|
|
||||||
* Created by support@topiam.cn on 2023/4/12 21:29
|
|
||||||
*/
|
|
||||||
@Data
|
|
||||||
public class Option {
|
|
||||||
private String label;
|
|
||||||
private String value;
|
|
||||||
|
|
||||||
public Option(String label, String value) {
|
|
||||||
this.label = label;
|
|
||||||
this.value = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,31 +0,0 @@
|
||||||
/*
|
|
||||||
* eiam-common - Employee Identity and Access Management
|
|
||||||
* Copyright © 2022-Present Jinan Yuanchuang Network Technology Co., Ltd. (support@topiam.cn)
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
package cn.topiam.employee.common.schema.field;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 季度
|
|
||||||
* @author TopIAM
|
|
||||||
* Created by support@topiam.cn on 2023/4/12 21:09
|
|
||||||
*/
|
|
||||||
public class Quarter extends Field {
|
|
||||||
public Quarter(String title) {
|
|
||||||
super("string");
|
|
||||||
this.title = title;
|
|
||||||
this.format = "quarter";
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,36 +0,0 @@
|
||||||
/*
|
|
||||||
* eiam-common - Employee Identity and Access Management
|
|
||||||
* Copyright © 2022-Present Jinan Yuanchuang Network Technology Co., Ltd. (support@topiam.cn)
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
package cn.topiam.employee.common.schema.field;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 单选
|
|
||||||
*
|
|
||||||
* @author TopIAM
|
|
||||||
* Created by support@topiam.cn on 2023/4/12 21:31
|
|
||||||
*/
|
|
||||||
public class Radio extends Field {
|
|
||||||
|
|
||||||
public Radio(String title, List<Option> options) {
|
|
||||||
super("string", "radio");
|
|
||||||
this.props.put("options", options);
|
|
||||||
this.title = title;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,36 +0,0 @@
|
||||||
/*
|
|
||||||
* eiam-common - Employee Identity and Access Management
|
|
||||||
* Copyright © 2022-Present Jinan Yuanchuang Network Technology Co., Ltd. (support@topiam.cn)
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
package cn.topiam.employee.common.schema.field;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 选择
|
|
||||||
*
|
|
||||||
* @author TopIAM
|
|
||||||
* Created by support@topiam.cn on 2023/4/12 21:29
|
|
||||||
*/
|
|
||||||
public class Select extends Field {
|
|
||||||
|
|
||||||
public Select(String title, List<Option> options) {
|
|
||||||
super("string", "select");
|
|
||||||
this.title = title;
|
|
||||||
this.props.put("options", options);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,32 +0,0 @@
|
||||||
/*
|
|
||||||
* eiam-common - Employee Identity and Access Management
|
|
||||||
* Copyright © 2022-Present Jinan Yuanchuang Network Technology Co., Ltd. (support@topiam.cn)
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
package cn.topiam.employee.common.schema.field;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Switch
|
|
||||||
*
|
|
||||||
* @author TopIAM
|
|
||||||
* Created by support@topiam.cn on 2023/4/12 21:28
|
|
||||||
*/
|
|
||||||
public class Switch extends Field {
|
|
||||||
|
|
||||||
public Switch(String title) {
|
|
||||||
super("boolean", "switch");
|
|
||||||
this.title = title;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
/*
|
|
||||||
* eiam-common - Employee Identity and Access Management
|
|
||||||
* Copyright © 2022-Present Jinan Yuanchuang Network Technology Co., Ltd. (support@topiam.cn)
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
package cn.topiam.employee.common.schema.field;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 大文本
|
|
||||||
*
|
|
||||||
* @author TopIAM
|
|
||||||
* Created by support@topiam.cn on 2023/4/12 21:31
|
|
||||||
*/
|
|
||||||
public class TextArea extends Field {
|
|
||||||
|
|
||||||
public TextArea(String title) {
|
|
||||||
super("string");
|
|
||||||
this.format = "textarea";
|
|
||||||
this.title = title;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,33 +0,0 @@
|
||||||
/*
|
|
||||||
* eiam-common - Employee Identity and Access Management
|
|
||||||
* Copyright © 2022-Present Jinan Yuanchuang Network Technology Co., Ltd. (support@topiam.cn)
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
package cn.topiam.employee.common.schema.field;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 时间选择
|
|
||||||
*
|
|
||||||
* @author TopIAM
|
|
||||||
* Created by support@topiam.cn on 2023/4/12 21:28
|
|
||||||
*/
|
|
||||||
public class Time extends Field {
|
|
||||||
|
|
||||||
public Time(String title) {
|
|
||||||
super("string");
|
|
||||||
this.format = "time";
|
|
||||||
this.title = title;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,33 +0,0 @@
|
||||||
/*
|
|
||||||
* eiam-common - Employee Identity and Access Management
|
|
||||||
* Copyright © 2022-Present Jinan Yuanchuang Network Technology Co., Ltd. (support@topiam.cn)
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
package cn.topiam.employee.common.schema.field;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 时间范围
|
|
||||||
*
|
|
||||||
* @author TopIAM
|
|
||||||
* Created by support@topiam.cn on 2023/4/12 21:17
|
|
||||||
*/
|
|
||||||
public class TimeRange extends Field {
|
|
||||||
|
|
||||||
public TimeRange(String title) {
|
|
||||||
super("range");
|
|
||||||
this.format = "time";
|
|
||||||
this.title = title;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,32 +0,0 @@
|
||||||
/*
|
|
||||||
* eiam-common - Employee Identity and Access Management
|
|
||||||
* Copyright © 2022-Present Jinan Yuanchuang Network Technology Co., Ltd. (support@topiam.cn)
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
package cn.topiam.employee.common.schema.field;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 周选择
|
|
||||||
*
|
|
||||||
* @author TopIAM
|
|
||||||
* Created by support@topiam.cn on 2023/4/12 21:10
|
|
||||||
*/
|
|
||||||
public class Week extends Field {
|
|
||||||
public Week(String title) {
|
|
||||||
super("string");
|
|
||||||
this.title = title;
|
|
||||||
this.format = "week";
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,32 +0,0 @@
|
||||||
/*
|
|
||||||
* eiam-common - Employee Identity and Access Management
|
|
||||||
* Copyright © 2022-Present Jinan Yuanchuang Network Technology Co., Ltd. (support@topiam.cn)
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
package cn.topiam.employee.common.schema.field;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Year选择
|
|
||||||
*
|
|
||||||
* @author TopIAM
|
|
||||||
* Created by support@topiam.cn on 2023/4/12 21:10
|
|
||||||
*/
|
|
||||||
public class Year extends Field {
|
|
||||||
public Year(String title) {
|
|
||||||
super("string");
|
|
||||||
this.title = title;
|
|
||||||
this.format = "year";
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,18 +0,0 @@
|
||||||
/*
|
|
||||||
* eiam-common - Employee Identity and Access Management
|
|
||||||
* Copyright © 2022-Present Jinan Yuanchuang Network Technology Co., Ltd. (support@topiam.cn)
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
package cn.topiam.employee.common.schema;
|
|
|
@ -50,7 +50,7 @@
|
||||||
"@ant-design/pro-components": "^2.6.19",
|
"@ant-design/pro-components": "^2.6.19",
|
||||||
"ahooks": "^3.7.8",
|
"ahooks": "^3.7.8",
|
||||||
"antd": "^5.9.1",
|
"antd": "^5.9.1",
|
||||||
"antd-img-crop": "^4.12.2",
|
"antd-img-crop": "^4.13.0",
|
||||||
"antd-style": "^3.4.6",
|
"antd-style": "^3.4.6",
|
||||||
"classnames": "^2.3.2",
|
"classnames": "^2.3.2",
|
||||||
"codemirror": "^5.65.5",
|
"codemirror": "^5.65.5",
|
||||||
|
|
|
@ -16,8 +16,8 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Image, Modal, Space, Typography } from 'antd';
|
import { Col, Image, Modal, Row, Space, Typography } from 'antd';
|
||||||
import { InfoCircleFilled } from '@ant-design/icons';
|
import { CopyrightOutlined, InfoCircleFilled } from '@ant-design/icons';
|
||||||
import { FormattedMessage } from '@umijs/max';
|
import { FormattedMessage } from '@umijs/max';
|
||||||
import { useSafeState } from 'ahooks';
|
import { useSafeState } from 'ahooks';
|
||||||
import { createStyles } from 'antd-style';
|
import { createStyles } from 'antd-style';
|
||||||
|
@ -26,14 +26,12 @@ const { Text, Link } = Typography;
|
||||||
|
|
||||||
const useStyle = createStyles({
|
const useStyle = createStyles({
|
||||||
main: {
|
main: {
|
||||||
display: 'flex',
|
padding: '10px 0',
|
||||||
gap: '40px',
|
|
||||||
padding: '20px 0',
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const About: React.FC = () => {
|
const About: React.FC = () => {
|
||||||
const { styles } = useStyle();
|
const { styles } = useStyle();
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
const [aboutOpen, setAboutOpen] = useSafeState(false);
|
const [aboutOpen, setAboutOpen] = useSafeState(false);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -53,14 +51,27 @@ const About: React.FC = () => {
|
||||||
onCancel={() => setAboutOpen(false)}
|
onCancel={() => setAboutOpen(false)}
|
||||||
>
|
>
|
||||||
<div className={styles.main}>
|
<div className={styles.main}>
|
||||||
<Image width={200} src={'/full-logo.svg'} preview={false} />
|
<Row gutter={16}>
|
||||||
<Space direction="vertical">
|
<Col span={6} style={{ borderRight: '3px solid #f0f2f5' }}>
|
||||||
<Text>产品:TopIAM 企业数字身份管控平台</Text>
|
<Image src={'/full-logo.svg'} preview={false} />
|
||||||
<Text>版本:社区版 1.0.1 </Text>
|
</Col>
|
||||||
<Link href="https://eiam.topiam.cn" target="_blank">
|
<Col span={18}>
|
||||||
https://eiam.topiam.cn
|
<Space direction="vertical" size={'middle'}>
|
||||||
</Link>
|
<Text>产品:TOPIAM 企业数字身份管控平台</Text>
|
||||||
</Space>
|
<Text>版本:社区版 1.1.0</Text>
|
||||||
|
<Text>
|
||||||
|
版权所有 <CopyrightOutlined /> {'济南源创网络科技有限公司'} 2022-{currentYear}
|
||||||
|
。保留一切权利。
|
||||||
|
</Text>
|
||||||
|
<Text>
|
||||||
|
警告:本软件受著作权法和国际版权条约的保护,未经授权擅自复制修改分发本程序的全部或任何部分,将要承担一切由此导致的民事或刑事责任。
|
||||||
|
</Text>
|
||||||
|
<Link href="https://eiam.topiam.cn" target="_blank">
|
||||||
|
https://eiam.topiam.cn
|
||||||
|
</Link>
|
||||||
|
</Space>
|
||||||
|
</Col>
|
||||||
|
</Row>
|
||||||
</div>
|
</div>
|
||||||
</Modal>
|
</Modal>
|
||||||
</>
|
</>
|
||||||
|
|
|
@ -43,6 +43,10 @@ export default {
|
||||||
'menu.app.group': '应用分组',
|
'menu.app.group': '应用分组',
|
||||||
'menu.app.create': '创建应用',
|
'menu.app.create': '创建应用',
|
||||||
'menu.app.detail': '应用详情',
|
'menu.app.detail': '应用详情',
|
||||||
|
'menu.permission': '权限管理',
|
||||||
|
'menu.permission.space': '权限空间',
|
||||||
|
'menu.permission.resource': '权限资源',
|
||||||
|
'menu.permission.role': '角色管理',
|
||||||
'menu.account': '账户管理',
|
'menu.account': '账户管理',
|
||||||
'menu.account.user': '组织与用户',
|
'menu.account.user': '组织与用户',
|
||||||
'menu.account.user.detail': '用户详情',
|
'menu.account.user.detail': '用户详情',
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
"@ant-design/pro-components": "^2.6.19",
|
"@ant-design/pro-components": "^2.6.19",
|
||||||
"ahooks": "^3.7.8",
|
"ahooks": "^3.7.8",
|
||||||
"antd": "^5.9.1",
|
"antd": "^5.9.1",
|
||||||
"antd-img-crop": "^4.12.2",
|
"antd-img-crop": "^4.13.0",
|
||||||
"antd-style": "^3.4.6",
|
"antd-style": "^3.4.6",
|
||||||
"classnames": "^2.3.2",
|
"classnames": "^2.3.2",
|
||||||
"crypto-js": "^4.1.1",
|
"crypto-js": "^4.1.1",
|
||||||
|
|
|
@ -16,8 +16,8 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Image, Modal, Space, Typography } from 'antd';
|
import { Col, Image, Modal, Row, Space, Typography } from 'antd';
|
||||||
import { InfoCircleFilled } from '@ant-design/icons';
|
import { CopyrightOutlined, InfoCircleFilled } from '@ant-design/icons';
|
||||||
import { FormattedMessage } from '@umijs/max';
|
import { FormattedMessage } from '@umijs/max';
|
||||||
import { useSafeState } from 'ahooks';
|
import { useSafeState } from 'ahooks';
|
||||||
import { createStyles } from 'antd-style';
|
import { createStyles } from 'antd-style';
|
||||||
|
@ -26,14 +26,12 @@ const { Text, Link } = Typography;
|
||||||
|
|
||||||
const useStyle = createStyles({
|
const useStyle = createStyles({
|
||||||
main: {
|
main: {
|
||||||
display: 'flex',
|
padding: '10px 0',
|
||||||
gap: '40px',
|
|
||||||
padding: '20px 0',
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const About: React.FC = () => {
|
const About: React.FC = () => {
|
||||||
const { styles } = useStyle();
|
const { styles } = useStyle();
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
const [aboutOpen, setAboutOpen] = useSafeState(false);
|
const [aboutOpen, setAboutOpen] = useSafeState(false);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -53,14 +51,27 @@ const About: React.FC = () => {
|
||||||
onCancel={() => setAboutOpen(false)}
|
onCancel={() => setAboutOpen(false)}
|
||||||
>
|
>
|
||||||
<div className={styles.main}>
|
<div className={styles.main}>
|
||||||
<Image width={200} src={'/full-logo.svg'} preview={false} />
|
<Row gutter={16}>
|
||||||
<Space direction="vertical">
|
<Col span={6} style={{ borderRight: '3px solid #f0f2f5' }}>
|
||||||
<Text>产品:TopIAM 企业数字身份管控平台</Text>
|
<Image src={'/full-logo.svg'} preview={false} />
|
||||||
<Text>版本:社区版 1.0.1 </Text>
|
</Col>
|
||||||
<Link href="https://eiam.topiam.cn" target="_blank">
|
<Col span={18}>
|
||||||
https://eiam.topiam.cn
|
<Space direction="vertical" size={'middle'}>
|
||||||
</Link>
|
<Text>产品:TOPIAM 企业数字身份管控平台</Text>
|
||||||
</Space>
|
<Text>版本:社区版 1.1.0</Text>
|
||||||
|
<Text>
|
||||||
|
版权所有 <CopyrightOutlined /> {'济南源创网络科技有限公司'} 2022-{currentYear}
|
||||||
|
。保留一切权利。
|
||||||
|
</Text>
|
||||||
|
<Text>
|
||||||
|
警告:本软件受著作权法和国际版权条约的保护,未经授权擅自复制、修改、分发本程序的全部或任何部分,将要承担一切由此导致的民事或刑事责任。
|
||||||
|
</Text>
|
||||||
|
<Link href="https://eiam.topiam.cn" target="_blank">
|
||||||
|
https://eiam.topiam.cn
|
||||||
|
</Link>
|
||||||
|
</Space>
|
||||||
|
</Col>
|
||||||
|
</Row>
|
||||||
</div>
|
</div>
|
||||||
</Modal>
|
</Modal>
|
||||||
</>
|
</>
|
||||||
|
|
Loading…
Reference in New Issue