Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shelllet committed Dec 18, 2023
1 parent 4f98da9 commit 6573bcf
Show file tree
Hide file tree
Showing 20 changed files with 195 additions and 183 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ jobs:
pwd
mkdir -p /var/www
cp -Rf ./docx/* /var/www
wget -P /var/www/_media/simple/ --content-disposition https://winui.net/simple/v3/download
if ! [-f /var/www/_media/winui++${{ vars.VERSION }}-setup.x64.exe]; then
curl -L --create-dirs -o winui++${{ vars.VERSION }}-setup.x64.exe --output-dir /var/www/_media https://winui.net/simple/v3/download
fi
sudo chown -R caddy:caddy /var/www/_media
shell: bash
4 changes: 2 additions & 2 deletions docx/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

1. *工作线程* 动作支持选择是否立即运行。
2. *监听鼠标* 动作支持鼠标侧键。
3. *For*(循环)动作名称变更为 *ForEach*(迭代)动作,功能不变。
4. *IterParam*(迭代参数)动作名称变更为 *ParamGet*(参数获取)动作,并支持设置默认参数,功能不变。
3. *For*(循环)动作名称变更为 *Iterate*(迭代)动作,功能不变。
4. *IterParam*(迭代参数)动作名称变更为 *Param*(参数)动作,并支持设置默认参数,功能不变。
5. 增加 *StandardPath*(标准路径)动作,用来表示系统常用路径。

### Deprecated:
Expand Down
18 changes: 10 additions & 8 deletions docx/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
- [状态切换](./actions/async/WorkReset.md)
- [等待事件](./actions/async/WhenEvent.md)
- [异步等待](./actions/async/WorkWait.md)
- 文件
- 文件系统
- [读取文件](./actions/filesystem/FileRead.md)
- [文件写入](./actions/filesystem/FileWrite.md)
- [按行读取](./actions/filesystem/ReadLines.md)
Expand All @@ -44,6 +44,7 @@
- [搜索文件](./actions/filesystem/FileQuery.md)
- [遍历文件](./actions/filesystem/DirectoryIterator.md)
- [文件复制](./actions/filesystem/CopyFile.md)
- [标准路径](./actions/filesystem/StandardPath.md)
- 键盘
- [发送按键](./actions/keyboard/SendKey.md)
- [发送文本](./actions/keyboard/SendText.md)
Expand Down Expand Up @@ -118,14 +119,14 @@
- [相机图像](./actions/media/VideoFrame.md)
- 网络
- [文件下载](./actions/network/HttpDownload.md)
- [视频下载](./actions/network/YoutubeDownload.md)
- [视频下载](./actions/network/VideoDownload.md)
- [HEAD 请求](./actions/network/HttpHead.md)
- [GET 请求](./actions/network/HttpGet.md)
- [POST 请求](./actions/network/HttpPost.md)
- [商品监听](./actions/network/TcpListen.md)
- [数据发送](./actions/network/TcpSend.md)
- [数据接收](./actions/network/TcpReceive.md)
- [服务连接](./actions/network/TcpConnect.md)
- [网络服务](./actions/network/NetworkListen.md)
- [网络发送](./actions/network/NetworkSend.md)
- [网络接收](./actions/network/NetworkReceive.md)
- [服务连接](./actions/network/NetworkConnect.md)
- 统计分析
- [文档](./actions/xml/XmlLoadDocument.md)
- [获取节点](./actions/xml/XmlGetNodeList.md)
Expand All @@ -135,7 +136,7 @@
- [保存](./actions/xml/XmlSaveDocument.md)
- [读取 Json](./actions/json/ReadJson.md)
- 逻辑
- [迭代](./actions/control/ForEach.md)
- [迭代](./actions/control/Iterate.md)
- [判断](./actions/control/If.md)
- [判空](./actions/control/IsEmpty.md)
- [调用](./actions/control/Invoke.md)
Expand All @@ -150,7 +151,7 @@
- [算术运行](./actions/control/ArithmeticCalculate.md)
- [逻辑运算](./actions/control/LogicalOperator.md)
- [关系运算](./actions/control/RelationalOperator.md)
- [参数获取](./actions/control/ParamGet.md)
- [参数](./actions/control/Param.md)
- 算法
- [分割字符串](./actions/algorithm/SplitString.md)
- [非零像素点](./actions/algorithm/FindNonZero.md)
Expand Down Expand Up @@ -258,6 +259,7 @@
- [Timer](./types/Timer.md)
- [Thread](./types/Thread.md)
- [Keyboard](./types/Keyboard.md)
- [主机地址](./types/HostAddress.md)
- 枚举类型
- [ThresholdTypes](./enums/ThresholdTypes.md)
- [Directions](./enums/Directions.md)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 循环
循环,主要用来迭代容器
# 迭代
用来迭代相应的列表数据,遍历列表的每一个元素,也可称为*循环*

![action](./images/2022-11-17_184608.png ':size=90%')

Expand Down
29 changes: 29 additions & 0 deletions docx/actions/control/Param.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 参数
用于获取由父动作传入子动作的数据。例如,在迭代动作的子动作中添加该动作,便可获取被迭代的每个元素值。

![Param](./images/2022-11-17_184608.png ':size=90%')

## 子流程

> 不支持
## 运行参数




## 输出

>

## 脚本调用

```python
import simple


```

## 示例

29 changes: 0 additions & 29 deletions docx/actions/control/ParamGet.md

This file was deleted.

35 changes: 35 additions & 0 deletions docx/actions/network/NetworkConnect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 服务连接
连接网络服务端。

* *UDP* 是无连接协议,因此 基于*UDP* 协议的网络,可以直接发送或者接收数据。

![NetworkConnect](./images/07.png ':size=90%')

## 子流程
> 不支持
## 运行参数


* 主机
> 服务器地址,通常包含 *IP* 和端口。参考:[HostAddress](../types/HostAddress.md)
* 类型
> 网络协议。
## 输出
> 套接字,可用于读取或者发送数据,*UDP*协议,参考:[UDPSocket](../types/UDPSocket.md)*TCP*协议,参考:[TCPSocket](../types/TCPSocket.md)
## 脚本调用

```python
import simple;

```

### 示例

*TCP*示例: https://github.com/shelllet/WinUi/blob/main/network/TcpListen.simple
*UDP* 示例: https://github.com/shelllet/WinUi/blob/main/network/UdpListen.simple


34 changes: 34 additions & 0 deletions docx/actions/network/NetworkListen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 网络服务
创建一个网络服务端。

* *UDP* 是无连接协议,因此 基于*UDP* 协议的网络,直接发送或者接收数据即可,无需监听端口。

![NetworkListen](./images/01.png ':size=90%')

## 子动作
> 不支持,客户端连接的 *套接字* 会传入子流程中。如果是 *UDP*, 传递参数:[UDPSocket](../types/UDPSocket.md)。如果是*TCP*, 传递参数: [TCPSocket](../types/TCPSocket.md)
## 运行参数


* 端口
> 监听的主机地址,通常包含 *IP* 地址和端口,*IP* 地址可空。参考:[HostAddress](../types/HostAddress.md)
* 类型
> 网络协议,支持 *TCP* 或者 *UDP* 协议。
## 输出

> 如果是 *TCP* 协议,返回[TcpServer](../types/TcpServer.md) ,如果是*UDP*协议,返回 [UDPSocket](../types/UDPSocket.md)
### 脚本调用

```python
import simple;

```

### 资源

*TCP*示例: https://github.com/shelllet/WinUi/blob/main/network/TcpListen.simple
*UDP* 示例: https://github.com/shelllet/WinUi/blob/main/network/UdpListen.simple

32 changes: 32 additions & 0 deletions docx/actions/network/NetworkReceive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 数据接收
接收网络数据。

![NetworkReceive](./images/05.png ':size=90%')

## 子流程
> 不支持
## 运行参数

* 主机

> 如果是 *TCP* 协议,该参数类型为:[TCPSocket](../types/TCPSocket.md)。如果是*UDP* 协议,该参数是主机地址,参考:[主机地址](../types/HostAddress.md)或者 [UDPSocket](../types/UDPSocket.md)

## 输出

> 收到的数据,参考:[字符串](../types/String.md)

## 脚本调用

```python
import simple;

```

## 示例

*TCP*示例: https://github.com/shelllet/WinUi/blob/main/network/TcpListen.simple
*UDP* 示例: https://github.com/shelllet/WinUi/blob/main/network/UdpListen.simple

33 changes: 33 additions & 0 deletions docx/actions/network/NetworkSend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 数据发送
通过网络,发送数据。

![NetworkSend](./images/03.png ':size=90%')

## 子流程
> 不支持
## 运行参数

* 主机
>> 如果是 *TCP* 协议,该参数类型为:[TCPSocket](../types/TCPSocket.md)。如果是*UDP* 协议,该参数是主机地址,参考:[主机地址](../types/HostAddress.md)或者 [UDPSocket](../types/UDPSocket.md)
* 数据
> 发送的数据。该数据会被序列化成[字符串](../types/String.md)发送。
## 输出

> 如果是 *TCP* 协议,该动作返回:[TCPSocket](../types/TCPSocket.md)。如果是*UDP* 协议,该动作返回: [UDPSocket](../types/UDPSocket.md)
### 脚本调用

```python
import simple;

```

### 示例

*TCP*示例: https://github.com/shelllet/WinUi/blob/main/network/TcpListen.simple
*UDP* 示例: https://github.com/shelllet/WinUi/blob/main/network/UdpListen.simple


37 changes: 0 additions & 37 deletions docx/actions/network/TcpConnect.md

This file was deleted.

33 changes: 0 additions & 33 deletions docx/actions/network/TcpListen.md

This file was deleted.

31 changes: 0 additions & 31 deletions docx/actions/network/TcpReceive.md

This file was deleted.

Loading

0 comments on commit 6573bcf

Please sign in to comment.