mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-04 23:17:02 +03:00
More gui improvements
This commit is contained in:
parent
70225541eb
commit
d1b4fa2c18
16 changed files with 67 additions and 17 deletions
|
|
@ -230,7 +230,6 @@ export class HeaderTest extends TestCommand
|
||||||
constructor()
|
constructor()
|
||||||
{
|
{
|
||||||
super();
|
super();
|
||||||
this.match_type = ':is';
|
|
||||||
this.address_part = ':all';
|
this.address_part = ':all';
|
||||||
this.header_names = new GrammarStringList;
|
this.header_names = new GrammarStringList;
|
||||||
this.key_list = new GrammarStringList;
|
this.key_list = new GrammarStringList;
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ export class VirusTestTest extends TestCommand
|
||||||
this._value = new GrammarQuotedString; // 1 - 5
|
this._value = new GrammarQuotedString; // 1 - 5
|
||||||
}
|
}
|
||||||
|
|
||||||
get require() { return /:value|:count/.test(this.match_type) ? ['virustest','relational'] : 'virustest'; }
|
get require() { return /:value/.test(this.match_type) ? ['virustest','relational'] : 'virustest'; }
|
||||||
|
|
||||||
get value() { return this._value.value; }
|
get value() { return this._value.value; }
|
||||||
set value(v) { this._value.value = v; }
|
set value(v) { this._value.value = v; }
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,7 @@
|
||||||
<!-- rfc5228 -->
|
<!-- rfc5228 -->
|
||||||
<div data-bind="foreach: tests">
|
<div data-bind="foreach: tests">
|
||||||
<div class="sieve-block">
|
<details class="sieve-block">
|
||||||
<details>
|
<summary data-bind="text: $data"></summary>
|
||||||
<summary data-bind="text: $data"></summary>
|
<div data-bind="template: {name: $root.templateName($data)}"></div>
|
||||||
<div data-bind="template: {name: $root.templateName($data)}"></div>
|
</details>
|
||||||
</details>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,7 @@
|
||||||
<!-- rfc5228 -->
|
<!-- rfc5228 -->
|
||||||
<div data-bind="foreach: tests">
|
<!-- ko foreach: tests -->
|
||||||
<div class="sieve-block">
|
<details class="sieve-block">
|
||||||
<details>
|
<summary data-bind="text: $data"></summary>
|
||||||
<summary data-bind="text: $data"></summary>
|
<div data-bind="template: {name: $root.templateName($data)}"></div>
|
||||||
<div data-bind="template: {name: $root.templateName($data)}"></div>
|
</details>
|
||||||
</details>
|
<!-- /ko -->
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
<!-- rfc5173 -->
|
<!-- rfc5173 -->
|
||||||
|
<select data-bind="value: match_type">
|
||||||
|
<option>:is</option>
|
||||||
|
<option>:contains</option>
|
||||||
|
<option>:matches</option>
|
||||||
|
</select>
|
||||||
body_transform = ''; // :raw, :content <string-list>, :text
|
body_transform = ''; // :raw, :content <string-list>, :text
|
||||||
<input type="text" data-bind="textInput: key_list" pattern='".+"|\[".+"(,".+")*\]'>
|
<input type="text" data-bind="textInput: key_list" pattern='".+"|\[".+"(,".+")*\]'>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,10 @@
|
||||||
<!-- rfc5260 -->
|
<!-- rfc5260 -->
|
||||||
currentdate
|
currentdate
|
||||||
|
<select data-bind="value: match_type">
|
||||||
|
<option>:is</option>
|
||||||
|
<option>:contains</option>
|
||||||
|
<option>:matches</option>
|
||||||
|
</select>
|
||||||
<input type="text" data-bind="textInput: zone">
|
<input type="text" data-bind="textInput: zone">
|
||||||
<input type="text" data-bind="textInput: date_part">
|
<input type="text" data-bind="textInput: date_part">
|
||||||
<input type="text" data-bind="textInput: key_list" pattern='".+"|\[".+"(,".+")*\]'>
|
<input type="text" data-bind="textInput: key_list" pattern='".+"|\[".+"(,".+")*\]'>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,10 @@
|
||||||
<!-- rfc5260 -->
|
<!-- rfc5260 -->
|
||||||
date
|
date
|
||||||
|
<select data-bind="value: match_type">
|
||||||
|
<option>:is</option>
|
||||||
|
<option>:contains</option>
|
||||||
|
<option>:matches</option>
|
||||||
|
</select>
|
||||||
<input type="text" data-bind="textInput: zone">
|
<input type="text" data-bind="textInput: zone">
|
||||||
<label><input type="checkbox" data-bind="checked: originalzone"> originalzone</label>
|
<label><input type="checkbox" data-bind="checked: originalzone"> originalzone</label>
|
||||||
<input type="text" data-bind="textInput: header_name">
|
<input type="text" data-bind="textInput: header_name">
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,9 @@
|
||||||
<!-- rfc5183 -->
|
<!-- rfc5183 -->
|
||||||
environment
|
environment
|
||||||
|
<select data-bind="value: match_type">
|
||||||
|
<option>:is</option>
|
||||||
|
<option>:contains</option>
|
||||||
|
<option>:matches</option>
|
||||||
|
</select>
|
||||||
<input type="text" data-bind="textInput: name">
|
<input type="text" data-bind="textInput: name">
|
||||||
<input type="text" data-bind="textInput: key_list" pattern='".+"|\[".+"(,".+")*\]'>
|
<input type="text" data-bind="textInput: key_list" pattern='".+"|\[".+"(,".+")*\]'>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,9 @@
|
||||||
<!-- rfc5232 -->
|
<!-- rfc5232 -->
|
||||||
hasflag
|
hasflag
|
||||||
|
<select data-bind="value: match_type">
|
||||||
|
<option>:is</option>
|
||||||
|
<option>:contains</option>
|
||||||
|
<option>:matches</option>
|
||||||
|
</select>
|
||||||
<input type="text" data-bind="textInput: variable_list" pattern='".+"|\[".+"(,".+")*\]'>
|
<input type="text" data-bind="textInput: variable_list" pattern='".+"|\[".+"(,".+")*\]'>
|
||||||
<input type="text" data-bind="textInput: list_of_flags" pattern='".+"|\[".+"(,".+")*\]'>
|
<input type="text" data-bind="textInput: list_of_flags" pattern='".+"|\[".+"(,".+")*\]'>
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@
|
||||||
<option>:domain</option>
|
<option>:domain</option>
|
||||||
<option>:all</option>
|
<option>:all</option>
|
||||||
</select>
|
</select>
|
||||||
-->
|
|
||||||
<br/>
|
<br/>
|
||||||
|
-->
|
||||||
<input type="text" data-bind="textInput: key_list" pattern='".+"|\[".+"(,".+")*\]'>
|
<input type="text" data-bind="textInput: key_list" pattern='".+"|\[".+"(,".+")*\]'>
|
||||||
<br/>
|
<br/>
|
||||||
<input type="number" data-bind="textInput: index">
|
<input type="number" data-bind="textInput: index">
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,10 @@
|
||||||
<!-- rfc5490 -->
|
<!-- rfc5490 -->
|
||||||
metadata
|
metadata
|
||||||
|
<select data-bind="value: match_type">
|
||||||
|
<option>:is</option>
|
||||||
|
<option>:contains</option>
|
||||||
|
<option>:matches</option>
|
||||||
|
</select>
|
||||||
<input type="text" data-bind="textInput: mailbox">
|
<input type="text" data-bind="textInput: mailbox">
|
||||||
<input type="text" data-bind="textInput: annotation_name">
|
<input type="text" data-bind="textInput: annotation_name">
|
||||||
<input type="text" data-bind="textInput: key_list" pattern='".+"|\[".+"(,".+")*\]'>
|
<input type="text" data-bind="textInput: key_list" pattern='".+"|\[".+"(,".+")*\]'>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,10 @@
|
||||||
<!-- rfc5435 -->
|
<!-- rfc5435 -->
|
||||||
notifymethodcapability
|
notifymethodcapability
|
||||||
|
<select data-bind="value: match_type">
|
||||||
|
<option>:is</option>
|
||||||
|
<option>:contains</option>
|
||||||
|
<option>:matches</option>
|
||||||
|
</select>
|
||||||
<input type="text" data-bind="textInput: notification_uri">
|
<input type="text" data-bind="textInput: notification_uri">
|
||||||
<input type="text" data-bind="textInput: notification_capability">
|
<input type="text" data-bind="textInput: notification_capability">
|
||||||
<input type="text" data-bind="textInput: key_list" pattern='".+"|\[".+"(,".+")*\]'>
|
<input type="text" data-bind="textInput: key_list" pattern='".+"|\[".+"(,".+")*\]'>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,9 @@
|
||||||
<!-- rfc5490 -->
|
<!-- rfc5490 -->
|
||||||
servermetadata
|
servermetadata
|
||||||
|
<select data-bind="value: match_type">
|
||||||
|
<option>:is</option>
|
||||||
|
<option>:contains</option>
|
||||||
|
<option>:matches</option>
|
||||||
|
</select>
|
||||||
<input type="text" data-bind="textInput: annotation_name">
|
<input type="text" data-bind="textInput: annotation_name">
|
||||||
<input type="text" data-bind="textInput: key_list" pattern='".+"|\[".+"(,".+")*\]'>
|
<input type="text" data-bind="textInput: key_list" pattern='".+"|\[".+"(,".+")*\]'>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,9 @@
|
||||||
<!-- rfc5235 -->
|
<!-- rfc5235 -->
|
||||||
spamtest
|
spamtest
|
||||||
<input type="number">
|
<input type="number">
|
||||||
|
<select data-bind="value: match_type">
|
||||||
|
<option>:is</option>
|
||||||
|
<option>:contains</option>
|
||||||
|
<option>:matches</option>
|
||||||
|
</select>
|
||||||
<input type="text" data-bind="textInput: value">
|
<input type="text" data-bind="textInput: value">
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,9 @@
|
||||||
<!-- rfc5229 -->
|
<!-- rfc5229 -->
|
||||||
string
|
string
|
||||||
|
<select data-bind="value: match_type">
|
||||||
|
<option>:is</option>
|
||||||
|
<option>:contains</option>
|
||||||
|
<option>:matches</option>
|
||||||
|
</select>
|
||||||
<input type="text" data-bind="textInput: source" pattern='".+"|\[".+"(,".+")*\]'>
|
<input type="text" data-bind="textInput: source" pattern='".+"|\[".+"(,".+")*\]'>
|
||||||
<input type="text" data-bind="textInput: key_list" pattern='".+"|\[".+"(,".+")*\]'>
|
<input type="text" data-bind="textInput: key_list" pattern='".+"|\[".+"(,".+")*\]'>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
<!-- rfc5235 -->
|
<!-- rfc5235 -->
|
||||||
virustest
|
virustest
|
||||||
|
<select data-bind="value: match_type">
|
||||||
|
<option>:is</option>
|
||||||
|
<option>:contains</option>
|
||||||
|
<option>:matches</option>
|
||||||
|
</select>
|
||||||
<input type="text" data-bind="textInput: value"> // 1 - 5
|
<input type="text" data-bind="textInput: value"> // 1 - 5
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue