+1
-1
@@ -3,7 +3,7 @@
|
|||||||
# --- Build (Vite) ---
|
# --- Build (Vite) ---
|
||||||
FROM node:22-alpine AS build
|
FROM node:22-alpine AS build
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY ../../web/package.json ../../web/package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
RUN npm ci
|
RUN npm ci
|
||||||
COPY . .
|
COPY . .
|
||||||
# Même origine : l'API est proxifiée par nginx (cf. nginx.conf), donc URL relative.
|
# Même origine : l'API est proxifiée par nginx (cf. nginx.conf), donc URL relative.
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ export interface Demo {
|
|||||||
status: DemoStatus
|
status: DemoStatus
|
||||||
namespace: string
|
namespace: string
|
||||||
url: string
|
url: string
|
||||||
|
type_abonnement?: string
|
||||||
created_at: string
|
created_at: string
|
||||||
expires_at: string
|
expires_at: string
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -215,6 +215,7 @@ export function Demos() {
|
|||||||
<Thead>
|
<Thead>
|
||||||
<Tr>
|
<Tr>
|
||||||
<Th>Namespace</Th>
|
<Th>Namespace</Th>
|
||||||
|
<Th>Client</Th>
|
||||||
<Th>Statut</Th>
|
<Th>Statut</Th>
|
||||||
<Th>URL</Th>
|
<Th>URL</Th>
|
||||||
<Th>Expire dans</Th>
|
<Th>Expire dans</Th>
|
||||||
@@ -244,6 +245,13 @@ export function Demos() {
|
|||||||
<Text>{d.namespace}</Text>
|
<Text>{d.namespace}</Text>
|
||||||
</HStack>
|
</HStack>
|
||||||
</Td>
|
</Td>
|
||||||
|
<Td>
|
||||||
|
{d.username ? (
|
||||||
|
<Text>{d.username}</Text>
|
||||||
|
) : (
|
||||||
|
<Text color="gray.400">—</Text>
|
||||||
|
)}
|
||||||
|
</Td>
|
||||||
<Td>
|
<Td>
|
||||||
<Badge colorScheme={statusColor(d.status)}>{statusLabel(d.status)}</Badge>
|
<Badge colorScheme={statusColor(d.status)}>{statusLabel(d.status)}</Badge>
|
||||||
</Td>
|
</Td>
|
||||||
@@ -291,7 +299,7 @@ export function Demos() {
|
|||||||
</Td>
|
</Td>
|
||||||
</Tr>
|
</Tr>
|
||||||
<Tr>
|
<Tr>
|
||||||
<Td p={0} border={isOpen ? undefined : 'none'} colSpan={5}>
|
<Td p={0} border={isOpen ? undefined : 'none'} colSpan={6}>
|
||||||
<Collapse in={isOpen} unmountOnExit animateOpacity>
|
<Collapse in={isOpen} unmountOnExit animateOpacity>
|
||||||
<Box p={4} bg="chakra-subtle-bg" borderTopWidth="1px">
|
<Box p={4} bg="chakra-subtle-bg" borderTopWidth="1px">
|
||||||
{detailsLoading && !details ? (
|
{detailsLoading && !details ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user