Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MiniApp Widget specification draft #11

Open
wants to merge 40 commits into
base: main
Choose a base branch
from
Open
Changes from 3 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
325ad99
new spec
lumanz Jun 23, 2022
7b29371
update spec
chenyinli Jun 23, 2022
4c6a28a
Merge pull request #1 from chenyinli/main
lumanz Jun 23, 2022
ae3264c
Trigger Netlify
xfq Jun 24, 2022
652230a
Update spec/index.html
lumanz Jun 27, 2022
036fe90
Update spec/index.html
lumanz Jun 27, 2022
afa0d77
Update spec/index.html
lumanz Jun 27, 2022
85026cc
Update index.html
lumanz Jun 27, 2022
237275e
Update spec/index.html
lumanz Jun 27, 2022
077c006
Update spec/index.html
lumanz Jun 27, 2022
23283de
Update index.html
lumanz Jun 27, 2022
e93c60d
Update index.html
xfq Jun 27, 2022
4459717
Update spec/index.html
xfq Jun 27, 2022
fb64181
Update spec/index.html
lumanz Jul 1, 2022
30bf2a2
Update spec/index.html
lumanz Jul 1, 2022
6d4059e
Update index.html
lumanz Jul 20, 2022
18ffabf
Update index.html
lumanz Jul 20, 2022
ec5b4d1
Update index.html
lumanz Jul 20, 2022
c54aff7
Update index.html
lumanz Jul 20, 2022
7d741b0
Update index.html
lumanz Jul 20, 2022
66eff72
Update index.html
lumanz Jul 21, 2022
40ee16b
Update index.html
lumanz Jul 21, 2022
759ae16
Use case deleted
lumanz Aug 18, 2022
58798b2
Update index.html
lumanz Aug 18, 2022
cc2146a
Update index.html
lumanz Aug 18, 2022
5d22d8f
fix some issues in spec doc
chenyinli Aug 24, 2022
f278df9
Merge pull request #2 from chenyinli/main
lumanz Aug 24, 2022
9aaa242
Update index.html
lumanz Nov 17, 2022
4ac70f3
Update index.html
lumanz Nov 17, 2022
a2c6b98
Update index.html
lumanz Nov 17, 2022
db37256
Update index.html
lumanz Nov 17, 2022
8c55eb8
Update spec/index.html
lumanz Nov 24, 2022
63abc90
Update spec/index.html
lumanz Nov 24, 2022
84fa806
Update spec/index.html
lumanz Nov 24, 2022
16e04c5
Update spec/index.html
lumanz Nov 24, 2022
b74b31d
Update spec/index.html
lumanz Nov 24, 2022
31b913a
Update spec/index.html
lumanz Nov 24, 2022
b52a5cf
Update index.html
lumanz Nov 24, 2022
491dfc7
Merge branch 'main' of https://github.com/lumanz/miniapp-widget
lumanz Nov 24, 2022
98b8ff2
Update introduction
lumanz Nov 24, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 10 additions & 3 deletions spec/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ <h3>
it) and are used to display key information to the user and respond to simple
user actions, such as displaying the weather at the user's location, tracking
user's current travel status and providing next actions .</p>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: remove blank space before the period:

next actions .</p>


<p its-locale-filter-list="zh-hans" lang="zh-hans">本标准的内容符合MiniApp Manifest、Packaging、Lifecycle和Addressing的标准要求,除此之外,还规定了MiniApp特有的生命周期事件,以及MiniApp widget与MiniApp或与宿主环境间进行互动交流的要求。</p>

<p its-locale-filter-list="en" lang="en">This specification follows the specifications of MiniApp Manifest, Packaging, Lifecycle and Addressing. In addition, it defines the unique life cycle events of MiniApp and the requirements for the interaction between MiniApp widget and MiniApp or with the host environment.</p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<p its-locale-filter-list="en" lang="en">This specification follows the specifications of MiniApp Manifest, Packaging, Lifecycle and Addressing. In addition, it defines the unique life cycle events of MiniApp and the requirements for the interaction between MiniApp widget and MiniApp or with the host environment.</p>
<p its-locale-filter-list="en" lang="en">This specification follows the specifications of MiniApp Manifest, Packaging, Lifecycle and Addressing. In addition, it defines the unique lifecycle events of MiniApp and the requirements for the interaction between MiniApp widget and MiniApp or with the host environment.</p>




</section>

<section id='terminology'>
Expand Down Expand Up @@ -237,10 +244,10 @@ <h2>

<p its-locale-filter-list="zh-hans" lang="zh-hans">MiniApp widget 沿用 MiniApp page的<a href="https://w3c.github.io/miniapp-lifecycle/#pagestate-enum">PageState enum</a>
和<a href="https://w3c.github.io/miniapp-lifecycle/#miniapp-page-lifecycle-interface-and-callbacks"> 生命周期接口及回调</a>,
MiniApp widget 增加了 update 生命周期事件,具体描述在 6.4 MiniApp widget 更新过程处理。</p>
MiniApp widget 增加了 update 生命周期事件,具体描述在 5.4 MiniApp widget 更新过程处理。</p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
MiniApp widget 增加了 update 生命周期事件,具体描述在 5.4 MiniApp widget 更新过程处理</p>
MiniApp widget 增加了 update 生命周期事件,具体描述在[[[#update-process]]]处理</p>

<p its-locale-filter-list="en" lang="en">MiniApp widget follows the <a href="https://w3c.github.io/miniapp-lifecycle/#pagestate-enum">PageState enum</a>
and <a href="https://w3c.github.io/miniapp-lifecycle/#miniapp-page-lifecycle-interface-and-callbacks">lifecycle
interfaces and callbacks</a> of MiniApp page. The MiniApp widget adds the update lifecycle event, which is described in 6.4.</p>
interfaces and callbacks</a> of MiniApp page. The MiniApp widget adds the update lifecycle event, which is described in 5.4.</p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
interfaces and callbacks</a> of MiniApp page. The MiniApp widget adds the update lifecycle event, which is described in 5.4.</p>
interfaces and callbacks</a> of MiniApp page. The MiniApp widget adds the update lifecycle event, which is described in [[[#update-process]]].</p>


<section id='loading-process'>
<h3>
Expand Down Expand Up @@ -594,7 +601,7 @@ <h4>
</h4>

<p its-locale-filter-list="zh-hans" lang="zh-hans">一些MiniApp Widget 的 UI components和API 可以通过属性和参数对文件进行访问,例如image 组件的的 src 属性:</p>
<p its-locale-filter-list="en" lang="en">MiniApp Widget and MiniApp page can access files through the src attribute of the tag and the File API,Example of tag src attribute:</p>
<p its-locale-filter-list="en" lang="en">UI components and API of some MiniApp widget can access files through properties and parameters, such as the src property of the image component:</p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<p its-locale-filter-list="en" lang="en">UI components and API of some MiniApp widget can access files through properties and parameters, such as the src property of the image component:</p>
<p its-locale-filter-list="en" lang="en">UI components and API of some MiniApp widgets can access files through properties and parameters, such as the `src` attribute of the `image` component:</p>


<pre class="example xml" title="Example: example of src attribute | src 属性示例">
&lt;image src="platform://miniapp/foo/common/example.png" /&gt;
Expand Down