Skip to content

Commit 0a4467e

Browse files
committed
v2.4.2
1 parent 42e7ad3 commit 0a4467e

File tree

1,286 files changed

+79279
-76894
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,286 files changed

+79279
-76894
lines changed

Scripting Documentation.zip

2.18 MB
Binary file not shown.

Scripting Documentation/doc.json

Lines changed: 116 additions & 5 deletions
Large diffs are not rendered by default.

Scripting Documentation/request/index.tsx

Lines changed: 0 additions & 162 deletions
This file was deleted.

Scripting Documentation/request/zh.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,23 @@ class Response {
107107
interface Cookie {
108108
name: string
109109
value: string
110-
attributes: Record<string, string | boolean>
110+
domain: string
111+
path: string
112+
isSecure: boolean
113+
isHTTPOnly: boolean
114+
isSessionOnly: boolean
115+
expiresDate?: Date | null
111116
}
112117
```
113118

114119
- `name`: cookie 名
115120
- `value`: cookie 值
116-
- `attributes`: cookie 属性,包括 `path``domain``expires`
121+
- `domain`: cookie 所属域名
122+
- `path`: cookie 所属路径
123+
- `isSecure`: 是否为安全 cookie
124+
- `isHTTPOnly`: 是否为 HTTPOnly cookie
125+
- `isSessionOnly`: 是否为会话 cookie
126+
- `expiresDate`: cookie 过期时间,可选
117127

118128

119129
#### 方法

Scripting Documentation/script/en.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,21 @@ const urlScheme = Script.createImportScriptsURLScheme([
207207

208208
---
209209

210+
### `hasFullAccess(): boolean`
211+
212+
Determine whether user has full access to the Scripting PRO features.
213+
214+
Returns: `true` if the user has full access to the Scripting PRO features, otherwise `false`.
215+
216+
```ts
217+
if (Script.hasFullAccess()) {
218+
// use Scripting PRO features
219+
Assistant.requestStructedData(...)
220+
}
221+
```
222+
223+
---
224+
210225
## Notes
211226

212227
* Always call `Script.exit()` to properly terminate a script and free memory.

Scripting Documentation/script/zh.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,21 @@ const urlScheme = Script.createImportScriptsURLScheme([
207207

208208
---
209209

210+
### `hasFullAccess(): boolean`
211+
212+
判断用户是否具有完整的 Scripting PRO 访问权限。
213+
214+
返回:`true` 如果用户具有完整的 Scripting PRO 访问权限,否则返回 `false`
215+
216+
```ts
217+
if (Script.hasFullAccess()) {
218+
// 有完整的 Scripting PRO 访问权限
219+
Assistant.requestStructedData(...)
220+
}
221+
```
222+
223+
---
224+
210225
## 注意事项(Notes)
211226

212227
* 请务必调用 `Script.exit()` 正确终止脚本并释放内存资源

Scripting Documentation/views/image/en.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Used for adapting the image resource for light/dark modes. Supported in:
6565
6666
### `NetworkImageProps`
6767
68-
* **`imageUrl`** *(string | DynamicImageSource<string>, required)*
68+
* **`imageUrl`** *(string | DynamicImageSource\<string\>, required)*
6969
The URL of the image to load. Supports dynamic sources via `DynamicImageSource`.
7070
7171
* **`placeholder`** *(VirtualNode, optional)*
@@ -76,15 +76,15 @@ Used for adapting the image resource for light/dark modes. Supported in:
7676
7777
### `FileImageProps`
7878
79-
* **`filePath`** *(string | DynamicImageSource<string>, required)*
79+
* **`filePath`** *(string | DynamicImageSource\<string\>, required)*
8080
The path to the local image file. Supports dynamic sources via `DynamicImageSource`.
8181
8282
* **`resizable`** *(ImageResizable, optional)*
8383
Configures how the image is resized to fit its allocated space.
8484
8585
### `UIImageProps`
8686
87-
* **`image`** *(UIImage | DynamicImageSource<UIImage>, required)*
87+
* **`image`** *(UIImage | DynamicImageSource\<UIImage\>, required)*
8888
A `UIImage` object to display. Supports dynamic sources via `DynamicImageSource`.
8989
9090
* **`resizable`** *(ImageResizable, optional)*

Scripting Documentation/views/image/zh.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ type DynamicImageSource<T> = {
6363
6464
### `NetworkImageProps`
6565
66-
* **`imageUrl`** *(string | DynamicImageSource<string>, 必填)*
66+
* **`imageUrl`** *(string | DynamicImageSource\<string\>, 必填)*
6767
图片的网络 URL 地址。支持使用 `DynamicImageSource` 实现浅色/深色模式下切换图片。
6868
6969
* **`placeholder`** *(VirtualNode, 可选)*
@@ -74,15 +74,15 @@ type DynamicImageSource<T> = {
7474
7575
### `FileImageProps`
7676
77-
* **`filePath`** *(string | DynamicImageSource<string>, 必填)*
77+
* **`filePath`** *(string | DynamicImageSource\<string\>, 必填)*
7878
本地图片文件的路径。支持使用 `DynamicImageSource` 动态切换。
7979
8080
* **`resizable`** *(ImageResizable, 可选)*
8181
设置图像的缩放方式。
8282
8383
### `UIImageProps`
8484
85-
* **`image`** *(UIImage | DynamicImageSource<UIImage>, 必填)*
85+
* **`image`** *(UIImage | DynamicImageSource\<UIImage\>, 必填)*
8686
一个 `UIImage` 对象。支持动态切换 `UIImage` 对象以适应浅色/深色模式。
8787
8888
* **`resizable`** *(ImageResizable, 可选)*

0 commit comments

Comments
 (0)