Skip to content

Commit

Permalink
📝 release v0.14.1
Browse files Browse the repository at this point in the history
  • Loading branch information
CodFrm committed Jun 26, 2023
1 parent cb8f447 commit 8cf1bd9
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 11 deletions.
2 changes: 1 addition & 1 deletion deploy/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ ingress:
- path: /
pathType: ImplementationSpecific
tls:
- secretName: scriptcat-docs-tls
- secretName: scriptcat-org-tls
hosts:
- docs.scriptcat.org

Expand Down
17 changes: 17 additions & 0 deletions docs/change/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,23 @@ id: change

另外除了预发布以外,脚本猫每次代码提交合并到主分支后都会在[Github Action](https://github.com/scriptscat/scriptcat/actions/workflows/build.yaml)上打包构建一次扩展,如果你想体验最新或者修复的内容可以前往[Github Action](https://github.com/scriptscat/scriptcat/actions/workflows/build.yaml)页进行下载.

<a name="0.14.1"></a>

## 0.14.1 (2023-06-26)
> 修复几个比较严重的问题,且影响版本广
> 反复储存oldScript对象,数据量过大时可能导致脚本加载失败
### Added

- ✨ 将UserConfig暴露至GM_info对象中 ([#206](https://github.com/scriptscat/scriptcat/issues/206)) [[3de39e7](https://github.com/scriptscat/scriptcat/commit/3de39e78fefefafefdd4efb3e03917cb55f4e4cc)]

### Fixed

- 🐛 修复vscode连接问题与同步问题 [[06c3ef7](https://github.com/scriptscat/scriptcat/commit/06c3ef79d5b59df4268dd8388bf798ef8284c42a)]
- 🐛 修复GM_openInTab默认在后台打开页面的问题 [[7d2a5b2](https://github.com/scriptscat/scriptcat/commit/7d2a5b2a4ffb6d3023ee85ce1b9e7e629ac9d774)]
- 🐛 修复反复储存oldScript对象问题 [[4832a80](https://github.com/scriptscat/scriptcat/commit/4832a80b5a3c553563367892adcdf85e9832fc98)]


<a name="0.14.0"></a>

## 0.14.0 (2023-06-20)
Expand Down
4 changes: 4 additions & 0 deletions docs/dev/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ API 的详细定义,请看`tempermonkey.d.ts`或者内置编辑器提示,文档

## 定义

### GM_info

获取脚本相关信息(参考`tempermonkey.d.ts`且并不完全)

### GM_cookie

必须使用`@connect`声明操作的 host,且经过用户授权才可使用.虽然兼容 TM 的`GM_cookie.list`操作,但是为了统一,不建议这样.
Expand Down
55 changes: 46 additions & 9 deletions docs/dev/cat-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,28 +62,65 @@ declare function CAT_click(x: number, y: number): void;

### CAT_userConfig

> 0.11.0-beta 加入
你可以调用此 API 打开脚本的[用户配置](./config.md)页面

```ts
declare function CAT_userConfig(): void;
```

### CAT_fileStorage🧪

> 0.11.0加入
### CAT_fileStorage

操控脚本同步配置的文件储存源,将会在同步目录下创建一个app/uuid目录供此 API 使用,上传时默认覆盖同名文件.
请注意这是一个试验性质的 API, 后续可能会改变
操控管理器设置的储存系统,将会在目录下创建一个app/uuid目录供此 API 使用,如果指定了baseDir参数,则会使用baseDir作为基础目录

```ts
/**
* 操控管理器设置的储存系统,将会在目录下创建一个app/uuid目录供此 API 使用,如果指定了baseDir参数,则会使用baseDir作为基础目录
* 上传时默认覆盖同名文件
* @param action 操作类型 list 列出指定目录所有文件, upload 上传文件, download 下载文件, delete 删除文件, config 打开配置页, 暂时不提供move/mkdir等操作
* @param details
*/
declare function CAT_fileStorage(
action: "list"|"upload"|"donwload"|"delete",
action: "list",
details: {
path?: string;
// 文件路径
path?: string;
// 基础目录,如果未设置,则将脚本uuid作为目录
baseDir?: string;
onload?: (files: CATType.FileStorageFileInfo[]) => void;
onerror?: (error: CATType.FileStorageError) => void;
}
): void;
declare function CAT_fileStorage(
action: "download",
details: {
file: CATType.FileStorageFileInfo; // 某些平台需要提供文件的hash值,所以需要传入文件信息
onload: (data: Blob) => void;
// onprogress?: (progress: number) => void;
onerror?: (error: CATType.FileStorageError) => void;
// public?: boolean;
}
): void;
declare function CAT_fileStorage(
action: "delete",
details: {
path: string;
onload?: () => void;
onerror?: (error: CATType.FileStorageError) => void;
// public?: boolean;
}
): void;
declare function CAT_fileStorage(
action: "upload",
details: {
path: string;
// 基础目录,如果未设置,则将脚本uuid作为目录
baseDir?: string;
data: Blob;
onload?: () => void;
// onprogress?: (progress: number) => void;
onerror?: (error: CATType.FileStorageError) => void;
// public?: boolean;
}
): void;
declare function CAT_fileStorage(action: "config"): void;
```
2 changes: 1 addition & 1 deletion docs/use/sync.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ id: sync

- [x] WebDAV
- [x] 百度网盘
- [ ] OneDriver
- [x] OneDriver

## 同步

Expand Down

0 comments on commit 8cf1bd9

Please sign in to comment.