Persoenliche Mediazentrale
ulrich
2021-04-04 14baa3d66139d96ace578e4bb0112f7b412eebf1
UI weiter in Arbeit
11 files renamed
2 files modified
23 ■■■■ changed files
src/de/uhilger/mediaz/Server.java 13 ●●●● patch | view | raw | blame | history
src/mediaz_de_DE.properties 10 ●●●● patch | view | raw | blame | history
www/ui/app-menu.css patch | view | raw | blame | history
www/ui/app.css patch | view | raw | blame | history
www/ui/data/menu/hauptmenue.json patch | view | raw | blame | history
www/ui/data/menu/untermenue-1.json patch | view | raw | blame | history
www/ui/data/menu/untermenue-2.json patch | view | raw | blame | history
www/ui/data/tpl/app-menu.tpl patch | view | raw | blame | history
www/ui/data/tpl/dlg-info.tpl patch | view | raw | blame | history
www/ui/hamburger.css patch | view | raw | blame | history
www/ui/index.html patch | view | raw | blame | history
www/ui/js/app-menu.js patch | view | raw | blame | history
www/ui/js/app.js patch | view | raw | blame | history
src/de/uhilger/mediaz/Server.java
@@ -42,7 +42,7 @@
  
  public static final String RB_SERVER_START_MSG = "msgServerStart";
  public static final String RB_WEBROOT = "webroot";
  public static final String RB_UI_ROOT = "uiroot";
  //public static final String RB_UI_ROOT = "uiroot";
  public static final String RB_STOP_SERVER = "stopServer";
  public static final String RB_ABLAGE_TEST = "testAblage";
  public static final String RB_STORE_TEST = "testStore";
@@ -93,13 +93,14 @@
  public void start() throws IOException {
    logger.log(Level.INFO, App.getRs(RB_SERVER_START_MSG), Integer.toString(port));
    
    String ui = App.getInitParameter(App.getRs(App.RB_AP_UI));
    File uiDir = new File(ui);
    String wwwData = App.getInitParameter(App.getRs(App.RB_AP_WWW_DATA));
    File wwwDir = new File(wwwData);
    //String ui = App.getInitParameter(App.getRs(App.RB_AP_UI));
    //File uiDir = new File(ui);
    HttpServer server = HttpServer.create(new InetSocketAddress(port), 0);
    server.createContext(ctx + App.getRs(RB_WEBROOT), new FileHandler(App.getInitParameter(App.getRs(App.RB_AP_WWW_DATA))));
    server.createContext(ctx + App.getRs(RB_UI_ROOT), new FileHandler(uiDir.getAbsolutePath()));
    server.createContext(ctx + App.getRs(RB_WEBROOT), new FileHandler(wwwDir.getAbsolutePath()));
    //server.createContext(ctx + App.getRs(RB_UI_ROOT), new FileHandler(uiDir.getAbsolutePath()));
    server.createContext(ctx + App.getRs(RB_STOP_SERVER), new StopServerHandler());
    server.createContext(ctx + App.getRs(RB_ABLAGE_TEST), new AblageTestHandler());
    server.createContext(ctx + App.getRs(RB_STORE_TEST), new StoreTestHandler());
src/mediaz_de_DE.properties
@@ -6,12 +6,12 @@
appParamCtx=ctx
appParamUi=ui
# API-Endpunkte
# HTTP-Endpunkte
webroot=/
uiroot=/ui
stopServer=/server/stop
testAblage=/test/ablage
testStore=/test/store
# uiroot=/ui
stopServer=/api/server/stop
testAblage=/api/test/ablage
testStore=/api/test/store
slash=/
dash=-
www/ui/app-menu.css
www/ui/app.css
www/ui/data/menu/hauptmenue.json
www/ui/data/menu/untermenue-1.json
www/ui/data/menu/untermenue-2.json
www/ui/data/tpl/app-menu.tpl
www/ui/data/tpl/dlg-info.tpl
www/ui/hamburger.css
www/ui/index.html
www/ui/js/app-menu.js
www/ui/js/app.js