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 27, 2024 1:27am |
The changes in this pull request introduce TypeScript support across several Vue components, specifically in the <script setup>
blocks. The hideDefaultFooter
prop is deprecated in favor of a new hideBranding
prop, which includes a default function and issues a warning if the deprecated prop is used. Additionally, new slot handling is implemented, particularly for a branding
slot in the OAPath.vue
component. The import paths for components are also updated to reflect a restructuring of the file organization.
File Path | Change Summary |
---|---|
src/components/Common/OASpec.vue | - Added TypeScript support (lang="ts" ). - Deprecated hideDefaultFooter , added hideBranding with default function. - Updated template for slot handling. |
src/components/Operation/OAOperation.vue | - Added TypeScript support (lang="ts" ). - Deprecated hideDefaultFooter , added hideBranding with computed default. - Updated template for branding slot. |
src/components/Path/OAPath.vue | - Added branding slot to the template. - Populated with props related to the operation. |
src/components/Path/OAPaths.vue | - Added TypeScript support (lang="ts" ). - Updated to use hide-branding prop instead of hide-default-footer . - Defined slots dynamically. |
src/components/Path/OAPathsByTags.vue | - Added TypeScript support (lang="ts" ). - Defined slots dynamically using defineSlots<OperationSlot>() . |
src/components/index.ts | - Updated import path for OAOperation from ./Common/OAOperation.vue to ./Operation/OAOperation.vue . |
src/types.ts | - Introduced new type OperationSlot as a union of string literals for slot names. |
hideDefaultFooter
prop and the introduction of the hideBranding
prop, similar to changes in this PR.hideDefaultFooter
and hideBranding
props in the OAOperation
component, aligning with changes in OASpec.vue
.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
Types of changes