update AI page
This commit is contained in:
@ -24,14 +24,14 @@
|
||||
<link rel="manifest" href="/site.webmanifest">
|
||||
<meta name="msapplication-TileColor" content="#da532c">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
<script>
|
||||
const menuItems = [
|
||||
{ title: 'GPU Stats', customFunction: 'openGpuStats()' },
|
||||
{ title: 'Live Log', customFunction: 'openLiveLog()' },
|
||||
{ title: 'Top', customFunction: 'openTop()' },
|
||||
{ title: 'Home', url: '/', openNewPage: false }
|
||||
];
|
||||
</script>
|
||||
<script>
|
||||
const menuItems = [
|
||||
{ title: 'GPU Stats', customFunction: 'openGpuStats()' },
|
||||
{ title: 'Live Log', customFunction: 'openLiveLog()' },
|
||||
{ title: 'Top', customFunction: 'openTop()' },
|
||||
{ title: 'Home', url: '/', openNewPage: false }
|
||||
];
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body class="bg-dark text-white">
|
||||
@ -51,35 +51,38 @@
|
||||
<ul class="navbar-nav ms-auto">
|
||||
<% menuItems.forEach(item=> { %>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="<%= item.url %>" <%=item.openNewPage ? 'target="_blank"' : '' %>>
|
||||
<a class="nav-link" href="<%= item.url %>" <%=item.openNewPage ? 'target="_blank"' : ''
|
||||
%>>
|
||||
<%= item.title %>
|
||||
</a>
|
||||
</li>
|
||||
<% }) %>
|
||||
|
||||
<!-- Add a vertical divider -->
|
||||
<li class="nav-item">
|
||||
<span class="nav-link separator">|</span>
|
||||
</li>
|
||||
|
||||
<!-- Inject custom menu items here -->
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#" onclick="openLiveLog()">Live Log</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#" onclick="openTop()">Top</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#" onclick="openGpuStats()">GPU Stats</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#" onclick="openAbout()">About RayAI</a>
|
||||
</li>
|
||||
<% }) %>
|
||||
|
||||
<!-- Add a vertical divider -->
|
||||
<li class="nav-item">
|
||||
<span class="nav-link separator">|</span>
|
||||
</li>
|
||||
|
||||
<!-- Inject custom menu items here as a dropdown -->
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
|
||||
data-bs-toggle="dropdown" aria-expanded="false">
|
||||
Tools
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
|
||||
<li><a class="dropdown-item" href="#" onclick="openLiveLog()">Live Log</a></li>
|
||||
<li><a class="dropdown-item" href="#" onclick="openTop()">Top</a></li>
|
||||
<li><a class="dropdown-item" href="#" onclick="openGpuStats()">GPU Stats</a>
|
||||
</li>
|
||||
<li><a class="dropdown-item" href="#" onclick="openAbout()">About RayAI</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
|
||||
<!-- Alert Messages -->
|
||||
<div id="success-alert" class="alert alert-success mt-3" style="display: none;"></div>
|
||||
<div id="error-alert" class="alert alert-danger mt-3" style="display: none;"></div>
|
||||
@ -95,7 +98,7 @@
|
||||
<!-- Buttons side by side -->
|
||||
<div class="d-flex justify-content-between">
|
||||
<button class="btn btn-secondary" onclick="resetChat()">Reset Chat</button>
|
||||
|
||||
|
||||
<!-- Loading Indicator -->
|
||||
<div id="loading" class="text-center mt-3" style="display: none;">
|
||||
<div class="spinner-border spinner-border-sm text-primary" role="status">
|
||||
|
Reference in New Issue
Block a user