Skip to content

Commit 0c8d01b

Browse files
committed
Merge branch 'QA_5_1'
Signed-off-by: William Desportes <[email protected]>
2 parents 7359d45 + d05828e commit 0c8d01b

File tree

9 files changed

+27
-20
lines changed

9 files changed

+27
-20
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,14 @@ jobs:
1313
name: Test on php ${{ matrix.php-version }} and ${{ matrix.os }}
1414
if: "!contains(github.event.head_commit.message, '[ci skip]')"
1515
runs-on: ${{ matrix.os }}
16+
continue-on-error: ${{ matrix.experimental }}
1617
strategy:
1718
matrix:
1819
php-version: ["7.2", "7.3", "7.4", "8.0"]
20+
experimental: [false]
1921
os: [ubuntu-latest]
22+
include:
23+
- { php-version: '8.1', composer-options: '--ignore-platform-req=php', experimental: true, os: ubuntu-latest }
2024
steps:
2125
- uses: actions/checkout@v2
2226
- name: Install gettext
@@ -35,7 +39,7 @@ jobs:
3539
path: ~/.composer/cache/
3640
key: composer-cache
3741
- name: Install dependencies
38-
run: composer install --no-interaction
42+
run: composer install --no-interaction ${{ matrix.composer-options }}
3943
- name: Run php tests
4044
run: composer run phpunit -- --exclude-group selenium
4145
- name: Send coverage

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ phpMyAdmin - ChangeLog
3737
- issue Fixed a PHP notice "Undefined index: pred_username"
3838
- issue #16744 Fixed "Uncaught TypeError: XMLWriter::writeAttribute()" on Designer SVG export
3939
- issue Fixed an PHP undefined index notice on export
40+
- issue #14555 Fixed JavaScript error when auto completion is open (upgraded CodeMirror to 5.60.0)
4041

4142
5.1.0 (2021-02-24)
4243
- issue #15350 Change Media (MIME) type references to Media type

js/vendor/codemirror/addon/hint/show-hint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@
360360
close: function() {
361361
if (this.completion.widget != this) return;
362362
this.completion.widget = null;
363-
this.hints.parentNode.removeChild(this.hints);
363+
if (this.hints.parentNode) this.hints.parentNode.removeChild(this.hints);
364364
this.completion.cm.removeKeyMap(this.keyMap);
365365

366366
var cm = this.completion.cm;

js/vendor/codemirror/lib/codemirror.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
}
2020

2121
.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
22-
background-color: transparent; /* The little square between H and V scrollbars */
22+
background-color: white; /* The little square between H and V scrollbars */
2323
}
2424

2525
/* GUTTER */

js/vendor/codemirror/lib/codemirror.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4798,19 +4798,19 @@
47984798
});
47994799
}
48004800

4801-
function History(startGen) {
4801+
function History(prev) {
48024802
// Arrays of change events and selections. Doing something adds an
48034803
// event to done and clears undo. Undoing moves events from done
48044804
// to undone, redoing moves them in the other direction.
48054805
this.done = []; this.undone = [];
4806-
this.undoDepth = Infinity;
4806+
this.undoDepth = prev ? prev.undoDepth : Infinity;
48074807
// Used to track when changes can be merged into a single undo
48084808
// event
48094809
this.lastModTime = this.lastSelTime = 0;
48104810
this.lastOp = this.lastSelOp = null;
48114811
this.lastOrigin = this.lastSelOrigin = null;
48124812
// Used by the isClean() method
4813-
this.generation = this.maxGeneration = startGen || 1;
4813+
this.generation = this.maxGeneration = prev ? prev.maxGeneration : 1;
48144814
}
48154815

48164816
// Create a history change event from an updateDoc-style change
@@ -6181,7 +6181,7 @@
61816181
var out = [];
61826182
for (var i = 0; i < ranges.length; i++)
61836183
{ out[i] = new Range(clipPos(this, ranges[i].anchor),
6184-
clipPos(this, ranges[i].head)); }
6184+
clipPos(this, ranges[i].head || ranges[i].anchor)); }
61856185
if (primary == null) { primary = Math.min(ranges.length - 1, this.sel.primIndex); }
61866186
setSelection(this, normalizeSelection(this.cm, out, primary), options);
61876187
}),
@@ -6244,7 +6244,7 @@
62446244
clearHistory: function() {
62456245
var this$1 = this;
62466246

6247-
this.history = new History(this.history.maxGeneration);
6247+
this.history = new History(this.history);
62486248
linkedDocs(this, function (doc) { return doc.history = this$1.history; }, true);
62496249
},
62506250

