Skip to content

Commit

Permalink
publish 0.0.5
Browse files Browse the repository at this point in the history
publish 0.0.5
  • Loading branch information
maotoumao authored Jun 25, 2024
2 parents 106d76d + 8265f42 commit bafe820
Show file tree
Hide file tree
Showing 10 changed files with 417 additions and 8 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
`2024-06.25 v0.0.5`
【修复】修复重启软件后歌单丢失的问题;如果未出现上述问题可忽略此版本更新

`2024-06.16 v0.0.4`

1. 【功能】播放列表支持拖拽排序
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "musicfree-desktop",
"productName": "MusicFree",
"version": "0.0.4",
"version": "0.0.5",
"description": "一个插件化的音乐播放器",
"main": ".webpack/main",
"scripts": {
Expand Down
6 changes: 4 additions & 2 deletions release/version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"version": "0.0.4",
"version": "0.0.5",
"changeLog": [
"【修复】修复重启软件后歌单丢失的问题;如果未出现上述问题可忽略此版本更新",
"--- 以下为 0.0.4 更新 ---",
"1. 【功能】播放列表支持拖拽排序",
"2. 【功能】支持多语言。本次支持简体中文、繁体中文、英文、西班牙语",
"3. 【功能】支持歌词翻译功能(需要插件实现getLyric方法)",
Expand All @@ -12,5 +14,5 @@
"9. 【修复】修复部分情况下本地歌词无法读取的问题",
"10. 【修复】修复 linux 托盘点击无效的问题"
],
"download": ["https://www.123pan.com/s/grz2jv-XimAA.html"]
"download": ["https://www.123pan.com/s/grz2jv-CjmAA.html"]
}
395 changes: 395 additions & 0 deletions res/lang/ru-RU.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/main/tray/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ export async function setupTrayMenu() {
export function setTrayTitle(str: string) {
if (!str || !str.length) {
tray.setTitle("");
return;
}
if (str.length > 7) {
tray?.setTitle(" " + str.slice(0) + "...");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import MusicSheet from "@/renderer/core/music-sheet";
import MusicSheet, { defaultSheet } from "@/renderer/core/music-sheet";
import Base from "../Base";
import "./index.scss";
import { setFallbackAlbum } from "@/renderer/utils/img-on-error";
Expand Down Expand Up @@ -61,7 +61,11 @@ export default function AddMusicToSheet(props: IAddMusicToSheetProps) {
src={sheet.artwork ?? albumImg}
onError={setFallbackAlbum}
></img>
<span>{sheet.title}</span>
<span>
{sheet.id === defaultSheet.id
? t("media.default_favorite_sheet_name")
: sheet.title}
</span>
</div>
))}
</div>
Expand Down
4 changes: 1 addition & 3 deletions src/renderer/core/music-sheet/backend/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ export function getAllStarredSheets() {
export async function queryAllSheets() {
try {
// 读取全部歌单
const allSheets = await musicSheetDB.sheets
.orderBy("$$sortIndex")
.toArray();
const allSheets = await musicSheetDB.sheets.toArray();
const dbDefaultSheet = allSheets.find(
(item) => item.id === defaultSheet.id
);
Expand Down
1 change: 1 addition & 0 deletions src/renderer/core/music-sheet/common/default-sheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ export default {
title: i18n.t("media.default_favorite_sheet_name"),
platform: localPluginName,
musicList: [],
$$sortIndex: -1,
$sortIndex: -1,
};
4 changes: 4 additions & 0 deletions src/shared/global-context/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { BrowserWindow, app, ipcMain } from "electron";
import { IpcRendererEvt } from "./internal/common";
import path from "path";

declare const WORKER_DOWNLOADER_WEBPACK_ENTRY: string;
declare const LOCAL_FILE_WATCHER_WEBPACK_ENTRY: string;
Expand All @@ -18,6 +19,9 @@ export function setupGlobalContext() {
downloads: app.getPath("downloads"),
temp: app.getPath("temp"),
userData: app.getPath("userData"),
res: app.isPackaged
? path.resolve(process.resourcesPath, "res")
: path.resolve(__dirname, "../../res"),
},
platform: process.platform,
};
Expand Down
1 change: 1 addition & 0 deletions src/shared/global-context/type.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export interface IGlobalContext {
userData: string;
temp: string;
downloads: string;
res: string;
};
platform: NodeJS.Platform;
}

0 comments on commit bafe820

Please sign in to comment.