Skip to content

Commit

Permalink
add decode and encode
Browse files Browse the repository at this point in the history
  • Loading branch information
kuaimeizheng committed Dec 14, 2023
1 parent b2e5fde commit f76ae16
Show file tree
Hide file tree
Showing 2 changed files with 126 additions and 0 deletions.
62 changes: 62 additions & 0 deletions docs/documentation/Data/Decode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
title: Decode 解码
sidebar_position: 5
last_update:
author: 蒯美政
---

# Decode

Decodes a text in base64 into an image, JSON or plain text. This is usually needed to when retrieving resources from the Network Request Patch.

将 base64 中的文本解码为图像,JSON 或纯文本。这通常是在从网络请求模块中检索资源时需要的。

<div className="patch-container">
<div className="patch processor">
<h3>Array Sort</h3>
<ul className="inputs">
<li>Text<span></span></li>
</ul>
<ul className="outputs">
<li>Loading<span></span></li>
<li><span></span></li>
</ul>
</div>
</div>

<div className="port-descriptions">
<div className="inputs">

### Input 输入

### Text 文本

A text in base64 encoding that represents either an image, JSON or plain text.

base64 编码的文本,表示图像、JSON 或纯文本。

</div>
<div className="outputs">

### Output 输出

#### Loading 加载

A boolean that is true while the response is loading.

一个布尔值,在加载响应时为真。

#### Output 输出

The response result – image, JSON, or text – depending on the patch type.

响应结果——图像、JSON 或文本——取决于模块类型。

</div>
</div>

------

### Related Patches 相关模块

[Network Request 网络请求](./Network Request)
64 changes: 64 additions & 0 deletions docs/documentation/Data/Encode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
---
title: Encode 编译
sidebar_position: 5
last_update:
author: 蒯美政
---

# Decode

Encodes an image, JSON or plain text into a base64 text. This is usually needed to send resources with the Network Request Patch.

将图像、JSON或纯文本编码为base64文本。这通常需要用网络请求模块发送资源。

<div className="patch-container">
<div className="patch processor">
<h3>Encode</h3>
<ul className="inputs">
<li><span></span></li>
</ul>
<ul className="outputs">
<li>Loading<span></span></li>
<li>Text<span></span></li>
</ul>
</div>
</div>

<div className="port-descriptions">
<div className="inputs">

### Input 输入

### Input 输入

An image, JSON, or text – depending on the patch type..

图像,JSON或文本-取决于模块类型。

</div>
<div className="outputs">

### Output 输出

#### Loading 加载

A boolean that is true while the response is loading.

一个布尔值,在加载响应时为真。

#### Text 文本

The encoded bas64 text..

编码的bas64文本…

</div>
</div>

------

### Related Patches 相关模块

[Network Request 网络请求](./Network Request)

[Decode 解码](./Decode)

0 comments on commit f76ae16

Please sign in to comment.