@@ -6265,7 +6265,7 @@
62656265
undone: copyHistoryArray(this.history.undone)}
62666266
},
62676267
setHistory: function(histData) {
6268-
var hist = this.history = new History(this.history.maxGeneration);
6268+
var hist = this.history = new History(this.history);
62696269
hist.done = copyHistoryArray(histData.done.slice(0), null, true);
62706270
hist.undone = copyHistoryArray(histData.undone.slice(0), null, true);
62716271
},
@@ -7708,7 +7708,7 @@
77087708
for (var i = newBreaks.length - 1; i >= 0; i--)
77097709
{ replaceRange(cm.doc, val, newBreaks[i], Pos(newBreaks[i].line, newBreaks[i].ch + val.length)); }
77107710
});
7711-
option("specialChars", /[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g, function (cm, val, old) {
7711+
option("specialChars", /[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g, function (cm, val, old) {
77127712
cm.state.specialChars = new RegExp(val.source + (val.test("\t") ? "" : "|\t"), "g");
77137713
if (old != Init) { cm.refresh(); }
77147714
});
@@ -8766,6 +8766,7 @@
87668766

87678767
var input = this, cm = input.cm;
87688768
var div = input.div = display.lineDiv;
8769+
div.contentEditable = true;
87698770
disableBrowserMagic(div, cm.options.spellcheck, cm.options.autocorrect, cm.options.autocapitalize);
87708771

87718772
function belongsToInput(e) {
@@ -9793,7 +9794,7 @@
97939794

97949795
addLegacyProps(CodeMirror);
97959796

9796-
CodeMirror.version = "5.59.2";
9797+
CodeMirror.version = "5.60.0";
97979798

97989799
return CodeMirror;
97999800

js/vendor/codemirror/mode/javascript/javascript.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
218218

219219
// Parser
220220

221-
var atomicTypes = {"atom": true, "number": true, "variable": true, "string": true, "regexp": true, "this": true, "jsonld-keyword": true};
221+
var atomicTypes = {"atom": true, "number": true, "variable": true, "string": true,
222+
"regexp": true, "this": true, "import": true, "jsonld-keyword": true};
222223

223224
function JSLexical(indented, column, type, align, prev, info) {
224225
this.indented = indented;
@@ -441,7 +442,6 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
441442
if (type == "{") return contCommasep(objprop, "}", null, maybeop);
442443
if (type == "quasi") return pass(quasi, maybeop);
443444
if (type == "new") return cont(maybeTarget(noComma));
444-
if (type == "import") return cont(expression);
445445
return cont();
446446
}
447447
function maybeexpression(type) {
@@ -605,7 +605,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
605605
}
606606
}
607607
function typeexpr(type, value) {
608-
if (value == "keyof" || value == "typeof" || value == "infer") {
608+
if (value == "keyof" || value == "typeof" || value == "infer" || value == "readonly") {
609609
cx.marked = "keyword"
610610
return cont(value == "typeof" ? expressionNoComma : typeexpr)
611611
}
@@ -802,6 +802,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) {
802802
function afterImport(type) {
803803
if (type == "string") return cont();
804804
if (type == "(") return pass(expression);
805+
if (type == ".") return pass(maybeoperatorComma);
805806
return pass(importSpec, maybeMoreImports, maybeFrom);
806807
}
807808
function importSpec(type, value) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"autoprefixer": "^10.2.4",
1818
"blueimp-md5": "^2.18.0",
1919
"bootstrap": "5.0.0-beta2",
20-
"codemirror": "5.59.2",
20+
"codemirror": "5.60.0",
2121
"jquery": "3.5.1",
2222
"jquery-debounce-throttle": "^1.0.6-rc.0",
2323
"jquery-migrate": "3.3.2",

templates/login/form.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{ login_header|raw }}
22

33
{% if is_demo %}
4-
<fieldset class="pma-fieldset">
4+
<fieldset class="pma-fieldset mb-4">
55
<legend>{% trans 'phpMyAdmin Demo Server' %}</legend>
66
{% apply format('<a href="url.php?url=https://demo.phpmyadmin.net/" target="_blank" rel="noopener noreferrer">demo.phpmyadmin.net</a>')|raw %}
77
{% trans %}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2254,10 +2254,10 @@ co@^4.6.0:
22542254
resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184"
22552255
integrity sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=
22562256

2257-
codemirror@5.59.2:
2258-
version "5.59.2"
2259-
resolved "https://registry.yarnpkg.com/codemirror/-/codemirror-5.%3Cspan%20class="x x-first x-last">59.2.tgz#ee674d3a4a8d241af38d52afc482625ba7393922"
2260-
integrity sha512-/D5PcsKyzthtSy2NNKCyJi3b+htRkoKv3idswR/tR6UAvMNKA7SrmyZy6fOONJxSRs1JlUWEDAbxqfdArbK8iA==
2257+
codemirror@5.60.0:
2258+
version "5.60.0"
2259+
resolved "https://registry.yarnpkg.com/codemirror/-/codemirror-5.%3Cspan%20class="x x-first x-last">60.0.tgz#00a8cfd287d5d8737ceb73987f04aee2fe5860da"
2260+
integrity sha512-AEL7LhFOlxPlCL8IdTcJDblJm8yrAGib7I+DErJPdZd4l6imx8IMgKK3RblVgBQqz3TZJR4oknQ03bz+uNjBYA==
22612261

22622262
collect-v8-coverage@^1.0.0:
22632263
version "1.0.1"

0 commit comments

Comments
 (0)