Merge branch 'develop' of https://github.com/matrix-org/matrix-react-sdk into joriks/font-scaling-slider
This commit is contained in:
commit
6d9d4ee547
473 changed files with 5407 additions and 1434 deletions
|
@ -77,8 +77,6 @@ function findRefNodes(root, route, isAddition) {
|
|||
const end = isAddition ? route.length - 1 : route.length;
|
||||
for (let i = 0; i < end; ++i) {
|
||||
refParentNode = refNode;
|
||||
// Lists don't have appropriate child nodes we can use.
|
||||
if (!refNode.childNodes[route[i]]) continue;
|
||||
refNode = refNode.childNodes[route[i]];
|
||||
}
|
||||
return {refNode, refParentNode};
|
||||
|
@ -190,10 +188,11 @@ function renderDifferenceInDOM(originalRootNode, diff, diffMathPatch) {
|
|||
break;
|
||||
}
|
||||
case "addTextElement": {
|
||||
if (diff.value !== "\n") {
|
||||
const insNode = wrapInsertion(stringAsTextNode(diff.value));
|
||||
insertBefore(refParentNode, refNode, insNode);
|
||||
}
|
||||
// XXX: sometimes diffDOM says insert a newline when there shouldn't be one
|
||||
// but we must insert the node anyway so that we don't break the route child IDs.
|
||||
// See https://github.com/fiduswriter/diffDOM/issues/100
|
||||
const insNode = wrapInsertion(stringAsTextNode(diff.value !== "\n" ? diff.value : ""));
|
||||
insertBefore(refParentNode, refNode, insNode);
|
||||
break;
|
||||
}
|
||||
// e.g. when changing a the href of a link,
|
||||
|
|
|
@ -63,7 +63,7 @@ _td("Short keyboard patterns are easy to guess");
|
|||
* @param {string} password Password to score
|
||||
* @returns {object} Score result with `score` and `feedback` properties
|
||||
*/
|
||||
export function scorePassword(password) {
|
||||
export function scorePassword(password: string) {
|
||||
if (password.length === 0) return null;
|
||||
|
||||
const userInputs = ZXCVBN_USER_INPUTS.slice();
|
|
@ -18,7 +18,7 @@ limitations under the License.
|
|||
|
||||
import {MatrixClientPeg} from '../MatrixClientPeg';
|
||||
import SdkConfig from "../SdkConfig";
|
||||
import dis from '../dispatcher';
|
||||
import dis from '../dispatcher/dispatcher';
|
||||
import * as url from "url";
|
||||
import WidgetEchoStore from '../stores/WidgetEchoStore';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue