Skip to content

[ #904 ] - feat: 新增分享链接格式设置及统一生成函数#907

Merged
kazukokawagawa merged 4 commits intodevfrom
dev-url
Feb 20, 2026
Merged

[ #904 ] - feat: 新增分享链接格式设置及统一生成函数#907
kazukokawagawa merged 4 commits intodevfrom
dev-url

Conversation

@kazukokawagawa
Copy link
Copy Markdown
Collaborator

  • 在设置中新增分享链接格式选项(网页版/移动版)
  • 创建 getShareUrl 函数统一处理分享链接生成逻辑
  • 替换所有硬编码的分享链接为统一的函数调用
  • 修改相关组件导入以使用新的辅助函数

- 在设置中新增分享链接格式选项(网页版/移动版)
- 创建 getShareUrl 函数统一处理分享链接生成逻辑
- 替换所有硬编码的分享链接为统一的函数调用
- 修改相关组件导入以使用新的辅助函数
@kazukokawagawa kazukokawagawa self-assigned this Feb 20, 2026
@kazukokawagawa kazukokawagawa marked this pull request as ready for review February 20, 2026 02:59
Copilot AI review requested due to automatic review settings February 20, 2026 02:59
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @kazukokawagawa, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

此拉取请求旨在优化应用程序中的分享功能。通过引入一个统一的分享链接生成函数,并允许用户自定义分享链接的格式(网页版或移动版),提升了用户体验和代码的灵活性。这一改动使得未来分享链接的维护和扩展变得更加便捷,并确保了链接生成逻辑的一致性。

Highlights

  • 新增分享链接格式设置: 在设置中新增了分享链接格式选项,允许用户选择生成网页版或移动版链接。
  • 统一分享链接生成逻辑: 创建了一个名为 getShareUrl 的辅助函数,用于统一处理所有分享链接的生成逻辑。
  • 替换硬编码链接: 将代码库中所有硬编码的分享链接替换为对新创建的 getShareUrl 函数的调用,提高了代码的可维护性和一致性。
  • 更新组件导入: 修改了多个组件的导入语句,以引入并使用新的 getShareUrl 辅助函数。
Changelog
  • src/components/Menu/CoverMenu.vue
    • 导入了 getShareUrl 辅助函数
    • 在复制分享链接时使用了 getShareUrl 函数
  • src/components/Modal/CopySongInfo.vue
    • 导入了 getShareUrl 辅助函数
    • songLink 计算属性中使用了 getShareUrl 函数
    • 调整了 copyData 函数的调用方式
  • src/components/Player/MainPlayer.vue
    • 导入了 getShareUrl 辅助函数
    • 在歌曲更多选项中复制分享链接时使用了 getShareUrl 函数
  • src/components/Setting/config/general.ts
    • 在“其他设置”部分新增了“分享链接格式”的配置项,允许用户选择“网页版”或“移动版”
  • src/composables/useSongMenu.ts
    • 导入了 getShareUrl 辅助函数
    • 在歌曲菜单中复制分享链接时使用了 getShareUrl 函数
  • src/stores/setting.ts
    • SettingState 接口中新增了 shareUrlFormat 属性,用于存储分享链接格式设置
    • 在设置存储的默认状态中初始化了 shareUrlFormat 为“web”
  • src/utils/helper.ts
    • 新增了 getShareUrl 辅助函数,根据传入的类型、ID和用户设置的格式生成分享链接
  • src/views/Artist/layout.vue
    • 导入了 getShareUrl 辅助函数
    • 在复制艺人分享链接时使用了 getShareUrl 函数
  • src/views/List/album.vue
    • 导入了 getShareUrl 辅助函数
    • 在复制专辑分享链接时使用了 getShareUrl 函数
  • src/views/List/liked.vue
    • 导入了 getShareUrl 辅助函数
    • 在复制歌单分享链接时使用了 getShareUrl 函数
  • src/views/List/playlist.vue
    • 导入了 getShareUrl 辅助函数
    • 在复制歌单分享链接时使用了 getShareUrl 函数
  • src/views/List/radio.vue
    • 导入了 getShareUrl 辅助函数
    • 在复制电台分享链接时使用了 getShareUrl 函数
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

gemini-code-assist[bot]

This comment was marked as outdated.

This comment was marked as outdated.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@kazukokawagawa
Copy link
Copy Markdown
Collaborator Author

#904

@kazukokawagawa kazukokawagawa merged commit 95ad4c6 into dev Feb 20, 2026
3 checks passed
@apoint123 apoint123 deleted the dev-url branch February 22, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants