mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-06 07:57:02 +03:00
Attachments (redesign)
This commit is contained in:
parent
735842bb88
commit
f9640b3ffa
40 changed files with 293 additions and 110 deletions
|
|
@ -241,7 +241,8 @@ class FacebookRedirectLoginHelper
|
|||
}
|
||||
$buf = '';
|
||||
// http://sockpuppet.org/blog/2014/02/25/safely-generate-random-numbers/
|
||||
if (is_readable('/dev/urandom')) {
|
||||
if (false && is_readable('/dev/urandom')) {
|
||||
// if (is_readable('/dev/urandom')) {
|
||||
$fp = fopen('/dev/urandom', 'rb');
|
||||
if ($fp !== FALSE) {
|
||||
$buf = fread($fp, $bytes);
|
||||
|
|
|
|||
|
|
@ -7081,7 +7081,7 @@ class Actions
|
|||
$oThumb =@ new \PHPThumb\GD($sFileName);
|
||||
if ($oThumb)
|
||||
{
|
||||
$oThumb->adaptiveResize(220, 80)->show();
|
||||
$oThumb->adaptiveResize(60, 60)->show();
|
||||
$bDone = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<div class="b-folders g-ui-user-select-none thm-folders" data-bind="css: {'focused': folderList.focused}">
|
||||
<div class="b-toolbar btn-toolbar">
|
||||
<a class="btn buttonCompose pull-left" data-tooltip-placement="bottom" data-bind="click: composeClick, tooltip: 'FOLDER_LIST/BUTTON_COMPOSE'">
|
||||
<a class="btn buttonCompose pull-left" data-tooltip-placement="bottom"
|
||||
data-bind="click: composeClick, tooltip: 'FOLDER_LIST/BUTTON_COMPOSE', css: {'btn-warning': composeInEdit}">
|
||||
<i class="icon-paper-plane"></i>
|
||||
</a>
|
||||
<a class="btn buttonContacts pull-left" data-tooltip-placement="bottom" data-bind="visible: allowContacts, click: contactsClick, tooltip: 'FOLDER_LIST/BUTTON_CONTACTS'">
|
||||
|
|
|
|||
|
|
@ -294,32 +294,24 @@
|
|||
</div>
|
||||
<div class="attachmentsPlace" data-bind="visible: message() && message().hasVisibleAttachments()">
|
||||
<ul class="attachmentList" data-bind="foreach: message() ? message().attachments() : []">
|
||||
<li class="attachmentItem clearfix" draggable="true" data-bind="visible: !isLinked, title: fileName, event: { 'dragstart': eventDragStart },
|
||||
css: { 'hasThumbnail': hasThumbnail() }, attr: { 'style': linkThumbnailPreviewStyle() }">
|
||||
<li class="attachmentItem clearfix" draggable="true" data-bind="visible: !isLinked, title: fileName, event: { 'dragstart': eventDragStart }">
|
||||
<div class="attachmentIconParent pull-left" data-bind="css: { 'hasPreview': hasPreview() }">
|
||||
<div class="attachmentNonePreview">
|
||||
<i class="attachmentIcon attachmentMainIcon" data-bind="css: iconClass()"></i>
|
||||
<div class="hidePreview">
|
||||
<div class="iconMain">
|
||||
<i class="attachmentIcon attachmentMainIcon" data-bind="css: iconClass()"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="showPreview">
|
||||
<a data-bind="css: {'attachmentImagePreview': isImage()}, attr: {'href': linkPreviewMain(), title: fileName, 'data-index': $index}">
|
||||
<div class="iconMain">
|
||||
<i class="attachmentIcon attachmentMainIcon" data-bind="css: iconClass()"></i>
|
||||
</div>
|
||||
<div class="iconBG" data-bind="attr: { 'style': linkThumbnailPreviewStyle() }"></div>
|
||||
<div class="iconPreview">
|
||||
<i class="attachmentIcon icon-eye show-hover"></i>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<a class="attachmentPreview attachmentImagePreview magnificPopupImage"
|
||||
data-bind="visible: isImage(), attr: {href: linkPreview(), title: fileName, 'data-index': $index}" target="_blank">
|
||||
<i class="attachmentIcon icon-eye show-hover"></i>
|
||||
<i class="attachmentIcon attachmentMainIcon hide-hover" data-bind="css: iconClass()"></i>
|
||||
</a>
|
||||
<a class="attachmentPreview"
|
||||
data-bind="visible: isText(), attr: {href: linkPreviewAsPlain(), title: fileName}" target="_blank">
|
||||
<i class="attachmentIcon icon-eye show-hover"></i>
|
||||
<i class="attachmentIcon attachmentMainIcon hide-hover" data-bind="css: iconClass()"></i>
|
||||
</a>
|
||||
<a class="attachmentPreview"
|
||||
data-bind="visible: isPdf(), attr: {href: linkPreview(), title: fileName}" target="_blank">
|
||||
<i class="attachmentIcon icon-eye show-hover"></i>
|
||||
<i class="attachmentIcon attachmentMainIcon hide-hover" data-bind="css: iconClass()"></i>
|
||||
</a>
|
||||
<a class="attachmentPreview"
|
||||
data-bind="visible: isFramed(), attr: {href: linkFramed(), title: fileName}" target="_blank">
|
||||
<i class="attachmentIcon icon-eye show-hover"></i>
|
||||
<i class="attachmentIcon attachmentMainIcon hide-hover" data-bind="css: iconClass()"></i>
|
||||
</a>
|
||||
</div>
|
||||
<div class="attachmentNameParent">
|
||||
<div style="white-space: nowrap; text-overflow: ellipsis; overflow: hidden;">
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
<div class="popups">
|
||||
<div class="modal hide b-compose" data-backdrop="static" data-bind="modal: modalVisibility, css: {'loading': saving() || sending()}">
|
||||
<div class="modal-header b-header-toolbar g-ui-user-select-none">
|
||||
<button type="button" class="close" data-bind="command: cancelCommand">×</button>
|
||||
<a class="btn btn-large button-send" data-bind="command: sendCommand, css: {'btn-danger': sendError, 'btn-warning': sendSuccessButSaveError }">
|
||||
<i data-bind="css: {'icon-paper-plane': !sending(), 'icon-spinner animated': sending(), 'icon-white': sendError() || sendSuccessButSaveError()}"></i>
|
||||
|
||||
|
|
@ -12,6 +11,12 @@
|
|||
|
||||
<span class="i18n" data-i18n-text="COMPOSE/BUTTON_SAVE"></span>
|
||||
</a>
|
||||
<a class="btn button-close pull-right" data-tooltip-placement="bottom" data-bind="click: tryToClosePopup, tooltip: 'COMPOSE/BUTTON_CANCEL'">
|
||||
<i class="icon-remove"></i>
|
||||
</a>
|
||||
<a class="btn button-skip pull-right" data-tooltip-placement="bottom" data-bind="command: skipCommand, tooltip: 'COMPOSE/BUTTON_MINIMIZE'">
|
||||
<i class="icon-down"></i>
|
||||
</a>
|
||||
<a class="btn btn-danger button-delete button-delete-transitions" data-bind="command: deleteCommand">
|
||||
<i class="icon-trash icon-white"></i>
|
||||
</a>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue