mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-12 23:54:45 +08:00
add edit urls to actions and attributes
This commit is contained in:
parent
4ae83ba4e3
commit
7ee48bb7d5
12 changed files with 51 additions and 78 deletions
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Actions
|
title: Actions
|
||||||
|
edit_url: "https://github.com/nylas/N1/blob/master/src/flux/actions.coffee"
|
||||||
---
|
---
|
||||||
|
|
||||||
<h2>Summary</h2>
|
<h2>Summary</h2>
|
||||||
|
@ -138,7 +139,7 @@ that is not a Store, you can still use the <code>listen</code> method provided b
|
||||||
<p><em>Scope: Window</em></p>
|
<p><em>Scope: Window</em></p>
|
||||||
<pre><code><span class="hljs-comment"># Compose a reply to the last message in the thread</span>
|
<pre><code><span class="hljs-comment"># Compose a reply to the last message in the thread</span>
|
||||||
Actions.composeReply({threadId: <span class="hljs-string">'123'</span>})
|
Actions.composeReply({threadId: <span class="hljs-string">'123'</span>})
|
||||||
|
|
||||||
<span class="hljs-comment"># Compose a reply to a specific message in the thread</span>
|
<span class="hljs-comment"># Compose a reply to a specific message in the thread</span>
|
||||||
Actions.composeReply({threadId: <span class="hljs-string">'123'</span>, messageId: <span class="hljs-string">'123'</span>})
|
Actions.composeReply({threadId: <span class="hljs-string">'123'</span>, messageId: <span class="hljs-string">'123'</span>})
|
||||||
</code></pre></p>
|
</code></pre></p>
|
||||||
|
@ -206,11 +207,11 @@ that is not a Store, you can still use the <code>listen</code> method provided b
|
||||||
<p><em>Scope: Global</em></p>
|
<p><em>Scope: Global</em></p>
|
||||||
<pre><code><span class="hljs-comment"># A simple notification</span>
|
<pre><code><span class="hljs-comment"># A simple notification</span>
|
||||||
Actions.postNotification({message: <span class="hljs-string">"Removed Thread"</span>, <span class="hljs-built_in">type</span>: <span class="hljs-string">'success'</span>})
|
Actions.postNotification({message: <span class="hljs-string">"Removed Thread"</span>, <span class="hljs-built_in">type</span>: <span class="hljs-string">'success'</span>})
|
||||||
|
|
||||||
<span class="hljs-comment"># A sticky notification with actions</span>
|
<span class="hljs-comment"># A sticky notification with actions</span>
|
||||||
NOTIF_ACTION_YES = <span class="hljs-string">'YES'</span>
|
NOTIF_ACTION_YES = <span class="hljs-string">'YES'</span>
|
||||||
NOTIF_ACTION_NO = <span class="hljs-string">'NO'</span>
|
NOTIF_ACTION_NO = <span class="hljs-string">'NO'</span>
|
||||||
|
|
||||||
Actions.postNotification
|
Actions.postNotification
|
||||||
<span class="hljs-built_in">type</span>: <span class="hljs-string">'info'</span>,
|
<span class="hljs-built_in">type</span>: <span class="hljs-string">'info'</span>,
|
||||||
sticky: <span class="hljs-literal">true</span>
|
sticky: <span class="hljs-literal">true</span>
|
||||||
|
@ -229,7 +230,7 @@ that is not a Store, you can still use the <code>listen</code> method provided b
|
||||||
published via <code>postNotification</code>.</p>
|
published via <code>postNotification</code>.</p>
|
||||||
<p><em>Scope: Global</em></p>
|
<p><em>Scope: Global</em></p>
|
||||||
<pre><code><span class="hljs-variable">@_unlisten</span> = Actions.notificationActionTaken.<span class="hljs-function">listen</span>(<span class="hljs-variable">@_onActionTaken</span>, @)
|
<pre><code><span class="hljs-variable">@_unlisten</span> = Actions.notificationActionTaken.<span class="hljs-function">listen</span>(<span class="hljs-variable">@_onActionTaken</span>, @)
|
||||||
|
|
||||||
<span class="hljs-attribute">_onActionTaken</span>: ({notification, action}) ->
|
<span class="hljs-attribute">_onActionTaken</span>: ({notification, action}) ->
|
||||||
if action.id is NOTIF_ACTION_YES
|
if action.id is NOTIF_ACTION_YES
|
||||||
# perform action
|
# perform action
|
||||||
|
@ -253,12 +254,8 @@ that is not a Store, you can still use the <code>listen</code> method provided b
|
||||||
<p><em>Scope: Window</em></p>
|
<p><em>Scope: Window</em></p>
|
||||||
<pre><code>WorkspaceStore.defineSheet <span class="hljs-string">'Thread'</span>, <span class="hljs-list">{}</span>,
|
<pre><code>WorkspaceStore.defineSheet <span class="hljs-string">'Thread'</span>, <span class="hljs-list">{}</span>,
|
||||||
list: [<span class="hljs-string">'MessageList'</span>, <span class="hljs-string">'MessageListSidebar'</span>]
|
list: [<span class="hljs-string">'MessageList'</span>, <span class="hljs-string">'MessageListSidebar'</span>]
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
||||||
@pushSheet(WorkspaceStore.Sheet.<span class="hljs-keyword">Thread</span>)
|
@pushSheet(WorkspaceStore.Sheet.<span class="hljs-keyword">Thread</span>)
|
||||||
</code></pre></p>
|
</code></pre></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Attribute
|
title: Attribute
|
||||||
|
edit_url: "https://github.com/nylas/N1/blob/master/src/flux/attributes/attribute.coffee"
|
||||||
---
|
---
|
||||||
|
|
||||||
<h2>Summary</h2>
|
<h2>Summary</h2>
|
||||||
|
@ -25,12 +26,12 @@ The Attribute class also exposes convenience methods for generating <a href='mat
|
||||||
<h4 id=equal class="function-name">
|
<h4 id=equal class="function-name">
|
||||||
equal(<span class="args"></span>) <a href="#equal" class="link"></a>
|
equal(<span class="args"></span>) <a href="#equal" class="link"></a>
|
||||||
</h4>
|
</h4>
|
||||||
|
|
||||||
<div class="function-description markdown-from-sourecode">
|
<div class="function-description markdown-from-sourecode">
|
||||||
<p></p>
|
<p></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<strong>Returns</strong>
|
<strong>Returns</strong>
|
||||||
<table class="arguments">
|
<table class="arguments">
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -42,12 +43,12 @@ The Attribute class also exposes convenience methods for generating <a href='mat
|
||||||
<h4 id=in class="function-name">
|
<h4 id=in class="function-name">
|
||||||
in(<span class="args"></span>) <a href="#in" class="link"></a>
|
in(<span class="args"></span>) <a href="#in" class="link"></a>
|
||||||
</h4>
|
</h4>
|
||||||
|
|
||||||
<div class="function-description markdown-from-sourecode">
|
<div class="function-description markdown-from-sourecode">
|
||||||
<p></p>
|
<p></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<strong>Returns</strong>
|
<strong>Returns</strong>
|
||||||
<table class="arguments">
|
<table class="arguments">
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -59,12 +60,12 @@ The Attribute class also exposes convenience methods for generating <a href='mat
|
||||||
<h4 id=not class="function-name">
|
<h4 id=not class="function-name">
|
||||||
not(<span class="args"></span>) <a href="#not" class="link"></a>
|
not(<span class="args"></span>) <a href="#not" class="link"></a>
|
||||||
</h4>
|
</h4>
|
||||||
|
|
||||||
<div class="function-description markdown-from-sourecode">
|
<div class="function-description markdown-from-sourecode">
|
||||||
<p></p>
|
<p></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<strong>Returns</strong>
|
<strong>Returns</strong>
|
||||||
<table class="arguments">
|
<table class="arguments">
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -76,12 +77,12 @@ The Attribute class also exposes convenience methods for generating <a href='mat
|
||||||
<h4 id=descending class="function-name">
|
<h4 id=descending class="function-name">
|
||||||
descending(<span class="args"></span>) <a href="#descending" class="link"></a>
|
descending(<span class="args"></span>) <a href="#descending" class="link"></a>
|
||||||
</h4>
|
</h4>
|
||||||
|
|
||||||
<div class="function-description markdown-from-sourecode">
|
<div class="function-description markdown-from-sourecode">
|
||||||
<p></p>
|
<p></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<strong>Returns</strong>
|
<strong>Returns</strong>
|
||||||
<table class="arguments">
|
<table class="arguments">
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -93,12 +94,12 @@ The Attribute class also exposes convenience methods for generating <a href='mat
|
||||||
<h4 id=ascending class="function-name">
|
<h4 id=ascending class="function-name">
|
||||||
ascending(<span class="args"></span>) <a href="#ascending" class="link"></a>
|
ascending(<span class="args"></span>) <a href="#ascending" class="link"></a>
|
||||||
</h4>
|
</h4>
|
||||||
|
|
||||||
<div class="function-description markdown-from-sourecode">
|
<div class="function-description markdown-from-sourecode">
|
||||||
<p></p>
|
<p></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<strong>Returns</strong>
|
<strong>Returns</strong>
|
||||||
<table class="arguments">
|
<table class="arguments">
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -107,4 +108,3 @@ The Attribute class also exposes convenience methods for generating <a href='mat
|
||||||
<tr><td class="markdown-from-sourecode"><p>Returns an ascending <a href='sortorder.html'>SortOrder</a> for this attribute.</p>
|
<tr><td class="markdown-from-sourecode"><p>Returns an ascending <a href='sortorder.html'>SortOrder</a> for this attribute.</p>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: AttributeBoolean
|
title: AttributeBoolean
|
||||||
|
edit_url: "https://github.com/nylas/N1/blob/master/src/flux/attributes/attribute-boolean.coffee"
|
||||||
---
|
---
|
||||||
|
|
||||||
<h2>Summary</h2>
|
<h2>Summary</h2>
|
||||||
|
@ -14,8 +15,3 @@ title: AttributeBoolean
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: AttributeCollection
|
title: AttributeCollection
|
||||||
|
edit_url: "https://github.com/nylas/N1/blob/master/src/flux/attributes/attribute-collection.coffee"
|
||||||
---
|
---
|
||||||
|
|
||||||
<h2>Summary</h2>
|
<h2>Summary</h2>
|
||||||
|
@ -37,12 +38,12 @@ ORDER BY <span class="hljs-escape">`T</span>hread<span class="hljs-escape">`.</s
|
||||||
<h4 id=contains class="function-name">
|
<h4 id=contains class="function-name">
|
||||||
contains(<span class="args"></span>) <a href="#contains" class="link"></a>
|
contains(<span class="args"></span>) <a href="#contains" class="link"></a>
|
||||||
</h4>
|
</h4>
|
||||||
|
|
||||||
<div class="function-description markdown-from-sourecode">
|
<div class="function-description markdown-from-sourecode">
|
||||||
<p></p>
|
<p></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<strong>Returns</strong>
|
<strong>Returns</strong>
|
||||||
<table class="arguments">
|
<table class="arguments">
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -51,4 +52,3 @@ ORDER BY <span class="hljs-escape">`T</span>hread<span class="hljs-escape">`.</s
|
||||||
<tr><td class="markdown-from-sourecode"><p>Returns a <a href='matcher.html'>Matcher</a> for objects containing the provided value.</p>
|
<tr><td class="markdown-from-sourecode"><p>Returns a <a href='matcher.html'>Matcher</a> for objects containing the provided value.</p>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: AttributeDateTime
|
title: AttributeDateTime
|
||||||
|
edit_url: "https://github.com/nylas/N1/blob/master/src/flux/attributes/attribute-datetime.coffee"
|
||||||
---
|
---
|
||||||
|
|
||||||
<h2>Summary</h2>
|
<h2>Summary</h2>
|
||||||
|
@ -22,12 +23,12 @@ title: AttributeDateTime
|
||||||
<h4 id=greaterThan class="function-name">
|
<h4 id=greaterThan class="function-name">
|
||||||
greaterThan(<span class="args"></span>) <a href="#greaterThan" class="link"></a>
|
greaterThan(<span class="args"></span>) <a href="#greaterThan" class="link"></a>
|
||||||
</h4>
|
</h4>
|
||||||
|
|
||||||
<div class="function-description markdown-from-sourecode">
|
<div class="function-description markdown-from-sourecode">
|
||||||
<p></p>
|
<p></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<strong>Returns</strong>
|
<strong>Returns</strong>
|
||||||
<table class="arguments">
|
<table class="arguments">
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -39,12 +40,12 @@ title: AttributeDateTime
|
||||||
<h4 id=lessThan class="function-name">
|
<h4 id=lessThan class="function-name">
|
||||||
lessThan(<span class="args"></span>) <a href="#lessThan" class="link"></a>
|
lessThan(<span class="args"></span>) <a href="#lessThan" class="link"></a>
|
||||||
</h4>
|
</h4>
|
||||||
|
|
||||||
<div class="function-description markdown-from-sourecode">
|
<div class="function-description markdown-from-sourecode">
|
||||||
<p></p>
|
<p></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<strong>Returns</strong>
|
<strong>Returns</strong>
|
||||||
<table class="arguments">
|
<table class="arguments">
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -53,4 +54,3 @@ title: AttributeDateTime
|
||||||
<tr><td class="markdown-from-sourecode"><p>Returns a <a href='matcher.html'>Matcher</a> for objects less than the provided value.</p>
|
<tr><td class="markdown-from-sourecode"><p>Returns a <a href='matcher.html'>Matcher</a> for objects less than the provided value.</p>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: AttributeJoinedData
|
title: AttributeJoinedData
|
||||||
|
edit_url: "https://github.com/nylas/N1/blob/master/src/flux/attributes/attribute-joined-data.coffee"
|
||||||
---
|
---
|
||||||
|
|
||||||
<h2>Summary</h2>
|
<h2>Summary</h2>
|
||||||
|
@ -30,8 +31,3 @@ written to the secondary table.</p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: AttributeNumber
|
title: AttributeNumber
|
||||||
|
edit_url: "https://github.com/nylas/N1/blob/master/src/flux/attributes/attribute-number.coffee"
|
||||||
---
|
---
|
||||||
|
|
||||||
<h2>Summary</h2>
|
<h2>Summary</h2>
|
||||||
|
@ -22,12 +23,12 @@ title: AttributeNumber
|
||||||
<h4 id=greaterThan class="function-name">
|
<h4 id=greaterThan class="function-name">
|
||||||
greaterThan(<span class="args"></span>) <a href="#greaterThan" class="link"></a>
|
greaterThan(<span class="args"></span>) <a href="#greaterThan" class="link"></a>
|
||||||
</h4>
|
</h4>
|
||||||
|
|
||||||
<div class="function-description markdown-from-sourecode">
|
<div class="function-description markdown-from-sourecode">
|
||||||
<p></p>
|
<p></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<strong>Returns</strong>
|
<strong>Returns</strong>
|
||||||
<table class="arguments">
|
<table class="arguments">
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -39,12 +40,12 @@ title: AttributeNumber
|
||||||
<h4 id=lessThan class="function-name">
|
<h4 id=lessThan class="function-name">
|
||||||
lessThan(<span class="args"></span>) <a href="#lessThan" class="link"></a>
|
lessThan(<span class="args"></span>) <a href="#lessThan" class="link"></a>
|
||||||
</h4>
|
</h4>
|
||||||
|
|
||||||
<div class="function-description markdown-from-sourecode">
|
<div class="function-description markdown-from-sourecode">
|
||||||
<p></p>
|
<p></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<strong>Returns</strong>
|
<strong>Returns</strong>
|
||||||
<table class="arguments">
|
<table class="arguments">
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -53,4 +54,3 @@ title: AttributeNumber
|
||||||
<tr><td class="markdown-from-sourecode"><p>Returns a <a href='matcher.html'>Matcher</a> for objects less than the provided value.</p>
|
<tr><td class="markdown-from-sourecode"><p>Returns a <a href='matcher.html'>Matcher</a> for objects less than the provided value.</p>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: AttributeObject
|
title: AttributeObject
|
||||||
|
edit_url: "https://github.com/nylas/N1/blob/master/src/flux/attributes/attribute-object.coffee"
|
||||||
---
|
---
|
||||||
|
|
||||||
<h2>Summary</h2>
|
<h2>Summary</h2>
|
||||||
|
@ -12,8 +13,3 @@ title: AttributeObject
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: AttributeServerId
|
title: AttributeServerId
|
||||||
|
edit_url: "https://github.com/nylas/N1/blob/master/src/flux/attributes/attribute-serverid.coffee"
|
||||||
---
|
---
|
||||||
|
|
||||||
<h2>Summary</h2>
|
<h2>Summary</h2>
|
||||||
|
@ -14,8 +15,3 @@ title: AttributeServerId
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: AttributeString
|
title: AttributeString
|
||||||
|
edit_url: "https://github.com/nylas/N1/blob/master/src/flux/attributes/attribute-string.coffee"
|
||||||
---
|
---
|
||||||
|
|
||||||
<h2>Summary</h2>
|
<h2>Summary</h2>
|
||||||
|
@ -24,12 +25,12 @@ title: AttributeString
|
||||||
<h4 id=startsWith class="function-name">
|
<h4 id=startsWith class="function-name">
|
||||||
startsWith(<span class="args"></span>) <a href="#startsWith" class="link"></a>
|
startsWith(<span class="args"></span>) <a href="#startsWith" class="link"></a>
|
||||||
</h4>
|
</h4>
|
||||||
|
|
||||||
<div class="function-description markdown-from-sourecode">
|
<div class="function-description markdown-from-sourecode">
|
||||||
<p></p>
|
<p></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<strong>Returns</strong>
|
<strong>Returns</strong>
|
||||||
<table class="arguments">
|
<table class="arguments">
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -38,4 +39,3 @@ title: AttributeString
|
||||||
<tr><td class="markdown-from-sourecode"><p>Returns a <a href='matcher.html'>Matcher</a> for objects starting with the provided value.</p>
|
<tr><td class="markdown-from-sourecode"><p>Returns a <a href='matcher.html'>Matcher</a> for objects starting with the provided value.</p>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: Matcher
|
title: Matcher
|
||||||
|
edit_url: "https://github.com/nylas/N1/blob/master/src/flux/attributes/matcher.coffee"
|
||||||
---
|
---
|
||||||
|
|
||||||
<h2>Summary</h2>
|
<h2>Summary</h2>
|
||||||
|
@ -36,8 +37,3 @@ isUnread.evaluate(threadB)
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: docs
|
layout: docs
|
||||||
title: SortOrder
|
title: SortOrder
|
||||||
|
edit_url: "https://github.com/nylas/N1/blob/master/src/flux/attributes/sort-order.coffee"
|
||||||
---
|
---
|
||||||
|
|
||||||
<h2>Summary</h2>
|
<h2>Summary</h2>
|
||||||
|
@ -18,8 +19,3 @@ instantiate SortOrders manually. Instead, call <a href='Attribute.html#ascending
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue