mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-03 07:04:07 +01:00
* [FIX] Upgrading issues
This commit is contained in:
2
css/magnific-popup.min.css
vendored
2
css/magnific-popup.min.css
vendored
File diff suppressed because one or more lines are too long
2
css/toastr.min.css
vendored
2
css/toastr.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -255,6 +255,11 @@ class ConfigActionController implements ItemControllerInterface
|
||||
protected function saveConfig(Log $Log)
|
||||
{
|
||||
try {
|
||||
if (Checks::demoIsEnabled()) {
|
||||
$this->jsonResponse->setDescription(_('Ey, esto es una DEMO!!'));
|
||||
return;
|
||||
}
|
||||
|
||||
Config::saveConfig();
|
||||
|
||||
$this->jsonResponse->setStatus(0);
|
||||
|
||||
@@ -44,8 +44,9 @@ defined('APP_ROOT') || die(_('No es posible acceder directamente a este archivo'
|
||||
*/
|
||||
class Upgrade
|
||||
{
|
||||
private static $dbUpgrade = [110, 1121, 1122, 1123, 11213, 11219, 11220, 12001, 12002, 1316011001, 1316020501, 1316100601, 2017010901];
|
||||
private static $dbUpgrade = [110, 1121, 1122, 1123, 11213, 11219, 11220, 12001, 12002, 1316011001, 1316020501, 1316100601];
|
||||
private static $cfgUpgrade = [1124, 1316020501];
|
||||
private static $auxUpgrade = [12001, 12002, 20017010901, 20017011201];
|
||||
|
||||
/**
|
||||
* Inicia el proceso de actualización de la BBDD.
|
||||
@@ -64,7 +65,11 @@ class Upgrade
|
||||
throw new SPException(SPException::SP_CRITICAL, _('Error al aplicar la actualización de la Base de Datos'),
|
||||
_('Compruebe el registro de eventos para más detalles'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
foreach (self::$auxUpgrade as $upgradeVersion) {
|
||||
if ($version < $upgradeVersion) {
|
||||
if (self::auxUpgrades($upgradeVersion) === false) {
|
||||
throw new SPException(SPException::SP_CRITICAL,
|
||||
_('Error al aplicar la actualización auxiliar'),
|
||||
@@ -200,10 +205,10 @@ class Upgrade
|
||||
return (ProfileUtil::migrateProfiles() && UserMigrate::migrateUsersGroup());
|
||||
case 12002:
|
||||
return UserMigrate::setMigrateUsers();
|
||||
case 2017010901:
|
||||
Init::loadPlugins();
|
||||
|
||||
case 20017010901:
|
||||
return CustomFieldsUtil::migrateCustomFields() && UserPreferencesUtil::migrate();
|
||||
case 20017011201:
|
||||
return UserPreferencesUtil::migrate();
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -245,6 +250,14 @@ class Upgrade
|
||||
*/
|
||||
public static function upgradeConfig($version)
|
||||
{
|
||||
switch ($version) {
|
||||
case 20017011201:
|
||||
$Config = Session::getConfig();
|
||||
$Config->setSiteTheme('material-blue');
|
||||
Config::saveConfig($Config, false);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -283,6 +296,7 @@ class Upgrade
|
||||
}
|
||||
|
||||
try {
|
||||
$Config->setSiteTheme(Session::getTheme());
|
||||
$Config->setConfigVersion($version);
|
||||
Config::saveConfig($Config, false);
|
||||
rename(CONFIG_FILE, CONFIG_FILE . '.old');
|
||||
|
||||
@@ -27,6 +27,8 @@ namespace SP\Mgmt\Users;
|
||||
use Plugins\Authenticator\AuthenticatorData;
|
||||
use Plugins\Authenticator\AuthenticatorPlugin;
|
||||
use SP\Core\Exceptions\SPException;
|
||||
use SP\Core\Init;
|
||||
use SP\Core\Session;
|
||||
use SP\DataModel\PluginData;
|
||||
use SP\DataModel\UserData;
|
||||
use SP\DataModel\UserPreferencesData;
|
||||
@@ -65,6 +67,8 @@ class UserPreferencesUtil
|
||||
$Preferences = Util::castToClass(UserPreferencesData::class, $Preferences, 'SP\UserPreferences');
|
||||
$User->setUserPreferences($Preferences);
|
||||
|
||||
$Preferences->setTheme(Session::getTheme());
|
||||
|
||||
if ($Preferences->isUse2Fa()) {
|
||||
self::migrateTwoFA($User);
|
||||
}
|
||||
@@ -92,6 +96,8 @@ class UserPreferencesUtil
|
||||
*/
|
||||
protected static function migrateTwoFA(UserData $UserData)
|
||||
{
|
||||
Init::loadPlugins();
|
||||
|
||||
/** @var AuthenticatorData $AuthenticatorData */
|
||||
$AuthenticatorData = new AuthenticatorData();
|
||||
$AuthenticatorData->setUserId($UserData->getUserId());
|
||||
|
||||
@@ -324,7 +324,7 @@ class Util
|
||||
*/
|
||||
public static function getVersion($retBuild = false)
|
||||
{
|
||||
$build = '17010901';
|
||||
$build = '17011201';
|
||||
$version = [2, 0, 0];
|
||||
|
||||
if ($retBuild) {
|
||||
|
||||
@@ -7,6 +7,7 @@ CREATE TABLE `publicLinks` (
|
||||
publicLink_hash VARBINARY(100) NOT NULL,
|
||||
publicLink_linkData LONGBLOB
|
||||
);
|
||||
ALTER TABLE `accounts` DROP INDEX `IDX_searchTxt`;
|
||||
ALTER TABLE `usrData`
|
||||
ENGINE = InnoDB;
|
||||
ALTER TABLE `accFiles`
|
||||
@@ -32,8 +33,7 @@ ALTER TABLE `usrPassRecover`
|
||||
ALTER TABLE `usrProfiles`
|
||||
ENGINE = InnoDB;
|
||||
ALTER TABLE `accounts`
|
||||
ENGINE = InnoDB,
|
||||
ADD INDEX `IDX_searchTxt` (`account_name` ASC, `account_login` ASC, `account_url` ASC);
|
||||
ENGINE = InnoDB;
|
||||
CREATE UNIQUE INDEX unique_publicLink_accountId
|
||||
ON publicLinks (publicLink_itemId);
|
||||
CREATE UNIQUE INDEX unique_publicLink_hash
|
||||
@@ -45,13 +45,7 @@ CREATE TABLE `accFavorites` (
|
||||
`accfavorite_userId` SMALLINT UNSIGNED NOT NULL,
|
||||
INDEX `fk_accFavorites_accounts_idx` (`accfavorite_accountId` ASC),
|
||||
INDEX `fk_accFavorites_users_idx` (`accfavorite_userId` ASC),
|
||||
INDEX `search_idx` (`accfavorite_accountId` ASC, `accfavorite_userId` ASC),
|
||||
CONSTRAINT `fk_accFavorites_accounts` FOREIGN KEY (`accfavorite_accountId`) REFERENCES `accounts` (`account_id`)
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE NO ACTION,
|
||||
CONSTRAINT `fk_accFavorites_users` FOREIGN KEY (`accfavorite_userId`) REFERENCES `usrData` (`user_id`)
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE NO ACTION
|
||||
INDEX `search_idx` (`accfavorite_accountId` ASC, `accfavorite_userId` ASC)
|
||||
)
|
||||
ENGINE = InnoDB
|
||||
DEFAULT CHARSET = utf8;
|
||||
@@ -72,7 +72,9 @@ ALTER TABLE `accFavorites`
|
||||
FOREIGN KEY (`accfavorite_accountId`)
|
||||
REFERENCES `accounts` (`account_id`)
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE NO ACTION,
|
||||
ON UPDATE NO ACTION;
|
||||
|
||||
ALTER TABLE `accFavorites`
|
||||
ADD CONSTRAINT `fk_accFavorites_users_id`
|
||||
FOREIGN KEY (`accfavorite_userId`)
|
||||
REFERENCES `usrData` (`user_id`)
|
||||
@@ -91,7 +93,9 @@ ALTER TABLE `accGroups`
|
||||
FOREIGN KEY (`accgroup_accountId`)
|
||||
REFERENCES `accounts` (`account_id`)
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE CASCADE,
|
||||
ON UPDATE CASCADE;
|
||||
|
||||
ALTER TABLE `accGroups`
|
||||
ADD CONSTRAINT `fk_accGroups_groups_id`
|
||||
FOREIGN KEY (`accgroup_groupId`)
|
||||
REFERENCES `usrGroups` (`usergroup_id`)
|
||||
@@ -103,22 +107,30 @@ ALTER TABLE `accHistory`
|
||||
FOREIGN KEY (`acchistory_userId`)
|
||||
REFERENCES `usrData` (`user_id`)
|
||||
ON DELETE RESTRICT
|
||||
ON UPDATE RESTRICT,
|
||||
ON UPDATE RESTRICT;
|
||||
|
||||
ALTER TABLE `accHistory`
|
||||
ADD CONSTRAINT `fk_accHistory_users_edit_id`
|
||||
FOREIGN KEY (`acchistory_userEditId`)
|
||||
REFERENCES `usrData` (`user_id`)
|
||||
ON DELETE RESTRICT
|
||||
ON UPDATE RESTRICT,
|
||||
ON UPDATE RESTRICT;
|
||||
|
||||
ALTER TABLE `accHistory`
|
||||
ADD CONSTRAINT `fk_accHistory_category_id`
|
||||
FOREIGN KEY (`acchistory_categoryId`)
|
||||
REFERENCES `categories` (`category_id`)
|
||||
ON DELETE RESTRICT
|
||||
ON UPDATE RESTRICT,
|
||||
ON UPDATE RESTRICT;
|
||||
|
||||
ALTER TABLE `accHistory`
|
||||
ADD CONSTRAINT `fk_accHistory_customer_id`
|
||||
FOREIGN KEY (`acchistory_customerId`)
|
||||
REFERENCES `customers` (`customer_id`)
|
||||
ON DELETE RESTRICT
|
||||
ON UPDATE RESTRICT,
|
||||
ON UPDATE RESTRICT;
|
||||
|
||||
ALTER TABLE `accHistory`
|
||||
ADD CONSTRAINT `fk_accHistory_userGroup_id`
|
||||
FOREIGN KEY (`acchistory_userGroupId`)
|
||||
REFERENCES `usrGroups` (`usergroup_id`)
|
||||
@@ -130,7 +142,9 @@ ALTER TABLE `accTags`
|
||||
FOREIGN KEY (`acctag_accountId`)
|
||||
REFERENCES `accounts` (`account_id`)
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE CASCADE,
|
||||
ON UPDATE CASCADE;
|
||||
|
||||
ALTER TABLE `accTags`
|
||||
ADD CONSTRAINT `fk_accTags_tags_id`
|
||||
FOREIGN KEY (`acctag_tagId`)
|
||||
REFERENCES `tags` (`tag_id`)
|
||||
@@ -142,7 +156,9 @@ ALTER TABLE `accUsers`
|
||||
FOREIGN KEY (`accuser_accountId`)
|
||||
REFERENCES `accounts` (`account_id`)
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE CASCADE,
|
||||
ON UPDATE CASCADE;
|
||||
|
||||
ALTER TABLE `accUsers`
|
||||
ADD CONSTRAINT `fk_accUsers_users_id`
|
||||
FOREIGN KEY (`accuser_userId`)
|
||||
REFERENCES `usrData` (`user_id`)
|
||||
@@ -154,22 +170,30 @@ ALTER TABLE `accounts`
|
||||
FOREIGN KEY (`account_categoryId`)
|
||||
REFERENCES `categories` (`category_id`)
|
||||
ON DELETE RESTRICT
|
||||
ON UPDATE CASCADE,
|
||||
ON UPDATE CASCADE;
|
||||
|
||||
ALTER TABLE `accounts`
|
||||
ADD CONSTRAINT `fk_accounts_user_id`
|
||||
FOREIGN KEY (`account_userId`)
|
||||
REFERENCES `usrData` (`user_id`)
|
||||
ON DELETE RESTRICT
|
||||
ON UPDATE RESTRICT,
|
||||
ON UPDATE RESTRICT;
|
||||
|
||||
ALTER TABLE `accounts`
|
||||
ADD CONSTRAINT `fk_accounts_user_edit_id`
|
||||
FOREIGN KEY (`account_userEditId`)
|
||||
REFERENCES `usrData` (`user_id`)
|
||||
ON DELETE RESTRICT
|
||||
ON UPDATE RESTRICT,
|
||||
ON UPDATE RESTRICT;
|
||||
|
||||
ALTER TABLE `accounts`
|
||||
ADD CONSTRAINT `fk_accounts_customer_id`
|
||||
FOREIGN KEY (`account_customerId`)
|
||||
REFERENCES `customers` (`customer_id`)
|
||||
ON DELETE RESTRICT
|
||||
ON UPDATE RESTRICT,
|
||||
ON UPDATE RESTRICT;
|
||||
|
||||
ALTER TABLE `accounts`
|
||||
ADD CONSTRAINT `fk_accounts_userGroup_id`
|
||||
FOREIGN KEY (`account_userGroupId`)
|
||||
REFERENCES `usrGroups` (`usergroup_id`)
|
||||
@@ -181,7 +205,9 @@ ALTER TABLE `authTokens`
|
||||
FOREIGN KEY (`authtoken_userId`)
|
||||
REFERENCES `usrData` (`user_id`)
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE CASCADE,
|
||||
ON UPDATE CASCADE;
|
||||
|
||||
ALTER TABLE `authTokens`
|
||||
ADD CONSTRAINT `fk_authTokens_createdBy_id`
|
||||
FOREIGN KEY (`authtoken_createdBy`)
|
||||
REFERENCES `usrData` (`user_id`)
|
||||
@@ -200,7 +226,9 @@ ALTER TABLE `usrData`
|
||||
FOREIGN KEY (`user_groupId`)
|
||||
REFERENCES `usrGroups` (`usergroup_id`)
|
||||
ON DELETE RESTRICT
|
||||
ON UPDATE RESTRICT,
|
||||
ON UPDATE RESTRICT;
|
||||
|
||||
ALTER TABLE `usrData`
|
||||
ADD CONSTRAINT `fk_usrData_profiles_id`
|
||||
FOREIGN KEY (`user_profileId`)
|
||||
REFERENCES `usrProfiles` (`userprofile_id`)
|
||||
@@ -219,7 +247,9 @@ ALTER TABLE `usrToGroups`
|
||||
FOREIGN KEY (`usertogroup_userId`)
|
||||
REFERENCES `usrData` (`user_id`)
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE CASCADE,
|
||||
ON UPDATE CASCADE;
|
||||
|
||||
ALTER TABLE `usrToGroups`
|
||||
ADD CONSTRAINT `fk_usrToGroups_groups_id`
|
||||
FOREIGN KEY (`usertogroup_groupId`)
|
||||
REFERENCES `usrGroups` (`usergroup_id`)
|
||||
|
||||
@@ -1 +1 @@
|
||||
.dtp{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.2);z-index:2000;font-size:15px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dtp>.dtp-content{background:#fff;max-width:300px;box-shadow:0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);max-height:520px;position:relative;left:50%}.dtp>.dtp-content>.dtp-date-view>header.dtp-header{background:#607d8b;color:#eceff1;text-align:center;padding:.3em}.dtp div.dtp-date,.dtp div.dtp-time{background:#607d8b;text-align:center;color:#eceff1;padding:10px}.dtp div.dtp-date>div{padding:0;margin:0}.dtp div.dtp-actual-month{font-size:1.5em}.dtp div.dtp-actual-num{font-size:3em;line-height:.9}.dtp div.dtp-actual-maxtime{font-size:3em;line-height:.9}.dtp div.dtp-actual-year{font-size:1.5em;color:#fff}.dtp div.dtp-picker{padding:1em;text-align:center}.dtp div.dtp-picker-month,.dtp div.dtp-actual-time{font-weight:500;text-align:center}.dtp div.dtp-picker-month{padding-bottom:20px !important;text-transform:uppercase !important}.dtp .dtp-close{position:absolute;top:.5em;right:1em}.dtp .dtp-close>a{color:#fff}.dtp .dtp-close>a>i{font-size:1em}.dtp table.dtp-picker-days{margin:0;min-height:251px}.dtp table.dtp-picker-days,.dtp table.dtp-picker-days tr,.dtp table.dtp-picker-days tr>td{border:0}.dtp table.dtp-picker-days tr>td{font-weight:700;text-align:center;padding:.5em}.dtp table.dtp-picker-days tr>td>span.dtp-select-day{color:#bdbdbd !important;padding:.4em .5em .5em .6em}.dtp table.dtp-picker-days tr>td>a,.dtp .dtp-picker-time>a{color:#212121;text-decoration:none;padding:.4em;border-radius:5px !important}.dtp table.dtp-picker-days tr>td>a.selected{background:#607d8b;color:#eceff1}.dtp table.dtp-picker-days tr>th{color:#757575;text-align:center;font-weight:700;padding:.4em .3em}.dtp .p10>a{color:#fff;text-decoration:none}.dtp .p10{width:10%;display:inline-block}.dtp .p20{width:20%;display:inline-block}.dtp .p60{width:60%;display:inline-block}.dtp .p80{width:80%;display:inline-block}.dtp a.dtp-meridien-am,.dtp a.dtp-meridien-pm{position:relative;top:10px;color:#212121;font-weight:500;padding:.7em .5em;border-radius:50% !important;text-decoration:none;background:#eee;font-size:1em}.dtp .dtp-actual-meridien a.selected{background:#607d8b;color:#eceff1}.dtp .dtp-picker-time>.dtp-select-hour{cursor:pointer}.dtp .dtp-picker-time>.dtp-select-minute{cursor:pointer}.dtp .dtp-buttons{padding:0 1em 1em 1em;text-align:right}.dtp.hidden,.dtp .hidden{display:none}.dtp .invisible{visibility:hidden}.dtp .left{float:left}.dtp .right{float:right}.dtp .clearfix{clear:both}.dtp .center{text-align:center}
|
||||
.dtp{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.2);z-index:2000;font-size:15px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dtp>.dtp-content{background:#fff;max-width:300px;box-shadow:0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);max-height:520px;position:relative;left:50%}.dtp>.dtp-content>.dtp-date-view>header.dtp-header{background:#607d8b;color:#eceff1;text-align:center;padding:.3em}.dtp div.dtp-date,.dtp div.dtp-time{background:#607d8b;text-align:center;color:#eceff1;padding:10px}.dtp div.dtp-date>div{padding:0;margin:0}.dtp div.dtp-actual-month{font-size:1.5em}.dtp div.dtp-actual-num{font-size:3em;line-height:.9}.dtp div.dtp-actual-maxtime{font-size:3em;line-height:.9}.dtp div.dtp-actual-year{font-size:1.5em;color:#fff}.dtp div.dtp-picker{padding:1em;text-align:center}.dtp div.dtp-picker-month,.dtp div.dtp-actual-time{font-weight:500;text-align:center}.dtp div.dtp-picker-month{padding-bottom:20px!important;text-transform:uppercase!important}.dtp .dtp-close{position:absolute;top:.5em;right:1em}.dtp .dtp-close>a{color:#fff}.dtp .dtp-close>a>i{font-size:1em}.dtp table.dtp-picker-days{margin:0;min-height:251px}.dtp table.dtp-picker-days,.dtp table.dtp-picker-days tr,.dtp table.dtp-picker-days tr>td{border:0}.dtp table.dtp-picker-days tr>td{font-weight:700;text-align:center;padding:.5em}.dtp table.dtp-picker-days tr>td>span.dtp-select-day{color:#bdbdbd!important;padding:.4em .5em .5em .6em}.dtp table.dtp-picker-days tr>td>a,.dtp .dtp-picker-time>a{color:#212121;text-decoration:none;padding:.4em;border-radius:5px!important}.dtp table.dtp-picker-days tr>td>a.selected{background:#607d8b;color:#eceff1}.dtp table.dtp-picker-days tr>th{color:#757575;text-align:center;font-weight:700;padding:.4em .3em}.dtp .p10>a{color:#fff;text-decoration:none}.dtp .p10{width:10%;display:inline-block}.dtp .p20{width:20%;display:inline-block}.dtp .p60{width:60%;display:inline-block}.dtp .p80{width:80%;display:inline-block}.dtp a.dtp-meridien-am,.dtp a.dtp-meridien-pm{position:relative;top:10px;color:#212121;font-weight:500;padding:.7em .5em;border-radius:50%!important;text-decoration:none;background:#eee;font-size:1em}.dtp .dtp-actual-meridien a.selected{background:#607d8b;color:#eceff1}.dtp .dtp-picker-time>.dtp-select-hour{cursor:pointer}.dtp .dtp-picker-time>.dtp-select-minute{cursor:pointer}.dtp .dtp-buttons{padding:0 1em 1em 1em;text-align:right}.dtp.hidden,.dtp .hidden{display:none}.dtp .invisible{visibility:hidden}.dtp .left{float:left}.dtp .right{float:right}.dtp .clearfix{clear:both}.dtp .center{text-align:center}
|
||||
File diff suppressed because one or more lines are too long
2
inc/themes/material-blue/css/styles.min.css
vendored
2
inc/themes/material-blue/css/styles.min.css
vendored
File diff suppressed because one or more lines are too long
2
inc/themes/material-blue/js/app-theme.min.js
vendored
2
inc/themes/material-blue/js/app-theme.min.js
vendored
@@ -1,5 +1,5 @@
|
||||
var $jscomp={scope:{},findInternal:function(a,f,d){a instanceof String&&(a=String(a));for(var h=a.length,g=0;g<h;g++){var n=a[g];if(f.call(d,n,g,a))return{i:g,v:n}}return{i:-1,v:void 0}}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(a,f,d){if(d.get||d.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[f]=d.value)};
|
||||
$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(a,f,d,h){if(f){d=$jscomp.global;a=a.split(".");for(h=0;h<a.length-1;h++){var g=a[h];g in d||(d[g]={});d=d[g]}a=a[a.length-1];h=d[a];f=f(h);f!=h&&null!=f&&$jscomp.defineProperty(d,a,{configurable:!0,writable:!0,value:f})}};
|
||||
$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(a,f,d,h){if(f){d=$jscomp.global;a=a.split(".");for(h=0;h<a.length-1;h++){var g=a[h];g in d||(d[g]={});d=d[g]}a=a[a.length-1];h=d[a];f=f(h);f!=h&&null!=f&&$jscomp.defineProperty(d,a,{configurable:!0,writable:!0,value:f})}};
|
||||
$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,d){return $jscomp.findInternal(this,a,d).v}},"es6-impl","es3");
|
||||
sysPass.Theme=function(a){var f=a.log,d=function(b){for(var l=0,e="",c;l<a.passwordData.complexity.numlength;)c=Math.floor(100*Math.random())%94+33,!a.passwordData.complexity.symbols&&(33<=c&&47>=c||58<=c&&64>=c||91<=c&&96>=c||123<=c&&126>=c)||!a.passwordData.complexity.numbers&&48<=c&&57>=c||!a.passwordData.complexity.uppercase&&65<=c&&90>=c||(l++,e+=String.fromCharCode(c));$("#viewPass").attr("title",e);var k=zxcvbn(e);a.passwordData.passLength=e.length;b?(l=b.parent(),c=$("#"+b.attr("id")+"R"),
|
||||
a.outputResult(k,b),b=new MaterialTextfield,l.find("input:password").val(e),l.addClass(b.CssClasses_.IS_DIRTY).removeClass(b.CssClasses_.IS_INVALID),c.val(e).parent().addClass(b.CssClasses_.IS_DIRTY).removeClass(b.CssClasses_.IS_INVALID),a.encryptFormValue(c),l.find("#passLevel").show(500)):(a.outputResult(k),$("input:password, input.password").val(e),$("#passLevel").show(500))},h=function(){$("<div></div>").dialog({modal:!0,title:a.config().LANG[29],width:"400px",open:function(){var b=$(this),l=
|
||||
|
||||
2
js/app-actions.min.js
vendored
2
js/app-actions.min.js
vendored
@@ -1,5 +1,5 @@
|
||||
var $jscomp={scope:{},findInternal:function(c,d,h){c instanceof String&&(c=String(c));for(var e=c.length,g=0;g<e;g++){var n=c[g];if(d.call(h,n,g,c))return{i:g,v:n}}return{i:-1,v:void 0}}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(c,d,h){if(h.get||h.set)throw new TypeError("ES3 does not support getters and setters.");c!=Array.prototype&&c!=Object.prototype&&(c[d]=h.value)};
|
||||
$jscomp.getGlobal=function(c){return"undefined"!=typeof window&&window===c?c:"undefined"!=typeof global?global:c};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(c,d,h,e){if(d){h=$jscomp.global;c=c.split(".");for(e=0;e<c.length-1;e++){var g=c[e];g in h||(h[g]={});h=h[g]}c=c[c.length-1];e=h[c];d=d(e);d!=e&&null!=d&&$jscomp.defineProperty(h,c,{configurable:!0,writable:!0,value:d})}};
|
||||
$jscomp.getGlobal=function(c){return"undefined"!=typeof window&&window===c?c:"undefined"!=typeof global&&null!=global?global:c};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(c,d,h,e){if(d){h=$jscomp.global;c=c.split(".");for(e=0;e<c.length-1;e++){var g=c[e];g in h||(h[g]={});h=h[g]}c=c[c.length-1];e=h[c];d=d(e);d!=e&&null!=d&&$jscomp.defineProperty(h,c,{configurable:!0,writable:!0,value:d})}};
|
||||
$jscomp.polyfill("Array.prototype.find",function(c){return c?c:function(c,h){return $jscomp.findInternal(this,c,h).v}},"es6-impl","es3");
|
||||
sysPass.Actions=function(c){var d=c.log,h=0,e={doAction:"/ajax/ajax_getContent.php",updateItems:"/ajax/ajax_getItems.php",user:{savePreferences:"/ajax/ajax_userPrefsSave.php",password:"/ajax/ajax_usrpass.php",passreset:"/ajax/ajax_passReset.php"},main:{login:"/ajax/ajax_doLogin.php",install:"/ajax/ajax_install.php",getUpdates:"/ajax/ajax_checkUpds.php"},checks:"/ajax/ajax_checkConnection.php",config:{save:"/ajax/ajax_configSave.php","export":"/ajax/ajax_configSave.php","import":"/ajax/ajax_configSave.php"},
|
||||
file:"/ajax/ajax_filesMgmt.php",link:"/ajax/ajax_itemSave.php",plugin:"/ajax/ajax_itemSave.php",account:{save:"/ajax/ajax_itemSave.php",showPass:"/ajax/ajax_accViewPass.php",saveFavorite:"/ajax/ajax_itemSave.php",request:"/ajax/ajax_itemSave.php",getFiles:"/ajax/ajax_accGetFiles.php",search:"/ajax/ajax_accSearch.php"},appMgmt:{show:"/ajax/ajax_itemShow.php",save:"/ajax/ajax_itemSave.php",search:"/ajax/ajax_itemSearch.php"},eventlog:"/ajax/ajax_eventlog.php",wiki:{show:"/ajax/ajax_wiki.php"},notice:{show:"/ajax/ajax_noticeShow.php",
|
||||
|
||||
2
js/app-main.min.js
vendored
2
js/app-main.min.js
vendored
@@ -1,4 +1,4 @@
|
||||
var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(a,f,e){if(e.get||e.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[f]=e.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
|
||||
var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(a,f,e){if(e.get||e.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[f]=e.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
|
||||
$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(a){return $jscomp.SYMBOL_PREFIX+(a||"")+$jscomp.symbolCounter_++};
|
||||
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;a||(a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(a){var f=0;return $jscomp.iteratorPrototype(function(){return f<a.length?{done:!1,value:a[f++]}:{done:!0}})};
|
||||
$jscomp.iteratorPrototype=function(a){$jscomp.initSymbolIterator();a={next:a};a[$jscomp.global.Symbol.iterator]=function(){return this};return a};$jscomp.array=$jscomp.array||{};$jscomp.iteratorFromArray=function(a,f){$jscomp.initSymbolIterator();a instanceof String&&(a+="");var e=0,c={next:function(){if(e<a.length){var g=e++;return{value:f(g,a[g]),done:!1}}c.next=function(){return{done:!0,value:void 0}};return c.next()}};c[Symbol.iterator]=function(){return c};return c};
|
||||
|
||||
2
js/app-requests.min.js
vendored
2
js/app-requests.min.js
vendored
@@ -1,5 +1,5 @@
|
||||
var $jscomp={scope:{},checkStringArgs:function(b,c,a){if(null==b)throw new TypeError("The 'this' value for String.prototype."+a+" must not be null or undefined");if(c instanceof RegExp)throw new TypeError("First argument to String.prototype."+a+" must not be a regular expression");return b+""}};
|
||||
$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(b,c,a){if(a.get||a.set)throw new TypeError("ES3 does not support getters and setters.");b!=Array.prototype&&b!=Object.prototype&&(b[c]=a.value)};$jscomp.getGlobal=function(b){return"undefined"!=typeof window&&window===b?b:"undefined"!=typeof global?global:b};$jscomp.global=$jscomp.getGlobal(this);
|
||||
$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(b,c,a){if(a.get||a.set)throw new TypeError("ES3 does not support getters and setters.");b!=Array.prototype&&b!=Object.prototype&&(b[c]=a.value)};$jscomp.getGlobal=function(b){return"undefined"!=typeof window&&window===b?b:"undefined"!=typeof global&&null!=global?global:b};$jscomp.global=$jscomp.getGlobal(this);
|
||||
$jscomp.polyfill=function(b,c,a,d){if(c){a=$jscomp.global;b=b.split(".");for(d=0;d<b.length-1;d++){var e=b[d];e in a||(a[e]={});a=a[e]}b=b[b.length-1];d=a[b];c=c(d);c!=d&&null!=c&&$jscomp.defineProperty(a,b,{configurable:!0,writable:!0,value:c})}};
|
||||
$jscomp.polyfill("String.prototype.startsWith",function(b){return b?b:function(b,a){var c=$jscomp.checkStringArgs(this,b,"startsWith");b+="";for(var e=c.length,f=b.length,g=Math.max(0,Math.min(a|0,c.length)),h=0;h<f&&g<e;)if(c[g++]!=b[h++])return!1;return h>=f}},"es6-impl","es3");
|
||||
sysPass.Requests=function(b){var c=b.log,a=[],d={get:function(){return a},add:function(b){var e=""===b.hash?SparkMD5.hash(JSON.stringify(b),!1):b.hash;if(0<a.length&&a[a.length-1].hash===e)return a;c.info("history:add");b.hash=e;a.push(b);15<=a.length&&a.splice(0,10);return a},del:function(){c.info("history:del");if("undefined"!==typeof a.pop())return a[a.length-1]},reset:function(){c.info("history:reset");a=[]},length:function(){return a.length}};return{getRequestOpts:function(){return Object.create({type:"json",
|
||||
|
||||
2
js/app-triggers.min.js
vendored
2
js/app-triggers.min.js
vendored
@@ -1,5 +1,5 @@
|
||||
var $jscomp={scope:{},findInternal:function(b,d,e){b instanceof String&&(b=String(b));for(var a=b.length,c=0;c<a;c++){var f=b[c];if(d.call(e,f,c,b))return{i:c,v:f}}return{i:-1,v:void 0}}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(b,d,e){if(e.get||e.set)throw new TypeError("ES3 does not support getters and setters.");b!=Array.prototype&&b!=Object.prototype&&(b[d]=e.value)};
|
||||
$jscomp.getGlobal=function(b){return"undefined"!=typeof window&&window===b?b:"undefined"!=typeof global?global:b};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(b,d,e,a){if(d){e=$jscomp.global;b=b.split(".");for(a=0;a<b.length-1;a++){var c=b[a];c in e||(e[c]={});e=e[c]}b=b[b.length-1];a=e[b];d=d(a);d!=a&&null!=d&&$jscomp.defineProperty(e,b,{configurable:!0,writable:!0,value:d})}};
|
||||
$jscomp.getGlobal=function(b){return"undefined"!=typeof window&&window===b?b:"undefined"!=typeof global&&null!=global?global:b};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(b,d,e,a){if(d){e=$jscomp.global;b=b.split(".");for(a=0;a<b.length-1;a++){var c=b[a];c in e||(e[c]={});e=e[c]}b=b[b.length-1];a=e[b];d=d(a);d!=a&&null!=d&&$jscomp.defineProperty(e,b,{configurable:!0,writable:!0,value:d})}};
|
||||
$jscomp.polyfill("Array.prototype.find",function(b){return b?b:function(b,e){return $jscomp.findInternal(this,b,e).v}},"es6-impl","es3");
|
||||
sysPass.Triggers=function(b){var d=b.log,e=function(a){var c={valueField:"id",labelField:"name",searchField:["name"]};a.find(".select-box").each(function(a){var f=$(this);c.plugins=f.hasClass("select-box-deselect")?{clear_selection:{title:b.config().LANG[51]}}:{};if(f.data("onchange")){var d=f.data("onchange").split("/");c.onChange=function(a){if(0<a)if(2===d.length)sysPassApp.actions()[d[0]][d[1]](f);else sysPassApp.actions()[d[0]](f)}}f.selectize(c)});a.find("#allowed_exts").selectize({create:function(a){return{value:a.toUpperCase(),
|
||||
text:a.toUpperCase()}},createFilter:/^[a-z0-9]{1,4}$/i,plugins:["remove_button"]});a.find("#wikifilter").selectize({create:!0,createFilter:/^[a-z0-9._-]+$/i,plugins:["remove_button"]})};return{views:{main:function(){d.info("views:main");$(".btn-menu").click(function(){"1"===$(this).attr("data-history-reset")&&b.appRequests().history.reset();b.appActions().doAction({actionId:$(this).data("action-id")})});b.appActions().doAction({actionId:1})},search:function(){d.info("views:search");var a=$("#frmSearch");
|
||||
|
||||
2
js/clipboard.min.js
vendored
2
js/clipboard.min.js
vendored
@@ -1,4 +1,4 @@
|
||||
var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(h,b,c){if(c.get||c.set)throw new TypeError("ES3 does not support getters and setters.");h!=Array.prototype&&h!=Object.prototype&&(h[b]=c.value)};$jscomp.getGlobal=function(h){return"undefined"!=typeof window&&window===h?h:"undefined"!=typeof global?global:h};$jscomp.global=$jscomp.getGlobal(this);
|
||||
var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(h,b,c){if(c.get||c.set)throw new TypeError("ES3 does not support getters and setters.");h!=Array.prototype&&h!=Object.prototype&&(h[b]=c.value)};$jscomp.getGlobal=function(h){return"undefined"!=typeof window&&window===h?h:"undefined"!=typeof global&&null!=global?global:h};$jscomp.global=$jscomp.getGlobal(this);
|
||||
$jscomp.polyfill=function(h,b,c,e){if(b){c=$jscomp.global;h=h.split(".");for(e=0;e<h.length-1;e++){var a=h[e];a in c||(c[a]={});c=c[a]}h=h[h.length-1];e=c[h];b=b(e);b!=e&&null!=b&&$jscomp.defineProperty(c,h,{configurable:!0,writable:!0,value:b})}};$jscomp.polyfill("Object.setPrototypeOf",function(h){return h?h:"object"!=typeof"".__proto__?null:function(b,c){b.__proto__=c;if(b.__proto__!==c)throw new TypeError(b+" is not extensible");return b}},"es6","es5");
|
||||
(function(h){"object"===typeof exports&&"undefined"!==typeof module?module.exports=h():"function"===typeof define&&define.amd?define([],h):("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:this).Clipboard=h()})(function(){return function b(c,e,a){function d(g,l){if(!e[g]){if(!c[g]){var f="function"==typeof require&&require;if(!l&&f)return f(g,!0);if(k)return k(g,!0);f=Error("Cannot find module '"+g+"'");throw f.code="MODULE_NOT_FOUND",f;}f=e[g]=
|
||||
{exports:{}};c[g][0].call(f.exports,function(f){var a=c[g][1][f];return d(a?a:f)},f,f.exports,b,c,e,a)}return e[g].exports}for(var k="function"==typeof require&&require,l=0;l<a.length;l++)d(a[l]);return d}({1:[function(b,c,e){var a=b("matches-selector");c.exports=function(d,k,b){for(d=b?d:d.parentNode;d&&d!==document;){if(a(d,k))return d;d=d.parentNode}}},{"matches-selector":5}],2:[function(b,c,e){function a(a,b,g,c){return function(f){f.delegateTarget=d(f.target,b,!0);f.delegateTarget&&c.call(a,
|
||||
|
||||
2
js/jquery.magnific-popup.min.js
vendored
2
js/jquery.magnific-popup.min.js
vendored
@@ -1,5 +1,5 @@
|
||||
var $jscomp={scope:{},findInternal:function(e,a,h){e instanceof String&&(e=String(e));for(var g=e.length,n=0;n<g;n++){var p=e[n];if(a.call(h,p,n,e))return{i:n,v:p}}return{i:-1,v:void 0}}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(e,a,h){if(h.get||h.set)throw new TypeError("ES3 does not support getters and setters.");e!=Array.prototype&&e!=Object.prototype&&(e[a]=h.value)};
|
||||
$jscomp.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:"undefined"!=typeof global?global:e};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(e,a,h,g){if(a){h=$jscomp.global;e=e.split(".");for(g=0;g<e.length-1;g++){var n=e[g];n in h||(h[n]={});h=h[n]}e=e[e.length-1];g=h[e];a=a(g);a!=g&&null!=a&&$jscomp.defineProperty(h,e,{configurable:!0,writable:!0,value:a})}};
|
||||
$jscomp.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:"undefined"!=typeof global&&null!=global?global:e};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(e,a,h,g){if(a){h=$jscomp.global;e=e.split(".");for(g=0;g<e.length-1;g++){var n=e[g];n in h||(h[n]={});h=h[n]}e=e[e.length-1];g=h[e];a=a(g);a!=g&&null!=a&&$jscomp.defineProperty(h,e,{configurable:!0,writable:!0,value:a})}};
|
||||
$jscomp.polyfill("Array.prototype.find",function(e){return e?e:function(a,e){return $jscomp.findInternal(this,a,e).v}},"es6-impl","es3");
|
||||
(function(e){"function"===typeof define&&define.amd?define(["jquery"],e):"object"===typeof exports?e(require("jquery")):e(window.jQuery||window.Zepto)})(function(e){var a,h=function(){},g=!!window.jQuery,n,p=e(window),q,x,t,G,k=function(b,c){a.ev.on("mfp"+b+".mfp",c)},u=function(a,c,d,f){var b=document.createElement("div");b.className="mfp-"+a;d&&(b.innerHTML=d);f?c&&c.appendChild(b):(b=e(b),c&&b.appendTo(c));return b},m=function(b,c){a.ev.triggerHandler("mfp"+b,c);a.st.callbacks&&(b=b.charAt(0).toLowerCase()+
|
||||
b.slice(1),a.st.callbacks[b]&&a.st.callbacks[b].apply(a,e.isArray(c)?c:[c]))},A=function(b){b===G&&a.currTemplate.closeBtn||(a.currTemplate.closeBtn=e(a.st.closeMarkup.replace("%title%",a.st.tClose)),G=b);return a.currTemplate.closeBtn},B=function(){e.magnificPopup.instance||(a=new h,a.init(),e.magnificPopup.instance=a)},K=function(){var a=document.createElement("p").style,c=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;c.length;)if(c.pop()+"Transition"in a)return!0;return!1};h.prototype=
|
||||
|
||||
2
js/moment.min.js
vendored
2
js/moment.min.js
vendored
@@ -1,4 +1,4 @@
|
||||
var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(e,p,y){if(y.get||y.set)throw new TypeError("ES3 does not support getters and setters.");e!=Array.prototype&&e!=Object.prototype&&(e[p]=y.value)};$jscomp.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:"undefined"!=typeof global?global:e};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
|
||||
var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(e,p,y){if(y.get||y.set)throw new TypeError("ES3 does not support getters and setters.");e!=Array.prototype&&e!=Object.prototype&&(e[p]=y.value)};$jscomp.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:"undefined"!=typeof global&&null!=global?global:e};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
|
||||
$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(e){return $jscomp.SYMBOL_PREFIX+(e||"")+$jscomp.symbolCounter_++};
|
||||
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var e=$jscomp.global.Symbol.iterator;e||(e=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[e]&&$jscomp.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(e){var p=0;return $jscomp.iteratorPrototype(function(){return p<e.length?{done:!1,value:e[p++]}:{done:!0}})};
|
||||
$jscomp.iteratorPrototype=function(e){$jscomp.initSymbolIterator();e={next:e};e[$jscomp.global.Symbol.iterator]=function(){return this};return e};$jscomp.array=$jscomp.array||{};$jscomp.iteratorFromArray=function(e,p){$jscomp.initSymbolIterator();e instanceof String&&(e+="");var y=0,x={next:function(){if(y<e.length){var I=y++;return{value:p(I,e[I]),done:!1}}x.next=function(){return{done:!0,value:void 0}};return x.next()}};x[Symbol.iterator]=function(){return x};return x};
|
||||
|
||||
2
js/selectize.min.js
vendored
2
js/selectize.min.js
vendored
@@ -1,5 +1,5 @@
|
||||
var $jscomp={scope:{},findInternal:function(c,h,d){c instanceof String&&(c=String(c));for(var p=c.length,l=0;l<p;l++){var m=c[l];if(h.call(d,m,l,c))return{i:l,v:m}}return{i:-1,v:void 0}}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(c,h,d){if(d.get||d.set)throw new TypeError("ES3 does not support getters and setters.");c!=Array.prototype&&c!=Object.prototype&&(c[h]=d.value)};
|
||||
$jscomp.getGlobal=function(c){return"undefined"!=typeof window&&window===c?c:"undefined"!=typeof global?global:c};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(c,h,d,p){if(h){d=$jscomp.global;c=c.split(".");for(p=0;p<c.length-1;p++){var l=c[p];l in d||(d[l]={});d=d[l]}c=c[c.length-1];p=d[c];h=h(p);h!=p&&null!=h&&$jscomp.defineProperty(d,c,{configurable:!0,writable:!0,value:h})}};
|
||||
$jscomp.getGlobal=function(c){return"undefined"!=typeof window&&window===c?c:"undefined"!=typeof global&&null!=global?global:c};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(c,h,d,p){if(h){d=$jscomp.global;c=c.split(".");for(p=0;p<c.length-1;p++){var l=c[p];l in d||(d[l]={});d=d[l]}c=c[c.length-1];p=d[c];h=h(p);h!=p&&null!=h&&$jscomp.defineProperty(d,c,{configurable:!0,writable:!0,value:h})}};
|
||||
$jscomp.polyfill("Array.prototype.find",function(c){return c?c:function(c,d){return $jscomp.findInternal(this,c,d).v}},"es6-impl","es3");
|
||||
(function(c,h){"function"===typeof define&&define.amd?define("sifter",h):"object"===typeof exports?module.exports=h():c.Sifter=h()})(this,function(){var c=function(c,k){this.items=c;this.settings=k||{diacritics:!0}};c.prototype.tokenize=function(c){c=(String(c||"").toLowerCase()+"").replace(/^\s+|\s+$|/g,"");if(!c||!c.length)return[];var k,f,t,r=[],d=c.split(/ +/);c=0;for(k=d.length;c<k;c++){f=(d[c]+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1");if(this.settings.diacritics)for(t in m)m.hasOwnProperty(t)&&
|
||||
(f=f.replace(new RegExp(t,"g"),m[t]));r.push({string:d[c],regex:new RegExp(f,"i")})}return r};c.prototype.iterator=function(c,d){(l(c)?Array.prototype.forEach||function(c){for(var f=0,d=this.length;f<d;f++)c(this[f],f,this)}:function(c){for(var f in this)this.hasOwnProperty(f)&&c(this[f],f,this)}).apply(c,[d])};c.prototype.getScoreFunction=function(c,d){var f,t,k,r;c=this.prepareSearch(c,d);t=c.tokens;f=c.options.fields;k=t.length;r=c.options.nesting;var h=function(c,f){var d,k;if(!c)return 0;c=String(c||
|
||||
|
||||
Reference in New Issue
Block a user