Small fixes

This commit is contained in:
RainLoop Team 2014-02-18 01:25:19 +04:00
parent 76c21b82b3
commit fd58f4dcd5
18 changed files with 491 additions and 429 deletions

View file

@ -2,7 +2,7 @@
"name": "RainLoop",
"title": "RainLoop Webmail",
"version": "1.6.3",
"release": "706",
"release": "713",
"description": "Simple, modern & fast web-based email client",
"homepage": "http://rainloop.net",
"main": "Gruntfile.js",

View file

@ -38,11 +38,10 @@ class HtmlUtils
$oDom = new \DOMDocument('1.0', 'utf-8');
$oDom->encoding = 'UTF-8';
$oDom->formatOutput = false;
@$oDom->loadHTML(
'<'.'?xml version="1.0" encoding="utf-8"?'.'>'.
'<html '.$sHtmlAttrs.'><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body '.$sBodyAttrs.'>'.$sText.'</body></html>'
);
@$oDom->loadHTML('<'.'?xml version="1.0" encoding="utf-8"?'.'>'.
'<html '.$sHtmlAttrs.'><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body '.$sBodyAttrs.'>'.$sText.'</body></html>');
return $oDom;
}

View file

@ -373,7 +373,7 @@ class Http
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $aPost,
CURLOPT_POSTFIELDS => \http_build_query($aPost, '', '&'),
CURLOPT_TIMEOUT => (int) $iTimeout
);

View file

@ -93,15 +93,31 @@ class Utils
*/
public static function IsIconvSupported()
{
return \MailSo\Base\Utils::FunctionExistsAndEnabled('iconv');
return \MailSo\Capa::$ICONV &&
\MailSo\Base\Utils::FunctionExistsAndEnabled('iconv');
}
/**
* @return bool
*/
public static function IsLibIconvSupported()
public static function IsIconvIgnoreSupported()
{
return \MailSo\Base\Utils::FunctionExistsAndEnabled('libiconv');
static $bCache = null;
if (null !== $bCache)
{
return $bCache;
}
$bCache = false;
if (\MailSo\Base\Utils::IsIconvSupported())
{
if (false !== @\iconv('', '//IGNORE', ''))
{
$bCache = true;
}
}
return $bCache;
}
/**
@ -109,7 +125,8 @@ class Utils
*/
public static function IsMbStringSupported()
{
return \MailSo\Base\Utils::FunctionExistsAndEnabled('mb_convert_encoding');
return \MailSo\Capa::$MBSTRING &&
\MailSo\Base\Utils::FunctionExistsAndEnabled('mb_convert_encoding');
}
/**
@ -124,6 +141,46 @@ class Utils
\in_array($sCharset, \MailSo\Base\Utils::$SuppostedCharsets));
}
/**
* @param string $sInputString
* @param string $sInputFromEncoding
* @param string $sInputToEncoding
*
* @return string|bool
*/
public static function IconvConvertEncoding($sInputString, $sInputFromEncoding, $sInputToEncoding)
{
$sIconvIgnorOption = '';
if (\MailSo\Base\Utils::IsIconvIgnoreSupported())
{
$sIconvIgnorOption = '//IGNORE';
}
return @\iconv(\strtoupper($sInputFromEncoding), \strtoupper($sInputToEncoding).$sIconvIgnorOption, $sInputString);
}
/**
* @param string $sInputString
* @param string $sInputFromEncoding
* @param string $sInputToEncoding
*
* @return string|bool
*/
public static function MbConvertEncoding($sInputString, $sInputFromEncoding, $sInputToEncoding)
{
static $sMbstringSubCh = null;
if (null === $sMbstringSubCh)
{
$sMbstringSubCh = \mb_substitute_character();
}
\mb_substitute_character('none');
$sResult = @\mb_convert_encoding($sInputString, \strtoupper($sInputToEncoding), \strtoupper($sInputFromEncoding));
\mb_substitute_character($sMbstringSubCh);
return $sResult;
}
/**
* @param string $sInputString
* @param string $sInputFromEncoding
@ -197,15 +254,11 @@ class Utils
if (\MailSo\Base\Utils::IsIconvSupported())
{
$sResult = @\iconv(\strtoupper($sFromEncoding), \strtoupper($sToEncoding).'//IGNORE', $sResult);
$sResult = \MailSo\Base\Utils::IconvConvertEncoding($sResult, $sFromEncoding, $sToEncoding);
}
else if (\MailSo\Base\Utils::IsMbStringSupported())
{
$sResult = @\mb_convert_encoding($sResult, \strtoupper($sToEncoding), \strtoupper($sFromEncoding));
}
else if (\MailSo\Base\Utils::IsLibIconvSupported())
{
$sResult = @\libiconv(\strtoupper($sFromEncoding), \strtoupper($sToEncoding), $sResult);
$sResult = \MailSo\Base\Utils::MbConvertEncoding($sResult, $sFromEncoding, $sToEncoding);
}
$sResult = (false !== $sResult) ? $sResult : $sInputString;
@ -428,54 +481,12 @@ class Utils
* @param string $sEncodeType
* @param string $sEncodeCharset
* @param string $sValue
* @param string $sHeaderName = ''
*
* @return string
*/
public static function EncodeHeaderValue($sEncodeType, $sEncodeCharset, $sValue, $sHeaderName = '')
public static function EncodeHeaderValue($sEncodeType, $sEncodeCharset, $sValue)
{
$sValue = \trim($sValue);
// return \mb_encode_mimeheader($sValue,
// \MailSo\Base\Enumerations\Charset::UTF_8, 'Q',
// \MailSo\Mime\Enumerations\Constants::CRLF);
// $splitWords = true;
// if ($splitWords) {
// $words = \array_map(function($word) use ($sEncodeCharset) {
// $header = \iconv_mime_encode('Header', $word, array(
// 'scheme' => 'Q',
// 'line-length' => 78,
// 'output-charset' => $sEncodeCharset,
// ));
// return \str_replace('Header: ', '', $header);
// }, \explode(' ', $sValue));
// return \implode("\r\n ", $words);
// }
//
// $header = \iconv_mime_encode('Header', $sValue, array(
// 'scheme' => 'Q',
// 'line-length' => 998,
// 'output-charset' => $sEncodeCharset,
// ));
// return \str_replace('Header: ', '', $header);
//
// $aPreferences = array(
// 'input-charset' => \MailSo\Base\Enumerations\Charset::UTF_8,
// 'output-charset' => $sEncodeCharset,
// 'line-length' => \MailSo\Mime\Enumerations\Constants::LINE_LENGTH,
// 'line-break-chars' => \MailSo\Mime\Enumerations\Constants::CRLF
// );
//
// if (\in_array(\strtoupper($sEncodeType), array('B', 'Q')))
// {
// $aPreferences['scheme'] = \strtoupper($sEncodeType);
// }
//
// $sHeaderName = 0 === \strlen($sHeaderName) ? 'X-Header' : $sHeaderName;
// $sValue = \iconv_mime_encode($sHeaderName, $sValue, $aPreferences);
// return \trim(substr($sValue, \strlen($sHeaderName) + 1));
if (0 < \strlen($sValue) && !\MailSo\Base\Utils::IsAscii($sValue))
{
switch (\strtoupper($sEncodeType))
@ -807,7 +818,7 @@ class Utils
static $bValidateAction = null;
if (null === $bValidateAction)
{
$bValidateAction = !((bool) @\ini_get('safe_mode')) &&
$bValidateAction = !((bool) \ini_get('safe_mode')) &&
\MailSo\Base\Utils::FunctionExistsAndEnabled('set_time_limit');
}
@ -1113,8 +1124,21 @@ class Utils
return $sUtfString;
}
$sUtfString = @\iconv('UTF-8', 'UTF-8//IGNORE', $sUtfString);
$sNewUtfString = false;
if (\MailSo\Base\Utils::IsIconvSupported())
{
$sNewUtfString = \MailSo\Base\Utils::IconvConvertEncoding($sUtfString, 'UTF-8', 'UTF-8');
}
else if (\MailSo\Base\Utils::IsMbStringSupported())
{
$sNewUtfString = \MailSo\Base\Utils::MbConvertEncoding($sUtfString, 'UTF-8', 'UTF-8');
}
if (false !== $sNewUtfString)
{
$sUtfString = $sNewUtfString;
}
$sUtfString = \preg_replace(
'/[\x00-\x08\x10\x0B\x0C\x0E-\x1F\x7F]'.
'|[\x00-\x7F][\x80-\xBF]+'.
@ -1704,7 +1728,8 @@ class Utils
$mResult = '';
if (!\MailSo\Base\Utils::IsAscii($sStr))
{
$mResult = \MailSo\Base\Utils::FunctionExistsAndEnabled('mb_detect_encoding') ?
$mResult = \MailSo\Base\Utils::IsMbStringSupported() &&
\MailSo\Base\Utils::FunctionExistsAndEnabled('mb_detect_encoding') ?
@\mb_detect_encoding($sStr, 'auto', true) : false;
if (false === $mResult && \MailSo\Base\Utils::IsIconvSupported())

View file

@ -0,0 +1,19 @@
<?php
namespace MailSo;
/**
* @category MailSo
*/
final class Capa
{
/**
* @var bool
*/
static $ICONV = true;
/**
* @var bool
*/
static $MBSTRING = true;
}

View file

@ -203,7 +203,9 @@ class Header
if ($this->IsSubject())
{
if (!\MailSo\Base\Utils::IsAscii($sResult) && \function_exists('iconv_mime_encode'))
if (!\MailSo\Base\Utils::IsAscii($sResult) &&
\MailSo\Base\Utils::IsIconvSupported() &&
\function_exists('iconv_mime_encode'))
{
$aPreferences = array(
// 'scheme' => \MailSo\Base\Enumerations\Encoding::QUOTED_PRINTABLE_SHORT,

View file

@ -10,7 +10,7 @@ final class Version
/**
* @var string
*/
const APP_VERSION = '1.3.0';
const APP_VERSION = '1.3.1';
/**
* @var string
@ -38,7 +38,13 @@ final class Version
*/
public static function Signature()
{
$oPhar = new \Phar('mailso.phar');
return $oPhar->getSignature();
$sSignature = '';
if (\defined('MAILSO_LIBRARY_USE_PHAR'))
{
$oPhar = new \Phar('mailso.phar');
$sSignature = $oPhar->getSignature();
}
return $sSignature;
}
}

View file

@ -5199,14 +5199,18 @@ class Actions
}
$aHeaders = $mRow;
foreach ($aHeaders as $iIndex => $sHeaderValue)
{
$aHeaders[$iIndex] = \MailSo\Base\Utils::Utf8Clear($sHeaderValue);
}
}
else
{
$aNewItem = array();
foreach ($aHeaders as $iIndex => $sHeaderValue)
{
$aNewItem[@\iconv('utf-8', 'utf-8//IGNORE', $sHeaderValue)] =
isset($mRow[$iIndex]) ? $mRow[$iIndex] : '';
$aNewItem[$sHeaderValue] = isset($mRow[$iIndex]) ? $mRow[$iIndex] : '';
}
$aData[] = $aNewItem;

View file

@ -214,6 +214,7 @@ Enables caching in the system'),
'autocreate_system_folders' => array(true),
'allow_message_append' => array(false),
'determine_user_language' => array(true),
'disable_iconv_if_mbstring_supported' => array(false),
'login_fault_delay' => array(1),
'log_ajax_response_write_limit' => array(300),
'allow_html_editor_source_button' => array(false),

View file

@ -10,7 +10,7 @@ if (!function_exists('mb_strtoupper'))
else $encoding = strtoupper($encoding);
if ('UTF-8' === $encoding || 'UTF8' === $encoding) $encoding = INF;
else $s = iconv($encoding, 'UTF-8//IGNORE', $s);
else $s = function_exists('iconv') ? iconv($encoding, 'UTF-8//IGNORE', $s) : $s;
static $upper;
isset($upper) || $upper = unserialize(base64_decode('YToxMDUxOntzOjE6ImEiO3M6MToiQSI7czoxOiJiIjtzOjE6IkIiO3M6MToiYyI7czoxOiJDIjtz
@ -400,7 +400,7 @@ czo0OiLwkJCmIjtzOjQ6IvCQkY8iO3M6NDoi8JCQpyI7fQ=='));
}
if (INF === $encoding) return $s;
else return iconv('UTF-8', $encoding, $s);
else return function_exists('iconv') ? iconv('UTF-8', $encoding, $s) : $s;
}
}

View file

@ -37,6 +37,12 @@ class Service
\ini_set('display_errors', 1);
}
if ($this->oActions->Config()->Get('labs', 'disable_iconv_if_mbstring_supported') &&
\class_exists('MailSo\Capa') && \MailSo\Base\Utils::IsMbStringSupported())
{
\MailSo\Capa::$ICONV = false;
}
$sServer = \trim($this->oActions->Config()->Get('security', 'custom_server_signature', ''));
if (0 < \strlen($sServer))
{
@ -91,7 +97,7 @@ class Service
{
return $this;
}
$this->oActions->ParseQueryAuthString();
if (defined('APP_INSTALLED_START') && defined('APP_INSTALLED_VERSION') &&

View file

@ -55,7 +55,7 @@ TRASH_NAME = "Șterse"
TITLE = "Cotă"
[MESSAGE_LIST]
BUTTON_RELOAD = "Reîncarcă"
BUTTON_RELOAD = "Actualizare"
BUTTON_MOVE_TO = "Mută la"
BUTTON_DELETE = "Șterge"
BUTTON_SPAM = "SPAM"
@ -207,7 +207,7 @@ BUTTON_ADD_ACCOUNT = "Adaugă"
[POPUPS_IDENTITIES]
TITLE_ADD_IDENTITY = "Adăugați un profil"
TITLE_UPDATE_IDENTITY = "Actualizați profilul"
BUTTON_ADD_IDENTITY = "Adaăugați"
BUTTON_ADD_IDENTITY = "Adăugați"
BUTTON_UPDATE_IDENTITY = "Actualizați"
LABEL_EMAIL = "eMail"
LABEL_NAME = "Nume"
@ -257,198 +257,198 @@ NOTIFICATION_TRASH = "Вы еще не выбрали системную пап
Если же вы хотите удалять письма сразу, пожалуйста, выберите пункт \"Не использовать\"."
[TITLES]
LOADING = "Загрузка"
LOGIN = "Вход"
MAILBOX = "Почта"
SETTINGS = "Настройки"
COMPOSE = "Написать письмо"
LOADING = "Se încarcă"
LOGIN = "Conectare"
MAILBOX = "Poștă"
SETTINGS = "Opțiuni"
COMPOSE = "Compune"
[UPLOAD]
ERROR_FILE_IS_TOO_BIG = "Файл слишком большой"
ERROR_FILE_PARTIALLY_UPLOADED = "Файл не загрузился полностью"
ERROR_NO_FILE_UPLOADED = "Файл не был загружен"
ERROR_MISSING_TEMP_FOLDER = "Ошибка при сохранении файла"
ERROR_ON_SAVING_FILE = "Ошибка при сохранении файла"
ERROR_FILE_TYPE = "Неверный тип файла"
ERROR_UNKNOWN = "Ошибка загрузки файла"
ERROR_FILE_IS_TOO_BIG = "Fișierul este prea mare"
ERROR_FILE_PARTIALLY_UPLOADED = "Fișierul nu este încărcat complet"
ERROR_NO_FILE_UPLOADED = "Nici un fișier încărcat"
ERROR_MISSING_TEMP_FOLDER = "Eroare la salvarea unui fișier"
ERROR_ON_SAVING_FILE = "Eroare la salvarea unui fișier"
ERROR_FILE_TYPE = "Tip de fișier invalid"
ERROR_UNKNOWN = "Eroare la încărcarea de fișiere"
[EDITOR]
TEXT_SWITCHER_PLAINT_TEXT = "Обычный текст"
TEXT_SWITCHER_RICH_FORMATTING = "Форматированный текст"
TEXT_SWITCHER_CONFIRM = "Форматирование текста и изображения будут потеряны. Вы уверены, что хотите продолжить?"
TEXT_SWITCHER_PLAINT_TEXT = "Text Simplu"
TEXT_SWITCHER_RICH_FORMATTING = "Text formatat"
TEXT_SWITCHER_CONFIRM = "Formatarea textului și imaginile vor fi pierdute. Sigur doriți să continuați?"
[SETTINGS_LABELS]
LABEL_PERSONAL_NAME = "Персональные"
LABEL_GENERAL_NAME = "Основные"
LABEL_CONTACTS_NAME = "Контакты"
LABEL_FOLDERS_NAME = "Папки"
LABEL_ACCOUNTS_NAME = "Аккаунты"
LABEL_IDENTITY_NAME = "Профиль"
LABEL_IDENTITIES_NAME = "Профили"
LABEL_SOCIAL_NAME = "Социальные"
LABEL_THEMES_NAME = "Темы"
LABEL_CHANGE_PASSWORD_NAME = "Пароль"
BUTTON_BACK = "Назад"
LABEL_PERSONAL_NAME = "Personal"
LABEL_GENERAL_NAME = "De bază"
LABEL_CONTACTS_NAME = "Contacte"
LABEL_FOLDERS_NAME = "Dosare"
LABEL_ACCOUNTS_NAME = "Conturi"
LABEL_IDENTITY_NAME = "Profil"
LABEL_IDENTITIES_NAME = "Profiluri"
LABEL_SOCIAL_NAME = "Social"
LABEL_THEMES_NAME = "Subiecte"
LABEL_CHANGE_PASSWORD_NAME = "Parolă"
BUTTON_BACK = "Înapoi"
[SETTINGS_IDENTITY]
LEGEND_IDENTITY = "Настройки профиля"
LABEL_DISPLAY_NAME = "Имя"
LABEL_REPLY_TO = "Отвечать на"
LABEL_SIGNATURE = "Подпись"
LABEL_ADD_SIGNATURE_TO_ALL = "Add your signature to all the outgoing messages"
LEGEND_IDENTITY = "Setările de profil"
LABEL_DISPLAY_NAME = "Nume"
LABEL_REPLY_TO = "Răspunde la"
LABEL_SIGNATURE = "Semnătură"
LABEL_ADD_SIGNATURE_TO_ALL = "Adăugă semnătura la toate mesajele trimise"
[SETTINGS_GENERAL]
LEGEND_GENERAL = "Основные Настройки"
LABEL_LANGUAGE = "Язык"
LABEL_EDITOR = "Редактор текста по умолчанию"
LABEL_EDITOR_HTML_AS_DEFAULT = "Форматированный"
LABEL_EDITOR_PLAIN_AS_DEFAULT = "Простой"
LABEL_ANIMATION = "Анимация интерфейса"
LABEL_ANIMATION_FULL = "Полная"
LABEL_ANIMATION_NORMAL = "Нормальная"
LABEL_ANIMATION_NONE = "Отсутствует"
LABEL_VIEW_OPTIONS = "Отображение"
LABEL_USE_PREVIEW_PANE = "Использовать трехколоночный режим отображения"
LABEL_USE_CHECKBOXES_IN_LIST = "Показывать чекбоксы в списках"
LABEL_USE_THREADS = "Сворачивать письма в переписках"
LABEL_REPLY_SAME_FOLDER = "Помещать ответы в ту же папку, где находится оригинал"
LABEL_SHOW_IMAGES = "Показывать внешние изображения в теле письма без предупреждения"
LABEL_SHOW_ANIMATION = "Использовать анимацию"
LABEL_MESSAGE_PER_PAGE = "сообщений на одной странице"
LABEL_CHROME_NOTIFICATION = "Уведомления"
LABEL_CHROME_NOTIFICATION_DESC = "Показывать уведомления о новых сообщениях в всплывающих подсказках"
LABEL_CHROME_NOTIFICATION_DESC_DENIED = "(Блокировано браузером)"
LEGEND_GENERAL = "Setări de bază"
LABEL_LANGUAGE = "Limbă"
LABEL_EDITOR = "Editor de text implicit"
LABEL_EDITOR_HTML_AS_DEFAULT = "Formatat"
LABEL_EDITOR_PLAIN_AS_DEFAULT = "Simplu"
LABEL_ANIMATION = "Interfață animație"
LABEL_ANIMATION_FULL = "Complet"
LABEL_ANIMATION_NORMAL = "Normal"
LABEL_ANIMATION_NONE = "nu"
LABEL_VIEW_OPTIONS = "Afișare"
LABEL_USE_PREVIEW_PANE = "Folosiți un mod de afișare cu trei coloane"
LABEL_USE_CHECKBOXES_IN_LIST = "Afișează listele checkbox"
LABEL_USE_THREADS = "Minimizează scrisorile"
LABEL_REPLY_SAME_FOLDER = "Răspunsurile în același folder cu originalul"
LABEL_SHOW_IMAGES = "Arată imaginile externe în corpul mesajului, fără avertisment"
LABEL_SHOW_ANIMATION = "Utilizați animația"
LABEL_MESSAGE_PER_PAGE = "mesaje pe o pagină"
LABEL_CHROME_NOTIFICATION = "Notificări"
LABEL_CHROME_NOTIFICATION_DESC = "Afișați notificări desktop pentru mesaje noi"
LABEL_CHROME_NOTIFICATION_DESC_DENIED = "(browser-ul blocat)"
[SETTINGS_CONTACTS]
LEGEND_CONTACTS = "Контакты"
LEGEND_MOBILE_SYNC = "Мобильная Синхронизация"
LABEL_SYNC_SERVER = "Сервер"
LABEL_SYNC_USERNAME = "Пользователь"
LABEL_SYNC_PASSWORD = "Пароль"
LINK_HIDE = "спрятать"
LINK_SHOW = "показать"
LABEL_DESC_PAB = "Персональная адресная книга"
DESC_FULL_PAB_URL = "Если вашему приложению (например как Mozilla Thunderbird (SOGo Connector Thunderbird extension) или Evolution) необходим полный путь к CardDAV адресной книге, используйте URL ниже."
LABEL_CONTACTS_AUTOSAVE = "Автоматически добавлять получателей писем в адресную книгу"
LEGEND_CONTACTS = "Contacte"
LEGEND_MOBILE_SYNC = "Sincronizați cu mobilul"
LABEL_SYNC_SERVER = "Server"
LABEL_SYNC_USERNAME = "Utilizator"
LABEL_SYNC_PASSWORD = "Parolă"
LINK_HIDE = "Ascunde"
LINK_SHOW = "Arată"
LABEL_DESC_PAB = "Agendă personală"
DESC_FULL_PAB_URL = "Dacă cerea dumneavoastră (cum ar fi Mozilla Thunderbird (Extensie Sogo Conector Thunderbird) sau Evolution) are nevoie de calea completă la agenda CardDAV, utilizați URL-ul de mai jos."
LABEL_CONTACTS_AUTOSAVE = "Adaugă automat destinatarii la agenda de scrisori"
[SETTINGS_THEMES]
LEGEND_THEMES = "Темы Оформления"
LEGEND_THEMES_CUSTOM = "Настройка Пользовательской Темы"
LABEL_CUSTOM_TYPE = "Тип Темы"
LABEL_CUSTOM_TYPE_LIGHT = "Светлая"
LABEL_CUSTOM_TYPE_DARK = "Темная"
LABEL_CUSTOM_BACKGROUND_IMAGE = "Картинка на фоне"
BUTTON_UPLOAD_BACKGROUND_IMAGE = "Загрузить фоновую картинку (JPG, PNG)"
ERROR_FILE_IS_TOO_BIG = "Файл слишком большой (1MB+)"
ERROR_FILE_TYPE_ERROR = "Неверный тип файла (только JPG и PNG)"
ERROR_UNKNOWN = "Ошибка загрузки файла"
LEGEND_THEMES = "Tematică"
LEGEND_THEMES_CUSTOM = "Setați o temă particularizată"
LABEL_CUSTOM_TYPE = "Tip Teme"
LABEL_CUSTOM_TYPE_LIGHT = "Lumina"
LABEL_CUSTOM_TYPE_DARK = "Umbră"
LABEL_CUSTOM_BACKGROUND_IMAGE = "Imaginea de pe fundal"
BUTTON_UPLOAD_BACKGROUND_IMAGE = "Încărcați o imagine de fundal (JPG, PNG)"
ERROR_FILE_IS_TOO_BIG = "Fișier prea mare (1MB+)"
ERROR_FILE_TYPE_ERROR = "Tip de fișier invalid (numai JPG sau PNG)"
ERROR_UNKNOWN = "Eroare la încărcarea de fișiere"
[SETTINGS_SOCIAL]
LEGEND_GOOGLE = "Google"
BUTTON_GOOGLE_CONNECT = "Подключить Google аккаунт"
BUTTON_GOOGLE_DISCONNECT = "Отключить Google аккаунт"
MAIN_GOOGLE_DESC = "После подключения к Google вы сможете залогиниться в данный аккаунт, используя кнопку Google на экране логина."
BUTTON_GOOGLE_CONNECT = "Conectează-te cu Google"
BUTTON_GOOGLE_DISCONNECT = "Deconectați contul Google"
MAIN_GOOGLE_DESC = "După conectarea la Google, vă puteți conecta la acest cont folosind butonul Google de pe ecranul de login."
LEGEND_FACEBOOK = "Facebook"
BUTTON_FACEBOOK_CONNECT = "Подключить Facebook аккаунт"
BUTTON_FACEBOOK_DISCONNECT = "Отключить Facebook аккаунт"
MAIN_FACEBOOK_DESC = "После подключения к Facebook вы сможете залогиниться в данный аккаунт, используя кнопку Facebook на экране логина."
BUTTON_FACEBOOK_CONNECT = "Conectați-va cu Facebook"
BUTTON_FACEBOOK_DISCONNECT = "Deconectați contul de Facebook"
MAIN_FACEBOOK_DESC = "După conectarea la Facebook, vă puteți conecta la acest cont folosind butonul Facebook de pe ecranul de login."
LEGEND_TWITTER = "Twitter"
BUTTON_TWITTER_CONNECT = "Подключить Twitter аккаунт"
BUTTON_TWITTER_DISCONNECT = "Отключить Twitter аккаунт"
MAIN_TWITTER_DESC = "После подключения к Twitter вы сможете залогиниться в данный аккаунт, используя кнопку Twitter на экране логина."
BUTTON_TWITTER_CONNECT = "Conectați-vă cu Twitter"
BUTTON_TWITTER_DISCONNECT = "Deconectați contul de Twitter"
MAIN_TWITTER_DESC = "După conectarea la Twitter, vă puteți conecta la acest cont folosind butonul Twitter de pe ecranul de login."
[SETTINGS_FOLDERS]
LEGEND_FOLDERS = "Список Папок"
BUTTON_CREATE = "Создать Папку"
BUTTON_SYSTEM = "Назначить Системные Папки"
BUTTON_DELETE = "Удалить"
BUTTON_SUBSCRIBE = "Подписаться"
BUTTON_UNSUBSCRIBE = "Отписаться"
LOADING_PROCESS = "Обновление списка папок"
CREATING_PROCESS = "Cоздание папки"
DELETING_PROCESS = "Удаление папки"
RENAMING_PROCESS = "Переименование папки"
DELETING_ASK = "Точно?"
LEGEND_FOLDERS = "Lista de dosare"
BUTTON_CREATE = "Creare dosar"
BUTTON_SYSTEM = "Atribuirea dosarelor de sistem"
BUTTON_DELETE = "Șterge"
BUTTON_SUBSCRIBE = "Abonare"
BUTTON_UNSUBSCRIBE = "Dezabonare"
LOADING_PROCESS = "Actualizez lista de dosare"
CREATING_PROCESS = "Crearea dosarului..."
DELETING_PROCESS = "Șterg dosarul..."
RENAMING_PROCESS = "Redenumesc dosarul"
DELETING_ASK = "Sunteți sigur?"
[SETTINGS_ACCOUNTS]
LEGEND_ACCOUNTS = "Список Аккаунтов"
BUTTON_ADD_ACCOUNT = "Добавить ещё аккаунт"
BUTTON_DELETE = "Удалить"
LOADING_PROCESS = "Обновление списка аккаунтов"
DELETING_ASK = "Точно?"
LEGEND_ACCOUNTS = "Lista de Conturi"
BUTTON_ADD_ACCOUNT = "Adaugă un alt cont"
BUTTON_DELETE = "Șterge"
LOADING_PROCESS = "Actualizez lista de conturi"
DELETING_ASK = "Sunteți sigur?"
[SETTINGS_IDENTITIES]
LEGEND_IDENTITY = "Настройки основного профиля"
LEGEND_IDENTITIES = "Дополнительные профили"
LABEL_DISPLAY_NAME = "Имя"
LABEL_REPLY_TO = "Отвечать на"
LABEL_SIGNATURE = "Подпись"
LABEL_ADD_SIGNATURE_TO_ALL = "Добавлять свою подпись ко всем исходящим сообщениям"
BUTTON_ADD_IDENTITY = "Добавить профиль"
BUTTON_DELETE = "Удалить"
LOADING_PROCESS = "Обновление списка профилей"
DELETING_ASK = "Точно?"
LEGEND_IDENTITY = "Setările de profil de bază"
LEGEND_IDENTITIES = "Profiluri suplimentare"
LABEL_DISPLAY_NAME = "Nume"
LABEL_REPLY_TO = "Răspunde la"
LABEL_SIGNATURE = "Semnătură"
LABEL_ADD_SIGNATURE_TO_ALL = "Adaugă semnătura la toate mesajele trimise"
BUTTON_ADD_IDENTITY = "Adăugați un profil"
BUTTON_DELETE = "Șterge"
LOADING_PROCESS = "Actualizez lista de profile"
DELETING_ASK = "Sunteți sigur?"
[SETTINGS_CHANGE_PASSWORD]
LEGEND_CHANGE_PASSWORD = "Изменить Пароль"
LABEL_CURRENT_PASSWORD = "Текущий пароль"
LABEL_NEW_PASSWORD = "Новый пароль"
LABEL_REPEAT_PASSWORD = "Повторить"
BUTTON_UPDATE_PASSWORD = "Установить Новый Пароль"
LEGEND_CHANGE_PASSWORD = "Schimbare parolă"
LABEL_CURRENT_PASSWORD = "Parola curentă"
LABEL_NEW_PASSWORD = "Noua parolă"
LABEL_REPEAT_PASSWORD = "Confirmați parola"
BUTTON_UPDATE_PASSWORD = "Salvați noua parolă"
[NOTIFICATIONS]
INVALID_TOKEN = "Неверный токен запроса"
AUTH_ERROR = "Не удалось авторизоваться"
ACCESS_ERROR = "Ошибка доступа"
CONNECTION_ERROR = "Ошибка соединения с сервером."
CAPTCHA_ERROR = "Неправильное проверочное слово."
SOCIAL_FACEBOOK_LOGIN_ACCESS_DISABLE = "К данному социальному пользователю еще не прикреплен почтовый аккаунт. Войдите в систему под своим почтовым аккаунтом и включите эту возможность в настройках."
SOCIAL_TWITTER_LOGIN_ACCESS_DISABLE = "К данному социальному пользователю еще не прикреплен почтовый аккаунт. Войдите в систему под своим почтовым аккаунтом и включите эту возможность в настройках."
SOCIAL_GOOGLE_LOGIN_ACCESS_DISABLE = "К данному социальному пользователю еще не прикреплен почтовый аккаунт. Войдите в систему под своим почтовым аккаунтом и включите эту возможность в настройках."
DOMAIN_NOT_ALLOWED = "Данный домен не разрешен"
ACCOUNT_NOT_ALLOWED = "Данный аккаунт не разрешен"
CANT_GET_MESSAGE_LIST = "Не могу получить список писем"
CANT_GET_MESSAGE = "Не могу получить письмо"
CANT_DELETE_MESSAGE = "Не могу удалить письмо"
CANT_MOVE_MESSAGE = "Не могу переместить письмо"
CANT_SAVE_MESSAGE = "Не могу сохранить письмо"
CANT_SEND_MESSAGE = "Не могу отправить письмо"
INVALID_RECIPIENTS = "Проверьте правильность ввода всех адресов."
CANT_CREATE_FOLDER = "Не могу создать папку"
CANT_RENAME_FOLDER = "Не могу переименовать папку"
CANT_DELETE_FOLDER = "Не могу удалить папку"
CANT_DELETE_NON_EMPTY_FOLDER = "Не могу удалить непустую папку"
CANT_SUBSCRIBE_FOLDER = "Не могу подписать папку"
CANT_UNSUBSCRIBE_FOLDER = "Не могу отписать папку"
CANT_SAVE_SETTINGS = "Не могу сохранить настройки"
CANT_SAVE_PLUGIN_SETTINGS = "Не могу сохранить настройки"
DOMAIN_ALREADY_EXISTS = "Домен уже существует"
CANT_INSTALL_PACKAGE = "Ошибка установки пакета"
CANT_DELETE_PACKAGE = "Ошибка удаления пакета"
INVALID_PLUGIN_PACKAGE = "Ошибка пакета плагина"
UNSUPPORTED_PLUGIN_PACKAGE = "Для работы плагина необходима полная поддержка сервера"
LICENSING_SERVER_IS_UNAVAILABLE = "Сервер подписок временно не доступен."
LICENSING_EXPIRED = "Подписка на данный домен устарела."
LICENSING_BANNED = "Подписка на данный домен заблокирована."
DEMO_SEND_MESSAGE_ERROR = "Демо аккаунту отправка писем на внешние почтовые адреса запрещена!"
ACCOUNT_ALREADY_EXISTS = "Аккаунт уже добавлен"
MAIL_SERVER_ERROR = "Ошибка доступа к почтовому серверу"
UNKNOWN_ERROR = "Неизвестная ошибка"
INVALID_TOKEN = "Semn invalid"
AUTH_ERROR = "Nu se poate realiza conectarea"
ACCESS_ERROR = "Eroare de acces"
CONNECTION_ERROR = "Eroare la conectarea la server."
CAPTCHA_ERROR = "Cuvântul de securitate nu este corect."
SOCIAL_FACEBOOK_LOGIN_ACCESS_DISABLE = "Pentru acest utilizator nu sa asigurat încă un cont de e-mail. Conectați-vă cu contul dvs. de e-mail și activați această caracteristică în setările."
SOCIAL_TWITTER_LOGIN_ACCESS_DISABLE = "Pentru acest utilizator nu sa asigurat încă un cont de e-mail. Conectați-vă cu contul dvs. de e-mail și activați această caracteristică în setările."
SOCIAL_GOOGLE_LOGIN_ACCESS_DISABLE = "Pentru acest utilizator nu sa asigurat încă un cont de e-mail. Conectați-vă cu contul dvs. de e-mail și activați această caracteristică în setările."
DOMAIN_NOT_ALLOWED = "Domeniul nu apartine de Wey5"
ACCOUNT_NOT_ALLOWED = "Contul nu are permisiunea de conectare"
CANT_GET_MESSAGE_LIST = "Nu găsesc o lista de scrisori"
CANT_GET_MESSAGE = "Nu pot obține scrisoarea. Încercați din nou"
CANT_DELETE_MESSAGE = "Nu pot șterge scrisoarea. Încercați din nou"
CANT_MOVE_MESSAGE = "Nu pot muta scrisoarea.Încercați din nou"
CANT_SAVE_MESSAGE = "Nu pot salva mesajul. Încercați din nou"
CANT_SEND_MESSAGE = "Nu pot trimite scrisoarea.Încercați din nou"
INVALID_RECIPIENTS = "Verificați dacă ați introdus toate adresele."
CANT_CREATE_FOLDER = "Nu crea dosarul. Încercați din nou"
CANT_RENAME_FOLDER = "Nu pot redenumi dosarul. Încercați din nou"
CANT_DELETE_FOLDER = "Nu pot șterge dosarul. Încercați din nou"
CANT_DELETE_NON_EMPTY_FOLDER = "Nu pot șterge un dosar care nu este gol"
CANT_SUBSCRIBE_FOLDER = "Nu pot semna dosarul. Încercați din nou"
CANT_UNSUBSCRIBE_FOLDER = "Nu mă pot dezbona. Încercați din nou"
CANT_SAVE_SETTINGS = "Nu pot salva opțiunile. Încercați din nou"
CANT_SAVE_PLUGIN_SETTINGS = "Nu pot salva setările. Încercați din nou"
DOMAIN_ALREADY_EXISTS = "Domeniu există deja."
CANT_INSTALL_PACKAGE = "Nu pot instala pachetul.Încercați din nou"
CANT_DELETE_PACKAGE = "Nu pot șterge pachetul. Încercați din nou"
INVALID_PLUGIN_PACKAGE = "Pachetul este invalid"
UNSUPPORTED_PLUGIN_PACKAGE = "Plugin-ul necesită sprijinul complet al serverului"
LICENSING_SERVER_IS_UNAVAILABLE = "Server de abonamente este temporar indisponibil."
LICENSING_EXPIRED = "Licența a expirat."
LICENSING_BANNED = "Licență restricționată."
DEMO_SEND_MESSAGE_ERROR = "Cont demo trimite e-mail la adresele de e-mail externe este interzisă!"
ACCOUNT_ALREADY_EXISTS = "Contul deja există"
MAIL_SERVER_ERROR = "Nu am reușit să accesez serverul de e-mail"
UNKNOWN_ERROR = "Eroare necunoscută"
[STATIC]
BACK_LINK = "Обновить"
DOMAIN_LIST_DESC = "Список доменов, к которым разрешен доступ через веб почту."
PHP_EXSTENSIONS_ERROR_DESC = "Необходимые расширения PHP не установлены на вашем сервере!"
PHP_VERSION_ERROR_DESC = "Ваша версия PHP (%VERSION%) ниже требуемой 5.3.0!"
BACK_LINK = "Actualizare"
DOMAIN_LIST_DESC = "Lista de domenii care au permisiunea de a fi accesate prin webmail."
PHP_EXSTENSIONS_ERROR_DESC = "Extensiile PHP necesare nu sunt instalate pe server-ul dvs.!"
PHP_VERSION_ERROR_DESC = "Versiunea dvs. de PHP (%VERSION%) este mai mica de cea dorită, 5.3.0!"
NO_SCRIPT_TITLE = "Для работы приложения необходим JavaScript."
NO_SCRIPT_DESC = "По-видимому, JavaScript либо не поддерживается вашим браузером, либо отключен.
Включите JavaScript, изменив настройки браузера, затем повторите попытку."
NO_SCRIPT_TITLE = "Pentru rulare este necesar JavaScript."
NO_SCRIPT_DESC = "Aparent, JavaScript nu este instalat, sau nu este acceptat de browserul dumneavoastră.
Activați JavaScript, schimband optiunile browserului dvs., apoi încercați din nou."
NO_COOKIE_TITLE = "Для работы приложения необходимы Cookie."
NO_COOKIE_DESC = "По-видимому, Cookie либо не поддерживаются вашим браузером, либо отключены.
Включите Cookie, изменив настройки браузера, затем повторите попытку."
NO_COOKIE_TITLE = "Cererea necesită Cookie-uri."
NO_COOKIE_DESC = "Aparent, Cookie sau nu este acceptat de browser-ul dvs. sau oprit.
Întoarceți Cookie, schimband optiunile browserului dvs., apoi încercați din nou."
BAD_BROWSER_TITLE = "Ваш браузер устарел."
BAD_BROWSER_DESC = "Чтобы использовать все возможности приложения,
загрузите и установите один из этих браузеров:"
BAD_BROWSER_TITLE = "Browser-ul dvs. este depășit."
BAD_BROWSER_DESC = "Pentru a utiliza toate caracteristicile cererii,
descărcați și instalați unul dintre aceste browsere:"

View file

@ -637,7 +637,7 @@
border-radius: 8px;
}
/*! normalize.css 2012-03-11T12:53 UTC - http://github.com/necolas/normalize.css */
/* =============================================================================
@ -1142,7 +1142,7 @@ table {
border-collapse: collapse;
border-spacing: 0;
}
@charset "UTF-8";
@font-face {
@ -1474,7 +1474,7 @@ table {
.icon-mail:before {
content: "\e062";
}
/** initial setup **/
.nano {
/*
@ -1591,7 +1591,7 @@ table {
.nano > .pane2:hover > .slider2, .nano > .pane2.active > .slider2 {
background-color: rgba(0, 0, 0, 0.4);
}
/* Magnific Popup CSS */
.mfp-bg {
top: 0;
@ -1956,7 +1956,7 @@ img.mfp-img {
right: 0;
padding-top: 0; }
/* overlay at start */
.mfp-fade.mfp-bg {
@ -2002,7 +2002,7 @@ img.mfp-img {
-moz-transform: translateX(50px);
transform: translateX(50px);
}
.simple-pace {
-webkit-pointer-events: none;
pointer-events: none;
@ -2073,7 +2073,7 @@ img.mfp-img {
@keyframes simple-pace-stripe-animation {
0% { transform: none; transform: none; }
100% { transform: translate(-32px, 0); transform: translate(-32px, 0); }
}
}
.inputosaurus-container {
background-color:#fff;
border:1px solid #bcbec0;
@ -2141,7 +2141,7 @@ img.mfp-img {
box-shadow:none;
}
.inputosaurus-input-hidden { display:none; }
.flag-wrapper {
width: 24px;
height: 16px;
@ -2184,7 +2184,7 @@ img.mfp-img {
.flag.flag-pt-br {background-position: -192px -11px}
.flag.flag-cn, .flag.flag-zh-tw, .flag.flag-zh-cn, .flag.flag-zh-hk {background-position: -208px -22px}
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
.clearfix {
*zoom: 1;

View file

@ -1,5 +1,5 @@
/*! RainLoop Webmail Admin Module (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
(function (window, $, ko, crossroads, hasher, _) {
/*! RainLoop Webmail Admin Module (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
(function (window, $, ko, crossroads, hasher, _) {
'use strict';
@ -70,14 +70,14 @@ var
$document = $(window.document),
NotificationClass = window.Notification && window.Notification.requestPermission ? window.Notification : null
;
;
/*jshint onevar: false*/
/**
* @type {?AdminApp}
*/
var RL = null;
/*jshint onevar: true*/
/**
* @type {?}
*/
@ -226,7 +226,7 @@ if (Globals.bAllowPdfPreview && navigator && navigator.mimeTypes)
return oType && 'application/pdf' === oType.type;
});
}
Consts.Defaults = {};
Consts.Values = {};
Consts.DataImages = {};
@ -344,7 +344,7 @@ Consts.DataImages.UserDotPic = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA
* @type {string}
*/
Consts.DataImages.TranspPic = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQIW2NkAAIAAAoAAggA9GkAAAAASUVORK5CYII=';
/**
* @enum {string}
*/
@ -688,7 +688,7 @@ Enums.Notification = {
'UnknownNotification': 999,
'UnknownError': 999
};
Utils.trim = $.trim;
Utils.inArray = $.inArray;
Utils.isArray = _.isArray;
@ -2383,7 +2383,7 @@ Utils.computedPagenatorHelper = function (koCurrentPage, koPageCount)
return aResult;
};
};
// Base64 encode / decode
// http://www.webtoolkit.info/
@ -2546,7 +2546,7 @@ Base64 = {
}
};
/*jslint bitwise: false*/
/*jslint bitwise: false*/
ko.bindingHandlers.tooltip = {
'init': function (oElement, fValueAccessor) {
if (!Globals.bMobileDevice)
@ -3168,7 +3168,7 @@ ko.observable.fn.validateFunc = function (fFunc)
return this;
};
/**
* @constructor
*/
@ -3466,7 +3466,7 @@ LinkBuilder.prototype.socialFacebook = function ()
{
return this.sServer + 'SocialFacebook' + ('' !== this.sSpecSuffix ? '/' + this.sSpecSuffix + '/' : '');
};
/**
* @type {Object}
*/
@ -3560,7 +3560,7 @@ Plugins.settingsGet = function (sPluginSection, sName)
};
/**
* @constructor
*/
@ -3634,7 +3634,7 @@ CookieDriver.prototype.get = function (sKey)
return mResult;
};
/**
* @constructor
*/
@ -3706,7 +3706,7 @@ LocalStorageDriver.prototype.get = function (sKey)
return mResult;
};
/**
* @constructor
*/
@ -3749,7 +3749,7 @@ LocalStorage.prototype.get = function (iKey)
{
return this.oDriver ? this.oDriver.get('p' + iKey) : null;
};
/**
* @constructor
*/
@ -3762,7 +3762,7 @@ KnoinAbstractBoot.prototype.bootstart = function ()
{
};
/**
* @param {string=} sPosition = ''
* @param {string=} sTemplate = ''
@ -3822,7 +3822,7 @@ KnoinAbstractViewModel.prototype.viewModelPosition = function ()
KnoinAbstractViewModel.prototype.cancelCommand = KnoinAbstractViewModel.prototype.closeCommand = function ()
{
};
/**
* @param {string} sScreenName
* @param {?=} aViewModels = []
@ -3898,7 +3898,7 @@ KnoinAbstractScreen.prototype.__start = function ()
this.oCross = oRoute;
}
};
/**
* @constructor
*/
@ -4287,7 +4287,7 @@ Knoin.prototype.bootstart = function ()
};
kn = new Knoin();
/**
* @param {string=} sEmail
* @param {string=} sName
@ -4651,7 +4651,7 @@ EmailModel.prototype.inputoTagLine = function ()
{
return 0 < this.name.length ? this.name + ' (' + this.email + ')' : this.email;
};
/**
* @constructor
* @extends KnoinAbstractViewModel
@ -4883,7 +4883,7 @@ PopupsDomainViewModel.prototype.clearForm = function ()
this.smtpAuth(true);
this.whiteList('');
};
/**
* @constructor
* @extends KnoinAbstractViewModel
@ -5020,7 +5020,7 @@ PopupsPluginViewModel.prototype.onBuild = function ()
return bResult;
});
};
/**
* @constructor
* @extends KnoinAbstractViewModel
@ -5136,7 +5136,7 @@ PopupsActivateViewModel.prototype.validateSubscriptionKey = function ()
{
var sValue = this.key();
return '' === sValue || !!/^RL[\d]+-[A-Z0-9\-]+Z$/.test(Utils.trim(sValue));
};
};
/**
* @constructor
* @extends KnoinAbstractViewModel
@ -5210,7 +5210,7 @@ PopupsLanguagesViewModel.prototype.changeLanguage = function (sLang)
RL.data().mainLanguage(sLang);
this.cancelCommand();
};
/**
* @constructor
* @extends KnoinAbstractViewModel
@ -5328,7 +5328,7 @@ PopupsAskViewModel.prototype.onBuild = function ()
});
};
/**
* @constructor
* @extends KnoinAbstractViewModel
@ -5415,7 +5415,7 @@ AdminLoginViewModel.prototype.onHide = function ()
{
this.loginFocus(false);
};
/**
* @param {?} oScreen
*
@ -5437,7 +5437,7 @@ AdminMenuViewModel.prototype.link = function (sRoute)
{
return '#/' + sRoute;
};
/**
* @constructor
* @extends KnoinAbstractViewModel
@ -5459,7 +5459,7 @@ AdminPaneViewModel.prototype.logoutClick = function ()
RL.remote().adminLogout(function () {
RL.loginAndLogoutReload();
});
};
};
/**
* @constructor
*/
@ -5559,7 +5559,7 @@ AdminGeneral.prototype.selectLanguage = function ()
{
kn.showScreenPopup(PopupsLanguagesViewModel);
};
/**
* @constructor
*/
@ -5611,7 +5611,7 @@ AdminLogin.prototype.onBuild = function ()
}, 50);
};
/**
* @constructor
*/
@ -5680,7 +5680,7 @@ AdminBranding.prototype.onBuild = function ()
}, 50);
};
/**
* @constructor
*/
@ -5900,7 +5900,7 @@ AdminContacts.prototype.onBuild = function ()
}, 50);
};
/**
* @constructor
*/
@ -5989,7 +5989,7 @@ AdminDomains.prototype.onDomainListChangeRequest = function ()
{
RL.reloadDomainList();
};
/**
* @constructor
*/
@ -6077,7 +6077,7 @@ AdminSecurity.prototype.phpInfoLink = function ()
{
return RL.link().phpInfo();
};
/**
* @constructor
*/
@ -6193,7 +6193,7 @@ AdminSocial.prototype.onBuild = function ()
}, 50);
};
/**
* @constructor
*/
@ -6290,7 +6290,7 @@ AdminPlugins.prototype.onPluginDisableRequest = function (sResult, oData)
RL.reloadPluginList();
};
/**
* @constructor
*/
@ -6394,7 +6394,7 @@ AdminPackages.prototype.installPackage = function (oPackage)
RL.remote().packageInstall(this.requestHelper(oPackage, true), oPackage);
}
};
/**
* @constructor
*/
@ -6445,7 +6445,7 @@ AdminLicensing.prototype.licenseExpiredMomentValue = function ()
{
var oDate = moment.unix(this.licenseExpired());
return oDate.format('LL') + ' (' + oDate.from(moment()) + ')';
};
};
/**
* @constructor
*/
@ -6520,7 +6520,7 @@ AbstractData.prototype.populateDataOnStart = function()
this.contactsIsAllowed(!!RL.settingsGet('ContactsIsAllowed'));
};
/**
* @constructor
* @extends AbstractData
@ -6554,7 +6554,7 @@ _.extend(AdminDataStorage.prototype, AbstractData.prototype);
AdminDataStorage.prototype.populateDataOnStart = function()
{
AbstractData.prototype.populateDataOnStart.call(this);
};
};
/**
* @constructor
*/
@ -6828,7 +6828,7 @@ AbstractAjaxRemoteStorage.prototype.jsVersion = function (fCallback, sVersion)
'Version': sVersion
});
};
/**
* @constructor
* @extends AbstractAjaxRemoteStorage
@ -7072,7 +7072,7 @@ AdminAjaxRemoteStorage.prototype.adminPing = function (fCallback)
{
this.defaultRequest(fCallback, 'AdminPing');
};
/**
* @constructor
*/
@ -7138,7 +7138,7 @@ AbstractCacheStorage.prototype.setEmailsPicsHashesData = function (oData)
{
this.oEmailsPicsHashes = oData;
};
/**
* @constructor
* @extends AbstractCacheStorage
@ -7149,7 +7149,7 @@ function AdminCacheStorage()
}
_.extend(AdminCacheStorage.prototype, AbstractCacheStorage.prototype);
/**
* @param {Array} aViewModels
* @constructor
@ -7327,7 +7327,7 @@ AbstractSettings.prototype.routes = function ()
['', oRules]
];
};
/**
* @constructor
* @extends KnoinAbstractScreen
@ -7342,7 +7342,7 @@ _.extend(AdminLoginScreen.prototype, KnoinAbstractScreen.prototype);
AdminLoginScreen.prototype.onShow = function ()
{
RL.setTitle('');
};
};
/**
* @constructor
* @extends AbstractSettings
@ -7362,7 +7362,7 @@ AdminSettingsScreen.prototype.onShow = function ()
// AbstractSettings.prototype.onShow.call(this);
RL.setTitle('');
};
};
/**
* @constructor
* @extends KnoinAbstractBoot
@ -7678,7 +7678,7 @@ AbstractApp.prototype.bootstart = function ()
ssm.ready();
};
/**
* @constructor
* @extends AbstractApp
@ -7917,7 +7917,7 @@ AdminApp.prototype.bootstart = function ()
* @type {AdminApp}
*/
RL = new AdminApp();
$html.addClass(Globals.bMobileDevice ? 'mobile' : 'no-mobile');
$window.keydown(Utils.killCtrlAandS).keyup(Utils.killCtrlAandS);
@ -7964,9 +7964,9 @@ window['__RLBOOT'] = function (fCall) {
window['__RLBOOT'] = null;
});
};
if (window.SimplePace) {
window.SimplePace.add(10);
}
}
}(window, jQuery, ko, crossroads, hasher, _));

