Skip to content

Commit

Permalink
Update Dockerfile to expose port 8080, add new search dropdown for na…
Browse files Browse the repository at this point in the history
…mespaces, and enhance search page with improved button styles and pagination
  • Loading branch information
EliasDeHondt committed Jan 14, 2025
1 parent 551e8d5 commit 8f985a3
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 10 deletions.
2 changes: 1 addition & 1 deletion App/Frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ COPY ./js /usr/share/nginx/html/js
COPY ./pages /usr/share/nginx/html/pages
COPY ./manifest.json /usr/share/nginx/html/manifest.json

EXPOSE 80
EXPOSE 8080

CMD ["nginx", "-g", "daemon off;"]
6 changes: 4 additions & 2 deletions App/Frontend/css/search.css
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@
}

.search-dropdown1,
.search-dropdown2 {
.search-dropdown2,
.search-dropdown3 {
position: relative;
display: inline-block;
width: 100%;
Expand Down Expand Up @@ -178,7 +179,8 @@
}

.search-dropdown1.show .search-dropdown-menu,
.search-dropdown2.show .search-dropdown-menu {
.search-dropdown2.show .search-dropdown-menu,
.search-dropdown3.show .search-dropdown-menu {
display: block;
}

Expand Down
2 changes: 1 addition & 1 deletion App/Frontend/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# @since 01/01/2025 #
#################################
server {
listen 80;
listen 8080;
server_name localhost;

root /usr/share/nginx/html;
Expand Down
8 changes: 8 additions & 0 deletions App/Frontend/includes/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@
<span class="cursor-pointer">Settings</span>
</a>
</li>
<li class="nav-menu-item">
<a href="https://k10s.eliasdh.com">
<svg viewBox="0 0 24 24">
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z">
</svg>
<span class="cursor-pointer">K10s</span>
</a>
</li>
<li class="nav-menu-item">
<a href="/pages/login.html">
<svg viewBox="0 0 52 52" class="cursor-pointer">
Expand Down
23 changes: 17 additions & 6 deletions App/Frontend/pages/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<section class="search-header-section3">
<article class="search-header-article3">
<section class="search-dropdown1">
<button class="search-dropdown-button cursor-pointer" onclick="toggleDropdown('.search-dropdown1')">Select Node</button>
<button class="search-dropdown-button cursor-pointer" onclick="toggleDropdown('.search-dropdown1')">Node</button>
<ul class="search-dropdown-menu cursor-pointer">
<li class="cursor-pointer" onclick="toggleDropdown('.search-dropdown1')">None</li>
<li class="cursor-pointer" onclick="toggleDropdown('.search-dropdown1')">Node A</li>
Expand All @@ -55,14 +55,25 @@
</article>
<article class="search-header-article3">
<section class="search-dropdown2">
<button class="search-dropdown-button cursor-pointer" onclick="toggleDropdown('.search-dropdown2')">Select Cluster</button>
<button class="search-dropdown-button cursor-pointer" onclick="toggleDropdown('.search-dropdown2')">Cluster</button>
<ul class="search-dropdown-menu cursor-pointer">
<li class="cursor-pointer" onclick="toggleDropdown('.search-dropdown2')">None</li>
<li class="cursor-pointer" onclick="toggleDropdown('.search-dropdown2')">Cluster A</li>
<li class="cursor-pointer" onclick="toggleDropdown('.search-dropdown2')">Cluster B</li>
</ul>
</section>
</article>
<article class="search-header-article3">
<section class="search-dropdown3">
<button class="search-dropdown-button cursor-pointer" onclick="toggleDropdown('.search-dropdown3')">Namespace</button>
<ul class="search-dropdown-menu cursor-pointer">
<li class="cursor-pointer" onclick="toggleDropdown('.search-dropdown3')">None</li>
<li class="cursor-pointer" onclick="toggleDropdown('.search-dropdown3')">Webserver001</li>
<li class="cursor-pointer" onclick="toggleDropdown('.search-dropdown3')">Database001</li>
<li class="cursor-pointer" onclick="toggleDropdown('.search-dropdown3')">Monitoring001</li>
</ul>
</section>
</article>
</section>
</header>
<!--Header-->
Expand Down Expand Up @@ -270,10 +281,10 @@
</tbody>
</table>
<section class="search-main-pagination">
<button>20</button>
<button>50</button>
<button>100</button>
<button>All</button>
<button class="cursor-pointer">20</button>
<button class="cursor-pointer">50</button>
<button class="cursor-pointer">100</button>
<button class="cursor-pointer">All</button>
</section>
</main>
<!--Main-->
Expand Down

0 comments on commit 8f985a3

Please sign in to comment.