mirror of
https://github.com/openziti/zrok.git
synced 2025-06-01 23:55:44 +02:00
endpoints in share details (#141)
This commit is contained in:
parent
2b5e4dda21
commit
ea50a833aa
@ -34,7 +34,14 @@ const ShareDetail = (props) => {
|
|||||||
metrics: row => <Sparklines data={row.value} limit={60} height={10}>
|
metrics: row => <Sparklines data={row.value} limit={60} height={10}>
|
||||||
<SparklinesLine color={"#3b2693"}/>
|
<SparklinesLine color={"#3b2693"}/>
|
||||||
<SparklinesSpots/>
|
<SparklinesSpots/>
|
||||||
</Sparklines>
|
</Sparklines>,
|
||||||
|
frontendEndpoint: row => <a href={row.value} target="_">{row.value}</a>,
|
||||||
|
backendProxyEndpoint: row => {
|
||||||
|
if(row.value.startsWith("http://") || row.value.startsWith("https://")) {
|
||||||
|
return <a href={row.value} target="_">{row.value}</a>;
|
||||||
|
}
|
||||||
|
return row.value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(detail) {
|
if(detail) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user