File diff suppressed because one or more lines are too long

View file

@ -1,5 +1,5 @@
/*! RainLoop Webmail Main Module (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
(function (window, $, ko, crossroads, hasher, moment, Jua, _, ifvisible) {
/*! RainLoop Webmail Main Module (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
(function (window, $, ko, crossroads, hasher, moment, Jua, _, ifvisible) {
'use strict';
@ -70,14 +70,14 @@ var
$document = $(window.document),
NotificationClass = window.Notification && window.Notification.requestPermission ? window.Notification : null
;
;
/*jshint onevar: false*/
/**
* @type {?RainLoopApp}
*/
var RL = null;
/*jshint onevar: true*/
/**
* @type {?}
*/
@ -226,7 +226,7 @@ if (Globals.bAllowPdfPreview && navigator && navigator.mimeTypes)
return oType && 'application/pdf' === oType.type;
});
}
Consts.Defaults = {};
Consts.Values = {};
Consts.DataImages = {};
@ -344,7 +344,7 @@ Consts.DataImages.UserDotPic = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA
* @type {string}
*/
Consts.DataImages.TranspPic = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQIW2NkAAIAAAoAAggA9GkAAAAASUVORK5CYII=';
/**
* @enum {string}
*/
@ -688,7 +688,7 @@ Enums.Notification = {
'UnknownNotification': 999,
'UnknownError': 999
};
Utils.trim = $.trim;
Utils.inArray = $.inArray;
Utils.isArray = _.isArray;
@ -2383,7 +2383,7 @@ Utils.computedPagenatorHelper = function (koCurrentPage, koPageCount)
return aResult;
};
};
// Base64 encode / decode
// http://www.webtoolkit.info/
@ -2546,7 +2546,7 @@ Base64 = {
}
};
/*jslint bitwise: false*/
/*jslint bitwise: false*/
ko.bindingHandlers.tooltip = {
'init': function (oElement, fValueAccessor) {
if (!Globals.bMobileDevice)
@ -3168,7 +3168,7 @@ ko.observable.fn.validateFunc = function (fFunc)
return this;
};
/**
* @constructor
*/
@ -3466,7 +3466,7 @@ LinkBuilder.prototype.socialFacebook = function ()
{
return this.sServer + 'SocialFacebook' + ('' !== this.sSpecSuffix ? '/' + this.sSpecSuffix + '/' : '');
};
/**
* @type {Object}
*/
@ -3560,7 +3560,7 @@ Plugins.settingsGet = function (sPluginSection, sName)
};
function NewHtmlEditorWrapper(oElement, fOnBlur, fOnReady)
{
var self = this;
@ -3763,7 +3763,7 @@ NewHtmlEditorWrapper.prototype.clear = function (bFocus)
this.setHtml('', bFocus);
};
/**
* @constructor
* @param {koProperty} oKoList
@ -4304,7 +4304,7 @@ Selector.prototype.on = function (sEventName, fCallback)
{
this.oCallbacks[sEventName] = fCallback;
};
/**
* @constructor
*/
@ -4378,7 +4378,7 @@ CookieDriver.prototype.get = function (sKey)
return mResult;
};
/**
* @constructor
*/
@ -4450,7 +4450,7 @@ LocalStorageDriver.prototype.get = function (sKey)
return mResult;
};
/**
* @constructor
*/
@ -4493,7 +4493,7 @@ LocalStorage.prototype.get = function (iKey)
{
return this.oDriver ? this.oDriver.get('p' + iKey) : null;
};
/**
* @constructor
*/
@ -4506,7 +4506,7 @@ KnoinAbstractBoot.prototype.bootstart = function ()
{
};
/**
* @param {string=} sPosition = ''
* @param {string=} sTemplate = ''
@ -4566,7 +4566,7 @@ KnoinAbstractViewModel.prototype.viewModelPosition = function ()
KnoinAbstractViewModel.prototype.cancelCommand = KnoinAbstractViewModel.prototype.closeCommand = function ()
{
};
/**
* @param {string} sScreenName
* @param {?=} aViewModels = []
@ -4642,7 +4642,7 @@ KnoinAbstractScreen.prototype.__start = function ()
this.oCross = oRoute;
}
};
/**
* @constructor
*/
@ -5031,7 +5031,7 @@ Knoin.prototype.bootstart = function ()
};
kn = new Knoin();
/**
* @param {string=} sEmail
* @param {string=} sName
@ -5395,7 +5395,7 @@ EmailModel.prototype.inputoTagLine = function ()
{
return 0 < this.name.length ? this.name + ' (' + this.email + ')' : this.email;
};
/**
* @constructor
*/
@ -5517,7 +5517,7 @@ ContactModel.prototype.lineAsCcc = function ()
return aResult.join(' ');
};
/**
* @param {number=} iType = Enums.ContactPropertyType.Unknown
* @param {string=} sValue = ''
@ -5539,7 +5539,7 @@ function ContactPropertyModel(iType, sValue, bFocused, sPlaceholder)
return sPlaceholder ? Utils.i18n(sPlaceholder) : '';
}, this);
}
/**
* @constructor
*/
@ -5775,7 +5775,7 @@ AttachmentModel.prototype.iconClass = function ()
return sClass;
};
/**
* @constructor
* @param {string} sId
@ -5836,7 +5836,7 @@ ComposeAttachmentModel.prototype.initByUploadJson = function (oJsonAttachment)
}
return bResult;
};
};
/**
* @constructor
*/
@ -6814,7 +6814,7 @@ MessageModel.prototype.showInternalImages = function (bLazy)
Utils.windowResize(500);
}
};
/**
* @constructor
*/
@ -7148,7 +7148,7 @@ FolderModel.prototype.printableFullName = function ()
{
return this.fullName.split(this.delimiter).join(' / ');
};
/**
* @param {string} sEmail
* @param {boolean=} bCanBeDelete = true
@ -7169,7 +7169,7 @@ AccountModel.prototype.email = '';
AccountModel.prototype.changeAccountLink = function ()
{
return RL.link().change(this.email);
};
};
/**
* @param {string} sId
* @param {string} sEmail
@ -7205,7 +7205,7 @@ IdentityModel.prototype.formattedNameForEmail = function ()
var sName = this.name();
return '' === sName ? this.email() : '"' + Utils.quoteName(sName) + '" <' + this.email() + '>';
};
/**
* @constructor
* @extends KnoinAbstractViewModel
@ -7315,7 +7315,7 @@ PopupsFolderClearViewModel.prototype.onBuild = function ()
return bResult;
});
};
/**
* @constructor
* @extends KnoinAbstractViewModel
@ -7439,7 +7439,7 @@ PopupsFolderCreateViewModel.prototype.onBuild = function ()
return bResult;
});
};
/**
* @constructor
* @extends KnoinAbstractViewModel
@ -7558,7 +7558,7 @@ PopupsFolderSystemViewModel.prototype.onBuild = function ()
});
};
/**
* @constructor
* @extends KnoinAbstractViewModel
@ -9039,7 +9039,7 @@ PopupsComposeViewModel.prototype.triggerForResize = function ()
this.editorResizeThrottle();
};
/**
* @constructor
* @extends KnoinAbstractViewModel
@ -9679,7 +9679,7 @@ PopupsContactsViewModel.prototype.onHide = function ()
oItem.checked(false);
});
};
/**
* @constructor
* @extends KnoinAbstractViewModel
@ -9823,7 +9823,7 @@ PopupsAdvancedSearchViewModel.prototype.onBuild = function ()
return bResult;
});
};
/**
* @constructor
* @extends KnoinAbstractViewModel
@ -9951,7 +9951,7 @@ PopupsAddAccountViewModel.prototype.onBuild = function ()
return bResult;
});
};
/**
* @constructor
* @extends KnoinAbstractViewModel
@ -10113,7 +10113,7 @@ PopupsIdentityViewModel.prototype.onBuild = function ()
return bResult;
});
};
/**
* @constructor
* @extends KnoinAbstractViewModel
@ -10187,7 +10187,7 @@ PopupsLanguagesViewModel.prototype.changeLanguage = function (sLang)
RL.data().mainLanguage(sLang);
this.cancelCommand();
};
/**
* @constructor
* @extends KnoinAbstractViewModel
@ -10305,7 +10305,7 @@ PopupsAskViewModel.prototype.onBuild = function ()
});
};
/**
* @constructor
* @extends KnoinAbstractViewModel
@ -10368,7 +10368,7 @@ PopupsPgpKey.prototype.onShow = function (bPrivate, fCallback)
this.bPrivate = bPrivate;
this.fCallback = fCallback;
};
/**
* @constructor
* @extends KnoinAbstractViewModel
@ -10640,7 +10640,7 @@ LoginViewModel.prototype.selectLanguage = function ()
kn.showScreenPopup(PopupsLanguagesViewModel);
};
/**
* @constructor
* @extends KnoinAbstractViewModel
@ -10707,7 +10707,7 @@ AbstractSystemDropDownViewModel.prototype.logoutClick = function ()
RL.loginAndLogoutReload(true, RL.settingsGet('ParentEmail') && 0 < RL.settingsGet('ParentEmail').length);
});
};
};
/**
* @constructor
* @extends AbstractSystemDropDownViewModel
@ -10719,7 +10719,7 @@ function MailBoxSystemDropDownViewModel()
}
Utils.extendAsViewModel('MailBoxSystemDropDownViewModel', MailBoxSystemDropDownViewModel, AbstractSystemDropDownViewModel);
/**
* @constructor
* @extends AbstractSystemDropDownViewModel
@ -10731,7 +10731,7 @@ function SettingsSystemDropDownViewModel()
}
Utils.extendAsViewModel('SettingsSystemDropDownViewModel', SettingsSystemDropDownViewModel, AbstractSystemDropDownViewModel);
/**
* @constructor
* @extends KnoinAbstractViewModel
@ -10861,7 +10861,7 @@ MailBoxFolderListViewModel.prototype.contactsClick = function ()
kn.showScreenPopup(PopupsContactsViewModel);
}
};
/**
* @constructor
* @extends KnoinAbstractViewModel
@ -11780,7 +11780,7 @@ MailBoxMessageListViewModel.prototype.initUploaderForAppend = function ()
;
return !!oJua;
};
};
/**
* @constructor
* @extends KnoinAbstractViewModel
@ -12173,7 +12173,7 @@ MailBoxMessageViewViewModel.prototype.readReceipt = function (oMessage)
RL.reloadFlagsCurrentMessageListAndMessageFromCache();
}
};
/**
* @param {?} oScreen
*
@ -12200,7 +12200,7 @@ SettingsMenuViewModel.prototype.backToMailBoxClick = function ()
{
kn.setHash(RL.link().inbox());
};
/**
* @constructor
* @extends KnoinAbstractViewModel
@ -12223,7 +12223,7 @@ SettingsPaneViewModel.prototype.backToMailBoxClick = function ()
{
kn.setHash(RL.link().inbox());
};
/**
* @constructor
*/
@ -12383,7 +12383,7 @@ SettingsGeneral.prototype.selectLanguage = function ()
{
kn.showScreenPopup(PopupsLanguagesViewModel);
};
/**
* @constructor
*/
@ -12421,7 +12421,7 @@ SettingsContacts.prototype.onShow = function ()
{
this.showPassword(false);
};
/**
* @constructor
*/
@ -12502,7 +12502,7 @@ SettingsAccounts.prototype.deleteAccount = function (oAccountToRemove)
}
}
};
/**
* @constructor
*/
@ -12590,7 +12590,7 @@ SettingsIdentity.prototype.onBuild = function ()
}, 50);
};
/**
* @constructor
*/
@ -12748,7 +12748,7 @@ SettingsIdentities.prototype.onBuild = function (oDom)
});
}, 50);
};
};
/**
* @constructor
*/
@ -12815,7 +12815,7 @@ function SettingsSocialScreen()
}
Utils.addSettingsViewModel(SettingsSocialScreen, 'SettingsSocial', 'SETTINGS_LABELS/LABEL_SOCIAL_NAME', 'social');
/**
* @constructor
*/
@ -12879,7 +12879,7 @@ SettingsChangePasswordScreen.prototype.onChangePasswordResponse = function (sRes
this.passwordUpdateError(true);
}
};
/**
* @constructor
*/
@ -13074,7 +13074,7 @@ SettingsFolders.prototype.unSubscribeFolder = function (oFolder)
oFolder.subScribed(false);
};
/**
* @constructor
*/
@ -13291,7 +13291,7 @@ SettingsThemes.prototype.initCustomThemeUploader = function ()
return false;
};
/**
* @constructor
*/
@ -13366,7 +13366,7 @@ AbstractData.prototype.populateDataOnStart = function()
this.contactsIsAllowed(!!RL.settingsGet('ContactsIsAllowed'));
};
/**
* @constructor
* @extends AbstractData
@ -14399,7 +14399,7 @@ WebMailDataStorage.prototype.setMessageList = function (oData, bCached)
));
}
};
/**
* @constructor
*/
@ -14673,7 +14673,7 @@ AbstractAjaxRemoteStorage.prototype.jsVersion = function (fCallback, sVersion)
'Version': sVersion
});
};
/**
* @constructor
* @extends AbstractAjaxRemoteStorage
@ -15373,7 +15373,7 @@ WebMailAjaxRemoteStorage.prototype.socialUsers = function (fCallback)
this.defaultRequest(fCallback, 'SocialUsers');
};
/**
* @constructor
*/
@ -15439,7 +15439,7 @@ AbstractCacheStorage.prototype.setEmailsPicsHashesData = function (oData)
{
this.oEmailsPicsHashes = oData;
};
/**
* @constructor
* @extends AbstractCacheStorage
@ -15757,7 +15757,7 @@ WebMailCacheStorage.prototype.storeMessageFlagsToCacheByFolderAndUid = function
this.setMessageFlagsToCache(sFolder, sUid, aFlags);
}
};
/**
* @param {Array} aViewModels
* @constructor
@ -15935,7 +15935,7 @@ AbstractSettings.prototype.routes = function ()
['', oRules]
];
};
/**
* @constructor
* @extends KnoinAbstractScreen
@ -15950,7 +15950,7 @@ _.extend(LoginScreen.prototype, KnoinAbstractScreen.prototype);
LoginScreen.prototype.onShow = function ()
{
RL.setTitle('');
};
};
/**
* @constructor
* @extends KnoinAbstractScreen
@ -16131,7 +16131,7 @@ MailBoxScreen.prototype.routes = function ()
[/^([^\/]*)$/, {'normalize_': fNormS}]
];
};
/**
* @constructor
* @extends AbstractSettings
@ -16159,7 +16159,7 @@ SettingsScreen.prototype.onShow = function ()
RL.setTitle(this.sSettingsTitle);
};
/**
* @constructor
* @extends KnoinAbstractBoot
@ -16475,7 +16475,7 @@ AbstractApp.prototype.bootstart = function ()
ssm.ready();
};
/**
* @constructor
* @extends AbstractApp
@ -17416,7 +17416,7 @@ RainLoopApp.prototype.bootstart = function ()
* @type {RainLoopApp}
*/
RL = new RainLoopApp();
$html.addClass(Globals.bMobileDevice ? 'mobile' : 'no-mobile');
$window.keydown(Utils.killCtrlAandS).keyup(Utils.killCtrlAandS);
@ -17463,9 +17463,9 @@ window['__RLBOOT'] = function (fCall) {
window['__RLBOOT'] = null;
});
};
if (window.SimplePace) {
window.SimplePace.add(10);
}
}
}(window, jQuery, ko, crossroads, hasher, moment, Jua, _, ifvisible));

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long