Skip to content

Conversation

Mister-Hope
Copy link
Member

No description provided.

@Mister-Hope Mister-Hope requested a review from Copilot June 4, 2025 06:43
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive JSDoc comments across plugin code and refines both Chinese and English documentation for consistency and clarity.

  • Added JSDoc annotations to plugin, client utilities, and composables
  • Updated inline comments, improved parameter descriptions, and provided usage examples
  • Refined Chinese and English markdown docs, corrected typos, and harmonized phrasing

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
plugins/features/plugin-photo-swipe/src/node/photoSwipePlugin.ts Added JSDoc for the main plugin function
plugins/features/plugin-photo-swipe/src/node/options.ts Adjusted doc comments punctuation
plugins/features/plugin-photo-swipe/src/node/locales.ts Updated plugin description header
plugins/features/plugin-photo-swipe/src/client/utils/createPhotoSwipe.ts Added JSDoc for state interface and factory
plugins/features/plugin-photo-swipe/src/client/typings.ts Added interface documentation
plugins/features/plugin-photo-swipe/src/client/helpers/photo-swipe.ts Documented types and helpers
plugins/features/plugin-photo-swipe/src/client/composables/usePhotoSwipe.ts Added JSDoc for composable and options
docs/zh/plugins/features/photo-swipe.md Improved Chinese docs, fixed typos, and updated examples
docs/plugins/features/photo-swipe.md Improved English docs, fixed typos, and updated examples
.github/copilot-instructions.md Added instructions to ignore VuePress-specific grammar errors
Comments suppressed due to low confidence (3)

docs/zh/plugins/features/photo-swipe.md:100

  • The locale key arrowPrev does not align with the PhotoSwipePluginLocaleData property (likely prev). Please rename it back to prev or update the interface to match.
    arrowPrev: string

docs/plugins/features/photo-swipe.md:105

  • The locale key arrowNext does not align with the PhotoSwipePluginLocaleData property (likely next). Please rename it back to next or update the interface accordingly.
    arrowNext: string

docs/zh/plugins/features/photo-swipe.md:175

  • The frontmatter field photoSwipe may be incorrect if the plugin expects photoswipe (all lowercase). Ensure the key matches the code’s option name to prevent configuration mismatches.
### photoSwipe

@coveralls
Copy link

coveralls commented Jun 4, 2025

Pull Request Test Coverage Report for Build 15435449869

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 59.517%

Totals Coverage Status
Change from base Build 15435431190: 0.0%
Covered Lines: 1358
Relevant Lines: 2058

💛 - Coveralls

@Mister-Hope Mister-Hope merged commit 44bbe5b into main Jun 4, 2025
30 checks passed
@Mister-Hope Mister-Hope deleted the photo-swipe-refine branch June 4, 2025 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants