Add Badge Tooltip (#293)

This commit is contained in:
Pascal Fischer
2025-03-21 16:27:20 +01:00
committed by GitHub
parent fcb05855b3
commit 42ef357778
4 changed files with 80 additions and 25 deletions

View File

@@ -211,7 +211,7 @@ echo $response;
---
## List all Network Traffic Events <Badge status="cloud-only" text="Cloud-Only" /> <Badge status="experimental" text="Experimental" /> {{ tag: 'GET' , label: '/api/events/network-traffic' }}
## List all Network Traffic Events <Badge status="cloud-only" text="Cloud-Only" hoverText="This feature is only available in the cloud version of NetBird." /> <Badge status="experimental" text="Experimental" hoverText="This feature is experimental. The endpoint will likely change and does not guarantee backwards compatibility." /> {{ tag: 'GET' , label: '/api/events/network-traffic' }}
<Row>
<Col>

View File

@@ -2,7 +2,7 @@ export const title = 'Ingress Ports'
## List all Port Allocations <Badge status="cloud-only" text="Cloud-Only" /> {{ tag: 'GET' , label: '/api/peers/{peerId}/ingress/ports' }}
## List all Port Allocations <Badge status="cloud-only" text="Cloud-Only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'GET' , label: '/api/peers/{peerId}/ingress/ports' }}
<Row>
<Col>
@@ -226,7 +226,7 @@ echo $response;
---
## Create a Port Allocation <Badge status="cloud-only" text="Cloud-Only" /> {{ tag: 'POST' , label: '/api/peers/{peerId}/ingress/ports' }}
## Create a Port Allocation <Badge status="cloud-only" text="Cloud-Only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'POST' , label: '/api/peers/{peerId}/ingress/ports' }}
<Row>
<Col>
@@ -614,7 +614,7 @@ echo $response;
---
## Retrieve a Port Allocation <Badge status="cloud-only" text="Cloud-Only" /> {{ tag: 'GET' , label: '/api/peers/{peerId}/ingress/ports/{allocationId}' }}
## Retrieve a Port Allocation <Badge status="cloud-only" text="Cloud-Only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'GET' , label: '/api/peers/{peerId}/ingress/ports/{allocationId}' }}
<Row>
<Col>
@@ -830,7 +830,7 @@ echo $response;
---
## Update a Port Allocation <Badge status="cloud-only" text="Cloud-Only" /> {{ tag: 'PUT' , label: '/api/peers/{peerId}/ingress/ports/{allocationId}' }}
## Update a Port Allocation <Badge status="cloud-only" text="Cloud-Only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'PUT' , label: '/api/peers/{peerId}/ingress/ports/{allocationId}' }}
<Row>
<Col>
@@ -1222,7 +1222,7 @@ echo $response;
---
## Delete a Port Allocation <Badge status="cloud-only" text="Cloud-Only" /> {{ tag: 'DELETE' , label: '/api/peers/{peerId}/ingress/ports/{allocationId}' }}
## Delete a Port Allocation <Badge status="cloud-only" text="Cloud-Only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'DELETE' , label: '/api/peers/{peerId}/ingress/ports/{allocationId}' }}
<Row>
<Col>
@@ -1390,7 +1390,7 @@ echo $response;
---
## List all Ingress Peers <Badge status="cloud-only" text="Cloud-Only" /> {{ tag: 'GET' , label: '/api/ingress/peers' }}
## List all Ingress Peers <Badge status="cloud-only" text="Cloud-Only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'GET' , label: '/api/ingress/peers' }}
<Row>
<Col>
@@ -1590,7 +1590,7 @@ echo $response;
---
## Create a Ingress Peer <Badge status="cloud-only" text="Cloud-Only" /> {{ tag: 'POST' , label: '/api/ingress/peers' }}
## Create a Ingress Peer <Badge status="cloud-only" text="Cloud-Only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'POST' , label: '/api/ingress/peers' }}
<Row>
<Col>
@@ -1848,7 +1848,7 @@ echo $response;
---
## Retrieve a Ingress Peer <Badge status="cloud-only" text="Cloud-Only" /> {{ tag: 'GET' , label: '/api/ingress/peers/{ingressPeerId}' }}
## Retrieve a Ingress Peer <Badge status="cloud-only" text="Cloud-Only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'GET' , label: '/api/ingress/peers/{ingressPeerId}' }}
<Row>
<Col>
@@ -2052,7 +2052,7 @@ echo $response;
---
## Update a Ingress Peer <Badge status="cloud-only" text="Cloud-Only" /> {{ tag: 'PUT' , label: '/api/ingress/peers/{ingressPeerId}' }}
## Update a Ingress Peer <Badge status="cloud-only" text="Cloud-Only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'PUT' , label: '/api/ingress/peers/{ingressPeerId}' }}
<Row>
<Col>
@@ -2306,7 +2306,7 @@ echo $response;
---
## Delete a Ingress Peer <Badge status="cloud-only" text="Cloud-Only" /> {{ tag: 'DELETE' , label: '/api/ingress/peers/{ingressPeerId}' }}
## Delete a Ingress Peer <Badge status="cloud-only" text="Cloud-Only" hoverText="This feature is only available in the cloud version of NetBird." /> {{ tag: 'DELETE' , label: '/api/ingress/peers/{ingressPeerId}' }}
<Row>
<Col>