-
-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(app): 新增用户脚本,可自定义网络脚本添加到本地脚本,并自动载入本地脚本,极大拓展软件功能。
- Loading branch information
Showing
8 changed files
with
636 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
import { appStore } from './src/store'; | ||
|
||
export { RemoteMethods } from './src/tasks/remote.register'; | ||
export type AppStore = typeof appStore; | ||
|
||
export interface UserScripts { | ||
id: number | ||
/** 用户脚本链接 */ | ||
url: string; | ||
/** 用户脚本所执行的文件 */ | ||
runAtFiles: string[] | ||
/** 是否运行在所有页面 */ | ||
runAtAll: boolean; | ||
/** | ||
* 脚本信息 | ||
*/ | ||
info: any | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.