Converting service to pure page
This commit is contained in:
parent
3a0f40dab9
commit
f2b4cfdec7
23 changed files with 140 additions and 219 deletions
|
|
@ -23,14 +23,12 @@
|
|||
package wa.server.page;
|
||||
|
||||
import wa.server.WAContext;
|
||||
import wa.server.plugin.WAPage;
|
||||
import wa.server.plugin.WAServiceStatus;
|
||||
import zutil.io.file.FileUtil;
|
||||
import zutil.log.LogUtil;
|
||||
import zutil.net.http.HttpHeader;
|
||||
import zutil.parser.DataNode;
|
||||
import zutil.parser.Templator;
|
||||
import zutil.plugin.PluginManager;
|
||||
import zutil.ui.Navigation;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
@ -54,12 +52,11 @@ public class ServiceStatusPage extends WAPage {
|
|||
services = new ArrayList<>();
|
||||
services.add(ss);
|
||||
}
|
||||
public ServiceStatusPage(PluginManager pluginManager){
|
||||
this.services = pluginManager.toArray(WAServiceStatus.class);
|
||||
public ServiceStatusPage(){
|
||||
this.services = WAContext.getPluginManager().toArray(WAServiceStatus.class);
|
||||
|
||||
Navigation nav = WAContext.getRootNav().createSubNav(ServicePage.NAVIGATION_NAME)
|
||||
.createSubNav(NAVIGATION_NAME);
|
||||
nav.setResource(this);
|
||||
Navigation nav = WAContext.getRootNav().createSubNav(WAServicePage.NAVIGATION_NAME)
|
||||
.createSubNav(NAVIGATION_NAME).setWeight(-100);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue