🔧 format code
This commit is contained in:
1
.github/workflows/claude-code-review.yml
vendored
1
.github/workflows/claude-code-review.yml
vendored
@@ -75,4 +75,3 @@ jobs:
|
|||||||
# if: |
|
# if: |
|
||||||
# !contains(github.event.pull_request.title, '[skip-review]') &&
|
# !contains(github.event.pull_request.title, '[skip-review]') &&
|
||||||
# !contains(github.event.pull_request.title, '[WIP]')
|
# !contains(github.event.pull_request.title, '[WIP]')
|
||||||
|
|
||||||
|
|||||||
1
.github/workflows/claude.yml
vendored
1
.github/workflows/claude.yml
vendored
@@ -61,4 +61,3 @@ jobs:
|
|||||||
# Optional: Custom environment variables for Claude
|
# Optional: Custom environment variables for Claude
|
||||||
# claude_env: |
|
# claude_env: |
|
||||||
# NODE_ENV: test
|
# NODE_ENV: test
|
||||||
|
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ If you are new to the command line, you can compile packages online with _GitHub
|
|||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
Prepare your environment before starting. Make sure you have Rust `>=1.89` and Node `>=22` (e.g., `22.11.0`) installed on your computer. *Note: Older versions (Rust ≥1.78, Node ≥16) may also work but latest stable versions are recommended.* For installation guidance, see [Tauri documentation](https://tauri.app/start/prerequisites/).
|
Prepare your environment before starting. Make sure you have Rust `>=1.89` and Node `>=22` (e.g., `22.11.0`) installed on your computer. _Note: Older versions (Rust ≥1.78, Node ≥16) may also work but latest stable versions are recommended._ For installation guidance, see [Tauri documentation](https://tauri.app/start/prerequisites/).
|
||||||
|
|
||||||
If you are unfamiliar with these, it is better to try out the above tool to pack with one click.
|
If you are unfamiliar with these, it is better to try out the above tool to pack with one click.
|
||||||
|
|
||||||
|
|||||||
@@ -178,7 +178,7 @@ pake https://weekly.tw93.fun --name Weekly --hide-title-bar
|
|||||||
|
|
||||||
## 定制开发
|
## 定制开发
|
||||||
|
|
||||||
开始前请确保电脑已经安装了 Rust `>=1.89` 和 Node `>=22 如 22.11.0` 的环境,*注意:较旧的版本(Rust ≥1.78,Node ≥16)也可能可以工作,但推荐使用最新稳定版本。* 此外需参考 [Tauri 文档](https://tauri.app/start/prerequisites/) 快速配置好环境才可以开始使用,假如你太不懂,使用上面的命令行打包会更加合适。
|
开始前请确保电脑已经安装了 Rust `>=1.89` 和 Node `>=22 如 22.11.0` 的环境,_注意:较旧的版本(Rust ≥1.78,Node ≥16)也可能可以工作,但推荐使用最新稳定版本。_ 此外需参考 [Tauri 文档](https://tauri.app/start/prerequisites/) 快速配置好环境才可以开始使用,假如你太不懂,使用上面的命令行打包会更加合适。
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# 安装依赖
|
# 安装依赖
|
||||||
|
|||||||
@@ -178,7 +178,7 @@ pake https://weekly.tw93.fun --name Weekly --hide-title-bar
|
|||||||
|
|
||||||
## 開発
|
## 開発
|
||||||
|
|
||||||
開始する前に、Rust `>=1.89` と Node `>=22` (例: `22.11.0`) がコンピュータにインストールされていることを確認してください。*注意:古いバージョン(Rust ≥1.78、Node ≥16)でも動作する可能性がありますが、最新の安定版の使用をお勧めします。* インストールガイドについては、[Tauri ドキュメント](https://tauri.app/start/prerequisites/)を参照してください。
|
開始する前に、Rust `>=1.89` と Node `>=22` (例: `22.11.0`) がコンピュータにインストールされていることを確認してください。_注意:古いバージョン(Rust ≥1.78、Node ≥16)でも動作する可能性がありますが、最新の安定版の使用をお勧めします。_ インストールガイドについては、[Tauri ドキュメント](https://tauri.app/start/prerequisites/)を参照してください。
|
||||||
|
|
||||||
これらに不慣れな場合は、上記のツールを使用してワンクリックでパッケージを作成することをお勧めします。
|
これらに不慣れな場合は、上記のツールを使用してワンクリックでパッケージを作成することをお勧めします。
|
||||||
|
|
||||||
|
|||||||
2
bin/README.md
vendored
2
bin/README.md
vendored
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Ensure that your Node.js version is 22.0 or higher (e.g., 22.11.0). *Note: Older versions ≥16.0.0 may also work.* Avoid using `sudo` for the installation. If you encounter permission issues with npm, refer to [How to fix npm throwing error without sudo](https://stackoverflow.com/questions/16151018/how-to-fix-npm-throwing-error-without-sudo).
|
Ensure that your Node.js version is 22.0 or higher (e.g., 22.11.0). _Note: Older versions ≥16.0.0 may also work._ Avoid using `sudo` for the installation. If you encounter permission issues with npm, refer to [How to fix npm throwing error without sudo](https://stackoverflow.com/questions/16151018/how-to-fix-npm-throwing-error-without-sudo).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm install pake-cli -g
|
npm install pake-cli -g
|
||||||
|
|||||||
2
bin/README_CN.md
vendored
2
bin/README_CN.md
vendored
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
请确保您的 Node.js 版本为 22 或更高版本(例如 22.11.0)。*注意:较旧的版本 ≥16.0.0 也可能可以工作。* 请避免使用 `sudo` 进行安装。如果 npm 报告权限问题,请参考 [如何在不使用 sudo 的情况下修复 npm 报错](https://stackoverflow.com/questions/16151018/how-to-fix-npm-throwing-error-without-sudo)。
|
请确保您的 Node.js 版本为 22 或更高版本(例如 22.11.0)。_注意:较旧的版本 ≥16.0.0 也可能可以工作。_ 请避免使用 `sudo` 进行安装。如果 npm 报告权限问题,请参考 [如何在不使用 sudo 的情况下修复 npm 报错](https://stackoverflow.com/questions/16151018/how-to-fix-npm-throwing-error-without-sudo)。
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm install pake-cli -g
|
npm install pake-cli -g
|
||||||
|
|||||||
4
bin/utils/url.ts
vendored
4
bin/utils/url.ts
vendored
@@ -35,6 +35,8 @@ export function normalizeUrl(urlToNormalize: string): string {
|
|||||||
new URL(urlWithProtocol);
|
new URL(urlWithProtocol);
|
||||||
return urlWithProtocol;
|
return urlWithProtocol;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
throw new Error(`Your url "${urlWithProtocol}" is invalid: ${(err as Error).message}`);
|
throw new Error(
|
||||||
|
`Your url "${urlWithProtocol}" is invalid: ${(err as Error).message}`,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user