Compare commits

...

5 Commits

Author SHA1 Message Date
Jixun Wu d824620472 0.2.6
continuous-integration/drone/push Build is passing Details
2023-12-28 20:39:50 +00:00
Jixun Wu 07d6dba277 build: include commit hash in version.txt 2023-12-28 20:38:45 +00:00
Jixun Wu 8f2d306835 build: include version.txt in dist 2023-12-28 20:36:29 +00:00
Jixun Wu 8df421de64 chore: add related projects 2023-12-28 20:30:10 +00:00
Jixun Wu 98bd618fab docs: make note about metadata editor 2023-12-28 14:18:11 +00:00
4 changed files with 41 additions and 4 deletions

View File

@ -73,12 +73,21 @@
满足上述条件后发起 Pull Request仓库管理员审阅后将合并到主分支。
## 相关项目
- [Unlock Music (Web)](https://git.unlock-music.dev/um/web) - 原始项目
- [Unlock Music (Cli)](https://git.unlock-music.dev/um/cli) - 命令行批量处理版
- [um-react (Electron 前端)](https://github.com/CarlGao4/um-react-electron) - 使用 Electron 框架封装的本地可执行文件。
- [GitHub 下载](https://github.com/CarlGao4/um-react-electron/releases/latest) | [仓库镜像](https://git.unlock-music.dev/CarlGao4/um-react-electron)
有新的项目提交?欢迎[提交 issue][project-issues],请带上项目名称和链接。
## TODO
- 待定
- [ ] 各类算法 [追踪 `crypto` 标签](https://git.unlock-music.dev/um/um-react/issues?labels=67)
- [ ] #7 简易元数据编辑器
- 完成
- [x] #7 ~~简易元数据编辑器~~ 放弃
- [x] #8 ~~添加单元测试~~ 框架加上了,以后慢慢添加更多测试即可。
- [x] #2 解密内容探测 (解密过程)
- [x] #6 文件拖放 (利用 `react-dropzone`?)

View File

@ -1,11 +1,11 @@
{
"name": "um-react",
"private": true,
"version": "0.2.5",
"version": "0.2.6",
"type": "module",
"scripts": {
"start": "vite",
"build": "tsc -p tsconfig.prod.json && vite build",
"build": "tsc -p tsconfig.prod.json && vite build && node scripts/write-version.mjs",
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"format": "prettier -w .",
"test": "vitest run",

14
scripts/write-version.mjs Normal file
View File

@ -0,0 +1,14 @@
/* eslint-env node */
import { readFileSync, writeFileSync } from 'node:fs';
import { fileURLToPath } from 'node:url';
import { dirname } from 'node:path';
import { execSync } from 'node:child_process';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const commitHash = execSync('git rev-parse --short HEAD').toString('utf-8').trim();
const pkgJson = JSON.parse(readFileSync(__dirname + '/../package.json', 'utf-8'));
const pkgVer = `${pkgJson.version ?? 'unknown'}-${commitHash ?? 'unknown'}` + '\n';
writeFileSync(__dirname + '/../dist/version.txt', pkgVer, 'utf-8');

View File

@ -1,4 +1,4 @@
import { Alert, AlertIcon, Container, Flex, Img, ListItem, Text, UnorderedList } from '@chakra-ui/react';
import { Alert, AlertIcon, Code, Container, Flex, Img, ListItem, Text, UnorderedList } from '@chakra-ui/react';
import { ExtLink } from '~/components/ExtLink';
import { Header4 } from '~/components/HelpText/Header4';
import { VQuote } from '~/components/HelpText/VQuote';
@ -86,6 +86,20 @@ export function OtherFAQ() {
</ListItem>
</UnorderedList>
<Header4></Header4>
<UnorderedList>
<ListItem>
<Text>
<ExtLink href="https://github.com/CarlGao4/um-react-electron">
<strong>
<Code>um-react-electron</Code>
</strong>
</ExtLink>
: Electron WindowsLinux Mac
</Text>
</ListItem>
</UnorderedList>
<Header4></Header4>
<Text>
{'欢迎进入 '}