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 19, 2024 0:02am |
This pull request includes modifications to three files. In dev/one-page.md
, the import of useRoute
from the vitepress
library and its associated variable declaration have been removed, leaving only the useData
import. In dev/operations/[operationId].md
, the import of useOpenapi
and its variable declaration have also been removed, while retaining the functionality to retrieve operationId
and isDark
. Lastly, in src/components/Path/OAPathsByTags.vue
, the scrollIntoViewWithOffset
function has been updated to change its parameter from selector
to hash
, with additional checks for server-side rendering.
File | Change Summary |
---|---|
dev/one-page.md | Removed import of useRoute and associated variable declaration; retained useData import. |
dev/operations/[operationId].md | Removed import of useOpenapi and associated variable declaration; retained functionality for operationId . |
src/components/Path/OAPathsByTags.vue | Updated scrollIntoViewWithOffset function parameter from selector to hash ; added SSR check. |
useRoute
and its associated variable in the main PR. Both PRs focus on cleaning up unused imports and variables in their respective files.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@96
pnpm add https://pkg.pr.new/vitepress-openapi@96
commit: 0d86645
Description
Adds checks for window/element existence before trigger scrollIntoView.
Related issues/external references
Types of changes