From 8850e8e226da96b24212414b1fc3eb40c16ac3f1 Mon Sep 17 00:00:00 2001 From: smallbun <2689170096@qq.com> Date: Mon, 18 Sep 2023 13:37:07 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../employee/common/schema/FormSchema.java | 85 -------- .../common/schema/field/Checkbox.java | 31 --- .../common/schema/field/Checkboxes.java | 36 --- .../employee/common/schema/field/Date.java | 33 --- .../common/schema/field/DateTime.java | 33 --- .../common/schema/field/DateTimeRange.java | 33 --- .../employee/common/schema/field/Field.java | 205 ------------------ .../employee/common/schema/field/Month.java | 32 --- .../common/schema/field/MultiSelect.java | 35 --- .../common/schema/field/NumberInput.java | 32 --- .../employee/common/schema/field/Option.java | 38 ---- .../employee/common/schema/field/Quarter.java | 31 --- .../employee/common/schema/field/Radio.java | 36 --- .../employee/common/schema/field/Select.java | 36 --- .../employee/common/schema/field/Switch.java | 32 --- .../common/schema/field/TextArea.java | 34 --- .../employee/common/schema/field/Time.java | 33 --- .../common/schema/field/TimeRange.java | 33 --- .../employee/common/schema/field/Week.java | 32 --- .../employee/common/schema/field/Year.java | 32 --- .../employee/common/schema/package-info.java | 18 -- eiam-console/src/main/console-fe/package.json | 2 +- .../console-fe/src/components/About/About.tsx | 39 ++-- .../main/console-fe/src/locales/zh-CN/menu.ts | 4 + eiam-portal/src/main/portal-fe/package.json | 2 +- .../portal-fe/src/components/About/About.tsx | 39 ++-- 26 files changed, 56 insertions(+), 940 deletions(-) delete mode 100644 eiam-common/src/main/java/cn/topiam/employee/common/schema/FormSchema.java delete mode 100644 eiam-common/src/main/java/cn/topiam/employee/common/schema/field/Checkbox.java delete mode 100644 eiam-common/src/main/java/cn/topiam/employee/common/schema/field/Checkboxes.java delete mode 100644 eiam-common/src/main/java/cn/topiam/employee/common/schema/field/Date.java delete mode 100644 eiam-common/src/main/java/cn/topiam/employee/common/schema/field/DateTime.java delete mode 100644 eiam-common/src/main/java/cn/topiam/employee/common/schema/field/DateTimeRange.java delete mode 100644 eiam-common/src/main/java/cn/topiam/employee/common/schema/field/Field.java delete mode 100644 eiam-common/src/main/java/cn/topiam/employee/common/schema/field/Month.java delete mode 100644 eiam-common/src/main/java/cn/topiam/employee/common/schema/field/MultiSelect.java delete mode 100644 eiam-common/src/main/java/cn/topiam/employee/common/schema/field/NumberInput.java delete mode 100644 eiam-common/src/main/java/cn/topiam/employee/common/schema/field/Option.java delete mode 100644 eiam-common/src/main/java/cn/topiam/employee/common/schema/field/Quarter.java delete mode 100644 eiam-common/src/main/java/cn/topiam/employee/common/schema/field/Radio.java delete mode 100644 eiam-common/src/main/java/cn/topiam/employee/common/schema/field/Select.java delete mode 100644 eiam-common/src/main/java/cn/topiam/employee/common/schema/field/Switch.java delete mode 100644 eiam-common/src/main/java/cn/topiam/employee/common/schema/field/TextArea.java delete mode 100644 eiam-common/src/main/java/cn/topiam/employee/common/schema/field/Time.java delete mode 100644 eiam-common/src/main/java/cn/topiam/employee/common/schema/field/TimeRange.java delete mode 100644 eiam-common/src/main/java/cn/topiam/employee/common/schema/field/Week.java delete mode 100644 eiam-common/src/main/java/cn/topiam/employee/common/schema/field/Year.java delete mode 100644 eiam-common/src/main/java/cn/topiam/employee/common/schema/package-info.java diff --git a/eiam-common/src/main/java/cn/topiam/employee/common/schema/FormSchema.java b/eiam-common/src/main/java/cn/topiam/employee/common/schema/FormSchema.java deleted file mode 100644 index 897ed7c6..00000000 --- a/eiam-common/src/main/java/cn/topiam/employee/common/schema/FormSchema.java +++ /dev/null @@ -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 . - */ -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 properties; - - /** - * - * @author TopIAM - * Created by support@topiam.cn on 2023/4/12 21:16 - */ - public enum DisplayType { - /** - * row - */ - row, - /** - * column - */ - column, - /** - * inline - */ - inline - } -} diff --git a/eiam-common/src/main/java/cn/topiam/employee/common/schema/field/Checkbox.java b/eiam-common/src/main/java/cn/topiam/employee/common/schema/field/Checkbox.java deleted file mode 100644 index ba3e971f..00000000 --- a/eiam-common/src/main/java/cn/topiam/employee/common/schema/field/Checkbox.java +++ /dev/null @@ -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 . - */ -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; - } -} \ No newline at end of file diff --git a/eiam-common/src/main/java/cn/topiam/employee/common/schema/field/Checkboxes.java b/eiam-common/src/main/java/cn/topiam/employee/common/schema/field/Checkboxes.java deleted file mode 100644 index 02666f27..00000000 --- a/eiam-common/src/main/java/cn/topiam/employee/common/schema/field/Checkboxes.java +++ /dev/null @@ -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 . - */ -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