-
-
Notifications
You must be signed in to change notification settings - Fork 474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.11.6 #157
1.11.6 #157
Changes from all commits
0ad2a38
353ef0c
fd56db5
5a34d47
89aaa03
5caea62
8174f90
9f3b520
6cf705a
a3dccf2
f362a7b
96b185d
7f6313a
2dc224f
0fe7bdb
2b6dd0c
49f300a
756a923
dd881dd
2576410
6f4aaee
7341f77
7ffb55c
c1806fb
6d581a8
e50aec8
6998288
2368aae
9691cae
571643c
0e2775a
c6e9fe0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 was deleted.
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, //显示且制度 | ||
} | ||
|
||
} |
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,13 @@ | ||||||||||
package xyz.erupt.annotation.sub_field.sub_edit; | ||||||||||
|
||||||||||
/** | ||||||||||
* @author YuePeng | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. MissingSummary: A summary line is required on public/protected Javadocs. ℹ️ Expand to see all @sonatype-lift commandsYou can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
Note: When talking to LiftBot, you need to refresh the page to see its response. |
||||||||||
* date 2023/5/9 22:31 | ||||||||||
*/ | ||||||||||
public @interface PasswordType { | ||||||||||
|
||||||||||
//加密次数 | ||||||||||
int encryptCount(); | ||||||||||
|
||||||||||
|
||||||||||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
//是否允许半选 | ||
boolean allowHalf() default false; | ||
|
||
//star 总数 | ||
int count() default 5; | ||
|
||
} |
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()); | ||
} | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MissingSummary: A summary line is required on public/protected Javadocs.
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
@sonatype-lift ignore
@sonatype-lift ignoreall
@sonatype-lift exclude <file|issue|path|tool>
file|issue|path|tool
from Lift findings by updating your config.toml fileNote: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.