Closed enzonotario closed 3 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 27, 2024 2:22pm |
[!CAUTION]
Review failed
The pull request is closed.
The changes in this pull request enhance the theme configuration functionality by introducing new reactive properties and modifying the template structure in ThemeConfiguration.vue
. The layout of components in one-page.md
and example/one-page.md
is adjusted with a new wrapping <div>
. The useTheme
composable documentation is updated with new properties, and the OAOperation
component simplifies its structure by removing mobile path handling. Additionally, the OAPath
component introduces computed properties for dynamic slot rendering, while the useTheme.ts
file enhances the OperationConfig
interface with optional properties.
File | Change Summary |
---|---|
dev/.vitepress/theme/components/ThemeConfiguration.vue | Added reactive references sticky , params , and initialized availableSlots . Modified template to include sticky behavior and reorganized configuration options. Introduced a watcher for dynamic updates to hidden slots. Scoped styles adjusted for <h3> elements. |
dev/one-page.md, docs/example/one-page.md | Introduced a new <div> wrapping <ThemeConfiguration /> and <OASpec :isDark="isDark" /> components, altering layout with classes relative , flex , flex-col , and gap-4 . |
docs/composables/useTheme.md | Updated documentation to include new configuration options for the operation property, detailing new slots and properties like hiddenSlots and cols . |
src/components/Operation/OAOperation.vue | Removed mobile path handling from the OAOperation component, simplifying its structure while retaining other slot functionalities. |
src/components/Path/OAPath.vue | Added computed properties operationSlots and operationCols for dynamic slot rendering based on theme configuration. Adjusted template for conditional rendering of slots. |
src/composables/useTheme.ts | Enhanced OperationConfig interface by making badges optional and adding new properties: slots , hiddenSlots , and cols . Introduced DEFAULT_OPERATION_SLOTS and new getter/setter functions for managing slots and columns. |
src/types.ts | Modified OperationSlot type by removing 'path-mobile' and commenting out future slot implementations: 'summary' , 'tags' , 'servers' , and 'parameters' . |
src/components/Path/OAPaths.vue | Integrated useTheme to manage lazy rendering based on theme configuration, modifying the :is-lazy prop in the OALazy component. |
src/components/Path/OAPathsByTags.vue | Updated the :is-lazy prop binding to include a check for lazyRendering , enhancing the conditional rendering logic. |
dev/criptoya-argentina/index.md | Modified the behavior of the useTheme function to adjust the request property during the component lifecycle. |
package.json | Added new dependency "@amoutonbrady/lz-string": "^0.1.0" to devDependencies . |
test/composables/useTheme.test.ts | Updated test cases to reflect changes in the useTheme configuration structure, including new properties and their expected behaviors. |
Objective | Addressed | Explanation |
---|---|---|
Enable single column layout for OASpec (91) | ✅ | |
Make child components configurable (91) | ✅ |
ThemeConfiguration.vue
directly relate to the introduction of new configuration options for "Group by tags," which is a feature highlighted in this PR.useTheme
composable updates in this PR include the addition of lazyRendering
, which is relevant to the changes made in ThemeConfiguration.vue
regarding the management of theme configurations.OASpec
and OAOperation
components aligns with the modifications in ThemeConfiguration.vue
, which also involves managing component behavior and layout through configuration options.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
Allows to configure
OAOperation
slots and cols viauseTheme
for better customization.Related issues/external references
Closes #91
Types of changes