Closed enzonotario closed 4 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
vitepress-openapi | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 26, 2024 6:35pm |
The pull request introduces several updates across various files, primarily focusing on enhancing the useTheme
composable and integrating a new lazy loading component. Key changes include the addition of new properties (avoidCirculars
and lazyRendering
) to the spec
configuration in useTheme
, modifications to components (OAPaths
, OAPathsByTags
) to utilize lazy loading with the new OALazy
component, and the introduction of a new event bus for managing loading events. Additionally, new functionality for handling circular references in JSON formatting is added.
File Path | Change Summary |
---|---|
docs/composables/useTheme.md | Updated useTheme documentation to include avoidCirculars and lazyRendering properties. |
src/composables/useTheme.ts | Added avoidCirculars and lazyRendering to SpecConfig and UseThemeConfig interfaces. |
src/components/Common/Lazy/OALazy.vue | Introduced OALazy component for lazy loading based on browser idle state. |
src/components/Common/Lazy/lazyBus.ts | Added event bus implementation for managing loading events. |
src/components/Path/OAPaths.vue | Modified to utilize OALazy for rendering operations instead of paths. |
src/components/Path/OAPathsByTags.vue | Enhanced rendering logic with OALazy and updated path click handling. |
src/lib/formatJson.ts | Updated to conditionally handle circular references using formatJsonWithCircularRef . |
src/lib/formatJsonWithCircularRef.ts | Introduced function to format JSON while handling circular references. |
src/lib/generateSchemaJson.ts | Added logic to handle circular references in schema generation based on avoidCirculars . |
src/lib/hasExample.ts | Enhanced to check for circular references when processing schemas. |
test/composables/useTheme.test.ts | Updated tests to reflect changes in the useTheme configuration to use reactive references. |
test/lib/formatJsonWithCircularRef.test.ts | Added tests for formatJsonWithCircularRef function to verify handling of circular references. |
useTheme
composable documentation, aligning with the main PR's changes.groupByTags
feature, connecting to updates in the useTheme
composable.Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Description
Related issues/external references
65
Types of changes