forked from yu55/yagga
-
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.
yu55#53 Layout changes of the view/annotate page (work in progress)
- Loading branch information
Showing
22 changed files
with
310 additions
and
41 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
47 changes: 47 additions & 0 deletions
47
src/main/java/org/yu55/yagga/core/annotate/model/AnnotateResponseLine.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,47 @@ | ||
package org.yu55.yagga.core.annotate.model; | ||
|
||
/** | ||
* This class represents a single line of the code displayed on the view page. Each line consists of a few parts like | ||
* commit id, author, date, line number and line. | ||
*/ | ||
public class AnnotateResponseLine { | ||
|
||
private String commitId; | ||
|
||
private String author; | ||
|
||
private String commitDate; | ||
|
||
private int lineNumber; | ||
|
||
private String line; | ||
|
||
public AnnotateResponseLine(String commitId, String author, String commitDate, int lineNumber, | ||
String line) { | ||
this.commitId = commitId; | ||
this.author = author; | ||
this.commitDate = commitDate; | ||
this.lineNumber = lineNumber; | ||
this.line = line; | ||
} | ||
|
||
public String getCommitId() { | ||
return commitId; | ||
} | ||
|
||
public String getAuthor() { | ||
return author; | ||
} | ||
|
||
public String getCommitDate() { | ||
return commitDate; | ||
} | ||
|
||
public int getLineNumber() { | ||
return lineNumber; | ||
} | ||
|
||
public String getLine() { | ||
return 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
46 changes: 39 additions & 7 deletions
46
src/main/java/org/yu55/yagga/handler/git/command/annotate/GitAnnotateResponseFactory.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
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,17 @@ | ||
package org.yu55.yagga.utils; | ||
|
||
/** | ||
* Custom string utility class. | ||
*/ | ||
public class StringUtils { | ||
|
||
/** | ||
* Replaces all blank substrings with a single-space string. | ||
* | ||
* @param source the source string to be processed | ||
* @return the source string having all blank substrings replaced with a single space character. | ||
*/ | ||
public static String wrapBlankSubstrings(String source) { | ||
return source.replaceAll("\\s+", " "); | ||
} | ||
} |
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
Oops, something went wrong.