mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-02 22:22:19 +00:00
0.2.0 - Mid migration
This commit is contained in:
parent
139e6a915e
commit
7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions
19
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/a.js
generated
vendored
Normal file
19
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/a.js
generated
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForAnchor;
|
||||
|
||||
var _jsxAstUtils = require("jsx-ast-utils");
|
||||
|
||||
/**
|
||||
* Returns the implicit role for an anchor tag.
|
||||
*/
|
||||
function getImplicitRoleForAnchor(attributes) {
|
||||
if ((0, _jsxAstUtils.getProp)(attributes, 'href')) {
|
||||
return 'link';
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
19
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/area.js
generated
vendored
Normal file
19
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/area.js
generated
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForArea;
|
||||
|
||||
var _jsxAstUtils = require("jsx-ast-utils");
|
||||
|
||||
/**
|
||||
* Returns the implicit role for an area tag.
|
||||
*/
|
||||
function getImplicitRoleForArea(attributes) {
|
||||
if ((0, _jsxAstUtils.getProp)(attributes, 'href')) {
|
||||
return 'link';
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/article.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/article.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForArticle;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for an article tag.
|
||||
*/
|
||||
function getImplicitRoleForArticle() {
|
||||
return 'article';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/aside.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/aside.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForAside;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for an aside tag.
|
||||
*/
|
||||
function getImplicitRoleForAside() {
|
||||
return 'complementary';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/body.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/body.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForBody;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for a body tag.
|
||||
*/
|
||||
function getImplicitRoleForBody() {
|
||||
return 'document';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/button.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/button.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForButton;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for a button tag.
|
||||
*/
|
||||
function getImplicitRoleForButton() {
|
||||
return 'button';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/datalist.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/datalist.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForDatalist;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for a datalist tag.
|
||||
*/
|
||||
function getImplicitRoleForDatalist() {
|
||||
return 'listbox';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/details.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/details.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForDetails;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for a details tag.
|
||||
*/
|
||||
function getImplicitRoleForDetails() {
|
||||
return 'group';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/dialog.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/dialog.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForDialog;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for a dialog tag.
|
||||
*/
|
||||
function getImplicitRoleForDialog() {
|
||||
return 'dialog';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/dl.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/dl.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForDl;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for a dl tag.
|
||||
*/
|
||||
function getImplicitRoleForDl() {
|
||||
return 'list';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/form.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/form.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForForm;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for a form tag.
|
||||
*/
|
||||
function getImplicitRoleForForm() {
|
||||
return 'form';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/h1.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/h1.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForH1;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for an h1 tag.
|
||||
*/
|
||||
function getImplicitRoleForH1() {
|
||||
return 'heading';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/h2.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/h2.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForH2;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for an h2 tag.
|
||||
*/
|
||||
function getImplicitRoleForH2() {
|
||||
return 'heading';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/h3.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/h3.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForH3;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for an h3 tag.
|
||||
*/
|
||||
function getImplicitRoleForH3() {
|
||||
return 'heading';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/h4.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/h4.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForH4;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for an h4 tag.
|
||||
*/
|
||||
function getImplicitRoleForH4() {
|
||||
return 'heading';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/h5.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/h5.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForH5;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for an h5 tag.
|
||||
*/
|
||||
function getImplicitRoleForH5() {
|
||||
return 'heading';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/h6.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/h6.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForH6;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for an h6tag.
|
||||
*/
|
||||
function getImplicitRoleForH6() {
|
||||
return 'heading';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/hr.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/hr.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForHr;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for an hr tag.
|
||||
*/
|
||||
function getImplicitRoleForHr() {
|
||||
return 'separator';
|
||||
}
|
21
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/img.js
generated
vendored
Normal file
21
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/img.js
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForImg;
|
||||
|
||||
var _jsxAstUtils = require("jsx-ast-utils");
|
||||
|
||||
/**
|
||||
* Returns the implicit role for an img tag.
|
||||
*/
|
||||
function getImplicitRoleForImg(attributes) {
|
||||
var alt = (0, _jsxAstUtils.getProp)(attributes, 'alt');
|
||||
|
||||
if (alt && (0, _jsxAstUtils.getLiteralPropValue)(alt) === '') {
|
||||
return '';
|
||||
}
|
||||
|
||||
return 'img';
|
||||
}
|
123
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/index.js
generated
vendored
Normal file
123
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/index.js
generated
vendored
Normal file
|
@ -0,0 +1,123 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = void 0;
|
||||
|
||||
var _a = _interopRequireDefault(require("./a"));
|
||||
|
||||
var _area = _interopRequireDefault(require("./area"));
|
||||
|
||||
var _article = _interopRequireDefault(require("./article"));
|
||||
|
||||
var _aside = _interopRequireDefault(require("./aside"));
|
||||
|
||||
var _body = _interopRequireDefault(require("./body"));
|
||||
|
||||
var _button = _interopRequireDefault(require("./button"));
|
||||
|
||||
var _datalist = _interopRequireDefault(require("./datalist"));
|
||||
|
||||
var _details = _interopRequireDefault(require("./details"));
|
||||
|
||||
var _dialog = _interopRequireDefault(require("./dialog"));
|
||||
|
||||
var _dl = _interopRequireDefault(require("./dl"));
|
||||
|
||||
var _form = _interopRequireDefault(require("./form"));
|
||||
|
||||
var _h = _interopRequireDefault(require("./h1"));
|
||||
|
||||
var _h2 = _interopRequireDefault(require("./h2"));
|
||||
|
||||
var _h3 = _interopRequireDefault(require("./h3"));
|
||||
|
||||
var _h4 = _interopRequireDefault(require("./h4"));
|
||||
|
||||
var _h5 = _interopRequireDefault(require("./h5"));
|
||||
|
||||
var _h6 = _interopRequireDefault(require("./h6"));
|
||||
|
||||
var _hr = _interopRequireDefault(require("./hr"));
|
||||
|
||||
var _img = _interopRequireDefault(require("./img"));
|
||||
|
||||
var _input = _interopRequireDefault(require("./input"));
|
||||
|
||||
var _li = _interopRequireDefault(require("./li"));
|
||||
|
||||
var _link = _interopRequireDefault(require("./link"));
|
||||
|
||||
var _menu = _interopRequireDefault(require("./menu"));
|
||||
|
||||
var _menuitem = _interopRequireDefault(require("./menuitem"));
|
||||
|
||||
var _meter = _interopRequireDefault(require("./meter"));
|
||||
|
||||
var _nav = _interopRequireDefault(require("./nav"));
|
||||
|
||||
var _ol = _interopRequireDefault(require("./ol"));
|
||||
|
||||
var _option = _interopRequireDefault(require("./option"));
|
||||
|
||||
var _output = _interopRequireDefault(require("./output"));
|
||||
|
||||
var _progress = _interopRequireDefault(require("./progress"));
|
||||
|
||||
var _section = _interopRequireDefault(require("./section"));
|
||||
|
||||
var _select = _interopRequireDefault(require("./select"));
|
||||
|
||||
var _tbody = _interopRequireDefault(require("./tbody"));
|
||||
|
||||
var _textarea = _interopRequireDefault(require("./textarea"));
|
||||
|
||||
var _tfoot = _interopRequireDefault(require("./tfoot"));
|
||||
|
||||
var _thead = _interopRequireDefault(require("./thead"));
|
||||
|
||||
var _ul = _interopRequireDefault(require("./ul"));
|
||||
|
||||
var _default = {
|
||||
a: _a["default"],
|
||||
area: _area["default"],
|
||||
article: _article["default"],
|
||||
aside: _aside["default"],
|
||||
body: _body["default"],
|
||||
button: _button["default"],
|
||||
datalist: _datalist["default"],
|
||||
details: _details["default"],
|
||||
dialog: _dialog["default"],
|
||||
dl: _dl["default"],
|
||||
form: _form["default"],
|
||||
h1: _h["default"],
|
||||
h2: _h2["default"],
|
||||
h3: _h3["default"],
|
||||
h4: _h4["default"],
|
||||
h5: _h5["default"],
|
||||
h6: _h6["default"],
|
||||
hr: _hr["default"],
|
||||
img: _img["default"],
|
||||
input: _input["default"],
|
||||
li: _li["default"],
|
||||
link: _link["default"],
|
||||
menu: _menu["default"],
|
||||
menuitem: _menuitem["default"],
|
||||
meter: _meter["default"],
|
||||
nav: _nav["default"],
|
||||
ol: _ol["default"],
|
||||
option: _option["default"],
|
||||
output: _output["default"],
|
||||
progress: _progress["default"],
|
||||
section: _section["default"],
|
||||
select: _select["default"],
|
||||
tbody: _tbody["default"],
|
||||
textarea: _textarea["default"],
|
||||
tfoot: _tfoot["default"],
|
||||
thead: _thead["default"],
|
||||
ul: _ul["default"]
|
||||
};
|
||||
exports["default"] = _default;
|
49
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/input.js
generated
vendored
Normal file
49
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/input.js
generated
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForInput;
|
||||
|
||||
var _jsxAstUtils = require("jsx-ast-utils");
|
||||
|
||||
/**
|
||||
* Returns the implicit role for an input tag.
|
||||
*/
|
||||
function getImplicitRoleForInput(attributes) {
|
||||
var type = (0, _jsxAstUtils.getProp)(attributes, 'type');
|
||||
|
||||
if (type) {
|
||||
var value = (0, _jsxAstUtils.getLiteralPropValue)(type) || '';
|
||||
|
||||
switch (typeof value === 'string' && value.toUpperCase()) {
|
||||
case 'BUTTON':
|
||||
case 'IMAGE':
|
||||
case 'RESET':
|
||||
case 'SUBMIT':
|
||||
return 'button';
|
||||
|
||||
case 'CHECKBOX':
|
||||
return 'checkbox';
|
||||
|
||||
case 'RADIO':
|
||||
return 'radio';
|
||||
|
||||
case 'RANGE':
|
||||
return 'slider';
|
||||
|
||||
case 'EMAIL':
|
||||
case 'PASSWORD':
|
||||
case 'SEARCH': // with [list] selector it's combobox
|
||||
|
||||
case 'TEL': // with [list] selector it's combobox
|
||||
|
||||
case 'URL': // with [list] selector it's combobox
|
||||
|
||||
default:
|
||||
return 'textbox';
|
||||
}
|
||||
}
|
||||
|
||||
return 'textbox';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/li.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/li.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForLi;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for an li tag.
|
||||
*/
|
||||
function getImplicitRoleForLi() {
|
||||
return 'listitem';
|
||||
}
|
19
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/link.js
generated
vendored
Normal file
19
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/link.js
generated
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForLink;
|
||||
|
||||
var _jsxAstUtils = require("jsx-ast-utils");
|
||||
|
||||
/**
|
||||
* Returns the implicit role for a link tag.
|
||||
*/
|
||||
function getImplicitRoleForLink(attributes) {
|
||||
if ((0, _jsxAstUtils.getProp)(attributes, 'href')) {
|
||||
return 'link';
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
22
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/menu.js
generated
vendored
Normal file
22
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/menu.js
generated
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForMenu;
|
||||
|
||||
var _jsxAstUtils = require("jsx-ast-utils");
|
||||
|
||||
/**
|
||||
* Returns the implicit role for a menu tag.
|
||||
*/
|
||||
function getImplicitRoleForMenu(attributes) {
|
||||
var type = (0, _jsxAstUtils.getProp)(attributes, 'type');
|
||||
|
||||
if (type) {
|
||||
var value = (0, _jsxAstUtils.getLiteralPropValue)(type);
|
||||
return value && value.toUpperCase() === 'TOOLBAR' ? 'toolbar' : '';
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
35
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/menuitem.js
generated
vendored
Normal file
35
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/menuitem.js
generated
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForMenuitem;
|
||||
|
||||
var _jsxAstUtils = require("jsx-ast-utils");
|
||||
|
||||
/**
|
||||
* Returns the implicit role for a menuitem tag.
|
||||
*/
|
||||
function getImplicitRoleForMenuitem(attributes) {
|
||||
var type = (0, _jsxAstUtils.getProp)(attributes, 'type');
|
||||
|
||||
if (type) {
|
||||
var value = (0, _jsxAstUtils.getLiteralPropValue)(type) || '';
|
||||
|
||||
switch (typeof value === 'string' && value.toUpperCase()) {
|
||||
case 'COMMAND':
|
||||
return 'menuitem';
|
||||
|
||||
case 'CHECKBOX':
|
||||
return 'menuitemcheckbox';
|
||||
|
||||
case 'RADIO':
|
||||
return 'menuitemradio';
|
||||
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/meter.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/meter.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForMeter;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for a meter tag.
|
||||
*/
|
||||
function getImplicitRoleForMeter() {
|
||||
return 'progressbar';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/nav.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/nav.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForNav;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for a nav tag.
|
||||
*/
|
||||
function getImplicitRoleForNav() {
|
||||
return 'navigation';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/ol.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/ol.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForOl;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for an ol tag.
|
||||
*/
|
||||
function getImplicitRoleForOl() {
|
||||
return 'list';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/option.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/option.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForOption;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for an option tag.
|
||||
*/
|
||||
function getImplicitRoleForOption() {
|
||||
return 'option';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/output.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/output.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForOutput;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for an output tag.
|
||||
*/
|
||||
function getImplicitRoleForOutput() {
|
||||
return 'status';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/progress.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/progress.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForProgress;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for a progress tag.
|
||||
*/
|
||||
function getImplicitRoleForProgress() {
|
||||
return 'progressbar';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/section.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/section.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForSection;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for a section tag.
|
||||
*/
|
||||
function getImplicitRoleForSection() {
|
||||
return 'region';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/select.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/select.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForSelect;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for a select tag.
|
||||
*/
|
||||
function getImplicitRoleForSelect() {
|
||||
return 'listbox';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/tbody.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/tbody.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForTbody;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for a tbody tag.
|
||||
*/
|
||||
function getImplicitRoleForTbody() {
|
||||
return 'rowgroup';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/textarea.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/textarea.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForTextarea;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for a textarea tag.
|
||||
*/
|
||||
function getImplicitRoleForTextarea() {
|
||||
return 'textbox';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/tfoot.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/tfoot.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForTfoot;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for a tfoot tag.
|
||||
*/
|
||||
function getImplicitRoleForTfoot() {
|
||||
return 'rowgroup';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/thead.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/thead.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForThead;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for a thead tag.
|
||||
*/
|
||||
function getImplicitRoleForThead() {
|
||||
return 'rowgroup';
|
||||
}
|
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/ul.js
generated
vendored
Normal file
13
web/node_modules/eslint-plugin-jsx-a11y/lib/util/implicitRoles/ul.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = getImplicitRoleForUl;
|
||||
|
||||
/**
|
||||
* Returns the implicit role for a ul tag.
|
||||
*/
|
||||
function getImplicitRoleForUl() {
|
||||
return 'list';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue