Sieve filters (alpha / beta version coming soon)

This commit is contained in:
RainLoop Team 2015-01-24 02:35:42 +04:00
parent 02ba68868f
commit 94789632f0
33 changed files with 544 additions and 81 deletions

View file

@ -84,13 +84,25 @@
<div data-bind="component: {
name: 'Checkbox',
params: {
label: 'use Sieve for this domain',
label: 'Use Sieve for this domain',
value: useSieve
}
}"></div>
</div>
</div>
<div data-bind="visible: useSieve">
<br />
<div class="row">
<div class="span5">
<div data-bind="component: {
name: 'Checkbox',
params: {
label: 'Allow custom raw script',
value: sieveAllowRaw
}
}"></div>
</div>
</div>
<br />
<div class="row">
<div class="span3">

View file

@ -11,7 +11,12 @@
&nbsp;&nbsp;
<span class="i18n" data-i18n-text="SETTINGS_FILTERS/BUTTON_ADD_FILTER"></span>
</a>
&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;
<a class="btn" data-bind="visible: filterRaw.allow, click: function () { filterRaw.active(!filterRaw.active()) },
css: {'active': filterRaw.active }">
<i class="icon-file-code"></i>
</a>
&nbsp;&nbsp;
<a class="btn" data-bind="command: saveChanges">
<i data-bind="css: {'icon-floppy': !filters.saving(), 'icon-spinner animated': filters.saving()}"></i>
&nbsp;&nbsp;
@ -36,7 +41,11 @@
&nbsp;&nbsp;
<span data-bind="text: processText"></span>
</div>
<table class="table table-hover list-table g-ui-user-select-none" data-bind="i18nUpdate: filters">
<div data-bind="visible: filterRaw.allow() && filterRaw.active()">
<textarea class="span8" style="height: 300px" data-bind="value: filterRaw, valueUpdate: 'afterkeydown'"></textarea>
</div>
<table class="table table-hover list-table g-ui-user-select-none"
data-bind="visible: !filterRaw.active() || !filterRaw.active(), i18nUpdate: filters">
<colgroup>
<col style="width: 30px" />
<col />

View file

@ -9,10 +9,10 @@
name: 'Checkbox',
params: {
label: 'keep in INBOX @i18n',
value: keepForward
value: actionKeep
}
}"></div>
<div data-bind="component: {
<div data-bind="visible: $root.allowMarkAsRead, component: {
name: 'Checkbox',
params: {
label: 'Mark as read @i18n',

View file

@ -6,7 +6,7 @@
</div>
<div class="control-group">
<div class="controls">
<div data-bind="component: {
<div data-bind="visible: $root.allowMarkAsRead, component: {
name: 'Checkbox',
params: {
label: 'Mark as read @i18n',

View file

@ -0,0 +1,5 @@
<div class="control-group" data-bind="css: {'error': actionValue.error}" style="margin-bottom: 0">
<div class="controls">
<textarea class="span5" data-bind="value: actionValue" style="height: 100px;" placeholder="Reject message @i18n"></textarea>
</div>
</div>

View file

@ -5,7 +5,8 @@
&nbsp;
<input class="span3" type="text" data-bind="value: value" />
&nbsp;
<span class="delete-action button-delete pull-right" data-bind="click: function (oCondition) { $root.removeCondition(oCondition); }">
<span class="delete-action button-delete pull-right" style="margin-top: 5px;"
data-bind="click: function (oCondition) { $root.removeCondition(oCondition); }">
<i class="icon-trash"></i>
</span>
</div>