-
-
Notifications
You must be signed in to change notification settings - Fork 484
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #157 from erupts/develop
1.11.6
- Loading branch information
Showing
455 changed files
with
97,554 additions
and
588 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
erupt-annotation/src/main/java/xyz/erupt/annotation/sub_erupt/Layout.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package xyz.erupt.annotation.sub_erupt; | ||
|
||
public @interface Layout { | ||
|
||
//表单大小 | ||
FormSize formSize() default FormSize.DEFAULT; | ||
|
||
//表格宽度,为0则自动计算 | ||
int tableWidth() default 0; | ||
|
||
int tableLeftFixed() default 0; | ||
|
||
int tableRightFixed() default 0; | ||
|
||
|
||
enum FormSize { | ||
DEFAULT, | ||
FULL_LINE //整行 | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 0 additions & 28 deletions
28
erupt-annotation/src/main/java/xyz/erupt/annotation/sub_field/sub_edit/DependBy.java
This file was deleted.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
erupt-annotation/src/main/java/xyz/erupt/annotation/sub_field/sub_edit/DynamicBy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package xyz.erupt.annotation.sub_field.sub_edit; | ||
|
||
import xyz.erupt.annotation.SceneEnum; | ||
import xyz.erupt.annotation.config.Comment; | ||
|
||
/** | ||
* @author YuePeng | ||
* date 2020-05-21 | ||
*/ | ||
public @interface DynamicBy { | ||
|
||
boolean enable() default true; | ||
|
||
// @Comment("依赖其他表单的值") | ||
// String[] dependFields(); | ||
|
||
@Comment("显示条件表达式,支持变量:item 该值表示其他字段的值") | ||
String expr(); | ||
|
||
@Comment("展示类型") | ||
Type viewType() default Type.SHOW; | ||
|
||
@Comment("生效场景范围") | ||
SceneEnum[] sceneRange() default {SceneEnum.ADD, SceneEnum.EDIT, SceneEnum.VIEW_DETAIL}; | ||
|
||
|
||
enum Type { | ||
SHOW, //显示 | ||
HIDE, //隐藏 | ||
SHOW_NOTNULL, //显示且必填 | ||
SHOW_READONLY, //显示且制度 | ||
} | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
erupt-annotation/src/main/java/xyz/erupt/annotation/sub_field/sub_edit/PasswordType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package xyz.erupt.annotation.sub_field.sub_edit; | ||
|
||
/** | ||
* @author YuePeng | ||
* date 2023/5/9 22:31 | ||
*/ | ||
public @interface PasswordType { | ||
|
||
//加密次数 | ||
int encryptCount(); | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
//是否允许半选 | ||
boolean allowHalf() default false; | ||
|
||
//star 总数 | ||
int count() default 5; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
erupt-core/src/main/java/xyz/erupt/core/util/SecretUtil.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package xyz.erupt.core.util; | ||
|
||
import lombok.SneakyThrows; | ||
|
||
import java.net.URLDecoder; | ||
import java.nio.charset.StandardCharsets; | ||
import java.util.Base64; | ||
|
||
/** | ||
* @author YuePeng | ||
* date 2023/5/9 21:34 | ||
*/ | ||
public class SecretUtil { | ||
|
||
|
||
public static String decodeSecret(String str) { | ||
return new String(Base64.getDecoder().decode(str)); | ||
} | ||
|
||
@SneakyThrows | ||
public static String decodeSecret(String str, int encodeNum) { | ||
for (int i = 0; i < encodeNum; i++) { | ||
str = decodeSecret(str); | ||
} | ||
return URLDecoder.decode(str, StandardCharsets.UTF_8.name()); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.