Skip to content

Commit

Permalink
✨ feat: 播放页面支持调节音量 #124
Browse files Browse the repository at this point in the history
  • Loading branch information
imsyy committed Jan 12, 2024
1 parent adbda45 commit f4383ba
Show file tree
Hide file tree
Showing 11 changed files with 208 additions and 132 deletions.
17 changes: 0 additions & 17 deletions .github/ISSUE_TEMPLATE/add.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 遇到问题
description: 关于使用过程中遇到的问题
title: 【遇到问题】请填写标题
title: 请填写标题
labels: [bug]
body:
- type: input
Expand Down Expand Up @@ -31,4 +31,4 @@ body:
id: other
attributes:
label: "具体信息"
description: "有需要补充的信息吗?比如控制台的报错什么的"
description: "有需要补充的信息吗?比如控制台的报错什么的( Ctrl + Shift + i 打开控制台 )"
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: 添加功能
url: https://github.com/imsyy/SPlayer/discussions
about: 新的功能建议和提问答疑请到讨论区发起
- name: 转到讨论区
url: https://github.com/imsyy/SPlayer/discussions
about: Issues 用于反馈 Bug, 新的功能建议和提问答疑请到讨论区发起
Expand Down
2 changes: 1 addition & 1 deletion electron.vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default defineConfig(({ mode }) => {
build: {
rollupOptions: {
input: {
index: resolve(__dirname, "electron/preload/index.js"),
index: resolve(__dirname, "electron/preload/index.mjs"),
},
},
},
Expand Down
4 changes: 2 additions & 2 deletions electron/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ class MainProcess {
icon: nativeImage.createFromPath(join(__dirname, "../../public/images/icons/favicon.png")),
// 预加载
webPreferences: {
devTools: is.dev,
preload: join(__dirname, "../preload/index.js"),
// devTools: is.dev,
preload: join(__dirname, "../preload/index.mjs"),
sandbox: false,
webSecurity: false,
hardwareAcceleration: true,
Expand Down
2 changes: 1 addition & 1 deletion electron/main/startNcmServer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const netEaseApi = require("NeteaseCloudMusicApi");
import netEaseApi from "NeteaseCloudMusicApi";

/**
* 启动网易云音乐 API 服务器
Expand Down
File renamed without changes.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "splayer",
"version": "2.0.1",
"version": "2.0.2",
"description": "A minimalist music player",
"main": "./out/main/index.js",
"author": "imsyy",
Expand All @@ -14,6 +14,7 @@
"npm": ">=9.6.7",
"pnpm": ">=8.14.0"
},
"type": "module",
"scripts": {
"format": "prettier --write .",
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts,.vue --fix",
Expand Down Expand Up @@ -70,6 +71,6 @@
"vite": "^5.0.11",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-pwa": "^0.17.4",
"vue": "3.4.4"
"vue": "3.4.8"
}
}
Loading

0 comments on commit f4383ba

Please sign in to comment.