moved web resources to resource folder
This commit is contained in:
parent
bf799fa74d
commit
3904ef857d
50 changed files with 13 additions and 14 deletions
1
Hal.iml
1
Hal.iml
|
|
@ -15,7 +15,6 @@
|
||||||
<sourceFolder url="file://$MODULE_DIR$/lib/sphinx4-5prealpha-src/sphinx4-data/src/main/resources" type="java-resource" />
|
<sourceFolder url="file://$MODULE_DIR$/lib/sphinx4-5prealpha-src/sphinx4-data/src/main/resources" type="java-resource" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/lib/sphinx4-5prealpha-src/sphinx4-samples/src/main/resources" type="java-resource" />
|
<sourceFolder url="file://$MODULE_DIR$/lib/sphinx4-5prealpha-src/sphinx4-samples/src/main/resources" type="java-resource" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/lib/java-speech-api-master/src" isTestSource="false" />
|
<sourceFolder url="file://$MODULE_DIR$/lib/java-speech-api-master/src" isTestSource="false" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/web-resource" type="java-resource" />
|
|
||||||
<excludeFolder url="file://$MODULE_DIR$/lib/sphinx4-5prealpha-src/sphinx4-data" />
|
<excludeFolder url="file://$MODULE_DIR$/lib/sphinx4-5prealpha-src/sphinx4-data" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/lib/sphinx4-5prealpha-src/sphinx4-samples" />
|
<excludeFolder url="file://$MODULE_DIR$/lib/sphinx4-5prealpha-src/sphinx4-samples" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/lib/sphinx4-5prealpha-src/tests" />
|
<excludeFolder url="file://$MODULE_DIR$/lib/sphinx4-5prealpha-src/tests" />
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@
|
||||||
<copy file="${gitRoot}/logging.properties" todir="${releaseDir}" />
|
<copy file="${gitRoot}/logging.properties" todir="${releaseDir}" />
|
||||||
<copy file="${gitRoot}/run.sh" todir="${releaseDir}" />
|
<copy file="${gitRoot}/run.sh" todir="${releaseDir}" />
|
||||||
<copydir src="${libDir}" dest="${releaseDir}/lib" excludes="junit-*.jar" />
|
<copydir src="${libDir}" dest="${releaseDir}/lib" excludes="junit-*.jar" />
|
||||||
<copydir src="${gitRoot}/web-resource" dest="${releaseDir}/web-resource" />
|
<copydir src="resource/web" dest="${releaseDir}/resource/web" />
|
||||||
<jar destfile="${releaseDir}/hal.jar" basedir="${buildDir}" />
|
<jar destfile="${releaseDir}/hal.jar" basedir="${buildDir}" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 106 KiB After Width: | Height: | Size: 106 KiB |
|
|
@ -86,7 +86,7 @@ public class HalServer {
|
||||||
new UserConfigHttpPage(),
|
new UserConfigHttpPage(),
|
||||||
};
|
};
|
||||||
HttpServer http = new HttpServer(HalContext.getIntegerProperty("http_port"));
|
HttpServer http = new HttpServer(HalContext.getIntegerProperty("http_port"));
|
||||||
http.setDefaultPage(new HttpFilePage(FileUtil.find("web-resource/")));
|
http.setDefaultPage(new HttpFilePage(FileUtil.find("resource/web/")));
|
||||||
http.setPage("/", pages[0]);
|
http.setPage("/", pages[0]);
|
||||||
http.setPage(HalAlertManager.getInstance().getUrl(), HalAlertManager.getInstance());
|
http.setPage(HalAlertManager.getInstance().getUrl(), HalAlertManager.getInstance());
|
||||||
for(HalHttpPage page : pages){
|
for(HalHttpPage page : pages){
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ import java.util.Map;
|
||||||
* Created by Ziver on 2015-12-10.
|
* Created by Ziver on 2015-12-10.
|
||||||
*/
|
*/
|
||||||
public abstract class HalHttpPage implements HttpPage{
|
public abstract class HalHttpPage implements HttpPage{
|
||||||
private static final String TEMPLATE = "web-resource/main_index.tmpl";
|
private static final String TEMPLATE = "resource/web/main_index.tmpl";
|
||||||
private static HalNavigation rootNav = new HalNavigation();
|
private static HalNavigation rootNav = new HalNavigation();
|
||||||
private static HalNavigation userNav = new HalNavigation();
|
private static HalNavigation userNav = new HalNavigation();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ import zutil.ui.Configurator.ConfigurationParam;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
public class EventConfigHttpPage extends HalHttpPage {
|
public class EventConfigHttpPage extends HalHttpPage {
|
||||||
private static final String TEMPLATE = "web-resource/event_config.tmpl";
|
private static final String TEMPLATE = "resource/web/event_config.tmpl";
|
||||||
|
|
||||||
private class EventDataParams{
|
private class EventDataParams{
|
||||||
public Class clazz;
|
public Class clazz;
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,8 @@ import java.util.Map;
|
||||||
|
|
||||||
public class EventOverviewHttpPage extends HalHttpPage {
|
public class EventOverviewHttpPage extends HalHttpPage {
|
||||||
private static final int HISTORY_LIMIT = 200;
|
private static final int HISTORY_LIMIT = 200;
|
||||||
private static final String OVERVIEW_TEMPLATE = "web-resource/event_overview.tmpl";
|
private static final String OVERVIEW_TEMPLATE = "resource/web/event_overview.tmpl";
|
||||||
private static final String DETAIL_TEMPLATE = "web-resource/event_detail.tmpl";
|
private static final String DETAIL_TEMPLATE = "resource/web/event_detail.tmpl";
|
||||||
|
|
||||||
|
|
||||||
public EventOverviewHttpPage(){
|
public EventOverviewHttpPage(){
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ import java.util.logging.Logger;
|
||||||
*/
|
*/
|
||||||
public class HalAlertManager implements HttpPage {
|
public class HalAlertManager implements HttpPage {
|
||||||
private static final Logger logger = LogUtil.getLogger();
|
private static final Logger logger = LogUtil.getLogger();
|
||||||
private static final String TMPL_PATH = "web-resource/main_alerts.tmpl";
|
private static final String TMPL_PATH = "resource/web/main_alerts.tmpl";
|
||||||
private static final String PAGE_NAME = "alert";
|
private static final String PAGE_NAME = "alert";
|
||||||
private static HalAlertManager instance;
|
private static HalAlertManager instance;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ import zutil.parser.Templator;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
public class PCHeatMapHttpPage extends HalHttpPage {
|
public class PCHeatMapHttpPage extends HalHttpPage {
|
||||||
private static final String TEMPLATE = "web-resource/pc_heatmap.tmpl";
|
private static final String TEMPLATE = "resource/web/pc_heatmap.tmpl";
|
||||||
|
|
||||||
|
|
||||||
public PCHeatMapHttpPage() {
|
public PCHeatMapHttpPage() {
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
public class PCOverviewHttpPage extends HalHttpPage {
|
public class PCOverviewHttpPage extends HalHttpPage {
|
||||||
private static final String TEMPLATE = "web-resource/pc_overview.tmpl";
|
private static final String TEMPLATE = "resource/web/pc_overview.tmpl";
|
||||||
|
|
||||||
public PCOverviewHttpPage() {
|
public PCOverviewHttpPage() {
|
||||||
super("Power;Challenge", "pc_overview");
|
super("Power;Challenge", "pc_overview");
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ import zutil.ui.Configurator.ConfigurationParam;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
public class SensorConfigHttpPage extends HalHttpPage {
|
public class SensorConfigHttpPage extends HalHttpPage {
|
||||||
private static final String TEMPLATE = "web-resource/sensor_config.tmpl";
|
private static final String TEMPLATE = "resource/web/sensor_config.tmpl";
|
||||||
|
|
||||||
private class SensorDataParams{
|
private class SensorDataParams{
|
||||||
public Class clazz;
|
public Class clazz;
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,8 @@ import java.util.Map;
|
||||||
|
|
||||||
public class SensorOverviewHttpPage extends HalHttpPage {
|
public class SensorOverviewHttpPage extends HalHttpPage {
|
||||||
private static final int HISTORY_LIMIT = 200;
|
private static final int HISTORY_LIMIT = 200;
|
||||||
private static final String OVERVIEW_TEMPLATE = "web-resource/sensor_overview.tmpl";
|
private static final String OVERVIEW_TEMPLATE = "resource/web/sensor_overview.tmpl";
|
||||||
private static final String DETAIL_TEMPLATE = "web-resource/sensor_detail.tmpl";
|
private static final String DETAIL_TEMPLATE = "resource/web/sensor_detail.tmpl";
|
||||||
|
|
||||||
|
|
||||||
public SensorOverviewHttpPage(){
|
public SensorOverviewHttpPage(){
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import zutil.parser.Templator;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
public class UserConfigHttpPage extends HalHttpPage {
|
public class UserConfigHttpPage extends HalHttpPage {
|
||||||
private static final String TEMPLATE = "web-resource/user_config.tmpl";
|
private static final String TEMPLATE = "resource/web/user_config.tmpl";
|
||||||
|
|
||||||
|
|
||||||
public UserConfigHttpPage() {
|
public UserConfigHttpPage() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue