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>
|
<p className="text-lg">Linked to: {instance.tp.name}</p>
|
||||||
)}
|
)}
|
||||||
<div className="card-actions justify-end">
|
<div className="card-actions justify-end">
|
||||||
<Link
|
{false && (
|
||||||
to={`/instances/${instance.id}`}
|
<Link
|
||||||
className="btn btn-primary"
|
to={`/instances/${instance.id}`}
|
||||||
>
|
className="btn btn-primary"
|
||||||
Learn More
|
>
|
||||||
</Link>
|
Learn More
|
||||||
|
</Link>
|
||||||
|
)}
|
||||||
{instance.tp && (
|
{instance.tp && (
|
||||||
<Link
|
<Link
|
||||||
to={`/tps/${instance.tp.id}`}
|
to={`/tps/${instance.tp.id}`}
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import Card from "../component/Card/Card";
|
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
|
|
||||||
function Instances() {
|
function Instances() {
|
||||||
@ -27,12 +26,14 @@ function Instances() {
|
|||||||
<p className="text-lg">Linked to: {instance.tp.name}</p>
|
<p className="text-lg">Linked to: {instance.tp.name}</p>
|
||||||
)}
|
)}
|
||||||
<div className="card-actions justify-end">
|
<div className="card-actions justify-end">
|
||||||
<Link
|
{false && (
|
||||||
to={`/instances/${instance.id}`}
|
<Link
|
||||||
className="btn btn-primary"
|
to={`/instances/${instance.id}`}
|
||||||
>
|
className="btn btn-primary"
|
||||||
Learn More
|
>
|
||||||
</Link>
|
Learn More
|
||||||
|
</Link>
|
||||||
|
)}
|
||||||
{instance.tp && (
|
{instance.tp && (
|
||||||
<Link
|
<Link
|
||||||
to={`/tps/${instance.tp.id}`}
|
to={`/tps/${instance.tp.id}`}
|
||||||
|
@ -82,6 +82,18 @@ function Practical() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</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">
|
<li className="flex justify-between align-middle items-center">
|
||||||
<span>Password:</span>
|
<span>Password:</span>
|
||||||
<div
|
<div
|
||||||
|
Loading…
x
Reference in New Issue
Block a user