feat: port copy and tps
This commit is contained in:
parent
0abe7386d0
commit
070956ba1a
@ -69,12 +69,14 @@ function Dashboard() {
|
||||
<p className="text-lg">Linked to: {instance.tp.name}</p>
|
||||
)}
|
||||
<div className="card-actions justify-end">
|
||||
<Link
|
||||
to={`/instances/${instance.id}`}
|
||||
className="btn btn-primary"
|
||||
>
|
||||
Learn More
|
||||
</Link>
|
||||
{false && (
|
||||
<Link
|
||||
to={`/instances/${instance.id}`}
|
||||
className="btn btn-primary"
|
||||
>
|
||||
Learn More
|
||||
</Link>
|
||||
)}
|
||||
{instance.tp && (
|
||||
<Link
|
||||
to={`/tps/${instance.tp.id}`}
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { useEffect, useState } from "react";
|
||||
import axios from "axios";
|
||||
import Card from "../component/Card/Card";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
function Instances() {
|
||||
@ -27,12 +26,14 @@ function Instances() {
|
||||
<p className="text-lg">Linked to: {instance.tp.name}</p>
|
||||
)}
|
||||
<div className="card-actions justify-end">
|
||||
<Link
|
||||
to={`/instances/${instance.id}`}
|
||||
className="btn btn-primary"
|
||||
>
|
||||
Learn More
|
||||
</Link>
|
||||
{false && (
|
||||
<Link
|
||||
to={`/instances/${instance.id}`}
|
||||
className="btn btn-primary"
|
||||
>
|
||||
Learn More
|
||||
</Link>
|
||||
)}
|
||||
{instance.tp && (
|
||||
<Link
|
||||
to={`/tps/${instance.tp.id}`}
|
||||
|
@ -82,6 +82,18 @@ function Practical() {
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li className="flex justify-between align-middle items-center">
|
||||
<span>Port:</span>
|
||||
<div
|
||||
className="flex gap-2 items-center"
|
||||
onClick={() => copyText(tp.port)}
|
||||
>
|
||||
<span className="font-medium">{tp.port}</span>
|
||||
<div className="h-8 w-8 hover:bg-base-100 align-middle cursor-pointer flex items-center justify-center rounded">
|
||||
<ClipboardIcon className="size-6" />
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li className="flex justify-between align-middle items-center">
|
||||
<span>Password:</span>
|
||||
<div
|
||||
|
Loading…
x
Reference in New Issue
Block a user