Skip to content

Commit

Permalink
Closes #3151 Update NodeJS in ProboCI and Lando configs to version 20…
Browse files Browse the repository at this point in the history
…, rebuild transpiled JS files. (#3152)

Co-authored-by: Joe Parsons <[email protected]>
  • Loading branch information
trackleft and joeparsons authored May 17, 2024
1 parent 9514af6 commit 1b7412c
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 31 deletions.
5 changes: 3 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
"Shepherd": true,
"Sortable": true,
"once": true,
"CKEDITOR": true,
"CKEditor5": true,
"tabbable": true
"tabbable": true,
"slugify": true,
"bodyScrollLock" : true
},
"rules": {
"prettier/prettier": "error",
Expand Down
2 changes: 1 addition & 1 deletion .lando.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ services:
- composer install
- ln -s /usr/local/quickstart-install-profile/.vscode /app/.vscode
node:
type: node:18
type: node:20
build:
- yarn install
chromedriver:
Expand Down
2 changes: 1 addition & 1 deletion .probo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ steps:
- sudo npm cache clean -f --silent --no-progress
- sudo npm install -g --no-progress yarn
- sudo npm install -g --no-progress n
- sudo n 18.12.1
- sudo n 20.13.0
- cd $SRC_DIR/az-quickstart-scaffolding/web/profiles/custom/az_quickstart
- yarn install
- yarn run eslint --color .
Expand Down
2 changes: 1 addition & 1 deletion modules/custom/az_select_menu/js/az-select-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
(function ($, Drupal, window, document, once) {
Drupal.azSelectMenu = Drupal.azSelectMenu || {};
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
"eslint-config-prettier": "^8.4.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jquery": "^1.5.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-yml": "^1.2.0",
"glob": "^8.0.3",
"minimist": "^1.2.2",
"mkdirp": "^1.0.4",
"nightwatch": "^1.6.3",
"prettier": "^2.1.2",
"terser": "^5.14.2"
"mkdirp": "^3.0.1",
"nightwatch": "^2.4.2",
"prettier": "^3.0.3",
"terser": "^5.19.0"
},
"babel": {
"env": {
Expand Down
29 changes: 8 additions & 21 deletions themes/custom/az_barrio/js/az-ajax.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,19 @@
/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
(function (Drupal) {
var Z_INDEX = 1261;
var TOP_POSITION = '48.5%';
var LEFT_POSITION = '49%';
var SPINNER_SIZE = '3rem';
var spinnerPositionClass = 'js-az-spinner-position';
var style = document.createElement('style');
style.textContent = '\n .'
.concat(spinnerPositionClass, ' {\n position: fixed;\n z-index: ')
.concat(Z_INDEX, ';\n top: ')
.concat(TOP_POSITION, ';\n left: ')
.concat(LEFT_POSITION, ';\n }\n ');
style.textContent = "\n .".concat(spinnerPositionClass, " {\n position: fixed;\n z-index: ").concat(Z_INDEX, ";\n top: ").concat(TOP_POSITION, ";\n left: ").concat(LEFT_POSITION, ";\n }\n ");
document.head.appendChild(style);
Drupal.theme.ajaxProgressIndicatorFullscreen = function () {
return '\n <div class="'
.concat(
spinnerPositionClass,
'">\n <div class="spinner-border text-info" style="width: ',
)
.concat(SPINNER_SIZE, '; height: ')
.concat(
SPINNER_SIZE,
';" role="status">\n <span class="sr-only">Loading...</span>\n </div>\n </div>',
);
return "\n <div class=\"".concat(spinnerPositionClass, "\">\n <div class=\"spinner-border text-info\" style=\"width: ").concat(SPINNER_SIZE, "; height: ").concat(SPINNER_SIZE, ";\" role=\"status\">\n <span class=\"sr-only\">Loading...</span>\n </div>\n </div>");
};
})(Drupal);
})(Drupal);

0 comments on commit 1b7412c

Please sign in to comment.