remove index usage
This commit is contained in:
@@ -2,5 +2,7 @@
|
||||
|
||||
This is the frontend of a web wrapper for Coop Clouds abra CLI, letting users set up and manage VPSs and docker images through a web UI.
|
||||
|
||||
## Still a work in progess!
|
||||
|
||||
## This is built with react, typescript, scss, and vite
|
||||
|
||||
|
||||
@@ -200,9 +200,9 @@ export const Apps: React.FC = () => {
|
||||
</td>
|
||||
</tr>
|
||||
) : (
|
||||
filteredApps.map((app, index) => (
|
||||
filteredApps.map((app) => (
|
||||
<tr
|
||||
key={`${app.server}-${app.appName}-${index}`}
|
||||
key={`${app.server}/${app.appName}`}
|
||||
onClick={() => navigate(`/apps/${app.server}/${app.appName}`)}
|
||||
style={{ cursor: 'pointer' }}
|
||||
>
|
||||
@@ -234,7 +234,7 @@ export const Apps: React.FC = () => {
|
||||
<div className="version-cell">
|
||||
<span className="version">{app.version}</span>
|
||||
{app.chaos === 'true' && (
|
||||
<span className="chaos-badge" title="Chaos mode enabled">☠️</span>
|
||||
<span className="chaos-badge" title="Chaos mode enabled"></span>
|
||||
)}
|
||||
{app.upgrade !== 'latest' && (
|
||||
<span className="upgrade-available" title="Upgrade available">
|
||||
|
||||
@@ -90,7 +90,7 @@ export const Dashboard: React.FC = () => {
|
||||
</div>
|
||||
</button>
|
||||
|
||||
<button onClick={() => navigate('/apps')} className="nav-link bland-button">
|
||||
<button onClick={() => navigate('/servers')} className="nav-link bland-button">
|
||||
<div className="stat-card">
|
||||
<h3>Servers</h3>
|
||||
<p className="stat-number">{servers.length}</p>
|
||||
|
||||
Reference in New Issue
Block a user