Closed enzonotario closed 2 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
vitepress-theme-openapi | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 18, 2024 3:00am |
Los cambios realizados incluyen la deprecación del endpoint /tickets/{ticketId}/qr
en la especificación OpenAPI, lo que indica que, aunque la funcionalidad sigue disponible, no se recomienda su uso. Se han implementado mejoras en varios componentes de la interfaz de usuario para mostrar visualmente el estado de deprecación, incluyendo la adición de un componente Badge
y estilos condicionales. También se han actualizado los archivos de localización para incluir traducciones del término "Deprecated".
Archivos | Resumen de cambios |
---|---|
docs/public/openapi.json |
Se marcó la operación GET del endpoint /tickets/{ticketId}/qr como deprecada añadiendo "deprecated": true . |
src/components/Common/OAOperation.vue |
Se añadió un componente Badge para indicar operaciones deprecadas y se aplicó un estilo de 'línea tachada' a los encabezados de operaciones deprecadas. Se actualizaron las plantillas pathMobile y path para manejar la propiedad deprecated . |
src/components/Path/OAPath.vue |
Se añadió la propiedad :deprecated a varios componentes en la plantilla, permitiendo que reciban información sobre el estado de deprecación. |
src/components/Path/OAPathEndpoint.vue |
Se añadió una nueva propiedad deprecated que aplica una clase CSS de 'línea tachada' al texto del camino si es verdadero, indicando que el camino está deprecado. |
src/locales/en.json |
Se añadió una nueva entrada "Deprecated": "Deprecated" para mejorar la localización. |
src/locales/es.json |
Se añadió una nueva entrada "Deprecated": "Obsoleto" para proporcionar la traducción en español del término deprecado. |
Objetivo | Abordado | Explicación |
---|---|---|
Soportar rutas deprecadas (#43) | ✅ | |
Renderizar de alguna manera las rutas deprecadas (#43) | ✅ |
src/locales/en.json (1)
`25-25`: **La clave de localización 'Deprecated' se ha añadido correctamente.**src/locales/es.json (1)
`25-25`: **La clave de localización 'Deprecated' se ha añadido correctamente en español.**src/components/Path/OAPathEndpoint.vue (2)
`21-24`: **Propiedad 'deprecated' añadida correctamente a las props.** --- `44-49`: **Aplicación condicional de la clase 'line-through' para indicar rutas obsoletas.**src/components/Path/OAPath.vue (3)
`52-52`: **Propiedad ':deprecated' añadida correctamente para indicar operaciones obsoletas.** --- `66-66`: **Consistente adición de la propiedad ':deprecated' para las rutas móviles.** --- `129-129`: **Propiedad ':deprecated' añadida correctamente para las rutas de escritorio.**src/components/Common/OAOperation.vue (4)
`3-3`: **Se importa el componente 'Badge' necesario para indicar operaciones obsoletas.** --- `63-82`: **Implementación correcta del componente 'Badge' y estilizado del encabezado para indicar operaciones obsoletas.** Se ha añadido un 'Badge' que se muestra cuando la operación está obsoleta y se aplica el estilo 'line-through' al resumen de la operación, mejorando la claridad para el usuario. --- `103-103`: **Propiedad ':deprecated' añadida adecuadamente al componente para las rutas móviles.** --- `258-258`: **Propiedad ':deprecated' añadida adecuadamente al componente para las rutas de escritorio.**docs/public/openapi.json (1)
`348-348`: **La operación 'GET' se ha marcado correctamente como obsoleta en la especificación OpenAPI.**
pnpm add https://pkg.pr.new/vitepress-theme-openapi@49
pnpm add https://pkg.pr.new/vitepress-theme-openapi@49
commit: 03526b3
Looks good to me!
Fixes #43
Summary by CodeRabbit
Nuevas Funciones
/tickets/{ticketId}/qr
como obsoleto, sugiriendo a los usuarios que consideren métodos alternativos.Mejoras en la Localización