(control) Add exports view

This commit is contained in:
Viktor Lofgren 2023-10-31 17:08:48 +01:00
parent 659743b39c
commit b7e38cfbae
4 changed files with 11 additions and 0 deletions

View File

@ -262,6 +262,7 @@ public class ControlNodeService {
case "crawl" -> FileStorageType.CRAWL_DATA;
case "processed" -> FileStorageType.PROCESSED_DATA;
case "specs" -> FileStorageType.CRAWL_SPEC;
case "exports" -> FileStorageType.EXPORT;
default -> throw new IllegalArgumentException(view);
};
@ -281,6 +282,7 @@ public class ControlNodeService {
case CRAWL_DATA -> "crawl";
case CRAWL_SPEC -> "specs";
case PROCESSED_DATA -> "processed";
case EXPORT -> "exports";
default -> throw new IllegalStateException(storage.type().toString());
};

View File

@ -52,6 +52,9 @@
<li class="nav-item">
<a href="specs" {{#unless view.specs}}class="nav-link"{{/unless}} {{#if view.specs}}aria-current="page" class="active nav-link"{{/if}}>Specs</a>
</li>
<li class="nav-item">
<a href="exports" {{#unless view.exports}}class="nav-link"{{/unless}} {{#if view.exports}}aria-current="page" class="active nav-link"{{/if}}>Exports</a>
</li>
</nav>
<h1>Storage Base Configuration</h1>

View File

@ -50,6 +50,9 @@
<li class="nav-item">
<a href="specs" {{#unless view.specs}}class="nav-link"{{/unless}} {{#if view.specs}}aria-current="page" class="active nav-link"{{/if}}>Specs</a>
</li>
<li class="nav-item">
<a href="exports" {{#unless view.exports}}class="nav-link"{{/unless}} {{#if view.exports}}aria-current="page" class="active nav-link"{{/if}}>Exports</a>
</li>
</nav>
<h1>Storage Details</h1>

View File

@ -51,6 +51,9 @@
<li class="nav-item">
<a href="specs" {{#unless view.specs}}class="nav-link"{{/unless}} {{#if view.specs}}aria-current="page" class="active nav-link"{{/if}}>Specs</a>
</li>
<li class="nav-item">
<a href="exports" {{#unless view.exports}}class="nav-link"{{/unless}} {{#if view.exports}}aria-current="page" class="active nav-link"{{/if}}>Exports</a>
</li>
</nav>
<table class="table">