-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2aa3861
commit e303e0f
Showing
18 changed files
with
156 additions
and
14 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
Binary file not shown.
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 @@ | ||
7c122af05a5f34abc7e69d15c5eb68fb |
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 @@ | ||
e3ce7c6d1ae5c7a13073ebe425a23ffd87e46304 |
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,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>yoyosource</groupId> | ||
<artifactId>YAPI</artifactId> | ||
<version>1.2-3.4</version> | ||
<dependencies> | ||
<dependency> | ||
<groupId>ch.obermuhlner</groupId> | ||
<artifactId>big-math</artifactId> | ||
<version>2.3.0</version> | ||
<scope>compile</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.fusesource.jansi</groupId> | ||
<artifactId>jansi</artifactId> | ||
<version>1.18</version> | ||
<scope>compile</scope> | ||
</dependency> | ||
</dependencies> | ||
</project> |
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 @@ | ||
58f96759fdecd0415aacd5f1dc83163f |
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 @@ | ||
5b2febef6a0ec85007fce1323e1635f3481baea6 |
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 |
---|---|---|
@@ -1 +1 @@ | ||
b05226fba2e43210cc724bcad33d0806 | ||
24f9b9fdfa59470e6972d03e228afce1 |
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 |
---|---|---|
@@ -1 +1 @@ | ||
b48b0ab968f9371490d85d0001e555271c5aca92 | ||
ce1938c2bb8488adc5512cdb1dd988618f41d9d7 |
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,56 @@ | ||
package yapi; | ||
|
||
import yapi.ui.console.Console; | ||
import yapi.ui.console.ConsoleMessageBuilder; | ||
|
||
public class YAPIUtils { | ||
|
||
public static String link() { | ||
return "https://github.com/yoyosource/YAPI"; | ||
} | ||
|
||
public static String link_Refined() { | ||
return "https://github.com/yoyosource/YAPI"; | ||
} | ||
|
||
public static void link_Send() { | ||
new Console().send(ConsoleMessageBuilder.build(link_Refined())); | ||
} | ||
|
||
public static String licence() { | ||
return ""; | ||
} | ||
|
||
public static String license_Refined() { | ||
return ""; | ||
} | ||
|
||
public static String license_OneLine() { | ||
return ""; | ||
} | ||
|
||
public static String license_OneLine_Refined() { | ||
return ""; | ||
} | ||
|
||
public static void license_Send() { | ||
new Console().send(ConsoleMessageBuilder.build(license_Refined())); | ||
} | ||
|
||
public static String logo() { | ||
return ""; | ||
} | ||
|
||
public static String logo_Refined() { | ||
return ""; | ||
} | ||
|
||
public static void logo_Send() { | ||
new Console().send(ConsoleMessageBuilder.build(logo_Refined())); | ||
} | ||
|
||
public static void logo_license_Send() { | ||
new Console().send(ConsoleMessageBuilder.build(logo_Refined() + "\n\n" + license_OneLine_Refined())); | ||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package yapi.ui.yui; | ||
|
||
import java.io.File; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class YUI { | ||
|
||
public static void main(String[] args) { | ||
YUI yui = new YUI(new File("/Users/jojo/IdeaProjects/YAPI/src/main/resources/Test.yui")); | ||
System.out.println(yui.configs); | ||
} | ||
|
||
private List<YUIConfig> configs = new ArrayList<>(); | ||
|
||
public YUI(File config) { | ||
configs.add(new YUIConfig(config)); | ||
} | ||
|
||
} |
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,32 @@ | ||
package yapi.ui.yui; | ||
|
||
import yapi.file.FileUtils; | ||
|
||
import java.io.File; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class YUIConfig { | ||
|
||
private String name; | ||
private List<String> lines = new ArrayList<>(); | ||
|
||
YUIConfig(File config) { | ||
name = config.getName(); | ||
String[] strings = FileUtils.fileContentAsString(config); | ||
for (String s : strings) { | ||
String t = s.trim(); | ||
if (!t.isEmpty()) { | ||
lines.add(t); | ||
} | ||
} | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "YUIConfig{" + | ||
"name='" + name + "'" + | ||
", lines=" + lines + | ||
'}'; | ||
} | ||
} |