mirror of
https://github.com/hubHarmony/servii-frontend.git
synced 2024-11-18 05:40:31 +00:00
ajout ip
This commit is contained in:
parent
a3e22b4e20
commit
a047d236a3
@ -88,7 +88,7 @@ const CreateServer = ({ user, onCreateServer }) => {
|
||||
value={serverVersion}
|
||||
onChange={(e) => setServerVersion(e.target.value)}
|
||||
>
|
||||
<option value="">Version</option>
|
||||
<option value="1.20.5">Version</option>
|
||||
<option value="1.20.6">1.20.6</option>
|
||||
</select>
|
||||
<button className={styles.btnServCreate} onClick={handleCreateServer}>
|
||||
|
@ -72,27 +72,29 @@ const DashboardPage = ({ user }) => {
|
||||
<Navbar user={user} />
|
||||
{loading ? (
|
||||
<Loading />
|
||||
) : (
|
||||
<div className={styles.cardsContainer}>
|
||||
{servers.length === 0 ? (
|
||||
<NoServer user={user} onCreateServer={handleCreateServer} />
|
||||
) : (
|
||||
servers.map((server, index) => (
|
||||
<ServerCard
|
||||
key={index}
|
||||
status={server.running}
|
||||
version={server.version}
|
||||
name={server.name}
|
||||
framework={server.framework}
|
||||
onRunClick={() => handleRunServer(server.name)}
|
||||
onStopClick={() => handleStopServer(server.name)}
|
||||
onDeleteClick={() => handleDeleteServer(server.name)}
|
||||
subdomain={subdomain}
|
||||
/>
|
||||
))
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
) :
|
||||
<div className={styles.cardsContainer}>
|
||||
<div className={styles.iptitle}>Adresse de connexions à vos serveurs : {subdomain}.servii.fr</div>
|
||||
{servers.length === 0 ? (
|
||||
<NoServer user={user} onCreateServer={handleCreateServer} />
|
||||
) : (
|
||||
servers.map((server, index) => (
|
||||
<ServerCard
|
||||
key={index}
|
||||
status={server.running}
|
||||
version={server.version}
|
||||
name={server.name}
|
||||
framework={server.framework}
|
||||
onRunClick={() => handleRunServer(server.name)}
|
||||
onStopClick={() => handleStopServer(server.name)}
|
||||
onDeleteClick={() => handleDeleteServer(server.name)}
|
||||
subdomain={subdomain}
|
||||
/>
|
||||
)
|
||||
)
|
||||
)}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
@ -25,3 +25,11 @@ html, body {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.iptitle{
|
||||
font-size: 1.5rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-color);
|
||||
font-style: italic;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
Loading…
Reference in New Issue
Block a user