Merge remote-tracking branch 'origin/master'

pull/52/head
shao1121353141 2023-09-18 20:42:27 +08:00
commit 48a998c2c6
26 changed files with 56 additions and 940 deletions

View File

@ -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
}
}

View File

@ -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;
}
}

View File

@ -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);
}
}

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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";
}
}

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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";
}
}

View File

@ -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;
}
}

View File

@ -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);
}
}

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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";
}
}

View File

@ -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";
}
}

View File

@ -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;

View File

@ -50,7 +50,7 @@
"@ant-design/pro-components": "^2.6.19",
"ahooks": "^3.7.8",
"antd": "^5.9.1",
"antd-img-crop": "^4.12.2",
"antd-img-crop": "^4.13.0",
"antd-style": "^3.4.6",
"classnames": "^2.3.2",
"codemirror": "^5.65.5",

View File

@ -16,8 +16,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import React from 'react';
import { Image, Modal, Space, Typography } from 'antd';
import { InfoCircleFilled } from '@ant-design/icons';
import { Col, Image, Modal, Row, Space, Typography } from 'antd';
import { CopyrightOutlined, InfoCircleFilled } from '@ant-design/icons';
import { FormattedMessage } from '@umijs/max';
import { useSafeState } from 'ahooks';
import { createStyles } from 'antd-style';
@ -26,14 +26,12 @@ const { Text, Link } = Typography;
const useStyle = createStyles({
main: {
display: 'flex',
gap: '40px',
padding: '20px 0',
padding: '10px 0',
},
});
const About: React.FC = () => {
const { styles } = useStyle();
const currentYear = new Date().getFullYear();
const [aboutOpen, setAboutOpen] = useSafeState(false);
return (
@ -53,14 +51,27 @@ const About: React.FC = () => {
onCancel={() => setAboutOpen(false)}
>
<div className={styles.main}>
<Image width={200} src={'/full-logo.svg'} preview={false} />
<Space direction="vertical">
<Text>TopIAM </Text>
<Text> 1.0.1 </Text>
<Link href="https://eiam.topiam.cn" target="_blank">
https://eiam.topiam.cn
</Link>
</Space>
<Row gutter={16}>
<Col span={6} style={{ borderRight: '3px solid #f0f2f5' }}>
<Image src={'/full-logo.svg'} preview={false} />
</Col>
<Col span={18}>
<Space direction="vertical" size={'middle'}>
<Text>TOPIAM </Text>
<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>
</Modal>
</>

View File

@ -43,6 +43,10 @@ export default {
'menu.app.group': '应用分组',
'menu.app.create': '创建应用',
'menu.app.detail': '应用详情',
'menu.permission': '权限管理',
'menu.permission.space': '权限空间',
'menu.permission.resource': '权限资源',
'menu.permission.role': '角色管理',
'menu.account': '账户管理',
'menu.account.user': '组织与用户',
'menu.account.user.detail': '用户详情',

View File

@ -51,7 +51,7 @@
"@ant-design/pro-components": "^2.6.19",
"ahooks": "^3.7.8",
"antd": "^5.9.1",
"antd-img-crop": "^4.12.2",
"antd-img-crop": "^4.13.0",
"antd-style": "^3.4.6",
"classnames": "^2.3.2",
"crypto-js": "^4.1.1",

View File

@ -16,8 +16,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import React from 'react';
import { Image, Modal, Space, Typography } from 'antd';
import { InfoCircleFilled } from '@ant-design/icons';
import { Col, Image, Modal, Row, Space, Typography } from 'antd';
import { CopyrightOutlined, InfoCircleFilled } from '@ant-design/icons';
import { FormattedMessage } from '@umijs/max';
import { useSafeState } from 'ahooks';
import { createStyles } from 'antd-style';
@ -26,14 +26,12 @@ const { Text, Link } = Typography;
const useStyle = createStyles({
main: {
display: 'flex',
gap: '40px',
padding: '20px 0',
padding: '10px 0',
},
});
const About: React.FC = () => {
const { styles } = useStyle();
const currentYear = new Date().getFullYear();
const [aboutOpen, setAboutOpen] = useSafeState(false);
return (
@ -53,14 +51,27 @@ const About: React.FC = () => {
onCancel={() => setAboutOpen(false)}
>
<div className={styles.main}>
<Image width={200} src={'/full-logo.svg'} preview={false} />
<Space direction="vertical">
<Text>TopIAM </Text>
<Text> 1.0.1 </Text>
<Link href="https://eiam.topiam.cn" target="_blank">
https://eiam.topiam.cn
</Link>
</Space>
<Row gutter={16}>
<Col span={6} style={{ borderRight: '3px solid #f0f2f5' }}>
<Image src={'/full-logo.svg'} preview={false} />
</Col>
<Col span={18}>
<Space direction="vertical" size={'middle'}>
<Text>TOPIAM </Text>
<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>
</Modal>
</>