-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: various features and enhancements (#5)
- Loading branch information
1 parent
f43058e
commit 0b94d6e
Showing
55 changed files
with
2,236 additions
and
241 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
10 changes: 10 additions & 0 deletions
10
src/main/java/de/pascalwagler/epubcheckfx/model/ReportMetadata.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,10 @@ | ||
package de.pascalwagler.epubcheckfx.model; | ||
|
||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
@Builder | ||
@Data | ||
public class ReportMetadata { | ||
private String language; | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/de/pascalwagler/epubcheckfx/model/ReportTranslatedStrings.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,18 @@ | ||
package de.pascalwagler.epubcheckfx.model; | ||
|
||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
@Builder | ||
@Data | ||
public class ReportTranslatedStrings { | ||
private String headingReport; | ||
private String headingValidationResults; | ||
|
||
private String messageId; | ||
private String severity; | ||
private String message; | ||
private String path; | ||
private String line; | ||
private String column; | ||
} |
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
29 changes: 29 additions & 0 deletions
29
src/main/java/de/pascalwagler/epubcheckfx/model/Theme.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,29 @@ | ||
package de.pascalwagler.epubcheckfx.model; | ||
|
||
import atlantafx.base.theme.CupertinoDark; | ||
import atlantafx.base.theme.CupertinoLight; | ||
import atlantafx.base.theme.Dracula; | ||
import atlantafx.base.theme.NordDark; | ||
import atlantafx.base.theme.NordLight; | ||
import atlantafx.base.theme.PrimerDark; | ||
import atlantafx.base.theme.PrimerLight; | ||
import de.pascalwagler.epubcheckfx.ui.Translatable; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public enum Theme implements Translatable { | ||
PRIMER(new PrimerLight(), new PrimerDark(), "menu.view.theme.primer"), | ||
NORD(new NordLight(), new NordDark(), "menu.view.theme.nord"), | ||
CUPERTINO(new CupertinoLight(), new CupertinoDark(), "menu.view.theme.cupertino"), | ||
DRACULA(new Dracula(), new Dracula(), "menu.view.theme.dracula"); | ||
|
||
Theme(atlantafx.base.theme.Theme atlantaFxLightTheme, atlantafx.base.theme.Theme atlantaFxDarkTheme, String i18nKey) { | ||
this.atlantaFxLightTheme = atlantaFxLightTheme; | ||
this.atlantaFxDarkTheme = atlantaFxDarkTheme; | ||
this.i18nKey = i18nKey; | ||
} | ||
|
||
private final atlantafx.base.theme.Theme atlantaFxLightTheme; | ||
private final atlantafx.base.theme.Theme atlantaFxDarkTheme; | ||
private final String i18nKey; | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/de/pascalwagler/epubcheckfx/service/CheckMessageMapper.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,19 @@ | ||
package de.pascalwagler.epubcheckfx.service; | ||
|
||
import de.pascalwagler.epubcheckfx.model.CheckMessage; | ||
|
||
public class CheckMessageMapper { | ||
private CheckMessageMapper() { | ||
} | ||
|
||
public static String[] toStringArray(CheckMessage checkMessage) { | ||
return new String[]{ | ||
checkMessage.getMessageId().toString(), | ||
checkMessage.getSeverity().toString(), | ||
checkMessage.getMessage(), | ||
checkMessage.getPath(), | ||
checkMessage.getLine() == null ? "" : String.valueOf(checkMessage.getLine()), | ||
checkMessage.getColumn() == null ? "" : String.valueOf(checkMessage.getColumn()) | ||
}; | ||
} | ||
} |
Oops, something went wrong.