Skip to content

Commit 1ac6760

Browse files
committed
🎨 Optimize the code structure
1 parent c89b656 commit 1ac6760

13 files changed

+579
-568
lines changed

Diff for: README_CN.md

+20-13
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,13 @@ Pake 的发展离不开这些 Hacker 们,一起贡献了大量能力,也欢
228228
<sub><b>Pan93412</b></sub>
229229
</a>
230230
</td>
231+
<td align="center">
232+
<a href="https://github.com/jeasonnow">
233+
<img src="https://avatars.githubusercontent.com/u/16950207?v=4" width="90;" alt="jeasonnow"/>
234+
<br />
235+
<sub><b>Santree</b></sub>
236+
</a>
237+
</td>
231238
<td align="center">
232239
<a href="https://github.com/wanghanzhen">
233240
<img src="https://avatars.githubusercontent.com/u/25301012?v=4" width="90;" alt="wanghanzhen"/>
@@ -248,15 +255,15 @@ Pake 的发展离不开这些 Hacker 们,一起贡献了大量能力,也欢
248255
<br />
249256
<sub><b>Essesoul</b></sub>
250257
</a>
251-
</td>
258+
</td></tr>
259+
<tr>
252260
<td align="center">
253261
<a href="https://github.com/AielloChan">
254262
<img src="https://avatars.githubusercontent.com/u/7900765?v=4" width="90;" alt="AielloChan"/>
255263
<br />
256264
<sub><b>Aiello</b></sub>
257265
</a>
258-
</td></tr>
259-
<tr>
266+
</td>
260267
<td align="center">
261268
<a href="https://github.com/m1911star">
262269
<img src="https://avatars.githubusercontent.com/u/4948120?v=4" width="90;" alt="m1911star"/>
@@ -271,13 +278,6 @@ Pake 的发展离不开这些 Hacker 们,一起贡献了大量能力,也欢
271278
<sub><b>Pake Actions</b></sub>
272279
</a>
273280
</td>
274-
<td align="center">
275-
<a href="https://github.com/jeasonnow">
276-
<img src="https://avatars.githubusercontent.com/u/16950207?v=4" width="90;" alt="jeasonnow"/>
277-
<br />
278-
<sub><b>Santree</b></sub>
279-
</a>
280-
</td>
281281
<td align="center">
282282
<a href="https://github.com/QingZ11">
283283
<img src="https://avatars.githubusercontent.com/u/38887077?v=4" width="90;" alt="QingZ11"/>
@@ -328,6 +328,13 @@ Pake 的发展离不开这些 Hacker 们,一起贡献了大量能力,也欢
328328
<sub><b>Fechin</b></sub>
329329
</a>
330330
</td>
331+
<td align="center">
332+
<a href="https://github.com/Milo123459">
333+
<img src="https://avatars.githubusercontent.com/u/50248166?v=4" width="90;" alt="Milo123459"/>
334+
<br />
335+
<sub><b>Milo</b></sub>
336+
</a>
337+
</td>
331338
<td align="center">
332339
<a href="https://github.com/princemaple">
333340
<img src="https://avatars.githubusercontent.com/u/1329716?v=4" width="90;" alt="princemaple"/>
@@ -348,15 +355,15 @@ Pake 的发展离不开这些 Hacker 们,一起贡献了大量能力,也欢
348355
<br />
349356
<sub><b>Null</b></sub>
350357
</a>
351-
</td>
358+
</td></tr>
359+
<tr>
352360
<td align="center">
353361
<a href="https://github.com/liusishan">
354362
<img src="https://avatars.githubusercontent.com/u/33129823?v=4" width="90;" alt="liusishan"/>
355363
<br />
356364
<sub><b>Liusishan</b></sub>
357365
</a>
358-
</td></tr>
359-
<tr>
366+
</td>
360367
<td align="center">
361368
<a href="https://github.com/piaoyidage">
362369
<img src="https://avatars.githubusercontent.com/u/5135405?v=4" width="90;" alt="piaoyidage"/>

Diff for: bin/cli.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ program
3838
.option('--iter-copy-file', 'Copy files when URL is a local file', DEFAULT.iterCopyFile)
3939
.option('--multi-arch', 'Only for Mac, supports both Intel and M1', DEFAULT.multiArch)
4040
.option('--targets <string>', 'Only for Linux, option "deb" or "appimage"', DEFAULT.targets)
41-
.option('--inject [injects...]', 'Inject .js or .css for this app', DEFAULT.inject)
42-
.option('--safe-domain [domains...]', 'Please enter the security domains that need to be configured', DEFAULT.safeDomain)
41+
.option('--inject [injects...]', 'Injection of .js or .css Files', DEFAULT.inject)
42+
.option('--safe-domain [domains...]', 'Domains that Require Security Configuration"', DEFAULT.safeDomain)
4343
.option('--debug', 'Debug mode', DEFAULT.debug)
4444
.version(packageJson.version, '-v, --version', 'Output the current version')
4545
.action(async (url: string, options: PakeCliOptions) => {

Diff for: bin/defaults.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ export const DEFAULT_PAKE_OPTIONS: PakeCliOptions = {
1919
safeDomain: [],
2020
};
2121

22-
// just for cli development
22+
// Just for cli development
2323
export const DEFAULT_DEV_PAKE_OPTIONS: PakeCliOptions & {url: string} = {
2424
...DEFAULT_PAKE_OPTIONS,
2525
url: 'https://weread.qq.com',
26-
name: 'Weread',
27-
}
26+
name: 'WeRead',
27+
safeDomain:['weread.qq.com'],
28+
transparent: true,
29+
}

0 commit comments

Comments
 (0)