forked from doublechaintech/scm-biz-suite
-
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.
Merge pull request doublechaintech#20 from doublechaintech/peer-to-pe…
…ar-chain Change to newest version
- Loading branch information
Showing
4,952 changed files
with
365,236 additions
and
322,447 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,33 +1,43 @@ | ||
# Compiled class file | ||
*.class | ||
|
||
# Log file | ||
*.log | ||
|
||
# BlueJ files | ||
*.ctxt | ||
|
||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
||
# Package Files # | ||
*.jar | ||
# maven ignore | ||
target/ | ||
bin/ | ||
out/ | ||
*.war | ||
*.nar | ||
*.ear | ||
*.zip | ||
*.tar | ||
*.tar.gz | ||
*.rar | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
build/* | ||
bin/* | ||
output/* | ||
lib/* | ||
WEB-INF/lib/* | ||
.history | ||
.gradle | ||
classes/* | ||
.vscode/sftp.json | ||
# eclipse ignore | ||
.settings/ | ||
.project | ||
.classpath | ||
.metadata/ | ||
classes/ | ||
work/ | ||
WEB_INF/conf/ | ||
WEB_INF/lib | ||
|
||
# idea ignore | ||
.idea/ | ||
*.ipr | ||
*.iml | ||
*.iws | ||
|
||
# temp ignore | ||
*.log | ||
*.cache | ||
*.diff | ||
*.patch | ||
*.tmp | ||
|
||
# system ignore | ||
.DS_Store | ||
Thumbs.db | ||
|
||
# gradle ignore | ||
gradle/ | ||
.gradle/ | ||
build/ | ||
gradlew.bat | ||
gradlew | ||
out/ |
This file was deleted.
Oops, something went wrong.
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,47 @@ | ||
|
||
======= | ||
# skynet-common-app-framework | ||
Common App Framework, a replacement of modern app | ||
|
||
## 支持返回一个blob类型, 一个返回图片的例子 | ||
|
||
``` | ||
public BlobObject helloImage2(int width, int height, String note) throws IOException { | ||
BlobObject blob = new BlobObject(); | ||
int internalWidth = outOfThen(width,10,1400,600); | ||
int internalHeight = outOfThen(height,10,1400,400); | ||
BufferedImage off_Image = | ||
new BufferedImage(internalWidth, internalHeight, | ||
BufferedImage.TYPE_INT_ARGB); | ||
Graphics2D g2 = off_Image.createGraphics(); | ||
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, | ||
RenderingHints.VALUE_ANTIALIAS_ON); | ||
Font f = new Font("Monospaced", Font.BOLD, 14); | ||
g2.setFont(f); | ||
String text=String.format("%s(%dX%d)", note,internalWidth,internalHeight); | ||
g2.drawString(text,1,15); | ||
//WritableRaster raster = bufferedImage .getRaster(); | ||
//DataBufferByte data = (DataBufferByte) raster.getDataBuffer(); | ||
Shape shape = new Rectangle2D.Double(1, 1, | ||
internalWidth-2, | ||
internalHeight-2); | ||
g2.draw(shape); | ||
shape = new Line2D.Double(0, 0, internalWidth, internalHeight); | ||
g2.draw(shape); | ||
shape = new Line2D.Double(internalWidth, 0, 0, internalHeight); | ||
g2.draw(shape); | ||
ByteArrayOutputStream bos = new ByteArrayOutputStream(); | ||
ImageIO.write(off_Image, "png", bos); | ||
blob.setData(bos.toByteArray()); | ||
blob.setMimeType(BlobObject.TYPE_PNG); | ||
//BlobObject.TYPE_XLSX | ||
return blob; | ||
} | ||
``` |
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,27 @@ | ||
<%@page isELIgnored="false" %> | ||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> | ||
<%@page contentType="text/html; charset=UTF-8"%> | ||
<style> | ||
.message{ | ||
font-size:20px; | ||
} | ||
.name { | ||
background-color: lightblue; | ||
} | ||
.value { | ||
word-break: break-all; | ||
} | ||
</style> | ||
|
||
<div class="message"> | ||
Map:<ul> | ||
<table> | ||
|
||
<c:forEach var="entry" items="${result}" varStatus="status"> | ||
<tr> | ||
<td class="name"><c:out value="${entry.key}"/></td><td class="value"><c:out value="${entry.value}"/></td> | ||
</tr> | ||
</c:forEach> | ||
</table> | ||
</ul> | ||
</div> |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
/classes/ | ||
classes/ | ||
*.sql | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.