-
-
Notifications
You must be signed in to change notification settings - Fork 483
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 #261 from erupts/develop
1.12.15
- Loading branch information
Showing
304 changed files
with
40,459 additions
and
3,981 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
8 changes: 8 additions & 0 deletions
8
erupt-annotation/src/main/java/xyz/erupt/annotation/sub_erupt/OpenWay.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,8 @@ | ||
package xyz.erupt.annotation.sub_erupt; | ||
|
||
public enum OpenWay { | ||
//抽屉 | ||
DRAWER, | ||
//对话框 | ||
MODAL | ||
} |
12 changes: 12 additions & 0 deletions
12
erupt-annotation/src/main/java/xyz/erupt/annotation/sub_erupt/Placement.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,12 @@ | ||
package xyz.erupt.annotation.sub_erupt; | ||
|
||
/** | ||
* @author YuePeng | ||
* date 2024/8/25 15:53 | ||
*/ | ||
public enum Placement { | ||
TOP, | ||
BOTTOM, | ||
LEFT, | ||
RIGHT | ||
} |
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
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
41 changes: 41 additions & 0 deletions
41
erupt-core/src/main/java/xyz/erupt/core/log/EruptJULAppender.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,41 @@ | ||
package xyz.erupt.core.log; | ||
|
||
import java.util.logging.Handler; | ||
import java.util.logging.LogRecord; | ||
|
||
public class EruptJULAppender extends Handler implements EruptAppender { | ||
|
||
@Override | ||
public void publish(LogRecord record) { | ||
EruptLogManager.log(new Formatter() | ||
.timestamp(record.getMillis()) | ||
.space() | ||
.level(record.getLevel().toString()) | ||
.value(" --- [") | ||
.thread(Thread.currentThread().getName()) | ||
.value("] ") | ||
.name(record.getLoggerName()) | ||
.value("(" + record.getSourceMethodName() + ":" + record.getSequenceNumber() + ")") | ||
.value(" : ") | ||
.value(record.getMessage()) | ||
.throwable(record.getThrown()) | ||
.toString() | ||
); | ||
} | ||
|
||
@Override | ||
public void flush() { | ||
|
||
} | ||
|
||
@Override | ||
public void close() throws SecurityException { | ||
|
||
} | ||
|
||
@Override | ||
public void init() { | ||
|
||
} | ||
|
||
} |
Oops, something went wrong.