mirror of
https://github.com/keeweb/keeweb.git
synced 2024-06-27 07:45:08 +02:00
Merge branch 'release-1.11'
This commit is contained in:
commit
a275a895cb
|
@ -1,9 +1,8 @@
|
||||||
import { Storage } from 'storage';
|
|
||||||
import { Features } from 'util/features';
|
import { Features } from 'util/features';
|
||||||
|
|
||||||
const AuthReceiver = {
|
const AuthReceiver = {
|
||||||
receive() {
|
receive() {
|
||||||
if (!Features.isPopup && !Features.isStandalone) {
|
if (!Features.isPopup) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const opener = window.opener || window.parent;
|
const opener = window.opener || window.parent;
|
||||||
|
@ -12,16 +11,9 @@ const AuthReceiver = {
|
||||||
if (!hasKeys) {
|
if (!hasKeys) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (Features.isStandalone) {
|
opener.postMessage(message, window.location.origin);
|
||||||
if (sessionStorage.authStorage) {
|
window.close();
|
||||||
Storage[sessionStorage.authStorage].handleOAuthReturnMessage(message);
|
return true;
|
||||||
}
|
|
||||||
return false;
|
|
||||||
} else {
|
|
||||||
opener.postMessage(message, window.location.origin);
|
|
||||||
window.close();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
urlArgsToMessage(url) {
|
urlArgsToMessage(url) {
|
||||||
|
|
|
@ -2,7 +2,6 @@ import { Events } from 'framework/events';
|
||||||
import { Links } from 'const/links';
|
import { Links } from 'const/links';
|
||||||
import { AppSettingsModel } from 'models/app-settings-model';
|
import { AppSettingsModel } from 'models/app-settings-model';
|
||||||
import { RuntimeDataModel } from 'models/runtime-data-model';
|
import { RuntimeDataModel } from 'models/runtime-data-model';
|
||||||
import { Features } from 'util/features';
|
|
||||||
import { Logger } from 'util/logger';
|
import { Logger } from 'util/logger';
|
||||||
|
|
||||||
const MaxRequestRetries = 3;
|
const MaxRequestRetries = 3;
|
||||||
|
@ -30,18 +29,6 @@ class StorageBase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.logger = new Logger('storage-' + this.name);
|
this.logger = new Logger('storage-' + this.name);
|
||||||
if (this._oauthReturnMessage) {
|
|
||||||
this.logger.debug('OAuth return message', this._oauthReturnMessage);
|
|
||||||
this._oauthProcessReturn(this._oauthReturnMessage);
|
|
||||||
delete this._oauthReturnMessage;
|
|
||||||
delete sessionStorage.authStorage;
|
|
||||||
if (Features.isStandalone) {
|
|
||||||
const [url, urlParams] = location.href.split(/[?#]/);
|
|
||||||
if (urlParams) {
|
|
||||||
location.href = url;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,10 +36,6 @@ class StorageBase {
|
||||||
this.enabled = enabled;
|
this.enabled = enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
handleOAuthReturnMessage(message) {
|
|
||||||
this._oauthReturnMessage = message;
|
|
||||||
}
|
|
||||||
|
|
||||||
_xhr(config) {
|
_xhr(config) {
|
||||||
const xhr = new XMLHttpRequest();
|
const xhr = new XMLHttpRequest();
|
||||||
if (config.responseType) {
|
if (config.responseType) {
|
||||||
|
@ -135,9 +118,6 @@ class StorageBase {
|
||||||
settings = Object.keys(settings)
|
settings = Object.keys(settings)
|
||||||
.map(key => key + '=' + settings[key])
|
.map(key => key + '=' + settings[key])
|
||||||
.join(',');
|
.join(',');
|
||||||
if (Features.isStandalone) {
|
|
||||||
sessionStorage.authStorage = this.name;
|
|
||||||
}
|
|
||||||
|
|
||||||
return window.open(url, title, settings);
|
return window.open(url, title, settings);
|
||||||
}
|
}
|
||||||
|
|
|
@ -115,7 +115,8 @@ const KdbxwebInit = {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
workerPostRun() {
|
// eslint-disable-next-line object-shorthand
|
||||||
|
workerPostRun: function() {
|
||||||
self.postMessage({ op: 'postRun' });
|
self.postMessage({ op: 'postRun' });
|
||||||
self.onmessage = e => {
|
self.onmessage = e => {
|
||||||
try {
|
try {
|
||||||
|
@ -128,7 +129,8 @@ const KdbxwebInit = {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
calcHash(Module, args) {
|
// eslint-disable-next-line object-shorthand
|
||||||
|
calcHash: function(Module, args) {
|
||||||
let { password, salt } = args;
|
let { password, salt } = args;
|
||||||
const { memory, iterations, length, parallelism, type, version } = args;
|
const { memory, iterations, length, parallelism, type, version } = args;
|
||||||
const passwordLen = password.byteLength;
|
const passwordLen = password.byteLength;
|
||||||
|
|
|
@ -235,7 +235,7 @@ class SettingsPluginsView extends View {
|
||||||
pluginMatchesFilter(plugin) {
|
pluginMatchesFilter(plugin) {
|
||||||
const searchStr = this.searchStr;
|
const searchStr = this.searchStr;
|
||||||
const manifest = plugin.manifest;
|
const manifest = plugin.manifest;
|
||||||
return (
|
return !!(
|
||||||
!searchStr ||
|
!searchStr ||
|
||||||
manifest.name.toLowerCase().indexOf(searchStr) >= 0 ||
|
manifest.name.toLowerCase().indexOf(searchStr) >= 0 ||
|
||||||
(manifest.description && manifest.description.toLowerCase().indexOf(searchStr) >= 0) ||
|
(manifest.description && manifest.description.toLowerCase().indexOf(searchStr) >= 0) ||
|
||||||
|
|
2
desktop/package-lock.json
generated
2
desktop/package-lock.json
generated
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "KeeWeb",
|
"name": "KeeWeb",
|
||||||
"version": "1.11.1",
|
"version": "1.11.2",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "KeeWeb",
|
"name": "KeeWeb",
|
||||||
"version": "1.11.1",
|
"version": "1.11.2",
|
||||||
"description": "Free cross-platform password manager compatible with KeePass",
|
"description": "Free cross-platform password manager compatible with KeePass",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"homepage": "https://keeweb.info",
|
"homepage": "https://keeweb.info",
|
||||||
|
|
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "keeweb",
|
"name": "keeweb",
|
||||||
"version": "1.11.1",
|
"version": "1.11.2",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "keeweb",
|
"name": "keeweb",
|
||||||
"version": "1.11.1",
|
"version": "1.11.2",
|
||||||
"description": "Free cross-platform password manager compatible with KeePass",
|
"description": "Free cross-platform password manager compatible with KeePass",
|
||||||
"main": "Gruntfile.js",
|
"main": "Gruntfile.js",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
Release notes
|
Release notes
|
||||||
-------------
|
-------------
|
||||||
|
##### v1.11.2 (2019-09-29)
|
||||||
|
`-` fix #1272: Argon2 error
|
||||||
|
`-` fixed Dropbox connection on iOS 13 homescreen
|
||||||
|
`-` fixed plugin search filtering
|
||||||
|
|
||||||
##### v1.11.1 (2019-09-28)
|
##### v1.11.1 (2019-09-28)
|
||||||
`-` fix #1270: password change control focus
|
`-` fix #1270: password change control focus
|
||||||
`-` fix #1271: loading custom plugins from config
|
`-` fix #1271: loading custom plugins from config
|
||||||
|
|
Loading…
Reference in New Issue
Block a user