* [ADD] Added In-App notifications polling. It will show up a browser notification when there are pending notifications

* [MOD] Improved Javascript error handling
* [MOD] Code refactoring

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
This commit is contained in:
nuxsmin
2018-10-16 01:13:38 +02:00
parent 0e3c8beaf2
commit e322563a66
35 changed files with 622 additions and 386 deletions

View File

@@ -35,12 +35,6 @@ class UserPreferencesData
* @var int
*/
public $user_id = 0;
/**
* Usar autentificación en 2 pasos
*
* @var bool
*/
public $use2Fa = false;
/**
* Lenguaje del usuario
*
@@ -77,22 +71,10 @@ class UserPreferencesData
* @var bool
*/
public $resultsAsCards = false;
/**
* @return boolean
* @var bool
*/
public function isUse2Fa()
{
return $this->use2Fa;
}
/**
* @param boolean $use2Fa
*/
public function setUse2Fa($use2Fa)
{
$this->use2Fa = $use2Fa;
}
public $checkNotifications = true;
/**
* @return string
@@ -260,4 +242,20 @@ class UserPreferencesData
{
$this->resultsAsCards = $resultsAsCards;
}
/**
* @return bool
*/
public function isCheckNotifications(): bool
{
return $this->checkNotifications;
}
/**
* @param bool $checkNotifications
*/
public function setCheckNotifications(bool $checkNotifications)
{
$this->checkNotifications = $checkNotifications;
}
}