Closed enzonotario closed 1 month 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 12, 2024 1:40pm |
[!CAUTION]
Review failed
The pull request is closed.
A new Vue component named ThemeConfiguration
has been added to manage theme-related configurations, allowing users to toggle settings like "Group by tags" and "Collapse paths." This component is integrated into existing pages, enhancing the user interface for managing API documentation. Additionally, several new components related to OpenAPI paths and tags have been introduced, including OAPaths
, OAPathsByTags
, and OAMethodBadge
. The configuration for Tailwind CSS and the OpenApi module has also been updated to support these new functionalities.
File Path | Change Summary |
---|---|
dev/.vitepress/theme/components/ThemeConfiguration.vue | New component added for theme configuration with checkboxes for various settings. |
dev/one-page.md | Imported and rendered the new ThemeConfiguration component. |
docs/.vitepress/config.mts | Added alias @dev for easier imports from the dev directory. |
docs/example/one-page.md | Imported and rendered the new ThemeConfiguration component. |
docs/tailwind.config.js | Updated content array to include new paths for Tailwind CSS scanning. |
src/components/Common/OAMethodBadge.vue | New component added to display HTTP method badges. |
src/components/Common/OASpec.vue | Added groupByTags prop and modified rendering logic based on this prop. |
src/components/Path/OAPathEndpoint.vue | Replaced Badge component with OAMethodBadge . |
src/components/Path/OAPaths.vue | New component added for rendering OpenAPI paths. |
src/components/Path/OAPathsByTags.vue | New component added to display paths organized by tags. |
src/components/Path/OAPathsSummary.vue | New component added to summarize API paths. |
src/components/Try/OATryItButton.vue | Enhanced response handling and modified button properties. |
src/components/index.ts | Imported and exported new components OAPaths and OAPathsByTags . |
src/components/ui/button/index.ts | Modified button variants, adding a new primary variant. |
src/composables/useSidebar.ts | Replaced getTags function with openapi.getOperationsTags() in sidebar generation. |
src/composables/useTheme.ts | Introduced new configuration object and methods for managing theme settings. |
src/index.ts | Updated Vue I18n configuration to use the composition API mode. |
src/lib/OpenApi.ts | Added new functions to enhance OpenApi module capabilities related to tags and operations. |
src/style.css | Added new CSS classes and custom properties for theming and method badges. |
tailwind.config.js | Updated content array for Tailwind CSS to include additional paths. |
test/composables/openapi.test.ts | Updated tests to reflect changes in tag retrieval from the OpenApi instance. |
test/composables/useOpenapiWithNoSpec.test.ts | Updated tests to use the OpenApi instance for tag retrieval. |
test/composables/useSidebar.test.ts | Removed test case for the getTags method as it has been removed from the sidebar utility. |
Objective | Addressed | Explanation |
---|---|---|
Group operations into tags groups (#81) | ✅ |
ThemeConfiguration
component, which includes a checkbox for the "Group by tags" option, directly related to the main PR's functionality of managing theme-related configurations.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?
pnpm add https://pkg.pr.new/vitepress-openapi@82
pnpm add https://pkg.pr.new/vitepress-openapi@82
commit: 306a864
@coderabbitai review
Description
Allows to group paths by tags.
Related issues/external references
Closes #81
Types of changes