From ffa61687bfdf5acea2de60a68d4ed0b00ed1cac5 Mon Sep 17 00:00:00 2001 From: Su-Yong Date: Sun, 12 Oct 2025 14:28:29 +0900 Subject: [PATCH] chore: improve readability --- .github/ISSUE_TEMPLATE/bug_report.yml | 20 +- .github/ISSUE_TEMPLATE/feature_request.yml | 6 +- .github/workflows/build.yml | 20 +- .github/workflows/winget-submission.yml | 6 +- README.md | 18 +- assets/error.html | 4 +- changelog.md | 3790 ++++++++--------- electron-builder.yml | 12 +- electron.vite.config.mts | 3 +- license | 2 +- package.json | 13 +- pnpm-lock.yaml | 10 - src/config/defaults.ts | 2 +- src/config/store.ts | 2 +- src/i18n/resources/ar.json | 8 +- src/i18n/resources/bg.json | 16 +- src/i18n/resources/bn.json | 4 +- src/i18n/resources/bs.json | 2 +- src/i18n/resources/ca.json | 16 +- src/i18n/resources/cs.json | 16 +- src/i18n/resources/da.json | 6 +- src/i18n/resources/de.json | 14 +- src/i18n/resources/el.json | 14 +- src/i18n/resources/en.json | 16 +- src/i18n/resources/es.json | 16 +- src/i18n/resources/et.json | 4 +- src/i18n/resources/fa.json | 4 +- src/i18n/resources/fi.json | 14 +- src/i18n/resources/fil.json | 16 +- src/i18n/resources/fr.json | 16 +- src/i18n/resources/he.json | 6 +- src/i18n/resources/hi.json | 8 +- src/i18n/resources/hr.json | 12 +- src/i18n/resources/hu.json | 16 +- src/i18n/resources/id.json | 16 +- src/i18n/resources/is.json | 10 +- src/i18n/resources/it.json | 16 +- src/i18n/resources/ja.json | 14 +- src/i18n/resources/ko.json | 10 +- src/i18n/resources/lt.json | 16 +- src/i18n/resources/lv.json | 14 +- src/i18n/resources/ms.json | 16 +- src/i18n/resources/nb.json | 6 +- src/i18n/resources/ne.json | 2 +- src/i18n/resources/nl.json | 16 +- src/i18n/resources/pl.json | 16 +- src/i18n/resources/pt-BR.json | 16 +- src/i18n/resources/pt.json | 16 +- src/i18n/resources/ro.json | 16 +- src/i18n/resources/ru.json | 16 +- src/i18n/resources/si.json | 4 +- src/i18n/resources/sk.json | 6 +- src/i18n/resources/sl.json | 8 +- src/i18n/resources/sr.json | 16 +- src/i18n/resources/sv.json | 16 +- src/i18n/resources/ta.json | 14 +- src/i18n/resources/th.json | 16 +- src/i18n/resources/tr.json | 16 +- src/i18n/resources/uk.json | 16 +- src/i18n/resources/vi.json | 16 +- src/i18n/resources/zh-CN.json | 16 +- src/i18n/resources/zh-TW.json | 16 +- src/index.html | 2 +- src/index.ts | 31 +- src/loader/renderer.ts | 4 +- src/menu.ts | 2 +- src/{youtube-music.css => music-player.css} | 4 +- src/{youtube-music.d.ts => pear-desktop.ts} | 0 src/plugins/api-server/backend/main.ts | 20 +- .../api-server/backend/routes/control.ts | 8 +- .../api-server/backend/routes/websocket.ts | 8 +- src/plugins/audio-compressor.ts | 8 +- src/plugins/captions-selector/back.ts | 2 +- src/plugins/captions-selector/index.ts | 4 +- src/plugins/captions-selector/renderer.tsx | 10 +- src/plugins/crossfade/index.ts | 2 +- src/plugins/custom-output-device/renderer.ts | 8 +- src/plugins/disable-autoplay/index.ts | 4 +- src/plugins/discord/constants.ts | 2 +- src/plugins/discord/index.ts | 6 +- src/plugins/discord/main.ts | 4 +- src/plugins/discord/menu.ts | 8 +- src/plugins/discord/utils.ts | 6 +- src/plugins/downloader/main/index.ts | 33 +- src/plugins/downloader/main/utils.ts | 2 +- src/plugins/downloader/types.ts | 6 +- src/plugins/equalizer/index.ts | 2 +- src/plugins/exponential-volume/index.ts | 8 +- src/plugins/in-app-menu/main.ts | 2 +- src/plugins/in-app-menu/renderer.tsx | 2 +- .../in-app-menu/renderer/PanelItem.tsx | 2 +- src/plugins/in-app-menu/titlebar.css | 4 +- src/plugins/lumiastream/index.ts | 6 +- src/plugins/music-together/index.ts | 4 +- src/plugins/music-together/queue/client.ts | 4 +- src/plugins/music-together/queue/song.ts | 4 +- src/plugins/notifications/interactive.ts | 4 +- src/plugins/notifications/utils.ts | 6 +- .../cpu-tamer/cpu-tamer-by-animationframe.js | 6 +- .../cpu-tamer/cpu-tamer-by-dom-mutation.js | 4 +- .../scripts/rm3/rm3.js | 6 +- src/plugins/picture-in-picture/main.ts | 4 +- src/plugins/picture-in-picture/renderer.tsx | 6 +- src/plugins/playback-speed/renderer.tsx | 4 +- src/plugins/precise-volume/renderer.ts | 8 +- src/plugins/quality-changer/index.tsx | 8 +- src/plugins/scrobbler/index.ts | 2 +- .../scrobbler/services/listenbrainz.ts | 4 +- src/plugins/shortcuts/mpris.ts | 46 +- src/plugins/skip-silences/renderer.ts | 4 +- src/plugins/sponsorblock/index.ts | 2 +- .../synced-lyrics/providers/YTMusic.ts | 9 +- src/plugins/synced-lyrics/renderer/index.ts | 8 +- src/plugins/touchbar/index.ts | 4 +- src/plugins/tuna-obs/index.ts | 4 +- src/plugins/video-toggle/index.tsx | 2 +- src/plugins/visualizer/index.ts | 2 +- src/preload.ts | 2 +- src/providers/app-controls.ts | 8 +- src/providers/prompt-options.ts | 4 +- src/providers/protocol-handler.ts | 2 +- src/providers/song-controls.ts | 50 +- src/providers/song-info-front.ts | 120 +- src/providers/song-info.ts | 20 +- src/renderer.ts | 78 +- src/reset.d.ts | 4 +- src/tray.ts | 4 +- src/types/datahost-get-state.ts | 2 +- src/types/get-player-response.ts | 4 +- src/types/icons.ts | 52 +- ...element.ts => music-player-app-element.ts} | 2 +- ...al.ts => music-player-desktop-internal.ts} | 0 .../{youtube-player.ts => music-player.ts} | 6 +- src/types/player-api-events.ts | 4 +- src/types/plugins.ts | 4 +- src/types/queue.ts | 4 +- tests/index.test.js | 8 +- 137 files changed, 2625 insertions(+), 2626 deletions(-) rename src/{youtube-music.css => music-player.css} (96%) rename src/{youtube-music.d.ts => pear-desktop.ts} (100%) rename src/types/{youtube-music-app-element.ts => music-player-app-element.ts} (69%) rename src/types/{youtube-music-desktop-internal.ts => music-player-desktop-internal.ts} (100%) rename src/types/{youtube-player.ts => music-player.ts} (98%) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index d93ede0a..e6675a47 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -1,5 +1,5 @@ name: Bug Report -description: Report a YouTube Music bug +description: Report a Pear Desktop bug title: "[Bug]: " labels: "bug :beetle:" body: @@ -8,17 +8,17 @@ body: label: Preflight Checklist description: Please ensure you've completed all of the following. options: - - label: I use the latest version of YouTube Music (Application). + - label: I use the latest version of Pear Desktop (Application). required: true - - label: I have searched the [issue tracker](https://github.com/th-ch/youtube-music/issues) for a bug report that matches the one I want to file, without success. + - label: I have searched the [issue tracker](https://github.com/pear-devs/pear-desktop/issues) for a bug report that matches the one I want to file, without success. required: true - - label: I understand that **th-ch/youtube-music has NO affiliation with Google or YouTube** + - label: I understand that **pear-devs/pear-desktop has NO affiliation with Google or YouTube** required: true - type: input attributes: - label: YouTube Music (Application) Version + label: Pear Desktop (Application) Version description: | - What version of the YouTube Music Application are you using? + What version of the Pear Desktop Application are you using? Note: Please check if this issue is reproducible with the latest stable release. placeholder: 2.0.0 @@ -28,7 +28,7 @@ body: attributes: label: Checklists options: - - label: I use the portable version of the YouTube Music Application. + - label: I use the portable version of the Pear Desktop Application. - label: I can reproduce this issue in the [official version of (WEB) YTM](https://music.youtube.com). - type: dropdown attributes: @@ -60,8 +60,8 @@ body: required: true - type: input attributes: - label: Last Known Working YouTube Music (Application) version - description: (If applicable) What is the last version of YouTube Music this worked in? + label: Last Known Working Pear Desktop (Application) version + description: (If applicable) What is the last version of Pear Desktop this worked in? placeholder: 1.20.0 - type: textarea attributes: @@ -92,4 +92,4 @@ body: - type: textarea attributes: label: Additional Information - description: If your problem needs further explanation, or if the issue you're seeing cannot be reproduced in a gist, please add more information here. + description: If your problem needs further explanation, or if the issue you're seeing cannot be reproduced in a gist, please add more information here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index 17443373..2c295cc7 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -1,5 +1,5 @@ name: Feature Request -description: Suggest an idea for YouTube Music +description: Suggest an idea for Pear Desktop title: "[Feature Request]: " labels: "enhancement :sparkles:" body: @@ -8,9 +8,9 @@ body: label: Preflight Checklist description: Please ensure you've completed all of the following. options: - - label: I use the latest version of YouTube Music (Application). + - label: I use the latest version of Pear Desktop (Application). required: true - - label: I have searched the [issue tracker](https://github.com/th-ch/youtube-music/issues) for a feature request that matches the one I want to file, without success. + - label: I have searched the [issue tracker](https://github.com/pear-devs/pear-desktop/issues) for a feature request that matches the one I want to file, without success. required: true - type: textarea attributes: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0d9ee3be..67d473e0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Build YouTube Music +name: Build Pear Desktop on: push: @@ -11,7 +11,7 @@ env: jobs: build: if: github.event.pull_request.draft == false - name: Build YouTube Music + name: Build Pear Desktop runs-on: ${{ matrix.os }} strategy: fail-fast: true @@ -45,20 +45,20 @@ jobs: # Only vite build without release if it is a fork, or it is a pull-request - name: Vite Build - if: github.repository == 'th-ch/youtube-music' && github.event_name == 'pull_request' + if: github.repository == 'pear-devs/pear-desktop' && github.event_name == 'pull_request' run: | pnpm build # Build and release if it's the main repository and is not pull-request - name: Build and release on Mac - if: startsWith(matrix.os, 'macOS') && (github.repository == 'th-ch/youtube-music' && github.event_name != 'pull_request') + if: startsWith(matrix.os, 'macOS') && (github.repository == 'pear-devs/pear-desktop' && github.event_name != 'pull_request') env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | pnpm release:mac - name: Build and release on Linux - if: startsWith(matrix.os, 'ubuntu') && (github.repository == 'th-ch/youtube-music' && github.event_name != 'pull_request') + if: startsWith(matrix.os, 'ubuntu') && (github.repository == 'pear-devs/pear-desktop' && github.event_name != 'pull_request') env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | @@ -72,7 +72,7 @@ jobs: pnpm release:linux - name: Build and release on Windows - if: startsWith(matrix.os, 'windows') && (github.repository == 'th-ch/youtube-music' && github.event_name != 'pull_request') + if: startsWith(matrix.os, 'windows') && (github.repository == 'pear-devs/pear-desktop' && github.event_name != 'pull_request') env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | @@ -88,8 +88,8 @@ jobs: release: runs-on: ubuntu-latest - name: Release YouTube Music - if: github.repository == 'th-ch/youtube-music' && github.ref == 'refs/heads/master' + name: Release Pear Desktop + if: github.repository == 'pear-devs/pear-desktop' && github.ref == 'refs/heads/master' needs: build steps: - uses: actions/checkout@v5 @@ -150,11 +150,11 @@ jobs: name: ${{ env.VERSION_TAG }} replacebody: true body: | - See [changelog](https://github.com/th-ch/youtube-music/blob/master/changelog.md#${{ env.CHANGELOG_ANCHOR }}) for the list of updates and the full diff. + See [changelog](https://github.com/pear-devs/pear-desktop/blob/master/changelog.md#${{ env.CHANGELOG_ANCHOR }}) for the list of updates and the full diff. Thanks to all contributors! 🏅 - (Note for Windows: `YouTube-Music-Web-Setup-${{ env.VERSION_TAG }}.exe` is an installer, and `YouTube-Music-${{ env.VERSION_TAG }}.exe` is a portable version) + (Note for Windows: `Pear-Desktop-Web-Setup-${{ env.VERSION_TAG }}.exe` is an installer, and `Pear-Desktop-${{ env.VERSION_TAG }}.exe` is a portable version) - name: Update changelog if: ${{ env.VERSION_HASH == '' }} diff --git a/.github/workflows/winget-submission.yml b/.github/workflows/winget-submission.yml index b3c21bef..14a499b6 100644 --- a/.github/workflows/winget-submission.yml +++ b/.github/workflows/winget-submission.yml @@ -22,9 +22,9 @@ jobs: - name: Submit package to Windows Package Manager Community Repository uses: vedantmgoyal2009/winget-releaser@main with: - identifier: th-ch.YouTubeMusic - installers-regex: '^YouTube-Music-Web-Setup-[\d\.]+\.exe$' + identifier: pear-devs.PearDesktop + installers-regex: '^Pear-Desktop-Web-Setup-[\d\.]+\.exe$' version: ${{ env.WINGET_TAG_NAME }} release-tag: ${{ inputs.tag_name || github.event.release.tag_name }} token: ${{ secrets.WINGET_ACC_TOKEN }} - fork-user: youtube-music-winget + fork-user: pear-desktop-winget diff --git a/README.md b/README.md index d7aebd4a..ab74706d 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ [![eslint code style](https://img.shields.io/badge/code_style-eslint-5ed9c7.svg?style=for-the-badge)](https://github.com/pear-devs/pear-desktop/blob/master/eslint.config.mjs) [![Build status](https://img.shields.io/github/actions/workflow/status/pear-devs/pear-desktop/build.yml?branch=master&style=for-the-badge)](https://GitHub.com/pear-devs/pear-desktop/releases/) [![GitHub All Releases](https://img.shields.io/github/downloads/pear-devs/pear-desktop/total?style=for-the-badge)](https://GitHub.com/pear-devs/pear-desktop/releases/) - + [![Known Vulnerabilities](https://snyk.io/test/github/pear-devs/pear-desktop/badge.svg)](https://snyk.io/test/github/pear-devs/pear-desktop) @@ -16,19 +16,19 @@ - Native look & feel extension -> [!IMPORTANT] +> [!IMPORTANT] > ⚠️ Disclaimer > > **No Affiliation** -> +> > This project, and its contributors, are not affiliated with, authorized by, endorsed by, or in any way officially connected with Google LLC, YouTube, or any of their subsidiaries or affiliates. **This is an independent, non-profit, and unofficial extension developed by a team of volunteers with the goal of providing a desktop experience.** > > **Trademarks** -> +> > The names "Google" and "YouTube Music", as well as related names, marks, emblems, and images, are registered trademarks of their respective owners. Any use of these trademarks is for identification and reference purposes only and does not imply any association with the trademark holder. We have no intention of infringing upon these trademarks or causing harm to the trademark holders. > > **Limitation of Liability** -> +> > This application (extension) is provided "AS IS", and you use it at your own risk. In no event shall the developers or contributors be liable for any claim, damages, or other liability, including any legal consequences, arising from, out of, or in connection with the software or the use or other dealings in the software. The responsibility for any and all outcomes of using this software rests entirely with the user. ## Content @@ -53,11 +53,11 @@ ## Translation -You can help with translation on [Hosted Weblate](https://hosted.weblate.org/projects/youtube-music/). +You can help with translation on [Hosted Weblate](https://bit.ly/48n5YF7). - - translation status - translation status 2 + + translation status + translation status 2 ## Download diff --git a/assets/error.html b/assets/error.html index 6336b1e9..238b9c64 100644 --- a/assets/error.html +++ b/assets/error.html @@ -2,7 +2,7 @@ - Cannot load YouTube Music + Cannot load Pear Desktop