Skip to content

Commit

Permalink
Working on UI
Browse files Browse the repository at this point in the history
  • Loading branch information
fireduck64 committed Sep 5, 2019
1 parent 005aae1 commit d689422
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 8 deletions.
12 changes: 12 additions & 0 deletions BUILD
Expand Up @@ -6,6 +6,7 @@ java_library(
deps = [
"@snowblossom//client:client",
"@snowblossom//lib:lib",
"@snowblossom//iceleaf-ui:iceleaf",
"@duckutil//:duckutil_lib",
"@duckutil//:duckutil_jsonrpc_lib",
"@junit_junit//jar",
Expand All @@ -29,6 +30,17 @@ java_binary(
],
)

java_binary(
name = "ChannelIceLeaf",
main_class = "snowblossom.channels.iceleaf.ChannelIceLeaf",
resources = [ "@snowblossom//iceleaf-ui:resources" ],
runtime_deps = [
":channelslib",
]
)



proto_library(
name = "protosrc",
srcs = glob(["protolib/*.proto", "protolib/**/*.proto"]),
Expand Down
3 changes: 0 additions & 3 deletions src/SingleChannelDB.java
Expand Up @@ -41,7 +41,6 @@ public class SingleChannelDB
protected DBMap data_map;
protected HashedTrie data_trie;


public SingleChannelDB(Config base_config, ChannelID cid)
throws Exception
{
Expand Down Expand Up @@ -78,7 +77,6 @@ public void open()
data_map = prov.openMap("d");
data_trie = new HashedTrie(new TrieDBMap(data_map), true, true);


}

public ProtoDBMap<ChannelBlock> getBlockMap(){return block_map; }
Expand Down Expand Up @@ -130,6 +128,5 @@ public void run()
t.printStackTrace();
}
}

}
}
5 changes: 0 additions & 5 deletions src/WebServer.java
Expand Up @@ -110,7 +110,6 @@ private void handleChannelGet(ChannelID cid, ArrayList<String> tokens, HttpExcha
PrintStream print_out = new PrintStream(b_out);
int code = 200;


String path ="/web";
for(int i=2; i<tokens.size(); i++)
{
Expand Down Expand Up @@ -149,8 +148,6 @@ private void handleChannelGet(ChannelID cid, ArrayList<String> tokens, HttpExcha

return;
}


}


Expand All @@ -160,8 +157,6 @@ private void handleChannelGet(ChannelID cid, ArrayList<String> tokens, HttpExcha
out.write(data);
out.close();



}

private void handleRoot(HttpExchange t)
Expand Down
27 changes: 27 additions & 0 deletions src/iceleaf/ChannelIceLeaf.java
@@ -0,0 +1,27 @@
package snowblossom.channels.iceleaf;

import snowblossom.lib.Globals;
import snowblossom.lib.NetworkParams;
import snowblossom.lib.NetworkParamsProd;
import snowblossom.iceleaf.IceLeaf;
import java.util.prefs.Preferences;


public class ChannelIceLeaf extends IceLeaf
{
public static void main(String args[]) throws Exception
{
Globals.addCryptoProvider();

new ChannelIceLeaf(new NetworkParamsProd(), null);

}

public ChannelIceLeaf(NetworkParams params, Preferences prefs)
throws Exception
{
super(params, Preferences.userNodeForPackage(
ClassLoader.getSystemClassLoader().loadClass("snowblossom.iceleaf.IceLeaf")));
}

}

0 comments on commit d689422

Please sign in to comment.